/* style.css */
:root {
    --primary-color: #1A9345; /* New Eden Fresh Green */
    --accent-color: #137234; /* Darker Green for contrast/buttons */
    --bg-color: #ffffff; /* Clean White */
    --text-color: #333333;
    --light-gray: #f2f9f5; /* Soft light green-gray for backgrounds */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    /* Use Prompt for Thai characters and Inter for English */
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: #555; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(252, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    font-size: 0.95rem;
    font-weight: 500;
}

.lang-switcher a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
    display: inline-block;
}

.lang-switcher a:hover {
    color: var(--accent-color);
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh; /* Changed from height to min-height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(19, 114, 52, 0.75), rgba(19, 114, 52, 0.85)), url('Hero/Hero.webp') center/cover;
    color: var(--white);
    padding: 120px 20px 80px; /* Added padding to prevent overlapping with navbar */
    margin-top: 0;
    position: relative; /* Required for scroll-down indicator */
}

.hero-content {
    width: 100%;
    max-width: 100%;
}

.hero h1 {
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 24px;
    word-break: break-word; /* Ensure long Thai words wrap properly */
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    opacity: 1;
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Generic Section */
section {
    padding: 100px 0;
}

/* About Section */
.about {
    background-color: var(--bg-color);
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Products / Menu Section */
.products {
    background-color: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Horizontal Carousel Grid */
.carousel-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px; /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    -webkit-overflow-scrolling: touch;
}
.carousel-grid::-webkit-scrollbar {
    height: 8px;
}
.carousel-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.carousel-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.carousel-grid .card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .carousel-grid .card {
        flex: 0 0 calc(50% - 15px);
    }
}
@media (max-width: 576px) {
    .carousel-grid .card {
        flex: 0 0 calc(50% - 15px); /* Exactly 2 items on mobile */
    }
    .card {
        padding: 15px;
    }
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .card-img {
        margin-bottom: 15px;
    }
    .product-grid .product-card h3 {
        font-size: 0.95rem;
    }
    .product-grid .product-card p {
        font-size: 0.8rem;
    }
    .product-grid .product-card .price {
        font-size: 1rem;
        margin: 8px 0;
    }
    .product-grid .product-card .btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

.card {
    position: relative;
    background-color: var(--white);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.carousel-grid .card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -16px; /* Exactly in the middle of the 30px gap */
    height: 80%;
    width: 2px;
    background-color: rgba(0,0,0,0.08);
    border-radius: 2px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: rgba(19, 114, 52, 0.2);
}

.card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Hero Reviews Section (Horizontal Scroll) */
.hero-reviews {
    margin-top: 30px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 15px; /* space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.hero-reviews::-webkit-scrollbar {
    height: 8px;
}

.hero-reviews::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.hero-reviews::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.hero-reviews::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-review-card {
    flex: 0 0 300px; /* Fixed width for scrolling cards, showing about 3 cards */
    scroll-snap-align: start;
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    transition: transform 0.3s ease;
}

.hero-review-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

/* Reviews Section */
.reviews-section {
    background-color: var(--white);
    padding: 80px 0;
}

.review-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.review-author h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-color);
}

.review-stars {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 15px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card h3 {
    margin-bottom: 15px;
}

/* Shop Section */
.shop {
    background-color: var(--bg-color);
}

.product-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Booking Section */
.booking {
    background-color: var(--white);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    align-items: flex-start;
}

.booking-info,
.booking-form-container {
    min-width: 0;
}

.booking-info {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.booking-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

.booking-form-container {
    background-color: var(--bg-color);
    margin: 0 auto;
    max-width: 980px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.form-group input:not([type="checkbox"]):focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking-form-container {
        padding: 24px;
    }
}

/* FAQ Section (Crucial for AEO) */
.faq {
    background-color: var(--light-gray);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.faq-item p {
    margin-bottom: 0;
}

.faq-page-preview {
    background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 100%);
}

.faq-loading,
.faq-empty {
    width: 100%;
    text-align: center;
    color: #65766b;
    padding: 24px;
}

.faq-empty.error {
    color: #b42318;
}

.faq-card {
    background: var(--white);
    border: 1px solid rgba(13, 107, 58, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(13, 77, 43, 0.06);
    margin-bottom: 18px;
    overflow: hidden;
}

.faq-card details {
    padding: 0;
}

.faq-card summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    color: var(--primary-color);
    font-weight: 800;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef8ef;
    color: var(--accent-color);
    flex-shrink: 0;
    font-size: 1.2rem;
}

.faq-card details[open] summary::after {
    content: "-";
}

.faq-card summary span {
    display: block;
}

.faq-card summary small {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f8f0;
    color: #4c7259;
    font-size: 0.78rem;
    white-space: nowrap;
}

.faq-card p {
    margin: 0;
    padding: 0 24px 24px;
    color: #4e6054;
    line-height: 1.75;
}

.faq-more-link {
    text-align: center;
    margin-top: 24px;
}

.faq-more-btn {
    border: 0;
    cursor: pointer;
}

.faq-hub-hero {
    padding: 110px 0 55px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(20, 148, 71, 0.12), transparent 44%), #f2faf5;
}

.faq-hub-hero h1 {
    color: var(--primary-color);
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 16px;
}

.faq-hub-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #52645a;
    font-size: 1.12rem;
}

.faq-hub {
    background: #f7fbf8;
    padding: 60px 0 100px;
}

.faq-hub-panel {
    max-width: 1060px;
    margin: 0 auto;
}

.faq-hub-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    margin-bottom: 28px;
}

.faq-hub-toolbar input,
.faq-hub-toolbar select {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(13, 107, 58, 0.18);
    border-radius: 16px;
    padding: 0 18px;
    background: #fff;
    font: inherit;
    color: #21382b;
}

.faq-hub-category {
    margin-bottom: 38px;
}

.faq-hub-category h2 {
    color: var(--primary-color);
    font-size: 1.55rem;
    margin: 0 0 16px;
}

.faq-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 768px) {
    .faq-card summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-card summary::after {
        position: absolute;
        right: 18px;
    }

    .faq-hub-toolbar,
    .faq-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Listing Section */
.blog-listing {
    background-color: var(--white);
}

.blog-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-card-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-list-loading .blog-card {
    border: 1px solid rgba(15, 122, 61, 0.08);
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    pointer-events: none;
}

.blog-list-loading .blog-card:hover {
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    transform: none;
}

.blog-skeleton-media,
.blog-skeleton-line,
.blog-skeleton-pill,
.blog-skeleton-button {
    background: linear-gradient(90deg, rgba(225, 236, 228, 0.72), rgba(246, 250, 247, 0.95), rgba(225, 236, 228, 0.72));
    background-size: 220% 100%;
    animation: featuredSkeletonShimmer 1.25s ease-in-out infinite;
}

.blog-skeleton-media {
    height: 200px;
    width: 100%;
}

.blog-skeleton-pill {
    border-radius: 999px;
    height: 14px;
    margin-bottom: 18px;
    width: 45%;
}

.blog-skeleton-line {
    border-radius: 10px;
    height: 16px;
    margin-bottom: 12px;
    width: 100%;
}

.blog-skeleton-line.short {
    width: 62%;
}

.blog-skeleton-line.medium {
    width: 82%;
}

.blog-skeleton-button {
    border-radius: 999px;
    height: 44px;
    margin-top: 22px;
    width: 150px;
}

/* Single Blog Post */
.blog-post {
    background-color: var(--bg-color);
    padding-top: 120px; /* offset for navbar */
    padding-bottom: 80px;
}

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

.blog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.blog-post-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

.blog-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.8rem;
    text-align: left;
    margin: 40px 0 20px;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-post-loading .blog-header {
    margin-bottom: 36px;
}

.blog-post-loading .blog-post-img {
    background: linear-gradient(90deg, rgba(225, 236, 228, 0.72), rgba(246, 250, 247, 0.95), rgba(225, 236, 228, 0.72));
    background-size: 220% 100%;
    height: 360px;
    animation: featuredSkeletonShimmer 1.25s ease-in-out infinite;
}

.blog-post-loading .blog-content {
    background: rgba(255,255,255,0.72);
    border-radius: 18px;
    padding: 28px;
}

.blog-navbar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(26, 147, 69, 0.08);
}

.blog-hero {
    padding: 150px 0 72px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 44%, rgba(255,255,255,0.26) 100%),
        url('/Hero/Hero.webp') center/cover no-repeat;
}

.blog-hero-copy {
    max-width: 740px;
}

.blog-eyebrow,
.blog-chip {
    color: var(--accent-color);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.blog-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.blog-hero p {
    color: #35443b;
    font-size: 1.12rem;
    max-width: 660px;
}

.blog-hero-actions,
.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.blog-listing-static {
    background: #fbfdfb;
}

.blog-listing-head {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 34px;
}

.blog-listing-head h2 {
    margin-bottom: 0;
    text-align: left;
}

.blog-listing-head p {
    color: #52635a;
    margin: 0;
    max-width: 430px;
}

.blog-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
    border: 1px solid rgba(26, 147, 69, 0.08);
    border-radius: 8px;
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    height: auto;
}

.blog-card-content h3 a,
.related-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card-content h3 a:hover,
.related-card h3 a:hover {
    color: var(--accent-color);
}

.blog-post-static {
    background: #fbfdfb;
}

.breadcrumb {
    align-items: center;
    color: #68756e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 28px;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.blog-article-header {
    margin-bottom: 34px;
}

.blog-article-header p {
    color: #44554b;
}

.blog-article-meta {
    color: #68756e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    gap: 10px 18px;
    justify-content: center;
    margin-top: 18px;
}

.article-layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    margin-top: 34px;
}

.article-sidebar {
    position: sticky;
    top: 110px;
}

.toc-box,
.local-info-box,
.summary-box,
.blog-link-panel,
.blog-cta-panel,
.image-brief {
    background: #fff;
    border: 1px solid rgba(26, 147, 69, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(20, 70, 42, 0.05);
}

.toc-box,
.local-info-box {
    padding: 20px;
}

.toc-box {
    margin-bottom: 18px;
}

.toc-box h2,
.local-info-box h2 {
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: left;
}

.toc-box ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-box li {
    margin-bottom: 8px;
}

.toc-box .toc-subitem {
    padding-left: 14px;
}

.toc-box a,
.local-info-box a {
    color: #435148;
    text-decoration: none;
}

.toc-box a:hover,
.toc-box a.active,
.local-info-box a:hover {
    color: var(--accent-color);
}

.local-info-box p {
    color: #5a675f;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-main {
    max-width: 820px;
}

.article-main h2,
.article-main h3 {
    scroll-margin-top: 110px;
}

.article-main h3 {
    color: #1f3327;
    font-size: 1.28rem;
    margin: 30px 0 12px;
}

.summary-box,
.blog-link-panel,
.blog-cta-panel,
.image-brief {
    margin: 34px 0;
    padding: 26px;
}

.summary-box {
    background: #f3faf5;
}

.summary-box h2,
.blog-link-panel h2,
.blog-cta-panel h2,
.image-brief h2,
.blog-faq h2,
.related-articles h2 {
    font-size: 1.55rem;
    margin-bottom: 18px;
    text-align: left;
}

.summary-box ul,
.blog-link-panel ul {
    margin-bottom: 0;
}

.blog-link-panel a {
    color: var(--accent-color);
    font-weight: 600;
}

.blog-cta-panel {
    background: #173c28;
    color: #fff;
}

.blog-cta-panel h2,
.blog-cta-panel p {
    color: #fff;
}

.blog-cta-panel .btn-outline {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.blog-cta-panel .btn-outline:hover {
    background: #fff;
    color: var(--accent-color);
}

.blog-faq {
    background: transparent;
    padding: 22px 0;
}

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

.blog-faq .faq-item {
    border-left-width: 3px;
    border-radius: 8px;
    padding: 22px;
}

.image-brief {
    background: #fffdf8;
}

.image-brief p {
    font-size: 0.95rem;
    word-break: break-word;
}

.related-articles {
    margin-top: 58px;
}

.related-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.menu-toggle {
    background: transparent;
    border: 0;
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* Shop UI Styles */
.shop-tabs .shop-tab-btn {
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.shop-tabs .shop-tab-btn.active, .shop-tabs .shop-tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-filters {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.category-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    height: max-content;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.category-section {
    display: block;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-bottom: 20px;
}

.shop-main > .container {
    max-width: 1440px;
}

#online-shop .shop-grid-online {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#online-shop .shop-grid-online .shop-card:nth-child(n+7) {
    display: flex;
}

#online-shop .shop-grid-online .shop-details {
    padding: 14px;
}

#online-shop .shop-grid-online .shop-details h3 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    line-height: 1.25;
}

#online-shop .shop-grid-online .shop-details p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

#online-shop .shop-grid-online .shop-stock {
    -webkit-line-clamp: 1;
    font-size: 0.78rem;
}

#online-shop .shop-grid-online .shop-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

#online-shop .shop-grid-online .shop-action .btn {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
}

.menu-main > .container,
#menu > .container {
    max-width: 1440px;
}

#menu-products .menu-grid-online {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#menu-products .menu-grid-online .shop-card:nth-child(n+7) {
    display: flex;
}

#menu-products .menu-grid-online .shop-details {
    padding: 14px;
}

#menu-products .menu-grid-online .shop-details h3 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    line-height: 1.25;
}

#menu-products .menu-grid-online .shop-details p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

#menu-products .menu-variant-field {
    flex: 0 0 auto;
    margin: 10px 0 12px;
}

#menu-products .menu-variant-label {
    color: #496655;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

#menu-products .menu-variant-select {
    appearance: auto;
    background: linear-gradient(135deg, #fbfff8 0%, #eef7ed 100%);
    border: 1px solid #cfe0cf;
    border-radius: 12px;
    color: #173f2b;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    outline: none;
    padding: 9px 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}

#menu-products .menu-variant-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.12);
}

#menu-products .menu-variant-select:disabled {
    background: #f2f2f2;
    color: #888;
    cursor: not-allowed;
}

#menu-products .menu-order-access-note {
    align-items: center;
    border: 1px solid #d7eadb;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 22px;
    max-width: 940px;
    padding: 12px 16px;
    text-align: center;
}

#menu-products .menu-order-access-note strong {
    color: #0b4b31;
    font-weight: 800;
}

#menu-products .menu-order-access-note span {
    color: #5b7064;
    font-size: 0.92rem;
}

#menu-products .menu-order-access-note.is-allowed {
    background: #eefaf1;
    border-color: #bfe3c7;
}

#menu-products .menu-order-access-note.is-locked {
    background: #fff9ec;
    border-color: #efdba6;
}

#menu-products .menu-order-access-note.is-checking {
    background: #f7faf6;
    border-color: #dfe8dd;
}

#menu-products .btn-add-cart.menu-order-locked,
#menu-products .btn-add-cart:disabled.menu-order-locked {
    background: linear-gradient(135deg, #dfe8df 0%, #cbd8cd 100%) !important;
    box-shadow: none;
    color: #526a5b;
    cursor: not-allowed;
}

#menu-products .menu-grid-online .shop-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

#menu-products .menu-grid-online .shop-action .btn {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
}

@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        padding-bottom: 40px;
    }
    .shop-grid.shop-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 640px) {
    #online-shop .shop-grid-online {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #menu-products .menu-grid-online {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 900px) {
    #online-shop .shop-grid-online {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #menu-products .menu-grid-online {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .shop-grid.shop-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1180px) {
    #online-shop .shop-grid-online {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
    #menu-products .menu-grid-online {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

.shop-grid .shop-card:nth-child(n+7) {
    display: none;
}
.shop-grid.show-all .shop-card:nth-child(n+7) {
    display: flex;
}

#recommended-shop .shop-grid {
    overflow: visible;
}

#recommended-shop .shop-grid.shop-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 0;
}

#recommended-shop .shop-grid .shop-card:nth-child(n+7) {
    display: flex;
}

#recommended-shop .shop-grid .shop-card:nth-child(n+9) {
    display: none;
}

.featured-products-loading .featured-skeleton-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 122, 61, 0.08);
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    overflow: hidden;
}

.featured-products-loading .featured-skeleton-card:hover {
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    transform: none;
}

.featured-skeleton-media,
.featured-skeleton-line,
.featured-skeleton-pill,
.featured-skeleton-button {
    background: linear-gradient(90deg, rgba(225, 236, 228, 0.72), rgba(246, 250, 247, 0.95), rgba(225, 236, 228, 0.72));
    background-size: 220% 100%;
    animation: featuredSkeletonShimmer 1.25s ease-in-out infinite;
}

.featured-skeleton-media {
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid rgba(15, 122, 61, 0.06);
}

.featured-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.featured-skeleton-pill {
    border-radius: 999px;
    height: 14px;
    width: 42%;
}

.featured-skeleton-line {
    border-radius: 10px;
    height: 16px;
}

.featured-skeleton-line.short {
    width: 62%;
}

.featured-skeleton-line.medium {
    width: 82%;
}

.featured-skeleton-action {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 122, 61, 0.08);
}

.featured-skeleton-button {
    border-radius: 999px;
    height: 36px;
    width: 44%;
}

.featured-empty-state {
    background: rgba(255,255,255,0.9);
    border: 1px dashed rgba(15, 122, 61, 0.22);
    border-radius: 18px;
    color: #385343;
    grid-column: 1 / -1;
    padding: 34px 20px;
    text-align: center;
}

.featured-empty-state strong,
.featured-empty-state span {
    display: block;
}

.featured-empty-state strong {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

@keyframes featuredSkeletonShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

#recommended-shop .shop-card {
    height: 100%;
}

#recommended-shop .shop-img-wrapper {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

#recommended-shop .shop-details {
    padding: 16px;
}

#recommended-shop .shop-details p {
    display: -webkit-box;
    margin-bottom: 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#recommended-shop .shop-action {
    gap: 10px;
}

@media (min-width: 900px) {
    #recommended-shop .shop-grid.shop-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 576px) {
    #recommended-shop .shop-grid.shop-grid-4 {
        gap: 12px;
    }

    #recommended-shop .shop-details {
        padding: 10px;
    }

    #recommended-shop .shop-action {
        align-items: flex-start;
        flex-direction: column;
    }

    #recommended-shop .shop-action .btn {
        font-size: 0.75rem;
        padding: 7px 10px;
        text-align: center;
        width: 100%;
    }
}

.shop-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.shop-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.shop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.shop-card:hover .shop-img {
    transform: scale(1.05);
}

.shop-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.shop-category {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.shop-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}
.shop-details p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.shop-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.shop-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    padding: 8px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    #online-shop h2, #instore-shop h2 {
        font-size: 1.25rem !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
    }
    .shop-details {
        padding: 10px;
    }
    .shop-details h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    .shop-details p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .shop-category {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    .shop-price {
        font-size: 0.95rem;
    }
    .btn-add-cart {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
}
.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}
.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-color);
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 20px;
}
.qty-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-cart-msg {
    text-align: center;
    color: #999;
    margin-top: 50px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Checkout Page Styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}
.checkout-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 147, 69, 0.1);
}
.checkout-fulfillment {
    margin-bottom: 24px;
}
.checkout-field-title {
    margin-bottom: 10px;
    font-weight: 700;
    color: #253328;
}
.fulfillment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.fulfillment-card {
    display: block;
    margin: 0;
    cursor: pointer;
}
.fulfillment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fulfillment-card-body {
    min-height: 94px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dfe8df;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    box-shadow: 0 8px 20px rgba(16, 40, 24, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fulfillment-card input:checked + .fulfillment-card-body {
    border-color: var(--primary-color);
    background: #f2fbf5;
    box-shadow: 0 10px 26px rgba(26, 147, 69, 0.13);
}
.fulfillment-mark {
    width: 22px;
    height: 22px;
    border: 2px solid #b7c8ba;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
}
.fulfillment-card input:checked + .fulfillment-card-body .fulfillment-mark {
    border-color: var(--primary-color);
}
.fulfillment-card input:checked + .fulfillment-card-body .fulfillment-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}
.fulfillment-copy strong {
    display: block;
    color: #253328;
    font-size: 1rem;
    line-height: 1.25;
}
.fulfillment-copy small {
    display: block;
    margin-top: 4px;
    color: #6f7f74;
    font-size: 0.84rem;
    line-height: 1.35;
}
.checkout-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ed;
}
.checkout-item-row:last-child {
    border-bottom: 0;
}
.checkout-item-name {
    display: block;
    color: #333;
    font-weight: 600;
}
.checkout-item-meta {
    display: block;
    color: #7a827b;
    font-size: 0.88rem;
    margin-top: 4px;
}
.checkout-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.checkout-item-price {
    color: #333;
    font-weight: 700;
}
.checkout-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.checkout-qty-btn,
.checkout-remove-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fff;
    color: #2f3b33;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.checkout-qty-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f4fbf6;
}
.checkout-remove-btn {
    padding: 0 10px;
    color: #b42318;
    border-color: #f2d0cc;
}
.checkout-remove-btn:hover {
    background: #fff4f2;
}
.payment-method {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
}
.payment-method.selected {
    border-color: var(--primary-color);
    background: #f2f9f5;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}
.summary-line.total-line {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    color: var(--text-color);
}
.checkout-item-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

    .fulfillment-card-body {
        min-height: 78px;
    }

    .checkout-item-row {
        grid-template-columns: 1fr;
    }

    .checkout-item-side {
        align-items: stretch;
    }

    .checkout-item-actions {
        justify-content: flex-end;
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
    .toc-box ol {
        columns: 2;
        column-gap: 24px;
    }
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        background-color: var(--white);
    }
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        min-height: 80px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    nav {
        width: 100%;
        order: 4; /* Push below logo and toggle */
    }
    .menu-toggle {
        display: flex;
        order: 3;
    }
    .logo {
        order: 1;
    }
    .logo-img {
        height: 32px; /* Slightly smaller logo to fit everything */
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .nav-links { 
        display: none; 
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0 10px;
        gap: 20px; /* Better spacing between links */
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.1rem; /* Larger touch targets */
    }
    .nav-actions {
        display: flex;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    .nav-actions.active {
        display: flex; /* Kept for JS compatibility if any, though it's already flex */
    }
    .nav-actions .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .lang-switcher {
        font-size: 0.85rem;
    }
    
    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 { 
        font-size: 1.8rem; /* Smaller font to fit mobile screens */
        line-height: 1.35;
    }
    .hero p { 
        font-size: 1.05rem; 
        padding: 0 10px; /* Extra breathing room */
    }
    
    /* Mobile Hero Reviews 1:1 Centered */
    .hero-reviews {
        padding: 0 calc(50% - 140px); /* Center 280px wide cards */
        scroll-padding-inline-start: calc(50% - 140px);
    }
    .hero-review-card {
        flex: 0 0 280px;
        aspect-ratio: 1 / 1;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .blog-hero {
        padding: 122px 0 54px;
    }
    .blog-hero h1,
    .blog-header h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    .blog-hero p,
    .blog-header p {
        font-size: 1rem;
    }
    .blog-listing-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .blog-listing-head h2 {
        font-size: 1.8rem;
    }
    .blog-post {
        padding-top: 108px;
    }
    .blog-post-img {
        border-radius: 8px;
        margin-bottom: 24px;
    }
    .blog-content {
        font-size: 1rem;
    }
    .article-layout {
        gap: 18px;
        margin-top: 18px;
    }
    .toc-box ol {
        columns: 1;
    }
    .summary-box,
    .blog-link-panel,
    .blog-cta-panel,
    .image-brief {
        padding: 20px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero-actions,
    .blog-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .blog-hero-actions .btn,
    .blog-cta-actions .btn {
        text-align: center;
        width: 100%;
    }
    
    section { padding: 60px 0; }
}

/* Authentication UI Styles */
.auth-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.user-profile-menu {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.profile-dropdown a.profile-pos-link {
    color: var(--accent-color);
    font-weight: 600;
}

.profile-dropdown a:hover {
    background-color: #f1f1f1;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.login-modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.login-close:hover {
    color: #333;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-login-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.phone-register-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.phone-register-link:hover {
    text-decoration: underline;
}

.phone-login-btn {
    display: block;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(26, 147, 69, 0.22);
}

.phone-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(26, 147, 69, 0.26);
}

.phone-login-note {
    margin: 14px 0 0;
    color: #66756d;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
}

/* Phone Registration */
.register-page {
    min-height: 100vh;
    padding-top: 80px;
    background:
        radial-gradient(circle at 8% 18%, rgba(26, 147, 69, 0.14), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(219, 187, 104, 0.28), transparent 26rem),
        linear-gradient(135deg, #f6fbf5 0%, #fffaf0 48%, #eef8f2 100%);
}

.register-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.register-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 48px;
    align-items: center;
}

.register-copy {
    max-width: 560px;
}

.register-eyebrow,
.register-form-kicker {
    margin: 0 0 14px;
    color: #2d7f4d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.register-copy h1 {
    margin-bottom: 20px;
    color: #0f3f2d;
    font-size: clamp(2.8rem, 6vw, 5.7rem);
    letter-spacing: -0.06em;
}

.register-copy p {
    color: #5c6f62;
    font-size: 1.08rem;
    line-height: 1.85;
}

.register-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.register-benefits span {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid rgba(26, 147, 69, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #174b35;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 74, 42, 0.06);
}

.register-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 80px rgba(10, 49, 31, 0.12);
    backdrop-filter: blur(20px);
}

.register-card::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(26, 147, 69, 0.08);
    pointer-events: none;
}

.register-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.register-step {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eff6ef;
    color: #7b8b80;
    font-weight: 800;
}

.register-step.active {
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    box-shadow: 0 10px 20px rgba(26, 147, 69, 0.22);
}

.register-status {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #edf7ef;
    color: #14512f;
    font-weight: 700;
}

.register-status[data-type="error"] {
    background: #fff0ed;
    color: #b42318;
}

.register-status[data-type="warning"] {
    background: #fff8e6;
    color: #855b00;
}

.register-form {
    display: none;
    position: relative;
    z-index: 1;
}

.register-form.active {
    display: grid;
    gap: 18px;
}

.register-form h2,
.register-complete h2 {
    margin: 0;
    color: #0f3f2d;
    text-align: left;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.register-muted {
    margin: 0;
    color: #6a776e;
}

.register-form label {
    display: grid;
    gap: 8px;
    color: #244235;
    font-weight: 800;
}

.register-form input,
.register-form textarea {
    width: 100%;
    border: 1px solid #d9e6d7;
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #172c21;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input:focus,
.register-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(26, 147, 69, 0.12);
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.register-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    padding: 14px;
    border: 1px solid rgba(26, 147, 69, 0.12);
    border-radius: 18px;
    background: rgba(246, 251, 245, 0.75);
    font-weight: 600 !important;
}

.register-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--primary-color);
}

.register-recaptcha {
    min-height: 78px;
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.register-submit {
    width: 100%;
    min-height: 52px;
    font-weight: 800;
}

.register-submit:disabled,
.register-actions .btn:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.register-complete {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 0 8px;
}

.register-complete h2 {
    text-align: center;
}

.register-complete-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

@media (max-width: 900px) {
    .register-hero {
        padding: 44px 0;
    }

    .register-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .register-copy {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .register-card {
        padding: 24px;
        border-radius: 26px;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .register-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Premium Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Navigation */
.profile-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.profile-nav-item:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.profile-nav-item.active {
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.profile-nav-item i, .profile-nav-item svg {
    margin-right: 15px;
    width: 20px;
}

/* Main Content Area */
.profile-main {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

/* Member Card (Gold Tier Mockup) */
.member-card {
    background: linear-gradient(135deg, #CFB53B 0%, #E6D27A 50%, #C5A017 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(197, 160, 23, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.member-card--silver {
    background: linear-gradient(135deg, #f8fafc 0%, #d9dee7 48%, #aeb8c7 100%);
    color: #253044;
    box-shadow: 0 10px 20px rgba(114, 127, 148, 0.22);
}

.member-card--gold {
    background: linear-gradient(135deg, #CFB53B 0%, #E6D27A 50%, #C5A017 100%);
    color: #fff;
}

.member-card--platinum {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.38), transparent 32%),
        linear-gradient(135deg, #064e3b 0%, #0f7a5b 46%, #f7fbf7 120%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(6, 78, 59, 0.28);
}

.member-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.member-tier-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-tier-badge--silver {
    background: rgba(255,255,255,0.7);
    color: #344054;
}

.member-tier-badge--gold {
    background: rgba(255,255,255,0.24);
    color: #fff;
}

.member-tier-badge--platinum {
    background: rgba(255,255,255,0.22);
    color: #f7fff9;
    border: 1px solid rgba(255,255,255,0.3);
}

.member-id {
    font-family: monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-progress-container {
    margin-top: 15px;
}

.member-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 4px;
    position: relative;
    z-index: 1;
}

.member-metrics-row span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.88rem;
    backdrop-filter: blur(6px);
}

.member-card--silver .member-metrics-row span {
    background: rgba(255,255,255,0.72);
    border-color: rgba(128, 139, 158, 0.24);
}

.member-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.member-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 60%; /* Example width */
}

.member-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.9;
}

.member-progress-goal {
    margin: 10px 0 0;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.membership-panel {
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 62, 46, 0.045);
}

.membership-panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--primary-color);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.benefit-pill {
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(207,181,59,0.10));
    border: 1px solid rgba(46, 125, 50, 0.12);
    color: #29483a;
    font-weight: 600;
}

.membership-rule-lead,
.membership-max-note {
    margin: 0 0 14px;
    color: #52635a;
}

.membership-rule-list {
    display: grid;
    gap: 10px;
}

.membership-rule-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbf6;
    border: 1px solid rgba(46, 125, 50, 0.10);
}

.membership-rule-row strong {
    color: var(--primary-color);
}

.membership-rule-row em {
    color: #667085;
    font-style: normal;
    font-size: 0.92rem;
}

.tier-preview-panel {
    overflow: hidden;
}

.tier-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tier-preview-heading h2 {
    margin-bottom: 6px;
}

.tier-preview-heading p {
    margin: 0;
    color: #667085;
}

.tier-preview-selected {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.86rem;
}

.tier-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.tier-preview-card {
    min-height: 116px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 18px;
    padding: 16px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    box-shadow: 0 12px 24px rgba(15, 62, 46, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tier-preview-card:hover,
.tier-preview-card.is-active {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15, 62, 46, 0.14);
}

.tier-preview-card.is-active {
    outline: 3px solid rgba(46, 125, 50, 0.2);
}

.tier-preview-card.is-locked {
    filter: saturate(0.88);
}

.tier-preview-card strong {
    display: block;
    margin-top: 20px;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.tier-preview-card small {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    opacity: 0.88;
}

.tier-preview-lock {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.34);
    border: 1px solid rgba(255,255,255,0.42);
}

.tier-preview-detail {
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tier-preview-detail.member-card--silver {
    color: #253044;
}

.tier-preview-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tier-preview-detail-head h3 {
    margin: 10px 0 0;
    color: inherit;
}

.tier-preview-lock-large {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.25rem;
}

.tier-preview-detail .benefit-pill {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.28);
    color: inherit;
}

.tier-preview-detail.member-card--silver .benefit-pill {
    background: rgba(255,255,255,0.66);
    border-color: rgba(128, 139, 158, 0.22);
}

.tier-preview-rules {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
}

.tier-preview-rules p {
    margin: 0 0 10px;
    font-weight: 700;
}

.tier-preview-rules span {
    display: inline-flex;
    margin: 4px 6px 4px 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.profile-account-card {
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbf3 100%);
    box-shadow: 0 12px 28px rgba(15, 62, 46, 0.06);
}

.profile-account-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}

.profile-account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(46, 125, 50, 0.22);
}

.profile-account-top h3 {
    margin: 4px 0;
    color: var(--primary-color);
}

.profile-account-top p {
    margin: 0;
    color: #667085;
}

.profile-kicker {
    display: inline-flex;
    color: #3a7b56;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-edit-form {
    display: grid;
    gap: 18px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-edit-form label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 600;
}

.profile-edit-form input,
.profile-edit-form textarea {
    width: 100%;
    border: 1px solid #d9e4d6;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: #1f2933;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.profile-form-full {
    grid-column: 1 / -1;
}

.profile-email-verify {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 16px;
    align-items: center;
    border: 1px solid #d9e4d6;
    border-radius: 16px;
    padding: 14px;
    background: #f8fbf8;
}

.profile-email-verify strong,
.profile-email-verify span,
.profile-email-verify small {
    display: block;
}

.profile-email-verify strong {
    color: #173c28;
}

.profile-email-verify span {
    color: #8a5b00;
    font-weight: 800;
    margin-top: 4px;
}

.profile-email-verify small {
    color: #607166;
    margin-top: 6px;
    line-height: 1.5;
}

.profile-email-verify.is-verified {
    background: #f1faf3;
    border-color: #b9dfc2;
}

.profile-email-verify.is-verified span {
    color: #1f7a3d;
}

.profile-email-actions {
    display: grid;
    grid-template-columns: auto minmax(88px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.profile-email-actions .btn {
    white-space: nowrap;
}

.profile-privacy-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.08);
    color: #42604e;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .profile-email-verify,
    .profile-email-actions {
        grid-template-columns: 1fr;
    }
}

.profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-save-message {
    margin: 0;
    min-height: 1.4em;
    font-weight: 600;
}

@media (max-width: 640px) {
    .profile-main {
        padding: 20px;
    }

    .profile-account-card {
        padding: 18px;
    }

    .profile-account-top {
        align-items: flex-start;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .membership-rule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .member-card-header {
        gap: 14px;
        flex-direction: column;
    }

    .tier-preview-heading {
        flex-direction: column;
    }

    .tier-preview-grid {
        grid-template-columns: 1fr;
    }

    .tier-preview-card {
        min-height: 96px;
    }
}

/* Favorites Section */
.favorites-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.favorite-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.favorite-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.favorite-card-body {
    padding: 10px;
}

.favorite-card-body h4 {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-card-body .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    width: 100%;
}

/* Global Cart Icon */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.global-cart-icon {
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
.global-cart-icon:hover {
    color: var(--primary-color);
}
.global-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Premium Social Icons */
.social-icons-premium {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.social-icons-premium a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}
.social-icons-premium a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Custom Address Autocomplete Styles */
.address-autocomplete-dropdown {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
}
.address-autocomplete-dropdown.show {
    display: block;
}
.address-autocomplete-dropdown li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.address-autocomplete-dropdown li:hover, .address-autocomplete-dropdown li.autocomplete-active {
    background-color: #f2f9f5;
}
.address-autocomplete-dropdown strong {
    color: var(--primary-color);
}

/* Booking Type Toggle */
.booking-type-toggle {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 25px;
    position: relative;
    gap: 8px;
}
.booking-type-toggle input[type="radio"] {
    display: none;
}
.booking-type-toggle .type-btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}
.booking-type-toggle input[type="radio"]:checked + .type-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Interactive Table Map */
.interactive-map-container {
    background: #f9fbf9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    font-size: 0.85rem;
    color: #555;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-box.available, .map-table.available {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.legend-box.selected, .map-table.selected {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    box-shadow: 0 0 8px rgba(26, 147, 69, 0.4);
}

.legend-box.booked, .map-table.booked {
    background-color: #e2e8f0;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.legend-box.unavailable, .map-table.unavailable {
    background-color: #fca5a5;
    border: 2px solid #ef4444;
    color: #7f1d1d;
    cursor: not-allowed;
}

.map-layout-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
}

.map-layout {
    position: relative;
    width: 600px; /* Fixed width to allow scrolling on mobile */
    height: 400px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0 auto;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-zone-label {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: #cbd5e1;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.map-table {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.map-table.available:hover {
    background-color: #f0fdf4;
    transform: scale(1.05);
}

.map-table-circle {
    border-radius: 50%;
}

/* Scoped React table map. Keep these class names unique so layout styles cannot leak. */
.eden-table-map {
    background: #fffdf6;
    border: 1px solid rgba(9, 89, 55, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(9, 89, 55, 0.08);
    padding: 22px;
    color: #123f2b;
    min-width: 0;
}

.eden-map-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.eden-map-eyebrow {
    color: rgba(9, 89, 55, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.eden-map-head h3,
.eden-map-summary-card h4 {
    color: #123f2b;
    margin: 0;
}

.eden-map-head h3 {
    font-size: 1.45rem;
}

.eden-map-subtitle {
    color: #66756d;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 6px 0 0;
}

.eden-map-limit {
    background: #0b5b3a;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(9, 89, 55, 0.18);
    color: #fff;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 16px;
    white-space: nowrap;
}

.eden-map-legend {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.eden-map-legend-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e6ded0;
    border-radius: 999px;
    color: #55645c;
    display: flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 8px;
    padding: 9px 11px;
}

.eden-map-dot {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.eden-map-dot.is-available {
    background: #fffdf6;
    border-color: #0b5b3a;
}

.eden-map-dot.is-selected {
    background: #0b5b3a;
}

.eden-map-dot.is-booked {
    background: #d9d4cb;
}

.eden-map-dot.is-unavailable {
    background: #f3b6b6;
}

.eden-map-notice {
    background: #eef8f0;
    border: 1px solid rgba(9, 89, 55, 0.12);
    border-radius: 16px;
    color: #123f2b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.eden-map-notice.is-danger {
    background: #fff2f1;
    border-color: #f0b8b1;
    color: #9b2f2b;
}

.eden-map-scroll {
    background: linear-gradient(135deg, #063b29, #0b5b3a 58%, #103c2d);
    border: 1px solid rgba(9, 89, 55, 0.14);
    border-radius: 22px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 12px;
}

.eden-map-stage {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    height: 520px;
    min-width: 760px;
    overflow: hidden;
    position: relative;
}

.eden-map-divider {
    background: rgba(255, 255, 255, 0.12);
    position: absolute;
}

.eden-map-divider.vertical {
    bottom: 0;
    left: 43%;
    top: 0;
    width: 1px;
}

.eden-map-divider.horizontal {
    height: 1px;
    left: 4%;
    right: 4%;
    top: 48%;
}

.eden-map-zone {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.82);
    padding: 16px;
    position: absolute;
}

.eden-map-zone-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eden-map-zone-hint {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    margin-top: 5px;
}

.eden-map-walkway {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
    left: 45%;
    letter-spacing: 0.22em;
    padding: 8px 18px;
    position: absolute;
    text-transform: uppercase;
    top: 37%;
}

.eden-map-table {
    --table-lift: 0px;
    --table-rotation: 0deg;
    align-items: center;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-weight: 800;
    justify-content: center;
    position: absolute;
    transform: translateY(var(--table-lift)) rotate(var(--table-rotation)) translateZ(0);
    transform-origin: center center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.eden-map-table.shape-round {
    border-radius: 999px;
    height: 56px;
    width: 56px;
}

.eden-map-table.shape-rect {
    border-radius: 16px;
    height: 50px;
    width: 82px;
}

.eden-map-table.shape-wide {
    border-radius: 16px;
    height: 50px;
    width: 112px;
}

.eden-map-table.is-available {
    background: #fffdf6;
    border-color: #0b5b3a;
    color: #123f2b;
}

.eden-map-table.is-available:hover {
    --table-lift: -3px;
    box-shadow: 0 10px 24px rgba(9, 89, 55, 0.18);
}

.eden-map-table.is-selected {
    background: #0b5b3a;
    border-color: #073c28;
    box-shadow: 0 12px 30px rgba(9, 89, 55, 0.35), 0 0 0 4px rgba(255, 253, 246, 0.55);
    color: #fff;
}

.eden-map-table.is-booked {
    background: #ded9d0;
    border-color: #c8c1b5;
    color: #8a8174;
    cursor: not-allowed;
}

.eden-map-table.is-unavailable {
    background: #f9d1d0;
    border-color: #e89490;
    color: #8b2d2a;
    cursor: not-allowed;
}

.eden-map-table-code {
    font-size: 0.72rem;
    line-height: 1.1;
}

.eden-map-table-seats {
    font-size: 0.63rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.72;
}

.eden-map-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.1fr 0.9fr;
    margin-top: 16px;
}

.eden-map-summary-card {
    background: #fff;
    border: 1px solid #e7dfd1;
    border-radius: 18px;
    padding: 16px;
}

.eden-map-summary-card.is-soft {
    background: #eef8f0;
    border-color: rgba(9, 89, 55, 0.12);
}

.eden-map-summary-card .muted {
    color: #7b867f;
    margin: 8px 0 0;
}

.eden-map-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.eden-map-chip {
    background: #0b5b3a;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 12px;
}

.eden-map-seat-total {
    color: #66756d;
    font-size: 0.88rem;
    margin: 12px 0 0;
}

.eden-map-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
}

.eden-map-summary-list div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.eden-map-summary-list dt {
    color: #52645a;
}

.eden-map-summary-list dd {
    color: #123f2b;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .eden-table-map {
        padding: 16px;
    }

    .eden-map-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .eden-map-legend,
    .eden-map-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .eden-map-stage {
        height: 500px;
        min-width: 720px;
    }
}

@media (max-width: 520px) {
    .eden-map-legend,
    .eden-map-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Booking Details Premium Card UI Styles
   ========================================== */
.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 35px;
    margin-bottom: 30px;
}

.booking-info-card {
    background-color: var(--white);
    border: 1px solid rgba(26, 147, 69, 0.12);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(26, 147, 69, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px 0 0 5px;
    opacity: 0.85;
}

.booking-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 147, 69, 0.08), 0 1px 4px rgba(0, 0, 0, 0.02);
    border-color: rgba(26, 147, 69, 0.28);
}

.booking-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #123f2b;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(26, 147, 69, 0.08);
    padding-bottom: 14px;
}

.room-pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(26, 147, 69, 0.12);
    transition: background-color 0.2s ease;
}

.room-pricing-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.room-pricing-item strong {
    color: #123f2b;
    font-size: 0.98rem;
    display: block;
}

.room-pricing-item .room-cap {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 3px;
}

.price-badge {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.booking-info-card:hover .price-badge {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Blog UX refresh */
body[data-blog-page] {
    background: #f7faf6;
}

body[data-blog-page] h1,
body[data-blog-page] h2,
body[data-blog-page] h3 {
    letter-spacing: 0;
}

.blog-navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(19, 114, 52, 0.08);
    box-shadow: 0 10px 30px rgba(19, 64, 38, 0.06);
}

.blog-navbar .container {
    height: 76px;
}

.blog-navbar .nav-links a.active {
    color: var(--accent-color);
}

.blog-navbar .nav-links a.active::after {
    background: var(--accent-color);
    content: "";
    display: block;
    height: 2px;
    margin-top: 6px;
    width: 100%;
}

.blog-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(10, 29, 19, 0.82) 0%, rgba(10, 29, 19, 0.58) 48%, rgba(10, 29, 19, 0.18) 100%),
        url('/Hero/Hero.webp') center/cover no-repeat;
    display: flex;
    min-height: 560px;
    padding: 128px 0 72px;
}

.blog-hero-copy {
    max-width: 760px;
}

.blog-eyebrow,
.blog-chip {
    color: #1a9345;
    letter-spacing: 0;
}

.blog-hero .blog-eyebrow {
    color: #dff3cf;
}

.blog-hero h1 {
    color: #fff;
    font-size: 3.35rem;
    letter-spacing: 0;
    line-height: 1.16;
    margin-bottom: 18px;
    max-width: 760px;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.13rem;
    line-height: 1.8;
    max-width: 700px;
}

.blog-hero .btn,
.blog-cta-actions .btn {
    border-radius: 6px;
    box-shadow: none;
}

.blog-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
}

.blog-hero .btn-outline:hover {
    background: #fff;
    color: var(--accent-color);
}

.blog-quick-strip {
    background: #fff;
    border-bottom: 1px solid rgba(19, 114, 52, 0.08);
    padding: 0;
}

.blog-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-quick-grid div {
    border-left: 1px solid rgba(19, 114, 52, 0.08);
    padding: 24px 26px;
}

.blog-quick-grid div:first-child {
    border-left: 0;
}

.blog-quick-grid strong,
.blog-quick-grid span {
    display: block;
}

.blog-quick-grid strong {
    color: #173c28;
    font-size: 1.35rem;
    line-height: 1.2;
}

.blog-quick-grid span {
    color: #627168;
    margin-top: 5px;
}

.blog-listing-static {
    background: #f7faf6;
    padding-top: 72px;
}

.blog-listing-head {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.blog-listing-head h2 {
    color: #173c28;
    font-size: 2.35rem;
    letter-spacing: 0;
    margin-bottom: 0;
    text-align: left;
}

.blog-listing-head p {
    color: #55635b;
    line-height: 1.7;
    margin: 0;
    max-width: 430px;
}

.blog-filter-bar {
    display: flex;
    gap: 10px;
    margin: 0 0 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.blog-filter-bar button {
    background: #fff;
    border: 1px solid rgba(19, 114, 52, 0.16);
    border-radius: 6px;
    color: #31443a;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-weight: 600;
    padding: 10px 14px;
    transition: var(--transition);
}

.blog-filter-bar button:hover,
.blog-filter-bar button.active {
    background: #173c28;
    border-color: #173c28;
    color: #fff;
}

.blog-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card[hidden] {
    display: none;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(19, 114, 52, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(28, 58, 39, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 18px 44px rgba(28, 58, 39, 0.1);
    transform: translateY(-3px);
}

.blog-card-featured {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.blog-card a:first-child {
    display: block;
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.blog-card-featured .blog-card-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.blog-card-kicker,
.blog-card-footer {
    align-items: center;
    color: #6b786f;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 10px;
}

.blog-category-pill {
    background: #eef7ed;
    border-radius: 6px;
    color: #137234;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 8px;
}

.blog-card-content h3 {
    color: #1d3326;
    font-size: 1.26rem;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 14px 0 10px;
}

.blog-card-featured .blog-card-content h3 {
    font-size: 1.82rem;
    line-height: 1.28;
}

.blog-card-content p {
    color: #58665d;
    display: -webkit-box;
    line-height: 1.75;
    margin-bottom: 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-card-footer {
    border-top: 1px solid rgba(19, 114, 52, 0.1);
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.blog-read-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.blog-read-link:hover {
    color: var(--primary-color);
}

.blog-post-static {
    background: #f7faf6;
}

.blog-post {
    padding-bottom: 74px;
    padding-top: 118px;
}

.breadcrumb {
    color: #627168;
    margin-bottom: 26px;
}

.blog-article-header {
    margin: 0 auto 30px;
    max-width: 980px;
}

.blog-article-header h1 {
    color: #173c28;
    font-size: 3rem;
    letter-spacing: 0;
    line-height: 1.18;
    margin-bottom: 16px;
}

.blog-article-header p {
    color: #4e5d54;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 860px;
}

.blog-article-meta {
    color: #65736a;
    gap: 10px 20px;
}

.blog-post-img {
    aspect-ratio: 16 / 7;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(28, 58, 39, 0.12);
    max-height: 560px;
    object-fit: cover;
    width: 100%;
}

.article-layout {
    gap: 38px;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
}

.article-sidebar {
    top: 104px;
}

.toc-box,
.local-info-box,
.summary-box,
.blog-link-panel,
.blog-cta-panel,
.image-brief {
    border: 1px solid rgba(19, 114, 52, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(28, 58, 39, 0.06);
}

.toc-box h2,
.local-info-box h2,
.summary-box h2,
.blog-link-panel h2,
.blog-cta-panel h2,
.image-brief h2,
.blog-faq h2,
.related-articles h2 {
    color: #173c28;
    letter-spacing: 0;
}

.toc-box a.active {
    font-weight: 700;
}

.article-main {
    max-width: 820px;
}

.article-main p,
.article-main li {
    color: #46574d;
    font-size: 1.03rem;
    line-height: 1.9;
}

.article-main h2 {
    color: #173c28;
    font-size: 1.78rem;
    letter-spacing: 0;
}

.article-main h3 {
    color: #213d2c;
    letter-spacing: 0;
}

.summary-box {
    background: #eef7ed;
}

.blog-cta-panel {
    background: #173c28;
}

.blog-cta-panel h2,
.blog-cta-panel p {
    color: #fff;
}

.blog-faq .faq-item {
    background: #fff;
    border-left-color: var(--accent-color);
}

.related-grid {
    gap: 22px;
}

@media (max-width: 1020px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .blog-card-featured .blog-card-img {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .blog-navbar .container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        height: 70px;
        min-height: 70px;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .blog-navbar .nav-links a.active::after {
        display: none;
    }

    .blog-navbar .logo {
        grid-column: 1;
        grid-row: 1;
        order: 0;
    }

    .blog-navbar .nav-actions {
        gap: 9px;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin: 0;
        order: 0;
        width: auto;
    }

    .blog-navbar .lang-switcher a {
        padding: 6px 7px;
    }

    .blog-navbar .auth-container {
        margin-left: 0;
    }

    .blog-navbar .auth-container .btn {
        padding: 7px 11px;
    }

    .blog-navbar .menu-toggle {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        order: 0;
    }

    .blog-navbar nav {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 0;
        width: 100%;
    }

    .blog-hero {
        min-height: 500px;
        padding: 112px 0 56px;
    }

    .blog-hero h1 {
        font-size: 2.1rem;
        line-height: 1.24;
    }

    .blog-hero p,
    .blog-article-header p {
        font-size: 1rem;
    }

    .blog-quick-grid {
        grid-template-columns: 1fr;
    }

    .blog-quick-grid div,
    .blog-quick-grid div:first-child {
        border-left: 0;
        border-top: 1px solid rgba(19, 114, 52, 0.08);
        padding: 18px 0;
    }

    .blog-quick-grid div:first-child {
        border-top: 0;
    }

    .blog-listing-static {
        padding-top: 52px;
    }

    .blog-listing-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .blog-listing-head h2,
    .blog-article-header h1 {
        font-size: 2rem;
    }

    .blog-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-featured {
        grid-column: span 1;
    }

    .blog-card-featured .blog-card-content h3 {
        font-size: 1.28rem;
    }

    .blog-post {
        padding-top: 104px;
    }

    .blog-post-img {
        aspect-ratio: 16 / 10;
        margin-bottom: 20px;
    }

    .article-main {
        max-width: none;
    }

    .article-main h2,
    .summary-box h2,
    .blog-link-panel h2,
    .blog-cta-panel h2,
    .image-brief h2,
    .blog-faq h2,
    .related-articles h2 {
        font-size: 1.45rem;
    }
}
