/* =====================================================================
   APPPMA — homepage design 2 (index2.aspx)
   Loaded after apppma.css; every colour comes from the theme variables,
   so the four themes and dark mode work here too.
   ===================================================================== */

body.home2 { --h2-ink: var(--green-900); --font-serif: "Playfair Display", Georgia, serif; --font-pop: "Poppins", var(--font-head); background: var(--green-50); }
body.home2 #slider { display: none !important; }

/* Shared bits */
.h2-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px;
  background: var(--green-800); color: #FFFFFF !important; border-radius: 4px; text-decoration: none;
  font: 600 16.5px/1.2 var(--font-pop); transition: background .2s, transform .2s;
}
.h2-btn:hover { background: var(--green-900); transform: translateY(-1px); }
.h2-section { padding: 96px 0; }
.h2-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.h2-head h2 { font: 700 clamp(32px, 4.2vw, 50px)/1.15 var(--font-pop); color: var(--h2-ink); margin: 18px 0 14px; letter-spacing: -.01em; }
.h2-head p { margin: 0; font-size: 17.5px; font-weight: 600; color: color-mix(in srgb, var(--green-700) 70%, var(--muted)); line-height: 1.65; }
.h2-scribble { position: relative; display: inline-block; font: 500 18px/1 var(--font-head); text-transform: uppercase; color: var(--green-800); letter-spacing: .02em; padding-bottom: 10px; }
.h2-scribble::after {
  content: ""; position: absolute; left: 4%; right: 2%; bottom: -2px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 50 2, 120 2, 198 8' fill='none' stroke='%2300C853' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Header ---------- */
.h2-header { border-top: 8px solid var(--green-800); background: var(--surface); }
.h2-header-row { display: flex; align-items: center; gap: 24px; min-height: 142px; padding: 0 32px; max-width: 1920px; margin: 0 auto; }
.h2-header .brand img { width: 92px; }
.h2-header .brand-name { font-size: 24px; }
.h2-header .main-nav { margin-left: 24px; }
.h2-header .nav-list > li > a, .h2-header .nav-list > li > button { font: 500 17px/1 var(--font-head); color: var(--ink); white-space: nowrap; }
.h2-cta .h2-btn { white-space: nowrap; }
@media (max-width: 1560px) and (min-width: 1081px) { .h2-header .brand-sub { display: none; } .h2-header .main-nav { margin-left: 8px; } .h2-header .nav-list > li > a, .h2-header .nav-list > li > button { padding: 10px 11px; font-size: 16px; } .h2-cta { gap: 12px; } }
.h2-cta { margin-left: auto; display: flex; gap: 18px; }
@media (max-width: 1500px) { .h2-cta .h2-btn:first-child { display: none; } }
@media (max-width: 1080px) {
  .h2-header-row { min-height: 84px; padding: 0 20px; }
  .h2-header .brand img { width: 66px; }
  .h2-cta { display: none; }
  .h2-header .nav-toggle { margin-left: auto; }
}
@media (max-width: 560px) { .h2-header .brand-sub { display: none; } }

/* ---------- Hero slider ---------- */
.h2-hero { position: relative; height: clamp(520px, 72vh, 700px); overflow: hidden; background: var(--green-950); color: #FFFFFF; }
.h2-slides, .h2-slide { position: absolute; inset: 0; }
.h2-slide { opacity: 0; transition: opacity 1.1s ease; }
.h2-slide.is-active { opacity: 1; }
.h2-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease; }
.h2-slide.is-active img { transform: scale(1); }
.h2-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in srgb, var(--green-950) 82%, transparent) 0%, color-mix(in srgb, var(--green-950) 45%, transparent) 55%, color-mix(in srgb, var(--green-950) 15%, transparent) 100%),
  linear-gradient(0deg, color-mix(in srgb, var(--green-950) 55%, transparent), transparent 45%); }
.h2-scroll { position: absolute; left: 70px; top: 300px; bottom: 76px; width: 1px; background: rgba(255,255,255,.55); z-index: 2; }
.h2-scroll span { position: absolute; left: -9px; top: -10px; transform: translateY(-100%) rotate(180deg); writing-mode: vertical-rl; font: 500 13px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.h2-hero-copy { position: absolute; left: 250px; right: 40px; top: 30%; z-index: 2; max-width: 980px; }
.h2-eyebrow { display: block; font: 500 17px/1.4 var(--font-head); letter-spacing: .26em; text-transform: uppercase; color: color-mix(in srgb, var(--green-600) 55%, #FFFFFF); margin-bottom: 26px; }
.h2-hero-copy h1 { font: 500 clamp(36px, 4.6vw, 64px)/1.12 var(--font-serif); color: #FFFFFF; margin: 0; letter-spacing: 0; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.h2-band {
  position: absolute; left: 0; bottom: 0; z-index: 3; width: min(1168px, 61%); min-height: 200px;
  display: flex; align-items: center; gap: 44px; padding: 28px 40px 28px 250px; background: var(--green-800);
}
.h2-num { font: 500 clamp(56px, 6vw, 92px)/1 var(--font-serif); color: color-mix(in srgb, var(--green-600) 60%, #9CF0B8); min-width: 2.2ch; }
.h2-band p { margin: 0; font: 400 19px/1.55 var(--font-head); color: #E4EFE8; max-width: 560px; }
.h2-arrows { position: absolute; bottom: 0; left: min(1168px, 61%); z-index: 3; display: flex; flex-direction: column; }
.h2-arrows button { width: 100px; height: 100px; border: 0; cursor: pointer; display: grid; place-items: center; color: #FFFFFF; background: #36424A; transition: background .2s; }
.h2-arrows button + button { background: #2B353C; }
.h2-arrows button:hover { background: var(--green-700); }
.h2-arrows .icon { width: 18px; height: 18px; }
.h2-count { position: absolute; right: 40px; bottom: 76px; z-index: 3; display: flex; align-items: center; gap: 40px; }
.h2-count svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.h2-count circle { fill: none; stroke-width: 2; }
.h2-count .trk { stroke: rgba(255,255,255,.25); }
.h2-count .run { stroke: rgba(255,255,255,.9); stroke-dasharray: 94.3; stroke-dashoffset: 94.3; }
.h2-count .run.run { animation: h2ring 6s linear forwards; }
@keyframes h2ring { to { stroke-dashoffset: 0; } }
.h2-count span { font: 500 40px/1 var(--font-serif); color: rgba(255,255,255,.88); }
@media (max-width: 1100px) {
  .h2-hero-copy { left: 120px; top: 24%; }
  .h2-band { width: calc(100% - 100px); padding-left: 120px; }
  .h2-arrows { left: auto; right: 0; }
  .h2-count { display: none; }
}
@media (max-width: 700px) {
  .h2-hero { height: 600px; }
  .h2-scroll { display: none; }
  .h2-hero-copy { left: 20px; right: 20px; top: 70px; }
  .h2-eyebrow { font-size: 13px; letter-spacing: .18em; margin-bottom: 16px; }
  .h2-band { width: calc(100% - 64px); min-height: 150px; padding: 20px; gap: 18px; }
  .h2-band p { font-size: 15.5px; }
  .h2-arrows button { width: 64px; height: 75px; }
}

/* ---------- About ---------- */
.h2-about { background: var(--green-50); }
.h2-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; max-width: 1320px; }
.h2-about-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, var(--green-100), var(--surface)); display: grid; place-items: center;
}
.h2-about-photo #aboutPhoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.h2-about-photo .h2-about-mark { width: 46%; opacity: .5; }
.h2-about-photo.has-photo .h2-about-mark { display: none; }
.h2-about-photo figcaption { position: absolute; left: 20px; bottom: 20px; padding: 12px 18px; border-radius: 8px; background: color-mix(in srgb, var(--green-950) 78%, transparent); color: #E4EFE8; font-size: 14px; backdrop-filter: blur(4px); }
.h2-about-photo figcaption:empty { display: none; }
.h2-about-photo figcaption strong { display: block; color: #FFFFFF; font: 600 17px/1.3 var(--font-pop); }
.h2-tag { display: inline-block; padding: 10px 26px; border: 2px solid var(--ink); font: 700 21px/1 var(--font-head); text-transform: uppercase; color: var(--ink); letter-spacing: .01em; }
.h2-about-copy h2 { font: 700 clamp(30px, 3.2vw, 42px)/1.2 var(--font-head); color: var(--ink); margin: 24px 0 20px; letter-spacing: -.01em; }
.h2-lead { font-size: 18.5px; line-height: 1.7; color: var(--muted); margin: 0 0 36px; }
.h2-feature { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; margin-bottom: 30px; }
.h2-feature h3 { font: 600 clamp(22px, 2.3vw, 32px)/1.25 var(--font-pop); color: var(--ink); margin: 6px 0 12px; text-align: center; }
.h2-feature p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.h2-feature-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); color: #FFFFFF; flex: none; }
.h2-feature-ico .icon { width: 34px; height: 34px; }
@media (max-width: 960px) { .h2-about-grid { grid-template-columns: 1fr; gap: 40px; } .h2-about-photo { max-width: 520px; } .h2-feature h3 { text-align: left; } }

/* ---------- Key facts ---------- */
.h2-facts { background: var(--green-50); padding-top: 40px; }
.h2-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; max-width: 1400px; margin: 0 auto; }
.h2-fact {
  background: var(--surface); padding: 72px 20px 64px; text-align: center; position: relative;
  box-shadow: 0 24px 40px -22px color-mix(in srgb, var(--green-950) 30%, transparent);
  border-bottom: 6px solid var(--green-800); margin-bottom: 8px;
}
.h2-fact::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 6px; background: var(--green-800); }
.h2-fact { border-bottom: 0; }
.h2-fact .n { font: 700 clamp(42px, 4vw, 60px)/1 var(--font-pop); color: #333; letter-spacing: -.01em; }
html[data-mode="dark"] .h2-fact .n { color: var(--ink); }
.h2-fact .l { margin-top: 18px; font-size: 19px; color: var(--muted); }
@media (max-width: 960px) { .h2-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 46px; } }
@media (max-width: 480px) { .h2-fact { padding: 48px 12px 42px; } .h2-fact .l { font-size: 15px; } }

/* ---------- Leadership (cards come from apppma.css) ---------- */
.h2-leaders { background: var(--green-50); padding-top: 72px; }
.h2-leaders .leaders-row { max-width: 1420px; gap: clamp(20px, 13vw, 250px); }
.h2-leaders .h2-head h2 { margin-top: 24px; }

/* ---------- Services ---------- */
.h2-services { background: var(--green-50); padding-top: 40px; }
.h2-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; max-width: 1320px; }
.h2-service-intro { padding: 50px 14px 0; }
.h2-service-intro h2 { font: 600 clamp(30px, 2.8vw, 40px)/1.12 var(--font-pop); color: var(--green-900); margin: 0 0 40px; }
html[data-mode="dark"] .h2-service-intro h2, html[data-mode="dark"] .h2-head h2, html[data-mode="dark"] .h2-service h3 { color: var(--ink); }
.h2-service-intro p { margin: 0 0 36px; font-size: 19px; line-height: 1.6; color: var(--green-800); }
html[data-mode="dark"] .h2-service-intro p { color: var(--body); }
.h2-rule { display: block; width: 194px; height: 4px; background: var(--green-800); }
.h2-service {
  background: var(--surface); border-radius: 32px; padding: 14px 26px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .25s, box-shadow .25s;
}
.h2-service:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--green-950) 45%, transparent); }
.h2-service-ico { width: 72px; height: 72px; display: grid; place-items: center; color: var(--green-800); margin-bottom: 18px; }
.h2-service-ico .icon { width: 58px; height: 58px; stroke-width: 1.6; }
.h2-service h3 { font: 600 clamp(24px, 2.2vw, 34px)/1.25 var(--font-pop); color: var(--green-900); margin: 0 0 30px; }
.h2-service p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--green-900); }
html[data-mode="dark"] .h2-service p { color: var(--body); }
@media (max-width: 1000px) { .h2-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h2-service-intro { grid-column: 1 / -1; padding-top: 0; } }
@media (max-width: 620px) { .h2-service-grid { grid-template-columns: 1fr; } }

/* ---------- Verification strip ---------- */
.h2-verify { background: var(--green-800); color: #E4EFE8; padding: 34px 0; }
.h2-verify-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; max-width: 1400px; }
.h2-verify-copy { display: flex; align-items: center; gap: 20px; }
.h2-verify-copy .h2-feature-ico { background: rgba(255,255,255,.1); color: var(--amber-400); }
.h2-verify-copy h2 { font: 600 24px/1.25 var(--font-pop); color: #FFFFFF; margin: 0 0 4px; }
.h2-verify-copy p { margin: 0; color: var(--on-dark); }
.h2-verify .input { background: var(--surface); }
.h2-verify .verify-msg { grid-column: 1 / -1; color: #FFD6D2; }
@media (max-width: 860px) { .h2-verify-row { grid-template-columns: 1fr; } }

/* ---------- Events & news ---------- */
.h2-updates { background: var(--surface); }
.h2-updates-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; max-width: 1300px; margin: 0 auto; }
.h2-updates .card { border-radius: 18px; }
@media (max-width: 900px) { .h2-updates-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.h2-trust { background: var(--surface); padding-top: 70px; }
.h2-thin { font-family: var(--font-pop) !important; font-weight: 400 !important; font-size: clamp(40px, 5.4vw, 74px) !important; margin-bottom: 4px !important; }
.h2-dots { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 18px 0; }
.h2-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--green-800); }
.h2-dots b { width: 124px; height: 4px; border-radius: 2px; background: var(--green-800); margin-left: 6px; }
.h2-strong { font: 800 17px/1.5 var(--font-head) !important; color: var(--green-900) !important; }
html[data-mode="dark"] .h2-strong { color: var(--ink) !important; }
.h2-trust .h2-head { max-width: 1300px; }
.h2-quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1380px; margin: 0 auto; }
.h2-quote {
  position: relative; margin: 0; padding: 56px 34px 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; overflow: hidden;
}
.h2-quote-mark { position: absolute; top: 0; right: 0; width: 100px; height: 100px; border-bottom-left-radius: 100px; background: var(--green-800); color: var(--amber-400); font: 700 64px/1 var(--font-serif); display: flex; justify-content: flex-end; padding: 18px 24px 0 0; }
.h2-quote-avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--green-950) 40%, transparent), 0 0 0 5px var(--surface); }
.h2-quote-avatar .icon { width: 40px; height: 40px; }
.h2-quote figcaption { font: 600 21px/1.3 var(--font-pop); color: var(--ink); margin-top: 18px; }
.h2-quote figcaption span { display: block; font: 400 14px/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.h2-stars { color: #F7B928; font-size: 22px; letter-spacing: 4px; }
.h2-quote blockquote { margin: 10px 0 0; font: 700 18px/1.65 var(--font-body); color: var(--muted); }
@media (max-width: 960px) { .h2-quote-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* footer: the theme switcher sits in the bottom bar here */
.home2 .footer-bottom .topbar-links { display: flex; align-items: center; }
.home2 .footer-bottom .theme-switch { border-left: 0; padding-left: 0; margin-left: 0; }
.h2-header .brand { flex: none; }
