/* ==========================================================================
   Darul Amin — home pages v2  (main site + every branch)
   Colours come from the site's design layer (--da-green / --da-gold), so the
   live designer's colour choices still apply.
   ========================================================================== */
:root {
  --h2-ink: #12261b;
  --h2-soft: #f5f1e6;
  --h2-line: rgba(11, 93, 59, .14);
  --h2-radius: 22px;
  --h2-shadow: 0 18px 50px -18px rgba(7, 61, 39, .35);
  --h2-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'><path d='M40 4 L52 28 L76 40 L52 52 L40 76 L28 52 L4 40 L28 28 Z'/><circle cx='40' cy='40' r='9'/></g></svg>");
}
.home-flow { display: flex; flex-direction: column; }
.home-flow > section, .home-flow > div { width: 100%; }
.h2-sec { padding: 84px 0; position: relative; }
.h2-sec.alt { background: var(--h2-soft); }
.h2-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--da-gold); background: rgba(201, 162, 39, .12); padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
.h2-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--da-gold); }
.h2-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--da-green-dark, #073d27); line-height: 1.25; margin: 0 0 12px; }
.h2-sub { color: var(--da-muted, #5c6b62); max-width: 640px; }
.h2-head { text-align: center; margin: 0 auto 46px; }
.h2-head .h2-sub { margin: 0 auto; }
.h2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 99px; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.h2-btn:hover { transform: translateY(-3px); }
.h2-btn.gold { background: linear-gradient(135deg, var(--da-gold-light, #e4c873), var(--da-gold)); color: #2b2100; box-shadow: 0 10px 24px -8px rgba(201, 162, 39, .7); }
.h2-btn.green { background: var(--da-green); color: #fff; box-shadow: 0 10px 24px -10px rgba(7, 61, 39, .7); }
.h2-btn.ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.h2-btn.ghost:hover { background: #fff; color: var(--da-green-dark); }
.h2-btn.line { border-color: var(--da-green); color: var(--da-green); }
.h2-btn.line:hover { background: var(--da-green); color: #fff; }

/* ------------------------------------------------------------------ HERO */
.h2-hero { position: relative; min-height: clamp(520px, 82vh, 780px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(201, 162, 39, .28), transparent 60%), linear-gradient(135deg, var(--da-green-darker, #052a1b), var(--da-green-dark, #073d27) 55%, var(--da-green)); }
.h2-hero-bg { position: absolute; inset: 0; z-index: -3; }
.h2-hero-bg .carousel, .h2-hero-bg .carousel-inner, .h2-hero-bg .carousel-item { height: 100%; }
.h2-hero-bg img, .h2-hero-bg .bgimg { width: 100%; height: 100%; object-fit: cover; display: block; background-size: cover; background-position: center; transform: scale(1.04); }
.h2-hero-bg .carousel-item.active img { animation: h2zoom 9s ease-out both; }
@keyframes h2zoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.h2-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(5, 42, 27, .92) 0%, rgba(5, 42, 27, .72) 48%, rgba(5, 42, 27, .25) 100%); }
.h2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--h2-pattern); opacity: .9; pointer-events: none; }
.h2-hero.no-media::before { background: none; }
.h2-hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.h2-hero .wave svg { width: 100%; height: 70px; display: block; }
.h2-hero-in { padding: 80px 0 110px; }
.h2-hero h1 { font-size: clamp(2rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.18; margin: 0 0 18px; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.h2-hero h1 em { font-style: normal; color: var(--da-gold-light, #e4c873); }
.h2-hero .lead { font-size: clamp(1rem, 1.6vw, 1.25rem); opacity: .93; max-width: 620px; margin-bottom: 30px; }
.h2-hero .pill { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 8px 18px; border-radius: 99px; font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(6px); }
.h2-hero .pill i { color: var(--da-gold-light); }
.h2-hero-card { position: relative; border-radius: 28px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .85); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); transform: rotate(2deg); }
.h2-hero-card img { width: 100%; display: block; aspect-ratio: 4/4.4; object-fit: cover; }
.h2-hero-card.logo { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); padding: 34px; transform: none; }
.h2-hero-card.logo img { aspect-ratio: auto; object-fit: contain; max-height: 280px; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .4)); }
.h2-hero .carousel-indicators { z-index: 4; margin-bottom: 38px; }
.h2-hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; }

/* ------------------------------------------------------------------ STATS */
.h2-stats { position: relative; z-index: 5; margin-top: -64px; }
.h2-stats .box { background: #fff; border-radius: var(--h2-radius); box-shadow: var(--h2-shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: hidden; border: 1px solid var(--h2-line); }
.h2-stat { padding: 26px 18px; text-align: center; position: relative; }
.h2-stat + .h2-stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--h2-line); }
.h2-stat .ic { width: 50px; height: 50px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 15px; background: rgba(11, 93, 59, .09); color: var(--da-green); font-size: 1.4rem; }
.h2-stat .num { font-size: 2rem; font-weight: 800; color: var(--da-green-dark); line-height: 1.1; }
.h2-stat .lbl { color: var(--da-muted); font-size: .9rem; }

/* ------------------------------------------------------------------ ABOUT */
.h2-about-media { position: relative; padding: 0 28px 38px 0; }
.h2-about-media .main { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; border-radius: 28px 28px 120px 28px; box-shadow: var(--h2-shadow); display: block; background: linear-gradient(135deg, var(--da-green), var(--da-green-dark)); }
.h2-about-media .main.ph { display: grid; place-items: center; }
.h2-about-media .main.ph img { width: 55%; object-fit: contain; aspect-ratio: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
.h2-about-media .small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 8px solid #fff; box-shadow: var(--h2-shadow); }
.h2-about-media::before { content: ""; position: absolute; left: -14px; top: -14px; width: 40%; aspect-ratio: 1; border-radius: 26px; border: 3px solid var(--da-gold); opacity: .55; z-index: -1; }
.h2-about-stats { display: flex; gap: 26px; margin: 26px 0 30px; flex-wrap: wrap; }
.h2-about-stats .s { border-left: 4px solid var(--da-gold); padding-left: 14px; }
.h2-about-stats .s b { display: block; font-size: 1.9rem; color: var(--da-green); line-height: 1.1; }
.h2-about-text { white-space: pre-line; color: #3b4a41; font-size: 1.05rem; line-height: 1.9; }

/* ------------------------------------------------------------- FACILITIES */
.h2-fac { background: linear-gradient(135deg, var(--da-green-darker, #052a1b), var(--da-green-dark, #073d27)); color: #fff; overflow: hidden; }
.h2-fac::before { content: ""; position: absolute; inset: 0; background-image: var(--h2-pattern); opacity: .8; }
.h2-fac .container { position: relative; }
.h2-fac .h2-title { color: #fff; } .h2-fac .h2-sub { color: rgba(255, 255, 255, .78); }
.h2-fac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.h2-fac-item { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: transform .3s, background .3s, border-color .3s; backdrop-filter: blur(4px); }
.h2-fac-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .13); border-color: var(--da-gold); }
.h2-fac-item .ic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--da-gold-light, #e4c873), var(--da-gold)); color: #2b2100; }
.h2-fac-item b { font-size: 1.05rem; line-height: 1.4; }
.h2-fac-side { border-radius: 26px; overflow: hidden; box-shadow: 0 25px 60px -20px rgba(0, 0, 0, .6); border: 5px solid rgba(255, 255, 255, .2); }
.h2-fac-side img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }

/* ------------------------------------------------------- NOTICE + QUICK */
.h2-notice { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--h2-line); border-radius: 16px; margin-bottom: 12px; text-decoration: none !important; color: inherit; transition: transform .25s, box-shadow .25s; }
.h2-notice:hover { transform: translateX(6px); box-shadow: var(--h2-shadow); }
.h2-notice .d { flex: 0 0 62px; text-align: center; border-radius: 14px; background: var(--da-green); color: #fff; padding: 8px 4px; line-height: 1.15; }
.h2-notice .d b { display: block; font-size: 1.4rem; } .h2-notice .d span { font-size: .72rem; opacity: .85; }
.h2-notice .t { font-weight: 700; color: var(--h2-ink); }
.h2-notice .br { font-size: .75rem; background: var(--da-gold); color: #2b2100; padding: 2px 10px; border-radius: 99px; font-weight: 700; margin-right: 6px; }
.h2-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.h2-quick a { background: #fff; border: 1px solid var(--h2-line); border-radius: 18px; padding: 22px 12px; text-align: center; text-decoration: none !important; color: var(--h2-ink); font-weight: 700; transition: all .3s; }
.h2-quick a i { display: block; font-size: 2rem; color: var(--da-green); margin-bottom: 8px; transition: transform .3s; }
.h2-quick a:hover { background: var(--da-green); color: #fff; transform: translateY(-5px); box-shadow: var(--h2-shadow); }
.h2-quick a:hover i { color: var(--da-gold-light); transform: scale(1.15); }

/* ------------------------------------------------------------------- WHY */
.h2-why-card { display: flex; gap: 18px; padding: 24px; background: #fff; border-radius: 20px; border: 1px solid var(--h2-line); margin-bottom: 16px; transition: all .3s; }
.h2-why-card:hover { transform: translateX(8px); box-shadow: var(--h2-shadow); border-color: var(--da-gold); }
.h2-why-card .n { flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--da-green); color: var(--da-gold-light); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.h2-why-card h5 { font-weight: 800; color: var(--da-green-dark); margin-bottom: 6px; }
.h2-why-card p { margin: 0; color: #4a5a50; }
.h2-why-media img { width: 100%; border-radius: 120px 28px 28px 28px; aspect-ratio: 4/4.6; object-fit: cover; box-shadow: var(--h2-shadow); display: block; }

/* -------------------------------------------------------------- PROGRAMS */
.h2-prog { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 3/3.7; color: #fff; text-decoration: none !important; box-shadow: var(--h2-shadow); background: linear-gradient(160deg, var(--da-green), var(--da-green-darker)); }
.h2-prog img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.h2-prog:hover img { transform: scale(1.1); }
.h2-prog::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 42, 27, .94) 8%, rgba(5, 42, 27, .1) 65%); }
.h2-prog .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; }
.h2-prog .no { position: absolute; top: 14px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--da-gold); color: #2b2100; font-weight: 800; }
.h2-prog h5 { font-weight: 800; margin: 0 0 4px; } .h2-prog small { opacity: .85; }

/* ------------------------------------------------------- PEOPLE (mgmt etc) */
.h2-person { text-align: center; }
.h2-person .ph { position: relative; width: 100%; aspect-ratio: 1/1.1; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #e8efe9, #cfdcd2); box-shadow: var(--h2-shadow); }
.h2-person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.h2-person:hover .ph img { transform: scale(1.07); }
.h2-person .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--da-gold), var(--da-gold-light)); }
.h2-person .ph .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--da-green); opacity: .5; }
.h2-person h5 { margin: 16px 0 2px; font-weight: 800; color: var(--da-green-dark); }
.h2-person .role { color: var(--da-gold); font-weight: 700; font-size: .92rem; }
.h2-person small { color: var(--da-muted); display: block; }

/* ---------------------------------------------------------- TESTIMONIALS */
.h2-tes { background: linear-gradient(180deg, #fff, var(--h2-soft)); }
.h2-tes-card { background: #fff; border-radius: 24px; padding: 30px 26px; border: 1px solid var(--h2-line); height: 100%; position: relative; box-shadow: var(--h2-shadow); }
.h2-tes-card::before { content: "“"; position: absolute; top: 6px; right: 22px; font-size: 5.5rem; line-height: 1; color: var(--da-gold); opacity: .3; font-family: Georgia, serif; }
.h2-tes-card p { color: #3b4a41; line-height: 1.85; position: relative; }
.h2-tes-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.h2-tes-card .who img, .h2-tes-card .who .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--da-gold); background: #e8efe9; display: grid; place-items: center; color: var(--da-green); }

/* ----------------------------------------------------------------- VIDEO */
.h2-video { background: var(--da-green-darker, #052a1b); color: #fff; overflow: hidden; }
.h2-video::before { content: ""; position: absolute; inset: 0; background-image: var(--h2-pattern); }
.h2-video .container { position: relative; }
.h2-video .frame { border-radius: 26px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .15); box-shadow: 0 30px 70px -20px #000; position: relative; background: #000; }
.h2-video .poster { position: absolute; inset: 0; background-size: cover; background-position: center; display: grid; place-items: center; cursor: pointer; }
.h2-video .poster::before { content: ""; position: absolute; inset: 0; background: rgba(5, 42, 27, .45); }
.h2-video .play { position: relative; width: 86px; height: 86px; border-radius: 50%; background: var(--da-gold); color: #2b2100; display: grid; place-items: center; font-size: 2.4rem; animation: h2pulse 2s infinite; }
@keyframes h2pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .6); } 70% { box-shadow: 0 0 0 26px rgba(201, 162, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); } }

/* --------------------------------------------------------------- GALLERY */
.h2-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.h2-gal a { position: relative; overflow: hidden; border-radius: 18px; display: block; background: #dde7e0; }
.h2-gal a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.h2-gal a:nth-child(4) { grid-row: span 2; }
.h2-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.h2-gal a:hover img { transform: scale(1.12); }
.h2-gal a::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; background: rgba(5, 42, 27, .55); opacity: 0; transition: opacity .3s; }
.h2-gal a:hover::after { opacity: 1; }
@media (max-width: 767px) { .h2-gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .h2-gal a:nth-child(1) { grid-column: span 2; } }

/* ------------------------------------------------------------------- CTA */
.h2-cta { position: relative; padding: 80px 0; color: #fff; text-align: center; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--da-green-dark), var(--da-green)); }
.h2-cta .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.h2-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(5, 42, 27, .9), rgba(11, 93, 59, .78)); }
.h2-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--h2-pattern); }
.h2-cta h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 820px; margin: 0 auto 12px; }
.h2-cta p { opacity: .9; margin-bottom: 26px; }

/* -------------------------------------------------- branch cards (main) */
.h2-branch { display: block; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--h2-line); text-decoration: none !important; color: inherit; height: 100%; transition: transform .35s, box-shadow .35s; box-shadow: 0 6px 20px -12px rgba(7, 61, 39, .3); }
.h2-branch:hover { transform: translateY(-8px); box-shadow: var(--h2-shadow); }
.h2-branch .top { height: 120px; position: relative; display: grid; place-items: center; color: var(--da-gold-light); font-size: 2.6rem; background: linear-gradient(135deg, var(--da-green-dark), var(--da-green)); overflow: hidden; }
.h2-branch .top::before { content: ""; position: absolute; inset: 0; background-image: var(--h2-pattern); }
.h2-branch .top i { position: relative; }
.h2-branch .bd { padding: 22px; text-align: center; }
.h2-branch h5 { font-weight: 800; color: var(--da-green-dark); }
.h2-branch .cnt { display: flex; justify-content: center; gap: 18px; color: var(--da-muted); font-size: .9rem; margin: 6px 0 16px; }

/* reveal: the site-wide animations.js already fades rows/cards in, so .h2-rev needs no rules of its own */
.h2-hero h1, .h2-hero .lead, .h2-hero .pill, .h2-cta h2, .h2-cta p, .h2-video h2, .h2-fac h2 { color: #fff; }
.h2-fac .h2-fac-item b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .h2-hero-bg .carousel-item.active img, .h2-video .play { animation: none; } }
@media (max-width: 991px) { .h2-sec { padding: 60px 0; } .h2-hero-in { padding: 60px 0 100px; } .h2-about-media { margin-bottom: 20px; } }

/* ---------- global polish for public header / footer (all public pages) ---------- */
.topbar { background: linear-gradient(90deg, var(--da-green-darker, #052a1b), var(--da-green-dark, #073d27)) !important; font-size: .86rem; }
.navbar-da { backdrop-filter: blur(10px); box-shadow: 0 8px 30px -18px rgba(7, 61, 39, .55); }
.navbar-da .nav-link { border-radius: 99px; padding: .5rem 1rem !important; transition: background .25s, color .25s; }
.navbar-da .nav-link:hover, .navbar-da .nav-link.active { background: rgba(255, 255, 255, .16); }
.footer-da { position: relative; overflow: hidden; }
.footer-da::before { content: ""; position: absolute; inset: 0; background-image: var(--h2-pattern); pointer-events: none; }
.footer-da .container { position: relative; }

/* mobile: Bootstrap's g-5 gutter is wider than the container padding and caused sideways scrolling */
.home-flow { overflow-x: clip; }
@media (max-width: 991px) { .h2-sec .row.g-5, .h2-hero-in.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; } }
