:root {
    /* Tropical Bloom Design System - Unified Palette */
    --primary: #006D77;
    --on-primary: #ffffff;
    --primary-container: #e0f2f1;
    --secondary: #8838c8;
    --on-secondary: #ffffff;
    --secondary-container: #f3e5f5;
    --tertiary: #fd9d1a;
    --on-tertiary: #1d1b19;
    --tertiary-container: #fff8e1;
    --background: #fef8f3;
    --on-background: #1d1b19;
    --surface: #fef8f3;
    --on-surface: #1d1b19;
    --surface-variant: #f8f3ee;
    --on-surface-variant: #4a4643;
    --outline: #8a817c;
    --surface-container-low: #f8f3ee;
    --surface-container: #f3eee9;
    --surface-container-high: #ede8e3;
    --surface-container-highest: #e7e2dd;

    /* Extra tokens */
    --primary-fixed: #9ff0fb;
    --outline-variant: #bec8ca;
    --on-secondary-fixed: #2c1700;
    --on-primary-fixed-variant: #004f56;
    --secondary-fixed-dim: #ffb86b;
    --surface-container-lowest: #ffffff;
    --on-tertiary-fixed-variant: #6a0baa;
    --tertiary-fixed: #f2daff;
    --inverse-surface: #32302d;
    --inverse-on-surface: #f6f0eb;
    --surface-tint: #006972;
    --surface-dim: #ded9d4;
    --surface-bright: #fef8f3;
    --primary-fixed-dim: #82d3de;
    --on-tertiary-fixed: #2e004e;
    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;
    --on-primary-fixed: #001f23;
    --on-secondary-fixed-variant: #683d00;
    --on-secondary-container: #663b00;
    --secondary-fixed: #ffe0b2;
    --on-secondary-fixed-variant: #8a5600;
    --on-tertiary-container: #4a0080;

    /* Typography */
    --font-headline: 'Montserrat', sans-serif;
    --font-serif: 'Noto Serif', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
    --font-label: 'Be Vietnam Pro', sans-serif;

    /* Border Radius */
    --radius-default: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;

    /* Spacing Scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-default: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-hero: 0 4px 20px rgba(0, 0, 0, 0.6);

    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    background-color: #121212;
    /* Smokey Charcoal Gutter */
}

/* Custom Subtle Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background-color: #121212;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(253, 157, 26, 0.6);
    border-radius: 20px;
    border: 4px solid #121212;
    /* Slim effect against charcoal track */
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(253, 157, 26, 0.9);
    border: 2px solid #121212;
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(253, 157, 26, 0.6) #121212;
}

body {
    background-color: var(--background);
    font-family: var(--font-body);
    color: var(--on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    background-color: #000 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    color: var(--on-surface);
}

h1 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.1;
}

h2 {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.3;
}

h3 {
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1.25rem;
    color: var(--primary);
    /* Deep Teal */
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-all);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition-all);
}

/* ==========================================
   Utility Shim
   ========================================== */
.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 8rem 1.5rem 0;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

.flex-col,
.flex-column {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-baseline {
    align-items: baseline;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.hidden {
    display: none;
}

.d-grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.col-span-12 {
    grid-column: span 12 / span 12;
}

.col-span-8 {
    grid-column: span 8 / span 8;
}

.col-span-6 {
    grid-column: span 6 / span 6;
}

.col-span-5 {
    grid-column: span 5 / span 5;
}

.col-span-4 {
    grid-column: span 4 / span 4;
}

.row-span-2 {
    grid-row: span 2 / span 2;
}

.gap-1 {
    gap: var(--sp-1);
}

.gap-2 {
    gap: var(--sp-2);
}

.gap-3 {
    gap: var(--sp-3);
}

.gap-4 {
    gap: var(--sp-4);
}

.gap-6 {
    gap: var(--sp-6);
}

.gap-8 {
    gap: var(--sp-8);
}

.gap-10 {
    gap: var(--sp-10);
}

.gap-12 {
    gap: var(--sp-12);
}

.gap-16 {
    gap: var(--sp-16);
}

.gap-32 {
    gap: var(--sp-32);
}

.m-auto {
    margin: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.-mt-20 {
    margin-top: -5rem;
}

.mt-2 {
    margin-top: var(--sp-2);
}

.mt-8 {
    margin-top: var(--sp-8);
}

.mt-12 {
    margin-top: var(--sp-12);
}

.mt-32 {
    margin-top: var(--sp-32);
}

.mt-48 {
    margin-top: 12rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.ml-12 {
    margin-left: var(--sp-12);
}

.mb-1 {
    margin-bottom: var(--sp-1);
}

.mb-2 {
    margin-bottom: var(--sp-2);
}

.mb-3 {
    margin-bottom: var(--sp-3);
}

.mb-4 {
    margin-bottom: var(--sp-4);
}

.mb-6 {
    margin-bottom: var(--sp-6);
}

.mb-8 {
    margin-bottom: var(--sp-8);
}

.mb-10 {
    margin-bottom: var(--sp-10);
}

.mb-12 {
    margin-bottom: var(--sp-12);
}

.mb-16 {
    margin-bottom: var(--sp-16);
}

.mb-24 {
    margin-bottom: var(--sp-24);
}

.p-0 {
    padding: 0;
}

.p-3 {
    padding: var(--sp-3);
}

.p-4 {
    padding: var(--sp-4);
}

.p-6 {
    padding: var(--sp-6);
}

.p-8 {
    padding: var(--sp-8);
}

.p-10 {
    padding: var(--sp-10);
}

.p-12 {
    padding: var(--sp-12);
}

.px-3 {
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
}

.px-4 {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
}

.px-6 {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
}

.px-8 {
    padding-left: var(--sp-8);
    padding-right: var(--sp-8);
}

.px-10 {
    padding-left: var(--sp-10);
    padding-right: var(--sp-10);
}

.px-12 {
    padding-left: var(--sp-12);
    padding-right: var(--sp-12);
}

.py-1 {
    padding-top: var(--sp-1);
    padding-bottom: var(--sp-1);
}

.py-2 {
    padding-top: var(--sp-2);
    padding-bottom: var(--sp-2);
}

.py-4 {
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
}

.py-5 {
    padding-top: var(--sp-5);
    padding-bottom: var(--sp-5);
}

.py-12 {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
}

.py-24 {
    padding-top: var(--sp-24);
    padding-bottom: var(--sp-24);
}

.pt-12 {
    padding-top: var(--sp-12);
}

.pb-2 {
    padding-bottom: var(--sp-2);
}

.w-full {
    width: 100%;
}

.w-12 {
    width: 3rem;
}

.w-32 {
    width: 8rem;
}

.w-48 {
    width: 12rem;
}

.w-80 {
    width: 20rem;
}

.h-full {
    height: 100%;
}

.h-px {
    height: 1px;
}

.h-fit {
    height: fit-content;
}

.h-12 {
    height: 3rem;
}

.h-32 {
    height: 8rem;
}

.h-48 {
    height: 12rem;
}

.h-80 {
    height: 20rem;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.pointer-events-none {
    pointer-events: none;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.-top-4 {
    top: -1rem;
}

.-left-4 {
    left: -1rem;
}

.-top-16 {
    top: -4rem;
}

.-left-16 {
    left: -4rem;
}

.-right-20 {
    right: -5rem;
}

.-top-20 {
    top: -5rem;
}

.-left-20 {
    left: -5rem;
}

.-bottom-20 {
    bottom: -5rem;
}

.-bottom-12 {
    bottom: -3rem;
}

.-right-12 {
    right: -3rem;
}

.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .lead-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-headline {
    font-family: var(--font-headline);
}

.font-body {
    font-family: var(--font-body);
}

.font-label {
    font-family: var(--font-label);
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.list-none {
    list-style: none;
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-tertiary {
    background-color: var(--tertiary);
}

.bg-surface {
    background-color: var(--surface);
}

.bg-white {
    background-color: #ffffff;
}

.bg-surface-container-low {
    background-color: var(--surface-container-low);
}

.bg-surface-container-high {
    background-color: var(--surface-container-high);
}

.bg-surface-container-highest {
    background-color: var(--surface-container-highest);
}

.bg-surface-container-lowest {
    background-color: var(--surface-container-lowest);
}

.bg-secondary-container {
    background-color: var(--secondary-container);
}

.bg-tertiary-container {
    background-color: var(--tertiary-container);
}

.bg-primary-container {
    background-color: var(--primary-container);
}

.bg-secondary-fixed {
    background-color: var(--secondary-fixed);
}

.bg-on-tertiary-container {
    background-color: var(--on-tertiary-container);
}

.bg-on-secondary-fixed {
    background-color: var(--on-secondary-fixed);
}

.text-white {
    color: #ffffff;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-tertiary {
    color: var(--tertiary);
}

.text-on-primary {
    color: var(--on-primary);
}

.text-on-tertiary {
    color: var(--on-tertiary);
}

.text-on-surface {
    color: var(--on-surface);
}

.text-on-surface-variant {
    color: var(--on-surface-variant);
}

.text-on-secondary {
    color: var(--on-secondary);
}

.text-on-secondary-container {
    color: var(--on-secondary-container);
}

.text-on-secondary-fixed {
    color: var(--on-secondary-fixed);
}

.text-on-secondary-fixed-variant {
    color: var(--on-secondary-fixed-variant);
}

.text-on-tertiary-container {
    color: var(--on-tertiary-container);
}

.text-on-primary-fixed-variant {
    color: var(--on-primary-fixed-variant);
}

.text-primary-fixed {
    color: var(--primary-fixed);
}

.text-primary-container {
    color: var(--primary-container);
}

.text-secondary-fixed {
    color: var(--secondary-fixed-dim);
}

.text-green-600 {
    color: #16a34a;
}

.text-stone-400 {
    color: #a8a29e;
}

.text-error {
    color: var(--error);
}

.bg-error-container {
    background-color: var(--error-container);
}

.text-on-error-container {
    color: var(--on-error-container);
}

.rounded-none {
    border-radius: 0;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-3xl {
    border-radius: var(--radius-3xl);
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-none {
    box-shadow: none;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

.text-shadow-hero {
    text-shadow: var(--shadow-hero);
}

.border {
    border: 1px solid var(--outline-variant);
}

.border-8 {
    border: 8px solid;
}

.border-none {
    border: none;
}

.border-b-4 {
    border-bottom: 4px solid;
}

.border-tertiary {
    border-color: var(--tertiary);
}

.border-primary-container {
    border-color: var(--primary-container);
}

.border-outline-variant {
    border-color: var(--outline-variant);
}

::selection,
.selection-tertiary::selection {
    background-color: var(--tertiary);
    color: var(--on-tertiary);
}

.hover-underline:hover {
    text-decoration: underline;
}

.hover-gap-4:hover {
    gap: var(--sp-4);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

.transition-all {
    transition: var(--transition-all);
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.aspect-video {
    aspect-ratio: 16/9;
}

.aspect-square {
    aspect-ratio: 1/1;
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--gradient-from, transparent), var(--gradient-to, transparent));
}

.from-primary {
    --gradient-from: var(--primary);
    --gradient-to: transparent;
}

.group:hover .group-hover\:opacity-80 {
    opacity: 0.8;
}

.group:hover .group-hover\:opacity-40 {
    opacity: 0.4;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-2 {
    transform: translateX(0.5rem);
}

.duration-1000 {
    transition-duration: 1000ms;
}

/* ==========================================
   Semantic Components
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: var(--transition-all);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--on-secondary);
    box-shadow: 0 10px 15px -3px rgba(136, 56, 200, 0.3);
}

.btn-primary:hover {
    background-color: rgba(136, 56, 200, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -3px rgba(136, 56, 200, 0.5);
    /* Enhanced glow on hover */
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--on-secondary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--on-surface);
}

.btn-glass:hover {
    background: white;
}

.glass-card {
    background: rgba(254, 248, 243, 0.75);
    backdrop-filter: blur(12px);
}

.material-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.icon-fill {
    font-variation-settings: 'FILL' 1 !important;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 80rem;
    /* Matches .nav-container and bento width */
    z-index: 1000;
    background-color: transparent;
    background-image:
        linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.4) 25%, transparent 30%),
        linear-gradient(125deg, transparent 45%, rgba(255, 255, 255, 0.3) 55%, transparent 65%),
        linear-gradient(115deg, transparent 75%, rgba(255, 255, 255, 0.5) 78%, transparent 85%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 2rem 2rem;
    /* Mirroring bento radius */
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-top: 3px solid #F58220;
    /* Saffron Accent */
    background-clip: padding-box;
    /* Ensures the border is transparent to the image, not the glass color */
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Prism shimmer + base shadow */
    will-change: transform, backdrop-filter;
    transition: background-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, transform 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    height: 5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    image-rendering: -webkit-optimize-contrast;
}

.header-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.4s ease-out;
}

.header-logo-container:hover {
    transform: scale(1.04);
}

.logo-shimmer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Applying mask to the parent wrapper is more stable in Chrome */
    -webkit-mask-image: url('/images/thailand_guide_logo_600.webp');
    mask-image: url('/images/thailand_guide_logo_600.webp');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.logo-shimmer-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 40%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 60%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    background-position: 150% 0;
    transition: background-position 3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;

    /* Force Hardware Acceleration for smooth rendering in Chrome */
    transform: translateZ(0);
}

.header-logo-container:hover .logo-shimmer-wrapper::after {
    background-position: -150% 0;
}





.header-logo-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.808) 0%, rgba(0, 0, 0, 0) 90%);
    z-index: -1;
    filter: blur(12px);
    border-radius: 50%;
    pointer-events: none;
}

.header-logo-container img {
    width: 200px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.logo-accent {
    color: #2266ce;
}

.logo-highlight {
    color: var(--tertiary);
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.25),
        1px -1px 0 rgba(0, 0, 0, 0.25),
        -1px 1px 0 rgba(0, 0, 0, 0.25),
        1px 1px 0 rgba(0, 0, 0, 0.25),
        0 2px 10px rgba(0, 0, 0, 0.4);
}

.logo-suffix {
    color: white;
    /* Default for dark hero backgrounds */
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.25),
        1px -1px 0 rgba(0, 0, 0, 0.25),
        -1px 1px 0 rgba(0, 0, 0, 0.25),
        1px 1px 0 rgba(0, 0, 0, 0.25),
        0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Ensure the footer logo suffix is dark/visible on the light footer background */
.site-footer .logo-suffix {
    color: var(--on-surface);
    text-shadow: none;
}

.nav-links {
    display: none;
    gap: 2.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.hide-mobile {
    display: none;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(254, 248, 243, 0.85);
    /* 0.85 transparency for a solid-but-glassy feel */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.menu-close {
    background: none;
    border: none;
    color: var(--on-surface);
    width: 2.5rem;
    height: 2.5rem;
}

.menu-close svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--on-surface);
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.nav-link {
    color: #3a3a3a;
    /* Soft Charcoal */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition-all);
}

.nav-link:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 800;
    opacity: 1;
}

.hero-section {
    position: relative;
    z-index: 10;
}

.hero-visual-clip {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease;
    pointer-events: none;
    /* Allows clicks to pass to hero-controls behind this layer */
}

.hero-section.is-collapsed .hero-visual-clip {
    height: 0;
    pointer-events: none;
}

/* Hero Collapse Control Tab */
.hero-collapse-btn {
    position: absolute;
    top: 6rem;
    right: 2rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-all);
    pointer-events: auto;
}

.hero-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-section.is-collapsed~.hero-collapse-btn {
    top: 5.5rem;
    background: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-collapse-btn .material-icon {
    font-size: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.is-collapsed~.hero-collapse-btn .material-icon {
    transform: rotate(180deg);
}

/* Layout fix for overlapping main content - ensures content clears the fixed 5rem nav bar + 3rem breathing room when hero is hidden */
.hero-section.is-collapsed+main,
.hero-section.is-collapsed~main {
    margin-top: 8rem !important;
}

/* Unified Fixed Hero Background */
.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.is-collapsed .hero-bg,
body.hero-hidden .hero-bg {
    opacity: 0.8;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 2s ease-in-out;
    background-image: var(--bg-desktop);
}

@media (max-width: 768px) {
    .slide {
        background-image: var(--bg-mobile, var(--bg-desktop));
    }
}

.slide.is-active,
.slide.is-exiting {
    animation: hero-kenburns 12s linear forwards;
}

.slide.is-active {
    opacity: 1;
    z-index: 2;
}

.slide.is-exiting {
    opacity: 0;
    z-index: 1;
}

@keyframes hero-kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 30%, transparent 85%, var(--surface) 100%);
}

/* Hero Content & Controls Visibility */
.hero-content {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    width: 90%;
    max-width: 56rem;
    padding: 0 1rem;
    z-index: 50;
    pointer-events: auto;
    text-align: center;
    will-change: opacity;
    /* Removed opacity transition as it conflicts with real-time scroll JS, causing 'jumping' */
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Badge Component */
.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--tertiary);
    /* Use the brand tertiary (orange) for high visibility */
    border-radius: 2rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section.is-collapsed .hero-content,
.hero-section.hero-manually-collapsed .hero-content {
    opacity: 0 !important;
    pointer-events: none;
    transform: translate(-50%, calc(-50% - 30px));
}


/* Hero Controls Group */
.hero-controls {
    position: absolute;
    bottom: 9rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 50;
    /* Ensure controls are above the fixed background */
    pointer-events: auto;
}

.hero-control {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-all);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.is-shimmering {
    animation: shimmer-ding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer-ding {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    10% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0);
    }
}

/* Primary Toggle Button (Play/Pause) */
#hero-toggle {
    width: 3.5rem;
    height: 3.5rem;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-control .material-icon {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 1, 'wght' 700;
    text-shadow: none;
    transition: text-shadow 0.3s ease;
}

.hero-control:hover .material-icon {
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6), 0 0 5px rgba(0, 0, 0, 0.4);
}

#hero-toggle .material-icon {
    font-size: 1.75rem;
}

.hero-section.is-paused .slide.is-active,
.hero-section.is-paused .slide.is-exiting,
body.hero-hidden .slide.is-active,
body.hero-hidden .slide.is-exiting {
    animation-play-state: paused;
}

/* ==========================================
   Condensed Hero for Sub-Pages
   ========================================== */

/* Shorter viewport for the hero ribbon */
.hero-section--condensed .hero-visual-clip {
    height: 40vh;
    min-height: 350px;
}

/* Move content from fixed-center to a more integrated absolute position within the ribbon */
/* We use top: 58% to achieve better visual vertical centering between the nav-bar and the bento */
.hero-section--condensed .hero-content {
    position: absolute;
    top: 58%;
    max-width: 45rem;
}

/* Shrink title and hide 'Article Guide' badge/desc to move content up */
.hero-section--condensed .hero-title {
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-section--condensed .hero-badge,
.hero-section--condensed .hero-desc-container {
    display: none;
}

/* Reposition hero content for main article so it sits above the half-page bento */
.hero-section--article-main .hero-content {
    top: 34%;
}

/* Main article overlap to bring content halfway up the hero */
.main--half-hero {
    margin-top: -45vh !important;
}

/* Adjust the main content container to sit tight against the ribbon */
.main--condensed {
    margin-top: -2rem !important;
}

@media (max-width: 768px) {
    .hero-section--condensed .hero-visual-clip {
        height: 30vh;
        min-height: 220px;
    }

    .hero-section--condensed .hero-content {
        top: 55%;
    }

    .hero-section--condensed .hero-title {
        font-size: 2.5rem;
    }

    /* Reduce negative margins for mobile viewports */
    main {
        margin-top: -1rem !important;
    }

    .main--condensed {
        margin-top: -2rem !important;
    }
}

.hero-badge {
    display: inline-block;
    background-color: var(--tertiary);
    color: var(--on-tertiary);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-family: var(--font-label);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: var(--font-headline);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    text-shadow: var(--shadow-hero);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.hero-desc-container {
    display: inline-block;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.65rem 1.5rem;
    border-radius: 1.5rem;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-width: 95%;
    /* Force GPU layer to prevent backdrop-filter 'jumps' during parent opacity changes */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-description {
    color: white;
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.bento-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-3xl);
    border: 4px solid rgba(255, 255, 255, 0.6);
    background-clip: padding-box;
    overflow: hidden;
    will-change: transform, backdrop-filter;
    padding: 3rem;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.25),
        0 25px 50px -20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .bento-container {
        padding: 0.5rem;
        border-radius: var(--radius-md);
    }
}

/* Tiered Glassy Layout */
.bento-stack {
    display: flex;
    flex-direction: column;
}

.lead-bento {
    /* Layer 1-3: Prism Rays (from .nav-bar) | Layer 4: Deep center lift | Layer 5: Dark base glass */
    background-image:
        linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.08) 25%, transparent 30%),
        linear-gradient(125deg, transparent 45%, rgba(255, 255, 255, 0.06) 55%, transparent 65%),
        linear-gradient(115deg, transparent 75%, rgba(255, 255, 255, 0.1) 78%, transparent 85%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 80%);
    background-color: rgba(0, 0, 0, 0.45);
    background-clip: padding-box;

    /* Blur is high to melt the background details and keep text readable */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem 2rem 0 0;
    border: 4px solid rgba(255, 253, 253, 0.6);
    border-bottom: none;
    will-change: transform, backdrop-filter;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lead-text-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.lead-text {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #FFFFFF;
    /* Pure White for maximum punch against dark glass */
    font-weight: 400;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Quotes now flank this constrained text block */
}

/* Decorative Pull-Quote Marks */
.lead-text::before,
.lead-text::after {
    position: absolute;
    font-family: 'Noto Serif', serif;
    font-size: 100px;
    color: #FFFFFF;
    opacity: 0.5;
    /* The 50/50 rule — visible yet glassy */
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {

    .lead-text::before,
    .lead-text::after {
        font-size: 60px;
    }
}

.lead-text::before {
    content: "\201C";
    top: -0.5rem;
    left: -0.75rem;
}

.lead-text::after {
    content: "\201D";
    bottom: -2.5rem;
    right: -0.75rem;
}

@media (min-width: 769px) {
    .lead-text::before {
        top: -1.5rem;
        left: -2.5rem;
    }

    .lead-text::after {
        bottom: -4rem;
        right: -2.5rem;
    }
}

.bento-lower-tier {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 2rem 2rem;
    border: 4px solid rgba(255, 255, 255, 0.6);
    background-clip: padding-box;
    overflow: hidden;
    will-change: transform, backdrop-filter;
    border-top: none;
    margin-top: -1px;
    padding: 3rem;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.25), 0 25px 50px -20px rgba(0, 0, 0, 0.35);
}

.bento-single-tier {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2rem;
    border: 4px solid rgba(255, 255, 255, 0.6);
    background-clip: padding-box;
    overflow: hidden;
    will-change: transform, backdrop-filter;
    padding: 3rem;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.25), 0 25px 50px -20px rgba(0, 0, 0, 0.35);
}

.clear-both {
    clear: both;
}

@media (max-width: 768px) {

    /* Nuclear override — force all bento family padding to near-zero on mobile */
    .lead-bento {
        padding: 3rem 1.5rem !important;
    }

    .bento-container,
    .bento-lower-tier,
    .bento-single-tier {
        padding: 0.75rem !important;
    }

    /* Outer section gutters */
    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Tighten bento-header internal spacing */
    .bento-header {
        gap: 0.35rem;
        margin-bottom: 0.5rem;
    }

    /* Reduce mb-24 section bottom margin on mobile */
    .mb-24 {
        margin-bottom: 3rem;
    }

    /* Reduce negative margins for mobile viewports */
    main {
        margin-top: -1rem !important;
    }

    .main--condensed {
        margin-top: -2rem !important;
    }

    .main--half-hero {
        margin-top: -15vh !important;
    }
}

.bento-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    /* Correct for mobile-first */
    margin-bottom: 0rem;
    gap: 0.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    height: auto;
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    transition: var(--transition-all);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.bento-card:hover img {
    transform: scale(1.05);
}

.bento-card-overlay {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

@media (max-width: 768px) {
    .bento-card-overlay {
        padding: 1rem;
    }
}

.bento-card-overlay-lg {
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

@media (max-width: 768px) {
    .bento-card-overlay-lg {
        padding: 1.25rem;
    }
}

.bento-card-badge {
    background-color: var(--tertiary);
    color: var(--on-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 1rem;
    font-family: var(--font-label);
}

.bento-card-title {
    color: white;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.advice-section {
    background-color: var(--surface-container-low);
    padding: 6rem 0;
    margin-bottom: 6rem;
    overflow: hidden;
    border-top: 1px solid rgba(0, 109, 119, 0.05);
    border-bottom: 1px solid rgba(0, 109, 119, 0.05);
}

.advice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

.advice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.advice-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.advice-icon-box {
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
}

.advice-item:hover .advice-icon-box {
    transform: scale(1.1);
}

.advice-item h4 {
    margin-bottom: 0.5rem;
}

.advice-featured-img {
    position: relative;
    height: 650px;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.advice-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advice-testimonial {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dest-card {
    cursor: pointer;
}

.dest-card-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    margin-bottom: 1.5rem;
    height: 450px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.dest-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.dest-card:hover img {
    transform: scale(1.1);
}

.exp-section {
    background: linear-gradient(135deg, #fef8f3 0%, #f3eee9 100%);
    padding: 6rem 0;
    margin-bottom: 6rem;
    border-top: 1px solid rgba(0, 109, 119, 0.05);
    border-bottom: 1px solid rgba(0, 109, 119, 0.05);
}

.exp-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease;
}

.exp-card:hover {
    transform: translateY(-0.5rem);
}

@media (max-width: 768px) {
    .exp-section {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }

    .exp-card {
        padding: 1.25rem;
        border-radius: var(--radius-2xl);
    }
}

.exp-card img {
    width: 100%;
    height: 13rem;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.news-article {
    display: flex;
    flex-direction: column;
}

.news-tag {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-label);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    transition: color 0.3s ease;
    cursor: pointer;
    font-family: var(--font-headline);
}

.news-article:hover .news-title {
    color: var(--primary);
}

.news-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 109, 119, 0.1);
}

.cta-newsletter {
    background-color: var(--secondary);
    border-radius: 3rem;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.newsletter-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 1.25rem 2rem;
    color: white;
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    opacity: 0.6;
}

.section-card {
    border-radius: var(--radius-3xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.badge-official {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.sidebar-expert {
    background-color: var(--primary);
    color: var(--on-primary);
}

.testimonial-quote {
    border-left: 2px solid var(--primary-container);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.accordion {
    background-color: var(--surface-container-low);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--surface-container-high);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

.sm-grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.culture-etiquette-card {
    background-color: #fff9f2;
    border: 1px solid rgba(136, 56, 200, 0.1);
}

.editorial-section {
    margin-bottom: 8rem;
}

.editorial-image-container {
    position: relative;
    width: 100%;
}

.aspect-editorial {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.aspect-editorial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.editorial-section:hover .aspect-editorial img {
    transform: scale(1.05);
}

.editorial-quote-overlap {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background-color: var(--surface-container-highest);
    padding: 2rem;
    max-width: 20rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-label-line {
    height: 1px;
    width: 3rem;
    background-color: var(--secondary);
}

.category-label-text {
    font-family: var(--font-label);
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.exp-list-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    cursor: pointer;
}

.exp-number {
    font-family: var(--font-headline);
    font-size: 1.875rem;
    color: var(--outline-variant);
    transition: color 0.3s ease;
}

.exp-list-item:hover .exp-number,
.exp-list-item:hover h3 {
    color: var(--tertiary);
}

.adventure-promo {
    background-color: var(--surface-container-low);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.culinary-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.wellness-hero {
    background-color: var(--primary);
    padding: 3rem;
    border-radius: var(--radius-3xl);
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.asymmetric-offset {
    margin-top: 2rem;
}

.curator-note {
    background-color: var(--secondary-fixed);
    padding: 2rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.curator-note-label {
    color: var(--on-secondary-fixed);
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.curator-note-text {
    color: var(--on-secondary-fixed-variant);
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 1.125rem;
}

.curator-note-icon {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    font-size: 6rem;
    opacity: 0.1;
    color: var(--on-secondary-fixed);
}

.gem-card {
    background-color: var(--surface-container-low);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* ==========================================
   Editorial Layout Engine (Float-Based Wrapping)
   ========================================== */

/* Solo Text Container */
.editorial-solo-text {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* 4:3 Aspect Ratio for all article figures */
.article-figure {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin: 0;
}

.article-figure.is-video {
    aspect-ratio: auto;
}

.article-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.article-figure:hover img {
    transform: scale(1.05);
}

.article-caption {
    font-family: var(--font-label);
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Single Image Floats (Allows text to wrap around and under) */
@media (min-width: 1024px) {
    .article-figure-right {
        float: right;
        width: 40%;
        margin-left: 3rem;
        margin-bottom: 2rem;
    }

    .article-figure-left {
        float: left;
        width: 40%;
        margin-right: 3rem;
        margin-bottom: 2rem;
    }

    .article-figure-full {
        float: none;
        width: 100%;
        clear: both;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 1023px) {

    .article-figure-right,
    .article-figure-left {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Full Width Gallery Disruptor */
.full-width-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .full-width-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Cover Text Block Styling */
.cover-text-block {
    position: relative;
}

.cover-hook {
    position: relative;
    padding-left: 2rem;
}

.cover-hook::before {
    content: '"';
    position: absolute;
    left: -1rem;
    top: -2rem;
    font-size: 8rem;
    font-family: var(--font-serif);
    color: var(--primary);
    opacity: 0.1;
    pointer-events: none;
}

.cover-quick-facts {
    border: 1px solid rgba(0, 109, 119, 0.1);
}

.fact-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 109, 119, 0.05);
}

.cover-honest-take {
    box-shadow: var(--shadow-sm);
}

.cover-section h3 {
    border-bottom: 2px solid var(--primary-container);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.gem-card:hover {
    background-color: var(--surface-container-high);
}

.gem-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.gem-card:hover img {
    transform: scale(1.1);
}

.gem-tag {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-label);
    margin-bottom: 1rem;
    display: inline-block;
}

.discovery-link {
    color: var(--tertiary);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.site-footer {
    background-color: rgba(243, 238, 233, 0.8);
    /* var(--surface-container) with 0.8 opacity */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem 0 1.5rem;
    color: var(--on-surface-variant);
    border-top: 1px solid rgba(0, 109, 119, 0.1);
    position: relative;
    z-index: 30;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--on-surface);
    /* fallback color for .co.uk part in footer */
    font-family: var(--font-headline);
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    opacity: 0.6;
    transition: var(--transition-all);
}

.social-icon:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-heading {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--on-surface);
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 109, 119, 0.1);
}

.footer-legal {
    font-size: 0.75rem;
    opacity: 0.6;
}

.grid-12 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (min-width: 640px) {
    .sm-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-w-auto {
        width: auto;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 8rem 2rem 0;
    }

    .hero-controls {
        bottom: 8rem;
        right: 4rem;
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

    .hide-mobile {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-title {
        font-size: 6rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-btns {
        flex-direction: row;
    }

    .bento-header {
        flex-direction: row;
        align-items: flex-end;
    }

    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        height: 600px;
    }

    .bento-col-span-2 {
        grid-column: span 2 / span 2;
    }

    .bento-row-span-2 {
        grid-row: span 2 / span 2;
    }

    .exp-offset {
        margin-top: 4rem;
    }

    .newsletter-form {
        flex-direction: row;
    }

    .grid-12 {
        grid-template-columns: repeat(12, 1fr);
    }

    .col-span-12 {
        grid-column: span 12 / span 12;
    }

    .col-span-8 {
        grid-column: span 8 / span 8;
    }

    .col-span-6 {
        grid-column: span 6 / span 6;
    }

    .col-span-5 {
        grid-column: span 5 / span 5;
    }

    .col-span-4 {
        grid-column: span 4 / span 4;
    }

    .md-col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md-col-span-5 {
        grid-column: span 5 / span 5;
    }

    .md-col-span-7 {
        grid-column: span 7 / span 7;
    }

    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md-flex-row {
        flex-direction: row;
    }

    .md-order-1 {
        order: 1;
    }

    .md-order-2 {
        order: 2;
    }

    .md-block {
        display: block;
    }

    .md-w-auto {
        width: auto;
    }

    .md-w-3-5 {
        width: 60%;
    }

    .md-w-2-5 {
        width: 40%;
    }

    .md-w-1-2 {
        width: 50%;
    }

    .md-pl-12,
    .md-ml-12 {
        padding-left: 3rem;
        margin-left: 3rem;
    }

    .md-p-24 {
        padding: 6rem;
    }

    .md-mt-24 {
        margin-top: 6rem;
    }

    .section-card {
        padding: 3rem;
    }

    .culinary-bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .wellness-hero {
        padding: 6rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .advice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg-col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg-col-span-8 {
        grid-column: span 8 / span 8;
    }

    .lg-flex-row {
        flex-direction: row;
    }

    .lg-block {
        display: block;
    }

    .lg-w-1\/2,
    .lg-w-1-2 {
        width: 50%;
    }

    .lg-mb-0 {
        margin-bottom: 0;
    }

    .editorial-image-container {
        width: 50%;
    }

    .wellness-hero {
        flex-direction: row;
    }

    .asymmetric-offset {
        margin-top: 0;
    }
}

/* ==========================================
   Template Page Hero
   ========================================== */
.template-hero-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.template-hero-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 40%, transparent 80%, var(--surface) 100%);
}

.template-hero-content {
    position: fixed;
    top: 15vh;
    left: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    /* Stack H1 and Meta vertically */
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    transition: none !important;
}

.template-hero-meta {
    font-family: var(--font-label);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 1.5rem;
}

.template-hero-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: white;
    text-align: center;
    text-shadow: var(--shadow-hero);
    margin: 0;
    line-height: 1.1;
    transition: none !important;
}

.template-main {
    position: relative;
    z-index: 20;
    margin-top: -67vh;
}

@media (max-width: 768px) {
    .template-hero-content {
        top: 12vh;
        z-index: 1000 !important;
    }

    .template-hero-meta {
        margin-top: 0.75rem;
    }

    .template-main {
        margin-top: -75vh;
    }
}

/* ==========================================
   Article Content Styles
   ========================================== */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--on-surface);
    background-color: transparent;
    padding-top: 2rem !important;
    /* Original transparency and gradient background */
    background-image:
        linear-gradient(110deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(125deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 65%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.8) 1000px);
    background-size:
        100% 1200px,
        100% 1200px,
        100% 100%;
    background-repeat: no-repeat;
    padding: 3rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.25),
        0 25px 50px -20px rgba(0, 0, 0, 0.35);
}

.bento-single-tier {
    border-radius: var(--radius-3xl);
}

.bento-lower-tier {
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    border-top: none;
}

/* High-Contrast Block Headings */
.article-content h2 {
    width: fit-content;
    background-color: var(--tertiary);
    color: #F9F9F9;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .article-content h2 {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.75rem;
    }
}

.article-content h3 {
    width: fit-content;
    background-color: var(--secondary);
    color: #FFFFFF;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* Clearfix for floated images */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

.article-text {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

/* Dynamic Quick Facts Block - Textured Obsidian Style */
.quick-facts {
    background-image:
        linear-gradient(110deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(125deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0) 65%),
        linear-gradient(to bottom, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 40px;
    max-width: 800px;
    margin: 3rem auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.quick-facts-grid {
    position: relative;
    z-index: 1;
}

.fact-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    align-items: start;
}

.fact-row:last-child {
    border-bottom: none;
}

.quick-fact-label {
    color: #ff9900;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    font-family: var(--font-label);
    opacity: 0.95;
    padding-right: 30px;
}

.quick-fact-value {
    color: #ffffff;
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.95rem;
}

.quick-fact-full-text {
    grid-column: 1 / -1;
    margin-top: 1rem;
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.4;
    font-size: 0.9rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .quick-facts {
        padding: 20px 25px;
        max-width: 100%;
        margin: 2rem 0;
    }

    .quick-facts::before {
        display: none;
        /* Hide the pointer on mobile to save vertical space */
    }

    .fact-row {
        grid-template-columns: 1fr;
        padding: 5px 0;
    }

    .quick-fact-label {
        margin-top: 1rem;
        padding: 0.5rem 0 0 0;
        border-bottom: none;
        font-size: 0.65rem;
    }

    .quick-fact-label:first-child {
        margin-top: 0;
    }

    .quick-fact-value {
        padding: 0.25rem 0 1rem 0;
        font-size: 0.9rem;
    }
}

.article-figure {
    width: 45%;
    max-width: 500px;
}

.article-figure-right {
    float: right;
    margin: 0 0 2rem 2rem;
}

.article-figure-left {
    float: left;
    margin: 0 2rem 2rem 0;
}

/* Grouped images (consecutive blocks) */
.article-image-grid {
    display: grid;
    gap: 1.5rem;
    margin: 3rem 0;
    clear: both;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Force specific column counts on desktop based on data-count */
.article-image-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.article-image-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.article-image-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }

.article-image-grid .article-figure {
    width: 100%;
    max-width: 100%;
    float: none;
    margin: 0;
}

@media (max-width: 800px) {
    /* Stack grid images vertically on mobile */
    .article-image-grid,
    .article-image-grid[data-count="2"],
    .article-image-grid[data-count="3"],
    .article-image-grid[data-count="4"] {
        grid-template-columns: 1fr;
    }

    .article-figure {
        width: 100%;
        max-width: none;
        float: none !important;
        margin: 1.5rem 0 2rem 0 !important;
    }
}

.glass-gallery-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    /* Forces a uniform viewport size */
    object-fit: cover;
    /* Ensures the image fills the viewport without distortion */
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.article-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
    font-family: var(--font-body);
}

/* ==========================================
   Chapter Navigation — Three-State Prev/Next
   ========================================== */
.chapter-nav {
    clear: both;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--outline-variant);
}

/* Flex row: single card stretches full-width; two cards split 50/50 */
.chapter-nav-row {
    display: flex;
    gap: 1rem;
}

/* Base card */
.chapter-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: var(--on-surface);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chapter-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 109, 119, 0.05);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Start link is narrower */
.chapter-nav-link--start {
    flex: 0 0 auto;
    min-width: max-content;
}

.chapter-nav-link:hover::before {
    opacity: 1;
}

.chapter-nav-link:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 109, 119, 0.15);
    transform: translateY(-2px);
}

/* Text stack (label + title) */
.chapter-nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Next card: text left, arrow right — already default */
.chapter-nav-link--next .chapter-nav-text {
    text-align: left;
}

/* Prev card: text right, arrow left */
.chapter-nav-link--prev .chapter-nav-text {
    text-align: right;
}

.chapter-nav-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.chapter-nav-title {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

/* Arrow circle */
.chapter-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Direction-aware hover slide */
.chapter-nav-link--next:hover .chapter-nav-arrow--right {
    transform: translateX(4px);
}

.chapter-nav-link--prev:hover .chapter-nav-arrow--left {
    transform: translateX(-4px);
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .chapter-nav {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    /* Stack cards vertically on small screens */
    .chapter-nav-row {
        flex-direction: column;
    }

    .chapter-nav-link {
        padding: 1rem 1.25rem;
    }

    /* Prev card reverts to left-aligned on mobile for readability */
    .chapter-nav-link--prev .chapter-nav-text {
        text-align: left;
    }

    .chapter-nav-title {
        font-size: 1rem;
    }
}


/* ==========================================
   Glass Gallery Modal
   ========================================== */
.glass-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.glass-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.glass-modal-content {
    position: relative;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-modal-image-container {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 70vh;
    /* Fixed height prevents jiggle during crossfade */
}

.glass-modal-img {
    grid-area: 1 / 1;
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.glass-modal-img.is-active {
    opacity: 1;
    z-index: 2;
}

/* Only enable pointer-events when the modal is actually open */
.glass-modal.is-active .glass-modal-img.is-active {
    pointer-events: auto;
}

.glass-modal-caption {
    margin-top: 1.5rem;
    color: white;
    font-size: 1.125rem;
    text-align: center;
    max-width: 600px;
    font-family: var(--font-body);
    font-weight: 500;
    min-height: 3.5rem;
    /* Anchors the layout to prevent jiggling */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Controls */
.glass-modal-close,
.glass-modal-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-modal-close:hover,
.glass-modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.glass-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    z-index: 10005;
}

.glass-modal-nav {
    position: fixed;
    /* Breaks out of the dynamic image container */
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    z-index: 10001;
    /* Keeps buttons above overlapping large images */
}

.glass-modal-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.glass-modal-prev {
    left: 4rem;
    /* Consistent distance from screen edge */
}

.glass-modal-next {
    right: 4rem;
    /* Consistent distance from screen edge */
}

@media (max-width: 1024px) {
    .glass-modal-prev {
        left: 1rem;
    }

    .glass-modal-next {
        right: 1rem;
    }
}

/* Modal Play/Pause Toggle */
.glass-modal-toggle {
    margin-top: 1.75rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10002;
}

.glass-modal-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.glass-modal-toggle .material-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Global Button Attention Sequence */
.attention-btn.text-flash-active {
    animation: btnTextFlashGlobal 1s ease-in-out;
}

@keyframes btnTextFlashGlobal {

    0%,
    100% {
        color: var(--on-secondary);
    }

    50% {
        color: var(--tertiary);
        text-shadow: 0 0 8px rgba(253, 157, 26, 0.4);
    }
}
/* ==========================================
   Silo Master Index (Mini-Dossier Cards)
   ========================================== */
.silo-index {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 109, 119, 0.1);
}

.silo-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.silo-index-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.silo-index-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
}

.silo-index-card.is-active {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(253, 157, 26, 0.4);
    box-shadow: 0 4px 15px rgba(253, 157, 26, 0.08), inset 0 -2px 10px rgba(253, 157, 26, 0.12); /* subtle saffron glow */
}

.silo-index-card.is-active::after {
    content: "CURRENT";
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--tertiary);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(253, 157, 26, 0.3);
}

.silo-index-part {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary); /* using teal as requested */
}

.silo-index-title {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-surface);
    line-height: 1.2;
}

@media (max-width: 1024px) {
 .silo-index-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

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