/* =========================================================
   FONT
   ========================================================= */

@font-face {
    font-family: 'EgyptFont';
    src: url('/fonts/egyptfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   GLOBAL & LAYOUT
   ========================================================= */

body {
    margin: 0;
    padding: 0;
    background-color: #000000;  /* Black outside main column */
    font-family: Agenda, Arial, Helvetica, sans-serif;
    color: #000000;
    font-size: 1.2em;
    line-height: 1.3em; 

}



header, main, div {
    margin: 0;
    padding: 0;
    vertical-align: top;
}

p {
    margin-top: 0px;
}

/* Wrap main column to center it on black */
.page-shell {
    max-width: 100%;
}

/* Main column: hero + content share this background tile */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #4b3c7f;         /* fallback behind tile */
    background-repeat: repeat;
    background-position: center top;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h2, h5, h6 {
    font-family: 'EgyptFont', serif;
}

h1 {
    font-family: 'ronnia-condensed', sans-serif;
    font-size: 3.5vw; /* fallback for clamp */
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 4.2vw; /* fallback for clamp */
    line-height: clamp(33.6px, 4.2vw, 55.2px);
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0px;
    padding-top: 0px;
    width: 100%;
    display: block;
    color: #0b1b6e;
}

h1.h1-tight {
    margin-bottom: 8px;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.8rem;
    margin-bottom: 2px;
    margin-top: 0px;
}
 
h3 {
    font-family: ronnia-condensed, sans-serif;
    font-size: 2.27vw; /* fallback for clamp */
    font-size: clamp(24px, 2.27vw, 27px);
    font-weight: 600;
    line-height: 2.72vw; /* fallback for clamp */
    line-height: clamp(28.8px, 2.72vw, 32.4px);
    margin: 20px 0 0 0;
    color: #0b1b6e;
}

h4 {
    font-family: ronnia-condensed, sans-serif;
    font-size: 2.4vw; /* fallback for clamp */
    font-size: clamp(18px, 2.4vw, 27px);
    font-weight: 600;
    line-height: 2.88vw; /* fallback for clamp */
    line-height: clamp(21.6px, 2.88vw, 32.4px);
    margin: 0;
    color: #fdfdfd;
    text-shadow:
        0 0 3px rgba(0, 0, 0, 1),
        0 0 5px rgba(0, 0, 0, 1),
        0 0 7px rgba(0, 0, 0, 1),
        0 0 10px rgba(0, 0, 0, 1);
}


h4 a {
    color: #fdfdfd;
    text-decoration: none;
}

h4 a:hover {
    color: #ffff00;
    text-decoration: none;
}



.book-author {
    font-family: Agenda, sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
}

h5 {
    font-size: 16px;
    line-height: 19px;
    margin: 0 0 0px 0;
    text-wrap: balance;
}

p {
    font-size: 1em;
    line-height: 1.3em;
    margin-top: 0;
    margin-bottom: 14px;
    text-align: justify;
}

p.text-left {
    text-align: left;
}

b {
    font-weight: 600;
}

ul {
    margin: 0 0 14px 0px;
    padding: 0;
    list-style: none;
}

li {
    margin-bottom: 6px;
    padding-left: 25px;
    background-image: url('/images/bullet.svg');
    background-repeat: no-repeat;
    background-position: 0 0.28em;
    background-size: 18px 18px;
}

/* Cabin size text (boat page) */
.cabin-size {
    font-family: ronnia-condensed, sans-serif;
    font-weight: 600;
    font-size: 1.8vw; /* fallback for clamp */
    font-size: clamp(20px, 1.8vw, 21px);
    line-height: 2.16vw; /* fallback for clamp */
    line-height: clamp(24px, 2.16vw, 25.2px);
    color: #0b1b6e;
}

/* Two-column amenities lists (boat page) */
.amenities-columns {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.amenities-left,
.amenities-right {
    flex: 1 1 50%;
    margin-bottom: 0;
    box-sizing: border-box;
}

.amenities-left {
    padding-right: 6px;
}

.amenities-right {
    padding-left: 6px;
}

.amenities-left li,
.amenities-right li {
    text-wrap: balance;
}

/* Day number styling - black for "Day #:" */
.day-number {
    color: #000000;
}

/* Itinerary h2 titles are red, day numbers stay black */
h2.day-title {
    color: #bf3722;
}

/* At 1024px and below, stack and go full width */
@media (max-width: 1024px) {
    .amenities-left,
    .amenities-right {
        flex: 1 1 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .amenities-left {
        margin-bottom: 0;
    }
    .amenities-left li:last-child {
        margin-bottom: 6px; /* Same as normal li spacing */
    }
    /* Day number breaks to its own line, hide colon */
    .day-number {
        display: block;
    }
    .day-colon {
        display: none;
    }
}

/* Tablet h2 sizing */
@media (min-width: 701px) and (max-width: 1024px) {
    h2 {
        font-size: 2.53vw;
        line-height: 3.036vw;
    }
}

/* Mobile h2 sizing */
@media (max-width: 600px) {
    h2 {
        font-size: 4vw;
        line-height: 4.8vw;
    }
}

a {
    color: #d0240d;
    text-decoration: none;
}

a:hover {
    color: #051987;
    text-decoration: underline;
}

/* Captions for all highlight boxes */
.highlight-caption,
.carousel-caption {
    font-size: 14px;
    margin: 0;
    text-align: center;
    text-wrap: balance;
}

.highlight-box h5 {
    text-align: center;
}

.highlight-box p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    text-wrap: balance;
}

/* =========================================================
   NAVIGATION (DESKTOP/TABLET)
   ========================================================= */

.site-header {
    background: linear-gradient(to bottom, #ead57c 0%, #e5c968 25%, #e0bc54 50%, #dda940 75%, #d99c24 100%); /* Orange gradient top to bottom */
    border-bottom: solid 1px #0b1b6e;
    box-shadow: 0px 3px 20px 0px rgba(0, 0, 0, 1);
    position: sticky;
    top: 0;
    z-index: 25;  /* Above everything to stay on top when scrolling */
    margin: 0;
    display: block;
}

/* Yellow box width is 1200 - 96 = 1104.
   Nav should be 2% narrower than content-inner (98% of 1104px = 1082px). */
.main-nav {
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(100vw - 96px);
    max-width: 1082px;  /* 98% of content-inner's 1104px, stops growing at 1200px viewport */
    margin: 0 auto;
}

/* Hamburger button – hidden on desktop */
.nav-toggle {
    display: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
}

/* UL/LI: centered cluster with fixed pipe spacing, 98% of nav width */
.main-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    width: 98%;  /* 1% margin on each side within nav container */
    justify-content: center;
    align-items: center;
}

.main-nav li {
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    margin: 0px;
    padding: 0px;
    background-image: none;
    background-position: none;
    background-size: none;
}

/* Pipes with three spaces on each side */
.main-nav li::after {
    content: "  |  ";
    white-space: pre;  /* Preserves the spaces */
    font-size: 1.3vw; /* fallback for clamp */
    font-size: clamp(9px, 1.3vw, 15.5px);  /* Caps at 1200px viewport (1.35vw = 16.2px) */
    letter-spacing: 0.2vw; /* fallback for clamp */
    letter-spacing: clamp(1px, 0.2vw, 2.4px);
    color: #0b1b6e;
    font-family: 'EgyptFont', serif;
}

.main-nav li:last-child::after {
    content: "";
}

/* Nav links use EgyptFont with vw sizing to fill space, capped at 1200px */
.main-nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.3vw; /* fallback for clamp */
    font-size: clamp(9px, 1.3vw, 15.5px);  /* Caps at 1200px viewport (1.35vw = 16.2px) */
    letter-spacing: 0.2vw; /* fallback for clamp */
    letter-spacing: clamp(1px, 0.2vw, 2.4px);
    color: #0b1b6e;
    line-height: 41px;
    font-family: 'EgyptFont', serif;
    white-space: nowrap;
}

/* Hover + active/on-state */
.main-nav a:hover {
    text-shadow:
        0px 0px 30px #fbfeed,
        5px 0px 20px #fbfeed,
        -5px 0px 20px #fbfeed,
        15px 0px 13px #fbfeed,
        -15px 0px 13px #fbfeed,
        5px 0px 10px #fbfeed,
        -5px 0px 10px #fbfeed,
        0px 0px 8px #fbfeed,
        0px 0px 3px #fbfeed;
}
.main-nav a.active {
    color: #fbfeed;
    pointer-events: none;
    cursor: default;
}

/* =========================================================
   DATE HEADER (January 8 – 17, 2027!)
   ========================================================= */

/* Hide all by default */
.date-header {
    display: none;
}

/* Desktop (769px+): Positioned 20px below site-header, aligned left with "Sign Up" nav item */
.date-header-desktop {
    position: absolute;
    top: calc(41px + 20px); /* site-header height (41px line-height) + 20px margin */
    left: 5.37vw; /* Aligns with Sign Up (5.37% of viewport width measured at 792px, 900px, 1020px) */
    z-index: 24; /* Just below site-header (25) so it scrolls behind */
}

/* Tablet (501px-768px): Styled in media query below */

/* Mobile (500px and below): Styled in media query below */

/* =========================================================
   HERO AREA
   ========================================================= */

/* Hero wrapper: contains hero background image, logo and content */
.hero-wrapper {
    position: relative;
    background-size: 100% auto;
    background-position: center 42px;
    background-repeat: no-repeat;
    display: block;
    font-size: 1.2em;
}

.hero-wrapper-home {
    /* Hero aspect ratio: 1200x665 */
}

.hero-wrapper-sub {
    /* Hero aspect ratio: 1200x428 */
}

.hero {
    position: relative;
    overflow: visible;
}

.hero-home,
.hero-sub {
    height: auto;
}

/* Wrapper for stacked hero images */
.hero-images {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Aspect ratio for home hero: 1200x665 */
.hero-home .hero-images {
    aspect-ratio: 1200 / 665;
}

/* Aspect ratio for subpage hero: 1200x428 */
.hero-sub .hero-images {
    aspect-ratio: 1200 / 428;
}

/* Base hero image style – stacked absolutely */
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Currently visible image */
.hero-image-current {
    opacity: 1;
    z-index: 1;
}

/* Incoming image fades on top */
.hero-image-next {
    opacity: 0;
    z-index: 2;
}

/* =========================================================
   LOGO OVER HERO (SVG + DROP SHADOW)
   ========================================================= */

.site-logo {
    margin: 0 auto;
    display: block;
}

/* Home logo: match yellow box width */
.logo-home {
    margin-top: 43.5vw;
    width: calc(100% - 96px); /* same as content-inner width at desktop */
    max-width: 1104px;

}

/* Subpage logo: same style as home logo */
.logo-sub {
    margin-top: 22.4vw;
    width: calc(100% - 96px);
    max-width: 1104px;
}

.logo-home img,
.logo-sub img {
    width: 100%;
    height: auto;
    display: block;

    /* Stronger, deeper drop shadow (stacked) - capped at 1200px */
    /* fallback for clamp */
    filter:
        drop-shadow(0 0 0.33vw rgba(0, 0, 0, 1))
        drop-shadow(0 0 0.67vw rgba(0, 0, 0, 1))
        drop-shadow(0 0 1vw rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 1.67vw rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 2.5vw rgba(0, 0, 0, 0.7));
    filter:
        drop-shadow(0 0 clamp(2px, 0.33vw, 4px) rgba(0, 0, 0, 1))
        drop-shadow(0 0 clamp(4px, 0.67vw, 8px) rgba(0, 0, 0, 1))
        drop-shadow(0 0 clamp(6px, 1vw, 12px) rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 clamp(10px, 1.67vw, 20px) rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 clamp(15px, 2.5vw, 30px) rgba(0, 0, 0, 0.7));
}

/* =========================================================
   CONTENT COLUMN
   ========================================================= */

.content-wrapper {
    margin-top: 0px;
    padding-bottom: 15px;
    padding-top: 15px;

}

/* Subpage content wrapper positioned higher */
.hero-wrapper-sub .content-wrapper {
    margin-top: 0;
}


/* Yellow/cream box:
   width = 1200 - 96 = 1104
   inner grid ~1034px (35px padding each side) */
.content-inner {
    width: calc(100% - 96px);
    max-width: 1104px;
    box-sizing: border-box;
    margin: 0px auto;  /* Fixed spacing - maintains consistent gap with logo */
    background-color: #fbfeed;
    border-radius: 20px;
    padding: 20px 35px 31px 35px;
    position: relative;
    z-index: 20;
    box-shadow: -5px 10px 31px rgba(0, 0, 0, 1);
    line-height: 1.3em;
}

/* =========================================================
   TWO-COLUMN LAYOUT (334/726 split)
   ========================================================= */

.content-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 40px;
}

/* 334 / 1060 ≈ 31.51%, 726 / 1060 ≈ 68.49% */
.column-left {
    flex: 0 0 31.51%;
    max-width: 31.51%;
}

.column-right {
    flex: 0 0 68.49%;
    max-width: 68.49%;
    padding-left: 25px;
    box-sizing: border-box;
}


/* =========================================================
   HIGHLIGHT SQUARES & STATIC BOXES
   ========================================================= */

/* Single left-column highlight square - matches three-highlight box style */
.highlight-square {
    background-color: #f5f0d8;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.highlight-square img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Three highlight boxes (31.51% each with 29px gaps) */
.three-highlights {
    display: flex;
    flex-wrap: nowrap;
    gap: 29px;
    margin-bottom: 40px;
}

.highlight-box {
    flex: 1 1 0;
    max-width: 458px;  /* 434px image + 24px padding (12px each side) */
    background-color: #f5f0d8;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
}

.highlight-box img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 434px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Full-width highlight - fixed 200px height with cropping */
.full-width-highlight {
    margin-bottom: 40px;
}

.full-width-highlight img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;  /* Clips/crops image to fit 200px height */
    border-radius: 12px;
}

/* =========================================================
   CYCLING HIGHLIGHT CAROUSEL BOX + RIGHT TEXT COLUMN
   ========================================================= */

.carousel-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* left column proportions match first row */
.carousel-left {
    flex: 0 0 31.51%;
    max-width: 31.51%;
}

.carousel-right {
    flex: 0 0 68.49%;
    max-width: 68.49%;
    padding-left: 25px;
    box-sizing: border-box;
}

/* Box inside left column; same visual style as highlight-box */
.highlight-carousel {
    width: 100%;
    background-color: #f5f0d8;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
}

/* Frame that holds the image + arrows */
.highlight-carousel-frame {
    position: relative;
}

/* Same treatment as highlight-box images so size matches visually */
.carousel-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Caption below the image */
.carousel-caption {
    margin: 10px 0 0 0;
    font-size: 14px;
}

/* Left/right controls: inside image, Egypt font arrows */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    cursor: pointer;
    font-family: 'EgyptFont', serif;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    padding: 0;
}

.carousel-control:hover {
    color: #ffff00;
    background: rgba(0, 0, 0, .8);
    font-weight: 800;
}


.carousel-control.prev {
    left: 8px;
}

.carousel-control.next {
    right: 8px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    text-align: center;
    padding: 20px 10px 50px;
    font-size: 14px;
    color: #f0e8ff;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 1),
        0 0 6px rgba(0, 0, 0, 1),
        0 0 10px rgba(0, 0, 0, 1),
        0 0 10px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 1),
        0 0 22px rgba(0, 0, 0, 1),
        0 0 22px rgba(0, 0, 0, 1),
        0 0 28px rgba(0, 0, 0, 1),
        0 0 28px rgba(0, 0, 0, 1);
}

.site-footer p {
    margin: 0;
    text-align: center;
}

/* =========================================================
   COGNITO FORM STYLING
   ========================================================= */

/* Cognito form h2: Blue Ronnia Condensed */
.cog-form h2,
[class*="cog-"] h2 {
    font-family: 'ronnia-condensed', sans-serif !important;
    font-size: 3.4vw !important; /* fallback for clamp */
    font-size: clamp(26px, 3.4vw, 30px) !important;
    line-height: 1.04 !important;
    font-weight: 600 !important;
    color: #0b1b6e !important;
    margin-top: 20px !important;
    margin-bottom: 0px !important;
}
/* Form labels styled like h3 */
.cog-label,
.cog-label__text, .cog-content h3 {
    font-family: ronnia-condensed, sans-serif !important;
    font-size: 2.3vw !important; /* fallback for clamp */
    font-size: clamp(18px, 2.3vw, 22px) !important;
    font-weight: 600 !important;
    line-height: 2.76vw !important; /* fallback for clamp */
    line-height: clamp(21.6px, 2.76vw, 26.4px) !important;
    margin: 0 0 0 0 !important;
    color: #0b1b6e !important;
}



/* Form input fields and textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
    font-family: Agenda, Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    line-height: 1.3em;
    background-color: #f4f0db;
    border: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
}

/* Cognito form fields - font only, no background */
.cog-input,
.cog-input__element {
    font-family: Agenda, Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    line-height: 1.3em;
}

/* Multi-line textarea - 5 lines tall */
textarea,
.cog-input--textarea .cog-input__element {
    min-height: 6.5em;
}

/* Override Cognito's default text sizing */
.cog-form,
.cog-form p,
.cog-form div,
.cog-form span {
    font-size: 1em !important;
    line-height: 1.3em !important;
}

.cog-helptext p {
     font-size: .7em !important;
    line-height: 1em !important;   
}

/* Remove extra margin from multiline text fields */
.cog-text--multiplelines {
    margin: 0 !important;
}

/* Remove margin from cog-input containing textarea */
.cog-text--multiplelines .cog-input {
    margin: 0 !important;
}

/* Remove margin from textarea wrapper */
.cog-input--textarea {
    margin: 0 !important;
}

/* Remove padding from cog-input that contains el-textarea */
.cog-input:has(.el-textarea) {
    padding: 0 !important;
}

/* Alternative selector for cog-input with el-textarea child */
.cog-input .el-textarea {
    margin-top: 0 !important;
}

.el-textarea {
    padding-top: 0 !important;
}

/* Reduce space below cog-col when it's above a multiline field */
.cog-col:has(+ .cog-text--multiplelines) {
    margin-bottom: 0.5em !important;
}

/* Alternative: reduce bottom margin on cog-col that directly precedes multiline */
.cog-text--multiplelines .cog-col {
    margin-bottom: 0.5em !important;
}

/* Submit button styling */
button[type="submit"],
.cog-button,
.cog-button--submit {
    background-color: #22a553 !important;
    border: 1px solid #180e04 !important;
    border-radius: 10px !important;
    box-shadow: inset 0px 0px 15px 0px rgba(24, 14, 4, 0.8) !important;
    font-family: 'EgyptFont', serif !important;
    font-size: 1.4rem !important;
    text-transform: uppercase !important;
    color: #fdfdfd !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    margin-top:0px !important;
}

button[type="submit"]:hover,
.cog-button:hover,
.cog-button--submit:hover {
    color: #fff000 !important;
    box-shadow: inset 0px 0px 15px 2px rgba(24, 14, 4, 1) !important;
}

.cog-content {
    padding-top: 0px !important;
    margin-bottom: 0px !important;
}

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */
@media (min-width: 1200px) {
    .logo-home {
        margin-top: 525px;
    }
    .logo-sub {
        margin-top: 268px;
    }

    .content-wrapper {
        margin-top: 0;
    }

    .hero-wrapper-sub .content-wrapper {
        margin-top: 0;
    }

    /* Desktop date header: show and make font pixel-based (not vw) */
    .date-header-desktop {
        left: calc(50% - 541px + 10.82px);
        display: block;
    }

    h4 {
        font-size: 27px;
    }

}

/* Desktop date header visibility (769px and above) */
@media (min-width: 769px) {
    .date-header-desktop {
        display: block;
    }
    .date-header-tablet,
    .date-header-mobile {
        display: none;
    }
}

/* Adjust position for 1178px to 1199px where nav is at max-width but viewport is growing */
@media (min-width: 1178px) and (max-width: 1199px) {
    .date-header-desktop {
        left: calc(50% - 541px + 10.82px); /* Slides right as viewport grows */
    }
}

/* Tablet date header visibility and styling (501px to 768px) */
@media (min-width: 501px) and (max-width: 768px) {
    .date-header-tablet {
        display: flex;
        position: absolute;
        top: 3px;
        line-height: 2.2vw;
        right: 10px;
        height: 41px;
        align-items: center;
        z-index: 100;
    }
    .date-header-desktop,
    .date-header-mobile {
        display: none !important;
    }
}

/* First content row and carousel row stack below 700px */
@media (max-width: 700px) {

    .content-columns {
        flex-direction: column;
        align-items: center;  /* Center single boxes when stacked */
    }

    .column-left,
    .column-right {
        flex: 0 0 auto;
        max-width: none;
        padding-left: 0;
    }

    /* Keep single highlight boxes at 334px width (centered) until 500px */
    .column-left {
        width: 334px;
        max-width: 100%;
        order: 2;  /* Move left column below right column */
    }

    .column-right {
        order: 1;  /* Move right column above left column */
        margin-bottom: 20px;
    }

    .carousel-row {
        flex-direction: column;
        align-items: center;  /* Center carousel box when stacked */
    }

    .carousel-left,
    .carousel-right {
        flex: 0 0 auto;
        max-width: none;
        padding-left: 0;
    }

    /* Keep carousel box at 334px width (centered) until 500px */
    .carousel-left {
        width: 334px;
        max-width: 100%;
        order: 2;  /* Move carousel below text */
    }

    .carousel-right {
        order: 1;  /* Move text above carousel */
        margin-bottom: 20px;
    }
}

/* Triple highlight row stays 3-across until below 900px */
@media (max-width: 900px) {
    .three-highlights {
        flex-direction: column;
        gap: 20px;
        align-items: center;  /* Center boxes when stacked */
    }

    .highlight-box {
        flex: 0 0 auto;
        max-width: 458px;  /* 434px image + 24px padding */
    }
}

/* Below 700px, triple boxes become 334px (310px image + 24px padding) */
@media (max-width: 700px) {
    .highlight-box {
        width: 334px;
        max-width: 100%;
    }

    .highlight-box img {
        max-width: 310px;
    }
}

/* Mobile navigation & stacked layouts */
@media (max-width: 768px) {

    .site-header {
        background: transparent;  /* Remove gradient for mobile */
        position: inherit;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
        box-shadow: none;
        border: none;
        
    }

    .main-nav {
        margin: 0;
    }

    .main-nav ul {
        display: none;
    }

    .main-nav ul.nav-open {
        display: inline-flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 10px;
        padding: 0;
        margin: 0;
        margin-top: 16px;
        background: transparent;
        gap: 0;
        align-items: stretch;
        width: auto;
        box-shadow: 0px 3px 20px 0px rgba(0, 0, 0, 1);
    }

    .main-nav ul.nav-open li {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
        font-size: 0;
        padding-right: 20px;
    }

    .main-nav ul.nav-open li::after {
        display: none;
    }

    .main-nav ul.nav-open li:not(:last-child) a {
        border-bottom: 1px solid #0b1b6e;
    }

    .main-nav ul.nav-open li a {
        display: block;
        background: linear-gradient(to bottom, #ead57c 0%, #e5c968 25%, #e0bc54 50%, #dda940 75%, #d99c24 100%);
        padding: 13px 13px 13px 13px;
        text-align: left;
        white-space: nowrap;
        font-size: 18px;
        line-height: 1;
    }

    /* White hamburger with tight drop shadow - twice the size */
    .nav-toggle {
        display: block;
        color: #ffffff;
        font-size: 48px;
        margin-top: 7px;
        text-shadow:
            0 0 5px rgba(0, 0, 0, 1),
            0 0 10px rgba(0, 0, 0, 1),
            0 0 15px rgba(0, 0, 0, 1);
    }

    .nav-toggle:hover {
        color: #f9d16c;
    }

    /* Home logo and content use 20px margins (40px total) at 768px */

    .hero-wrapper {
        background-position: center top;
    }

    .logo-sub, .logo-home {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        /* Keep percentage from desktop */
    }

    .content-inner {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        padding: 25px 22px;
    }
}

/* Smaller screens - single boxes fill width, logo and content stay same */
@media (max-width: 500px) {
    /* Logo and content inherit width from 768px breakpoint */

    /* Single highlight boxes now fill the column width */
    .column-left,
    .carousel-left {
        width: 100%;
    }

    /* Mobile date header visibility and positioning */
    .date-header-mobile {
        display: block;
        position: relative;
        width: 100%;
        text-align: center;
        margin: 13px 0 0 0;
        z-index: 100;
    }
    .date-header-desktop,
    .date-header-tablet {
        display: none;
    }
    
    h4 {
        font-size: 5.8vw; /* fallback for clamp */
        font-size: clamp(16px, 5.8vw, 27px);
    }
}