﻿/* ---- Theme Variables ---- */

:root {
    --bg-main: #ffffff;
    --bg-secondary: #fffdf5;
    --bg-footer: #222222;
    --text-main: #000;
    --text-secondary: #555;
    --accent-main: #d98f21;
    --accent-dark: #b17414;
    --accent-light: #c29540;
}
/* ---- Dark Mode Variables ---- */

body.dark-mode {
    --bg-main: #121212;
    --bg-secondary: #1b1b1b;
    --bg-footer: #222222;
   
    --text-main: #fffdf5;
    --text-secondary: #ccc;
    
    --accent-main: #f0b84a;
    --accent-dark: #dba63c;
    --accent-light: #c29540;
}

/* ---- Theme Toggle Button ---- */ #theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-main);
    color: var(--bg-main);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

    #theme-toggle:hover {
        background: var(--accent-dark);
        transform: rotate(10deg);
    }



/* ===== Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #000;
    overflow-x: hidden;
}

/* ===== Header / Navbar ===== */
.header {
    background: var(--bg-main);
    color: #d98f21;
    font-variant: small-caps;
    padding: 0.5rem 1rem;
}

/* ===== Navbar Balanced Layout ===== */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left links | Logo | Right links */
    align-items: center;
    background: var(--bg-main);
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 10;
}

/* Logo centered */
.navbar-logo {
    text-align: center;
}

    .navbar-logo img {
        height: 60px;
        width: auto;
    }

/* Common nav links style */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

    .nav-links li a {
        color: #b17414;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        .nav-links li a:hover {
            color: #d98f21;
            text-decoration: underline;
        }

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #b17414;
    cursor: pointer;
    background: transparent;
    border: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

#heroVideo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* ===== Centered Text Block on Video ===== */
.text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-secondary); /*rgba(255, 255, 255, 0.85);*/
    padding: 2rem 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 80%;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: fadeInUp 1.5s ease forwards;
    opacity: 1; /* ✅ Changed from 0 to 1 to make visible */
}

    .text-block h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        color: #b17414;
    }

    .text-block p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        color: var(--text-secondary);
    }

    .text-block .btn {
        background: #d98f21;
        color: var(--bg-main);
        padding: 0.7rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.3s ease;
    }

        .text-block .btn:hover {
            background: #b17414;
        }

/* ===== Video Background ===== */
.video-background {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* ===== Footer ===== */
footer {
    text-align: left;
    padding: 1rem;
    background: #222;
    color: white;
}





@media (max-width:980px) {
    .navbar {
        font-size: small;
    }
}

/* ===== Responsive Navbar (under 992px) ===== */
@media (max-width: 1024px) {
    .navbar {
        grid-template-columns: 1fr auto 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: var(--bg-main);
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        grid-column: span 3;
    }

        .nav-links.active {
            display: flex;
            animation: slideDown 0.4s ease forwards;
        }

    .hamburger {
        display: block;
    }

    .navbar-logo img {
        height: 50px;
    }


    .navbar-logo.hide-logo {
        display: none;
    }

    .text-block {
        padding: 1.5rem 2rem;
        font-size: 1rem;
        max-width: 90%;
    }

        .text-block h1 {
            font-size: 1.7rem;
        }

        .text-block p {
            font-size: 1rem;
        }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-left,
    .about-right {
        display: none;
    }

    .about-center {
        max-width: 100%;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.95rem;
    }
}

/* ===== Mobile (under 480px) ===== */
@media (max-width: 480px) {
    .navbar-logo img {
        height: 45px;
    }

    .hero .overlay {
        font-size: 1.1em;
    }

    .text-block {
        padding: 1rem 1.2rem;
        max-width: 95%;
    }

        .text-block h1 {
            font-size: 1.4rem;
        }

        .text-block p {
            font-size: 0.9rem;
        }

    .about-section {
        padding: 2.5rem 1rem;
    }

    .about-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Smooth dropdown animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in for text block */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Left and right navs aligned properly */
.nav-links.left {
    justify-content: flex-start;
}

.nav-links.right {
    justify-content: flex-end;
}


/* ===== About Section ===== */
.about-section {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Columns */
.about-column {
    flex: 1;
    min-width: 280px;
}

.about-left img,
.about-right img {
    width: 130px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

    .about-left img:hover,
    .about-right img:hover {
        transform: rotate(5deg) scale(1.05);
    }

/* Center Content */
.about-center {
    flex: 2;
    max-width: 600px;
}

.about-subtitle {
    color: #b17414;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.about-title {
    color: #d98f21;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-btn {
    display: inline-block;
    background: #d98f21;
    color: var(--bg-main);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .about-btn:hover {
        background: #b17414;
        transform: translateY(-3px);
    }



/* ===== Two-Column Section (Shared Styles) start here ===== */
.two-column-section {
    padding: 80px 5%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
}

.two-column-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    width: 100%;
    gap: 60px;
}

.two-column.half {
    flex: 1;
}

/* ===== Image Side ===== */
.two-column.image-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .two-column.image-side img {
        width: 100%;
        max-width: 480px;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease;
    }

        .two-column.image-side img:hover {
            transform: scale(1.03);
        }

/* ===== Text Side ===== */
.two-column.text-side {
    text-align: justify;
}

    .two-column.text-side h2 {
        font-size: 2rem;
        color: #b17414;
        margin-bottom: 20px;
        font-weight: 700;
        position: relative;
    }
    .two-column.text-side h4 {
        font-size: 1.5rem;
        color: #b17414;
        margin-bottom: 20px;
        /*font-weight: 700;*/
        position: relative;
    }


        .two-column.text-side h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 3px;
            background-color: #c29540;
            margin-top: 10px;
            border-radius: 3px;
        }
        .two-column.text-side h4::after {
            content: "";
            display: block;
            width: 60px;
            height: 3px;
            background-color: #c29540;
            margin-top: 10px;
            border-radius: 3px;
        }

    .two-column.text-side p {
        font-size: 1rem;
        line-height: 1.8;
        color: #555;
        margin-bottom: 15px;
    }

.two-column-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #c29540;
    color: var(--bg-main);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .two-column-btn:hover {
        background-color: #a67c2c;
        transform: translateY(-2px);
    }

/* ===== Reversed Layout (Image Right, Text Left) ===== */
.two-column-section.reverse .two-column-container {
    flex-direction: row-reverse;
}

/* ===== Alternating Backgrounds (Optional) ===== */
.two-column-section:nth-of-type(even) {
    background-color: var(--bg-secondary);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .two-column-container {
        flex-direction: column;
        text-align: center;
    }

    .two-column.text-side {
        text-align: center;
    }

        .two-column.text-side h2::after {
            margin: 10px auto;
        }

    .two-column.image-side img {
        max-width: 90%;
    }

    .two-column-btn {
        padding: 10px 25px;
    }

    .two-column-section.reverse .two-column-container {
        flex-direction: column-reverse;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .two-column-section {
        padding: 60px 20px;
    }

    .two-column.text-side h2 {
        font-size: 1.6rem;
    }

    .two-column.text-side p {
        font-size: 0.95rem;
    }
}


/* ===== Two-Column Section (Shared Styles) End here ===== */







/* ===== Two Box Section ===== */
.two-box-section {
    background-color: var(--bg-main);
    padding: 80px 5%;
}

.two-box-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}

/* ===== Each Box ===== */
.content-box {
    flex: 1 1 45%;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

    .content-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

/* ===== Image Styling with Alternate Animations ===== */
.box-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

    .box-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

/* Subtle up/down motion for images */
.slide-up img {
    animation: slideUp 8s infinite alternate ease-in-out;
}

.slide-down img {
    animation: slideDown 8s infinite alternate ease-in-out;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ===== Text Styling ===== */
.box-text {
    text-align: justify;
    margin-top: 20px;
}


    .box-text h2 {
        color: #b17414;
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .box-text p {
        color: #444;
        line-height: 1.8;
        margin-bottom: 20px;
    }

/* ===== Button ===== */
.btn-box {
    display: inline-block;
    background: #c29540;
    color: var(--bg-main);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .btn-box:hover {
        background: #a67c2c;
        transform: translateY(-2px);
    }

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .two-box-container {
        flex-direction: column;
        gap: 60px;
    }

    .content-box {
        flex: 1 1 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .box-image img {
        max-width: 100%;
    }

    .box-text h2 {
        font-size: 1.6rem;
    }

    .box-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .box-text h2 {
        font-size: 1.4rem;
    }

    .box-text p {
        font-size: 0.9rem;
    }

    .btn-box {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}



/* ===== Testimonials Section ===== */
.testimonial-section {
    /*background-color: var(--bg-secondary);*/
    padding: 80px 5%;
    text-align: center;
}

    .testimonial-section h2 {
        font-size: 2.2rem;
        color: #b17414;
        font-weight: 700;
        margin-bottom: 50px;
        position: relative;
    }

        .testimonial-section h2::after {
            content: "";
            display: block;
            width: 70px;
            height: 3px;
            background-color: #c29540;
            margin: 12px auto 0;
            border-radius: 3px;
        }

/* Testimonials Container */
.testimonial-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Each Testimonial Card */
.testimonial-card {
    background: var(--bg-main);
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    flex: 1 1 30%;
    padding: 30px 25px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps author aligned at bottom */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 400px; /* consistent height */
}

    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    /* Decorative quote mark */
    .testimonial-card::before {
        content: "“";
        font-size: 60px;
        color: #d98f21;
        position: absolute;
        top: 10px;
        left: 20px;
        opacity: 0.1;
    }

/* Testimonial Text */
.testimonial-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    flex-grow: 1; /* fills vertical space so author stays bottom */
}

/* Author section pinned at bottom */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* ensures consistent vertical alignment */
    padding-top: 20px;
    border-top: 1px solid #eee;
}

    .testimonial-author img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #c29540;
    }

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

    .testimonial-author-info h4 {
        margin: 0;
        font-size: 1.1rem;
        color: #b17414;
        font-weight: 700;
    }

    .testimonial-author-info span {
        font-size: 0.9rem;
        color: #777;
    }

/* Responsive */
@media (max-width: 992px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        flex: 1 1 100%;
        max-width: 600px;
        min-height: auto;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }
}




/* ===== Footer Section ===== */
.footer {
    background-color: #222;
    color: #ffffff;
    padding: 60px 5% 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Columns */
.footer-column {
    flex: 1 1 30%;
    min-width: 260px;
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
    text-align: justify;
}

/* Headings */
.footer-column h3 {
    color: #d98f21;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
}

    .footer-column h3::after {
        content: "";
        display: block;
        width: 50px;
        height: 2px;
        background: #c29540;
        margin-top: 8px;
        border-radius: 3px;
    }

/* Links & Lists */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-column ul li {
        margin-bottom: 10px;
        font-size: 0.95rem;
        color: #ccc;
    }

        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-column ul li a:hover {
                color: #d98f21;
            }

        /* Icons beside contact info */
        .footer-column ul li i {
            color: #c29540;
            margin-right: 10px;
        }

/* Social Icons */
.footer-social a {
    color: #c29540;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .footer-social a:hover {
        color: #d98f21;
        transform: scale(1.2);
    }

/* Bottom Bar */
.footer-bottom {
    text-align: left;
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }

    .footer-column {
        flex: 1 1 100%;
        max-width: 500px;
    }

    .footer-about {
        text-align: left;
    }

    .footer-social a {
        margin: 0 8px;
    }
}

/* ===== Text Styling ===== */ 
.box-text {
    text-align: justify;
    margin-top: 20px;
}

    .box-text h2 {
        color: var(--accent-dark);
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 15px;
        font-weight: 700;
    }
    .box-text h4 {
        color: var(--accent-dark);
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .box-text p {
        color: #444;
        line-height: 1.8;
        margin-bottom: 20px;
    }


/* ===== Button ===== */ .btn-box {
    display: inline-block;
    background: var(--accent-light);
    color: var(--bg-main);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .btn-box:hover {
        background: var(--accent-main);
        transform: translateY(-2px);
    }



/* ===== Hero Section ===== */
.contact-hero {
    background: url('/images/contact-hero.jpg') center/cover no-repeat;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-main);
    text-align: center;
    position: relative;
}

    .contact-hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .contact-hero .hero-content {
        position: relative;
        z-index: 2;
        max-width: 700px;
    }

    .contact-hero h1 {
        font-size: 3rem;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .contact-hero p {
        font-size: 1.2rem;
    }

/* ===== Main Contact Section ===== */
.contact-main {
    background: #fffaf2;
    padding: 70px 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    gap: 40px;
}

/* ===== Left Side ===== */
.contact-info {
    flex: 1 1 45%;
}

    .contact-info h2 {
        color: #d98f21;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .contact-info p {
        margin-bottom: 15px;
        color: #444;
    }

.contact-details {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

    .contact-details li {
        margin-bottom: 10px;
        font-size: 1rem;
    }

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Right Side (Form) ===== */
.contact-form {
    flex: 1 1 45%;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .contact-form h2 {
        color: #d98f21;
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1rem;
        transition: all 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #d98f21;
            outline: none;
        }

.btn-send {
    background: #d98f21;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-send:hover {
        background: #b67817;
    }

.success-message {
    margin-top: 20px;
    background: #eafbea;
    color: #2d7a36;
    padding: 12px;
    border-radius: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}



/* =====================================================================
   BLOG SECTION STYLES
   Includes:
   1. Blog Index Page (List View)
   2. Blog Details Page (Single Post)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. BLOG INDEX PAGE (List of Posts)
   --------------------------------------------------------------------- */

/* Container section for the blog list */
.blog-list-section {
    background: var(--bg-secondary);
    padding: 80px 5%;
    color: var(--text-primary);
}

/* Section title for the blog index */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 40px;
}

/* Grid layout for blog cards */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Each individual blog card */
.blog-card {
    background: var(--bg-main);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

    .blog-card:hover {
        transform: translateY(-5px);
    }

/* Blog thumbnail image */
.blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Blog info section (title, meta, summary) */
.blog-info {
    padding: 20px;
}

    /* Blog title */
    .h2 {
        font-size: 1.2rem;
        color: var(--accent-dark);
        margin-bottom: 8px;
    }


/* Blog metadata (date, category) */
.blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Blog summary text */
.blog-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Read more link */
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

    .read-more:hover {
        text-decoration: underline;
    }


/* ---------------------------------------------------------------------
   2. BLOG DETAILS PAGE (Single Post Layout)
   --------------------------------------------------------------------- */

/* Main container for the blog details page */
.blog-details-section {
    background: var(--bg-secondary);
    padding: 80px 5%;
    color: var(--text-primary);
}

/* Layout wrapper (article + sidebar) */
.blog-content-area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog article main container */
.blog-article {
    flex: 3;
    background: var(--bg-main);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Featured image/banner */
.blog-banner img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
    object-fit: cover;
}

/* Blog title */
.blog-article h1 {
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

/* Metadata (date, category) */
.blog-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Sub-headings inside blog body */
.blog-body h2 {
    font-size: 1.4rem;
    color: var(--accent-dark);
    margin-top: 25px;
}

/* Paragraph styling inside blog body */
.blog-body p {
    line-height: 1.7;
    margin: 15px 0;
    color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
   Sidebar Section (Recent Posts, Categories)
   --------------------------------------------------------------------- */

.blog-sidebar {
    flex: 1;
    background: var(--bg-main);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position:relative;
}

/* Each sidebar widget (recent posts, categories) */
.sidebar-widget {
    margin-bottom: 35px;
}

    /* Widget title */
    .sidebar-widget h3 {
        font-size: 1.2rem;
        color: var(--accent-dark);
        margin-bottom: 15px;
        border-bottom: 2px solid var(--accent-light);
        display: inline-block;
        padding-bottom: 5px;
    }

    /* List inside sidebar */
    .sidebar-widget ul {
        list-style: none;
        padding: 0;
    }

        .sidebar-widget ul li {
            margin-bottom: 10px;
        }

            /* Sidebar links */
            .sidebar-widget ul li a {
                color: var(--text-secondary);
                text-decoration: none;
                transition: color 0.3s ease;
            }

                .sidebar-widget ul li a:hover {
                    color: var(--accent-light);
                }

/* ---------------------------------------------------------------------
   Responsive Adjustments
   --------------------------------------------------------------------- */

@media (max-width: 992px) {
    .blog-content-area {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }
}


/* Modern toolbar styling */
.ql-toolbar {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .ql-toolbar .ql-formats {
        margin-right: 8px;
    }

    .ql-toolbar button,
    .ql-toolbar .ql-picker {
        fill: #000;
        border: none;
        background: #fff;
        padding: 6px 8px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

        .ql-toolbar button:hover,
        .ql-toolbar .ql-picker:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }

        .ql-toolbar button.ql-active {
            background: #007bff;
            color: #fff;
        }

.ql-container {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#editor {
    min-height: 300px;
    padding: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

.category-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

    .category-dropdown:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
        outline: none;
    }

    .category-dropdown option {
        padding: 6px;
    }