/* Homepage (app/Views/pages/index.php) */
.home section { padding: 4rem 0; }

/* hero carousel */
.home-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); padding: 0 0 3.5rem; position: relative; }
.home-hero .carousel-item img { width: 100%; height: auto; aspect-ratio: 1174 / 350; object-fit: cover; }
.home-hero .carousel-caption { left: 0; right: 0; bottom: 0; text-align: left; background: linear-gradient(transparent, rgba(5, 15, 40, .85)); font-weight: 600;
  padding: 3rem max(1rem, calc((100vw - 1320px) / 2 + .75rem)) 1.25rem; }
.home-hero .carousel-caption a { color: #ffd27a; white-space: nowrap; }
/* dots: centred along the bottom edge of the slider, under the caption text (the "What's new" bar covers the band below) */
.home-hero .carousel-caption { padding-bottom: 2.2rem; }
.home-hero .carousel-indicators { bottom: .6rem; margin: 0 1rem; flex-wrap: wrap; gap: .4rem; z-index: 3; }
.home-hero .carousel-indicators [data-bs-target] { width: .6rem; height: .6rem; margin: 0; border: 0; border-radius: 50%; background-color: #fff; opacity: .35;
  transition: opacity .3s, width .3s; }
.home-hero .carousel-indicators .active { width: 1.6rem; border-radius: 999px; opacity: 1; background-color: #ffd27a; }
@media (max-width: 575.98px) {
  .home-hero .carousel-caption { position: static; background: var(--navy); font-size: .85rem; padding: .75rem 1rem 1.9rem; }
  .home-hero .carousel-indicators { gap: .3rem; bottom: .55rem; }
  .home-hero .carousel-indicators [data-bs-target] { width: .5rem; height: .5rem; }
  .home-hero .carousel-indicators .active { width: 1.2rem; }
}

/* ticker */
.ticker-wrap { margin-top: -2.75rem; position: relative; z-index: 2; }
.ticker { background: #fff; border-radius: 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; padding: .6rem .6rem .6rem 1.1rem; }
.ticker .label { font-weight: 700; color: var(--orange); white-space: nowrap; font-size: .9rem; }
.ticker .track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .rail { display: flex; gap: 2.25rem; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .rail { animation-play-state: paused; }
.ticker .rail a { white-space: nowrap; color: var(--navy); font-weight: 600; text-decoration: none; font-size: .92rem; }
.ticker .rail a:hover { color: var(--orange); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .rail { animation: none; flex-wrap: wrap; width: auto; } .ticker .rail [aria-hidden] { display: none; } }

/* about */
.about-img { border-radius: 1.25rem; box-shadow: var(--shadow); }

/* programs */
.prog { border: 0; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: transform .25s, box-shadow .25s; }
.prog:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog img { aspect-ratio: 297 / 149; object-fit: cover; width: 100%; }
.prog .card-title { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.prog .card-text { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.prog .stretched-link { font-weight: 600; text-decoration: none; }

.banner-link img { border-radius: 1.25rem; box-shadow: var(--shadow); transition: transform .3s; }
.banner-link:hover img { transform: scale(1.01); }

/* quick actions */
.action { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 1.25rem; padding: 1.25rem; box-shadow: var(--shadow); height: 100%; text-decoration: none; color: var(--ink); transition: transform .2s; }
.action:hover { transform: translateY(-4px); color: var(--ink); }
.action .ico { width: 52px; height: 52px; border-radius: 1rem; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.action h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.action p { margin: 0; font-size: .9rem; color: var(--muted); }

.feature-img { border-radius: 1rem; box-shadow: var(--shadow); }

/* YSP */
.ysp { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 1.5rem; }
.ysp li { margin-bottom: .6rem; color: rgba(255,255,255,.88); }
.ysp li::marker { color: var(--amber); }
.ysp a { color: #ffd27a; }
.donate-box { background: linear-gradient(135deg, var(--orange), #ff8a3d 60%, var(--amber)); color: #fff; border-radius: 1.5rem; }

/* About section: ATL card fills the full height of the TEDx + STEM column beside it */
.atl-card { position: relative; display: block; height: 100%; min-height: 320px; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.atl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s; }
.atl-card:hover img { transform: scale(1.04); }
.atl-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .5rem;
  padding: 3.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(11, 31, 77, .92) 45%); color: #fff; }
.atl-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.atl-cta { align-self: flex-start; background: #fff; color: var(--navy); font-weight: 600; font-size: .85rem; padding: .35rem .9rem; border-radius: 999px; transition: background .2s, color .2s; }
.atl-card:hover .atl-cta { background: var(--orange); color: #fff; }

/* Latest News as the third card beside Student Resources / More About: same height, images side by side */
.home-news .block-card { height: 100%; }
.home-news .card-body .row > div { flex: 0 0 50%; max-width: 50%; }

/* Programs ("Igniting young minds, hands on") – soft warm band so the section stands apart */
.home .programs-band { padding: 3.5rem 0; margin-bottom: 2.5rem;
  background: radial-gradient(circle at 10% 0%, rgba(255, 176, 32, .12), transparent 40%),
              radial-gradient(circle at 95% 100%, rgba(37, 99, 235, .08), transparent 45%),
              linear-gradient(180deg, #fff8ef 0%, #fdf6ff 100%); }
