@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;700&display=swap');

:root {
    /* Brand Colors (B2Builder Signature Theme) */
    --highlight: #84cc16;
    --standard: #334155;
    --primary-rgb: 132, 204, 22;
    --secondary-rgb: 51, 65, 85;
    
    /* Backgrounds */
    --bg-dark: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --input-bg: #fbfbfd;
    --input-border: rgba(0, 0, 0, 0.08);
    --btn-cart-bg: var(--text-primary);
    --btn-cart-color: #ffffff;
    --shop-card-bg: #ffffff;
    --shop-media-bg: #f6f7fb;
    --shop-toolbar-bg: #ffffff;
    --shop-badge-bg: rgba(255, 255, 255, 0.92);
    --modal-bg: #ffffff;
    --drawer-bg: #ffffff;
    
    /* Typography */
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-secondary-light-surface: var(--standard, #334155);
    --text-primary-light-surface: #0f172a;
    
    /* Effects */
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contextual Smart Contrast for Light / White Surfaces & Cards */
footer,
footer[style*="background: white"],
footer[style*="background:white"],
footer[style*="background: #fff"],
footer[style*="background:#fff"],
footer[style*="background: #ffffff"],
footer[style*="background:#ffffff"],
.footer,
#footer,
form[style*="background: rgba(255, 255, 255"],
form[style*="background: rgba(255,255,255"],
form[style*="background: #fff"],
form[style*="background: white"],
.bg-white,
.bg-light,
.section-white,
.section-light,
.card-white,
.blog-filter-btn:not(.active),
.t-filter-btn:not(.active),
.gallery-tag-btn:not(.active),
section[style*="background: white"],
section[style*="background:white"],
section[style*="background: #fff"],
section[style*="background:#fff"],
section[style*="background: #ffffff"],
section[style*="background:#ffffff"],
section[style*="background: #f8fafc"],
section[style*="background:#f8fafc"],
div[style*="background: white"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background:white"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background: #ffffff"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background:#ffffff"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background: #fff"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background:#fff"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background: #f8fafc"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background:#f8fafc"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background: linear-gradient(180deg, #ffffff"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay),
div[style*="background: linear-gradient(180deg, #fff"]:not(.card):not(.glass):not(.service-card):not(.blog-card):not(.t-card):not(.home-cta):not(.cta-box):not(.cta-universal-card):not(.cta-banner):not(.showcase-classic-card):not(.showcase-classic-body):not(.showcase-tile-card):not(.showcase-tile-overlay) {
    --text-secondary: var(--text-secondary-light-surface);
    --text-primary: var(--text-primary-light-surface);
    --input-bg: #f8fafc;
    --input-border: rgba(0, 0, 0, 0.1);
    --btn-cart-bg: var(--text-primary-light-surface);
    --btn-cart-color: #ffffff;
    --shop-card-bg: #ffffff;
    --shop-toolbar-bg: #ffffff;
    --shop-badge-bg: rgba(255, 255, 255, 0.92);
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: var(--text-primary);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(192, 111, 142, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, var(--font-main));
    font-weight: var(--font-heading-weight, 700);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; line-height: 1.25; }
h2 { font-size: 2.75rem; line-height: 1.3; }
h3 { font-size: 2rem; line-height: 1.35; }
h4 { font-size: 1.5rem; line-height: 1.45; }
h5 { font-size: 1.25rem; line-height: 1.5; }
h6 { font-size: 1rem; line-height: 1.6; }

.display-1 { font-size: 4rem; line-height: 1.25; font-weight: var(--font-heading-weight, 700); }
.display-2 { font-size: 3.5rem; line-height: 1.3; font-weight: var(--font-heading-weight, 700); }


.text-gradient {
    background: linear-gradient(135deg, var(--standard) 0%, var(--highlight) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    vertical-align: baseline;
}

/* Glassmorphism Components */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.card {
    background: var(--card-bg, var(--bg-dark));
    border: 1px solid var(--card-border, var(--glass-border));
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--highlight);
}

.image-circle {
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.image-square {
    aspect-ratio: 1/1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}


.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-circle:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 120px;
}

@media (max-width: 991px) {
    .about-photo-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 3rem;
    }
}

/* ==========================================================================
   About Page Bio Image Frames
   ========================================================================== */
.about-image-frame {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    background: rgba(var(--primary-rgb, 192, 111, 142), 0.08);
}

.about-image-frame .about-frame-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: inherit;
    position: relative;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.about-image-frame:hover img {
    transform: scale(1.03);
}

/* 0. No Mask or Keyline (Original Photo) */
.about-image-frame.about-frame-none {
    width: auto;
    max-width: 280px;
    height: auto;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible;
}
.about-image-frame.about-frame-none .about-frame-media {
    width: auto;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.about-image-frame.about-frame-none img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.about-image-frame.about-frame-none:hover {
    transform: none;
    box-shadow: none !important;
}
.about-image-frame.about-frame-none:hover img {
    transform: none;
}

/* 1. Circular Mask */
.about-image-frame.about-frame-circle {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.about-image-frame.about-frame-circle:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

/* 2. Soft Squircle */
.about-image-frame.about-frame-rounded {
    width: 230px;
    height: 230px;
    border-radius: 32px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
    overflow: hidden;
}
.about-image-frame.about-frame-rounded:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.13);
}

/* 3. Geometric Square */
.about-image-frame.about-frame-square {
    width: 230px;
    height: 230px;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.about-image-frame.about-frame-square:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.12);
}

/* 4. Arched Dome */
.about-image-frame.about-frame-arch {
    width: 220px;
    height: 280px;
    border-radius: 110px 110px 18px 18px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}
.about-image-frame.about-frame-arch:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.14);
}

/* 5. Portrait Card */
.about-image-frame.about-frame-portrait {
    width: 220px;
    height: 285px;
    border-radius: 22px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.11);
    overflow: hidden;
}
.about-image-frame.about-frame-portrait:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.15);
}

/* 6. Polaroid Showcase */
.about-image-frame.about-frame-polaroid {
    width: 230px;
    height: auto;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 10px 34px 10px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.13);
    transform: rotate(-1.5deg);
    overflow: visible;
}
.about-image-frame.about-frame-polaroid .about-frame-media {
    width: 100%;
    height: 210px;
    border-radius: 6px;
    background: #f1f5f9;
}
.about-image-frame.about-frame-polaroid:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.18);
}

@media (max-width: 480px) {
    .about-image-frame.about-frame-circle,
    .about-image-frame.about-frame-rounded,
    .about-image-frame.about-frame-square {
        width: 190px;
        height: 190px;
    }
    .about-image-frame.about-frame-arch {
        width: 180px;
        height: 235px;
        border-radius: 90px 90px 14px 14px;
    }
    .about-image-frame.about-frame-portrait {
        width: 180px;
        height: 240px;
    }
    .about-image-frame.about-frame-polaroid {
        width: 190px;
        padding: 8px 8px 28px 8px;
    }
    .about-image-frame.about-frame-polaroid .about-frame-media {
        height: 174px;
    }
    .about-image-frame.about-frame-none {
        max-width: 220px;
    }
    .about-image-frame.about-frame-none img {
        max-height: 260px;
    }
}

.blog-hero-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.blog-hero-image {
    width: 400px;
    height: 400px;
    border: 1px solid var(--glass-border);
    padding: 5px;
    background: white;
}

@media (max-width: 768px) {
    .blog-hero-image {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .blog-hero-image {
        width: 250px;
        height: 250px;
    }
}

/* Call to Action Section & Universal Component */
.cta-universal-section {
    padding: 3.5rem 0 5.5rem 0;
}

@media (max-width: 768px) {
    .cta-universal-section {
        padding: 2.5rem 0 4rem 0;
    }
}

.home-cta,
.cta-box,
.cta-universal-card {
    position: relative;
    overflow: hidden;
    background: var(--cta-bg, var(--card-bg, #ffffff));
    border: 1px solid var(--cta-border, var(--glass-border));
    border-radius: 28px;
    padding: 4.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.06), 0 0 1px 1px rgba(0, 0, 0, 0.03);
    max-width: 1060px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.home-cta:hover,
.cta-box:hover,
.cta-universal-card:hover {
    border-color: rgba(var(--primary-rgb, 14, 165, 233), 0.35);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb, 14, 165, 233), 0.1);
}

.cta-glow-1,
.home-cta-glow-1 {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 14, 165, 233), 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-glow-2,
.home-cta-glow-2 {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb, 51, 65, 85), 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-card-content,
.home-cta-content {
    position: relative;
    z-index: 2;
}

.home-cta h2,
.cta-box h2,
.cta-universal-card h2 {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.home-cta p,
.cta-box p,
.cta-universal-card p {
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem auto;
}

.home-cta .btn-primary,
.cta-box .btn-primary,
.cta-universal-card .btn-primary {
    padding: 0.95rem 2.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 14, 165, 233), 0.28);
    transition: all 0.25s ease;
}

.home-cta .btn-primary:hover,
.cta-box .btn-primary:hover,
.cta-universal-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 14, 165, 233), 0.4);
}

.home-cta .btn-primary i,
.cta-box .btn-primary i,
.cta-universal-card .btn-primary i {
    transition: transform 0.2s ease;
}

.home-cta .btn-primary:hover i,
.cta-box .btn-primary:hover i,
.cta-universal-card .btn-primary:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .home-cta,
    .cta-box,
    .cta-universal-card {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    .home-cta h2,
    .cta-box h2,
    .cta-universal-card h2 {
        font-size: 1.75rem;
    }
    .home-cta p,
    .cta-box p,
    .cta-universal-card p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .home-cta .btn-primary,
    .cta-box .btn-primary,
    .cta-universal-card .btn-primary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.85rem 1.75rem;
    }
}




.image-square:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.blog-container-narrow {
    max-width: 900px !important;
}


.image-rect {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 100%;
    position: relative;
}

.image-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .image-rect img {
    transform: scale(1.1);
}

.image-rect:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--standard);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Contact & Global Form Controls */
.contact-form {
    transition: var(--transition-smooth);
}

.contact-input {
    width: 100%;
    padding: 0.95rem 1.15rem;
    background: var(--input-bg, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--input-border, var(--glass-border));
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.contact-input:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
    background: var(--input-bg);
}

.contact-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.65;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
}

.section-padding {
    padding: 8rem 0;
}

main:not(.main-container) > section:first-of-type:not(.hero),
main:not(.main-container) > .services-page-wrapper,
main:not(.main-container) > .appointment-page-wrapper,
main:not(.main-container) > .shop-container,
main:not(.main-container) > .gallery-page-wrapper,
main:not(.main-container) > .custom-page-wrapper {
    padding-top: 195px;
}

/* Homepage Hero section maintains standard vertically-centered padding */
main:not(.main-container) > section.hero:first-of-type {
    padding-top: 140px;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--highlight);
    color: var(--btn-primary-text, #ffffff);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--highlight);
    color: var(--btn-primary-text, #ffffff);
    filter: brightness(0.92);
    box-shadow: 0 0 20px rgba(var(--primary-rgb, 192, 111, 142), 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--highlight);
    color: var(--highlight);
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    background: var(--highlight) !important;
    color: #ffffff !important;
    border-color: var(--highlight) !important;
}

.btn-outline:hover *,
.btn-outline:focus *,
.btn-outline:active * {
    color: #ffffff !important;
}

.footer-quote-btn {
    border-color: var(--highlight);
    color: var(--highlight);
}

.footer-quote-btn:hover,
.footer-quote-btn:focus,
.footer-quote-btn:active {
    background: var(--highlight) !important;
    color: #ffffff !important;
    border-color: var(--highlight) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.footer-quote-btn:hover *,
.footer-quote-btn:focus * {
    color: #ffffff !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    padding: 1rem 0;
    background: var(--navbar-adaptive-scrolled-bg, #ffffff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--navbar-adaptive-border, var(--glass-border));
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.logo img {
    height: var(--logo-height, 40px);
    max-height: var(--logo-height, 40px);
    width: auto;
    max-width: var(--logo-max-width, 240px);
    transform: translateY(var(--logo-offset-y, 0px));
    margin-right: var(--logo-offset-x, 0px);
    padding: var(--logo-padding, 0px);
    object-fit: contain;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-logo-img {
    height: var(--footer-logo-height, 40px);
    max-height: var(--footer-logo-height, 40px);
    width: auto;
    max-width: var(--logo-max-width, 240px);
    object-fit: contain;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ==========================================================================
   Adaptive Brand Logo Masks (Dynamic recoloring of PNG/WebP/SVG emblems)
   ========================================================================== */
.logo-adaptive-mask,
.footer-logo-adaptive-mask {
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: 0;
    vertical-align: middle;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-adaptive-mask .logo-mask-source {
    visibility: hidden !important;
    display: block !important;
    height: var(--logo-height, 40px) !important;
    max-height: var(--logo-height, 40px) !important;
    width: auto !important;
    max-width: var(--logo-max-width, 240px) !important;
    object-fit: contain !important;
    pointer-events: none !important;
    transform: translateY(var(--logo-offset-y, 0px)) !important;
    margin-right: var(--logo-offset-x, 0px) !important;
    padding: var(--logo-padding, 0px) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.logo-adaptive-mask .logo-mask-fill {
    position: absolute;
    inset: 0;
    -webkit-mask-image: var(--logo-mask-url);
    mask-image: var(--logo-mask-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-origin: content-box;
    mask-origin: content-box;
    -webkit-mask-clip: content-box;
    mask-clip: content-box;
    background-color: var(--highlight);
    pointer-events: none;
    transform: translateY(var(--logo-offset-y, 0px));
    margin-right: var(--logo-offset-x, 0px);
    padding: var(--logo-padding, 0px);
    box-sizing: border-box;
    transition: background-color 0.25s ease, opacity 0.2s ease;
}

.logo-adaptive-mask.logo-mode-highlight .logo-mask-fill {
    background-color: var(--highlight) !important;
}

.logo-adaptive-mask.logo-mode-standard .logo-mask-fill {
    background-color: var(--standard) !important;
}

.logo-adaptive-mask.logo-mode-white .logo-mask-fill {
    background-color: #ffffff !important;
}

/* Scrolled Navbar scaling */
#navbar.scrolled .logo-adaptive-mask .logo-mask-source {
    max-height: calc(var(--logo-height, 40px) * 0.9) !important;
    height: calc(var(--logo-height, 40px) * 0.9) !important;
}

/* Tone adaptation over dark navbar / hero */
nav.header-dark .logo-adaptive-mask.logo-mode-standard .logo-mask-fill,
nav.nav-tone-dark:not(.scrolled) .logo-adaptive-mask.logo-mode-standard .logo-mask-fill {
    background-color: #ffffff !important;
}

/* Footer adaptive logo */
.footer-logo-adaptive-mask .footer-logo-mask-source {
    visibility: hidden !important;
    display: block !important;
    height: var(--footer-logo-height, 40px) !important;
    max-height: var(--footer-logo-height, 40px) !important;
    width: auto !important;
    max-width: var(--logo-max-width, 240px) !important;
    object-fit: contain !important;
    pointer-events: none !important;
    padding: var(--logo-padding, 0px) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.footer-logo-adaptive-mask .footer-logo-mask-fill {
    position: absolute;
    inset: 0;
    -webkit-mask-image: var(--footer-logo-mask-url);
    mask-image: var(--footer-logo-mask-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-origin: content-box;
    mask-origin: content-box;
    -webkit-mask-clip: content-box;
    mask-clip: content-box;
    background-color: var(--highlight);
    pointer-events: none;
    padding: var(--logo-padding, 0px);
    box-sizing: border-box;
    transition: background-color 0.25s ease;
}

.footer-logo-adaptive-mask.logo-mode-highlight .footer-logo-mask-fill {
    background-color: var(--highlight) !important;
}

.footer-logo-adaptive-mask.logo-mode-standard .footer-logo-mask-fill {
    background-color: var(--standard) !important;
}

.footer-logo-adaptive-mask.logo-mode-white .footer-logo-mask-fill {
    background-color: #ffffff !important;
}

/* Text Based Logo */
.logo.logo-text {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    font-family: var(--font-heading, var(--font-main));
    font-size: calc(var(--logo-height, 40px) * 0.625);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    gap: 0;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    max-width: var(--logo-max-width, 240px);
    flex-shrink: 0;
    transform: translateY(var(--logo-offset-y, 0px));
    margin-right: var(--logo-offset-x, 0px);
    padding: var(--logo-padding, 0px);
    transition: var(--transition-smooth);
}

.logo.logo-text .logo-main,
.logo.logo-text .logo-accent {
    display: inline;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.logo.logo-text .logo-main {
    color: var(--logo-text-color, var(--standard));
    transition: var(--transition-smooth);
}

.logo.logo-text .logo-accent {
    color: var(--logo-text-accent-color, var(--highlight));
    transition: var(--transition-smooth);
}

.logo.logo-text:hover {
    transform: translateY(calc(var(--logo-offset-y, 0px) - 1px));
}

.logo.logo-text.footer-logo-text {
    font-size: calc(var(--footer-logo-height, 40px) * 0.72);
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Header Themes: White Background, Dark Background, and Transparent */

/* 1. White Header Mode (Clean white background on all pages) */
#navbar.header-white,
#navbar.header-light {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

#navbar.header-white.scrolled,
#navbar.header-light.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#navbar.header-white .logo.logo-text .logo-main,
#navbar.header-light .logo.logo-text .logo-main {
    color: var(--text-primary);
}

#navbar.header-white .nav-links a,
#navbar.header-light .nav-links a {
    color: var(--text-secondary);
}

#navbar.header-white .nav-links a:hover,
#navbar.header-white .nav-links a.active,
#navbar.header-light .nav-links a:hover,
#navbar.header-light .nav-links a.active {
    color: var(--highlight);
}

#navbar.header-white .cart-trigger-btn,
#navbar.header-light .cart-trigger-btn {
    color: var(--text-primary);
}

#navbar.header-white .nav-toggle span,
#navbar.header-light .nav-toggle span {
    background: var(--highlight);
}

/* 2. Dark Header Mode (Sleek dark charcoal on all pages) */
#navbar.header-dark {
    background: rgba(18, 18, 22, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

#navbar.header-dark.scrolled {
    background: rgba(14, 14, 18, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#navbar.header-dark .logo.logo-text .logo-main {
    color: #ffffff;
}

#navbar.header-dark .logo.logo-text .logo-accent {
    color: var(--highlight);
}

#navbar.header-dark .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.header-dark .nav-links a:hover,
#navbar.header-dark .nav-links a.active {
    color: var(--highlight);
}

#navbar.header-dark .nav-links a::after {
    background: var(--highlight);
}

#navbar.header-dark .cart-trigger-btn {
    color: #ffffff;
}

#navbar.header-dark .nav-toggle span {
    background: #ffffff;
}

#navbar.header-dark .nav-user-actions .profile-btn {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

#navbar.header-dark .nav-user-actions .login-btn {
    color: rgba(255, 255, 255, 0.85);
}

/* 3. Transparent Header Mode */
#navbar.header-transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

/* Transparent Header: Scrolled state transitions cleanly using adaptive theme colors */
#navbar.header-transparent.scrolled {
    background: var(--navbar-adaptive-scrolled-bg, rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--navbar-adaptive-border, var(--glass-border));
}

#navbar.header-transparent.scrolled .logo.logo-text .logo-main {
    color: var(--navbar-adaptive-logo, var(--text-primary));
    text-shadow: none;
}

#navbar.header-transparent.scrolled .nav-links a {
    color: var(--navbar-adaptive-text, var(--text-secondary));
    text-shadow: none;
}

#navbar.header-transparent.scrolled .nav-links a:hover,
#navbar.header-transparent.scrolled .nav-links a.active {
    color: var(--navbar-adaptive-text-hover, var(--highlight));
}

#navbar.header-transparent.scrolled .cart-trigger-btn {
    color: var(--navbar-adaptive-logo, var(--text-primary));
}

#navbar.header-transparent.scrolled .nav-toggle span {
    background: var(--navbar-adaptive-toggle, var(--highlight));
}

/* Transparent Header: Unscrolled over dark hero banner */
#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .nav-links a {
    color: #ffffff;
    text-shadow: none;
}

#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .nav-links a:hover,
#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .nav-links a.active {
    color: var(--highlight);
    text-shadow: none;
}

#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .logo.logo-text .logo-main {
    color: #ffffff;
    text-shadow: none;
}

#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .cart-trigger-btn {
    color: #ffffff;
}

#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .nav-toggle span {
    background: #ffffff;
}

#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .nav-user-actions .profile-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

#navbar.header-transparent.nav-over-hero.nav-tone-dark:not(.scrolled) .nav-user-actions .login-btn {
    color: #ffffff;
}

/* Transparent Header: Unscrolled over light hero banner (Auto-detected light backdrop OR clean canvas hero) */
#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .nav-links a,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .nav-links a {
    color: var(--text-secondary);
    text-shadow: none;
}

#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .nav-links a:hover,
#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .nav-links a.active,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .nav-links a:hover,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .nav-links a.active {
    color: var(--highlight);
    text-shadow: none;
}

#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .logo.logo-text .logo-main,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .logo.logo-text .logo-main {
    color: var(--text-primary);
    text-shadow: none;
}

#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .cart-trigger-btn,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .cart-trigger-btn {
    color: var(--text-primary);
}

#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .nav-toggle span,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .nav-toggle span {
    background: var(--highlight);
}

#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .nav-user-actions .profile-btn,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .nav-user-actions .profile-btn {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--glass-border);
}

#navbar.header-transparent.nav-over-hero:not(.nav-tone-dark):not(.scrolled) .nav-user-actions .login-btn,
#navbar.header-transparent.nav-over-hero.nav-tone-light:not(.scrolled) .nav-user-actions .login-btn {
    color: var(--text-secondary);
}

/* Transparent Header: Unscrolled on pages without hero (Work, About, Blog, Shop, Contact) */
#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) {
    background: var(--navbar-adaptive-bg, rgba(255, 255, 255, 0.96));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--navbar-adaptive-border, var(--glass-border));
}

#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) .nav-links a {
    color: var(--navbar-adaptive-text, var(--text-secondary));
}

#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) .nav-links a:hover,
#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) .nav-links a.active {
    color: var(--navbar-adaptive-text-hover, var(--highlight));
}

#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) .logo.logo-text .logo-main {
    color: var(--navbar-adaptive-logo, var(--text-primary));
}

#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) .cart-trigger-btn {
    color: var(--navbar-adaptive-logo, var(--text-primary));
}

#navbar.header-transparent:not(.nav-over-hero):not(.scrolled) .nav-toggle span {
    background: var(--navbar-adaptive-toggle, var(--highlight));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--highlight);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: var(--transition-smooth);
}

/* Header Call-to-Action Button */
.header-cta-wrap {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.header-cta-btn {
    padding: 0.55rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 10px rgba(192, 111, 142, 0.2);
    transition: var(--transition-smooth);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(192, 111, 142, 0.35);
    filter: brightness(1.05);
}

.header-cta-btn:active {
    transform: translateY(0);
}

/* Header Appointment Booking Button */
.nav-links li.nav-item-book {
    display: flex;
    align-items: center;
    margin-left: 0.35rem;
}

.nav-links a.nav-book-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.42rem 1.15rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    border-radius: 9999px !important;
    background: var(--highlight) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    text-decoration: none !important;
    border: 1px solid var(--highlight) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    position: relative !important;
    cursor: pointer !important;
}

.nav-links a.nav-book-btn i {
    font-size: 0.85rem;
    color: #ffffff !important;
    transition: transform 0.2s ease;
}

.nav-links a.nav-book-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
}

.nav-links a.nav-book-btn:hover i {
    transform: scale(1.15);
}

.nav-links a.nav-book-btn:active {
    transform: translateY(0) !important;
}

.nav-links a.nav-book-btn.active {
    background: var(--highlight) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.nav-links a.nav-book-btn::after {
    display: none !important;
    content: none !important;
}

.mobile-nav-cta {
    display: none;
}

@media (min-width: 992px) and (max-width: 1140px) {
    .nav-links {
        gap: 0.85rem;
    }
    .header-cta-wrap {
        margin-left: 1rem;
    }
    .header-cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.825rem;
    }
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(192, 111, 142, 0.05);
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--highlight); /* Use highlight color for better visibility */
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    padding-top: 100px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}


.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Full-Width Hero with Background Image */
.hero.hero-has-bg {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Hero with Background Image: Dark Tone Backdrop */
.hero.hero-has-bg.hero-tone-dark h1.text-gradient,
.hero.hero-has-bg.hero-tone-dark h1,
.hero.hero-has-bg:not(.hero-tone-light) h1.text-gradient,
.hero.hero-has-bg:not(.hero-tone-light) h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    filter: none !important;
    text-shadow: none !important;
}

.hero.hero-has-bg.hero-tone-dark p,
.hero.hero-has-bg:not(.hero-tone-light) p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: none !important;
}

/* Hero with Background Image: Light Tone Backdrop (Auto-detected light background) */
.hero.hero-has-bg.hero-tone-light h1.text-gradient,
.hero.hero-has-bg.hero-tone-light h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
    filter: none !important;
    text-shadow: none !important;
}

.hero.hero-has-bg.hero-tone-light p {
    color: var(--text-secondary) !important;
    text-shadow: none !important;
}

.hero.hero-has-bg.hero-tone-light .btn-outline {
    border-color: var(--highlight);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.85);
}

.hero.hero-has-bg .card.glass {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

.hero.hero-has-bg .card.glass h3 {
    color: #ffffff !important;
}

.hero.hero-has-bg .card.glass:not(.pillars-theme-light):not(.pillars-theme-white) p,
.hero.hero-tone-dark .hero-pillars-grid .card.glass:not(.pillars-theme-light):not(.pillars-theme-white) p {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: none;
}

/* Pillars Theme Override: Light Frosted Glass */
.hero .card.glass.pillars-theme-light,
.card.glass.pillars-theme-light {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary, #0f172a) !important;
}

.hero .card.glass.pillars-theme-light:hover,
.card.glass.pillars-theme-light:hover {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: var(--highlight) !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.hero .card.glass.pillars-theme-light h3,
.card.glass.pillars-theme-light h3 {
    color: var(--text-primary, #0f172a) !important;
}

.hero .card.glass.pillars-theme-light p,
.card.glass.pillars-theme-light p {
    color: var(--text-secondary-light-surface, #3f3f46) !important;
    text-shadow: none !important;
}

/* Pillars Theme Override: Solid White Card */
.hero .card.glass.pillars-theme-white,
.card.glass.pillars-theme-white {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary, #0f172a) !important;
}

.hero .card.glass.pillars-theme-white:hover,
.card.glass.pillars-theme-white:hover {
    background: #ffffff !important;
    border-color: var(--highlight) !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.hero .card.glass.pillars-theme-white h3,
.card.glass.pillars-theme-white h3 {
    color: var(--text-primary, #0f172a) !important;
}

.hero .card.glass.pillars-theme-white p,
.card.glass.pillars-theme-white p {
    color: var(--text-secondary-light-surface, #3f3f46) !important;
    text-shadow: none !important;
}

.hero.hero-has-bg .btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero.hero-has-bg .btn-outline:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

/* Hero Capability Pillars Grid: 1 Row of 3 on Desktop, Stacks on Mobile */
.hero-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    width: 100%;
}

.hero-pillars-grid .card p {
    color: var(--text-secondary);
}

@media (max-width: 860px) {
    .hero-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==============================================================================
   5 Distinct Hero Layout Templates
   1. Classic Centered (classic_centered)
   2. Split Right (split_right) - Content Left, Visual Right
   3. Split Left (split_left) - Visual Left, Content Right
   4. Contained Glass Island (card_contained)
   5. Minimal Editorial (minimal_editorial) - Asymmetric display & split subdeck
   ============================================================================== */

/* Base & Common Layout Wrappers */
.hero-layout-classic_centered .hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Split Layouts (Split Right & Split Left) */
.hero-split-container {
    max-width: 1240px !important;
    width: 100%;
    margin: 0 auto;
}

.hero-split-grid {
    display: grid;
    align-items: center;
    gap: 3.5rem;
    width: 100%;
}

.hero-split-right {
    grid-template-columns: 1.15fr 0.85fr;
}

.hero-split-left {
    grid-template-columns: 0.85fr 1.15fr;
}

.hero-split-grid .hero-text-col {
    text-align: left;
}

.hero-split-grid .hero-text-col h1 {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.hero-split-grid .hero-text-col .hero-subheading {
    margin: 0 0 2.25rem 0;
    text-align: left;
    max-width: 580px;
}

/* Hero CTA Actions Container (Sitewide across all 6 hero layouts) */
.hero-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-actions .btn {
    white-space: nowrap;
}

.hero-split-grid .hero-actions {
    justify-content: flex-start;
}

/* Media Showcase Card (Used in Split and Editorial layouts) */
.hero-media-wrapper {
    position: relative;
    width: 100%;
}

.hero-media-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle at center, var(--hero-glow-1, rgba(var(--primary-rgb, 14, 165, 233), 0.3)) 0%, var(--hero-glow-2, rgba(var(--secondary-rgb, 99, 102, 241), 0.15)) 45%, transparent 70%);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
    border-radius: 30px;
    opacity: var(--hero-glow-opacity, 0.85);
    transition: opacity 0.3s ease;
}

.hero-media-card {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 70px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--highlight);
}

.hero-media-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 460px;
    overflow: hidden;
    background: #0b1120;
}

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-card:hover .hero-media-img {
    transform: scale(1.03);
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.75) 100%);
    pointer-events: none;
}

/* Transparent Floating Media (Device Stacks & Transparent PNG/WebP Visuals) */
.hero-media-wrapper.has-transparent-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-wrapper.has-transparent-media .hero-media-glow {
    inset: -35px;
    background: radial-gradient(circle at center, var(--hero-glow-1, rgba(var(--primary-rgb, 14, 165, 233), 0.38)) 0%, var(--hero-glow-2, rgba(var(--secondary-rgb, 99, 102, 241), 0.2)) 50%, transparent 72%);
    filter: blur(48px);
    opacity: var(--hero-glow-opacity, 0.9);
}

/* Shadow & Glow Style Variants */
.hero-media-wrapper.shadow-none .hero-media-glow {
    display: none !important;
}
.hero-media-wrapper.shadow-none .hero-media-card {
    box-shadow: none !important;
}
.hero-media-wrapper.shadow-none .hero-media-card.is-transparent .hero-media-img {
    filter: none !important;
}

.hero-media-wrapper.shadow-neutral .hero-media-glow {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 70%);
}

.hero-media-wrapper.shadow-custom .hero-media-glow {
    background: radial-gradient(circle at center, var(--hero-custom-glow, rgba(var(--primary-rgb, 14, 165, 233), 0.4)) 0%, transparent 70%);
}

.hero-media-card.is-transparent {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    width: 100%;
}

.hero-media-card.is-transparent:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: none !important;
}

.hero-media-card.is-transparent .hero-media-image-wrap {
    background: transparent !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-card.is-transparent .hero-media-img {
    object-fit: contain !important;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 520px;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.55));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.hero-media-card.is-transparent:hover .hero-media-img {
    transform: scale(1.02);
    filter: drop-shadow(0 35px 55px rgba(0, 0, 0, 0.65));
}

/* Clean hero background for 2-column & editorial layouts without background image */
.hero.hero-clean-bg {
    background: radial-gradient(circle at 78% 42%, rgba(var(--primary-rgb, 14, 165, 233), 0.09) 0%, rgba(var(--secondary-rgb, 99, 102, 241), 0.04) 45%, transparent 70%), var(--bg);
}

/* Modern Fallback / Dynamic Showcase Card (when no image uploaded) */
.hero-media-placeholder {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.hero-media-placeholder-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-media-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.hero-media-dot.dot-red { background: #ef4444; }
.hero-media-dot.dot-yellow { background: #f59e0b; }
.hero-media-dot.dot-green { background: #10b981; }

.hero-media-placeholder-title {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-media-stat-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.25rem;
}

.hero-media-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--highlight);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-media-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.hero-media-stat-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-media-code-preview {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-media-tags-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* 4. Contained Glass Island Layout (card_contained) */
.hero-contained-container {
    max-width: 1080px !important;
    width: 100%;
    margin: 0 auto;
}

.hero-island-card {
    background: rgba(15, 23, 42, 0.68) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 28px !important;
    padding: 4.5rem 3.5rem;
    text-align: center;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.hero-island-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.15rem;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
}

.hero-layout-card_contained.hero-has-bg .hero-bg-layer {
    filter: blur(8px) saturate(120%);
    transform: scale(1.05);
}

/* 5. Minimal Editorial Layout (minimal_editorial) */
.hero-editorial-container {
    max-width: 1200px !important;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.hero-editorial-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-editorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--highlight);
}

.hero-editorial-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
}

.hero-editorial-top h1 {
    text-align: left;
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.hero-editorial-deck-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-editorial-deck-left {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--highlight);
}

.hero-editorial-deck-left .hero-subheading {
    margin: 0 0 2.25rem 0;
    text-align: left;
}

.hero-editorial-deck-left .hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start;
}

/* 6. Stacked Center Showcase Layout (stacked_centered) */
.hero-layout-stacked_centered .hero-stacked-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.hero-layout-stacked_centered .hero-stacked-header {
    width: 100%;
    margin-bottom: 2rem;
}

.hero-layout-stacked_centered .hero-stacked-header h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-layout-stacked_centered .hero-stacked-media {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2.5rem auto;
}

.hero-layout-stacked_centered .hero-stacked-footer {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.hero-layout-stacked_centered .hero-subheading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-layout-classic_centered .hero-actions,
.hero-layout-card_contained .hero-actions,
.hero-layout-stacked_centered .hero-actions {
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-layout-stacked_centered .hero-stacked-media {
        margin: 0 auto 1.75rem auto;
    }
}

/* Mobile & Tablet Responsiveness for all Hero Layouts */
@media (max-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-split-left .hero-text-col {
        order: 1;
    }

    .hero-split-left .hero-media-col {
        order: 2;
    }

    .hero-split-right .hero-text-col {
        order: 1;
    }

    .hero-split-right .hero-media-col {
        order: 2;
    }

    .hero-editorial-deck-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-island-card {
        padding: 3rem 1.75rem;
        border-radius: 20px !important;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 360px !important;
        gap: 0.85rem !important;
    }

    .hero-layout-classic_centered .hero-actions,
    .hero-layout-card_contained .hero-actions,
    .hero-layout-stacked_centered .hero-actions {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    .hero-island-card {
        padding: 2.25rem 1.25rem;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .nav-content {
        gap: 0.75rem;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }

    .nav-cart-link {
        flex-shrink: 0;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 56px); /* Reserves space so hamburger is never pushed off screen */
    }

    .nav-cart-link + .nav-toggle {
        margin-left: 0;
    }

    .logo.logo-text {
        font-size: clamp(1.05rem, calc(var(--logo-height, 40px) * 0.55), 1.45rem);
        line-height: 1.15;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        justify-content: flex-start; /* Start from top instead of centering */
        align-items: flex-start;
        padding: 90px 1.5rem 3rem; /* Balanced side padding to maximize usable width */
        gap: 1.25rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
        border-right: none;
        overflow-y: auto; /* Enable scrolling for menu items */
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    #navbar.header-dark .nav-links {
        background: #121216;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for links */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(8) { transition-delay: 0.45s; }
    .nav-links.active li:nth-child(9) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(10) { transition-delay: 0.55s; }
    
    .nav-links a {
        font-size: 1.25rem; /* Slightly smaller for fitting everything */
        display: block;
        padding: 0.5rem 0;
        font-weight: 500;
    }

    #navbar:not(.header-dark) .nav-links a {
        color: var(--text-primary);
        text-shadow: none !important;
    }

    .header-cta-wrap {
        display: none !important;
    }

    .mobile-nav-cta {
        display: block !important;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--glass-border);
    }

    #navbar.header-dark .mobile-nav-cta {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-cta .mobile-cta-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.85rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(192, 111, 142, 0.25);
    }

    .mobile-nav-cta .mobile-cta-btn:hover {
        color: #ffffff !important;
    }

    .mobile-nav-cta a::after {
        display: none !important;
    }

    .nav-links li.nav-item-book {
        width: 100% !important;
        margin: 0.75rem 0 0.25rem !important;
    }

    .nav-links a.nav-book-btn {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}

/* Blog Article Content Typography */
.blog-article-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.blog-article-content pre,
.blog-article-content code {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    background: rgba(0,0,0,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.blog-post-container {
    padding: 4rem;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .blog-post-container {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: calc(100% - 52px);
    }

    .logo.logo-text {
        font-size: clamp(0.95rem, calc(var(--logo-height, 40px) * 0.48), 1.25rem);
        line-height: 1.15;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
}

.blog-article-content h2, .blog-article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--standard);
    font-weight: 700;
}

.blog-article-content p {
    margin-bottom: 1.8rem;
}

/* Image Wraps & Alignment */
.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2.5rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-article-content img.align-left {
    float: left;
    margin-right: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 45%;
}

.blog-article-content img.align-right {
    float: right;
    margin-left: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 45%;
}

.blog-article-content img.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

/* Quill-specific alignments */
.blog-article-content .ql-align-center {
    text-align: center;
}

.blog-article-content .ql-align-right {
    text-align: right;
}

.blog-article-content figure {
    margin: 2.5rem 0;
    display: table;
    clear: both;
}

.blog-article-content figure.image {
    width: 100%;
}

.blog-article-content figure img {
    margin: 0; /* Override previous margin */
    width: 100%;
    display: block;
}

.blog-article-content figcaption {
    background: rgba(0,0,0,0.03);
    padding: 0.8rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--glass-border);
}

.blog-article-content figure.image-style-side {
    float: right;
    max-width: 45%;
    margin-left: 2.5rem;
}

.blog-article-content figure.image-style-align-left {
    float: left;
    max-width: 45%;
    margin-right: 2.5rem;
}

.blog-article-content figure.image-style-align-right {
    float: right;
    max-width: 45%;
    margin-left: 2.5rem;
}

.blog-article-content figure.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

.blog-article-content ul, .blog-article-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.blog-article-content li {
    margin-bottom: 0.8rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2.5rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-article-content blockquote {
    border-left: 4px solid var(--highlight);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: var(--standard);
}

.blog-article-content iframe {
    max-width: 100%;
    height: auto;
}

/* Modern Editorial Table Styling */
.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.25rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-article-content table th,
.blog-article-content table td {
    padding: 12px 18px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #e2e8f0;
}

.blog-article-content table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid #cbd5e1;
}

.blog-article-content table td {
    color: #334155;
    background: #ffffff;
}

.blog-article-content table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.blog-article-content table tbody tr:hover td {
    background: rgba(14, 165, 233, 0.04);
}

@media (max-width: 768px) {
    .blog-article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* ==========================================================================
   Modern Editorial Blog System (Index Page)
   ========================================================================== */

.blog-header-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.blog-header-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
    margin: 0 auto;
}

/* Controls: Category Filter & Search */
.blog-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.blog-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-filter-btn {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 0.55rem 1.15rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.blog-filter-btn:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-1px);
}

.blog-filter-btn.active {
    background: var(--highlight);
    border-color: var(--highlight);
    color: white;
    box-shadow: 0 4px 14px rgba(192, 111, 142, 0.3);
}

.blog-search-box {
    position: relative;
    min-width: 280px;
    max-width: 360px;
    flex-grow: 1;
}

.blog-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.blog-search-input:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(192, 111, 142, 0.15);
}

.blog-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Featured / Spotlight Post Card */
.blog-featured-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    position: relative;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.09);
    border-color: rgba(192, 111, 142, 0.35);
}

.blog-featured-media-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    background: #0f172a;
    text-decoration: none;
}

.blog-featured-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.blog-featured-card:hover .blog-featured-media-img {
    transform: scale(1.04);
}

.blog-featured-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(18, 18, 22, 0.85);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.blog-featured-badge i {
    color: #f59e0b;
}

.blog-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.blog-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(192, 111, 142, 0.08);
    color: var(--highlight);
    border: 1px solid rgba(192, 111, 142, 0.2);
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-date-text,
.blog-read-time {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.blog-featured-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.blog-featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-featured-title a:hover {
    color: var(--highlight);
}

.blog-featured-excerpt {
    color: var(--text-secondary);
    font-size: 1.025rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Grid of Remaining Articles */
.blog-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.blog-grid-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4.5rem;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-media-link {
        min-height: 260px;
    }
    .blog-featured-content {
        padding: 2rem;
    }
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .blog-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-search-box {
        max-width: 100%;
        min-width: 100%;
    }
}

/* Blog Grid Card */
.blog-card {
    background: var(--card-bg, var(--bg-glass, white));
    border: 1px solid var(--card-border, var(--glass-border));
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 440px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(192, 111, 142, 0.35);
}

.blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
    display: block;
    text-decoration: none;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--highlight);
    font-size: 2.5rem;
    opacity: 0.85;
}

.blog-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(18, 18, 22, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--highlight);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-read-more-link {
    color: var(--highlight);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease;
}

.blog-read-more-link:hover {
    transform: translateX(3px);
}

.blog-author-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--highlight);
    color: white;
    font-size: 0.725rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

@media (max-width: 991px) {
    .section-padding {
        padding: 6rem 0 5rem;
    }
    
    main:not(.main-container) > section:first-of-type:not(.hero),
    main:not(.main-container) > .services-page-wrapper,
    main:not(.main-container) > .appointment-page-wrapper,
    main:not(.main-container) > .shop-container,
    main:not(.main-container) > .gallery-page-wrapper,
    main:not(.main-container) > .custom-page-wrapper {
        padding-top: 175px;
    }
}


@media (max-width: 768px) {
    h1, .display-1 { font-size: 2.5rem !important; }
    h2, .display-2 { font-size: 2.1rem !important; }
    h3 { font-size: 1.8rem !important; }
    h6 { font-size: 1rem !important; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 5rem 0 4rem;
    }

    main:not(.main-container) > section:first-of-type:not(.hero),
    main:not(.main-container) > .services-page-wrapper,
    main:not(.main-container) > .appointment-page-wrapper,
    main:not(.main-container) > .shop-container,
    main:not(.main-container) > .gallery-page-wrapper,
    main:not(.main-container) > .custom-page-wrapper {
        padding-top: 160px;
    }

    .container {
        padding: 0 1.5rem;
    }
}


@media (max-width: 480px) {
    h1, .display-1 { font-size: 2rem !important; }
    h2, .display-2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.6rem !important; }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Testimonials Page Redesign (v2) - Modern, Scannable & Interactive
   ========================================================================== */

/* Badge Pill */
.section-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(192, 111, 142, 0.08);
    border: 1px solid rgba(192, 111, 142, 0.25);
    color: var(--highlight);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

/* Trust Proof Metrics Bar */
.testimonials-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin: 0 auto 4rem;
    max-width: 1050px;
}

.t-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.t-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(192, 111, 142, 0.1);
    color: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.t-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.t-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Controls: Search & Category Filter Pills */
.testimonials-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.t-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.t-filter-btn {
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.55rem 1.15rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.t-filter-btn:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    background: rgba(192, 111, 142, 0.04);
}

.t-filter-btn.active {
    background: var(--highlight);
    color: white;
    border-color: var(--highlight);
    box-shadow: 0 4px 15px rgba(192, 111, 142, 0.3);
}

.t-filter-btn .t-count-badge {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.t-filter-btn.active .t-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.t-search-wrapper {
    position: relative;
    min-width: 280px;
    flex-grow: 1;
    max-width: 360px;
}

.t-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.9rem;
    pointer-events: none;
}

.t-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    outline: none;
}

.t-search-input:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(192, 111, 142, 0.15);
}

.t-search-clear {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    display: none;
    padding: 0.2rem;
}

.t-search-clear:hover {
    color: var(--highlight);
}

/* Testimonials Grid (Uniform Equal-Sized Layout) */
.testimonials-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .testimonials-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .testimonials-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 700px) {
    .testimonials-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .testimonials-stats-bar {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .testimonials-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .t-search-wrapper {
        max-width: 100%;
        min-width: 100%;
    }
}

/* Testimonial Card (Equal-Sized Cards) */
.t-card {
    height: 100%;
    min-height: 440px;
    background: var(--card-bg, var(--bg-glass, white));
    border: 1px solid var(--card-border, var(--glass-border));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.t-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.t-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(192, 111, 142, 0.35);
}

.t-card:hover::before {
    opacity: 1;
}

/* Card Author Header */
.t-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    min-height: 72px;
}

.t-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    background-size: cover;
    background-position: center;
}

.t-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.t-author-info {
    flex-grow: 1;
    min-width: 0;
}

.t-author-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.t-author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.t-verified-badge {
    color: #10b981;
    font-size: 0.85rem;
    cursor: help;
}

.t-author-role {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0.4rem 0;
    line-height: 1.35;
    min-height: 2.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.t-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
    min-height: 24px;
    align-items: center;
}

.t-badge-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--standard);
    letter-spacing: 0.02em;
}

.t-badge-company {
    background: rgba(192, 111, 142, 0.08);
    border-color: rgba(192, 111, 142, 0.2);
    color: var(--highlight);
}

/* Card Rating & Pullquote */
.t-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.t-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    display: flex;
    gap: 0.2rem;
}

.t-quote-icon {
    color: var(--highlight);
    opacity: 0.3;
    font-size: 1.4rem;
}

.t-pullquote {
    font-size: 1.025rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 0.85rem;
    position: relative;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Body & Clamping */
.t-quote-body-wrapper {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    height: 112px;
    max-height: 112px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.t-quote-body-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.98) 90%);
    pointer-events: none;
}

.t-quote-body {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.65;
    font-style: normal;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.t-expand-btn {
    background: none;
    border: none;
    color: var(--highlight);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.t-expand-btn:hover {
    color: var(--highlight);
    transform: translateX(3px);
}

.t-copy-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    font-size: 0.775rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.t-copy-btn:hover {
    background: rgba(192, 111, 142, 0.1);
    color: var(--highlight);
    border-color: rgba(192, 111, 142, 0.3);
}

/* Empty State */
.t-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    border: 1px dashed var(--glass-border);
    max-width: 600px;
    margin: 2rem auto;
}

.t-empty-icon {
    font-size: 3rem;
    color: var(--highlight);
    opacity: 0.4;
    margin-bottom: 1.5rem;
}

/* Full Testimonial Modal */
.t-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.t-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.t-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-modal-backdrop.active .t-modal-content {
    transform: scale(1) translateY(0);
}

.t-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.t-modal-close:hover {
    background: rgba(192, 111, 142, 0.15);
    color: var(--highlight);
    transform: rotate(90deg);
}

/* Toast Notification */
.t-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #121216;
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.t-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.t-toast i {
    color: #10b981;
}

/* ==========================================================================
   Modern Editorial Blog Article & Floating Social Share Panel
   ========================================================================== */

/* 1. Top Reading Progress Indicator */
.article-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.article-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--standard), var(--highlight));
    transition: width 0.08s ease-out;
}

/* 2. Floating Social Share Panel (Pinned Top-Right on Desktop) */
.article-floating-share {
    position: fixed;
    top: 130px;
    right: 2.25rem;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-panel-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    padding: 0.9rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.share-panel-heading {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.share-panel-heading i {
    font-size: 0.85rem;
    color: var(--highlight);
}

.share-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.share-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.share-btn.share-twitter:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.share-btn.share-linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}

.share-btn.share-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.share-btn.share-reddit:hover {
    background: #ff4500;
    color: #ffffff;
    border-color: #ff4500;
}

.share-btn.share-copy:hover {
    background: var(--highlight);
    color: #ffffff;
    border-color: var(--highlight);
}

.share-btn.share-print:hover {
    background: var(--standard);
    color: #ffffff;
    border-color: var(--standard);
}

.share-copy-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-copy-tooltip.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

@media (max-width: 1023px) {
    /* Pin the social share panel to the bottom on mobile/tablet */
    .article-floating-share {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0.55rem 1.25rem max(0.55rem, env(safe-area-inset-bottom, 0.55rem)) 1.25rem;
        z-index: 995;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .share-panel-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 600px;
        padding: 0;
        margin: 0 auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        gap: 0.75rem;
    }

    .share-panel-heading {
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        margin-bottom: 0;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        flex-shrink: 0;
    }

    .share-panel-heading i {
        font-size: 0.85rem;
        color: var(--highlight);
    }

    .share-buttons-stack {
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: nowrap;
        overflow: visible;
        padding: 2px 0;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
        font-size: 0.95rem;
        flex-shrink: 0;
        background: #f8fafc;
        border: 1px solid rgba(0, 0, 0, 0.07);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .share-btn svg {
        width: 14px;
        height: 14px;
    }

    .share-btn:active {
        transform: scale(0.92);
    }

    /* Tooltip positioned above button on mobile */
    .share-copy-tooltip {
        right: auto;
        bottom: calc(100% + 10px);
        top: auto;
        left: 50%;
        transform: translateX(-50%) translateY(4px) scale(0.9);
    }

    .share-copy-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 4px 4px 0 4px;
        border-style: solid;
        border-color: #0f172a transparent transparent transparent;
    }

    .share-copy-tooltip.show {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    /* Add bottom spacing to prevent pinned bar from covering bottom article content/footer */
    body[data-page="blog_post"] {
        padding-bottom: 75px;
    }
}

@media (max-width: 480px) {
    .article-floating-share {
        padding: 0.45rem 0.75rem max(0.45rem, env(safe-area-inset-bottom, 0.45rem)) 0.75rem;
    }

    .share-panel-card {
        gap: 0.5rem;
    }

    .share-buttons-stack {
        gap: 0.35rem;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .share-heading-label {
        display: none;
    }
    .share-panel-heading {
        gap: 0;
    }
    .share-panel-heading i {
        font-size: 1rem;
    }
    .share-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 8px;
    }
    .share-buttons-stack {
        gap: 0.3rem;
    }
}

/* 3. Top Breadcrumb Navigation Bar */
.article-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto 2.5rem auto;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-back-to-blog i {
    color: var(--highlight);
    transition: transform 0.2s ease;
}

.btn-back-to-blog:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateX(-3px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 192, 111, 142), 0.15);
}

.btn-back-to-blog:hover i {
    transform: translateX(-3px);
}

.article-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-breadcrumb-nav a:hover {
    color: var(--highlight);
}

.article-breadcrumb-nav .breadcrumb-active {
    color: var(--highlight);
    font-weight: 600;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-btn.share-back:hover {
    background: var(--standard);
    color: #ffffff;
    border-color: var(--standard);
}

/* 4. Article Header & Metadata */
.article-header-wrapper {
    max-width: 860px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.article-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.article-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--highlight);
}

.article-breadcrumb i {
    font-size: 0.65rem;
    opacity: 0.5;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(var(--primary-rgb, 192, 111, 142), 0.1);
    color: var(--highlight);
    border: 1px solid rgba(var(--primary-rgb, 192, 111, 142), 0.2);
    margin-bottom: 1.5rem;
}

/* 4. Full-Width Blog Post Hero & Editorial Layout */
.article-fullwidth-hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    background-color: #0b1120;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 110px;
    transition: color 0.25s ease;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.article-fullwidth-hero.no-hero-image {
    background: radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb, 192, 111, 142), 0.35) 0%, rgba(15, 23, 42, 0.95) 70%),
                linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.article-hero-scrim {
    display: none !important;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    width: 75%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6.5rem 4.5rem 1.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.article-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-hero-top-right {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.article-hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.5rem 1.15rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-hero-back-link:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateX(-3px);
}

.article-hero-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1.15rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(var(--primary-rgb, 192, 111, 142), 0.25);
    color: #ffffff;
    border: 1px solid rgba(var(--primary-rgb, 192, 111, 142), 0.45);
    backdrop-filter: blur(8px);
}

.article-hero-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--highlight);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-hero-author-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65), 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

/* Center-Left Title */
.article-hero-center {
    margin: auto 0 2.5rem 0;
    max-width: 960px;
    text-align: left;
}

.article-hero-title {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin: 0;
    font-family: var(--font-heading, var(--font-main));
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Bottom Metadata Overlay Area */
.article-hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    transition: border-color 0.25s ease;
}

.article-hero-badge-row {
    display: none;
}

/* Single-Line Clean Metadata Row */
.article-hero-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.25s ease;
}

.article-hero-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.25s ease;
}

.article-hero-author-by {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.25s ease;
}

.article-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-hero-meta-item i {
    color: var(--highlight);
    font-size: 0.85rem;
}

.meta-date-short {
    display: none;
}

.article-hero-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    transition: color 0.25s ease;
}

/* Line 2: The Tag on the next line */
.article-hero-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-hero-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.article-hero-tag-pill:hover {
    background: var(--highlight);
    border-color: var(--highlight);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Adaptive Hero Styling (Dynamic Luminance Tone)
   ========================================================================== */

/* Dark Tone Hero (Default / Dark Hero Image) */
.article-fullwidth-hero.hero-tone-dark .article-hero-title {
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-meta-row {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-author {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-author-by {
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-sep {
    color: rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-back-link {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-back-link:hover {
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-3px);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-tag-pill {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-tag-pill:hover {
    background: var(--highlight);
    border-color: var(--highlight);
    color: #ffffff;
}

.article-fullwidth-hero.hero-tone-dark .article-hero-category-badge {
    background: rgba(var(--primary-rgb, 192, 111, 142), 0.35);
    color: #ffffff;
    border: 1px solid rgba(var(--primary-rgb, 192, 111, 142), 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.article-fullwidth-hero.hero-tone-dark .article-hero-author-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Light Tone Hero (Adaptive for Light / Bright Hero Image) */
.article-fullwidth-hero.hero-tone-light .article-hero-title {
    color: #090d16;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.9);
}

.article-fullwidth-hero.hero-tone-light .article-hero-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.article-fullwidth-hero.hero-tone-light .article-hero-meta-row {
    color: #1e293b;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.article-fullwidth-hero.hero-tone-light .article-hero-author {
    color: #0f172a;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.article-fullwidth-hero.hero-tone-light .article-hero-author-by {
    color: #475569;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.article-fullwidth-hero.hero-tone-light .article-hero-sep {
    color: rgba(15, 23, 42, 0.35);
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}

.article-fullwidth-hero.hero-tone-light .article-hero-back-link {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.article-fullwidth-hero.hero-tone-light .article-hero-back-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: rgba(15, 23, 42, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateX(-3px);
}

.article-fullwidth-hero.hero-tone-light .article-hero-category-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--highlight);
    border: 1px solid rgba(var(--primary-rgb, 192, 111, 142), 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    font-weight: 800;
}

.article-fullwidth-hero.hero-tone-light .article-hero-tag-pill {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.14);
    color: #0f172a;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.article-fullwidth-hero.hero-tone-light .article-hero-tag-pill:hover {
    background: var(--highlight);
    border-color: var(--highlight);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.article-fullwidth-hero.hero-tone-light .article-hero-author-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 14px rgba(0, 0, 0, 0.15);
}

.article-fullwidth-hero.hero-tone-light .article-hero-badge-row .article-hero-author-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Hero Title Backdrop Card Options (For Busy / Complex Images)
   ========================================================================== */

.hero-title-card {
    display: inline-block;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* 1. Frosted Glass (Adaptive Glassmorphism) */
.hero-title-backdrop-glass {
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 1.6rem 2.25rem;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.3);
}

.hero-tone-light .hero-title-backdrop-glass {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08);
}

/* 2. Charcoal / Dark Glass */
.hero-title-backdrop-tint-dark {
    background: rgba(11, 17, 32, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 1.6rem 2.25rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.hero-title-backdrop-tint-dark .article-hero-title {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* 3. White / Light Glass */
.hero-title-backdrop-tint-light {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    padding: 1.6rem 2.25rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.hero-title-backdrop-tint-light .article-hero-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* 4. Inline Pill / Text Highlight */
.hero-title-backdrop-pill .article-hero-title {
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff !important;
    display: inline;
    padding: 0.35rem 1rem;
    border-radius: 14px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.5;
    text-shadow: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-tone-light .hero-title-backdrop-pill .article-hero-title {
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 5. Overlapping 75% Width Article Card & Typography */
.article-overlapping-wrapper {
    width: 75%;
    max-width: 1100px;
    margin: -80px auto 4rem auto;
    position: relative;
    z-index: 20;
}

.article-overlapping-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 4rem 4.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

/* Decorative Initial Cap Typography (Bottom-aligned with text baseline) */
.blog-article-content > :is(h1, h2, h3, p):first-child::first-letter {
    float: none;
    display: inline;
    vertical-align: baseline;
    font-size: 2.2em;
    line-height: 0;
    font-weight: 800;
    color: var(--highlight, #0ea5e9);
    font-family: var(--font-heading, var(--font-main));
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* When the opening element is an H1 heading */
.blog-article-content > h1:first-child::first-letter {
    float: none;
    display: inline;
    vertical-align: baseline;
    font-size: 1.65em;
    line-height: 0;
    margin: 0;
    padding: 0;
}


@media (max-width: 992px) {
    .article-overlapping-wrapper {
        width: 88%;
        margin-top: -60px;
    }
    .article-overlapping-card {
        padding: 3rem 2.5rem;
        border-radius: 24px;
    }
    .article-hero-inner {
        width: 88%;
        max-width: 100%;
        padding: 6rem 2.5rem 2rem 2.5rem;
    }
    .article-hero-center {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .article-fullwidth-hero {
        min-height: 440px;
        padding-bottom: 55px;
    }
    .article-hero-inner {
        width: 94%;
        max-width: 100%;
        padding: 5.5rem 1.25rem 1.25rem 1.25rem;
    }
    .article-hero-top {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }
    .article-hero-top-right {
        display: none;
    }
    .article-hero-back-link {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
    .article-overlapping-wrapper {
        width: 94%;
        margin-top: -40px;
    }
    .article-overlapping-card {
        padding: 2.25rem 1.25rem;
        border-radius: 20px;
    }
    .article-hero-center {
        margin: auto 0 1.5rem 0;
    }
    .hero-title-backdrop-glass,
    .hero-title-backdrop-tint-dark,
    .hero-title-backdrop-tint-light {
        padding: 1.1rem 1.35rem;
        border-radius: 18px;
    }
    .hero-title-backdrop-pill .article-hero-title {
        padding: 0.2rem 0.65rem;
        border-radius: 10px;
    }
    .article-hero-title {
        font-size: clamp(1.85rem, 6vw, 2.3rem);
    }
    .article-hero-bottom {
        padding-top: 1.15rem;
        gap: 0;
    }
    .article-hero-badge-row {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 0.75rem;
    }
    .article-hero-badge-row .article-hero-author-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25);
    }
    .article-hero-badge-row .article-hero-category-badge {
        padding: 0.35rem 0.85rem;
        font-size: 0.72rem;
    }
    .article-hero-meta-row {
        gap: 0.55rem;
        font-size: 0.78rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .article-hero-meta-row::-webkit-scrollbar {
        display: none;
    }
    .meta-date-full {
        display: none;
    }
    .meta-date-short {
        display: inline;
    }
    .meta-word-count-sep,
    .meta-word-count-item {
        display: none;
    }
    .article-hero-tags-row {
        display: none;
    }
    .blog-article-content > :is(h1, h2, h3, p):first-child::first-letter {
        float: none;
        display: inline;
        vertical-align: baseline;
        font-size: 2em;
        line-height: 0;
        margin: 0;
        padding: 0;
    }
    .blog-article-content > h1:first-child::first-letter {
        float: none;
        display: inline;
        vertical-align: baseline;
        font-size: 1.55em;
        line-height: 0;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 420px) {
    .article-hero-meta-row {
        gap: 0.45rem;
        font-size: 0.74rem;
    }
    .article-hero-meta-item i {
        font-size: 0.72rem;
    }
    .article-hero-sep {
        font-size: 0.65rem;
    }
}

.article-title {
    font-size: 2.85rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    font-family: var(--font-heading, var(--font-main));
}

.article-body-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.article-main-card {
    background: white;
    border-radius: 28px;
    padding: 4rem 4.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.03);
}

.blog-article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
}

.blog-article-content > p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--text-primary);
    font-weight: 400;
}

.blog-article-content h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-heading, var(--font-main));
    font-weight: 800;
}

.blog-article-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-heading, var(--font-main));
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-article-content h3 {
    font-size: 1.4rem;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading, var(--font-main));
}

.blog-article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem 1.5rem 2.25rem;
    border-left: 4px solid var(--highlight);
    background: rgba(var(--primary-rgb, 192, 111, 142), 0.04);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--standard);
    position: relative;
}

.blog-article-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 14px;
    overflow-x: auto;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
    background: rgba(var(--primary-rgb, 192, 111, 142), 0.08);
    color: var(--highlight);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.blog-article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-article-content video {
    width: 100%;
    max-height: 540px;
    border-radius: 16px;
    margin: 2.25rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #000;
    display: block;
}

.blog-article-content audio {
    width: 100%;
    margin: 1.75rem 0;
    border-radius: 30px;
    display: block;
}

.blog-article-content .article-media-block,
.blog-article-content .article-video-wrapper,
.blog-article-content .article-audio-wrapper {
    margin: 2.25rem 0;
    width: 100%;
    position: relative;
    clear: both;
}

.blog-article-content .article-media-block video,
.blog-article-content .article-video-wrapper video {
    margin: 0;
}

.blog-article-content .article-media-block audio,
.blog-article-content .article-audio-wrapper audio {
    margin: 0;
}

/* Ensure editor controls never display on public frontend */
.blog-article-content .media-block-header,
.blog-article-content .media-drop-indicator {
    display: none !important;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: block;
}

/* 6. Article Author Bio Card */
.article-author-card {
    margin-top: 4rem;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 640px) {
    .article-author-card {
        flex-direction: column;
        text-align: center;
    }
}

.article-author-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--highlight);
    flex-shrink: 0;
}

.article-author-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.article-author-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.article-author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-author-socials {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .article-author-socials {
        justify-content: center;
    }
}

.article-author-socials a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-author-socials a:hover {
    background: var(--highlight);
    color: white;
    border-color: var(--highlight);
}

/* 7. Post Navigation (Prev / Next) */
.article-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 640px) {
    .article-nav-grid {
        grid-template-columns: 1fr;
    }
}

.article-nav-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-nav-card:hover {
    transform: translateY(-3px);
    border-color: var(--highlight);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.article-nav-direction {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

/* 8. Related Stories Section */
.article-related-section {
    max-width: 980px;
    margin: 5rem auto 0 auto;
    padding-top: 3.5rem;
    border-top: 1px solid var(--glass-border);
}

.article-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-related-grid .blog-card {
    height: 100%;
    min-height: 420px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   9. SHOPPING ENGINE & BASKET DRAWER
   ========================================================================== */

/* Cart Trigger in Navbar */
.nav-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-trigger-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.cart-trigger-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--highlight);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--highlight);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(192, 111, 142, 0.4);
    pointer-events: none;
    line-height: 1;
}

/* Shop Container */
.shop-container {
    padding-top: 140px;
    width: 100%;
}

/* Shop Hero */
.shop-hero {
    padding: 0 1.5rem 2.5rem;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--highlight);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.shop-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: var(--font-heading-weight, 700);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.shop-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

/* Shop Filter & Search Toolbar */
.shop-toolbar-wrapper {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.shop-toolbar {
    background: var(--shop-toolbar-bg, #ffffff);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .shop-toolbar-row-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.shop-search-box {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.shop-search-box input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.85rem;
    border-radius: 12px;
    border: 1px solid var(--input-border, rgba(0, 0, 0, 0.08));
    background: var(--input-bg, #fbfbfd);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    outline: none;
}

.shop-search-box input:focus {
    border-color: var(--highlight);
    background: var(--input-bg, #ffffff);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.shop-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.shop-sort-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-sort-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.shop-sort-select {
    height: 44px;
    padding: 0 2.2rem 0 1rem;
    border-radius: 12px;
    border: 1px solid var(--input-border, rgba(0, 0, 0, 0.08));
    background: var(--input-bg, #fbfbfd) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888899' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.85rem center;
    background-size: 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.shop-sort-select:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.shop-sort-select option {
    background: var(--bg-dark, #ffffff);
    color: var(--text-primary);
}

/* Category Filter Chips */
.shop-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.shop-categories-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-filter-chip {
    padding: 0.5rem 1.15rem;
    border-radius: 30px;
    border: 1px solid var(--input-border, rgba(0, 0, 0, 0.08));
    background: var(--input-bg, #fdfdfe);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.shop-filter-chip:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--highlight);
    border-color: rgba(var(--primary-rgb), 0.25);
}

.shop-filter-chip.active {
    background: var(--highlight);
    color: #ffffff;
    border-color: var(--highlight);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.shop-results-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Products Grid */
.shop-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Card */
.shop-product-card {
    background: var(--shop-card-bg, #ffffff);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
}

.shop-card-media {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    background: var(--shop-media-bg, #f6f7fb);
    overflow: hidden;
}

.shop-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-product-card:hover .shop-card-media img {
    transform: scale(1.05);
}

.shop-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 2;
}

.shop-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.shop-badge-cat {
    background: var(--shop-badge-bg, rgba(255, 255, 255, 0.92));
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--glass-border);
}

.shop-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 22, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.shop-product-card:hover .shop-card-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: none;
    padding: 0.6rem 1.15rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.shop-product-card:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: var(--highlight);
    color: #ffffff;
}

.shop-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
    margin-bottom: 0.4rem;
}

.shop-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.shop-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.btn-add-to-cart {
    background: var(--btn-cart-bg, var(--text-primary));
    color: var(--btn-cart-color, #ffffff);
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-smooth);
}

.btn-add-to-cart:hover {
    background: var(--highlight);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Empty / No Results State */
.shop-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--shop-card-bg, #ffffff);
    border-radius: 20px;
    border: 1px dashed var(--glass-border);
}

.shop-no-results-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.shop-no-results h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.shop-no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   SLIDE-OVER CART DRAWER
   ========================================================================== */
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 22, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: var(--drawer-bg, #ffffff);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

body.cart-drawer-open {
    overflow: hidden;
}

.cart-drawer-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cart-drawer-title-row h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.cart-drawer-count {
    color: var(--highlight);
    font-weight: 600;
    font-size: 1.05rem;
}

.cart-close-btn {
    background: var(--input-bg, #f4f4f7);
    border: 1px solid var(--glass-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cart-close-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--highlight);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.75rem;
}

/* Cart Item in Drawer */
.cart-item {
    display: flex;
    gap: 1.15rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
    animation: fadeIn 0.25s ease;
}

.cart-item-media {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--shop-media-bg, #f5f6fa);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.cart-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-thumb-fallback {
    color: var(--text-secondary);
    opacity: 0.5;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.cart-item-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--highlight);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cart-item-price-unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.cart-item-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--input-bg, #f4f5f9);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--glass-border);
}

.cart-step-btn {
    background: transparent;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.cart-step-btn:hover {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--highlight);
}

.cart-qty-input {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-remove-btn {
    background: transparent;
    border: none;
    color: #9499ad;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.cart-item-remove-btn:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
}

/* Empty Cart State in Drawer */
.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 3rem 1.5rem;
}

.cart-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cart-drawer-empty h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.cart-drawer-empty p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 260px;
}

/* Cart Drawer Footer */
.cart-drawer-footer {
    padding: 1.5rem 1.75rem 1.75rem;
    border-top: 1px solid var(--glass-border);
    background: var(--drawer-bg, #fafafc);
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-summary-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.cart-drawer-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--highlight);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(192, 111, 142, 0.35);
    transition: var(--transition-smooth);
}

.cart-checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 111, 142, 0.45);
}

.cart-checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cart-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cart-clear-link {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-clear-link:hover {
    color: #e53e3e;
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */
.shop-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.shop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.shop-modal-content {
    position: relative;
    background: var(--modal-bg, #ffffff);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 2;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-modal.is-open .shop-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--input-bg, #f4f5f8);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--highlight);
}

.quickview-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .quickview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.quickview-media {
    background: var(--shop-media-bg, #f7f8fc);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.quickview-media img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
}

.quickview-info {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.qv-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.qv-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.qv-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.qv-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.stock-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.stock-badge.in-stock {
    background: rgba(46, 204, 113, 0.12);
    color: #27ae60;
}

.stock-badge.out-of-stock {
    background: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

.qv-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    white-space: pre-line;
}

.qv-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.qv-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.qv-qty-input {
    width: 60px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--input-border, rgba(0, 0, 0, 0.12));
    background: var(--input-bg, #ffffff);
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.qv-add-btn {
    flex: 1;
    height: 46px;
    background: var(--highlight);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.qv-add-btn:hover {
    background: #a85875;
    box-shadow: 0 4px 14px rgba(192, 111, 142, 0.4);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.shop-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10003;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.shop-toast {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.shop-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.shop-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-toast-success .shop-toast-icon {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.shop-toast-error .shop-toast-icon {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.shop-toast-msg {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ==========================================================================
   CHECKOUT STATUS PAGES (SUCCESS & CANCEL)
   ========================================================================== */
.shop-status-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.shop-status-card {
    max-width: 600px;
    width: 100%;
    background: var(--shop-card-bg, #ffffff);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.shop-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.shop-status-icon.icon-success {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.shop-status-icon.icon-cancel {
    background: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

.shop-status-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.shop-status-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.shop-order-meta {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 0.9rem;
}

.shop-order-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: var(--text-secondary);
}

.shop-order-meta-row strong {
    color: var(--text-primary);
}

.shop-status-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Showcase & Rich Content Media Embeds (WYSIWYG)
   ========================================================================== */
.showcase-description.rich-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.rich-content p {
    margin-bottom: 0.75rem;
}

.rich-content p:last-child {
    margin-bottom: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0.85rem 0;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rich-content video,
.rich-content .rich-media-video {
    width: 100%;
    max-height: 380px;
    border-radius: 12px;
    background: #000000;
    margin: 0.85rem 0;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rich-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
    margin: 0.85rem 0;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rich-content audio,
.rich-content .rich-media-audio {
    width: 100%;
    margin: 0.85rem 0;
    border-radius: 30px;
    display: block;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-content li {
    margin-bottom: 0.25rem;
}

.rich-content blockquote {
    border-left: 3px solid var(--highlight);
    padding-left: 1rem;
    margin: 0.85rem 0;
    color: var(--text-primary);
    font-style: italic;
}

.rich-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 0.85rem 0;
}

.rich-content code {
    font-family: monospace;
    font-size: 0.88em;
}

/* ==============================================================================
   E-Commerce Multi-Gateway Checkout & BNPL Styles
   ============================================================================== */
.cart-bnpl-teaser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}
.cart-bnpl-teaser strong {
    color: var(--text-primary);
}
.cart-bnpl-badge-pill {
    background: #fdf2f8;
    color: #db2777;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.cart-gateway-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: var(--input-bg, #f1f5f9);
    border: 1px solid var(--glass-border);
    padding: 0.35rem;
    border-radius: 12px;
}
.gateway-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.gateway-tab-btn:hover {
    color: var(--text-primary);
}
.gateway-tab-btn.active {
    background: var(--modal-bg, #ffffff);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.checkout-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.checkout-back-btn:hover {
    color: var(--highlight);
}

.checkout-order-summary-box {
    background: var(--input-bg, #f8fafc);
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-error-alert {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.checkout-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ==============================================================================
 * Trackable Advert & Banner Blocks (Responsive Display & Micro-animations)
 * ============================================================================== */
.b2bld-advert-container {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    margin: 3.5rem auto;
}

.b2bld-advert-container.advert-banner {
    max-width: 1200px;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
}

.b2bld-advert-container.advert-square {
    max-width: 440px;
    padding: 0 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.advert-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    outline: none;
}

.advert-media-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advert-banner .advert-media-wrap {
    width: 100%;
    max-height: 520px;
}

.advert-square .advert-media-wrap {
    aspect-ratio: 1 / 1;
    min-height: 240px;
    max-width: 440px;
}

@media (max-width: 768px) {
    .b2bld-advert-container.advert-banner {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    .advert-banner .advert-media-wrap {
        max-height: 380px;
    }
}

.advert-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Hover Dynamics */
.advert-link:hover .advert-media-wrap,
.advert-link:focus .advert-media-wrap {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.18), 0 0 0 1.5px var(--highlight, #84cc16) inset;
}

.advert-link:hover .advert-img,
.advert-link:focus .advert-img {
    transform: scale(1.03);
}

/* Micro-animation Shimmer across ad */
.advert-media-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 3;
}

.advert-link:hover .advert-media-wrap::after {
    left: 140%;
}

/* Sponsor Badge Chip - Hidden */
.advert-badge {
    display: none !important;
}

/* External Link Hover Action Chip */
.advert-action-chip {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 4;
}

.advert-link:hover .advert-action-chip {
    background: var(--highlight, #84cc16);
    color: #ffffff;
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 6px 18px rgba(132, 204, 22, 0.4);
}

/* Caption bar under creative */
.advert-caption-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.5rem 0;
}

.advert-caption-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==============================================================================
   Search Module Styles (Header Trigger, Modal Overlay, Footer Widget, Search Page)
   ============================================================================== */

/* 1. Header Desktop Search Bar (Right action bar placement) */
.header-desktop-search-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-right: 0.75rem;
}

@media (max-width: 991px) {
    .header-desktop-search-wrap {
        display: none !important;
    }
}

.header-desktop-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 210px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-desktop-search-form:focus-within {
    width: 270px;
}

.header-desktop-search-icon {
    position: absolute;
    left: 0.95rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.header-desktop-search-input {
    width: 100%;
    height: 38px;
    padding: 0 2.4rem 0 2.3rem;
    border-radius: 9999px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.12));
    background: var(--input-bg, #f8fafc);
    color: var(--text-primary, #0f172a);
    font-size: 0.84rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-desktop-search-input:focus {
    border-color: var(--highlight, #84cc16);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
}

.header-desktop-search-btn {
    position: absolute;
    right: 3px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--highlight, #84cc16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.header-desktop-search-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.4);
}

/* Header theme adaptation for desktop search input */
.header-dark .header-desktop-search-input,
.nav-tone-dark.nav-over-hero .header-desktop-search-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}
.header-dark .header-desktop-search-input::placeholder,
.nav-tone-dark.nav-over-hero .header-desktop-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.header-dark .header-desktop-search-icon,
.nav-tone-dark.nav-over-hero .header-desktop-search-icon {
    color: rgba(255, 255, 255, 0.6);
}
.header-dark .header-desktop-search-input:focus,
.nav-tone-dark.nav-over-hero .header-desktop-search-input:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--highlight, #84cc16);
}

/* Floating Suggestions Dropdown for Desktop Search Bar */
.header-search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 0.5rem;
    animation: searchDropFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .header-search-suggestions-dropdown,
.dark-theme .header-search-suggestions-dropdown {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

@keyframes searchDropFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-search-drop-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-search-drop-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary, #0f172a);
    transition: all 0.15s ease;
}

.header-search-drop-item:hover,
.header-search-drop-item.selected {
    background: rgba(132, 204, 22, 0.1);
}

[data-theme="dark"] .header-search-drop-item:hover,
[data-theme="dark"] .header-search-drop-item.selected,
.dark-theme .header-search-drop-item:hover,
.dark-theme .header-search-drop-item.selected {
    background: rgba(255, 255, 255, 0.08);
}

.header-search-drop-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(132, 204, 22, 0.15);
    color: var(--highlight, #84cc16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.header-search-drop-info {
    flex: 1;
    min-width: 0;
}

.header-search-drop-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .header-search-drop-title,
.dark-theme .header-search-drop-title {
    color: #f1f5f9;
}

.header-search-drop-meta {
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
    margin-top: 0.1rem;
}

.header-search-drop-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.header-search-drop-view-all {
    display: block;
    margin-top: 0.4rem;
    padding: 0.55rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--highlight, #84cc16);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.header-search-drop-view-all:hover {
    background: rgba(132, 204, 22, 0.08);
}

/* 2. Mobile Nav Search Bar (strictly hidden on desktop, visible on mobile) */
@media (min-width: 992px) {
    .mobile-nav-search-item {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .mobile-nav-search-item {
        display: block !important;
        width: 100%;
        padding: 0.25rem 0 0.85rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.15);
        margin-bottom: 0.75rem;
        box-sizing: border-box;
    }
}

.mobile-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.mobile-search-input {
    width: 100%;
    padding: 0.7rem 2.8rem 0.7rem 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--input-border, rgba(0, 0, 0, 0.1));
    background: var(--input-bg, #f8fafc);
    color: var(--text-primary, #0f172a);
    font-size: 16px !important; /* Prevents iOS Safari 120% viewport auto-zoom on focus */
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.mobile-search-input:focus {
    border-color: var(--highlight, #84cc16);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18);
    background: #ffffff;
}

.mobile-search-btn {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--highlight, #84cc16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.mobile-search-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.mobile-search-btn:active {
    transform: scale(0.92);
}

/* Dark theme styling for mobile nav search */
#navbar.header-dark .mobile-search-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}
#navbar.header-dark .mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
#navbar.header-dark .mobile-search-icon {
    color: rgba(255, 255, 255, 0.55);
}
#navbar.header-dark .mobile-search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--highlight, #84cc16);
}

/* 3. Global Search Modal Overlay */
.site-search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 1.25rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.site-search-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-search-modal-box {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-search-modal-backdrop.active .site-search-modal-box {
    transform: translateY(0) scale(1);
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 0.75rem;
}

.search-modal-form {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-modal-icon {
    font-size: 1.15rem;
    color: var(--text-secondary, #64748b);
    margin-right: 0.85rem;
}

.search-modal-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    font-family: inherit;
}

.search-modal-spinner {
    color: var(--highlight, #84cc16);
    font-size: 1rem;
    margin-right: 0.5rem;
}

.search-modal-clear {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.search-modal-clear:hover {
    color: #475569;
}

.search-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.search-modal-close kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    font-family: inherit;
}

.search-modal-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.search-modal-section-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.85rem;
}

.search-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.65rem;
}

.search-quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-quick-link-item i {
    color: var(--highlight, #84cc16);
    font-size: 0.9rem;
}

.search-quick-link-item:hover {
    background: #ffffff;
    border-color: var(--highlight, #84cc16);
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.search-modal-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.search-modal-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.search-modal-item:hover,
.search-modal-item.selected {
    background: #f1f5f9;
}

.search-modal-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(132, 204, 22, 0.12);
    color: var(--highlight, #84cc16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-modal-item-content {
    flex: 1;
    min-width: 0;
}

.search-modal-item-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.search-modal-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-modal-item-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.search-modal-item-snippet {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-modal-item-arrow {
    font-size: 0.8rem;
    color: #94a3b8;
    opacity: 0;
    transition: all 0.15s ease;
}

.search-modal-item:hover .search-modal-item-arrow,
.search-modal-item.selected .search-modal-item-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: var(--highlight, #84cc16);
}

.search-modal-no-results {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

.search-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
    font-size: 0.78rem;
    color: #64748b;
}

.search-footer-hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-footer-hint kbd {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
}

.search-footer-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--highlight, #84cc16);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.search-footer-view-all:hover {
    gap: 0.55rem;
}

/* 4. Footer Search Widget */
.footer-search-col {
    display: flex;
    flex-direction: column;
}

.footer-search-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.footer-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary, #64748b);
    font-size: 0.92rem;
    pointer-events: none;
}

.footer-search-input {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.12));
    background: var(--input-bg, #f8fafc);
    color: var(--text-primary, #0f172a);
    font-size: 16px; /* Prevents iOS Safari auto-zoom on mobile */
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.footer-search-input:focus {
    border-color: var(--highlight, #84cc16);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18);
}

.footer-search-btn {
    position: absolute;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--highlight, #84cc16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-search-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.35);
}

/* 5. Search Results Page (/search) */
.search-page-wrapper {
    position: relative;
    min-height: 80vh;
    padding-top: 2rem;
    overflow-x: clip; /* Prevents ambient top glow or cards from causing horizontal scroll */
    width: 100%;
    box-sizing: border-box;
}

.search-page-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 100vw);
    max-width: 100%;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 132, 204, 22), 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.search-hero-card {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem;
    padding: 3rem 2rem 2.5rem;
    background: var(--bg-card, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    border-radius: 28px;
    box-shadow: var(--shadow-premium, 0 10px 30px rgba(0, 0, 0, 0.06));
    box-sizing: border-box;
}

.search-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb, 132, 204, 22), 0.12);
    color: var(--highlight, #84cc16);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.search-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.85rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.search-query-text {
    color: var(--highlight, #84cc16);
    overflow-wrap: break-word;
    word-break: break-word;
}

.search-hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #475569);
    margin: 0 auto 2rem;
    max-width: 580px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.search-input-form {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    box-sizing: border-box;
}

.search-input-box {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--glass-border, #e2e8f0);
    border-radius: 9999px;
    padding: 0.35rem 0.4rem 0.35rem 1.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.search-input-box:focus-within {
    border-color: var(--highlight, #84cc16);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb, 132, 204, 22), 0.16);
}

.search-box-icon {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-box-input {
    flex: 1 1 0;
    min-width: 0; /* Critical: allows input to shrink in flex containers */
    width: 0;
    border: none;
    background: transparent;
    font-size: 16px; /* Prevents iOS Safari auto-zoom on mobile */
    color: #0f172a;
    outline: none;
    font-family: inherit;
    font-weight: 500;
}

.search-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.search-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Category Filter Pills */
.search-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
    max-width: 100%;
    box-sizing: border-box;
}

.search-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    border-radius: 9999px;
    color: var(--text-secondary, #475569);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-filter-pill:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary, #0f172a);
    transform: translateY(-1px);
}

.search-filter-pill.active {
    background: var(--text-primary, #0f172a);
    color: #ffffff;
    border-color: var(--text-primary, #0f172a);
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
    background: rgba(0, 0, 0, 0.12);
}

.search-filter-pill.active .filter-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Results Container & Cards */
.search-results-container {
    max-width: 1040px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.search-results-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary, #475569);
    overflow-wrap: break-word;
    word-break: break-word;
}

.search-active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(var(--primary-rgb, 132, 204, 22), 0.12);
    color: var(--text-primary, #0f172a);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.search-active-filter-badge a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

.search-active-filter-badge a:hover {
    color: #0f172a;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}

/* Responsive adjustments for Search Page on Mobile */
@media (max-width: 640px) {
    .search-page-wrapper {
        padding-top: 1rem;
    }

    .search-hero-card {
        padding: 1.75rem 1rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 20px;
    }

    .search-hero-title {
        font-size: clamp(1.4rem, 6vw, 1.85rem);
    }

    .search-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .search-input-box {
        padding: 0.3rem 0.35rem 0.3rem 0.95rem;
    }

    .search-box-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .search-box-input {
        font-size: 16px !important;
    }

    .search-clear-btn {
        width: 26px;
        height: 26px;
        margin-right: 0.35rem;
    }

    .search-submit-btn {
        padding: 0.6rem 0.95rem;
        font-size: 0.86rem;
        gap: 0.35rem;
    }

    /* Horizontal scrollable carousel for filter pills on mobile */
    .search-filter-pills {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0.2rem 0.5rem;
        margin-top: 1.25rem;
    }

    .search-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-result-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .search-card-title {
        font-size: 1.05rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .search-empty-card,
    .search-prompt-card {
        padding: 2.25rem 1.25rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .search-hero-card {
        padding: 1.5rem 0.85rem 1.25rem;
    }

    .search-input-box {
        padding: 0.25rem 0.25rem 0.25rem 0.8rem;
    }

    .search-submit-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .search-submit-btn .search-submit-text {
        display: none;
    }

    .search-submit-btn i {
        font-size: 0.85rem;
    }

    .search-results-meta-bar {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.search-result-card {
    background: #ffffff;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: var(--highlight, #84cc16);
}

.search-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.search-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 600;
}

/* Badge colors */
.badge-page {
    background: #f1f5f9;
    color: #475569;
}
.badge-service {
    background: #e0e7ff;
    color: #3730a3;
}
.badge-work {
    background: #f3e8ff;
    color: #6b21a8;
}
.badge-blog {
    background: #dcfce7;
    color: #15803d;
}
.badge-shop {
    background: #fef3c7;
    color: #b45309;
}
.badge-event {
    background: #ffe4e6;
    color: #be123c;
}

.search-card-meta {
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.search-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.search-card-title a {
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-card-title a:hover {
    color: var(--highlight, #84cc16);
}

.search-card-snippet {
    font-size: 0.88rem;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    flex: 1;
}

mark.search-highlight {
    background: rgba(var(--primary-rgb, 132, 204, 22), 0.28);
    color: inherit;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.1em 0.25em;
}

.search-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--highlight, #84cc16);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.search-card-action:hover {
    gap: 0.65rem;
}

/* Empty States */
.search-empty-card,
.search-prompt-card {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    background: #ffffff;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.search-empty-icon-wrap,
.search-prompt-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 132, 204, 22), 0.12);
    color: var(--highlight, #84cc16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.search-empty-title,
.search-prompt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 0.75rem;
}

.search-empty-subtitle,
.search-prompt-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
    margin: 0 auto 1.75rem;
    max-width: 480px;
}

.search-empty-tips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    max-width: 380px;
    margin: 0 auto 2rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.search-tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
}

.search-tip-item i {
    color: #10b981;
    font-size: 0.85rem;
}

.search-popular-chips-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.search-popular-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-popular-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-chip i {
    color: var(--highlight, #84cc16);
    font-size: 0.85rem;
}

.search-chip:hover {
    background: #ffffff;
    border-color: var(--highlight, #84cc16);
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Dark Theme Adjustments for Search Page */
body[data-theme="dark"] .search-hero-card,
.dark-theme .search-hero-card,
[data-theme-preset*="dark"] .search-hero-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .search-input-box,
.dark-theme .search-input-box,
[data-theme-preset*="dark"] .search-input-box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="dark"] .search-box-input,
.dark-theme .search-box-input,
[data-theme-preset*="dark"] .search-box-input {
    color: #ffffff;
}

body[data-theme="dark"] .search-result-card,
.dark-theme .search-result-card,
[data-theme-preset*="dark"] .search-result-card,
body[data-theme="dark"] .search-empty-card,
.dark-theme .search-empty-card,
[data-theme-preset*="dark"] .search-empty-card,
body[data-theme="dark"] .search-prompt-card,
.dark-theme .search-prompt-card,
[data-theme-preset*="dark"] .search-prompt-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .search-card-title a,
.dark-theme .search-card-title a,
[data-theme-preset*="dark"] .search-card-title a {
    color: #ffffff;
}

body[data-theme="dark"] .search-card-title a:hover,
.dark-theme .search-card-title a:hover,
[data-theme-preset*="dark"] .search-card-title a:hover {
    color: var(--highlight, #84cc16);
}

body[data-theme="dark"] .search-card-footer,
.dark-theme .search-card-footer,
[data-theme-preset*="dark"] .search-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .search-chip,
.dark-theme .search-chip,
[data-theme-preset*="dark"] .search-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body[data-theme="dark"] .search-chip:hover,
.dark-theme .search-chip:hover,
[data-theme-preset*="dark"] .search-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

[id^="service-"] {
    scroll-margin-top: 100px;
}

/* ==========================================================================
   CRM Newsletter & Signup Blocks (Responsive)
   ========================================================================== */
.crm-footer-block {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--glass-border, #e2e8f0);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03);
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.crm-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.crm-footer-info {
    flex: 1.2;
    min-width: 260px;
    box-sizing: border-box;
}

.crm-footer-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    font-family: var(--font-heading, inherit);
    line-height: 1.3;
}

.crm-footer-subtitle {
    margin: 0;
    color: var(--text-secondary, #64748b);
    font-size: 0.92rem;
    line-height: 1.6;
    font-family: var(--font-body, inherit);
}

.crm-footer-form-wrap {
    flex: 1;
    min-width: 260px;
    max-width: 440px;
    box-sizing: border-box;
}

.crm-footer-form {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.crm-footer-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--input-border, #cbd5e1);
    font-size: 0.9rem;
    outline: none;
    background: var(--input-bg, #f8fafc);
    color: var(--text-primary, #0f172a);
    font-family: var(--font-body, inherit);
    box-sizing: border-box;
}

.crm-footer-btn {
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
    font-family: var(--font-heading, inherit);
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .crm-footer-block {
        padding: 1.25rem 1rem !important;
        margin-bottom: 2rem !important;
        border-radius: 14px !important;
    }

    .crm-footer-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .crm-footer-info {
        min-width: 0 !important;
        width: 100% !important;
    }

    .crm-footer-title {
        font-size: 1.15rem !important;
    }

    .crm-footer-form-wrap {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .crm-footer-form {
        flex-direction: column !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .crm-footer-input {
        width: 100% !important;
        flex: none !important;
        padding: 0.8rem 1rem !important;
    }

    .crm-footer-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        padding: 0.8rem 1rem !important;
    }
}

/* ==========================================================================
   Header Language Picker & Switcher
   ========================================================================== */
.mobile-nav-lang {
    display: none !important;
}

.nav-lang-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.75rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.nav-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.65rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-lang-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--highlight);
    color: var(--highlight);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#navbar.header-dark .nav-lang-toggle,
#navbar.nav-tone-dark:not(.scrolled) .nav-lang-toggle,
nav.header-dark .nav-lang-toggle,
nav.nav-tone-dark:not(.scrolled) .nav-lang-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

#navbar.header-dark .nav-lang-toggle:hover,
#navbar.nav-tone-dark:not(.scrolled) .nav-lang-toggle:hover,
nav.header-dark .nav-lang-toggle:hover,
nav.nav-tone-dark:not(.scrolled) .nav-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

#navbar.header-white .nav-lang-toggle,
#navbar.header-light .nav-lang-toggle,
#navbar.scrolled .nav-lang-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.nav-lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.nav-lang-code {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.nav-lang-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-lang-picker.open .nav-lang-arrow {
    transform: rotate(180deg);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 165px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 0.4rem;
    z-index: 10002;
    display: none;
    transform-origin: top right;
    animation: langDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-dark .nav-lang-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.nav-lang-picker.open .nav-lang-dropdown {
    display: block;
}

@keyframes langDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-lang-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 0.35rem 0.6rem 0.25rem;
}

.nav-lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-lang-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-lang-item:hover {
    background: rgba(var(--primary-rgb, 2, 132, 199), 0.08);
    color: var(--highlight);
    transform: translateX(2px);
}

.nav-lang-item.active {
    background: rgba(var(--primary-rgb, 2, 132, 199), 0.12);
    color: var(--highlight);
    font-weight: 700;
}

.nav-lang-item-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.nav-lang-item-name {
    flex: 1;
}

.nav-lang-item-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-lang-item-check {
    font-size: 0.75rem;
    color: var(--highlight);
    margin-left: 0.35rem;
}

/* Responsive Breakpoints: Show dropdown pill only on Desktop; Show inline drawer list on Mobile */
@media (max-width: 991px) {
    .nav-lang-picker {
        display: none !important;
    }
    .mobile-nav-lang {
        display: block !important;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--glass-border);
    }
}





