/* Fonts are loaded with <link> tags in each page head (faster than @import). */
     :root {
        --primary: #c33a27;
        --primary-dark: #9e2a1b;
        --secondary: #212121;
        --accent: #f5f5f5;
        --text-dark: #1a1a1a;
        --text-light: #ffffff;
        --text-muted: #666666;
        --bg-main: #fafafa;
        --bg-card: #ffffff;
        --glass-bg: rgba(255, 255, 255, 0.8);
        --glass-border: rgba(255, 255, 255, 0.3);
        --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
        --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        --shadow-glow: 0 0 15px rgba(195, 58, 39, 0.4);
        --radius: 12px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @media (prefers-color-scheme: dark) {
         :root {
            --bg-main: #0f0f11;
            --bg-card: #1a1a1e;
            --text-dark: #f0f0f0;
            --text-muted: #a0a0a0;
            --secondary: #e0e0e0;
            --accent: #222225;
            --glass-bg: rgba(20, 20, 25, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
        }
    }
    
    * {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    body {
        font-family: 'Inter', sans-serif;
        background-color: var(--bg-main);
        color: var(--text-dark);
        line-height: 1.6;
        overflow-x: hidden;
        animation: pageEnter 0.7s ease-out both;
    }
    
    html {
        scroll-behavior: smooth;
        overflow-x: clip; /* slide-in animations must never cause sideways scrolling on phones */
    }
    
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        line-height: 1.2;
    }
    
    a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .container {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .text-center {
        text-align: center;
    }
    
    .text-primary {
        color: var(--primary);
    }
    
    .text-muted {
        color: var(--text-muted);
    }
    
    .btn {
        display: inline-block;
        padding: 0.75rem 1.75rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1rem;
        font-family: 'Outfit', sans-serif;
        cursor: pointer;
        transition: var(--transition);
        border: none;
        outline: none;
        text-align: center;
    }
    
    .btn-primary {
        background-color: var(--primary);
        color: white;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary:hover {
        background-color: var(--primary-dark);
        box-shadow: var(--shadow-glow);
        transform: translateY(-2px);
        color: white;
    }
    
    .btn-outline {
        background-color: transparent;
        color: var(--text-dark);
        border: 2px solid var(--text-dark);
    }
    
    .btn-outline:hover {
        background-color: var(--text-dark);
        color: var(--bg-main);
    }
    
    .btn-outline-white {
        border-color: white;
        color: white;
    }
    
    .btn-outline-white:hover {
        background-color: white;
        color: var(--text-dark);
    }
    
    .glass {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem 0;
        transition: var(--transition);
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-sm);
    }

    .navbar.scrolled {
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-sm);
        padding: 0.75rem 0;
    }
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        padding: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .nav-logo img {
        height: 72px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    @media (max-width: 576px) {
        .nav-logo img {
            height: 56px;
        }
    }
    
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-item {
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        height: 40px;
        /* sab links ki same height */
        font-family: 'Outfit', sans-serif;
        font-weight: 500;
        font-size: 1.05rem;
        color: var(--primary);
        padding: 0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        text-shadow: none;
    }
    
    .floating-action {
        position: fixed;
        right: 1.25rem;
        bottom: 1.25rem;
        z-index: 1200;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.7rem;
    }
    
    .fab-menu {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: 0.25s ease;
    }
    
    .floating-action.open .fab-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .fab-action,
    .fab-toggle {
        border: none;
        cursor: pointer;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }
    
    .fab-action {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.7rem 0.9rem;
        border-radius: 999px;
        background: white;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
    }
    
    .fab-action.whatsapp {
        color: #095625;
    }
    
    .fab-action.call,
    .fab-action.get-quote-btn {
        color: #00782c;
    }
    
    .fab-toggle {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: linear-gradient(135deg, #25D366, #1faa57);
        color: white;
        font-size: 1.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 180px;
        display: flex;
        flex-direction: column;
        padding: 10px 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: .25s ease;
        z-index: 9999;
    }
    
    .nav-item::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 15px;
    }
    
    .nav-item:hover .dropdown-menu,
    .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-link {
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
        font-size: 0.95rem;
        color: var(--text-dark);
    }
    
    .dropdown-link:hover {
        background: rgba(195, 58, 39, 0.08);
        color: var(--primary);
    }
    
    .navbar.scrolled .nav-link,
    .navbar.scrolled .nav-link:hover,
    .navbar.scrolled .nav-link.active {
        color: var(--primary);
        text-shadow: none;
    }
    
    .navbar.scrolled .nav-logo {
        box-shadow: none;
    }
    
    .nav-mobile-btn {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
    }
    
    .navbar.scrolled .nav-mobile-btn {
        color: var(--text-dark);
        text-shadow: none;
    }
    
    .category-block {
        margin-top: 2.5rem;
    }
    
    .category-heading {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 1.5rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid rgba(195, 58, 39, 0.15);
        scroll-margin-top: 120px;
    }
    
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        padding-top: 80px;
        overflow: hidden;
    }
    
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15, 15, 17, 0.8) 0%, rgba(15, 15, 17, 0.4) 100%);
        z-index: 0;
    }
    
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        background: #0f0f11;
        animation: heroZoom 12s ease-in-out infinite alternate;
    }
    
    .hero-content {
        color: white;
        max-width: 800px;
        animation: fadeUp 1s ease-out;
        position: relative;
        z-index: 1;
    }
    
    .hero-badge {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 1.5rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.1;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .hero-title span {
        color: var(--primary);
    }
    
    .hero-desc {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        color: rgba(255, 255, 255, 0.9);
        max-width: 600px;
    }
    
    .hero-btns {
        display: flex;
        gap: 1rem;
    }
    
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .card {
        background: var(--bg-card);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        border: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
    }
    
    .card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }
    
    .card-img-wrapper {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
    }
    
    .card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }
    
    .card:hover .card-img {
        transform: scale(1.05);
    }
    
    .card-content {
        padding: 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .card-desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .popup-modal {
        background: var(--bg-card);
        width: 90%;
        max-width: 450px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: var(--radius);
        padding: 2.5rem;
        position: relative;
        transform: scale(0.9) translateY(20px);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--glass-border);
    }
    
    .popup-overlay.active .popup-modal {
        transform: scale(1) translateY(0);
    }
    
    .popup-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-muted);
        transition: var(--transition);
    }
    
    .popup-close:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    @media (max-width: 576px) {
        .form-row {
            grid-template-columns: 1fr;
            gap: 0;
        }
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-size: 0.95rem;
    }
    
    .form-input,
    .form-textarea {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        background: var(--bg-main);
        color: var(--text-dark);
        font-family: inherit;
        transition: var(--transition);
    }
    
    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(195, 58, 39, 0.1);
    }
    
    .form-textarea {
        resize: vertical;
        min-height: 120px;
    }
    /* Contact Page FAQ */
    
    .faq-section {
        background: linear-gradient(135deg, var(--accent) 0%, rgba(195, 58, 39, 0.06) 100%);
    }
    
    .faq-container {
        max-width: 900px;
    }
    
    .faq-section .section-header {
        margin-bottom: 2.5rem;
    }
    
    .faq-list {
        display: grid;
        gap: 1rem;
    }
    
    .faq-item {
        background: var(--bg-card);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        transition: var(--transition);
    }
    
    .faq-item:hover,
    .faq-item[open] {
        border-color: rgba(195, 58, 39, 0.35);
        box-shadow: var(--shadow-md);
    }
    
    .faq-item summary {
        position: relative;
        padding: 1.35rem 4rem 1.35rem 1.5rem;
        cursor: pointer;
        list-style: none;
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-dark);
    }
    
    .faq-item summary::-webkit-details-marker {
        display: none;
    }
    
    .faq-item summary::after {
        content: '+';
        position: absolute;
        top: 50%;
        right: 1.5rem;
        width: 2rem;
        height: 2rem;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: rgba(195, 58, 39, 0.1);
        color: var(--primary);
        font-size: 1.4rem;
        line-height: 1;
        transform: translateY(-50%);
        transition: var(--transition);
    }
    
    .faq-item[open] summary::after {
        content: '\2212';
        background: var(--primary);
        color: white;
    }
    
    .faq-item summary:focus-visible {
        outline: 3px solid rgba(195, 58, 39, 0.25);
        outline-offset: -3px;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.4rem;
        color: var(--text-muted);
        border-top: 1px solid var(--glass-border);
    }
    
    .faq-answer p {
        padding-top: 1.2rem;
    }
    
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .animate-fade-up {
        animation: fadeUp 0.8s ease-out forwards;
        opacity: 0;
    }
    
    .delay-1 {
        animation-delay: 0.2s;
    }
    
    .delay-2 {
        animation-delay: 0.4s;
    }
    
    .delay-3 {
        animation-delay: 0.6s;
    }
    
    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: var(--bg-card);
            flex-direction: column;
            padding: 2rem;
            box-shadow: var(--shadow-md);
        }
        .nav-links.active {
            display: flex;
        }
        .nav-mobile-btn {
            display: block;
        }
        .hero-title {
            font-size: 3rem;
        }
        .section {
            padding: 3rem 0;
        }
        .faq-item summary {
            padding: 1.15rem 3.5rem 1.15rem 1.2rem;
            font-size: 1rem;
        }
        .faq-item summary::after {
            right: 1.1rem;
        }
        .faq-answer {
            padding: 0 1.2rem 1.2rem;
        }
    }
    
    .section-header {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 4rem;
    }
    
    .section-subtitle {
        color: var(--primary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .footer {
        background-color: #0f0f11;
        color: white;
        padding: 5rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .footer-col h4 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        color: white;
    }
    
    .footer-links {
        list-style: none;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        color: #a0a0a0;
    }
    
    .footer-links a:hover {
        color: var(--primary);
        padding-left: 5px;
    }
    
    .footer-map iframe {
        display: block;
        width: 100%;
        min-height: 210px;
        border: 0;
        border-radius: 8px;
        transition: transform 0.45s ease, box-shadow 0.45s ease;
    }
    
    .footer-map iframe:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #a0a0a0;
        font-size: 0.9rem;
    }

    .footer-ai {
        text-align: center;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-ai h4 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        color: white;
    }

    .footer-ai-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-ai-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1.1rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        color: #d0d0d0;
        font-size: 0.95rem;
        transition: var(--transition);
    }

    .footer-ai-link svg {
        width: 20px;
        height: 20px;
        fill: var(--ai-color, #ffffff);
        flex: none;
    }

    .footer-ai-link:hover,
    .footer-ai-link:focus-visible {
        color: white;
        border-color: var(--ai-color, #ffffff);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }

    .footer-ai-note {
        min-height: 1.2em;
        margin-top: 0.75rem;
        color: #a0a0a0;
        font-size: 0.85rem;
    }

    @media (max-width: 576px) {
        .footer-ai-link {
            padding: 0.55rem 0.9rem;
            font-size: 0.9rem;
        }
    }
    /* Site-wide motion system */
    
    .btn {
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }
    
    .btn::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(255, 255, 255, 0.16);
        transform: translateX(-105%) skewX(-18deg);
        transition: transform 0.55s ease;
    }
    
    .btn:hover::after {
        transform: translateX(105%) skewX(-18deg);
    }
    
    .has-scroll-animations .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0ms);
        will-change: opacity, transform;
    }
    
    .has-scroll-animations .scroll-reveal.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .has-scroll-animations .scroll-reveal.reveal-from-left {
        transform: translateX(-46px);
    }
    
    .has-scroll-animations .scroll-reveal.reveal-from-right {
        transform: translateX(46px);
    }
    
    .has-scroll-animations .scroll-reveal.reveal-scale {
        transform: scale(0.94);
    }
    
    .has-scroll-animations .scroll-reveal.reveal-visible {
        transform: translate3d(0, 0, 0) scale(1);
    }
    
    .card,
    .blog-card,
    .faq-item {
        will-change: transform;
    }
    
    .card:hover,
    .blog-card:hover {
        border-color: rgba(195, 58, 39, 0.28);
    }
    
    @keyframes pageEnter {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes heroZoom {
        from {
            transform: scale(1);
        }
        to {
            transform: scale(1.07);
        }
    }
    
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    /* Blog Page Styles */
    
    .hero-sm {
        min-height: 60vh;
    }
    
    .blogs-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
    }
    
    .blog-card {
        background: var(--bg-card);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        border: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }
    
    .blog-card:hover {
        transform: translateY(-12px);
        box-shadow: var(--shadow-lg);
    }
    
    .blog-card-img {
        position: relative;
        width: 100%;
        height: 280px;
        overflow: hidden;
    }
    
    .blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }
    
    .blog-card:hover .blog-card-img img {
        transform: scale(1.08);
    }
    
    .blog-category {
        position: absolute;
        top: 1rem;
        left: 1rem;
        background-color: var(--primary);
        color: white;
        padding: 0.4rem 0.9rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    
    .blog-card-content {
        padding: 1.75rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .blog-card-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        line-height: 1.4;
        color: var(--text-dark);
        transition: var(--transition);
    }
    
    .blog-card:hover .blog-card-title {
        color: var(--primary);
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        line-height: 1.6;
        flex-grow: 1;
    }
    
    .blog-card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1.5rem;
        border-top: 1px solid var(--glass-border);
        font-size: 0.85rem;
        color: var(--text-muted);
    }
    
    .blog-card .read-more-btn {
        margin-top: 1.5rem;
        align-self: flex-start;
    }
    
    .blog-author {
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.25rem;
    }
    
    .blog-date {
        font-size: 0.8rem;
        color: var(--text-muted);
    }
    
    .blog-read-time {
        font-weight: 500;
        color: var(--primary);
    }
    /* Newsletter Section */
    
    .newsletter-section {
        background: linear-gradient(135deg, var(--accent) 0%, rgba(195, 58, 39, 0.05) 100%);
    }
    
    .newsletter-container {
        max-width: 600px;
    }
    
    .newsletter-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        text-align: center;
        color: var(--text-dark);
    }
    
    .newsletter-desc {
        font-size: 1rem;
        color: var(--text-muted);
        text-align: center;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .newsletter-form {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-form .form-input {
        flex: 1;
        min-width: 250px;
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .newsletter-form .btn {
        white-space: nowrap;
    }
    
    @media (max-width: 768px) {
        .hero-sm {
            min-height: 50vh;
        }
        .blogs-grid {
            grid-template-columns: 1fr;
        }
        .blog-card-img {
            height: 220px;
        }
        .newsletter-form {
            flex-direction: column;
        }
        .newsletter-form .form-input {
            min-width: 100%;
        }
        .newsletter-title {
            font-size: 1.5rem;
        }
    }
/* ===== Blog listing: linked cards, placeholders, pagination ===== */
a.blog-card-img { display: block; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-placeholder {
    display: flex; align-items: center; justify-content: center; height: 100%;
    padding: 2rem; text-align: center; font-family: 'Outfit', sans-serif; font-weight: 600;
    font-size: 1.2rem; color: var(--text-dark); background: linear-gradient(135deg, #f5f5f5, #e9e3e1);
}
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3.5rem; }
.pagination-link {
    min-width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid var(--glass-border); color: var(--text-dark); font-weight: 600; text-decoration: none;
}
.pagination-link:hover { border-color: var(--primary); color: var(--primary); }
.pagination-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination-gap { padding: 0 0.25rem; color: var(--text-muted); }

/* ===== Blog article (CMS posts) ===== */
.blog-breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.blog-breadcrumb a { color: var(--text-muted); }
.blog-byline { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.blog-draft-notice { background: #fff4e5; color: #8a5300; padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 600; }
.blog-detail { max-width: 820px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: var(--text-dark); overflow-wrap: break-word; }
.blog-detail > * + * { margin-top: 1.1rem; }
.blog-detail h2 { font-size: 1.7rem; line-height: 1.3; margin-top: 2.5rem; }
.blog-detail h3 { font-size: 1.35rem; line-height: 1.35; margin-top: 2rem; }
.blog-detail h4, .blog-detail h5, .blog-detail h6 { font-size: 1.1rem; margin-top: 1.5rem; }
.blog-detail ul, .blog-detail ol { padding-left: 1.5rem; }
.blog-detail ul { list-style: disc; }
.blog-detail ol { list-style: decimal; }
.blog-detail li + li { margin-top: 0.4rem; }
.blog-detail a { color: var(--primary); text-decoration: underline; }
.blog-detail a.btn { text-decoration: none; }
.blog-detail a.btn-primary { color: white; }
.blog-detail a.btn-outline { color: var(--text-dark); }
.blog-detail a.btn-outline:hover { color: var(--bg-main); }
.blog-detail img { max-width: 100%; height: auto; border-radius: var(--radius); }
.blog-detail .blog-detail-cover { width: 100%; margin-bottom: 1rem; }
.blog-detail blockquote { border-left: 4px solid var(--primary); padding: 0.5rem 0 0.5rem 1.25rem; color: var(--text-muted); font-style: italic; }
.blog-detail table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.blog-detail th, .blog-detail td { border: 1px solid var(--glass-border); padding: 0.6rem 0.8rem; text-align: left; }
.blog-detail th { background: var(--accent); }
.blog-detail pre { overflow-x: auto; background: #f5f5f5; padding: 1rem; border-radius: 8px; }
.blog-detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem !important; }

/* Guide pages: quick answer box, captioned figures and scrollable tables */
.quick-answer { background: var(--accent); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.1rem 1.35rem; }
.quick-answer strong { display: block; font-family: 'Outfit', sans-serif; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.35rem; }
.quick-answer p { margin: 0; }
.blog-figure { margin: 2rem 0; }
.blog-figure img { width: 100%; display: block; }
.blog-figure figcaption { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.6rem; text-align: center; }
.blog-detail .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blog-detail .table-wrap table { display: table; min-width: 480px; font-size: 0.95rem; line-height: 1.5; }
.blog-detail .table-wrap th { font-family: 'Outfit', sans-serif; font-weight: 600; }
.blog-detail .table-wrap th, .blog-detail .table-wrap td { border: 1px solid rgba(0, 0, 0, 0.1); min-width: 5rem; vertical-align: top; }
.blog-detail .table-wrap tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.02); }
@media (prefers-color-scheme: dark) {
    .blog-detail .table-wrap th, .blog-detail .table-wrap td { border-color: rgba(255, 255, 255, 0.12); }
    .blog-detail .table-wrap tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
}

.card-guide-link {
    display: inline-block;
    margin: -0.75rem 0 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.card-guide-link:hover { text-decoration: underline; }
.related-reading {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
}

.footer-social { margin-top: 1rem; color: #a0a0a0; }
.footer-social a { color: #d0d0d0; text-decoration: none; }
.footer-social a:hover { color: #fff; text-decoration: underline; }

.author-box {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-card, rgba(0, 0, 0, 0.03));
    border-radius: 8px;
}
.author-box p { margin: 0; }
.author-box .author-box-name { font-weight: 600; margin-bottom: 0.4rem; }
.blog-detail .author-profile-roles { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.blog-detail .author-profile-roles li { margin: 0; padding: 0.35rem 0.8rem; border: 1px solid var(--primary); border-radius: 999px; font-size: 0.9rem; }
.blog-byline a { color: var(--primary); text-decoration: none; font-weight: 500; }
.blog-byline a:hover { text-decoration: underline; }

.author-box { display: flex; gap: 1.25rem; align-items: flex-start; }
.author-box-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin: 0; }
.author-profile-photo { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
@media (max-width: 480px) { .author-box { flex-direction: column; } }
.author-box picture { flex: 0 0 80px; width: 80px; height: 80px; }
.blog-detail .author-box-photo { width: 80px; height: 80px; max-width: none; border-radius: 50%; margin: 0; }
.blog-detail .author-profile-roles--featured li { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; font-size: 1rem; padding: 0.5rem 1rem; }
