/* =========================
   HERO â€” CENTERED VIDEO
========================= 
.hero{
  position:relative;
  overflow:hidden;
  background:#00294a;
  padding: 150px 0 150px !important;
}

.hero-inner{
  position:relative;
  z-index:3;
  color:#fff;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:0 20px;
}

.hero-media{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-video-shell{
  width:min(100%, 1000px);
  margin:0 auto;
  height:500px;
  overflow:hidden;
  position:relative;
}


.hero-video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
  transform:scale(1.12);   
}

.hero-cta{
  margin-top:2px;
}

.hero .btn-pill--light{
  background:rgba(255,255,255,.9);
}

.hero .btn-pill--light:hover{
  background:rgba(255,255,255,.98);
}

@media (max-width:1024px){
  .hero{
    padding:80px 0 50px !important;
  }

  .hero-video-shell{
    width:min(100%, 700px);
  }
}

@media (max-width:767px){
  .hero{
    padding: 130px 0 100px !important;
  }

  .hero-inner{
    gap: 14px;
    padding: 0 16px;
  }

  .hero-video-shell{
    width: min(100%, 94vw);
    height: auto;          
    overflow: visible;
  }

  .hero-video{
    width: 100%;
    height: auto;         
    aspect-ratio: 16 / 9;
    object-fit: contain;  
    object-position: center center;
    transform: none;       
  }

  .hero-video-shell::after{
    display: none;
  }
} */

/* =========================
   HERO â€” VIDEO BACKGROUND
========================= */
.hero{
  position:relative;
  overflow:hidden;
  background:var(--navy);
  min-height:100vh;
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:1;
}

.hero-video-bg{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  filter:brightness(.72) saturate(.95);
}

.hero-video-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.03), rgba(0,43,73,0.18) 38%, rgba(0,43,73,0.72) 100%),
    linear-gradient(to bottom, rgba(0,20,40,0.18), rgba(0,20,40,0.48));
  z-index:2;
}

/* subtle extra polish */
.hero-video-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg,
      rgba(255,255,255,0) 38%,
      rgba(255,255,255,.05) 50%,
      rgba(255,255,255,0) 62%);
  mix-blend-mode:screen;
  opacity:.35;
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:3;
  color:#fff;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:140px 0 80px;
}

.hero-logo{
  width:340px;
  max-width:78vw;
}

.hero-title{
  font-family:var(--font-serif);
  font-size:38px;
  font-weight:400;
  margin:0 0 12px;
  color:#fff;
  text-wrap:balance;
}

.hero-desc{
  margin:0 0 18px;
  max-width:740px;
  color:rgba(255,255,255,0.82);
  font-size:15px;
}

.hero-cta{
  margin-top:6px;
}

.hero .btn-pill--light{
  background:rgba(255,255,255,.86);
}

.hero .btn-pill--light:hover{
  background:rgba(255,255,255,.94);
}

/* top right play / pause button */
.hero-video-toggle{
  position:absolute;
  top:18px;
  right:18px;
  z-index:4;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.58);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 20px rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.hero-video-toggle:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.72);
  box-shadow:0 14px 24px rgba(0,0,0,.18);
}

.hero-video-toggle .material-symbols-outlined{
  font-size:22px;
  line-height:1;
  color:#243447;
}

.hero-video-bg{
  object-position:center 35%;
}

.hero-video-bg{
  filter:brightness(.5) saturate(.75);
}

/* mobile */
@media (max-width:767px){
  .hero-inner{
    padding:100px 0 72px;
  }
    
  .hero-logo {
    max-width: 50vw;
    padding-bottom: 20px;
  }

  .hero-title{
    font-size:30px;
    line-height:1.12;
  }

  .hero-desc{
    max-width:92%;
    font-size:13px;
  }

  .hero-video-toggle{
    top:12px;
    right:12px;
    width:40px;
    height:40px;
  }
}

/* reduced motion accessibility */
@media (prefers-reduced-motion: reduce){
  .hero-video-bg{
    animation:none !important;
  }
}

/* =============
   HAPPENINGS 
============== */

.hpage{
  padding-top:0;
}

/* hide controls for now */
.hpage-filters,
.hpage-jump{
  display:none !important;
}

/* Header area */
.hpage-hero{
  padding:36px 0 4px;
  background:#fff;
}

.hpage-title{
  font-family:var(--font-serif);
  font-size:40px;
  font-weight:400;
  text-align:center;
  margin:0 0 8px;
  color:#111;
}

.hpage-subtitle{
  text-align:center;
  margin:0 auto;
  max-width:720px;
  color:#666;
  font-size:13px;
  line-height:1.5;
}

/* Feed container */
.hfeed-wrap{
  padding:20px 15px 110px;
  background:#fff;
}

.hfeed-container{
  position:relative;
  padding:0 28px;
}

/* Horizontal month slider */
.hfeed{
  display:flex;
  align-items:stretch;
  gap:54px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:18px 6px 26px;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:#ccc transparent;
}

/* scrollbar */
.hfeed::-webkit-scrollbar{
  height:10px;
}
.hfeed::-webkit-scrollbar-track{
  background:transparent;
}
.hfeed::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.12);
  border-radius:999px;
}
.hfeed:hover::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.22);
}

/* Month group */
.hmonth{
  display:flex;
  gap:22px;
  align-items:stretch;
  scroll-snap-align:start;
  min-width:max-content;
}

.hmonth-label{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:62px;
  color:#cfcfcf;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  user-select:none;
}

.hmonth-label span{
  font-size:44px;
  line-height:.9;
}

/* Cards row inside month */
.hmonth-cards{
  display:flex;
  gap:22px;
  align-items:stretch;
}

/* links */
.hfeed a.event-card{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* card shell */
.hfeed .event-card{
  position:relative;
  flex:0 0 340px;
  width:340px;
  min-height:400px;
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  xbox-shadow:0 14px 34px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;
  scroll-snap-align:start;
}

.hfeed .event-card:hover{
  transform:translateY(-2px);
  xbox-shadow:0 18px 40px rgba(0,0,0,.12);
}

/* top image area */
.hfeed .event-thumb{
  position:relative;
  height:170px;
  flex-shrink:0;
  background:#f4f4f4;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* date pills */
.hfeed .date-group{
  position:absolute;
  top:14px;
  left:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  z-index:2;
}

.hfeed .date-pill{
  width:52px;
  height:52px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1;
  text-align:center;
}

.hfeed .date-pill b{
  font-size:14px;
  color:#111;
}

.hfeed .date-pill span{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#555;
}

.hfeed .date-dash{
  font-size:18px;
  font-weight:900;
  color:rgba(0,0,0,.95);
  line-height:1;
  text-shadow:0 1px 6px rgba(0,0,0,.22);
}

/* category icon badge */
.hfeed .event-cat{
  position:absolute;
  top:0;
  right:24px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:#fff;
  z-index:3;
}

.hfeed .event-cat[data-cat="all"]{ background:#2b2b2b; }
.hfeed .event-cat[data-cat="events"]{ background:#DA2128; }
.hfeed .event-cat[data-cat="games"]{ background:#111; }
.hfeed .event-cat[data-cat="campaigns"]{ background:#4EB857; }
.hfeed .event-cat[data-cat="broadcasts"]{ background:#1268B3; }

.hfeed .event-cat .material-symbols-outlined{
  font-size:20px;
  line-height:1;
}
.event-card:not([href]){
  cursor: default;
}

.event-card:not([href]):hover{
  transform:none;
}
/* content area */
.hfeed .event-body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.hfeed .event-title{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.25;
  font-weight:900;
  color:#111;
}

.hfeed .event-summary{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.45;
  color:#555;
}

.hfeed .meta{
  font-size:13px;
  font-weight:800;
  color:#777;
  margin-top:auto;
  padding-top:8px;
}

/* arrows */
.hfeed-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:5;
}

.hfeed-arrow .material-symbols-outlined{
  font-size:22px;
  line-height:1;
  color:#b00000;
}

.hfeed-arrow--left{
  left:-4px;
}

.hfeed-arrow--right{
  right:-4px;
}

.hfeed-arrow.is-disabled{
  opacity:.35;
  pointer-events:none;
}

/* clamp helpers */
.clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.clamp-3{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* mobile filter dropdown, kept for later */
.hfilter-select{
  width:100%;
  margin-top:10px;
  padding:12px 44px 12px 14px;
  border:1px solid rgba(0,0,0,.14);
  background-color:#fff;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg fill='%23333' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
}

/* RESPONSIVE */
@media (max-width:980px){
  .hfeed-container{
    padding:0;
  }

  .hfeed-arrow{
    display:none;
  }
}

@media (max-width:767px){
  .hpage-title{
    font-size:34px;
  }

  .hfeed-wrap{
    padding:14px 15px 72px;
  }

  .hfeed{
    flex-direction:column;
    overflow-x:hidden;
    gap:34px;
    padding:10px 0 0;
  }

  .hmonth{
    flex-direction:column;
    min-width:100%;
    gap:14px;
  }

  .hmonth-label{
    writing-mode:horizontal-tb;
    transform:none;
    min-width:auto;
    justify-content:flex-start;
    border-bottom:1px solid #eee;
    padding-bottom:10px;
  }

  .hmonth-label span{
    font-size:34px;
    color:#d7d7d7;
  }

  .hmonth-cards{
    flex-direction:column;
    gap:16px;
  }

  .hfeed .event-card{
    width:100%;
    flex:1 1 auto;
    min-height:unset;
  }

  .hfeed .event-thumb{
    height:180px;
  }
}
/* =========================
   PATCH
========================= */
/* temporary hide happenings controls */
.hpage-filters,
.hpage-jump{
  display:none !important;
}
/* kill default link look */
.hfeed a.event-card{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* card shell */
.hfeed .event-card{
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  xbox-shadow: 0 14px 34px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hfeed .event-card:hover{
  transform: translateY(-2px);
  xbox-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* top image area (IMPORTANT: gives height even if image missing) */
.hfeed .event-thumb{
  position: relative;
  height: 160px;
  background: #f4f4f4;
  background-size: cover;
  background-position: center;
}

/* date pills */
.hfeed .date-group{
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hfeed .date-pill{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-align:center;
}
.hfeed .date-pill b{
  font-size: 14px;
  color: #111;
}
.hfeed .date-pill span{
  font-size: 11px;
  color: #555;
}
.hfeed .date-dash{
  color: rgba(0,0,0,.95);
  text-shadow: 0 1px 6px rgba(0,0,0,.22);
  font-weight: 900;
}

/* category icon badge (top-right like mock) */
.hfeed .event-cat{
  position: absolute;
  top: 0;
  right: 25px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
}

/* category colors */
.hfeed .event-cat[data-cat="events"]{ background:#d3181d; }      /* red */
.hfeed .event-cat[data-cat="games"]{ background:#111; }          /* black */
.hfeed .event-cat[data-cat="campaigns"]{ background:#39b54a; }   /* green */
.hfeed .event-cat[data-cat="broadcasts"]{ background:#0b63ce; }  /* blue */

.hfeed .event-cat .material-symbols-outlined{
  font-size: 20px;
  line-height: 1;
}

/* content area */
.hfeed .event-body{
  padding: 16px 18px 18px;
}
.hfeed .event-title{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  color: #111;
}
.hfeed .event-summary{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
.hfeed .meta{
  font-size: 12px;
  color: #777;
}

/* clamp helpers (in case your global clamp classes not loaded) */
.clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.clamp-3{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* category color variables */
:root{
  --cat-all:#111;
  --cat-events:#DA2128;
  --cat-games:#FCAF17;
  --cat-campaigns:#4EB857;
  --cat-broadcasts:#1268B3;
}

/* helper: set --cat for each tab */
.hfilter[data-filter="all"]{ --cat: var(--cat-all); }
.hfilter[data-filter="events"]{ --cat: var(--cat-events); }
.hfilter[data-filter="games"]{ --cat: var(--cat-games); }
.hfilter[data-filter="campaigns"]{ --cat: var(--cat-campaigns); }
.hfilter[data-filter="broadcasts"]{ --cat: var(--cat-broadcasts); }

/* hover: tinted bg + colored border/text */
.hfilter:hover{
  border-color: var(--cat);
  background: color-mix(in srgb, var(--cat) 10%, #fff);
  color: var(--cat);
  transform: translateY(-1px);
}

/* selected */
.hfilter.is-active{
  background: var(--cat);
  border-color: var(--cat);
  color:#fff;
}

/* ensure icon turns white on active */
.hfilter.is-active .material-symbols-outlined{
  color:#fff;
}

.hfilter-select {
  width: 100%;
  margin-top: 10px;
  padding: 12px 44px 12px 14px; /* Ã°Å¸â€˜Ë† extra space on right */
  border: 1px solid rgba(0,0,0,.14);
  background-color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center; /* Ã°Å¸â€˜Ë† move arrow */
  background-size: 16px;
}
span.btn.btn-primary.happening_sum {
    padding: 10px 20px;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgb(243 243 243 / 82%);
    margin: 10px 0;
    justify-content: center;
 
}

/* =========================
   HAPPENINGS MOBILE SHOW MORE
   mobile only, desktop untouched
========================= */
@media (max-width: 767px){
  .hmonth-cards.is-mobile-collapsed .event-card.is-mobile-extra{
    display:none !important;
  }

    .hmonth-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 18px;
        border: 1px solid rgba(0, 0, 0, .12);
        border-radius: 999px;
        color: #b00000;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .04em;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
        transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
        margin: 0 auto;
        margin-top:20px;
    }

  .hmonth-more:hover,
  .hmonth-more:active{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(0,0,0,.09);
    background:#fff8f8;
  }

  .hmonth-more[hidden]{
    display:none !important;
  }
}
/* =========================
   TRADITIONAL TO MODERN â€” BANNER CARDS
========================= */
.traditional--waved{
  position:relative;
  background:var(--beige);
  padding-bottom:50px;
  overflow:visible;
  z-index:2;
    margin-top:50px;
}

.traditional--waved::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-138px;
  height:155px;
  background:url("https://cdn-smg55.starmediagroup.my/Themes/img/wave-top.svg") no-repeat center bottom;
  background-size:100% auto;
  pointer-events:none;
  z-index:-2;
}

.traditional--waved::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-138px;
  height:155px;
  background:url("https://cdn-smg55.starmediagroup.my/Themes/img/wave-bottom.svg") no-repeat center top;
  background-size:100% auto;
  pointer-events:none;
}

.split-grid--banner{
  display:grid;
  grid-template-columns:1fr 1fr;
  max-width:800px;
  gap:26px;
  margin:0 auto;
}

.banner-card{
  position:relative;
  display:block;
  border-radius:18px;
  overflow:hidden;
  min-height:350px;
  text-decoration:none;
  color:#ffffff;
  transform:translateZ(0);
}

.banner-card__content{
  position:relative;
  z-index:3;
  width:min(86%, 320px);
  margin:0 auto;
  top:50%;
  transform:translateY(-50%);
  text-align:center;
  padding:18px;
}

.banner-card__content .banner-cta{ margin:14px auto 0; width:fit-content; }

.banner_starchive{
  background-image:url("https://cdn-smg55.starmediagroup.my/Themes/img/home_banner_starchive.png");
  background-size:cover;
  background-position:center;
}

.banner_framecover{
  background-image:url("https://cdn-smg55.starmediagroup.my/Themes/img/home_banner_aiframe.png");
  background-size:cover;
  background-position:center;
}

.banner-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 360px at 30% 40%, rgba(0,0,0,.10), rgba(0,0,0,.55) 70%),
    linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.25));
  z-index:1;
}

.banner-card::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:linear-gradient(115deg,
    rgba(44,122,75,0) 38%,
    rgba(44,122,75,.22) 50%,
    rgba(44,122,75,0) 62%);
  transform:rotate(12deg) translateX(-50%);
  opacity:.55;
  z-index:2;
  pointer-events:none;
  transition:transform .6s ease, opacity .6s ease;
}

.banner-card__content h3{
  margin:0 0 8px;
  font-family:var(--font-serif);
  font-weight:400;
  font-size:24px;
  color:#ffbd3c;
}

.banner-card__content p{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.45;
  color:rgb(255 255 255 / 90%);
}

@media (hover:hover){
  .banner-card{ transition:transform .25s ease; }
  .banner-card:hover{ transform:translateY(-3px); }
  .banner-card:hover::after{
    transform:rotate(8deg) translateX(10%);
    opacity:.75;
  }
}

@media (max-width:620px){
  .split-grid--banner{ grid-template-columns:1fr; gap:16px; }
  .banner-card{ min-height:300px; }
  .banner-card__content{ width:min(92%, 360px); padding:16px; }
  .traditional--waved::before{ top:-148px; }
  .traditional--waved::after{ bottom:-155px; }
  .traditional .container {padding-top: 20px;}
}


/* =========================
   MILESTONES â€” COIN FLIP (CLEAN)
========================= */
.milestones{
  padding:56px 0;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(0,43,73,.06), transparent 60%),
    #fff;

  --coin: clamp(140px, 18vw, 190px);
  --gap: clamp(14px, 2vw, 22px);
}

.milestones-inner{
  max-width:980px;
  margin:0 auto;
  position:relative; /* overlay anchor */
}

.milestone-row{
  margin-top:18px;
  margin-bottom:22px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:var(--gap);
  align-items:start;
  justify-items:center;
  position:relative; /* dashed line anchor */
}

@media (max-width:767px){
  .milestone-row{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    row-gap:18px;
  }
}

.milestones-cta{
  margin:8px auto 0;
  text-align:center;
}

/* coin */
.milestone-coin{
  width:var(--coin);
  height:var(--coin);
  cursor:pointer;
  perspective:1000px;
  -webkit-tap-highlight-color:transparent;
  position:relative;
  border-radius:50%;
  outline:none;
}

.milestone-coin:focus-visible{
  box-shadow:0 0 0 3px rgba(18,104,179,.25);
}

.milestone-coin__inner{
  width:100%;
  height:100%;
  position:relative;
  border-radius:50%;
  transform-style:preserve-3d;
  transition:transform .7s cubic-bezier(.2,.75,.2,1);
}

@media (hover:hover) and (pointer:fine){
  .milestone-coin:hover .milestone-coin__inner{
    transform:rotateY(180deg);
  }
}

.milestone-coin.is-flipped .milestone-coin__inner{
  transform:rotateY(180deg);
}

/* faces */
.milestone-coin__face{
  position:absolute;
  inset:0;
  border-radius:50%;
  overflow:hidden;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

.milestone-coin__front{ background:#f3f3f3; }

.milestone-coin__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(.95) contrast(1.02);
}

.milestone-coin__front::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  box-shadow:
    0 10px 28px rgba(0,0,0,.16),
    inset 0 0 0 1px rgba(255,255,255,.55);
  pointer-events:none;
}

.milestone-coin__front::after{
  content:"";
  position:absolute;
  inset:-40% -40%;
  border-radius:50%;
  background:radial-gradient(circle at 30% 20%,
    rgba(255,255,255,.55),
    rgba(255,255,255,0) 55%);
  transform:rotate(18deg);
  opacity:.55;
  pointer-events:none;
}

.milestone-coin__back{
  transform:rotateY(180deg);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.20), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, #0b3a62, #0a2440);
  color:#fff;
}

.milestone-coin__content{
  height:100%;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;      
  gap:4px;            
}

.milestone-coin__title{
  margin:0;           
  font-weight:800;
  letter-spacing:.5px;
  font-size:22px;
}

.milestone-coin__desc{
  margin:0;           
  font-size:13px;
  line-height:1.35;
  opacity:.95;
  max-width:22ch;
}

.milestones-onboard{
  position:absolute;
  left:50%;
  top:54%;
  transform:translate(-50%, -50%);
  z-index:50;
  display:none; /* .is-show */
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 26px rgba(0,0,0,0.16);
  pointer-events:none;
}

.milestones-onboard .material-symbols-outlined{
  font-size:20px;
  line-height:1;
}

.milestones-onboard__text{
  font-size:13px;
  font-weight:700;
  color:#1f2a37;
}

.milestones-onboard.is-show{
  display:inline-flex;
}

.milestones-onboard.is-show .material-symbols-outlined{
  animation:tapWiggle 1.1s ease-in-out infinite;
}

@keyframes tapWiggle{
  0%,100%{ transform:translateY(0) }
  50%{ transform:translateY(-3px) }
}

@media (min-width:768px){
  .milestones-onboard{ display:none !important; }
}

/* sizing */
@media (max-width:1024px){
  .milestones{ --coin:160px; --gap:16px; }
}

@media (max-width:520px){
  .milestones{ --coin:138px; --gap:12px; }
  .milestone-coin__title{ font-size:13px; }
  .milestone-coin__desc{ font-size:10.5px; }
}

@media (max-width:380px){
  .milestones{ --coin:112px; --gap:10px; }
}

/* dashed line desktop */
@media (min-width:1024px){
  .milestone-row::before{
    content:"";
    position:absolute;
    top:calc(var(--coin) / 2);
    left:8%;
    right:8%;
    border-top:2px dashed rgb(78 184 87);
    z-index:0;
  }
  .milestone{ position:relative; z-index:1; }
}


/* =========================
   VIDEO
========================= */
.video-block{ padding:180px 0 80px; background:#fff; }

.video-card{
  height:270px;
  border-radius:18px;
  background:#f4f4f4;
  border:1px solid #ededed;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-label{
  position:absolute;
  top:16px;
  left:16px;
  right:16px;
  text-align:center;
  font-size:12px;
  color:#3b3b3b;
}

.video-label b{ font-weight:900; }

.play-btn{
  width:58px;
  height:58px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.25);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.play-icon{ margin-left:3px; font-size:20px; color:#555; }

.container--full{
  max-width:1400px;
  width:95%;
}

.video-container-large{
  width:70%;
  margin:30px auto 0;
  box-shadow:0 20px 50px rgba(0,0,0,0.2);
  overflow:hidden;
}

.video-responsive-wrapper{
  position:relative;
  padding-bottom:56.25%;
  height:0;
}

.video-responsive-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:none;
}

@media (max-width:560px){
  .video-container-large{ width:100%; }
}

@media (max-width:767px){
  .video-block{ padding-top:50px; }
}


/* =========================
   CURATED STORIES
========================= */
.cards-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  width:100%;
  max-width:1200px;
  margin:26px auto 0;
}

.moment-card{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow:hidden;
  display:block;
  text-decoration:none;
  transform: translateZ(0);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.moment-visual{ position:absolute; inset:0; z-index:1; }

.moment-thumb{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-color:#eee;
  z-index:1;
  transition: transform .7s cubic-bezier(.2,.75,.2,1), filter .35s ease;
  filter: saturate(.95) contrast(1.02);
}

.moment-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  background:
    radial-gradient(900px 420px at 30% 20%, rgba(252,175,23,.14), transparent 60%),
    linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.20) 60%, transparent 100%);
}

.moment-content{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:18px 18px 16px;
  z-index:3;
}

.moment-title{
  color:#fff;
  font-size:16px;
  font-weight:800;
  margin:0;
  line-height:1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

@media (hover:hover) and (pointer:fine){
  .moment-card:hover{ transform: translateY(-3px); }
  .moment-card:hover .moment-thumb{ transform: scale(1.07); filter: saturate(1.02) contrast(1.05); }
  .moment-card:hover{ box-shadow: 0 26px 60px rgba(0,0,0,.14); }
}

@media (max-width: 1020px){
  .cards-3{ grid-template-columns:1fr; }
  .moment-card{ aspect-ratio: 16 / 9; }
}

@media (max-width: 480px){
  .moment-card{ aspect-ratio: 1 / 1; }
}


/* =========================
   DEFINING MOMENTS â€” PARALLAX BACKDROP
========================= */
.defining{
  position:relative;
  padding:190px 0 90px;
  overflow:hidden;
  background:#fff;
}

.defining--parallax{
  position:relative;
  overflow:hidden;
  background:#fff;
}

.defining--parallax::before{
  content:"";
  position:absolute;
  inset:-120px 0 -120px 0;
  background-image:url("https://cdn-smg55.starmediagroup.my/Themes/img/background_journalism.png");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  opacity:.18;
  z-index:0;
  filter:blur(3px);
  transform:scale(1.05);
}

.defining > .container,
.defining--parallax > .container{
  position:relative;
  z-index:1;
}

.defining .section-head{
  margin-bottom:22px;
}

/* tabs */
.defining-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:0 auto 26px;
  max-width:1000px;
}

.defining-tab{
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.82);
  color:#222;
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
  font-size:14px;
  letter-spacing:.04em;
  cursor:pointer;
  transition:all .2s ease;
  backdrop-filter:blur(8px);
  font-family:'Lato', sans-serif;
}

.defining-tab:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(0,0,0,.08);
}

.defining-tab.is-active{
  background:#fff;
  color:var(--gold);
  border-color:rgba(156,104,39,.24);
  box-shadow:0 14px 28px rgba(0,0,0,.10);
}

.defining-panel{
  animation:fadeInPanel .25s ease;
}

@keyframes fadeInPanel{
  from{ opacity:0; transform:translateY(4px); }
  to{ opacity:1; transform:translateY(0); }
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.defining-mobile-nav{
  display:none;
}

.defining-panels{
  max-width:950px;
  margin:0 auto;
}

/* =========================
   FEATURE SPLIT
========================= */
.feature-split{
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(280px, .95fr);
  gap:22px;
  margin-top:10px;
  align-items:stretch;
}

.story-feature{
  position:relative;
  min-height:360px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 20px 48px rgba(0,0,0,.12);
  cursor:pointer;
  background:#e9e9e9;
}

.story-feature--compact{
  min-height:320px;
}

.story-feature__media{
  position:absolute;
  inset:0;
}

.story-feature__thumb{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-color:#eee;
  transition:transform .6s cubic-bezier(.2,.75,.2,1);
}

.story-feature__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 360px at 20% 20%, rgba(252,175,23,.16), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.20) 58%, transparent 100%);
}

.story-feature__content{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:22px 22px 20px;
  color:#fff;
}

.story-kicker{
  display:inline-block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:500;
  color:#B00000;
}

.story-feature__content .story-kicker{
  color:#bb0000;
}

.story-feature__title{
  margin:0 0 10px;
  font-family:var(--font-serif);
  font-size:32px;
  line-height:1.05;
  font-weight:400;
  color:#fff;
}

.story-feature__desc{
  margin:0 0 12px;
  font-size:14px;
  color:rgba(255,255,255,.92);
  max-width:60ch;
}

.feature-copy{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.05);
  border-radius:22px;
  padding:24px;
  box-shadow:0 16px 38px rgba(0,0,0,.08);
  backdrop-filter:blur(10px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.feature-copy__title{
  margin:0 0 12px;
  font-family:var(--font-serif);
  color:var(--gold);
  font-size:30px;
  line-height:1.08;
  font-weight:400;
}

.feature-copy__desc{
  margin:0 0 14px;
  color:#5b5b5b;
  font-size:14px;
  line-height:1.6;
}

.feature-copy__btn{
  width:fit-content;
  margin-top:2px;
  cursor:pointer;
}

.story-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  font-size:12px;
}

.story-meta--dark{
  color:#7a7a7a;
  margin-bottom:16px;
}

/* =========================
   HIDDEN LAUNCH SLIDER
========================= */
.story-slider-shell{
  position:relative;
  margin-top:22px;
}

.story-slider-shell.is-hidden{
  display:none;
}

.story-slider-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding:4px 2px 10px;
}

.story-slider-track::-webkit-scrollbar{
  display:none;
}

.story-slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow:0 10px 20px rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.story-slider-arrow.left{ left:-16px; }
.story-slider-arrow.right{ right:-16px; }

.story-slider-arrow .material-symbols-outlined{
  font-size:22px;
  color:#b03f3f;
}

.story-mini-card{
  flex:0 0 260px;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 16px 28px rgba(0,0,0,.08);
  cursor:pointer;
}

.story-mini-card__thumb{
  width:100%;
  aspect-ratio:16 / 9;
  background-size:cover;
  background-position:center;
}

.story-mini-card__body{
  padding:14px;
}

.story-mini-card__title{
  margin:0 0 6px;
  font-size:15px;
  line-height:1.3;
  font-weight:800;
  color:#111;
}

.story-mini-card__meta{
  margin:0;
  font-size:12px;
  color:#7b7b7b;
}

/* =========================
   VISUAL GRID
========================= */
.visual-grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  margin-top:8px;
}

.visual-card{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 16px 34px rgba(0,0,0,.08);
  cursor:pointer;
  min-height:260px;
  background:#ececec;
}

.visual-card__thumb{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transition:transform .6s cubic-bezier(.2,.75,.2,1);
}

.visual-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.18), rgba(0,0,0,.02) 55%, rgba(0,0,0,.08));
  pointer-events:none;
}

/* =========================
   EDU FUND
========================= */
.edufund-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr);
  gap:22px;
  margin-top:8px;
}

.quote-strip{
  display:block;
  min-width:0;
}

.quote-slider{
  height:100%;
  min-width:0;
}

.quote-slider__viewport{
  position:relative;
  min-width:0;
}

.quote-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.05);
  border-radius:18px;
  box-shadow:0 14px 28px rgba(0,0,0,.07);
  backdrop-filter:blur(8px);
  height:360px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.quote-card[hidden]{
  display:none !important;
}

.quote-card__scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:18px 18px 10px;
  position:relative;
  z-index:1;
  scrollbar-gutter:stable;
}

.quote-card__scroll::-webkit-scrollbar{
  width:6px;
}

.quote-card__scroll::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.14);
  border-radius:999px;
}

.quote-card__scroll::-webkit-scrollbar-track{
  background:transparent;
}

.quote-card__body{
  width:100%;
  min-width:0;
}

.quote-card__quote{
  margin:0;
  font-size:14px;
  line-height:1.8;
  color:#3c3c3c;
  font-style:italic;
  white-space:normal;
  overflow-wrap:break-word;
}

.quote-card__bottom{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 18px 16px;
  border-top:1px solid rgba(0,0,0,.06);
  background:linear-gradient(to bottom, rgba(255,255,255,.97), rgba(250,250,250,.97));
  position:relative;
  z-index:3;
}

.quote-card__name{
  margin:0;
  font-size:12px;
  font-weight:800;
  color:var(--gold);
  line-height:1.4;
  flex:1 1 auto;
  min-width:0;
}

.quote-card__controls{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
  flex:0 0 auto;
  position:relative;
  z-index:4;
}

.quote-slider__count{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  color:#7a7a7a;
  letter-spacing:.08em;
  white-space:nowrap;
}

.quote-slider__divider{
  opacity:.45;
}

.quote-slider__nav{
  display:flex;
  gap:8px;
  position:relative;
  z-index:5;
}

.quote-slider__arrow{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.07);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  flex:0 0 auto;
  position:relative;
  z-index:6;
  pointer-events:auto;
}

.quote-slider__arrow .material-symbols-outlined{
  font-size:22px;
  line-height:1;
  color:#b03f3f;
}

.quote-slider__arrow:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(0,0,0,.11);
}

.quote-slider__arrow:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

/* =========================
   STORY MODAL
========================= */
.story-modal[hidden]{
  display:none;
}

.story-modal{
  position:fixed;
  inset:0;
  z-index:99999;
}

.story-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(14,24,36,.58);
  backdrop-filter:blur(6px);
}

.story-modal__panel{
  position:relative;
  z-index:2;
  width:min(760px, calc(100% - 32px));
  max-height:88vh;
  overflow-y:auto;
  margin:5vh auto 0;
  background:rgba(255,252,247,.98);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.22);
  padding:20px;
}

.story-modal__close{
  position:absolute;
  top:14px;
  right:16px;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:rgb(255 255 255 / 56%);
  color:#2d2d2d;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
}

.story-modal__close .material-symbols-outlined{
  font-size:22px;
  line-height:1;
}

.story-modal__media{
  overflow:hidden;
  border-radius:18px;
  margin-bottom:20px;
  background:#f3efe8;
  display:flex;
  align-items:center;
  justify-content:center;
}

.story-modal__media img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

.story-modal__content{
  display:block;
}

#storyModalCategory{
  display:block;
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#da2128;
}

#storyModalTitle{
  margin:0 0 12px;
  font-family:var(--font-serif);
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.1;
  color:#1f2d3d;
  font-weight:400;
}

#storyModalMeta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  margin:0 0 14px;
  font-size:12px;
  color:#7a7a7a;
}

#storyModalExcerpt{
  margin:0;
  font-size:17px;
  line-height:1.65;
  color:#4c5661;
}

#storyModalExcerpt p{
  margin:0 0 14px;
}

.story-modal__gallery{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
}

.story-modal__gallery:empty{
  display:none;
}

.story-modal__gallery-img{
  width:100%;
  border-radius:12px;
  object-fit:cover;
  aspect-ratio:4 / 3;
  display:block;
  background:#f3efe8;
}

.story-modal__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

#storyModalLink{
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  background:#ffffff;
  color:#1f2d3d;
  border:1px solid rgba(31,45,61,.14);
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

#storyModalLink:hover{
  transform:translateY(-1px);
}

/* Award-winning visuals only */
.story-modal.modal-visual .story-modal__panel{
  width:min(860px, calc(100% - 32px));
}

.story-modal.modal-visual .story-modal__media{
  min-height:500px;
  max-height:100vh;
  padding:12px;
}

.story-modal.modal-visual .story-modal__media img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:calc(100vh - 24px) !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
}

@media (max-width:640px){
  .story-modal__panel{
    width:calc(100% - 20px);
    margin-top:3vh;
    padding:18px;
    border-radius:20px;
    max-height:90vh;
  }

  #storyModalTitle{
    font-size:28px;
  }

  #storyModalExcerpt{
    font-size:15px;
  }

  .story-modal__actions{
    flex-direction:column;
  }

  #storyModalLink{
    width:100%;
  }

  .story-modal.modal-visual .story-modal__media{
    min-height:320px;
  }
}
/* =========================
   HOVER
========================= */
@media (hover:hover) and (pointer:fine){
  .story-feature:hover .story-feature__thumb{
    transform:scale(1.05);
  }

  .feature-copy:hover,
  .story-feature:hover,
  .visual-card:hover{
    transform:translateY(-3px);
  }

  .visual-card:hover .visual-card__thumb{
    transform:scale(1.05);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:1020px){
  .feature-split,
  .edufund-layout{
    grid-template-columns:1fr;
  }

  .visual-grid-3{
    grid-template-columns:1fr;
  }

  .story-slider-arrow{
    display:none;
  }

  .defining-panels{
    max-width:100%;
  }
}

@media (max-width:640px){
  .defining{
    padding:72px 0;
  }

  .defining-tabs{
    display:none;
  }

  .defining-mobile-nav{
    display:grid;
    grid-template-columns:44px minmax(0, 1fr) 44px;
    gap:10px;
    align-items:center;
    max-width:100%;
    margin:0 auto 18px;
  }

  .defining-mobile-arrow{
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.08);
    background:rgba(255,255,255,.92);
    box-shadow:0 10px 20px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
  }

  .defining-mobile-arrow .material-symbols-outlined{
    font-size:22px;
    color:#b03f3f;
    line-height:1;
  }

  .defining-mobile-select{
    width:100%;
    min-height:44px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.08);
    background:rgba(255,255,255,.92);
    color:#222;
    font-weight:800;
    font-size:12px;
    letter-spacing:.04em;
    padding:0 42px 0 16px;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
    background-image:
      linear-gradient(45deg, transparent 50%, #444 50%),
      linear-gradient(135deg, #444 50%, transparent 50%);
    background-position:
      calc(100% - 20px) calc(50% - 3px),
      calc(100% - 14px) calc(50% - 3px);
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
  }

  .defining-mobile-select:focus{
    outline:none;
    border-color:rgba(156,104,39,.28);
    box-shadow:0 0 0 3px rgba(156,104,39,.10), 0 10px 20px rgba(0,0,0,.08);
  }

  .defining-panel{
    animation:none;
  }

  .defining-panel.is-mobile-enter-forward{
    animation:definingMobileSlideInForward .28s ease;
  }

  .defining-panel.is-mobile-enter-backward{
    animation:definingMobileSlideInBackward .28s ease;
  }

  @keyframes definingMobileSlideInForward{
    from{ opacity:0; transform:translateX(18px); }
    to{ opacity:1; transform:translateX(0); }
  }

  @keyframes definingMobileSlideInBackward{
    from{ opacity:0; transform:translateX(-18px); }
    to{ opacity:1; transform:translateX(0); }
  }

  .feature-split,
  .edufund-layout{
    grid-template-columns:1fr;
    gap:16px;
  }

  .story-feature{
    min-height:auto;
    aspect-ratio:16 / 11;
  }

  .story-feature.story-feature--compact{
    aspect-ratio:16 / 11;
  }
    .story-feature__title{font-size:24px;}
  .story-feature__thumb{
    background-position:center top;
    background-size:cover;
  }

  .feature-copy{
    padding:20px;
  }

  .feature-copy__title{
    font-size:26px;
  }

  .quote-card{
    height:360px;
  }

  .quote-card__scroll{
    padding:16px 16px 8px;
  }

  .quote-card__bottom{
    padding:12px 16px 14px;
    align-items:flex-start;
    flex-direction:column;
  }

  .quote-card__controls{
    width:100%;
    justify-content:space-between;
    margin-left:0;
  }

  .story-modal__dialog{
    width:calc(100% - 20px);
    margin-top:3vh;
    padding:18px;
    border-radius:20px;
  }

  .story-modal__title{
    font-size:28px;
  }

  .story-modal__excerpt{
    font-size:15px;
  }

  .story-modal__actions{
    flex-direction:column;
  }

  .story-modal__cta,
  .story-modal__secondary{
    width:100%;
  }
}
/* =========================
   STORY MODAL
========================= */
.story-modal[hidden]{
  display:none;
}

.story-modal{
  position:fixed;
  inset:0;
  z-index:99999;
}

.story-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(14,24,36,.58);
  backdrop-filter:blur(6px);
}

.story-modal__dialog{
  position:relative;
  z-index:2;
  width:min(650px, calc(100% - 32px));
  max-height:88vh;
  overflow-y:auto;
  margin:5vh auto 0;
  background:rgba(255,252,247,.98);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.22);
  padding:24px;
}

.story-modal__close{
  position:absolute;
  top:14px;
  right:16px;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:rgb(255 255 255 / 56%);
  color:#2d2d2d;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.story-modal__media{
  overflow:hidden;
  border-radius:18px;
  margin-bottom:20px;
}

.story-modal__media img{
  width:100%;
  display:block;
  aspect-ratio:16 / 9;
  object-fit:cover;
}

.story-modal__eyebrow{
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#da2128;
}

.story-modal__title{
  margin:0 0 12px;
  font-family:var(--font-serif);
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.1;
  color:#1f2d3d;
  font-weight:400;
}

.story-modal__excerpt{
  margin:0 0 18px;
  font-size:17px;
  line-height:1.65;
  color:#4c5661;
}

.story-modal__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.story-modal__cta,
.story-modal__secondary{
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}

.story-modal__cta{
  background:#ffffff;
  color:#1f2d3d;
  border:1px solid rgba(31,45,61,.14);
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.story-modal__cta:hover{
  transform:translateY(-1px);
}

.story-modal__secondary{
  border:1px solid rgba(31,45,61,.12);
  background:transparent;
  color:#52606d;
}

/* =========================
   HOVER STATES
========================= */
@media (hover:hover) and (pointer:fine){
  .story-feature:hover .story-feature__thumb{
    transform:scale(1.05);
  }

  .feature-copy:hover,
  .story-feature:hover,
  .visual-card:hover,
  .quote-card:hover{
    transform:translateY(-3px);
  }

  .visual-card:hover .visual-card__thumb{
    transform:scale(1.05);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:1020px){
  .feature-split,
  .edufund-layout{
    grid-template-columns:1fr;
  }

  .visual-grid-3{
    grid-template-columns:1fr;
  }

  .story-slider-arrow{
    display:none;
  }

  .defining-panels{
    max-width:100%;
  }
}

@media (max-width:640px){
  .defining{
    padding:72px 0;
  }

  .defining-tabs{
    display:none;
  }

  .defining-mobile-nav{
    display:grid;
    grid-template-columns:44px minmax(0, 1fr) 44px;
    gap:10px;
    align-items:center;
    max-width:100%;
    margin:0 auto 18px;
  }

  .defining-mobile-arrow{
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.08);
    background:rgba(255,255,255,.92);
    box-shadow:0 10px 20px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
  }

  .defining-mobile-arrow .material-symbols-outlined{
    font-size:22px;
    color:#b03f3f;
    line-height:1;
  }

  .defining-mobile-select{
    width:100%;
    min-height:44px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.08);
    background:rgba(255,255,255,.92);
    color:#222;
    font-weight:800;
    font-size:12px;
    letter-spacing:.04em;
    padding:0 42px 0 16px;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
    background-image:
      linear-gradient(45deg, transparent 50%, #444 50%),
      linear-gradient(135deg, #444 50%, transparent 50%);
    background-position:
      calc(100% - 20px) calc(50% - 3px),
      calc(100% - 14px) calc(50% - 3px);
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
  }

  .defining-mobile-select:focus{
    outline:none;
    border-color:rgba(156,104,39,.28);
    box-shadow:0 0 0 3px rgba(156,104,39,.10), 0 10px 20px rgba(0,0,0,.08);
  }

  .defining-panel{
    animation:none;
  }


  .defining-panel.is-mobile-enter-forward{
    animation:definingMobileSlideInForward .28s ease;
  }

  .defining-panel.is-mobile-enter-backward{
    animation:definingMobileSlideInBackward .28s ease;
  }

  @keyframes definingMobileSlideInForward{
    from{
      opacity:0;
      transform:translateX(18px);
    }
    to{
      opacity:1;
      transform:translateX(0);
    }
  }

  @keyframes definingMobileSlideInBackward{
    from{
      opacity:0;
      transform:translateX(-18px);
    }
    to{
      opacity:1;
      transform:translateX(0);
    }
  }

  .feature-split,
  .edufund-layout{
    grid-template-columns:1fr;
    gap:16px;
  }

  .story-feature{
    min-height:auto;
    aspect-ratio:16 / 11;
  }

  .story-feature.story-feature--compact{
    aspect-ratio:16 / 11;
  }

  .story-feature__thumb{
    background-position:center top;
    background-size:cover;
  }

  .feature-copy{
    padding:20px;
  }

  .feature-copy__title{
    font-size:26px;
  }

  .story-modal__dialog{
    width:calc(100% - 20px);
    margin-top:3vh;
    padding:18px;
    border-radius:20px;
  }

  .story-modal__title{
    font-size:28px;
  }

  .story-modal__excerpt{
    font-size:15px;
  }

  .story-modal__actions{
    flex-direction:column;
  }

  .story-modal__cta,
  .story-modal__secondary{
    width:100%;
  }
}
/* =========================
   ENDING ILLUSTRATION STRIP
========================= */
.ending-illustration{
  position: relative;
  width: 100%;
  margin-top: -80px;  /* overlap with milestones */
  z-index: 1;
  pointer-events: none;
}

.ending-illustration__img{
.ending-illustration__img{
  width: 100%;
  height: auto;        /* prevent crop */
  display: block;
  object-fit: contain; /* extra safety */
}

.ending-illustration::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(0,0,0,.25));
  pointer-events:none;
}
    
    