/* Homepage: full-image hero slider + latest updates */

/* Latest update announcement bar */
.update-bar{background:var(--navy);color:#fff;font-size:.82rem;line-height:1.5}
.update-bar[hidden]{display:none}
.update-bar .container{display:flex;align-items:center;gap:14px;min-height:48px;padding-block:8px}
.update-bar-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;background:var(--orange);color:#fff;font-size:.62rem;font-weight:800;letter-spacing:.12em;border-radius:50px;padding:5px 11px}
.update-bar-chip:before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:ub-pulse 1.6s ease-in-out infinite}
.update-bar-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dfe7f1}
.update-bar-text strong{color:#fff}
.update-bar-link{flex-shrink:0;font-weight:800;color:#ffad7f;display:inline-flex;align-items:center;gap:6px}
.update-bar-link:hover{color:#fff}
.update-bar-link .icon{width:16px;height:16px}
@keyframes ub-pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* Hero slider */
.hero-slider{position:relative;height:min(84vh,740px);min-height:560px;overflow:hidden;background:var(--navy);color:#fff;isolation:isolate}
.hs-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s;z-index:0}
.hs-slide.is-active{opacity:1;visibility:visible;transition:opacity .9s ease;z-index:1}
.hs-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition:transform 7s ease-out}
.hs-slide.is-active .hs-bg{transform:scale(1.1)}
.hs-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#04162ef0 0%,#04162ebf 38%,#04162e55 70%,#04162e26 100%),linear-gradient(0deg,#04162ecc 0%,transparent 40%);z-index:1;pointer-events:none}
.hs-content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;padding-bottom:70px}
.hs-content>*{max-width:820px;opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.hs-slide.is-active .hs-content>*{opacity:1;transform:none}
.hs-slide.is-active .hs-content>*:nth-child(2){transition-delay:.12s}
.hs-slide.is-active .hs-content>*:nth-child(3){transition-delay:.24s}
.hs-slide.is-active .hs-content>*:nth-child(4){transition-delay:.36s}
.hs-slide.is-active .hs-content>*:nth-child(5){transition-delay:.48s}
.hs-content .eyebrow{color:#ffd2b8;margin-bottom:20px}
.hs-content .eyebrow>span:empty{background:#ff8a4c}
.hs-title{font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.08;letter-spacing:-.05em;color:#fff;margin:0 0 22px;font-weight:800}
.hs-title em{font-style:normal;color:#ff8a4c}
.hs-text{max-width:560px!important;font-size:1.06rem;line-height:1.8;color:#dbe4ef;max-width:540px;margin:0}
.hs-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:32px}
.hs-actions .button{gap:16px;padding-inline:22px}
.hs-actions .button .icon{width:20px;height:20px}
.hs-actions .button-outline-white{border-color:#ffffff8c;backdrop-filter:blur(6px);background:#ffffff14}
.hs-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.hs-tags>span{display:inline-flex;align-items:center;gap:8px;font-size:.74rem;font-weight:700;color:#e6edf6;border:1px solid #ffffff38;background:#ffffff12;backdrop-filter:blur(6px);padding:7px 12px;border-radius:50px}
.hs-tags .icon{width:16px;height:16px;color:#ff9a63}
.hs-label{position:absolute;right:48px;top:36px;z-index:3;padding:8px 13px;border:1px solid #ffffff70;border-radius:5px;background:#071f4055;backdrop-filter:blur(8px);color:#fff;font-size:.65rem;letter-spacing:.12em;font-weight:700}

.hs-controls{position:absolute;left:0;right:0;bottom:34px;z-index:5;display:flex;align-items:center;gap:18px}
.hs-dots{display:flex;gap:10px;align-items:center}
.hs-dot{width:46px;height:4px;border:0;border-radius:4px;background:#ffffff4d;padding:0;cursor:pointer;position:relative;overflow:hidden}
.hs-dot>i{position:absolute;inset:0;width:0;background:#ff8a4c;border-radius:4px}
.hs-dot.is-active>i{animation:hs-progress var(--hs-delay,6500ms) linear forwards}
.hero-slider.is-paused .hs-dot.is-active>i{animation-play-state:paused}
.hs-dot.is-done>i{width:100%}
.hs-count{font-size:.75rem;font-weight:700;letter-spacing:.1em;color:#c9d5e3;margin-left:6px;font-variant-numeric:tabular-nums}
.hs-arrows{display:flex;gap:10px;margin-left:12px}
.hs-arrow{width:48px;height:48px;border-radius:50%;border:1px solid #ffffff5c;background:#ffffff14;color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(6px);transition:background .2s,border-color .2s}
.hs-arrow:hover{background:var(--orange);border-color:var(--orange)}
.hs-arrow .icon{width:20px;height:20px}
.hs-arrow-prev .icon{transform:rotate(180deg)}
@keyframes hs-progress{from{width:0}to{width:100%}}

/* Latest updates on the homepage */
.home-updates{padding-top:70px;padding-bottom:20px}
.home-updates[hidden]{display:none}
.hu-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}
.hu-head h2{margin:0;font-size:clamp(2rem,3.3vw,3rem)}
.hu-head .eyebrow{color:var(--orange)}
.hu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start}
.hu-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s;color:var(--navy)}
.hu-card:hover{box-shadow:0 18px 40px #071f4014;transform:translateY(-3px)}
.hu-img{position:relative;aspect-ratio:16/10;background:linear-gradient(135deg,var(--navy),#163a66);display:grid;place-items:center;color:#ffad7e;overflow:hidden}
.hu-img img{width:100%;height:100%;object-fit:cover}
.hu-img .icon{width:46px;height:46px}
.hu-new{position:absolute;left:14px;top:14px;background:var(--orange);color:#fff;font-size:.6rem;font-weight:800;letter-spacing:.12em;padding:5px 10px;border-radius:50px}
.hu-body{padding:22px 24px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.hu-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:.74rem;color:var(--muted)}
.hu-tag{font-size:.64rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--orange);background:#fff0e7;border-radius:4px;padding:3px 7px}
.hu-status{font-size:.66rem;font-weight:800;border-radius:50px;padding:3px 9px}
.hu-status.open{background:#e5f6ec;color:#1d7a45}
.hu-status.closed{background:#f3f4f6;color:#6b7280}
.hu-card h3{font-size:1.2rem;line-height:1.35;margin:0}
.hu-card p{font-size:.88rem;line-height:1.75;margin:0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hu-more{margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:.84rem;color:var(--orange)}
.hu-more .icon{width:17px;height:17px}
.hu-grid.is-single{grid-template-columns:1fr}
.hu-grid.is-single .hu-card{flex-direction:row}
.hu-grid.is-single .hu-img{width:46%;aspect-ratio:auto;min-height:320px;flex-shrink:0}
.hu-grid.is-single .hu-img img{position:absolute;inset:0}
.hu-grid.is-single .hu-more{margin-top:10px}
.hu-grid.is-single .hu-body{padding:34px 38px;justify-content:center}
.hu-grid.is-single h3{font-size:1.7rem}
.hu-grid.is-double{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:1150px){.hs-label{right:32px}}
@media(max-width:940px){
  .hu-grid,.hu-grid.is-double{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hu-grid>.hu-card:nth-child(3){display:none}
}
@media(max-width:760px){
  .update-bar .container{gap:10px;min-height:44px}
  .update-bar{font-size:.76rem}
  .hero-slider{height:auto;min-height:0}
  .hs-track{display:grid}
  .hs-slide{position:relative;grid-area:1/1;min-height:620px}
  .hs-slide:after{background:linear-gradient(0deg,#04162ef5 0%,#04162ed9 45%,#04162e73 75%,#04162e40 100%)}
  .hs-content{justify-content:flex-end;padding-top:90px;padding-bottom:110px}
  .hs-title{font-size:clamp(2.2rem,10vw,3rem)}
  .hs-text{font-size:.95rem}
  .hs-actions{margin-top:24px;gap:12px}
  .hs-actions .button{min-height:50px;font-size:.88rem}
  .hs-tags{margin-top:20px}
  .hs-label{left:24px;right:auto;top:22px}
  .hs-controls{bottom:30px;gap:12px}
  .hs-arrows{display:none}
  .hs-arrow{width:42px;height:42px}
  .hs-dot{width:34px}
  .home-updates{padding-top:50px}
  .hu-head{flex-direction:column;align-items:flex-start;gap:12px}
  .hu-grid,.hu-grid.is-double{grid-template-columns:1fr}
  .hu-grid>.hu-card:nth-child(3){display:flex}
  .hu-grid.is-single .hu-card{flex-direction:column}
  .hu-grid.is-single .hu-img{width:100%;min-height:0;aspect-ratio:16/10}
  .hu-grid.is-single .hu-more{margin-top:auto}
  .hu-grid.is-single .hu-body{padding:22px 24px 24px}
  .hu-grid.is-single h3{font-size:1.3rem}
}
@media(max-width:600px){.hs-label{left:16px;top:18px}}
@media(prefers-reduced-motion:reduce){
  .hs-slide,.hs-bg,.hs-content>*{transition:none!important}
  .hs-slide.is-active .hs-bg{transform:none}
  .hs-dot.is-active>i{animation:none;width:100%}
  .update-bar-chip:before{animation:none}
}

/* Whole slide is clickable to its main page */
.hs-cover-link{position:absolute;inset:0;z-index:2}
.hs-content{pointer-events:none}
.hs-content a,.hs-content button{pointer-events:auto}
.hs-content{z-index:3}

/* Update cards without a picture: no image space */
.hu-new-inline{background:var(--orange);color:#fff;font-size:.6rem;font-weight:800;letter-spacing:.12em;padding:4px 9px;border-radius:50px}
.hu-card.no-img .hu-body{padding-top:26px}
.hu-grid.is-single .hu-card.no-img .hu-body{padding:34px 38px}

/* Update bar ticker */
.update-bar-text .ub-item{color:#dfe7f1}
.update-bar-text .ub-item:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.update-bar-text .ub-item strong{color:#fff}
.update-bar-text.is-ticker{text-overflow:clip;-webkit-mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent)}
.is-ticker .ub-track{display:inline-flex;white-space:nowrap;animation:ub-scroll var(--ub-dur,25s) linear infinite;will-change:transform}
.is-ticker .ub-item{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}
.is-ticker .ub-item:after{content:"";width:6px;height:6px;border-radius:50%;background:#ff8a4c;margin:0 26px;flex-shrink:0}
.is-ticker:hover .ub-track,.is-ticker:focus-within .ub-track,.is-ticker.is-paused .ub-track{animation-play-state:paused}
@keyframes ub-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:600px){.update-bar.has-ticker .update-bar-link{display:none}}
