:root {
    --ink: #12372d;
    --ink-2: #17493c;
    --cream: #fffaf0;
    --paper: #ffffff;
    --coral: #ff765f;
    --lime: #c9ef67;
    --sky: #7ed7f5;
    --yellow: #ffd75a;
    --purple: #b9a3ff;
    --muted: #63736e;
    --border: rgba(18, 55, 45, .13);
    --shadow: 0 22px 60px rgba(18, 55, 45, .12);
    --radius: 32px;
    --heading: 'Fredoka', sans-serif;
    --body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: white; color: var(--ink); padding: 12px 18px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.announcement { background: var(--ink); color: white; font-size: .84rem; }
.announcement-inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; }
.announcement p { display: flex; gap: 8px; align-items: center; }
.announcement p i { color: var(--yellow); }
.announcement a { color: var(--lime); font-weight: 700; display: flex; align-items: center; gap: 8px; }

.site-header { background: rgba(255, 250, 240, .93); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(18,55,45,.08); }
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 60px; height: 60px; border-radius: 19px; display: grid; place-items: center; background: conic-gradient(from 35deg, var(--coral) 0 25%, var(--yellow) 25% 50%, var(--sky) 50% 75%, var(--lime) 75% 100%); transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(18,55,45,.12); -webkit-mask-image: url('../images/logo-icon.webp'), linear-gradient(#000, #000); -webkit-mask-position: center; -webkit-mask-size: 72% 72%, cover; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: destination-out; mask-image: url('../images/logo-icon.webp'), linear-gradient(#000, #000); mask-position: center; mask-size: 72% 72%, cover; mask-repeat: no-repeat; mask-composite: exclude; }
.brand-mark img { display: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; min-width: 160px; }
.brand-copy strong { display: flex; flex-direction: column; gap: 3px; font-family: var(--heading); font-size: 1.25rem; letter-spacing: -.015em; }
.brand-copy strong span { display: block; white-space: nowrap; }
.brand-copy strong span:nth-child(2) { color: var(--coral); }
.brand-copy small { margin-top: 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; background: linear-gradient(90deg, #ff765f 0 28%, #d5a500 28% 50%, #1586aa 50% 72%, #5c8d18 72% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 29px; font-weight: 700; font-size: .9rem; }
.main-nav > a:not(.nav-cta) { position: relative; }
.main-nav > a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px; background: var(--coral); border-radius: 5px; transition: right .25s; }
.main-nav > a:not(.nav-cta):hover::after { right: 0; }
.main-nav > a.active::after { right: 0; }
.nav-cta, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.nav-cta { background: var(--coral); color: var(--ink); padding: 13px 21px; box-shadow: 4px 5px 0 var(--ink); }
.nav-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 var(--ink); }
.menu-toggle { display: none; width: 45px; height: 45px; border-radius: 50%; background: var(--ink); border: 0; padding: 12px; }
.menu-toggle span { display: block; height: 2px; background: white; border-radius: 3px; margin: 4px 0; transition: .25s; }

.hero { position: relative; padding: 74px 0 0; overflow: hidden; background: linear-gradient(110deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.88) 45%, rgba(255, 250, 240, 0.42) 85%, rgba(255, 250, 240, 0.25) 100%), url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=2000&q=85') center/cover no-repeat; min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-grid { min-height: 580px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 58px; padding-bottom: 30px; position: relative; z-index: 2; flex-grow: 1; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.eyebrow { background: white; border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px; margin-bottom: 24px; }
.eyebrow-dot { width: 9px; height: 9px; background: var(--coral); border-radius: 50%; box-shadow: 12px 0 0 var(--yellow), 24px 0 0 var(--sky); margin-right: 24px; }
.hero h1, .section-heading h2, .programme-header h2, .day-content h2, .enrol-copy h2 { font-family: var(--heading); line-height: .96; }
.hero h1 { font-size: clamp(4rem, 6.1vw, 6.65rem); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--coral); position: relative; }
.hero h1 em::after { content: ''; position: absolute; height: 8px; border-radius: 50%; background: var(--coral); left: 2%; right: 2%; bottom: -1px; transform: rotate(-2deg); opacity: .5; }
.hero h1 .outline-word { display: inline-flex; align-items: baseline; gap: .075em; color: transparent; font-weight: 600; letter-spacing: 0; }
.hero h1 .outline-word > span { display: inline-block; line-height: .88; color: transparent; -webkit-text-stroke: 2px var(--ink); -webkit-text-fill-color: transparent; paint-order: stroke fill; }
.hero h1 .outline-period { margin-left: -.035em; }
.hero-copy > p { max-width: 510px; font-size: 1.07rem; color: var(--muted); margin: 29px 0; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.btn { padding: 16px 26px; }
.btn-dark { background: var(--ink); color: white; box-shadow: 5px 6px 0 var(--yellow); }
.btn-dark:hover, .btn-coral:hover { transform: translate(-2px,-2px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .91rem; }
.play-icon { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: white; border: 1px solid var(--border); color: var(--coral); font-size: .7rem; }
.trust-row { display: flex; align-items: center; gap: 14px; margin-top: 38px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--cream); margin-left: -9px; font-weight: 700; font-size: .76rem; }
.avatar-stack span:first-child { margin: 0; background: var(--yellow); }
.avatar-stack span:nth-child(2) { background: var(--sky); }
.avatar-stack span:nth-child(3) { background: var(--coral); }
.trust-row p { font-size: .76rem; line-height: 1.35; color: var(--muted); }
.trust-row strong { color: var(--ink); }

.hero-visual { height: 560px; position: relative; }
.photo-shape { position: absolute; inset: 15px 2px 15px 28px; background: url('https://images.unsplash.com/photo-1587654780291-39c9404d746b?auto=format&fit=crop&w=1100&q=85') 50% 50% / 135% auto; border-radius: 48% 52% 44% 56% / 43% 40% 60% 57%; box-shadow: inset 0 0 0 8px rgba(255,255,255,.65), var(--shadow); transition: transform 0.15s ease-out, background-position 0.15s ease-out, border-radius 0.6s ease; cursor: pointer; overflow: hidden; will-change: transform, background-position; }
.hero-visual:hover .photo-shape { background-size: 142% auto; }
.hero-visual::before { content: ''; position: absolute; width: 180px; height: 180px; background: var(--lime); border-radius: 44% 56% 66% 34%; top: -11px; left: -10px; transform: rotate(20deg); }
.hero-visual::after { content: ''; position: absolute; width: 150px; height: 150px; background: var(--yellow); border-radius: 50%; right: -36px; bottom: -5px; }
.float-card { position: absolute; z-index: 4; background: white; border-radius: 20px; padding: 13px 17px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow); animation: float 4.5s ease-in-out infinite; }
.float-card-top { top: 65px; right: -30px; }
.float-card-bottom { bottom: 66px; left: -38px; animation-delay: -2s; }
.float-card strong, .float-card small { display: block; line-height: 1.3; }
.float-card strong { font-family: var(--heading); font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .72rem; }
.mini-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; }
.mini-icon.yellow { background: var(--yellow); }
.mini-icon.blue { background: var(--sky); }
.doodle-star { position: absolute; z-index: 3; font-size: 2rem; }
.star-one { color: var(--coral); left: 5px; bottom: 0; transform: rotate(15deg); }
.star-two { color: var(--ink); right: 16px; top: 10px; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .55; }
.hero-blob-one { width: 260px; height: 260px; background: #ffdcd4; left: -120px; top: 80px; }
.hero-blob-two { width: 210px; height: 210px; background: #d6f8ff; right: -110px; bottom: 50px; }
@keyframes float { 50% { transform: translateY(-10px) rotate(1deg); } }
.hero-marquee { background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-marquee div { min-width: max-content; padding: 15px 0; display: flex; justify-content: center; align-items: center; gap: 35px; font-family: var(--heading); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hero-marquee i { color: var(--coral); font-style: normal; }

.intro { background: white; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; margin-bottom: 66px; }
.kicker { color: var(--coral); margin-bottom: 17px; }
.kicker.light { color: var(--lime); }
.section-heading h2, .programme-header h2, .day-content h2 { font-size: clamp(2.8rem, 4.5vw, 5rem); font-weight: 600; }
.section-heading h2 span, .programme-header h2 span, .day-content h2 span { color: var(--coral); }
.intro-copy { color: var(--muted); font-size: 1.05rem; }
.arrow-link { color: var(--ink); font-weight: 700; margin-top: 25px; display: inline-flex; align-items: center; gap: 13px; }
.arrow-link span { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); transform: rotate(-35deg); transition: transform .2s; }
.arrow-link:hover span { transform: rotate(0); }
.feature-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.feature-card { min-height: 305px; border-radius: var(--radius); padding: 25px; position: relative; overflow: hidden; transition: transform .25s; }
.feature-card:hover { transform: translateY(-8px) rotate(-1deg); }
.feature-card.coral { background: #ffad9f; }
.feature-card.lime { background: var(--lime); }
.feature-card.sky { background: var(--sky); }
.feature-card.yellow { background: var(--yellow); }
.feature-number { position: absolute; top: 20px; right: 22px; font-size: .75rem; font-weight: 700; }
.feature-icon { width: 75px; height: 75px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.72); font-size: 1.75rem; margin: 36px 0 28px; }
.feature-card h3 { font-family: var(--heading); font-size: 1.4rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; line-height: 1.5; max-width: 205px; }

.programme { background: var(--ink); color: white; position: relative; overflow: hidden; }
.programme::before { content: ''; position: absolute; width: 300px; height: 300px; border: 55px solid rgba(201,239,103,.07); border-radius: 50%; right: -90px; top: -90px; }
.programme-header { display: grid; grid-template-columns: 1.25fr .75fr; gap: 110px; align-items: end; margin-bottom: 60px; }
.programme-header h2 { color: white; }
.programme-header h2 span { color: var(--lime); }
.programme-header > p { color: rgba(255,255,255,.65); font-size: 1.02rem; padding-bottom: 8px; }
.programme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.programme-card { background: white; color: var(--ink); border-radius: 30px; overflow: hidden; transition: transform .25s; }
.programme-card:hover { transform: translateY(-8px); }
.programme-image { height: 240px; background-size: cover; background-position: center; }
.programme-one .programme-image { background-image: url('https://images.unsplash.com/photo-1596464716127-f2a82984de30?auto=format&fit=crop&w=750&q=85'); }
.programme-two .programme-image { background-image: url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=750&q=85'); }
.programme-three .programme-image { background-image: url('https://images.unsplash.com/photo-1540479859555-17af45c78602?auto=format&fit=crop&w=750&q=85'); }
.programme-content { padding: 27px 28px 29px; position: relative; }
.programme-content > span { color: var(--coral); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .69rem; }
.programme-content h3 { font-family: var(--heading); font-size: 1.55rem; margin: 6px 0 8px; }
.programme-content p { color: var(--muted); font-size: .88rem; padding-right: 38px; }
.programme-content a { position: absolute; width: 42px; height: 42px; right: 22px; bottom: 25px; display: grid; place-items: center; background: var(--lime); border-radius: 50%; transform: rotate(-35deg); }

.day-section { background: #eef9f5; }
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: center; }
.day-visual { min-height: 620px; position: relative; }
.day-photo { position: absolute; inset: 0 20px 0 0; border-radius: 48% 48% 45% 25% / 35% 55% 40% 55%; background: url('https://images.unsplash.com/photo-1599687267812-35c05ff70ee9?auto=format&fit=crop&w=900&q=85') center/cover; border: 10px solid white; box-shadow: var(--shadow); }
.day-visual::after { content: '✦'; position: absolute; right: -5px; top: 30px; font-size: 4rem; color: var(--coral); }
.day-badge { position: absolute; right: -18px; bottom: 65px; width: 165px; height: 165px; border-radius: 50%; background: var(--yellow); border: 5px solid white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg); box-shadow: var(--shadow); }
.day-badge strong { font-family: var(--heading); font-size: 1.25rem; }
.day-badge span { font-size: .76rem; max-width: 100px; }
.day-content > p { color: var(--muted); margin: 24px 0 30px; max-width: 510px; }
.schedule-list { display: grid; gap: 13px; }
.schedule-list > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 16px; background: white; border-radius: 19px; padding: 14px 18px; border: 1px solid rgba(18,55,45,.08); }
.schedule-list time { font-family: var(--heading); font-size: 1.1rem; }
.schedule-list span { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; align-items: center; }
.schedule-list i { grid-row: 1 / 3; width: 33px; height: 33px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; font-size: .8rem; }
.schedule-list b { font-size: .88rem; }
.schedule-list small { color: var(--muted); font-size: .72rem; }

.events-section { background: white; }
.events-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: end; margin-bottom: 48px; }
.events-heading > p { color: var(--muted); padding-bottom: 8px; }
.events-list { border-top: 1px solid var(--border); }
.event-card { display: grid; grid-template-columns: 105px 1fr 140px; gap: 32px; align-items: center; padding: 25px 10px; border-bottom: 1px solid var(--border); transition: background .2s; }
.event-card:hover { background: var(--cream); }
.date-tile { width: 82px; height: 82px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-3deg); }
.date-tile.coral { background: #ffad9f; }
.date-tile.sky { background: var(--sky); }
.date-tile.yellow { background: var(--yellow); }
.date-tile span { font-weight: 700; font-size: .66rem; letter-spacing: .14em; }
.date-tile strong { font-family: var(--heading); font-size: 2rem; line-height: 1.1; }
.event-type { text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: var(--coral); font-weight: 700; }
.event-card h3 { font-family: var(--heading); font-size: 1.42rem; margin: 2px 0; }
.event-card p { color: var(--muted); font-size: .85rem; }
.event-card time { font-size: .83rem; font-weight: 700; text-align: right; }
.event-card time i { color: var(--coral); margin-right: 6px; }

.verse-section { background: var(--yellow); padding: 88px 0; text-align: center; overflow: hidden; }
.verse-wrap { position: relative; }
.quote-mark { font-family: Georgia, serif; font-size: 7rem; line-height: .4; color: var(--coral); display: block; }
.verse-section blockquote { font-family: var(--heading); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; max-width: 900px; margin: 22px auto; }
.verse-section cite { font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.verse-doodles { position: absolute; right: 0; bottom: -55px; font-size: 2rem; letter-spacing: 12px; transform: rotate(-12deg); }

.enrol-section { background: var(--cream); }
.enrol-card { border-radius: 42px; background: var(--ink); color: white; padding: 70px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; position: relative; overflow: hidden; }
.enrol-card::before { content: ''; position: absolute; width: 220px; height: 220px; background: var(--coral); border-radius: 50%; left: -110px; bottom: -115px; }
.enrol-copy { position: relative; z-index: 1; }
.enrol-copy h2 { font-size: clamp(3.5rem, 5vw, 5.5rem); color: white; }
.enrol-copy > p { color: rgba(255,255,255,.68); margin: 24px 0 35px; }
.contact-note { display: flex; align-items: center; gap: 13px; }
.contact-note > i { width: 43px; height: 43px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.contact-note span { font-size: .8rem; color: rgba(255,255,255,.68); line-height: 1.4; }
.contact-note strong { color: white; }
.enrol-form { background: white; color: var(--ink); padding: 35px; border-radius: 28px; display: grid; gap: 17px; }
.form-title span, .form-title strong { display: block; }
.form-title span { color: var(--coral); text-transform: uppercase; letter-spacing: .13em; font-size: .67rem; font-weight: 700; }
.form-title strong { font-family: var(--heading); font-size: 1.65rem; }
.enrol-form label { font-size: .73rem; font-weight: 700; }
.enrol-form input, .enrol-form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfb; padding: 12px 14px; color: var(--ink); outline: none; resize: vertical; }
.enrol-form input:focus, .enrol-form textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,118,95,.13); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 4px 5px 0 var(--ink); margin-top: 4px; }
.enrol-form > small { text-align: center; color: var(--muted); font-size: .68rem; }

.site-footer { background: #0b271f; color: white; padding: 85px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr .8fr; gap: 60px; }
.brand-light .brand-mark { background: conic-gradient(from 35deg, var(--coral) 0 25%, var(--yellow) 25% 50%, var(--sky) 50% 75%, var(--lime) 75% 100%); }
.brand-light .brand-mark img { filter: brightness(.2) saturate(.7); }
.brand-light .brand-copy strong span:first-child { color: white; }
.footer-brand h2 { font-family: var(--heading); font-size: 2.2rem; line-height: 1.05; color: white; margin: 30px 0 12px; }
.footer-brand > p, .footer-contact p, .footer-contact a { color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.site-footer h3 { font-family: var(--heading); font-size: 1rem; color: var(--lime); margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-contact i { width: 20px; color: var(--coral); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-tour { display: inline-flex; gap: 8px; color: var(--yellow); font-size: .78rem; font-weight: 700; margin-top: 23px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 65px; padding-top: 22px; display: flex; justify-content: space-between; color: rgba(255,255,255,.38); font-size: .71rem; }

/* Interior pages */
.inner-hero {
    background: linear-gradient(110deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.90) 55%, rgba(255, 250, 240, 0.3) 100%), url('../images/caribbean_children_banner.webp?v=2') center/cover no-repeat;
    padding: 105px 0 90px;
    overflow: hidden;
    border-bottom: 2px solid var(--border);
}
.inner-hero-grid { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 80px; }
.inner-hero h1, .admissions-page h2, .contact-details h2, .article-page h1 { font: 600 clamp(3.4rem, 6vw, 6.5rem)/.94 var(--heading); letter-spacing: -.055em; max-width: 850px; }
.inner-hero p { max-width: 650px; color: var(--muted); font-size: 1.08rem; margin-top: 24px; }
.inner-hero-art { width: 255px; height: 255px; border-radius: 44% 56% 56% 44% / 55% 45% 55% 45%; background: var(--yellow); position: relative; display: grid; place-items: center; color: var(--ink); transform: rotate(6deg); }
.inner-hero-art i { font-size: 5rem; transform: rotate(-6deg); }
.inner-hero-art span, .inner-hero-art b { position: absolute; font-size: 2rem; }
.inner-hero-art span { top: 12px; left: 15px; color: var(--coral); }
.inner-hero-art b { right: 20px; bottom: 15px; font-family: var(--heading); }
.prose-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.prose-grid aside > span { color: var(--coral); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; }
.prose-grid aside h2 { font: 600 clamp(2rem,3.2vw,3.4rem)/1.05 var(--heading); letter-spacing: -.04em; margin-top: 14px; }
.prose .lead { font-size: clamp(1.2rem,2vw,1.65rem); color: var(--muted); line-height: 1.65; }
.detail-band { background: #eef9f5; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-grid article { padding: 35px 25px; background: white; border-radius: 25px; }
.stat-grid strong, .stat-grid span { display: block; }
.stat-grid strong { font: 600 3.3rem/1 var(--heading); color: var(--coral); }
.stat-grid span { color: var(--muted); font-size: .82rem; margin-top: 10px; }
.principles-grid, .curriculum-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.principles-grid article, .curriculum-grid article { background: white; border: 1px solid var(--border); border-radius: 28px; padding: 32px; }
.principles-grid i, .curriculum-grid i { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow); font-size: 1.3rem; margin-bottom: 25px; }
.principles-grid h3, .curriculum-grid h3, .resource-grid h3 { font: 600 1.35rem var(--heading); margin-bottom: 8px; }
.principles-grid p, .curriculum-grid p, .resource-grid p { color: var(--muted); font-size: .87rem; }
.curriculum-grid article { position: relative; }
.curriculum-grid article > span { position: absolute; top: 23px; right: 25px; color: var(--coral); font-weight: 700; font-size: .72rem; }
.resource-grid { display: grid; gap: 18px; }
.resource-grid article { background: white; border-radius: 25px; padding: 30px; display: grid; grid-template-columns: 60px 1fr; gap: 22px; }
.resource-grid article > i { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--sky); }
.resource-grid a { color: var(--coral); font-weight: 700; display: inline-block; margin-top: 10px; }
.page-cta { background: var(--yellow); padding: 70px 0; }
.page-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-cta span { text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; font-weight: 700; }
.page-cta h2 { font: 600 clamp(2rem,4vw,3.8rem)/1 var(--heading); letter-spacing: -.04em; margin-top: 8px; }
.public-events { margin-top: 10px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 3rem; color: var(--coral); }
.empty-state h2 { font-family: var(--heading); margin-top: 15px; }
.admissions-grid, .contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.admissions-page h2, .contact-details h2 { font-size: clamp(2.7rem,4.5vw,4.7rem); }
.steps-list { list-style: none; counter-reset: steps; display: grid; gap: 18px; margin-top: 35px; }
.steps-list li { counter-increment: steps; display: grid; grid-template-columns: 50px 1fr; gap: 15px; }
.steps-list li::before { content: counter(steps); grid-row: 1/3; width: 45px; height: 45px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.steps-list strong, .steps-list span { grid-column: 2; }
.steps-list span { color: var(--muted); font-size: .85rem; }
.standalone-form { box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-details > a, .contact-details > p { display: flex; align-items: flex-start; gap: 16px; margin-top: 22px; color: var(--ink); }
.contact-details > a > i, .contact-details > p > i { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--yellow); flex: 0 0 auto; }
.contact-details small { display: block; color: var(--coral); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 700; }
.gallery-page-grid { columns: 2; column-gap: 20px; }
.gallery-page-grid figure { break-inside: avoid; margin-bottom: 20px; border-radius: 26px; overflow: hidden; position: relative; background: white; }
.gallery-page-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.gallery-page-grid figure:nth-child(3n) img { aspect-ratio: 4/5; }
.gallery-page-grid figcaption { padding: 14px 18px; font-size: .8rem; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card { padding: 32px; border-radius: 28px; background: white; border: 1px solid var(--border); }
.news-card > span { color: var(--coral); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.news-card h2 { font: 600 1.7rem/1.1 var(--heading); margin: 15px 0 10px; }
.news-card p { color: var(--muted); font-size: .87rem; }
.news-card a { display: inline-flex; gap: 8px; color: var(--coral); font-weight: 700; margin-top: 22px; }
.article-wrap { max-width: 820px; }
.article-page h1 { margin: 18px 0 22px; }
.article-page .lead { color: var(--muted); font-size: 1.3rem; }
.article-body { font-size: 1.08rem; line-height: 1.8; margin-top: 45px; }
.back-link { display: block; margin-bottom: 45px; font-weight: 700; }
.notice-page { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.notice-card { max-width: 650px; margin: auto; background: white; padding: 55px; border-radius: 32px; box-shadow: var(--shadow); }
.notice-card i { width: 70px; height: 70px; display: grid; place-items: center; background: var(--lime); border-radius: 50%; margin: 0 auto 25px; font-size: 1.8rem; }
.notice-card h1 { font: 600 3rem/1 var(--heading); }
.notice-card p { color: var(--muted); margin: 18px 0 28px; }

@media (max-width: 1000px) {
    .main-nav { position: fixed; inset: 126px 0 auto; background: var(--cream); padding: 35px 24px 45px; flex-direction: column; align-items: stretch; text-align: center; transform: translateY(-150%); opacity: 0; transition: .3s; box-shadow: 0 25px 40px rgba(18,55,45,.15); }
    .main-nav.open { transform: translateY(0); opacity: 1; }
    .menu-toggle { display: block; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .hero h1 { font-size: clamp(3.7rem, 7vw, 5.5rem); }
    .feature-strip { grid-template-columns: repeat(2,1fr); }
    .programme-grid { grid-template-columns: repeat(2,1fr); }
    .programme-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .day-grid { gap: 45px; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
    .container { width: min(100% - 32px, 600px); }
    .section { padding: 78px 0; }
    .announcement-inner { justify-content: center; }
    .announcement p { display: none; }
    .nav-wrap { min-height: 74px; }
    .main-nav { inset-block-start: 114px; }
    .hero { padding-top: 48px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-visual { height: 470px; margin-top: 20px; }
    .photo-shape { inset: 20px 15px; }
    .float-card-top { right: 0; }
    .float-card-bottom { left: 0; }
    .intro-grid, .programme-header, .events-heading { grid-template-columns: 1fr; gap: 28px; }
    .feature-strip { grid-template-columns: 1fr 1fr; }
    .feature-card { min-height: 280px; }
    .programme-grid { grid-template-columns: 1fr; }
    .programme-card:last-child { grid-column: auto; display: block; }
    .day-grid { grid-template-columns: 1fr; }
    .day-visual { min-height: 500px; order: 2; }
    .event-card { grid-template-columns: 85px 1fr; gap: 20px; }
    .event-card time { grid-column: 2; text-align: left; }
    .enrol-card { padding: 46px 28px; grid-template-columns: 1fr; gap: 42px; }
    .inner-hero {
        padding: 70px 0;
        background: linear-gradient(to bottom, rgba(255, 250, 240, 0.97) 0%, rgba(255, 250, 240, 0.88) 60%, rgba(255, 250, 240, 0.45) 100%), url('../images/caribbean_children_banner.webp?v=2') center/cover no-repeat;
    }
    .inner-hero-grid, .prose-grid, .admissions-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
    .inner-hero-art { width: 190px; height: 190px; justify-self: center; }
    .inner-hero-art i { font-size: 3.8rem; }
    .stat-grid, .principles-grid, .curriculum-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .activities-grid { grid-template-columns: 1fr 1fr; }
    .page-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
    .brand-copy small { letter-spacing: .1em; }
    .hero h1 { font-size: 3.55rem; }
    .hero-actions { flex-direction: column; }
    .hero-visual { height: 390px; }
    .float-card { padding: 10px; }
    .float-card-top { top: 40px; }
    .float-card-bottom { bottom: 30px; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-card { min-height: 260px; }
    .programme-image { height: 210px; }
    .day-visual { min-height: 410px; }
    .day-badge { width: 130px; height: 130px; right: -6px; bottom: 30px; }
    .event-card { grid-template-columns: 70px 1fr; padding-inline: 0; }
    .date-tile { width: 65px; height: 68px; border-radius: 17px; }
    .date-tile strong { font-size: 1.6rem; }
    .form-pair { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .enrol-form { padding: 25px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .stat-grid, .principles-grid, .curriculum-grid, .news-grid { grid-template-columns: 1fr; }
    .gallery-page-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Homepage Activities Banner */
.activities-section { background: white; }
.activities-heading { text-align: center; max-width: 680px; margin: 0 auto 55px; }
.activities-heading p { color: var(--muted); margin-top: 15px; }
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity-card { border-radius: var(--radius); border: 2px solid var(--border); transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; overflow: hidden; background: #fafcfa; }
.activity-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow); }
.activity-card.football:hover { border-color: var(--lime); }
.activity-card.gymnastics:hover { border-color: var(--coral); }
.activity-card.dance:hover { border-color: var(--sky); }

/* Activity Image and Icon Badge wrapper */
.activity-image-wrapper { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.activity-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.activity-card:hover .activity-image-wrapper img { transform: scale(1.08); }
.activity-icon-badge { position: absolute; bottom: -20px; right: 24px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; box-shadow: 0 4px 10px rgba(0,0,0,0.15); border: 3px solid white; z-index: 10; transition: transform .3s; }
.activity-card.football .activity-icon-badge { background: var(--lime); color: var(--ink); }
.activity-card.gymnastics .activity-icon-badge { background: #ffad9f; color: var(--ink); }
.activity-card.dance .activity-icon-badge { background: var(--sky); color: var(--ink); }
.activity-card:hover .activity-icon-badge { transform: rotate(12deg) scale(1.1); }

/* Card content body */
.activity-card-body { padding: 30px 24px 35px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; flex-grow: 1; }
.activity-card-body h3 { font-family: var(--heading); font-size: 1.45rem; margin-bottom: 10px; color: var(--ink); }
.activity-card-body p { font-size: .88rem; color: var(--muted); line-height: 1.55; margin-bottom: 20px; flex-grow: 1; }
.activity-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 20px; background: var(--cream); border: 1px solid var(--border); color: var(--ink); }

/* Interactive Events Calendar */
.calendar-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; margin-top: 40px; }
.calendar-container { background: white; border-radius: var(--radius); padding: 35px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.calendar-header h2 { font-family: var(--heading); font-size: 2rem; color: var(--ink); }
.calendar-nav { display: flex; gap: 10px; }
.calendar-nav a { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; color: var(--ink); transition: background .2s, transform .2s, box-shadow .2s; }
.calendar-nav a:hover { background: var(--lime); transform: scale(1.05); box-shadow: 2px 3px 0 var(--ink); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.calendar-day-label { font-family: var(--heading); font-weight: 700; font-size: .9rem; color: var(--muted); padding-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.calendar-cell { min-height: 95px; border-radius: 20px; border: 1px solid rgba(18,55,45,.06); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: #fafcfa; position: relative; transition: all .2s; }
.calendar-cell.empty { background: transparent; border-color: transparent; }
.calendar-cell.today { border: 2px solid var(--coral); background: #fff4f2; }
.calendar-cell.today .calendar-day-num { color: var(--coral); }
.calendar-cell.has-events { cursor: pointer; background: white; box-shadow: 0 4px 10px rgba(18,55,45,.03); }
.calendar-cell.has-events:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(18,55,45,.08); border-color: var(--lime); }
.calendar-day-num { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.calendar-event-indicators { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; width: 100%; }
.calendar-dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.calendar-dot.sports { background: var(--coral); }
.calendar-dot.creative { background: var(--sky); }
.calendar-dot.parents { background: var(--yellow); }
.calendar-dot.general { background: var(--purple); }

.calendar-events-sidebar { display: flex; flex-direction: column; gap: 20px; }
.calendar-events-title { font-family: var(--heading); font-size: 1.75rem; margin-bottom: 5px; color: var(--ink); }
.calendar-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.filter-btn { padding: 8px 16px; border-radius: 22px; font-size: .82rem; font-weight: 700; background: white; border: 1px solid var(--border); cursor: pointer; color: var(--ink); transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: white; border-color: var(--ink); }
.filter-btn[data-category="sports"]:hover, .filter-btn[data-category="sports"].active { background: var(--coral); border-color: var(--coral); }
.filter-btn[data-category="creative"]:hover, .filter-btn[data-category="creative"].active { background: var(--sky); border-color: var(--sky); }
.filter-btn[data-category="parents"]:hover, .filter-btn[data-category="parents"].active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.sidebar-events-list { display: grid; gap: 15px; }
.sidebar-event-card { background: white; border-radius: 24px; padding: 20px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.sidebar-event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sidebar-event-meta { display: flex; justify-content: space-between; align-items: center; }
.sidebar-event-category { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: var(--cream); }
.sidebar-event-category.sports { background: #ff765f1c; color: var(--coral); }
.sidebar-event-category.creative { background: #7ed7f51c; color: #027ea5; }
.sidebar-event-category.parents { background: #ffd75a1c; color: #9c7f00; }
.sidebar-event-category.general { background: #b9a3ff1c; color: #5a3cbb; }
.sidebar-event-card h4 { font-family: var(--heading); font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.sidebar-event-card p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.sidebar-event-time { font-size: .78rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.sidebar-event-time i { color: var(--coral); }

@media (max-width: 900px) {
    .calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .calendar-container { padding: 20px; }
    .calendar-cell { min-height: 75px; padding: 6px; }
    .calendar-day-num { font-size: .95rem; }
    .calendar-dot { width: 6px; height: 6px; }
}

/* 404 Custom Styles */
.error-404 { position: relative; overflow: hidden; }
.error-illustration { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 20px; }
.error-code { font-family: var(--heading); font-size: 7.5rem; line-height: 1; color: var(--ink); background: linear-gradient(135deg, var(--coral), var(--yellow), var(--sky)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.doodle { position: absolute; font-size: 2.2rem; font-family: var(--heading); color: var(--yellow); pointer-events: none; animation: float 4s ease-in-out infinite; }
.doodle-star { top: -10px; left: calc(50% - 130px); transform: rotate(-10deg); }
.doodle-star.star-coral { top: 30px; right: calc(50% - 130px); color: var(--coral); animation-delay: 2s; }
.notice-actions { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.notice-actions .btn { padding: 13px 25px; box-shadow: 4px 5px 0 var(--ink); border-radius: 999px; font-weight: 700; }
.notice-actions .btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 var(--ink); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
}

/* Navigation Dropdown Menu */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-trigger i { font-size: .7rem; transition: transform .25s; }
.nav-dropdown:hover .dropdown-trigger i { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: white; min-width: 190px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 8px; display: flex; flex-direction: column; gap: 3px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { padding: 10px 14px; border-radius: 10px; font-size: .85rem; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; text-align: left; }
.dropdown-menu a:hover { background: var(--cream); color: var(--coral); }

/* Mobile Dropdown styles */
@media (max-width: 1000px) {
    .nav-dropdown { display: flex; flex-direction: column; align-items: stretch; }
    .dropdown-trigger i { display: none; }
    .dropdown-menu { position: static; transform: none !important; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; background: transparent; padding-left: 20px; display: flex; margin-top: 5px; }
    .dropdown-menu a { font-size: .88rem; padding: 8px 12px; }
}

/* Digital Magazine Open Booklet Layout */
.magazine-container { max-width: 1060px; margin: 0 auto; }
.magazine-book {
    width: 100%;
    aspect-ratio: 1.54; /* Aspect ratio of two letter-sized pages side-by-side (17:11) */
    background: #fbfbf9;
    border-radius: 16px;
    position: relative;
    border: 1px solid var(--border);
    /* 3D shadow showing stacked paper edges */
    box-shadow: 
        0 30px 70px rgba(18,55,45,.14), 
        0 0 0 6px #faf9f6, 
        0 0 0 10px #e2dfda, 
        0 0 0 13px #faf9f6,
        0 0 0 16px #d1ccc4;
    overflow: hidden;
    margin-bottom: 32px;
}
.book-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 15px);
    width: 30px;
    /* Center crease shadow to simulate open book depth */
    background: linear-gradient(to right, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.08) 35%, 
        rgba(0,0,0,0.18) 48%, 
        rgba(0,0,0,0.26) 50%, 
        rgba(0,0,0,0.18) 52%, 
        rgba(0,0,0,0.08) 65%, 
        rgba(0,0,0,0) 100%
    );
    z-index: 20;
    pointer-events: none;
}
.magazine-spread {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    pointer-events: none;
    transform: scale(.97);
    transition: opacity .4s ease, transform .4s ease;
}
.magazine-spread.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.book-page {
    background: #fcfcf9;
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: inset 0 0 30px rgba(18,55,45,.015);
}
.book-page.page-left {
    border-right: 1px solid rgba(0,0,0,0.06);
}
.book-page.page-right {
    border-left: 1px solid rgba(0,0,0,0.06);
}

/* Page backing colors (representing closed cover backings) */
.page-leather-backing {
    background: linear-gradient(135deg, #102e26 0%, #071914 100%);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.05);
    font-size: 5rem;
}

/* Editorial styling details */
.drop-cap {
    float: left;
    font-family: var(--heading);
    font-size: 4rem;
    line-height: .75;
    font-weight: 700;
    color: var(--coral);
    margin-right: 12px;
    margin-top: 6px;
}
.page-columns {
    column-count: 2;
    column-gap: 28px;
}
.page-columns p {
    text-align: justify;
    font-size: .84rem;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 12px;
}

/* Individual page structures */
.page-cover {
    background: linear-gradient(135deg, #fffaf0, #ffd75a28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 50px 40px;
    text-align: center;
}
.cover-header {
    border-bottom: 4px double var(--ink);
    padding-bottom: 10px;
    width: 100%;
}
.cover-header h3 {
    font-family: var(--heading);
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--ink);
    letter-spacing: .05em;
}
.cover-header p {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    color: var(--coral);
    margin-top: 4px;
}
.cover-title-box {
    margin: 25px 0;
}
.cover-magazine-title {
    font-family: var(--heading);
    font-size: 3.5rem;
    line-height: 1.05;
    color: var(--ink);
    text-shadow: 1px 1px 0 white;
}
.cover-magazine-title em {
    display: block;
    font-size: 2.2rem;
    font-style: normal;
    color: var(--coral);
}
.cover-magazine-desc {
    font-size: .95rem;
    color: var(--muted);
    margin-top: 15px;
    max-width: 280px;
    margin-inline: auto;
}
.cover-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    width: 100%;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    display: flex;
    justify-content: space-between;
}

.magazine-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 18px;
}
.magazine-header span {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--muted);
}
.magazine-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 18px;
    font-size: .72rem;
    color: var(--muted);
    font-weight: 700;
}
.magazine-page-title {
    font-family: var(--heading);
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.15;
}
.magazine-page-title span {
    color: var(--coral);
}

.magazine-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.magazine-grid-item {
    background: var(--cream);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.magazine-grid-item h4 {
    font-family: var(--heading);
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--ink);
}
.magazine-grid-item p {
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.4;
}

.backcover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}
.backcover-content img {
    max-width: 90px;
    margin-bottom: 20px;
}
.backcover-content h3 {
    font-family: var(--heading);
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 12px;
}
.backcover-content p {
    color: var(--muted);
    font-size: .88rem;
    max-width: 250px;
    margin-bottom: 25px;
}
.backcover-content .btn {
    box-shadow: 3px 4px 0 var(--ink);
}

.magazine-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.magazine-pages-indicator {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
}
.btn-flip {
    font-size: .9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    background: white;
    transition: all .2s;
}
.btn-flip:hover:not(:disabled) {
    background: var(--ink);
    color: white;
    transform: translateY(-2px);
}
.btn-flip:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Mobile responsive collapse for the open book layout */
@media (max-width: 1000px) {
    .magazine-book {
        aspect-ratio: auto;
        box-shadow: var(--shadow);
    }
    .book-spine {
        display: none;
    }
    .magazine-spread {
        position: static;
        display: flex;
        flex-direction: column;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        display: none;
    }
    .magazine-spread.active {
        display: flex;
    }
    .book-page {
        aspect-ratio: 8.5/11; /* Forces vertical letter-size per page */
        width: 100%;
        border: 0 !important;
        box-shadow: none !important;
        padding: 35px 25px;
    }
    .page-leather-backing {
        display: none;
    }
    .page-columns {
        column-count: 1;
    }
    .page-columns p {
        font-size: .88rem;
    }
    .magazine-grid-item p {
        font-size: .8rem;
    }
}

