/*-----------------------------------------------------------------------------------
    LOTUS WAY — header + hero slider
    Loaded ONLY when the active front theme is "lotus-way" (see layout/default.php).
    Everything is scoped under .lwh-* so no other theme or page is affected.
    Sizes are in px because the theme sets html { font-size: 62.5% }.
    Matches the live Lotus Way site (lotuswayinternationalschool.sh):
      - header: VIS navy #112C68 with the LW lotus-mark pattern (#0F3579), 6px sky rule
      - hero:   full-bleed photo, navy tint on the left only, plain bottom
-----------------------------------------------------------------------------------*/
:root{
  --lwh-navy:#112C68;
  --lwh-gold:#BE9D62;
  --lwh-gold-dark:#A6854B;
  --lwh-gold-soft:#ECE4D8;
  --lwh-sky:#0080FF;
  --lwh-serif:'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --lwh-accent:'Lora', Georgia, serif;
  --lwh-sans:'HarmonyOS Sans', Arial, Helvetica, sans-serif;   /* self-hosted by lotus-way.css */
  --lwh-menu-font:Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --lwh-header-h:136px;
  --lwh-gutter:clamp(16px, 4vw, 80px);
  /* VIS A-4 supplementary graphic 1: the LW lotus mark and its repeat pattern */
  --lwh-pattern:url('../../../images/lotus-way/pattern-lotus-soft.png');
  --lwh-mark:url('../../../images/lotus-way/mark-w-soft.png');
}

.lwh-wrap{width:100%;padding:0 var(--lwh-gutter);box-sizing:border-box}
.lwh-header *,.lwh-hero *{box-sizing:border-box}

/* ======================= HEADER ======================= */
.lwh-header{position:sticky;top:0;z-index:999;background-color:var(--lwh-navy);background-image:var(--lwh-pattern);background-repeat:repeat;background-size:664px auto;background-position:-20px -150px;border-bottom:6px solid var(--lwh-sky);font-family:var(--lwh-menu-font)}
.lwh-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--lwh-header-h)}
.lwh-brand{display:flex;align-items:center;gap:10px;text-decoration:none!important;flex-shrink:0}
.lwh-brand img{height:88px;width:auto;display:block}
.lwh-brand-text{display:flex;flex-direction:column;line-height:1;color:#fff}
.lwh-brand-text b{font-family:var(--lwh-serif);font-weight:700;font-size:26px;letter-spacing:.01em;color:#fff;text-transform:uppercase}
.lwh-brand-text small{font-family:var(--lwh-serif);font-weight:700;font-size:12px;letter-spacing:.03em;margin-top:6px;color:#fff;text-transform:uppercase}

.lwh-header nav{flex:1;display:flex;justify-content:center}
.lwh-menu{display:flex;flex:1;align-items:center;justify-content:space-between;max-width:930px;list-style:none;margin:0 40px;padding:0;gap:16px}
.lwh-menu > li{position:relative;margin:0;padding:0;list-style:none}
.lwh-menu > li > a{display:inline-block;position:relative;padding:10px 0;color:#fff!important;font-family:var(--lwh-menu-font);font-size:18px;font-weight:400;letter-spacing:0;line-height:1.4;text-decoration:none!important;background:none;white-space:nowrap}
.lwh-menu > li > a::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;background:var(--lwh-gold);transform:scaleX(0);transition:transform .25s}
.lwh-menu > li:hover > a::after,.lwh-menu > li:focus-within > a::after,.lwh-menu > li.lwh-current > a::after{transform:scaleX(1)}
.lwh-sub-toggle{display:none}

.lwh-dropdown{position:absolute;top:100%;left:-18px;min-width:230px;margin:0;padding:10px 0;list-style:none;background:#fff;border-top:3px solid var(--lwh-gold);box-shadow:0 18px 40px rgba(11,31,77,.18);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;z-index:10}
.lwh-menu > li:hover .lwh-dropdown,.lwh-menu > li:focus-within .lwh-dropdown{opacity:1;visibility:visible;transform:none}
.lwh-dropdown li{list-style:none;margin:0;padding:0}
.lwh-dropdown a{display:block;padding:9px 20px;color:var(--lwh-navy)!important;font-family:var(--lwh-menu-font);font-size:15px;font-weight:400;line-height:1.4;text-decoration:none!important}
.lwh-dropdown a:hover{background:#F6F4EF;color:var(--lwh-gold-dark)!important}
.lwh-dropdown .lwh-sep{height:1px;background:#E3E0D8;margin:6px 0}

.lwh-right{display:flex;align-items:center;gap:12px}
.lwh-lang{position:relative}
.lwh-lang > button{display:flex;align-items:center;gap:8px;padding:8px;border:0;background:none;color:#fff;font:400 17px var(--lwh-menu-font);cursor:pointer}
.lwh-lang ul{position:absolute;right:0;top:100%;min-width:130px;margin:0;padding:6px 0;list-style:none;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.15);display:none;z-index:10}
.lwh-lang.open ul{display:block}
.lwh-lang a{display:block;padding:8px 16px;color:var(--lwh-navy)!important;font:400 15px var(--lwh-menu-font);text-decoration:none!important}
.lwh-lang a:hover{background:#F6F4EF}
.lwh-login{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border:1px solid rgba(255,255,255,.7);border-radius:2px;color:#fff!important;font:400 17px var(--lwh-menu-font);line-height:1.2;text-decoration:none!important;white-space:nowrap;transition:background .2s,color .2s}
.lwh-login:hover{background:#fff;color:var(--lwh-navy)!important}
.lwh-login svg{width:18px;height:18px;flex-shrink:0}

/* ======================= LATEST NEWS BAR (under the hero) =======================
   Messages from Office & Comm. > Information > Latest News ("Is View on Web" = Yes) */
.lwh-news{display:flex;align-items:stretch;background:var(--lwh-navy);border-top:1px solid rgba(255,255,255,.12);overflow:hidden;font-family:var(--lwh-sans)}
.lwh-news-tab{flex-shrink:0;display:flex;align-items:center;padding:0 28px;background:var(--lwh-gold);color:#fff;font:700 13px var(--lwh-menu-font);letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.lwh-news-track{position:relative;flex:1;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%)}
.lwh-news-list{display:inline-flex;align-items:center;margin:0;padding:0;list-style:none;white-space:nowrap;animation:lwh-news-scroll var(--lwh-news-dur,40s) linear infinite}
.lwh-news:hover .lwh-news-list{animation-play-state:paused}
.lwh-news-list li{display:inline-flex;align-items:center;margin:0;padding:16px 0;list-style:none;color:#fff;font-size:16px;font-weight:500}
.lwh-news-list li::after{content:"";width:6px;height:6px;margin:0 32px;border-radius:50%;background:var(--lwh-gold)}
@keyframes lwh-news-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.lwh-news-list{animation:none;flex-wrap:wrap;white-space:normal}}

.lwh-burger{display:none;padding:8px;border:0;background:none;color:#fff;cursor:pointer}
.lwh-burger svg{width:28px;height:28px;display:block}

/* ======================= HERO ======================= */
.lwh-hero{position:relative;height:min(720px,calc(100vh - var(--lwh-header-h) - 6px));min-height:520px;overflow:hidden;background:var(--lwh-navy);font-family:var(--lwh-sans)}
.lwh-slide{position:absolute;inset:0;display:flex;align-items:center;opacity:0;transition:opacity 1s ease;z-index:0}
.lwh-slide.active{opacity:1;z-index:1}
.lwh-slide-bg{position:absolute;inset:0;background-color:var(--lwh-navy);background-image:var(--lwh-img,none);background-size:cover;background-position:center;transform:scale(1.04);transition:transform 7s ease}
.lwh-slide.active .lwh-slide-bg{transform:scale(1)}
/* Photo slides: navy tint on the left behind the text, photo clear on the right */
.lwh-slide.lwh-has-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,44,104,.72) 0%,rgba(17,44,104,.45) 30%,rgba(17,44,104,.12) 60%,rgba(17,44,104,0) 80%)}
/* Slides without a photo: plain navy with one large LW lotus mark (VIS A-4, graphic 1) */
.lwh-hero-mark{position:absolute;z-index:1;top:-12%;right:-4%;height:124%;aspect-ratio:338/400;background:var(--lwh-mark) no-repeat center/contain;pointer-events:none}
.lwh-slide.lwh-has-photo .lwh-hero-mark{display:none}

.lwh-slide-content{position:relative;z-index:2;width:100%;color:#fff}
/* Keep slide text on the left, like the original Lotus page (photo stays clear on the right) */
.lwh-slide-text{max-width:min(860px,56%)}
.lwh-slide h1.lwh-title.lwh-long{font-size:clamp(34px,3vw,58px);line-height:1.18;margin-bottom:36px}
.lwh-slide h1.lwh-title.lwh-xlong{font-size:clamp(30px,2.4vw,46px);line-height:1.22;margin-bottom:36px}
.lwh-slide h1.lwh-brandline{white-space:nowrap}
.lwh-kicker{margin:0 0 16px;font-family:var(--lwh-accent);font-style:italic;font-size:clamp(17px,1.2vw,22px);line-height:1.4;color:var(--lwh-gold-soft)!important}
.lwh-slide h1.lwh-title{margin:0 0 24px;font-family:var(--lwh-serif);font-weight:400;font-size:clamp(42px,3.8vw,76px);line-height:1.2;letter-spacing:.01em;color:#fff!important}
.lwh-slide h1.lwh-title b{font-weight:700}
.lwh-slide h1.lwh-title.lwh-brandline{margin-bottom:46px}
.lwh-sub{margin:0 0 56px;font-family:var(--lwh-menu-font);font-size:clamp(22px,2vw,40px);font-weight:400;letter-spacing:.07em;text-transform:uppercase;color:#fff!important;line-height:1.2}
.lwh-desc{max-width:600px;margin:0 0 40px;font-family:var(--lwh-sans);font-size:clamp(16px,1.05vw,20px);line-height:1.65;color:#fff!important;opacity:.95}
.lwh-actions{display:flex;flex-wrap:wrap;gap:16px}
.lwh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;min-width:192px;padding:0 40px;border:1px solid transparent;border-radius:2px;font-family:var(--lwh-menu-font);font-size:17px;font-weight:700;letter-spacing:.04em;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.lwh-btn-gold{background:var(--lwh-gold);border-color:var(--lwh-gold);color:#fff!important}
.lwh-btn-gold:hover{background:var(--lwh-gold-dark);border-color:var(--lwh-gold-dark);color:#fff!important}
.lwh-btn-outline{border-color:#fff;background:transparent;color:#fff!important;min-width:205px}
.lwh-btn-outline:hover{background:#fff;color:var(--lwh-navy)!important}

.lwh-controls{position:absolute;left:0;right:0;bottom:56px;z-index:3}
.lwh-controls .lwh-wrap{display:flex;align-items:center;gap:20px}
.lwh-arrow{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1.5px solid rgba(255,255,255,.75);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;transition:.2s}
.lwh-arrow:hover{background:#fff;color:var(--lwh-navy)}
.lwh-arrow svg{width:18px;height:18px;display:block}
.lwh-dots{display:flex;gap:11px}
.lwh-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:background .3s}
.lwh-dot.active{background:#fff}

/* ======================= RESPONSIVE ======================= */
@media (max-width:1366px){
  :root{--lwh-header-h:112px}
  .lwh-brand img{height:74px}
  .lwh-brand-text b{font-size:23px}
  .lwh-brand-text small{font-size:11px}
  .lwh-menu{margin:0 24px}
  .lwh-menu > li > a{font-size:17px}
  .lwh-header{background-size:560px auto;background-position:-20px -130px}
}
@media (max-width:1150px){
  :root{--lwh-header-h:96px}
  .lwh-brand img{height:62px}
  .lwh-brand-text b{font-size:20px}
  .lwh-brand-text small{font-size:10px}
  .lwh-menu{margin:0 12px;gap:10px}
  .lwh-menu > li > a{font-size:15px}
}
@media (max-width:991px){
  :root{--lwh-header-h:78px}
  .lwh-login{padding:7px 12px;font-size:15px}
  .lwh-news-tab{padding:0 16px;font-size:11px}
  .lwh-brand img{height:52px}
  .lwh-burger{display:block}
  .lwh-nav{position:relative}
  .lwh-header{background-size:440px auto;background-position:-20px -110px}
  .lwh-header nav{flex:0}
  .lwh-menu{position:fixed;top:calc(var(--lwh-header-h) + 6px);left:0;right:0;bottom:0;max-width:none;margin:0;justify-content:flex-start;flex-direction:column;align-items:stretch;gap:0;padding:12px 24px 40px;background:var(--lwh-navy);overflow-y:auto;transform:translateX(100%);transition:transform .3s;z-index:998}
  .lwh-menu.open{transform:none}
  .lwh-menu > li{display:flex;flex-wrap:wrap;align-items:center;border-bottom:1px solid rgba(255,255,255,.1)}
  .lwh-menu > li > a{flex:1;padding:16px 0;font-size:18px}
  .lwh-menu > li > a::after{display:none}
  .lwh-sub-toggle{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:#fff;cursor:pointer}
  .lwh-sub-toggle svg{width:14px;height:14px;transition:transform .2s}
  .lwh-menu > li.sub-open .lwh-sub-toggle svg{transform:rotate(180deg)}
  .lwh-dropdown{position:static;flex-basis:100%;display:none;min-width:0;padding:0 0 12px 12px;background:transparent;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none}
  .lwh-menu > li.sub-open .lwh-dropdown{display:block}
  .lwh-dropdown a{padding:8px 0;color:rgba(255,255,255,.82)!important;font-size:16px}
  .lwh-dropdown a:hover{background:transparent;color:var(--lwh-gold)!important}
  .lwh-dropdown .lwh-sep{background:rgba(255,255,255,.12)}
  .lwh-slide.lwh-has-photo::after{background:linear-gradient(90deg,rgba(17,44,104,.78) 0%,rgba(17,44,104,.5) 55%,rgba(17,44,104,.2) 100%)}
  .lwh-slide-text{max-width:100%}
  .lwh-slide h1.lwh-brandline{white-space:normal}
}
@media (max-width:600px){
  .lwh-login span{display:none}
  .lwh-login{padding:7px 9px}
  .lwh-news-list li{font-size:15px;padding:13px 0}
  .lwh-brand img{height:46px}
  .lwh-brand-text b{font-size:17px}
  .lwh-brand-text small{font-size:9px}
  .lwh-hero{min-height:560px}
  .lwh-sub{letter-spacing:.05em;margin-bottom:40px}
  .lwh-slide h1.lwh-title.lwh-brandline{margin-bottom:28px}
  .lwh-actions .lwh-btn{flex:1 1 100%}
  .lwh-controls{bottom:28px}
  .lwh-hero-mark{height:70%;top:auto;bottom:-6%;right:-28%}
}
@media (prefers-reduced-motion:reduce){
  .lwh-slide,.lwh-slide-bg,.lwh-menu,.lwh-dropdown{transition:none!important}
}
body.lwh-menu-open{overflow:hidden}
