/* Green theme + home page polish. Loaded after site.css. */

:root {
  --green-950: #0a2e1f;
  --green-900: #0f3d2a;
  --green-700: #17703f;
  --green-600: #1f8f4e;
  --green-500: #2fae63;
  --green-200: #bfe6cd;
  --green-100: #dcf3e4;
  --green-50: #f1faf4;
  --accent-color: var(--green-600);
  --nav-hover-color: var(--green-600);
  --nav-dropdown-hover-color: var(--green-600);
  --heading-color: #12301f;
  --card-shadow: 0 8px 28px rgba(10, 46, 31, .10);
}

/* ---------- Header: dark-green top strip + clean white bar ---------- */
body { background: #fff; }
.header { border-top: 5px solid var(--green-700); box-shadow: 0 2px 14px rgba(10, 46, 31, .08); }
.header .logo .sitename { color: var(--green-700); }
.header .navmenu a { position: relative; }
@media (min-width: 1200px) {
  .header .navmenu > ul > li > a::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 6px; height: 3px; border-radius: 3px;
    background: var(--green-500); transform: scaleX(0); transition: transform .25s ease;
  }
  .header .navmenu > ul > li:hover > a::after, .header .navmenu > ul > li > a.active::after { transform: scaleX(1); }
}
.header .btn-getstarted { background: linear-gradient(135deg, var(--green-600), var(--green-700)); box-shadow: 0 6px 16px rgba(23, 112, 63, .30); }
.header .btn-getstarted:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lang-switch { background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.lang-switch a.active { background: var(--green-600); }

/* ---------- Slideshow: green ribbon along the bottom edge ---------- */
.slideshow { position: relative; background: var(--green-950); padding: 0 !important; margin: 0; overflow: hidden; }
.slideshow::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px; z-index: 5;
  background: linear-gradient(90deg, var(--green-900), var(--green-500), var(--green-900));
}
/* Banner frame: fixed wide shape. Photos that are not wide stay fully visible (contain) over a blurred copy of themselves;
   genuinely wide images (class .is-wide, set in site.js) fill the frame (cover). */
.slide-frame {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 21 / 8; min-height: 240px; max-height: 560px; background: var(--green-950);
}
.slide-frame::before {
  content: ""; position: absolute; inset: -30px; background: var(--slide-bg) center / cover no-repeat;
  filter: blur(26px) brightness(.72) saturate(1.15);
}
.slideshow .slide-frame .slide-img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center; filter: none;
}
.slideshow .slide-frame .slide-img.is-wide { object-fit: cover; }
@media (max-width: 767.98px) { .slide-frame { aspect-ratio: 16 / 10; min-height: 0; } }
.slideshow .carousel-item img { filter: saturate(1.05); }
.slideshow .carousel-control-prev-icon, .slideshow .carousel-control-next-icon {
  background-color: rgba(10, 46, 31, .55); border-radius: 50%; padding: 22px; background-size: 45%;
}
.slideshow .carousel-indicators { margin-bottom: 1.1rem; }
.slideshow .carousel-indicators [data-bs-target] { background-color: #fff; opacity: .55; border: 0; }
.slideshow .carousel-indicators .active { background-color: var(--green-500); opacity: 1; width: 26px; border-radius: 6px; }

/* ---------- Section headings: green pill label + big title + accent bar ---------- */
.section-title { padding-bottom: 44px; position: relative; }
.section-title h2 {
  display: inline-block; font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: none;
  color: var(--green-700); background: var(--green-100); padding: 6px 20px; border-radius: 999px; margin-bottom: .9rem;
}
.section-title h2::before, .section-title h2::after { content: none !important; }
.section-title p {
  display: block; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; color: var(--heading-color); line-height: 1.4; margin: 0 0 .2rem;
}
.section-title::after {
  content: ""; display: block; width: 74px; height: 5px; border-radius: 5px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
}

/* ---------- News (light green band) ---------- */
#news { background: var(--green-50); position: relative; }
#news::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 12% 18%, var(--green-100) 0, transparent 38%), radial-gradient(circle at 92% 85%, var(--green-100) 0, transparent 40%);
}
#news > * { position: relative; }
.news-item { border-top: 5px solid var(--green-500); }
.news-item .news-date {
  align-self: flex-start; background: var(--green-100); color: var(--green-700); font-weight: 600;
  padding: 3px 12px; border-radius: 999px; font-size: .8rem;
}
.news-item .read-more { color: var(--green-700); font-weight: 700; }
.news-item .read-more:hover { color: var(--green-500); gap: .55rem; }
.btn-outline-accent {
  border-color: var(--green-600); color: #fff; background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 8px 20px rgba(23, 112, 63, .28); padding: 11px 36px;
}
.btn-outline-accent:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Colleges (white) ---------- */
#courses { background: #fff; }
.course-item { border-bottom: 5px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.course-item:hover { border-bottom-color: var(--green-500); }
.course-content h3 a:hover { color: var(--green-600); }

/* ---------- Administrations (deep green band, white cards) ---------- */
#trainers-index {
  background: linear-gradient(160deg, var(--green-950), var(--green-900) 55%, var(--green-700));
  position: relative; overflow: hidden;
}
#trainers-index::before, #trainers-index::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05); pointer-events: none;
}
#trainers-index::before { width: 420px; height: 420px; inset-inline-start: -140px; top: -160px; }
#trainers-index::after { width: 320px; height: 320px; inset-inline-end: -100px; bottom: -120px; }
#trainers-index > * { position: relative; z-index: 1; }
#trainers-index .section-title h2 { background: rgba(255, 255, 255, .14); color: #d9f7e5; }
#trainers-index .section-title p { color: #fff; }
#trainers-index .section-title::after { background: linear-gradient(90deg, var(--green-200), var(--green-500)); }
#trainers-index .member { background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
#trainers-index .member:hover { transform: translateY(-6px); }
#trainers-index .member-content span { color: #516a5b; }

/* ---------- Stats (green gradient band, big white numbers) ---------- */
#counts {
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; padding-block: 56px; position: relative; overflow: hidden;
}
#counts::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px); pointer-events: none; }
#counts .container { position: relative; }
#counts .stats-item { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--card-radius); padding: 26px 12px; backdrop-filter: blur(2px); }
#counts .stats-item span { color: #fff; font-size: 2.8rem; font-weight: 800; }
#counts .stats-item p { color: #eafaf0; font-weight: 600; margin: 4px 0 0; }

/* ---------- Footer: dark green ---------- */
.footer { background: var(--green-950) !important; color: #cfe9d8; border-top: 5px solid var(--green-600); }
.footer h4, .footer .sitename { color: #fff; }
.footer a { color: #aee3c2; }
.footer a:hover { color: #fff; }
.footer .footer-links ul li a { color: #cfe9d8; }
.footer .footer-links ul li a:hover { color: #fff; padding-inline-start: 4px; }
.footer .footer-contact p, .footer .footer-contact strong, .footer .footer-contact span { color: #cfe9d8; }
.footer .social-links a { background: rgba(255, 255, 255, .10); color: #fff; border: 0; }
.footer .social-links a:hover { background: var(--green-500); color: #fff; }
.footer .copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; color: #a9cdb7; }
.footer .copyright a { color: var(--green-200); }

/* ---------- Misc ---------- */
.scroll-top { background: var(--green-600); box-shadow: 0 6px 16px rgba(23, 112, 63, .35); }
.scroll-top:hover { background: var(--green-500); }
.page-title .heading { background: linear-gradient(135deg, var(--green-950), var(--green-700)); }
a { color: var(--green-600); }
::selection { background: var(--green-200); color: var(--green-950); }
