@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root{--ink:#242424;--deep:#7f1022;--cream:#fbf5e8;--paper:#fffdf8;--gold:#FFD700;--gold-dark:#b8860b;--lime:var(--gold);--muted:#6b6862;--line:rgba(166,25,46,.14)}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}a{text-decoration:none;color:inherit}.announcement{background:var(--deep);color:#fff;padding:10px 5vw;text-align:center;font-size:12px;letter-spacing:.02em}.announcement a{text-decoration:underline;margin-left:10px;color:var(--lime)}.site-header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:var(--paper);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px}.brand-logo{width:54px;height:54px;object-fit:contain;display:block;flex:0 0 54px}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--ink);color:var(--lime);display:grid;place-items:center;font-weight:700;font-size:13px}.brand strong{display:block;font-size:17px;letter-spacing:.06em}.brand small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.nav{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:600}.nav a:not(.nav-cta){color:#4a3f3f}.nav a:not(.nav-cta):hover{color:var(--ink)}.nav-cta{background:var(--deep);color:#fff!important;padding:12px 18px;border-radius:999px}.menu-toggle{display:none;background:none;border:0;font-size:24px}.hero{min-height:calc(100vh - 122px);display:grid;grid-template-columns:1fr 1fr;gap:5vw;padding:5vw;align-items:center;background:var(--cream)}.hero-copy{max-width:650px}.eyebrow,.section-kicker,.footer-label{font-size:11px;font-weight:700;letter-spacing:.16em}.eyebrow{color:#7f1022}.hero h1,.page-hero h1{font-size:clamp(48px,6vw,92px);line-height:.96;letter-spacing:-.055em;margin:22px 0}.hero h1 em,.split-heading span,.placeholder-content span{font-family:'Playfair Display',serif;font-weight:500}.hero p{max-width:540px;color:var(--muted);font-size:17px;line-height:1.75}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:34px}.btn{display:inline-flex;align-items:center;gap:18px;padding:15px 21px;border-radius:999px;font-size:13px;font-weight:700}.btn-primary{background:var(--deep);color:#fff}.btn-light{background:#fff;color:var(--ink)}.btn span{font-size:17px}.text-link{font-size:13px;font-weight:700}.hero-visual{height:min(650px,72vh);position:relative}.hero-image{width:100%;height:100%;border-radius:180px 180px 28px 28px;background:linear-gradient(145deg,rgba(127,16,34,.08),rgba(184,134,11,.22)),linear-gradient(135deg,#fbf5e8,#e9d7b2)}.floating-card{position:absolute;left:-30px;bottom:34px;background:var(--lime);padding:20px 24px;border-radius:18px;display:flex;flex-direction:column;gap:6px;box-shadow:0 20px 45px rgba(127,16,34,.14)}.floating-card strong{font-size:14px}.floating-card span{font-size:11px;color:#5a4a00}.section-pad{padding:110px 5vw}.intro{background:var(--paper)}.split-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin:18px 0 55px}.split-heading h2{font-size:clamp(38px,4.5vw,66px);line-height:1;letter-spacing:-.05em;margin:0;max-width:720px}.split-heading p{max-width:390px;color:var(--muted);line-height:1.7;margin:0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}.feature-grid article{padding:28px 30px 10px 0;border-right:1px solid var(--line)}.feature-grid article+article{padding-left:30px}.feature-grid article:last-child{border:0}.feature-grid span{font-size:11px;color:var(--muted)}.feature-grid h3{font-size:22px;margin:40px 0 12px}.feature-grid p{color:var(--muted);line-height:1.7;font-size:14px;max-width:330px}.programs{background:#f8f2e5}.program-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.program-card{min-height:410px;padding:26px;border-radius:22px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;overflow:hidden;position:relative}.program-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.55),transparent 65%)}.program-card>div,.program-card>span{position:relative;z-index:1}.program-card small{font-size:10px;letter-spacing:.16em}.program-card h3{font-size:32px;letter-spacing:-.04em;margin:9px 0}.program-card>span{align-self:flex-end;font-size:24px}.program-one{background:linear-gradient(145deg,#7f1022,#b8860b)}.program-two{background:linear-gradient(145deg,#b8860b,#7f1022)}.program-three{background:linear-gradient(145deg,#fbf5e8,#b8860b)}.admissions-banner{background:var(--deep);color:#fff;padding:80px 5vw;display:flex;align-items:center;justify-content:space-between;gap:40px}.admissions-banner h2{font-size:clamp(36px,4vw,58px);line-height:1;letter-spacing:-.05em;max-width:750px;margin:18px 0 0}.stories{background:var(--cream)}.story-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:30px}.story-image{border-radius:24px;background-position:center;background-size:cover}.story-a{height:480px;background-image:linear-gradient(145deg,rgba(127,16,34,.12),rgba(184,134,11,.3)),linear-gradient(135deg,#fbf5e8,#e9d7b2)}.story-b{height:300px;background-image:linear-gradient(145deg,rgba(127,16,34,.12),rgba(184,134,11,.3)),linear-gradient(135deg,#fffdf8,#f1dfb8)}.story-layout h3{font-size:25px;margin:22px 0 7px}.story-layout p{color:var(--muted);font-size:14px;line-height:1.7}.footer{background:var(--deep);color:#fff;padding:80px 5vw 25px}.footer-top{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:60px;padding-bottom:70px}.brand-footer{color:var(--lime);font-weight:700;letter-spacing:.12em}.footer h2{font-size:46px;line-height:1.05;letter-spacing:-.05em;margin:18px 0}.footer-links{display:grid;align-content:start;gap:16px;font-size:14px;color:#f1e8d6}.footer-label{color:#dbc8b2}.footer-mail{display:block;color:var(--lime);font-size:20px;margin-top:14px}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:22px;display:flex;justify-content:space-between;color:#dbc8b2;font-size:11px}.page-hero{padding:110px 5vw 120px;background:var(--cream);min-height:65vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.page-hero h1{max-width:900px}.page-hero p{max-width:650px;color:var(--muted);font-size:18px;line-height:1.75;margin:0 0 30px}.placeholder-content{min-height:35vh}.placeholder-content h2{font-size:clamp(40px,5vw,70px);line-height:1;letter-spacing:-.05em;max-width:800px}.placeholder-content p{max-width:680px;color:var(--muted);line-height:1.8}.is-open{display:flex!important}

@media(max-width:900px){.nav{gap:16px}.hero{grid-template-columns:1fr;padding-top:55px}.hero-visual{height:55vh}.feature-grid,.program-grid{grid-template-columns:1fr}.feature-grid article{border-right:0;border-bottom:1px solid var(--line);padding:25px 0!important}.program-card{min-height:330px}.story-layout{grid-template-columns:1fr}.admissions-banner{flex-direction:column;align-items:flex-start}.footer-top{grid-template-columns:1fr 1fr}}

@media(max-width:700px){.site-header{height:70px}.menu-toggle{display:block}.nav{display:none;position:absolute;left:0;right:0;top:70px;background:var(--paper);padding:20px 5vw 28px;flex-direction:column;align-items:stretch;border-bottom:1px solid var(--line)}.nav a{padding:8px 0}.nav-cta{text-align:center}.hero{min-height:auto;padding:70px 5vw}.hero h1{font-size:48px}.hero-visual{height:60vh}.floating-card{left:12px}.section-pad{padding:75px 5vw}.split-heading{display:block}.split-heading .text-link{display:inline-block;margin-top:25px}.footer-top{grid-template-columns:1fr}.footer{padding-top:60px}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:8px}.story-a{height:360px}}



/* ==============================

   Parent Enquiry

   ============================== */

.enquiry-page{background:var(--cream);padding:90px 5vw 110px}.enquiry-intro{max-width:1050px;margin:0 auto 36px}.enquiry-intro h1{font-size:clamp(44px,6vw,78px);line-height:.98;letter-spacing:-.055em;margin:20px 0 18px;max-width:1000px}.enquiry-intro h1 em{font-family:'Playfair Display',serif;font-weight:500}.enquiry-intro p{max-width:690px;color:var(--muted);font-size:17px;line-height:1.75;margin:0}.enquiry-card{max-width:1050px;margin:0 auto;background:var(--paper);border:1px solid var(--line);border-radius:28px;box-shadow:0 24px 70px rgba(36,36,36,.08);overflow:hidden}.enquiry-card-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;padding:34px 36px 28px;border-bottom:1px solid var(--line)}.enquiry-card-head h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;margin:13px 0 8px}.enquiry-card-head p{color:var(--muted);line-height:1.7;margin:0;max-width:690px}.enquiry-card-head strong{color:var(--deep)}.enquiry-badge{display:inline-block;padding:7px 11px;border-radius:999px;background:rgba(255,215,0,.22);color:var(--gold-dark);font-size:10px;font-weight:800;letter-spacing:.13em}.language-switcher{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid rgba(127,16,34,.15);border-radius:999px;background:#fff}.language-btn{border:0;border-radius:999px;padding:8px 13px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:800;cursor:pointer}.language-btn.active{background:var(--deep);color:#fff}.enquiry-error,.enquiry-notice{margin:24px 36px 0;padding:14px 16px;border-radius:14px;font-size:13px;line-height:1.6}.enquiry-error{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}.enquiry-error ul{margin:7px 0 0;padding-left:18px}.enquiry-notice{background:rgba(255,215,0,.12);color:#6b5200;border:1px solid rgba(184,134,11,.18)}.enquiry-form{padding:0 36px 30px}.enquiry-section{margin-top:30px;padding-top:28px;border-top:1px solid var(--line)}.enquiry-section h3{margin:0 0 18px;font-size:18px;letter-spacing:-.02em}.enquiry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.enquiry-grid .full{grid-column:1/-1}.enquiry-form label{display:block;margin-bottom:7px;font-size:13px;font-weight:800;color:#40383a}.required{color:var(--red)}.enquiry-form input,.enquiry-form select,.enquiry-form textarea{width:100%;border:1px solid rgba(127,16,34,.18);border-radius:12px;padding:13px 14px;background:#fffdfb;color:var(--ink);font:inherit;outline:none}.enquiry-form input:focus,.enquiry-form select:focus,.enquiry-form textarea:focus{border-color:var(--gold-dark);box-shadow:0 0 0 3px rgba(255,215,0,.18)}.enquiry-form textarea{min-height:112px;resize:vertical}.field-hint{margin-top:7px;color:var(--muted);font-size:11px;line-height:1.55}.source-lock{width:100%;border:1px solid rgba(127,16,34,.18);border-radius:12px;padding:13px 14px;background:#fff8d8;color:var(--deep);font-weight:800;display:flex;justify-content:space-between;align-items:center}.source-lock span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#3f3100;font-size:12px}.enquiry-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:32px}.enquiry-back{border:1px solid rgba(127,16,34,.18);background:#fff;color:var(--deep)}.enquiry-submit{border:0;cursor:pointer}.enquiry-footer{padding:20px 36px 26px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:11px}.success-page{min-height:calc(100vh - 122px);display:grid;place-items:center;padding:80px 5vw;background:var(--cream)}.success-card{width:min(860px,100%);padding:58px 46px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:30px;box-shadow:0 24px 70px rgba(36,36,36,.08)}.success-icon{width:78px;height:78px;margin:0 auto 20px;border-radius:50%;display:grid;place-items:center;background:rgba(255,215,0,.24);color:var(--deep);font-size:38px;font-weight:900}.success-card h1{font-size:clamp(42px,5vw,68px);line-height:.98;letter-spacing:-.055em;margin:20px auto 18px}.success-card h1 em{font-family:'Playfair Display',serif;font-weight:500}.success-copy{max-width:670px;margin:0 auto;color:var(--muted);font-size:16px;line-height:1.8}.success-copy-mm{max-width:670px;margin:9px auto 0;color:var(--muted);font-size:14px;line-height:1.9}.success-reference{display:inline-flex;flex-direction:column;gap:4px;margin-top:24px;padding:11px 17px;border-radius:14px;background:#fff8d8;border:1px solid rgba(184,134,11,.18);color:#6b5200}.success-reference span{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.success-reference strong{font-size:16px;color:var(--deep)}.success-note{margin:28px auto 0;padding:18px 22px;border-left:4px solid var(--gold);border-radius:14px;background:#fffaf0;display:flex;flex-direction:column;gap:5px;color:var(--muted)}.success-note strong{color:var(--deep);font-size:19px}.success-actions{display:flex;justify-content:center;align-items:center;gap:28px;margin-top:32px}.nav-thankyou{display:flex}

@media(max-width:760px){.enquiry-page{padding:60px 5vw 75px}.enquiry-card-head{display:block;padding:27px 20px 22px}.language-switcher{margin-top:20px}.enquiry-form{padding:0 20px 25px}.enquiry-error,.enquiry-notice{margin-left:20px;margin-right:20px}.enquiry-grid{grid-template-columns:1fr}.enquiry-grid .full{grid-column:auto}.enquiry-actions{flex-direction:column-reverse;align-items:stretch}.enquiry-actions .btn{width:100%;justify-content:center}.enquiry-footer{padding-left:20px;padding-right:20px}.success-card{padding:45px 22px}.success-actions{flex-direction:column;gap:18px}.nav-thankyou{display:none}}



/* Media-managed page variants; existing approved palette and base page layouts remain unchanged. */

.page-hero-has-media{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:5vw;align-items:center}

.page-hero-copy{max-width:900px}

.page-hero-media{width:100%;min-width:0;overflow:hidden;border-radius:24px}

.page-hero-media .content-media-image,.page-hero-media video,.page-hero-media iframe{display:block;width:100%;max-height:440px;aspect-ratio:16/10;object-fit:cover;border:0;border-radius:24px}

.program-media-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}

.program-media-gallery>div{min-width:0;overflow:hidden;border-radius:14px}

.program-media-gallery img,.program-media-gallery video,.program-media-gallery iframe{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border:0;border-radius:14px}

.admin-media-edit{margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}

.admin-media-edit summary{font-size:12px;font-weight:700;cursor:pointer;color:var(--deep)}

.admin-media-edit form{margin-top:12px}

.admin-media-edit label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}

.admin-media-edit input,.admin-media-edit select,.admin-media-edit textarea{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:12px}

@media(max-width:820px){.page-hero-has-media{grid-template-columns:1fr}.page-hero-media{max-width:100%}.program-media-gallery{grid-template-columns:1fr}}



.portal-login-page{background:var(--cream)}.portal-login-shell{min-height:55vh;display:grid;place-items:center;padding:70px 5vw}.portal-login-card{width:min(520px,100%);padding:36px;background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 55px rgba(36,36,36,.08)}.portal-login-card h1{font-size:clamp(32px,4vw,48px);line-height:1;letter-spacing:-.04em;margin:14px 0}.portal-login-card>p{color:var(--muted);line-height:1.65}.portal-login-card form{display:grid;gap:16px;margin:24px 0}.portal-login-card label{display:grid;gap:7px;font-size:13px;font-weight:700}.portal-login-card input{width:100%;padding:13px;border:1px solid rgba(127,16,34,.18);border-radius:10px;font:inherit;background:#fff}.portal-login-card button{border:0;cursor:pointer;justify-content:center}.portal-reset-link{margin:14px 0 0;text-align:right;font-size:13px;color:var(--gold-dark)}.portal-error,.portal-notice{padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.5}.portal-error{background:#fef2f2;color:#991b1b}.portal-notice{background:#fff8d8;color:#6b5200}



.portal-login-card{max-width:500px}.portal-login-logo{display:flex;justify-content:center;margin-bottom:16px}.portal-login-logo img{width:76px;height:76px;object-fit:contain}.portal-login-card select{width:100%;padding:13px;border:1px solid rgba(127,16,34,.18);border-radius:10px;font:inherit;background:#fff}.portal-login-card .portal-remember{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.portal-login-card .portal-remember input{width:auto}.portal-login-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--gold-dark)}

.admin-history-row{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.admin-history-row strong{color:var(--deep)}.admin-history-row span{color:var(--muted)}





/* Select existing media from the central library without copying media IDs. */

.admin-field-label{display:block;margin-bottom:9px;font-size:13px;font-weight:800;color:var(--deep)}

.media-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;max-height:420px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fffdf8}

.media-choice{position:relative;display:flex;flex-direction:column;gap:5px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-size:11px}

.media-choice input{position:absolute;top:10px;left:10px;width:17px;height:17px;z-index:2;accent-color:var(--deep)}

.media-choice:has(input:checked){border-color:var(--gold-dark);box-shadow:0 0 0 2px rgba(184,134,11,.18);background:#fff8d8}

.media-choice img,.media-choice-placeholder{width:100%;height:82px;object-fit:cover;border-radius:7px;background:#f1e8d6}

.media-choice-placeholder{display:grid;place-items:center;color:var(--deep);font-weight:900;letter-spacing:.08em}

.media-choice-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;color:var(--ink)}

.media-choice small{color:var(--muted);font-size:10px}



/* Home CMS + Home hero variants. Uses the approved EGEC red/gold/cream palette. */

.home-admin-heading{display:flex;justify-content:space-between;gap:28px;align-items:flex-start;margin-bottom:24px}.home-admin-heading h1{font-size:clamp(34px,4vw,52px);line-height:1;letter-spacing:-.045em;margin:8px 0 10px}.home-admin-heading p{max-width:780px;color:var(--muted);line-height:1.7;margin:0}.home-admin-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--deep)}.home-admin-heading-actions{display:flex;gap:10px;flex-wrap:wrap}.home-admin-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;background:var(--deep);color:#fff;padding:12px 17px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.home-admin-btn.secondary{background:#fff;color:var(--deep);border:1px solid rgba(127,16,34,.18)}.home-admin-section{margin:0 0 22px}.home-admin-section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:30px 0 12px}.home-admin-section-head>div{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:start}.home-admin-section-head>div>span{grid-row:span 2;color:var(--gold-dark);font-weight:900;font-size:13px;padding-top:4px}.home-admin-section-head h2{margin:0;font-size:22px;letter-spacing:-.02em}.home-admin-section-head p{grid-column:2;margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.home-admin-status{padding:7px 10px;border-radius:999px;background:#fff8d8;color:#6b5200;border:1px solid rgba(184,134,11,.18);font-size:10px;font-weight:900;white-space:nowrap}.home-admin-grid{display:grid;gap:16px}.home-admin-grid.two{grid-template-columns:1fr 1fr}.home-admin-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 12px 35px rgba(36,36,36,.045)}.home-admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.home-admin-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.home-admin-form-grid .full,.home-admin-form-grid label.full{grid-column:1/-1}.home-admin-form-grid label{display:grid;gap:7px;color:#40383a;font-size:12px;font-weight:800}.home-admin-form-grid input,.home-admin-form-grid textarea,.home-admin-form-grid select{width:100%;border:1px solid rgba(127,16,34,.16);border-radius:10px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit;font-size:13px;outline:none}.home-admin-form-grid input:focus,.home-admin-form-grid textarea:focus,.home-admin-form-grid select:focus{border-color:var(--gold-dark);box-shadow:0 0 0 3px rgba(255,215,0,.16)}.home-admin-form-grid textarea{resize:vertical}.home-admin-label{display:block;margin:0 0 7px;color:var(--deep);font-size:12px;font-weight:900;letter-spacing:.03em}.hero-design-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hero-design-option{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}.hero-design-option input{position:absolute;opacity:0;pointer-events:none}.hero-design-option.selected{border-color:var(--gold-dark);box-shadow:0 0 0 3px rgba(255,215,0,.14);background:#fffaf0}.hero-design-option strong{font-size:11px;line-height:1.35}.hero-design-preview{height:80px;border-radius:10px;background:#f3eadb;position:relative;overflow:hidden}.hero-design-preview i,.hero-design-preview b{position:absolute;display:block}.hero-preview-current i{left:8px;top:13px;width:42%;height:54px;background:#fff;border-radius:5px}.hero-preview-current b{right:8px;top:10px;width:42%;height:60px;background:linear-gradient(145deg,#f0cbb8,#d8e2e5);border-radius:38px 38px 8px 8px}.hero-preview-full i{inset:0;background:linear-gradient(0deg,rgba(127,16,34,.65),transparent 60%),linear-gradient(135deg,#7f1022,#e5c98d)}.hero-preview-full b{left:12px;bottom:12px;width:45%;height:9px;background:#fff;border-radius:9px;box-shadow:0 -16px 0 -2px rgba(255,255,255,.7)}.hero-preview-editorial i{left:7px;top:7px;width:58%;height:66px;background:linear-gradient(135deg,#e8c6c0,#cfdad5);border-radius:8px}.hero-preview-editorial b{right:9px;top:20px;width:30%;height:40px;background:#fff;border-radius:4px;box-shadow:0 11px 0 -2px var(--gold)}.media-section-card{padding:18px}.media-section-title{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:13px}.media-section-title p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.home-upload-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(127,16,34,.18);background:#fff8d8;color:var(--deep);padding:10px 13px;border-radius:10px;font-size:11px;font-weight:900;cursor:pointer;white-space:nowrap}.home-upload-btn input{display:none}.home-selected-media-list,.home-single-media{display:grid;gap:9px}.home-selected-media-item{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff}.home-media-thumb{width:74px;height:55px;border-radius:8px;overflow:hidden;background:#f1e8d6;display:grid;place-items:center;color:var(--deep);font-size:10px;font-weight:900}.home-media-thumb img{width:100%;height:100%;object-fit:cover}.home-media-meta{min-width:0;display:grid;gap:3px}.home-media-meta strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-media-meta small{font-size:10px;color:var(--muted)}.home-media-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.home-media-actions button{border:1px solid var(--line);background:#fff;color:var(--deep);border-radius:8px;padding:7px 9px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.home-media-actions button:hover{border-color:var(--gold-dark);background:#fff8d8}.home-empty-media,.home-empty-copy{padding:15px;border:1px dashed rgba(127,16,34,.2);border-radius:10px;color:var(--muted);font-size:11px;background:#fffdf8}.home-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-choice-card,.home-news-choice{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff;cursor:pointer}.home-choice-card input,.home-news-choice input{margin-top:3px;accent-color:var(--deep)}.home-choice-card.selected,.home-news-choice.selected{border-color:var(--gold-dark);box-shadow:0 0 0 3px rgba(255,215,0,.12);background:#fffaf0}.home-choice-card small,.home-news-choice small{display:block;font-size:9px;font-weight:900;letter-spacing:.12em;color:var(--gold-dark)}.home-choice-card strong,.home-news-choice strong{display:block;margin-top:4px;font-size:13px}.home-choice-card p,.home-news-choice p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.home-news-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-admin-hint{margin:12px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.home-admin-savebar{position:sticky;bottom:14px;z-index:15;margin:22px 0;padding:13px 15px;border:1px solid rgba(127,16,34,.15);border-radius:16px;background:rgba(255,253,248,.95);backdrop-filter:blur(12px);box-shadow:0 14px 45px rgba(36,36,36,.12);display:flex;justify-content:space-between;align-items:center;gap:18px}.home-admin-savebar>div:first-child{display:grid;gap:2px}.home-admin-savebar strong{font-size:12px}.home-admin-savebar span{font-size:10px;color:var(--muted)}.home-admin-actions{display:flex;gap:8px;flex-wrap:wrap}.compact-history{margin-top:34px}.home-history-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.home-history-table{width:100%;border-collapse:collapse;background:#fff;font-size:11px}.home-history-table th,.home-history-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.home-history-table th{background:#fff8d8;color:var(--deep);font-weight:900}.home-history-table tr:last-child td{border-bottom:0}



/* Public Home hero variants + selected media sections. */

.home-hero{position:relative;overflow:hidden}.home-hero-full{min-height:calc(100vh - 82px);background:#160d0e;color:#fff}.home-hero-slides,.home-hero-slide{position:absolute;inset:0}.home-hero-slide{opacity:0;transition:opacity .7s ease}.home-hero-slide.is-active{opacity:1}.home-hero-media,.home-hero-media .media-video-frame{width:100%;height:100%}.home-hero-media img,.home-hero-media video,.home-hero-media iframe{width:100%;height:100%;object-fit:cover;border:0;display:block}.home-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,9,11,.78) 0%,rgba(20,9,11,.35) 52%,rgba(20,9,11,.08) 100%),linear-gradient(0deg,rgba(20,9,11,.32),transparent 55%)}.home-hero-content{position:relative;z-index:3;min-height:calc(100vh - 82px);width:min(900px,90vw);margin:0 auto;padding:8vw 0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.home-hero-content h1{max-width:850px;font-size:clamp(48px,7vw,100px);line-height:.94;letter-spacing:-.055em;margin:22px 0;color:#fff}.home-hero-content p{max-width:650px;color:rgba(255,255,255,.86);font-size:17px;line-height:1.75}.home-hero-content .eyebrow{color:var(--gold)}.home-hero-link{font-size:13px;font-weight:800;color:#fff}.home-hero-controls{position:absolute;z-index:5;bottom:36px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.home-hero-arrow{position:absolute;z-index:5;bottom:28px;width:44px;height:44px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(20,9,11,.28);color:#fff;font-size:18px;cursor:pointer}.home-hero-prev{right:95px}.home-hero-next{right:40px}.home-hero-dot{border:0;width:30px;height:4px;border-radius:99px;background:rgba(255,255,255,.45);cursor:pointer;padding:0}.home-hero-dot.is-active{background:var(--gold)}.home-hero-empty{width:100%;height:100%;background:linear-gradient(135deg,#7f1022,#b8860b)}

.home-hero-editorial{min-height:calc(100vh - 82px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);background:var(--cream)}.home-editorial-media{position:relative;min-height:calc(100vh - 82px);overflow:hidden}.home-editorial-slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease}.home-editorial-slide.is-active{opacity:1}.home-editorial-slide img,.home-editorial-slide video,.home-editorial-slide iframe{width:100%;height:100%;object-fit:cover;border:0;display:block}.home-editorial-copy{display:flex;flex-direction:column;justify-content:center;padding:8vw 6vw;background:var(--cream)}.home-editorial-copy h1{font-size:clamp(44px,5vw,76px);line-height:.95;letter-spacing:-.055em;margin:22px 0}.home-editorial-copy p{color:var(--muted);font-size:16px;line-height:1.8}.home-editorial-controls{position:absolute;right:4vw;bottom:30px;z-index:5;display:flex;gap:7px}.home-editorial-controls .home-hero-dot{width:auto;height:auto;padding:8px 10px;border:1px solid rgba(127,16,34,.18);background:#fff;color:var(--deep);font-size:10px;font-weight:900}.home-editorial-controls .home-hero-dot.is-active{background:var(--deep);color:#fff}.home-hero-current{position:relative}.home-current-slides{position:absolute;inset:0;border-radius:180px 180px 28px 28px;overflow:hidden}.home-current-slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease}.home-current-slide.is-active{opacity:1}.home-current-slide img,.home-current-slide video,.home-current-slide iframe{width:100%;height:100%;object-fit:cover;border:0;display:block}.home-current-slide .media-video-frame{height:100%}.home-current-dots{position:absolute;right:20px;top:20px;z-index:4;display:flex;gap:5px}.home-current-dots .home-hero-dot{width:20px;background:rgba(255,255,255,.75)}.home-current-dots .home-hero-dot.is-active{background:var(--deep)}.home-intro-media{max-width:900px;margin:0 auto 55px;border-radius:22px;overflow:hidden}.home-intro-media img,.home-intro-media video,.home-intro-media iframe{width:100%;max-height:520px;aspect-ratio:16/8;object-fit:cover;border:0;display:block}.home-school-life-heading p{max-width:480px;color:var(--muted);line-height:1.7;margin:0}.home-school-life-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-school-life-item{border-radius:20px;overflow:hidden;background:#fff}.home-school-life-item img,.home-school-life-item video,.home-school-life-item iframe{width:100%;aspect-ratio:4/3;object-fit:cover;border:0;display:block}.home-school-life-item p{padding:10px 13px;margin:0;color:var(--muted);font-size:11px;line-height:1.5}.home-gallery-section{background:var(--paper)}.home-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-gallery-item{overflow:hidden;border-radius:16px;background:#f1e8d6}.home-gallery-item img,.home-gallery-item video,.home-gallery-item iframe{width:100%;aspect-ratio:1/1;object-fit:cover;border:0;display:block}.home-news-section{background:#f8f2e5}.home-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-news-card{padding:25px;border:1px solid var(--line);border-radius:20px;background:#fffdf8}.home-news-card>span{font-size:10px;color:var(--gold-dark);font-weight:900;letter-spacing:.08em}.home-news-card h3{font-size:24px;line-height:1.1;letter-spacing:-.03em;margin:15px 0 10px}.home-news-card p{color:var(--muted);font-size:13px;line-height:1.7;min-height:65px}.home-top-button{position:fixed;right:22px;bottom:22px;z-index:30;width:46px;height:46px;border:0;border-radius:50%;background:var(--deep);color:#fff;font-size:20px;font-weight:800;box-shadow:0 12px 30px rgba(127,16,34,.25);cursor:pointer}.home-cta-section{margin-top:0}

@media(max-width:1000px){.home-admin-grid.two,.home-choice-grid,.hero-design-options,.home-news-choice-grid{grid-template-columns:1fr 1fr}.home-admin-form-grid.three{grid-template-columns:1fr 1fr}.home-gallery-grid{grid-template-columns:repeat(2,1fr)}.home-school-life-grid,.home-news-grid{grid-template-columns:1fr 1fr}.home-hero-editorial{grid-template-columns:1fr}.home-editorial-media{min-height:55vh}.home-editorial-copy{min-height:48vh}.home-hero-content h1{font-size:clamp(44px,8vw,82px)}}

@media(max-width:700px){.home-admin-heading,.home-admin-section-head,.home-admin-savebar,.media-section-title{display:block}.home-admin-heading-actions,.home-admin-actions{margin-top:12px}.home-admin-grid.two,.home-admin-form-grid,.home-admin-form-grid.three,.hero-design-options,.home-choice-grid,.home-news-choice-grid{grid-template-columns:1fr}.home-admin-section-head>div{grid-template-columns:auto 1fr}.home-admin-section-head>div>span{grid-row:span 2}.home-admin-status{display:inline-block;margin-top:10px}.home-selected-media-item{grid-template-columns:58px minmax(0,1fr);}.home-media-thumb{width:58px;height:50px}.home-media-actions{grid-column:1/-1;justify-content:flex-start}.home-upload-btn{margin-top:10px}.home-gallery-grid{grid-template-columns:1fr 1fr}.home-school-life-grid,.home-news-grid{grid-template-columns:1fr}.home-hero-full,.home-hero-content{min-height:calc(100vh - 70px)}.home-hero-content{width:90vw;padding:30px 0 90px}.home-hero-content h1{font-size:clamp(42px,13vw,68px)}.home-hero-content p{font-size:14px}.home-hero-prev{right:68px}.home-hero-next{right:16px}.home-hero-controls{bottom:47px;left:30px;transform:none}.home-hero-editorial{min-height:auto}.home-editorial-media{min-height:55vh}.home-editorial-copy{padding:55px 7vw}.home-current-slides{border-radius:120px 120px 22px 22px}.home-top-button{width:42px;height:42px;right:15px;bottom:15px}.home-intro-media img,.home-intro-media video,.home-intro-media iframe{aspect-ratio:4/3}.home-gallery-grid{gap:8px}}



/* EGEC ADMIN PANEL LAYOUT STYLES — restored alongside Home CMS styles. */

.admin-body{

    min-height:100vh;

    margin:0;

    overflow-x:hidden;

    background:#f7f3eb;

    color:var(--ink);

    font-family:'DM Sans',sans-serif;

}

.admin-body *{box-sizing:border-box}

.admin-topbar{

    position:sticky;

    top:0;

    z-index:50;

    min-height:76px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    padding:10px 28px;

    background:var(--paper);

    border-bottom:1px solid var(--line);

    box-shadow:0 4px 18px rgba(36,36,36,.045);

}

.admin-brand{

    min-width:0;

    display:flex;

    align-items:center;

    gap:12px;

    color:var(--ink);

    text-decoration:none;

    font-size:16px;

    font-weight:800;

    line-height:1.2;

}

.admin-brand img{

    display:block;

    width:48px;

    height:48px;

    max-width:48px;

    max-height:48px;

    flex:0 0 48px;

    object-fit:contain;

}

.admin-brand span{display:block;min-width:0}

.admin-brand small{

    display:block;

    margin-top:4px;

    color:var(--deep);

    font-size:10px;

    font-weight:800;

    letter-spacing:.12em;

}

.admin-top-actions{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    flex-wrap:wrap;

    gap:12px;

    color:var(--muted);

    font-size:12px;

    font-weight:600;

}

.admin-top-actions a{color:var(--deep);font-weight:700}

.admin-top-actions form{margin:0}

.admin-top-actions button{

    min-height:36px;

    padding:8px 14px;

    border:1px solid rgba(127,16,34,.18);

    border-radius:9px;

    background:#fff;

    color:var(--deep);

    font:inherit;

    font-weight:800;

    cursor:pointer;

}

.admin-top-actions button:hover{background:#fff5e7;border-color:var(--gold-dark)}

.admin-shell{

    width:100%;

    min-height:calc(100vh - 132px);

    display:grid;

    grid-template-columns:260px minmax(0,1fr);

    align-items:stretch;

}

.admin-sidebar{

    position:sticky;

    top:76px;

    align-self:start;

    height:calc(100vh - 76px);

    overflow-y:auto;

    padding:22px 14px 28px;

    background:#fffdf8;

    border-right:1px solid var(--line);

}

.admin-sidebar-title{

    margin:17px 10px 8px;

    color:#9a7b39;

    font-size:10px;

    font-weight:900;

    letter-spacing:.14em;

    text-transform:uppercase;

}

.admin-sidebar-title:first-child{margin-top:0}

.admin-sidebar a{

    display:flex;

    align-items:center;

    gap:9px;

    min-height:40px;

    margin:3px 0;

    padding:9px 11px;

    border:1px solid transparent;

    border-radius:9px;

    color:#4d4544;

    font-size:12px;

    font-weight:650;

    line-height:1.35;

    text-decoration:none;

    transition:background .15s ease,color .15s ease,border-color .15s ease;

}

.admin-sidebar a:hover,

.admin-sidebar a:focus-visible{

    outline:none;

    color:var(--deep);

    background:#fff5e7;

    border-color:rgba(184,134,11,.22);

}

.admin-main{

    min-width:0;

    width:100%;

    max-width:1600px;

    margin:0 auto;

    padding:30px clamp(18px,3vw,44px) 46px;

}

.admin-footer{

    padding:17px 22px;

    border-top:1px solid var(--line);

    background:#fffdf8;

    color:#8a8279;

    text-align:center;

    font-size:11px;

    line-height:1.5;

}

.admin-page-heading{

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:18px;

    margin:0 0 23px;

}

.admin-page-heading h1{

    margin:0;

    color:var(--ink);

    font-size:clamp(26px,3vw,34px);

    line-height:1.15;

    letter-spacing:-.04em;

}

.admin-page-heading p{

    margin:8px 0 0;

    color:var(--muted);

    font-size:13px;

    line-height:1.65;

}

.admin-metric-grid{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:15px;

    margin:0 0 22px;

}

.admin-metric{

    min-width:0;

    padding:19px 20px;

    border:1px solid var(--line);

    border-top:3px solid var(--gold-dark);

    border-radius:14px;

    background:var(--paper);

    box-shadow:0 8px 24px rgba(36,36,36,.035);

}

.admin-metric span{display:block;color:var(--muted);font-size:12px;font-weight:650;line-height:1.4}

.admin-metric strong{display:block;margin-top:8px;color:var(--deep);font-size:30px;font-weight:850;line-height:1}

.admin-panel-card{

    min-width:0;

    margin:0 0 20px;

    padding:22px;

    border:1px solid var(--line);

    border-radius:15px;

    background:var(--paper);

    box-shadow:0 8px 24px rgba(36,36,36,.035);

}

.admin-panel-card h2{

    margin:0 0 16px;

    color:var(--deep);

    font-size:18px;

    font-weight:850;

    line-height:1.3;

}

.admin-panel-card p{color:var(--muted);font-size:13px;line-height:1.7}

.admin-module-grid{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:12px;

}

.admin-module-card{

    min-width:0;

    min-height:116px;

    display:flex;

    flex-direction:column;

    gap:8px;

    padding:16px;

    border:1px solid var(--line);

    border-radius:12px;

    background:#fff;

    text-decoration:none;

    transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;

}

.admin-module-card:hover{

    transform:translateY(-2px);

    border-color:rgba(184,134,11,.55);

    box-shadow:0 10px 22px rgba(36,36,36,.065);

}

.admin-module-card strong{color:var(--deep);font-size:13px;font-weight:850;line-height:1.4}

.admin-module-card span{color:var(--muted);font-size:11px;line-height:1.55}

.admin-status,.admin-errors{

    margin:0 0 18px;

    padding:12px 15px;

    border-radius:10px;

    font-size:13px;

    line-height:1.55;

}

.admin-status{border:1px solid rgba(184,134,11,.3);background:#fff8d8;color:#6b5200}

.admin-errors{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}

.admin-errors ul{margin:7px 0 0;padding-left:20px}

.admin-form-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:16px;

    align-items:start;

}

.admin-form-grid>.full,.admin-form-field.full{grid-column:1/-1}

.admin-form-field,

.admin-form-grid>label{

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:7px;

    color:#40383a;

    font-size:12px;

    font-weight:750;

    line-height:1.4;

}

.admin-form-field label{color:#40383a;font-size:12px;font-weight:750}

.admin-form-field input,

.admin-form-field select,

.admin-form-field textarea,

.admin-form-grid>label input,

.admin-form-grid>label select,

.admin-form-grid>label textarea,

.admin-panel-card input:not([type=checkbox]):not([type=radio]),

.admin-panel-card select,

.admin-panel-card textarea{

    width:100%;

    min-width:0;

    min-height:42px;

    padding:10px 12px;

    border:1px solid rgba(127,16,34,.2);

    border-radius:9px;

    background:#fff;

    color:var(--ink);

    font:inherit;

    font-size:13px;

    font-weight:400;

}

.admin-form-field textarea,

.admin-form-grid>label textarea,

.admin-panel-card textarea{min-height:105px;resize:vertical;line-height:1.6}

.admin-panel-card input:focus,

.admin-panel-card select:focus,

.admin-panel-card textarea:focus{outline:0;border-color:var(--gold-dark);box-shadow:0 0 0 3px rgba(255,215,0,.17)}

.admin-actions,.admin-inline-actions{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:9px;

    margin-top:17px;

}

.admin-btn,.admin-primary-button,.admin-small-button{

    min-height:37px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:7px;

    padding:9px 14px;

    border:1px solid transparent;

    border-radius:9px;

    background:var(--deep);

    color:#fff;

    font-family:'DM Sans',sans-serif;

    font-size:12px;

    font-weight:800;

    line-height:1.25;

    text-decoration:none;

    cursor:pointer;

    white-space:normal;

}

.admin-btn:hover,.admin-primary-button:hover,.admin-small-button:hover{background:#68101e;color:#fff}

.admin-btn.secondary,.admin-small-button:not(.danger){border-color:rgba(127,16,34,.17);background:#fff;color:var(--deep)}

.admin-btn.secondary:hover,.admin-small-button:not(.danger):hover{border-color:var(--gold-dark);background:#fff5e7;color:var(--deep)}

.admin-btn.danger,.admin-small-button.danger{background:#fff;color:#a21b2d;border-color:#f2c6cc}

.admin-btn.danger:hover,.admin-small-button.danger:hover{background:#fff0f1;border-color:#dc8d98;color:#8d1424}

.admin-form-hint{display:block;margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.55}

.admin-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:10px}

.admin-table{width:100%;min-width:650px;border-collapse:collapse;background:#fff;font-size:12px;text-align:left}

.admin-table th{padding:12px 13px;background:#f8f0e4;color:var(--deep);font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}

.admin-table td{padding:12px 13px;border-top:1px solid #eee7dc;color:#494341;vertical-align:middle;line-height:1.5}

.admin-table td strong{display:block;color:var(--ink);font-size:12px}

.admin-table td small{display:block;margin-top:3px;color:var(--muted);font-size:10px}

.admin-badge,.admin-status-pill{

    display:inline-flex;

    align-items:center;

    padding:4px 8px;

    border-radius:99px;

    background:#f2eee7;

    color:#655b50;

    font-size:10px;

    font-weight:850;

    line-height:1.25;

}

.admin-badge.active,.admin-status-pill.published{background:#e7f5ec;color:#17653a}

.admin-badge.inactive,.admin-status-pill.hidden{background:#f2eeee;color:#6b6262}

.admin-badge.pending,.admin-status-pill.draft{background:#fff4d5;color:#785800}

.admin-pagination{display:flex;justify-content:flex-end;gap:7px;margin-top:16px}

.admin-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}

.admin-media-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}

.admin-media-preview{width:100%;height:150px;display:grid;place-items:center;overflow:hidden;background:#f2ecdf;color:var(--deep);font-size:12px;font-weight:800}

.admin-media-preview img,.admin-media-preview video{display:block;width:100%;height:100%;object-fit:cover}

.admin-media-meta{padding:12px;font-size:11px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}

.admin-media-meta strong{display:block;margin-bottom:4px;color:var(--ink);font-size:12px}

.admin-upload-status{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5}

.admin-youtube-preview{width:100%;aspect-ratio:16/9;border:0;border-radius:10px;background:#111}

.admin-card-heading-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px}

.admin-card-heading-row h2{margin:0}

.admin-main .page-rich-text{max-width:100%;line-height:1.75}

.admin-history-row{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}

.admin-history-row:last-child{border-bottom:0}

.admin-history-row strong{color:var(--deep)}

.admin-history-row span{color:var(--muted)}



@media(max-width:1100px){

    .admin-shell{grid-template-columns:230px minmax(0,1fr)}

    .admin-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

    .admin-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

}

@media(max-width:760px){

    .admin-topbar{position:relative;min-height:0;align-items:flex-start;flex-direction:column;padding:12px 16px;gap:10px}

    .admin-brand img{width:42px;height:42px;max-width:42px;max-height:42px;flex-basis:42px}

    .admin-top-actions{width:100%;justify-content:flex-start}

    .admin-shell{display:block;min-height:auto}

    .admin-sidebar{position:relative;top:auto;height:auto;max-height:none;display:flex;flex-wrap:wrap;gap:5px;overflow:visible;padding:12px;border-right:0;border-bottom:1px solid var(--line)}

    .admin-sidebar-title{width:100%;margin:9px 5px 3px}

    .admin-sidebar a{min-height:35px;margin:0;padding:8px 9px;font-size:11px}

    .admin-main{padding:22px 15px 34px}

    .admin-page-heading{align-items:flex-start}

}

@media(max-width:560px){

    .admin-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}

    .admin-metric{padding:14px}

    .admin-metric strong{font-size:25px}

    .admin-module-grid{grid-template-columns:1fr}

    .admin-module-card{min-height:0}

    .admin-panel-card{padding:16px;border-radius:12px}

    .admin-form-grid{grid-template-columns:1fr;gap:13px}

    .admin-form-grid>.full,.admin-form-field.full{grid-column:auto}

    .admin-page-heading h1{font-size:27px}

    .admin-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}

}

/* Home Management sub-module UI */
.home-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}.home-module-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:16px;align-items:start;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px;text-decoration:none;color:inherit;box-shadow:0 12px 35px rgba(36,36,36,.045);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.home-module-card:hover{transform:translateY(-2px);border-color:rgba(184,134,11,.42);box-shadow:0 16px 42px rgba(36,36,36,.08)}.home-module-number{font-size:13px;font-weight:900;color:var(--gold-dark);padding-top:4px}.home-module-copy h2{margin:0;font-size:20px;letter-spacing:-.02em}.home-module-copy p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.home-module-status{display:grid;justify-items:end;gap:7px;min-width:100px}.home-module-status small{font-size:9px;color:var(--muted);text-align:right}.home-module-arrow{font-size:18px;color:var(--deep)}.home-state-badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;border:1px solid var(--line);background:#fff}.home-state-badge.published{color:#276749;background:#effaf3;border-color:#c9ead5}.home-state-badge.draft{color:#7b4d00;background:#fff8df;border-color:#ead69a}.home-state-badge.scheduled{color:#5b3b8f;background:#f6efff;border-color:#dcc9f2}.home-admin-note{display:grid;gap:4px;margin-top:20px;padding:16px 18px;border:1px solid rgba(184,134,11,.22);border-radius:15px;background:#fffaf0}.home-admin-note strong{font-size:12px;color:var(--deep)}.home-admin-note span{font-size:11px;color:var(--muted);line-height:1.6}.home-section-editor-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:22px}.home-section-editor-head h1{font-size:clamp(32px,4vw,48px);line-height:1;letter-spacing:-.045em;margin:8px 0 10px}.home-section-editor-head p{max-width:760px;color:var(--muted);line-height:1.7;margin:0}.home-section-form{display:grid;gap:18px}.home-section-preview-box{margin-top:4px;border:1px solid rgba(127,16,34,.15);border-radius:20px;background:#fff;padding:15px}.home-preview-label{font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--deep);margin:2px 4px 10px}.home-preview-frame{height:680px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fbf5e8}.home-preview-frame iframe{width:100%;height:100%;border:0;background:#fbf5e8}.home-section-publish-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px;border:1px solid rgba(127,16,34,.16);border-radius:18px;background:var(--paper);box-shadow:0 12px 35px rgba(36,36,36,.045)}.home-section-publish-card>div:first-child{display:grid;gap:5px}.home-section-publish-card strong{font-size:14px}.home-section-publish-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.home-publish-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.home-publish-controls label{font-size:10px;font-weight:800;color:#40383a}.home-publish-controls input[type=radio]{accent-color:var(--deep)}.home-publish-controls input[type=datetime-local]{border:1px solid rgba(127,16,34,.16);border-radius:9px;padding:9px 10px;background:#fff;font:inherit;font-size:11px}.home-section-history{margin-top:18px}.home-sortable .home-choice-card,.home-sortable .home-news-choice{position:relative}.home-sort-controls{display:flex;gap:4px;margin-top:8px}.home-sort-controls button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:5px 7px;font-size:10px;cursor:pointer}.home-sort-controls button:hover{background:#fff8d8;border-color:var(--gold-dark)}.home-preview-only{margin:0;background:#fbf5e8}.home-preview-only>section{min-height:100%;margin:0}.home-preview-only .section-pad{padding-top:55px;padding-bottom:55px}.home-preview-only .home-hero-current{min-height:620px}.home-preview-only .home-hero-full,.home-preview-only .home-hero-editorial{min-height:620px}
@media(max-width:900px){.home-module-grid{grid-template-columns:1fr}.home-section-editor-head{display:block}.home-section-editor-head .home-admin-heading-actions{margin-top:14px}.home-section-publish-card{grid-template-columns:1fr}.home-publish-controls{justify-content:flex-start}.home-preview-frame{height:620px}}
@media(max-width:700px){.home-module-card{grid-template-columns:40px minmax(0,1fr);}.home-module-status{grid-column:2;justify-items:start;display:flex;align-items:center;flex-wrap:wrap}.home-module-status small{text-align:left}.home-module-arrow{margin-left:auto}.home-section-editor-head h1{font-size:38px}.home-preview-frame{height:540px}}


/* EGEC Web_System Admin Panel login page — dedicated responsive styling. */
.eg-login-page{
    min-height:100vh;
    min-height:100svh;
    margin:0;
    padding:38px 20px;
    display:grid;
    place-items:center;
    overflow-x:hidden;
    background:radial-gradient(circle at 50% 0%,rgba(255,215,0,.13),transparent 38%),linear-gradient(135deg,#fbf5e8 0%,#fffdf8 54%,#f7efe0 100%);
    color:var(--ink);
}
.eg-login-page *{box-sizing:border-box}
.eg-login-shell{
    width:min(100%,520px);
    min-width:0;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.eg-login-brand{
    width:100%;
    margin:0 0 27px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}
.eg-login-logo{
    display:block;
    width:104px;
    height:104px;
    max-width:104px;
    max-height:104px;
    flex:0 0 104px;
    margin:0 auto 16px;
    object-fit:contain;
}
.eg-login-brand h1{
    max-width:100%;
    margin:0;
    color:#242424;
    font-family:'DM Sans',sans-serif;
    font-size:clamp(23px,4vw,29px);
    font-weight:800;
    line-height:1.2;
    letter-spacing:-.035em;
}
.eg-login-brand p{
    margin:8px 0 0;
    color:#51494a;
    font-size:15px;
    line-height:1.5;
}
.eg-login-rule{
    width:82px;
    height:4px;
    margin:17px auto 0;
    border-radius:99px;
    background:linear-gradient(90deg,var(--deep) 0 48%,var(--gold-dark) 48% 100%);
}
.eg-login-card{
    width:100%;
    min-width:0;
    padding:32px 35px 34px;
    border:1px solid rgba(127,16,34,.15);
    border-top:4px solid var(--deep);
    border-radius:22px;
    background:rgba(255,253,248,.97);
    box-shadow:0 22px 65px rgba(45,25,25,.10);
}
.eg-login-card h2{
    margin:0;
    color:var(--deep);
    font-size:23px;
    font-weight:800;
    line-height:1.25;
    letter-spacing:-.025em;
}
.eg-login-subtitle{
    margin:8px 0 25px;
    color:var(--muted);
    font-size:14px;
    line-height:1.6;
}
.eg-login-error,.eg-login-status{
    margin:0 0 17px;
    padding:12px 14px;
    border-radius:11px;
    font-size:13px;
    line-height:1.5;
}
.eg-login-error{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}
.eg-login-status{border:1px solid rgba(184,134,11,.2);background:#fff8d8;color:#6b5200}
.eg-login-form{display:grid;gap:17px;width:100%;min-width:0}
.eg-login-field{display:grid;gap:8px;min-width:0}
.eg-login-field label{display:block;color:#40383a;font-size:13px;font-weight:800;line-height:1.4}
.eg-login-field input{
    display:block;
    width:100%;
    min-width:0;
    height:48px;
    padding:0 14px;
    border:1px solid rgba(127,16,34,.22);
    border-radius:11px;
    outline:none;
    background:#fff;
    color:var(--ink);
    font:inherit;
    font-size:14px;
    box-shadow:inset 0 1px 2px rgba(36,36,36,.025);
    transition:border-color .15s ease,box-shadow .15s ease;
}
.eg-login-field input:focus{
    border-color:var(--gold-dark);
    box-shadow:0 0 0 3px rgba(255,215,0,.2);
}
.eg-login-remember{
    display:flex;
    align-items:center;
    gap:9px;
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.4;
    cursor:pointer;
}
.eg-login-remember input{width:16px;height:16px;margin:0;accent-color:var(--deep)}
.eg-login-submit{
    display:flex;
    width:100%;
    min-height:50px;
    align-items:center;
    justify-content:center;
    padding:13px 18px;
    border:0;
    border-radius:11px;
    background:var(--deep);
    color:#fff;
    font-family:'DM Sans',sans-serif;
    font-size:14px;
    font-weight:800;
    letter-spacing:.035em;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(127,16,34,.16);
    transition:transform .15s ease,background .15s ease,box-shadow .15s ease;
}
.eg-login-submit:hover{background:#68101e;box-shadow:0 11px 22px rgba(127,16,34,.2);transform:translateY(-1px)}
.eg-login-submit:focus-visible{outline:3px solid rgba(184,134,11,.45);outline-offset:3px}
.eg-login-footer{
    max-width:100%;
    margin:20px 0 0;
    color:#8a8279;
    font-size:12px;
    line-height:1.5;
    text-align:center;
}
@media(max-width:560px){
    .eg-login-page{padding:25px 15px}
    .eg-login-brand{margin-bottom:21px}
    .eg-login-logo{width:88px;height:88px;max-width:88px;max-height:88px;flex-basis:88px;margin-bottom:13px}
    .eg-login-brand h1{font-size:23px}
    .eg-login-brand p{font-size:13px}
    .eg-login-card{padding:27px 21px 25px;border-radius:18px}
    .eg-login-card h2{font-size:21px}
}


/* Managed real-photo and video presentation. Existing EGEC palette and layout rules remain intact. */
.media-image-frame,.managed-media-frame{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;position:relative;background:#f1e8d6;border-radius:inherit}
.media-image-frame img.managed-media-image{display:block;width:100%;height:100%;max-width:100%;margin:0;border:0;object-fit:contain;object-position:50% 50%;border-radius:inherit}
.media-video-frame{display:block;position:relative;width:100%;aspect-ratio:16/9;min-width:0;overflow:hidden;background:#111;border-radius:inherit}
.media-video-frame iframe,.media-video-frame video{display:block;width:100%;height:100%;min-width:0;min-height:0;border:0;object-fit:contain;object-position:50% 50%;background:#111}
.page-hero-media .media-image-frame{width:100%;aspect-ratio:16/10;max-height:440px}
.page-hero-media .media-video-frame{max-height:440px}
.program-media-gallery .media-image-frame,.program-media-gallery .media-video-frame{width:100%;aspect-ratio:4/3}
.program-media-gallery .media-video-frame iframe,.program-media-gallery .media-video-frame video{height:100%}
.home-hero-media .media-image-frame,.home-editorial-slide .media-image-frame,.home-current-slide .media-image-frame{width:100%;height:100%;min-height:100%;border-radius:0}
.home-hero-media .media-video-frame,.home-editorial-slide .media-video-frame,.home-current-slide .media-video-frame{width:100%;height:100%;min-height:100%;aspect-ratio:auto;border-radius:0}
.home-intro-media .media-image-frame{width:100%;aspect-ratio:16/8;max-height:520px}
.home-intro-media .media-video-frame{width:100%;max-height:520px}
.home-school-life-item .media-image-frame,.home-school-life-item .media-video-frame{width:100%;aspect-ratio:4/3}
.home-gallery-item .media-image-frame,.home-gallery-item .media-video-frame{width:100%;aspect-ratio:1/1}
.public-program-cover .media-image-frame,.public-program-cover .media-video-frame{width:100%;aspect-ratio:16/9}
.program-card-media{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;background:#eadcc5}
.program-card-media .media-image-frame,.program-card-media .media-video-frame{width:100%;height:100%;aspect-ratio:auto;border-radius:inherit}
.program-card-media .media-video-frame iframe,.program-card-media .media-video-frame video{height:100%}
.program-card-managed:after{z-index:1}
.program-card-managed .program-card-copy,.program-card-managed>span{position:relative;z-index:2}
.home-hero-mobile-media{display:none;position:absolute;inset:0;z-index:0;overflow:hidden}
.home-hero-mobile-media .media-image-frame,.home-hero-mobile-media .media-video-frame{width:100%;height:100%;aspect-ratio:auto;border-radius:0}
.home-hero-mobile-media .media-image-frame img,.home-hero-mobile-media .media-video-frame iframe,.home-hero-mobile-media .media-video-frame video{width:100%;height:100%}
.home-hero-mobile-media~.home-hero-content{z-index:3}
.home-media-guidance{display:grid;gap:5px;margin:14px 0 18px;padding:14px 16px;border:1px solid rgba(184,134,11,.24);border-radius:13px;background:#fffaf0;color:var(--muted);font-size:11px;line-height:1.6}
.home-media-guidance strong{color:var(--deep);font-size:12px}
.home-media-guidance a{color:var(--deep);font-weight:800;text-decoration:underline}
.home-youtube-add-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr) auto;gap:10px;align-items:end;margin-top:13px;padding:13px;border:1px dashed rgba(127,16,34,.2);border-radius:12px;background:#fffdf8}
.home-youtube-add-row label{display:grid;gap:6px;color:var(--deep);font-size:11px;font-weight:800}
.home-youtube-add-row input{width:100%;min-width:0;padding:10px 11px;border:1px solid rgba(127,16,34,.18);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:12px}
.home-youtube-add-row button:disabled{opacity:.55;cursor:wait}
.home-upload-btn.is-uploading{opacity:.7;cursor:wait}
.home-program-choice-copy{display:grid;gap:4px;min-width:0}
.home-program-choice-copy img{width:100%;height:90px;object-fit:cover;border-radius:8px;margin-bottom:5px;background:#f1e8d6}
@media(max-width:900px){.home-youtube-add-row{grid-template-columns:1fr 1fr}.home-youtube-add-row button{grid-column:1/-1}.home-hero-mobile-media{display:block}.home-hero-full.has-mobile-hero>.home-hero-slides,.home-hero-editorial.has-mobile-hero>.home-editorial-media,.home-hero-current.has-mobile-hero .home-current-slides{display:none!important}.home-hero-full{background:#160d0e}.home-hero-editorial{position:relative;display:grid;grid-template-columns:1fr;min-height:70vh}.home-hero-editorial>.home-hero-mobile-media{position:absolute;inset:0;min-height:70vh}.home-hero-editorial>.home-editorial-copy{position:relative;z-index:2;background:transparent;color:#fff;min-height:70vh}.home-hero-editorial>.home-editorial-copy h1{color:#fff}.home-hero-editorial>.home-editorial-copy p{color:rgba(255,255,255,.9)}.home-current-visual>.home-hero-mobile-media{position:absolute;inset:0;border-radius:120px 120px 22px 22px}.home-current-visual>.home-hero-mobile-media .media-image-frame,.home-current-visual>.home-hero-mobile-media .media-video-frame{border-radius:120px 120px 22px 22px}.home-current-visual>.home-hero-mobile-media{display:block}}
@media(max-width:700px){.home-youtube-add-row{grid-template-columns:1fr}.home-youtube-add-row button{grid-column:auto}.home-hero-editorial>.home-editorial-copy{padding:55px 7vw}.home-hero-mobile-media{display:block}}

/* Fine controls for uploaded video and fallback mobile Hero. */
.media-video-frame video[data-media-fit]{object-position:50% 50%}
.home-hero-mobile-media .media-video-frame iframe,.home-hero-mobile-media .media-video-frame video{width:100%;height:100%;object-fit:contain}
@media(max-width:900px){.home-hero-full:not(.has-mobile-hero){min-height:70vh}.home-hero-full:not(.has-mobile-hero) .home-hero-content{min-height:70vh}.home-hero-editorial:not(.has-mobile-hero) .home-editorial-media{min-height:48vh}.home-hero-editorial:not(.has-mobile-hero) .home-editorial-copy{min-height:auto}.home-hero-mobile-media{pointer-events:none}}

/* Selected Programs and News order controls in Home Management. */
.home-order-entry{display:flex;align-items:stretch;gap:7px;min-width:0}.home-order-entry>.home-choice-card,.home-order-entry>.home-news-choice{flex:1;min-width:0}.home-order-entry .home-sort-controls{display:flex;flex-direction:column;justify-content:center;gap:5px;margin:0}.home-order-entry .home-sort-controls button{width:30px;height:30px;padding:0;border-radius:8px;color:var(--deep);font-weight:900}.home-order-entry .home-sort-controls button:hover{background:#fff8d8;border-color:var(--gold-dark)}

.home-hero-full,.home-hero-editorial,.home-hero-current{touch-action:pan-y}

/* Consistent media gallery layout on School Life, About, Programs, News and Careers pages. */
.media-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.media-gallery-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--paper)}.media-gallery-card .media-image-frame,.media-gallery-card .media-video-frame{width:100%;aspect-ratio:4/3;border-radius:0}.media-gallery-card .media-gallery-caption{padding:12px 15px}.media-gallery-caption strong{display:block;color:var(--deep);font-size:13px}.media-gallery-caption p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.media-gallery-card .media-video-frame iframe,.media-gallery-card .media-video-frame video{height:100%}@media(max-width:900px){.media-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.media-gallery{grid-template-columns:1fr;gap:12px}}

/* Programme management hierarchy + grouped public catalogue */
.program-admin-kicker{display:block;margin:2px 0 8px;color:var(--deep);font-size:10px;font-weight:900;letter-spacing:.16em}
.program-admin-back{display:inline-block;margin:0 0 14px;color:var(--deep);font-size:12px;font-weight:800}
.program-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:22px 0}
.program-admin-stats.compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.program-admin-stats>div{display:grid;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#fffdf8,#fff)}
.program-admin-stats span{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.04em}
.program-admin-stats strong{color:var(--deep);font-size:28px;line-height:1}
.program-admin-stats small{color:var(--muted);font-size:10px}
.program-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.program-management-card{position:relative;display:flex;min-height:260px;flex-direction:column;align-items:flex-start;overflow:hidden;padding:25px;border:1px solid #efd9a7;border-radius:18px;background:linear-gradient(145deg,#fffbeb 0%,#fff 70%,#fff1f2 100%);box-shadow:0 12px 32px rgba(36,36,36,.05);transition:transform .2s,box-shadow .2s}
.program-management-card.alt{border-color:#e9c4ca;background:linear-gradient(145deg,#fff1f2 0%,#fff 70%,#fffbeb 100%)}
.program-management-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(36,36,36,.1)}
.program-management-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:var(--deep);color:var(--lime);font-size:22px;font-weight:900}
.program-management-card.alt .program-management-icon{background:#fce7e9;color:var(--deep)}
.program-management-chip{margin-top:17px;color:var(--gold-dark);font-size:9px;font-weight:900;letter-spacing:.14em}
.program-management-card h2{margin:7px 0 8px;color:var(--ink);font-size:23px}
.program-management-card p{max-width:520px;margin:0 0 22px;color:var(--muted);font-size:12px;line-height:1.7}
.program-management-card>strong{display:flex;justify-content:space-between;gap:20px;width:100%;margin-top:auto;padding-top:14px;border-top:1px solid rgba(127,16,34,.12);color:var(--deep);font-size:12px}
.program-management-card>strong span{font-size:18px}
.program-admin-note{display:grid;gap:5px;margin:18px 0;padding:17px 19px;border:1px solid rgba(184,134,11,.2);border-radius:13px;background:#fff9e8}
.program-admin-note strong{color:var(--deep);font-size:12px}
.program-admin-note span{color:var(--muted);font-size:11px;line-height:1.6}
.program-category-create{margin:22px 0}
.program-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:17px}
.program-card-heading h2{margin:0;color:var(--ink);font-size:19px}
.program-card-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}
.program-count-pill{white-space:nowrap;border:1px solid #f0d98d;border-radius:999px;background:#fff8dd;padding:7px 11px;color:#80580b;font-size:10px;font-weight:900}
.program-category-form{align-items:end}
.program-category-form label small,.program-editor-form label small{display:block;margin-top:-3px;color:var(--muted);font-size:10px;font-weight:500}
.program-category-form-action{display:flex;align-items:end}
.program-category-form-action .admin-primary-button{width:100%;min-height:42px}
.program-category-list{display:grid;gap:16px;margin:20px 0}
.program-category-card{padding:18px 20px}
.program-category-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.program-category-top>div:first-child{display:flex;min-width:0;align-items:center;gap:13px}
.program-category-order{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:12px;background:#fff5d6;color:var(--gold-dark);font-size:13px;font-weight:900}
.program-category-top h2{margin:0;color:var(--ink);font-size:18px}
.program-category-top p{margin:4px 0 0;color:var(--muted);font-size:10px}
.program-status{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid transparent;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.program-status.is-active{border-color:#b7dfc4;background:#effaf2;color:#186334}
.program-status.is-inactive{border-color:#ecc8ce;background:#fff1f2;color:#922337}
.program-status.is-draft{border-color:#efdfad;background:#fff9e6;color:#86600b}
.program-category-edit{padding-top:15px;border-top:1px solid var(--line);align-items:end}
.program-category-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.program-category-footer>a{color:var(--deep);font-size:11px;font-weight:900}
.program-category-footer>span{color:var(--muted);font-size:10px}
.program-filter-card{margin:18px 0;padding:15px 18px}
.program-filter-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.program-filter-form label{display:grid;min-width:min(340px,100%);gap:6px;color:var(--deep);font-size:11px;font-weight:900}
.program-filter-form select{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px 12px;color:var(--ink);font:inherit;font-size:12px}
.program-catalogue-group{padding:18px 20px}
.program-admin-table{min-width:780px}
.program-admin-table td:last-child{min-width:260px}
.program-empty-group{padding:15px;border:1px dashed var(--line);border-radius:10px;background:#fffdf8;color:var(--muted);font-size:11px}
.program-empty-group a{margin-left:4px;color:var(--deep);font-weight:900}
.program-editor-form{padding-top:4px}
.program-editor-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:5px;padding-top:16px;border-top:1px solid var(--line)}
.program-history-card{margin-top:20px}
.program-history-card>p{margin:3px 0 12px;color:var(--muted);font-size:11px}
.program-group-jump{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 40px}
.program-group-jump a{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid rgba(127,16,34,.14);border-radius:999px;background:#fff;color:var(--deep);font-size:11px;font-weight:800}
.program-group-jump a:hover{border-color:var(--gold-dark);background:#fff8dd}
.program-group-jump span{display:grid;min-width:20px;height:20px;place-items:center;border-radius:999px;background:#fff1c2;color:#80580b;font-size:9px}
.program-groups-public{display:grid;gap:58px}
.program-group-public{scroll-margin-top:110px}
.program-group-public-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.program-group-kicker{display:block;color:var(--gold-dark);font-size:10px;font-weight:900;letter-spacing:.16em}
.program-group-public-heading h2{margin:7px 0 0;color:var(--ink);font-size:clamp(29px,3.2vw,44px);line-height:1;letter-spacing:-.04em}
.program-group-count{color:var(--muted);font-size:11px;font-weight:800}
.program-groups-public .public-program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.program-groups-public .public-program-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(36,36,36,.045)}
.program-groups-public .public-program-cover{overflow:hidden;background:#f7f0e5}
.program-groups-public .public-program-cover img,.program-groups-public .public-program-cover video,.program-groups-public .public-program-cover iframe{display:block;width:100%;max-height:360px;aspect-ratio:16/9;object-fit:contain;border:0;background:#f7f0e5}
.program-groups-public .public-program-card-body{padding:23px}
.program-groups-public .public-program-card-body h2{margin:8px 0 12px;font-size:25px;line-height:1.1;letter-spacing:-.03em}
.program-groups-public .public-program-card-body h3{margin:20px 0 8px;font-size:14px}
.program-groups-public .public-program-card-body>p,.program-groups-public .public-program-card-body .page-rich-text{color:var(--muted);font-size:13px;line-height:1.75}
.program-groups-public .program-meta{margin:5px 0;font-size:11px!important;font-weight:700;color:var(--deep)!important}
.program-page-gallery{padding-left:0;padding-right:0}
@media(max-width:900px){.program-admin-stats.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.program-groups-public .public-program-grid{grid-template-columns:1fr}}
@media(max-width:700px){.program-admin-stats,.program-admin-stats.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.program-management-grid{grid-template-columns:1fr}.program-category-form,.program-category-edit{grid-template-columns:1fr}.program-category-top{align-items:flex-start}.program-category-footer{display:grid}.program-filter-form{align-items:stretch}.program-filter-form label{min-width:100%}.program-group-public-heading{align-items:flex-start;flex-direction:column;gap:9px}.program-groups-public{gap:38px}.program-groups-public .public-program-card-body{padding:17px}}

/* EGEC PUBLIC FOOTER — consistent contact icons and responsive alignment. */
.footer-top{
    grid-template-columns:minmax(0,1.35fr) minmax(180px,.85fr) minmax(300px,1fr);
    align-items:start;
    gap:clamp(28px,4.2vw,60px);
    padding-bottom:42px;
}
.footer-brand-column,
.footer-enquire-column{min-width:0}
.footer h2{
    max-width:520px;
    font-size:clamp(34px,3.2vw,46px);
    line-height:1.08;
}
.footer-links{min-width:0}
.footer-enquire-column{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}
.footer-mail{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:14px;
    color:var(--gold);
    font-size:clamp(17px,1.6vw,20px);
    line-height:1.35;
    font-weight:700;
}
.footer-mail span{font-size:1em;line-height:1}
.footer-contact-list{
    display:grid;
    gap:18px;
    width:100%;
    margin-top:24px;
}
.footer-contact-item{
    display:flex;
    align-items:flex-start;
    gap:13px;
    min-width:0;
    color:#fff;
    font-size:14px;
    line-height:1.55;
    text-decoration:none;
}
.footer-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    flex:0 0 28px;
    margin-top:1px;
    color:#fff;
}
.footer-icon svg{
    display:block;
    width:24px;
    height:24px;
    max-width:24px;
    max-height:24px;
    overflow:visible;
    fill:none !important;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.footer-contact-text{
    display:block;
    min-width:0;
    overflow-wrap:anywhere;
    color:#fff;
}
.footer-email:hover .footer-contact-text,
.footer-phone-numbers a:hover{color:var(--gold)}
.footer-phone-numbers{
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    column-gap:8px;
    row-gap:2px;
    white-space:normal;
}
.footer-phone-numbers a{white-space:nowrap}
.footer-phone-numbers>span{color:rgba(255,255,255,.7)}
.footer-bottom{gap:16px;flex-wrap:wrap}

@media(max-width:1000px){
    .footer-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px}
    .footer-enquire-column{grid-column:1/-1}
    .footer-contact-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
    .footer-phone{grid-column:1/-1}
}
@media(max-width:700px){
    .footer-top{grid-template-columns:minmax(0,1fr);gap:30px;padding-bottom:32px}
    .footer-enquire-column{grid-column:auto}
    .footer-contact-list{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:20px}
    .footer-phone{grid-column:auto}
    .footer h2{font-size:clamp(32px,9vw,42px)}
    .footer-contact-item{font-size:13px}
    .footer-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
    .footer-bottom span{margin-top:0}
}
/* Keep the brand statement on two lines at common desktop widths. */
.footer h2{font-size:clamp(32px,2.9vw,40px)}

/* ================================================================
   EGEC HOME — DESIGN 3 REFINEMENT (desktop + tablet + mobile)
   Preserve the existing split design, palette, copy and media controls.
   Reduce excessive hero height and keep embedded media at 16:9.
   ================================================================ */
.home-hero-editorial {
    min-height: 0;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(22px, 3vw, 42px);
    padding: clamp(28px, 3.6vw, 48px) 5vw;
}

.home-editorial-media {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
}

.home-editorial-slide,
.home-editorial-slide .media-image-frame,
.home-editorial-slide .media-video-frame {
    min-width: 0;
    min-height: 0;
}

.home-editorial-slide .media-image-frame,
.home-editorial-slide .media-video-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.home-editorial-slide .media-image-frame img,
.home-editorial-slide .media-video-frame iframe,
.home-editorial-slide .media-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.home-editorial-copy {
    min-width: 0;
    min-height: 0;
    align-self: center;
    padding: clamp(22px, 3vw, 40px);
}

.home-editorial-copy h1 {
    max-width: 16ch;
    margin: 14px 0 16px;
    font-size: clamp(36px, 4.15vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.home-editorial-copy p {
    max-width: 46ch;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.home-editorial-copy .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.home-editorial-copy .hero-actions .btn {
    padding: 13px 18px;
}

@media (max-width: 1000px) {
    .home-hero-editorial {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .home-editorial-media {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .home-editorial-copy {
        min-height: 0;
        padding: clamp(28px, 5vw, 44px) 6vw;
    }

    .home-editorial-copy h1 {
        max-width: 20ch;
        font-size: clamp(36px, 5.6vw, 52px);
    }
}

/* A separately selected Mobile Hero Media is also compact and stacked;
   it must not keep the old 70vh full-screen overlay on phones/tablets. */
@media (max-width: 900px) {
    .home-hero-editorial.has-mobile-hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0;
        background: var(--cream);
    }

    .home-hero-editorial.has-mobile-hero > .home-hero-mobile-media {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .home-hero-editorial.has-mobile-hero > .home-editorial-copy {
        position: relative;
        z-index: 2;
        min-height: 0;
        padding: clamp(28px, 5vw, 44px) 6vw;
        background: var(--cream);
        color: var(--ink);
    }

    .home-hero-editorial.has-mobile-hero > .home-editorial-copy h1 {
        color: var(--ink);
    }

    .home-hero-editorial.has-mobile-hero > .home-editorial-copy p {
        color: var(--muted);
    }

    .home-hero-editorial.has-mobile-hero > .home-hero-mobile-media .media-image-frame,
    .home-hero-editorial.has-mobile-hero > .home-hero-mobile-media .media-video-frame {
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .home-hero-editorial.has-mobile-hero > .home-hero-mobile-media .media-image-frame img,
    .home-hero-editorial.has-mobile-hero > .home-hero-mobile-media .media-video-frame iframe,
    .home-hero-editorial.has-mobile-hero > .home-hero-mobile-media .media-video-frame video {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .home-hero-editorial .home-editorial-controls {
        position: relative;
        inset: auto;
        display: flex;
        justify-content: flex-start;
        padding: 0 6vw 20px;
        background: var(--cream);
    }
}

@media (max-width: 700px) {
    .home-editorial-media {
        aspect-ratio: 16 / 9;
    }

    .home-editorial-copy {
        padding: 28px 6vw 34px;
    }

    .home-editorial-copy h1 {
        max-width: 19ch;
        margin: 12px 0 14px;
        font-size: clamp(32px, 8.5vw, 40px);
        line-height: 1.04;
    }

    .home-editorial-copy p {
        max-width: 60ch;
        font-size: 14px;
        line-height: 1.65;
    }

    .home-editorial-copy .hero-actions {
        gap: 13px 16px;
        margin-top: 20px;
    }

    .home-editorial-copy .hero-actions .btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .home-editorial-copy .text-link {
        font-size: 12px;
    }
}

/* ================================================================
   EGEC HOME HERO ADMIN — refined selection, media management and help
   ================================================================ */
.hero-editor-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:18px;align-items:stretch}
.hero-design-card,.hero-text-card{min-width:0}
.hero-editor-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 16px}
.hero-editor-section-heading>div{display:flex;align-items:flex-start;gap:11px;min-width:0}
.hero-editor-section-heading .home-admin-label{margin:0;font-size:13px}
.hero-editor-section-heading p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.hero-editor-step{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border-radius:10px;background:#fff4d0;color:var(--deep);font-size:11px;font-weight:900}
.hero-editor-live-tag{white-space:nowrap;padding:6px 9px;border:1px solid rgba(184,134,11,.2);border-radius:999px;background:#fffaf0;color:var(--gold-dark);font-size:9px;font-weight:900;letter-spacing:.1em}
.hero-design-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hero-design-option{position:relative;min-width:0;min-height:205px;align-content:start;padding:11px;border-color:rgba(127,16,34,.13);border-radius:15px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.hero-design-option:hover{transform:translateY(-2px);border-color:rgba(184,134,11,.55);box-shadow:0 12px 25px rgba(36,36,36,.07)}
.hero-design-option.selected,.hero-design-option:has(input:checked){border-color:var(--deep);background:linear-gradient(155deg,#fffaf0 0%,#fff 85%);box-shadow:0 0 0 2px rgba(127,16,34,.09),0 12px 25px rgba(36,36,36,.055)}
.hero-design-option:has(input:focus-visible){outline:3px solid rgba(184,134,11,.28);outline-offset:2px}
.hero-design-option input{width:1px;height:1px;clip-path:inset(50%);white-space:nowrap}
.hero-design-option:has(input:checked)::after{content:'✓';position:absolute;top:17px;right:17px;display:grid;width:23px;height:23px;place-items:center;border:2px solid #fff;border-radius:50%;background:var(--deep);color:#fff;font-size:12px;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.hero-design-preview{display:block;width:100%;height:82px;margin:0 0 4px;border:1px solid rgba(127,16,34,.08);border-radius:10px;background:#f4ecdf}
.hero-preview-current i{left:7px;top:12px;bottom:12px;width:42%;height:auto;background:#fff;border:1px solid rgba(127,16,34,.07);border-radius:5px}
.hero-preview-current b{right:7px;top:9px;width:43%;height:64px;background:linear-gradient(145deg,#f0cbb8,#d8e2e5);border-radius:24px 24px 7px 7px}
.hero-preview-full i{inset:0;background:linear-gradient(0deg,rgba(127,16,34,.58),transparent 72%),linear-gradient(135deg,#7f1022,#e5c98d)}
.hero-preview-full b{left:10px;bottom:13px;width:43%;height:8px;background:#fff;border-radius:8px;box-shadow:0 -14px 0 -2px rgba(255,255,255,.72)}
.hero-preview-editorial i{left:7px;top:12px;width:56%;height:58px;background:linear-gradient(135deg,#e8c6c0,#cfdad5);border-radius:7px}
.hero-preview-editorial b{right:7px;top:19px;width:32%;height:43px;background:#fff;border-radius:5px;box-shadow:0 10px 0 -2px var(--gold)}
.hero-design-option strong{display:block;color:var(--ink);font-size:11px;line-height:1.35}
.hero-design-option small{display:block;color:var(--muted);font-size:10px;line-height:1.45}
.hero-design-size{display:block;margin-top:4px;padding-top:7px;border-top:1px solid var(--line);color:var(--gold-dark);font-size:9px;font-weight:900;line-height:1.4}
.hero-text-card .home-admin-form-grid{gap:12px}
.hero-media-manager{padding:20px}
.hero-media-title{align-items:center}
.hero-media-counter{flex:0 0 auto;padding:8px 11px;border:1px solid rgba(184,134,11,.25);border-radius:999px;background:#fff8df;color:#6b5200;font-size:11px;font-weight:900}
.hero-selected-media-list{margin:6px 0 14px;gap:8px}
.hero-media-entry{min-width:0}
.hero-media-entry .home-selected-media-item{border-radius:13px;border-color:rgba(127,16,34,.12);box-shadow:0 4px 14px rgba(36,36,36,.025)}
.hero-media-entry .home-media-actions button{min-width:34px;min-height:31px}
.hero-media-entry .home-media-actions button[data-remove-media]{color:#922337;border-color:rgba(146,35,55,.18);background:#fff5f5}
.hero-media-entry .home-media-actions button[data-remove-media]:hover{background:#fee8e8;border-color:#d99aa5}
.hero-empty-media{margin:8px 0 14px}
.hero-media-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.hero-media-add-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px 11px;align-items:start;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fffdf8}
.hero-media-add-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:#fff1c5;color:var(--deep);font-size:20px;font-weight:900}
.hero-media-add-card>div:nth-child(2){display:grid;gap:4px;min-width:0}
.hero-media-add-card>div:nth-child(2) strong{color:var(--ink);font-size:12px}
.hero-media-add-card>div:nth-child(2) small{color:var(--muted);font-size:10px;line-height:1.55}
.hero-upload-button{grid-column:2;justify-self:start;margin-top:3px}
.hero-file-selection{grid-column:2;color:var(--muted);font-size:10px}
.hero-youtube-label{grid-column:1/-1;margin-top:5px;color:var(--deep);font-size:11px;font-weight:900}
.hero-youtube-card textarea{grid-column:1/-1;width:100%;min-height:84px;resize:vertical;padding:11px 12px;border:1px solid rgba(127,16,34,.16);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:12px;line-height:1.55}
.hero-youtube-card textarea:focus{outline:none;border-color:var(--gold-dark);box-shadow:0 0 0 3px rgba(255,215,0,.14)}
.hero-media-validation{min-height:17px;margin-top:10px;color:#5a6944;font-size:10px;font-weight:700}
.hero-media-validation.is-error{color:#a32338}
.hero-media-manager .home-admin-hint{margin-top:5px}
.hero-mobile-manager .media-section-title{align-items:center}
.hero-mobile-selected{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.hero-mobile-selected .home-media-thumb{width:74px;height:58px}
.hero-mobile-selected>div:nth-child(2){display:grid;gap:4px;min-width:0}
.hero-mobile-selected strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-mobile-selected small{color:var(--muted);font-size:10px}
.hero-remove-mobile{border:1px solid rgba(146,35,55,.18);border-radius:8px;background:#fff5f5;color:#922337;padding:8px 10px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}

/* Public Hero — keep all three selectable designs visually distinct and balanced. */
.hero.home-hero-current{min-height:clamp(540px,calc(100svh - 122px),760px);padding:clamp(38px,4.2vw,66px) 5vw;gap:clamp(28px,4vw,60px)}
.hero.home-hero-current .hero-copy h1{max-width:13ch;margin:16px 0;font-size:clamp(42px,4.9vw,68px);line-height:1.01;letter-spacing:-.05em}
.hero.home-hero-current .hero-copy p{max-width:48ch;font-size:15px;line-height:1.7}
.hero.home-hero-current .hero-actions{gap:18px;margin-top:25px;flex-wrap:wrap}
.hero.home-hero-current .home-current-visual{height:clamp(340px,42vw,560px);border-radius:150px 150px 24px 24px}
.hero.home-hero-current .home-current-slides{border-radius:inherit}
.home-hero-full{min-height:clamp(540px,calc(100svh - 122px),780px)}
.home-hero-full .home-hero-content{min-height:clamp(540px,calc(100svh - 122px),780px);padding:clamp(55px,6vw,92px) 0}
.home-hero-full .home-hero-content h1{max-width:16ch;font-size:clamp(42px,5.8vw,84px);line-height:1;letter-spacing:-.05em}
.home-hero-full .home-hero-content p{max-width:54ch;font-size:15px;line-height:1.7}

@media(max-width:1000px){
    .hero-editor-layout{grid-template-columns:1fr}
    .hero-design-options{grid-template-columns:repeat(3,minmax(0,1fr))}
    .hero.home-hero-current{min-height:0;grid-template-columns:1fr;padding:42px 6vw;gap:28px}
    .hero.home-hero-current .home-current-visual{height:auto;aspect-ratio:16/9;border-radius:28px}
    .hero.home-hero-current .hero-copy{max-width:760px}
    .hero.home-hero-current .hero-copy h1{max-width:18ch;font-size:clamp(40px,6vw,58px)}
}
@media(max-width:700px){
    .hero-editor-layout{gap:12px}
    .hero-editor-section-heading{align-items:flex-start}
    .hero-design-options{grid-template-columns:1fr;gap:9px}
    .hero-design-option{min-height:0;grid-template-columns:92px minmax(0,1fr);column-gap:12px;align-items:center;padding:10px}
    .hero-design-preview{grid-row:span 3;height:70px;margin:0}
    .hero-design-option strong,.hero-design-option small,.hero-design-size{grid-column:2}
    .hero-design-option:has(input:checked)::after{top:14px;right:14px}
    .hero-media-title{align-items:flex-start;flex-direction:column}
    .hero-media-add-grid{grid-template-columns:1fr}
    .home-selected-media-item{grid-template-columns:58px minmax(0,1fr)}
    .home-selected-media-item .home-media-thumb{width:58px;height:48px}
    .home-selected-media-item .home-media-actions{grid-column:1/-1;justify-content:flex-start}
    .hero-mobile-selected{grid-template-columns:58px minmax(0,1fr)}
    .hero-mobile-selected .home-media-thumb{width:58px;height:48px}
    .hero-remove-mobile{grid-column:1/-1;justify-self:start}
    .hero.home-hero-current{padding:34px 6vw 40px;gap:26px}
    .hero.home-hero-current .home-current-visual{aspect-ratio:16/9;height:auto;border-radius:22px}
    .hero.home-hero-current .hero-copy h1{font-size:clamp(34px,9vw,44px);line-height:1.04}
    .hero.home-hero-current .hero-copy p{font-size:14px;line-height:1.65}
    .hero.home-hero-current .hero-actions{margin-top:20px;gap:14px}
    .hero.home-hero-current .floating-card{left:10px;bottom:10px;padding:12px 14px;border-radius:12px}
    .home-hero-full,.home-hero-full .home-hero-content{min-height:clamp(520px,calc(100svh - 70px),740px)}
    .home-hero-full .home-hero-content{width:88vw;padding:48px 0 78px}
    .home-hero-full .home-hero-content h1{font-size:clamp(38px,10vw,58px);line-height:1.02}
    .home-hero-full .home-hero-content p{font-size:14px;line-height:1.65}
}


/* Optional mobile-only portrait Hero photo. The regular carousel media stays 16:9. */
@media(max-width:900px){
    .home-hero-editorial.has-mobile-hero>.home-hero-mobile-media{aspect-ratio:4/5}
    .hero.home-hero-current.has-mobile-hero .home-current-visual{height:auto;aspect-ratio:4/5}
    .hero.home-hero-current.has-mobile-hero .home-current-visual>.home-hero-mobile-media{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;overflow:hidden}
    .hero.home-hero-current.has-mobile-hero .home-current-visual>.home-hero-mobile-media .media-image-frame{width:100%;height:100%;aspect-ratio:auto}
    .hero.home-hero-current.has-mobile-hero .home-current-visual>.home-hero-mobile-media .media-image-frame img{width:100%;height:100%;object-fit:cover}
}


/* DESIGN 1 FINAL REPAIR — Desktop baseline preserved from reference app(2).css.
   Mobile only: use the same Main Hero media as desktop; do not use Optional Mobile Hero Photo. */
@media (max-width: 700px) {
    .hero.home-hero-current {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
        align-items: center;
        padding: 42px 5vw 46px;
        gap: 14px;
    }

    .hero.home-hero-current .hero-copy {
        max-width: none;
        min-width: 0;
    }

    .hero.home-hero-current .hero-copy h1 {
        max-width: 13ch;
        margin: 12px 0 18px;
        font-size: clamp(34px, 9.2vw, 46px);
        line-height: 1.02;
        letter-spacing: -.05em;
    }

    .hero.home-hero-current .hero-copy p {
        max-width: none;
        font-size: 13px;
        line-height: 1.6;
    }

    .hero.home-hero-current .hero-actions {
        gap: 10px;
        margin-top: 18px;
        flex-wrap: wrap;
    }

    .hero.home-hero-current .hero-actions .btn {
        padding: 12px 15px;
        font-size: 11px;
    }

    .hero.home-hero-current .home-current-visual {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 90px 90px 20px 20px;
        min-width: 0;
    }

    /* IMPORTANT: Design 1 must use the normal Main Hero carousel media on mobile. */
    .hero.home-hero-current.has-mobile-hero .home-current-slides {
        display: block !important;
    }

    .hero.home-hero-current.has-mobile-hero .home-current-visual > .home-hero-mobile-media {
        display: none !important;
    }

    .hero.home-hero-current.has-mobile-hero .home-current-slides,
    .hero.home-hero-current.has-mobile-hero .home-current-slide {
        border-radius: inherit;
    }

    .hero.home-hero-current .floating-card {
        left: -8px;
        bottom: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        max-width: calc(100% + 8px);
    }

    .hero.home-hero-current .floating-card strong {
        font-size: 12px;
    }

    .hero.home-hero-current .floating-card span {
        font-size: 9px;
    }
}



/* =====================================================================
   EGEC HOME — DESIGN 1 MOBILE REFINEMENT (REFERENCE: USER UPLOADED 92 KB CSS)
   Scope: Design 1 (.hero.home-hero-current) on phones only.
   Desktop is intentionally unchanged. Design 2 (.home-hero-full) and
   Design 3 (.home-hero-editorial) are intentionally untouched.
   Mobile uses the same MAIN carousel media as desktop; the optional
   Mobile Hero Photo is not rendered for this design.
   ===================================================================== */
@media (max-width: 700px) {
    /* Keep the two-column desktop composition on mobile. */
    .hero.home-hero-current {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-auto-flow: row;
        align-items: center !important;
        justify-items: stretch;
        min-height: 0 !important;
        height: auto !important;
        padding: 24px 4.5vw 28px !important;
        gap: 12px !important;
        overflow: visible;
    }

    /* Compact copy so it fits naturally beside the image. */
    .hero.home-hero-current > .hero-copy,
    .hero.home-hero-current .hero-copy {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        align-self: center;
        padding: 0 !important;
    }

    .hero.home-hero-current .hero-copy .eyebrow {
        display: block;
        max-width: 100%;
        margin: 0 0 8px;
        font-size: 7.5px !important;
        line-height: 1.35 !important;
        letter-spacing: .06em !important;
        overflow-wrap: normal;
    }

    .hero.home-hero-current .hero-copy h1 {
        max-width: none !important;
        margin: 8px 0 10px !important;
        font-size: clamp(19px, 5.4vw, 24px) !important;
        line-height: 1.04 !important;
        letter-spacing: -.045em !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero.home-hero-current .hero-copy p {
        max-width: none !important;
        margin: 0 !important;
        font-size: clamp(9.5px, 2.7vw, 11px) !important;
        line-height: 1.5 !important;
    }

    .hero.home-hero-current .hero-actions {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start;
        gap: 7px 8px !important;
        margin-top: 12px !important;
    }

    .hero.home-hero-current .hero-actions .btn {
        display: inline-flex;
        width: auto !important;
        max-width: 100%;
        min-height: 32px;
        padding: 8px 10px !important;
        gap: 6px !important;
        font-size: 8.5px !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    .hero.home-hero-current .hero-actions .btn span {
        font-size: 10px !important;
    }

    .hero.home-hero-current .hero-actions .text-link {
        display: inline-block;
        font-size: 8.5px !important;
        line-height: 1.3;
        white-space: nowrap;
    }

    /* Enlarge the MAIN Hero photo and let it fill the right column. */
    .hero.home-hero-current .home-current-visual {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        align-self: center;
        border-radius: 76px 76px 18px 18px !important;
        overflow: visible;
    }

    .hero.home-hero-current .home-current-slides {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: inherit !important;
        overflow: hidden !important;
    }

    .hero.home-hero-current .home-current-slide {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: inherit !important;
        overflow: hidden !important;
    }

    .hero.home-hero-current .home-current-slide .media-image-frame,
    .hero.home-hero-current .home-current-slide .media-video-frame {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        border-radius: inherit !important;
        overflow: hidden !important;
    }

    .hero.home-hero-current .home-current-slide img,
    .hero.home-hero-current .home-current-slide video,
    .hero.home-hero-current .home-current-slide iframe,
    .hero.home-hero-current .home-current-slide .managed-media-image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: inherit !important;
    }

    /* Do not substitute the optional Mobile Hero Photo for Design 1. */
    .hero.home-hero-current.has-mobile-hero .home-current-slides {
        display: block !important;
    }

    .hero.home-hero-current.has-mobile-hero .home-current-visual > .home-hero-mobile-media,
    .hero.home-hero-current .home-current-visual > .home-hero-mobile-media {
        display: none !important;
    }

    /* Reduce the floating label so it does not cover most of the photo. */
    .hero.home-hero-current .home-current-visual .floating-card {
        position: absolute;
        z-index: 5;
        left: -7px !important;
        bottom: 8px !important;
        width: max-content;
        max-width: calc(100% + 14px) !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        gap: 3px !important;
        box-shadow: 0 10px 24px rgba(127, 16, 34, .13);
    }

    .hero.home-hero-current .home-current-visual .floating-card strong {
        font-size: 9px !important;
        line-height: 1.25;
    }

    .hero.home-hero-current .home-current-visual .floating-card span {
        font-size: 7.5px !important;
        line-height: 1.25;
    }

    /* Keep the approved gold Back-to-top button for Design 1 only. */
    body:has(.hero.home-hero-current) .home-top-button {
        background: var(--gold) !important;
        color: #3f3100 !important;
        box-shadow: 0 10px 26px rgba(184, 134, 11, .25) !important;
    }
}

/* Very narrow phones: retain the split layout and scale text down slightly. */
@media (max-width: 380px) {
    .hero.home-hero-current {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 9px !important;
        padding-left: 4vw !important;
        padding-right: 4vw !important;
    }

    .hero.home-hero-current .hero-copy h1 {
        font-size: clamp(17px, 5.1vw, 20px) !important;
    }

    .hero.home-hero-current .hero-copy p {
        font-size: 9px !important;
        line-height: 1.45 !important;
    }

    .hero.home-hero-current .home-current-visual {
        aspect-ratio: 4 / 5 !important;
        border-radius: 62px 62px 15px 15px !important;
    }

    .hero.home-hero-current .home-current-visual .floating-card {
        left: -5px !important;
        max-width: calc(100% + 10px) !important;
        padding: 7px 8px !important;
    }

    .hero.home-hero-current .home-current-visual .floating-card strong {
        font-size: 8px !important;
    }

    .hero.home-hero-current .home-current-visual .floating-card span {
        font-size: 7px !important;
    }
}

/* EGEC Hero Admin UI refinements - Photo tip removed; YouTube Save styled; Schedule UI. */
.hero-youtube-save-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    max-width:100%;
    min-height:40px;
    margin-top:10px;
    padding:10px 16px;
    border:1px solid #087c5d;
    border-radius:10px;
    background:#0b8f6a;
    color:#fff;
    font:inherit;
    font-size:12px;
    font-weight:800;
    line-height:1.2;
    cursor:pointer;
    white-space:normal;
    text-align:center;
    box-shadow:0 5px 14px rgba(11,143,106,.16);
}
.hero-youtube-save-button:hover{background:#087c5d;border-color:#076c52}
.hero-youtube-save-button:focus-visible{outline:3px solid rgba(11,143,106,.24);outline-offset:2px}
.home-admin-savebar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.home-schedule-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:11px 18px;
    border:1px solid rgba(184,134,11,.35);
    border-radius:10px;
    background:#fff4cf;
    color:#765400;
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:not-allowed;
    opacity:.72;
}
.home-schedule-button:disabled{cursor:not-allowed;opacity:.72}
@media(max-width:700px){
    .home-admin-savebar-actions{display:flex;gap:8px;margin-top:12px}
    .home-admin-savebar-actions>button{flex:1 1 auto}
}


/* EGEC Hero Admin layout correction (2026-11-07): remove old help text and align save actions. */
.hero-design-help{display:none!important}
.hero-design-card .hero-design-save-row{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:100%!important;
    margin:14px 0 0!important;
    padding:14px 0 0!important;
    border-top:1px solid rgba(127,16,34,.12)!important;
}
.hero-design-card .hero-design-save-row > .hero-design-save-button{
    appearance:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:148px!important;
    min-height:42px!important;
    max-width:100%!important;
    margin:0!important;
    padding:11px 20px!important;
    border:1px solid #087c5d!important;
    border-radius:10px!important;
    background:#0b8f6a!important;
    color:#fff!important;
    font:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:nowrap!important;
    cursor:pointer!important;
    box-shadow:0 5px 14px rgba(11,143,106,.16)!important;
}
.hero-design-card .hero-design-save-row > .hero-design-save-button:hover{
    background:#087c5d!important;
    border-color:#076c52!important;
}
.hero-design-card .hero-design-save-row > .hero-design-save-button:focus-visible{
    outline:3px solid rgba(11,143,106,.24)!important;
    outline-offset:2px!important;
}

/* YouTube buttons are placed in their own full-width grid row, not the icon column. */
.hero-media-add-card.hero-youtube-card > .hero-youtube-save-row{
    grid-column:1/-1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    margin:8px 0 0!important;
}
.hero-media-add-card.hero-youtube-card .hero-youtube-save-row > .hero-youtube-save-button{
    appearance:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:172px!important;
    min-height:42px!important;
    max-width:100%!important;
    margin:0!important;
    padding:11px 18px!important;
    border:1px solid #087c5d!important;
    border-radius:10px!important;
    background:#0b8f6a!important;
    color:#fff!important;
    font:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    cursor:pointer!important;
    box-shadow:0 5px 14px rgba(11,143,106,.16)!important;
}
.hero-media-add-card.hero-youtube-card .hero-youtube-save-row > .hero-youtube-save-button:hover{
    background:#087c5d!important;
    border-color:#076c52!important;
}
.hero-media-add-card.hero-youtube-card .hero-youtube-save-row > .hero-youtube-save-button:focus-visible{
    outline:3px solid rgba(11,143,106,.24)!important;
    outline-offset:2px!important;
}
.hero-media-add-card.hero-youtube-card .hero-youtube-save-row > .hero-youtube-switch-button{
    appearance:none!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 14px;
    border:1px solid rgba(127,16,34,.18);
    border-radius:10px;
    background:#fff8d8;
    color:var(--deep);
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}
.hero-media-add-card.hero-youtube-card .hero-youtube-save-row > .hero-youtube-switch-button[hidden]{display:none!important}

/* Keep the primary publish and schedule actions grouped at the bottom-right. */
.home-admin-savebar-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
}
.home-admin-savebar-actions > .home-schedule-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:112px!important;
    min-height:42px!important;
    padding:11px 18px!important;
    border:1px solid rgba(184,134,11,.35)!important;
    border-radius:10px!important;
    background:#fff4cf!important;
    color:#765400!important;
    font:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    cursor:pointer!important;
    opacity:1!important;
}
.home-admin-savebar-actions > .home-schedule-button:disabled{
    cursor:not-allowed!important;
    opacity:.55!important;
}
.home-admin-savebar-actions > .admin-primary-button{
    min-height:42px!important;
    white-space:nowrap!important;
}
@media(max-width:700px){
    .hero-design-card .hero-design-save-row{justify-content:flex-end!important}
    .hero-media-add-card.hero-youtube-card > .hero-youtube-save-row{justify-content:flex-end!important}
    .home-admin-savebar-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:12px!important}
    .home-admin-savebar-actions > button{flex:0 1 auto!important}
}
@media(max-width:420px){
    .hero-media-add-card.hero-youtube-card .hero-youtube-save-row > .hero-youtube-save-button{min-width:0!important;width:100%!important}
    .hero-media-add-card.hero-youtube-card > .hero-youtube-save-row{flex-direction:column!important;align-items:stretch!important}
    .home-admin-savebar-actions{width:100%!important}
    .home-admin-savebar-actions > button{flex:1 1 100%!important}
}


/* EGEC HOSTING FIX — 2026-11-10
   Force fresh, consistent styles for Hero admin action buttons.
   Scoped to the Hero editor only; no public website styles are changed. */
button.hero-design-save-button[data-save-hero-design] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 150px !important;
    width: auto !important;
    min-height: 42px !important;
    padding: 11px 20px !important;
    margin: 0 !important;
    border: 1px solid #087c5d !important;
    border-radius: 10px !important;
    background: #0b8f6a !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    cursor: pointer !important;
    box-shadow: 0 5px 14px rgba(11, 143, 106, .16) !important;
}
button.hero-design-save-button[data-save-hero-design]:hover {
    background: #087c5d !important;
    border-color: #076c52 !important;
}
.hero-design-card .hero-design-save-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid rgba(127, 16, 34, .12) !important;
}
button.hero-youtube-save-button[data-save-hero-youtube] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    min-width: 190px !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 11px 18px !important;
    margin: 0 !important;
    border: 1px solid #087c5d !important;
    border-radius: 10px !important;
    background: #0b8f6a !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    cursor: pointer !important;
    box-shadow: 0 5px 14px rgba(11, 143, 106, .16) !important;
}
button.hero-youtube-save-button[data-save-hero-youtube]:hover {
    background: #087c5d !important;
    border-color: #076c52 !important;
}
.hero-media-add-card.hero-youtube-card > .hero-youtube-save-row {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 0 !important;
}
@media (max-width: 420px) {
    button.hero-youtube-save-button[data-save-hero-youtube] {
        min-width: 0 !important;
        width: 100% !important;
    }
    .hero-media-add-card.hero-youtube-card > .hero-youtube-save-row {
        align-items: stretch !important;
    }
}

/* EGEC Hero revision: Design 2 per-photo text, one shared media source on all devices, and responsive CTA/layout. */
.hero-text-card[hidden]{display:none!important}
.hero-slide-content-fields{display:grid;gap:8px;margin-top:10px;padding:11px;border:1px solid rgba(127,16,34,.12);border-radius:12px;background:#fffaf2}
.hero-slide-content-fields label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#4a3f41}
.hero-slide-content-fields input,.hero-slide-content-fields textarea,.hero-slide-content-fields select{width:100%;box-sizing:border-box;border:1px solid rgba(127,16,34,.16);border-radius:8px;background:#fff;padding:8px 9px;font:inherit;font-size:10px;color:#2f2829}
.hero-slide-content-fields textarea{resize:vertical;min-height:54px}
.hero-slide-content-fields select{min-height:34px}
.hero-media-meta-block{min-width:0}
.hero-youtube-only-note{display:block;margin-top:6px;color:#7f1022!important;font-weight:800!important}
.hero-design-2-note{margin-top:12px;padding:11px 13px;border-radius:10px;background:#fff8df;border:1px solid rgba(184,134,11,.25);font-size:10px;line-height:1.6;color:#5c4a17}
.home-schedule-field{display:grid;gap:5px;font-size:9px;font-weight:800;color:#40383a}
.home-schedule-field input{border:1px solid rgba(127,16,34,.16);border-radius:9px;padding:9px 10px;background:#fff;font:inherit;font-size:11px;min-width:205px}
.home-hero-full .home-hero-overlay{background:linear-gradient(90deg,rgba(20,9,11,.48) 0%,rgba(20,9,11,.18) 52%,rgba(20,9,11,.03) 100%),linear-gradient(0deg,rgba(20,9,11,.22),transparent 55%)}
.home-hero-content-slide{position:absolute;z-index:3;inset:0;width:auto;min-height:0;margin:0;padding:clamp(70px,8vw,120px) 5vw;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}
.home-hero-content-slide h1{max-width:16ch;margin:14px 0;font-size:clamp(42px,5.8vw,84px)}
.home-hero-content-slide p{max-width:54ch;margin:0}
.home-hero-content-slide .hero-actions{margin-top:25px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.home-hero-content-slide.position-top-left{justify-content:flex-start;align-items:flex-start;text-align:left}
.home-hero-content-slide.position-top-center{justify-content:flex-start;align-items:center;text-align:center}
.home-hero-content-slide.position-top-right{justify-content:flex-start;align-items:flex-end;text-align:right}
.home-hero-content-slide.position-center-left{justify-content:center;align-items:flex-start;text-align:left}
.home-hero-content-slide.position-center{justify-content:center;align-items:center;text-align:center}
.home-hero-content-slide.position-center-right{justify-content:center;align-items:flex-end;text-align:right}
.home-hero-content-slide.position-bottom-left{justify-content:flex-end;align-items:flex-start;text-align:left;padding-bottom:clamp(85px,9vw,135px)}
.home-hero-content-slide.position-bottom-center{justify-content:flex-end;align-items:center;text-align:center;padding-bottom:clamp(85px,9vw,135px)}
.home-hero-content-slide.position-bottom-right{justify-content:flex-end;align-items:flex-end;text-align:right;padding-bottom:clamp(85px,9vw,135px)}
.home-hero-content-slide.position-top-center h1,.home-hero-content-slide.position-center h1,.home-hero-content-slide.position-bottom-center h1{margin-left:auto;margin-right:auto}
.home-hero-content-slide.position-top-center p,.home-hero-content-slide.position-center p,.home-hero-content-slide.position-bottom-center p{margin-left:auto;margin-right:auto}
@media(max-width:900px){
  .home-hero-full,.home-hero-full .home-hero-content-slide{min-height:70vh}
  .home-hero-content-slide{width:100%;padding:58px 7vw 86px;justify-content:flex-start}
  .home-hero-content-slide h1{font-size:clamp(36px,10vw,58px);line-height:1.02;max-width:15ch}
  .home-hero-content-slide p{font-size:14px;line-height:1.65}
  .home-hero-content-slide .hero-actions{margin-top:20px;gap:14px}
  .home-hero-content-slide.position-center-left,.home-hero-content-slide.position-center,.home-hero-content-slide.position-center-right{justify-content:center}
  .home-hero-content-slide.position-bottom-left,.home-hero-content-slide.position-bottom-center,.home-hero-content-slide.position-bottom-right{justify-content:flex-end;padding-bottom:92px}
  .home-hero-content-slide.position-top-center,.home-hero-content-slide.position-center,.home-hero-content-slide.position-bottom-center{align-items:center}
  .home-hero-content-slide.position-top-right,.home-hero-content-slide.position-center-right,.home-hero-content-slide.position-bottom-right{align-items:flex-end}
}
@media(max-width:700px){
  .home-hero-full,.home-hero-full .home-hero-content-slide{min-height:68vh}
  .home-hero-content-slide{padding:48px 6vw 82px}
  .home-hero-content-slide h1{font-size:clamp(34px,10.5vw,52px);margin:10px 0}
  .home-hero-content-slide .hero-actions{flex-direction:column;align-items:flex-start;gap:10px}
  .home-hero-content-slide.position-top-center,.home-hero-content-slide.position-center,.home-hero-content-slide.position-bottom-center{align-items:center}
  .home-hero-content-slide.position-top-right,.home-hero-content-slide.position-center-right,.home-hero-content-slide.position-bottom-right{align-items:flex-end}
  .home-hero-content-slide.position-top-right .hero-actions,.home-hero-content-slide.position-center-right .hero-actions,.home-hero-content-slide.position-bottom-right .hero-actions{align-items:flex-end}
  .home-schedule-field input{min-width:0;width:100%}
}

/* No separate mobile Hero media: Desktop and mobile always use the same Hero media source. */
.home-hero-mobile-media{display:none!important}
.home-hero-full.has-mobile-hero>.home-hero-slides,.home-hero-editorial.has-mobile-hero>.home-editorial-media,.home-hero-current.has-mobile-hero .home-current-slides{display:block!important}
.hero.home-hero-current.has-mobile-hero .home-current-visual>.home-hero-mobile-media{display:block!important}

/* Final EGEC Hero rules: one media source on desktop/mobile; Design 2 uses compact per-photo Hero text. */
.hero-slide-content-fields{
    grid-column:2/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px 8px;
    margin-top:2px;
    padding:7px 8px;
    border:1px solid rgba(127,16,34,.12);
    border-radius:9px;
    background:#fffaf2;
    max-width:430px;
    box-sizing:border-box;
}
.hero-slide-content-fields[hidden]{display:none!important}
.hero-slide-content-title{
    grid-column:1/-1;
    font-size:9px;
    font-weight:900;
    letter-spacing:.04em;
    color:var(--deep);
}
.hero-slide-content-fields label{
    display:grid;
    gap:3px;
    font-size:8px;
    font-weight:800;
    color:#4a3f41;
}
.hero-slide-content-fields input,
.hero-slide-content-fields textarea,
.hero-slide-content-fields select{
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(127,16,34,.14);
    border-radius:7px;
    background:#fff;
    padding:6px 7px;
    font:inherit;
    font-size:9px;
    line-height:1.35;
    color:#2f2829;
}
.hero-slide-content-fields textarea{resize:vertical;min-height:38px;max-height:82px}
.hero-slide-content-fields select{min-height:29px}
.hero-slide-content-fields label:nth-of-type(3){grid-column:1/-1}
.hero-slide-content-fields label:nth-of-type(4){grid-column:1/-1;max-width:180px}
.hero-pending-preview-item{
    display:grid;
    grid-template-columns:74px minmax(0,1fr) auto;
    gap:10px;
    align-items:start;
    padding:9px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
}
.hero-pending-preview-item .hero-slide-content-fields{grid-column:1/-1}
@media(max-width:700px){
    .hero-slide-content-fields{grid-column:1/-1;grid-template-columns:1fr;max-width:none}
    .hero-slide-content-fields label:nth-of-type(3),
    .hero-slide-content-fields label:nth-of-type(4){grid-column:auto;max-width:none}
    .hero-pending-preview-item{grid-template-columns:58px minmax(0,1fr)}
    .hero-pending-preview-item .home-media-actions{grid-column:2}
}


/* EGEC FINAL PUBLIC HERO / TOP BUTTON FIX — 2026-11-10 */
.home-top-button {
    background: var(--gold) !important;
    color: #3f3100 !important;
    box-shadow: 0 12px 30px rgba(184,134,11,.25) !important;
}

/* Design 1 desktop: reduce the oversized hero height while preserving the
   complete source photo. The shared desktop/mobile photo remains the same. */
@media (min-width: 1001px) {
    .hero.home-hero-current {
        min-height: 0 !important;
        padding-top: clamp(22px, 2.2vw, 34px) !important;
        padding-bottom: clamp(22px, 2.2vw, 34px) !important;
    }

    .hero.home-hero-current .home-current-visual {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 520px !important;
    }

    .hero.home-hero-current .home-current-slides,
    .hero.home-hero-current .home-current-slide,
    .hero.home-hero-current .home-current-slide img,
    .hero.home-hero-current .home-current-slide video,
    .hero.home-hero-current .home-current-slide iframe,
    .hero.home-hero-current .home-current-slide .managed-media-image {
        width: 100% !important;
        height: 100% !important;
    }

    .hero.home-hero-current .home-current-slide img,
    .hero.home-hero-current .home-current-slide .managed-media-image {
        object-fit: contain !important;
        object-position: center center !important;
        background: #fbf5e8 !important;
    }
}

/* =====================================================================
   EGEC HOME — DESIGN 2 MOBILE FINAL REPAIR
   Design 2 uses the same hero media on desktop and mobile.
   Mobile: remove the tall 70vh container / letterboxing and use a
   compact 16:9 hero frame. The source image fills the frame so no
   large empty bands appear above or below the photo.
   ===================================================================== */
@media (max-width: 700px) {
    .home-hero-full {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        background: #fbf5e8 !important;
        overflow: hidden !important;
    }

    .home-hero-full .home-hero-slides,
    .home-hero-full .home-hero-slide,
    .home-hero-full .home-hero-media,
    .home-hero-full .home-hero-media .media-image-frame,
    .home-hero-full .home-hero-media .media-video-frame {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
    }

    .home-hero-full .home-hero-media img,
    .home-hero-full .home-hero-media video,
    .home-hero-full .home-hero-media iframe,
    .home-hero-full .home-hero-media .managed-media-image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .home-hero-full .home-hero-overlay {
        inset: 0 !important;
    }

    .home-hero-full .home-hero-content-slide {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 22px 6vw 58px !important;
        box-sizing: border-box !important;
    }

    .home-hero-full .home-hero-content-slide .eyebrow {
        font-size: clamp(8px, 2.1vw, 11px) !important;
        line-height: 1.3 !important;
        letter-spacing: .08em !important;
    }

    .home-hero-full .home-hero-content-slide h1 {
        max-width: 15ch !important;
        margin: 7px 0 !important;
        font-size: clamp(24px, 7.2vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -.035em !important;
    }

    .home-hero-full .home-hero-content-slide p {
        max-width: 34ch !important;
        margin: 0 !important;
        font-size: clamp(10px, 2.9vw, 13px) !important;
        line-height: 1.45 !important;
    }

    .home-hero-full .home-hero-content-slide .hero-actions {
        margin-top: 12px !important;
        gap: 8px !important;
    }

    .home-hero-full .home-hero-content-slide .hero-actions .btn {
        padding: 9px 13px !important;
        font-size: 10px !important;
    }

    .home-hero-full .home-hero-controls {
        left: 6vw !important;
        bottom: 15px !important;
        transform: none !important;
        gap: 6px !important;
    }

    .home-hero-full .home-hero-dot {
        width: 23px !important;
        height: 3px !important;
    }

    .home-hero-full .home-hero-arrow {
        bottom: 10px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    .home-hero-full .home-hero-prev {
        right: 57px !important;
    }

    .home-hero-full .home-hero-next {
        right: 14px !important;
    }
}

/* =====================================================================
   EGEC HOME — DESIGN 2 MOBILE V2
   IMPORTANT: Design 2 uses ONE shared hero photo on desktop + mobile.
   Mobile must be a compact 16:9 banner, not a full-screen 68/70vh hero.
   ===================================================================== */
@media (max-width: 700px) {
    /* The hero itself is exactly the same 16:9 ratio as the uploaded photo. */
    .home-hero.home-hero-full {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        background: transparent !important;
    }

    /* Keep the carousel layers exactly inside the 16:9 frame. */
    .home-hero.home-hero-full .home-hero-slides,
    .home-hero.home-hero-full .home-hero-slide,
    .home-hero.home-hero-full .home-hero-media,
    .home-hero.home-hero-full .home-hero-media .media-image-frame,
    .home-hero.home-hero-full .home-hero-media .media-video-frame {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Fill the banner. No contain/letterbox on Design 2. */
    .home-hero.home-hero-full .home-hero-media img,
    .home-hero.home-hero-full .home-hero-media .managed-media-image,
    .home-hero.home-hero-full .home-hero-media video,
    .home-hero.home-hero-full .home-hero-media iframe {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: 50% 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    /* Text is an overlay on the photo, never a separate gray/empty area. */
    .home-hero.home-hero-full .home-hero-content-slide {
        position: absolute !important;
        inset: 0 !important;
        z-index: 3 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 18px 6vw 48px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        background: transparent !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide .eyebrow {
        color: var(--gold) !important;
        font-size: clamp(8px, 2.2vw, 11px) !important;
        line-height: 1.25 !important;
        letter-spacing: .10em !important;
        text-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide h1 {
        max-width: 15ch !important;
        margin: 7px 0 !important;
        color: #fff !important;
        font-size: clamp(24px, 7.5vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -.035em !important;
        text-shadow: 0 2px 5px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide p {
        max-width: 34ch !important;
        margin: 0 !important;
        color: rgba(255,255,255,.92) !important;
        font-size: clamp(10px, 2.9vw, 13px) !important;
        line-height: 1.45 !important;
        text-shadow: 0 1px 4px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide .hero-actions {
        margin-top: 10px !important;
        gap: 7px !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide .hero-actions .btn {
        padding: 8px 12px !important;
        font-size: 9px !important;
    }

    /* Keep controls inside the photo. */
    .home-hero.home-hero-full .home-hero-controls {
        position: absolute !important;
        z-index: 5 !important;
        left: 6vw !important;
        bottom: 10px !important;
        transform: none !important;
        display: flex !important;
        gap: 6px !important;
    }

    .home-hero.home-hero-full .home-hero-dot {
        width: 22px !important;
        height: 3px !important;
    }

    .home-hero.home-hero-full .home-hero-arrow {
        position: absolute !important;
        z-index: 5 !important;
        bottom: 7px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .home-hero.home-hero-full .home-hero-prev {
        right: 54px !important;
    }

    .home-hero.home-hero-full .home-hero-next {
        right: 12px !important;
    }
}



/* =====================================================================
   EGEC HOME — DESIGN 2 MOBILE ONLY — FINAL SPACE REMOVAL
   IMPORTANT:
   - Scope is ONLY .home-hero-full (Design 2).
   - Desktop is untouched.
   - Design 1 and Design 3 are untouched.
   - The public Design 2 markup uses .home-hero-content, not
     .home-hero-content-slide. Earlier mobile rules targeted the wrong
     content class, so the original 68vh/100vh sizing remained active.
   - Mobile hero is a compact photo frame; text is an overlay inside it.
   ===================================================================== */
@media (max-width: 700px) {
    /* The entire Design 2 hero becomes only the photo frame. */
    .home-hero.home-hero-full {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    /* Keep every carousel layer inside the photo frame. */
    .home-hero.home-hero-full .home-hero-slides,
    .home-hero.home-hero-full .home-hero-slide,
    .home-hero.home-hero-full .home-hero-media,
    .home-hero.home-hero-full .home-hero-media .media-image-frame,
    .home-hero.home-hero-full .home-hero-media .media-video-frame {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Fill the photo area; do not create letterbox/empty bands. */
    .home-hero.home-hero-full .home-hero-media img,
    .home-hero.home-hero-full .home-hero-media video,
    .home-hero.home-hero-full .home-hero-media iframe,
    .home-hero.home-hero-full .home-hero-media .managed-media-image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    /* IMPORTANT: this is the actual public Design 2 text container.
       Remove the old viewport-height sizing and keep all text inside
       the photo itself. */
    .home-hero.home-hero-full .home-hero-content {
        position: absolute !important;
        inset: 0 !important;
        z-index: 3 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 18px 6vw 48px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        background: transparent !important;
    }

    .home-hero.home-hero-full .home-hero-content .eyebrow {
        color: var(--gold) !important;
        font-size: clamp(8px, 2.2vw, 11px) !important;
        line-height: 1.25 !important;
        letter-spacing: .10em !important;
        text-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content h1 {
        max-width: 15ch !important;
        margin: 7px 0 !important;
        color: #fff !important;
        font-size: clamp(24px, 7.5vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -.035em !important;
        text-shadow: 0 2px 5px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content p {
        max-width: 34ch !important;
        margin: 0 !important;
        color: rgba(255,255,255,.92) !important;
        font-size: clamp(10px, 2.9vw, 13px) !important;
        line-height: 1.45 !important;
        text-shadow: 0 1px 4px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content .hero-actions {
        margin-top: 10px !important;
        gap: 7px !important;
    }

    .home-hero.home-hero-full .home-hero-content .hero-actions .btn {
        padding: 9px 13px !important;
        font-size: 10px !important;
    }

    /* Keep dots/arrows inside the same photo frame. */
    .home-hero.home-hero-full .home-hero-controls {
        z-index: 5 !important;
        left: 6vw !important;
        bottom: 15px !important;
        transform: none !important;
        gap: 6px !important;
    }

    .home-hero.home-hero-full .home-hero-dot {
        width: 23px !important;
        height: 3px !important;
    }

    .home-hero.home-hero-full .home-hero-arrow {
        z-index: 5 !important;
        bottom: 10px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
    }

    .home-hero.home-hero-full .home-hero-prev {
        right: 57px !important;
    }

    .home-hero.home-hero-full .home-hero-next {
        right: 14px !important;
    }
}


/* EGEC HERO DESIGN 2 — DESKTOP FULL-COVER FIX
   Based on the original EGEC Hero Cover / Design 2 rules.
   Desktop only: mobile Hero and Introduction are intentionally untouched. */
@media (min-width: 901px){
    .home-hero.home-hero-full{
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        min-height:calc(100vh - 82px) !important;
        overflow:hidden !important;
    }

    .home-hero.home-hero-full .home-hero-slides,
    .home-hero.home-hero-full .home-hero-slide,
    .home-hero.home-hero-full .home-hero-media,
    .home-hero.home-hero-full .home-hero-media .media-image-frame,
    .home-hero.home-hero-full .home-hero-media .media-video-frame{
        position:absolute !important;
        inset:0 !important;
        width:100% !important;
        height:100% !important;
        min-width:0 !important;
        min-height:0 !important;
        max-width:none !important;
        max-height:none !important;
        aspect-ratio:auto !important;
        margin:0 !important;
        padding:0 !important;
        overflow:hidden !important;
    }

    .home-hero.home-hero-full .home-hero-media img,
    .home-hero.home-hero-full .home-hero-media .managed-media-image,
    .home-hero.home-hero-full .home-hero-media .media-image-frame img.managed-media-image,
    .home-hero.home-hero-full .home-hero-media video,
    .home-hero.home-hero-full .home-hero-media iframe{
        display:block !important;
        width:100% !important;
        height:100% !important;
        min-width:0 !important;
        min-height:0 !important;
        max-width:none !important;
        max-height:none !important;
        object-fit:cover !important;
        object-position:50% 50% !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
    }
}


/* =====================================================================
   EGEC HOME — DESIGN 2 MOBILE V2
   IMPORTANT: Design 2 uses ONE shared hero photo on desktop + mobile.
   Mobile must be a compact 16:9 banner, not a full-screen 68/70vh hero.
   ===================================================================== */
@media (max-width: 700px) {
    /* The hero itself is exactly the same 16:9 ratio as the uploaded photo. */
    .home-hero.home-hero-full {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        background: transparent !important;
    }

    /* Keep the carousel layers exactly inside the 16:9 frame. */
    .home-hero.home-hero-full .home-hero-slides,
    .home-hero.home-hero-full .home-hero-slide,
    .home-hero.home-hero-full .home-hero-media,
    .home-hero.home-hero-full .home-hero-media .media-image-frame,
    .home-hero.home-hero-full .home-hero-media .media-video-frame {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Fill the banner. No contain/letterbox on Design 2. */
    .home-hero.home-hero-full .home-hero-media img,
    .home-hero.home-hero-full .home-hero-media .managed-media-image,
    .home-hero.home-hero-full .home-hero-media video,
    .home-hero.home-hero-full .home-hero-media iframe {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: 50% 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    /* Text is an overlay on the photo, never a separate gray/empty area. */
    .home-hero.home-hero-full .home-hero-content-slide {
        position: absolute !important;
        inset: 0 !important;
        z-index: 3 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 18px 6vw 48px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        background: transparent !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide .eyebrow {
        color: var(--gold) !important;
        font-size: clamp(8px, 2.2vw, 11px) !important;
        line-height: 1.25 !important;
        letter-spacing: .10em !important;
        text-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide h1 {
        max-width: 15ch !important;
        margin: 7px 0 !important;
        color: #fff !important;
        font-size: clamp(24px, 7.5vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -.035em !important;
        text-shadow: 0 2px 5px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide p {
        max-width: 34ch !important;
        margin: 0 !important;
        color: rgba(255,255,255,.92) !important;
        font-size: clamp(10px, 2.9vw, 13px) !important;
        line-height: 1.45 !important;
        text-shadow: 0 1px 4px rgba(0,0,0,.35) !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide .hero-actions {
        margin-top: 10px !important;
        gap: 7px !important;
    }

    .home-hero.home-hero-full .home-hero-content-slide .hero-actions .btn {
        padding: 8px 12px !important;
        font-size: 9px !important;
    }

    /* Keep controls inside the photo. */
    .home-hero.home-hero-full .home-hero-controls {
        position: absolute !important;
        z-index: 5 !important;
        left: 6vw !important;
        bottom: 10px !important;
        transform: none !important;
        display: flex !important;
        gap: 6px !important;
    }

    .home-hero.home-hero-full .home-hero-dot {
        width: 22px !important;
        height: 3px !important;
    }

    .home-hero.home-hero-full .home-hero-arrow {
        position: absolute !important;
        z-index: 5 !important;
        bottom: 7px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .home-hero.home-hero-full .home-hero-prev {
        right: 54px !important;
    }

    .home-hero.home-hero-full .home-hero-next {
        right: 12px !important;
    }
}
