/**
 * Antigravity Custom Stylesheet for NCVER Modern Website
 * Theme: Indian National Skill Council - Rich Forest Green & Gold
 * Fully Responsive (320px to 4K) & High Contrast Visibility
 */

:root {
  --ag-primary: #063b22;           /* Deep Forest Green */
  --ag-primary-dark: #032014;      /* Deep Midnight Green */
  --ag-primary-light: #0d5c36;     /* Rich Emerald */
  --ag-accent: #16a34a;            /* Vibrant Green */
  --ag-accent-hover: #15803d;      /* Darker Accent */
  --ag-gold: #f59e0b;              /* Council Gold */
  --ag-gold-light: #fef08a;        /* Soft Gold */
  --ag-dark-bg: #042616;           /* Footer & Dark Sections */
  --ag-light-bg: #f2f7f4;          /* Soft Mint Gray Background */
  --ag-card-bg: #ffffff;
  --ag-border: #d1e7dd;
  --ag-text-dark: #0f291e;
  --ag-text-muted: #4b6354;
  --ag-whatsapp: #25d366;
  --ag-call: #059669;
  --ag-shadow-sm: 0 4px 14px rgba(6, 59, 34, 0.06);
  --ag-shadow-md: 0 10px 25px rgba(6, 59, 34, 0.10);
  --ag-shadow-lg: 0 20px 45px rgba(6, 59, 34, 0.16);
}

/* ========================================================
   GLOBAL RESETS & RESPONSIVENESS (Zero Horizontal Scroll)
   ======================================================== */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ag-text-dark);
  background-color: var(--ag-light-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================================
   TOP BAR (Responsive Helpline & Timing)
   ======================================================== */
#topbar {
  background: var(--ag-primary-dark) !important;
  color: #e2e8f0 !important;
  font-size: 0.85rem;
  min-height: 42px;
  padding: 6px 0;
  border-bottom: 2px solid var(--ag-gold);
  z-index: 1030;
}

#topbar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

#topbar a:hover {
  color: var(--ag-gold);
}

@media (max-width: 768px) {
  #topbar {
    font-size: 0.78rem;
    padding: 8px 0;
  }
}

/* ========================================================
   FULL-WIDTH TEXT-MATTER COUNCIL HEADER BANNER
   (Replaces static Header.png with sharp, scalable HTML/CSS)
   ======================================================== */
.ag-council-banner {
  width: 100%;
  background: linear-gradient(135deg, #e8f5e9 0%, #f4faf4 45%, #e8f5e9 100%);
  border-top: 3.5px solid var(--ag-gold);
  border-bottom: 3.5px solid var(--ag-primary-light);
  padding: 12px 0 10px 0;
  box-shadow: 0 4px 15px rgba(6, 59, 34, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle tech-pattern background */
.ag-council-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(22, 163, 74, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.07) 0%, transparent 20%);
  pointer-events: none;
}

/* Circular Seal Logo */
.ag-council-logo-seal {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
  transition: transform 0.4s ease;
}

.ag-council-logo-seal:hover {
  transform: scale(1.05) rotate(4deg);
}

/* Hindi Title */
.ag-banner-hindi-title {
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
  color: #063b22;
  font-weight: 900;
  font-size: clamp(1.25rem, 2.3vw, 2.35rem);
  letter-spacing: -0.2px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* English Title */
.ag-banner-english-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: #032014;
  font-weight: 800;
  font-size: clamp(0.92rem, 1.6vw, 1.55rem);
  letter-spacing: 0.1px;
  line-height: 1.25;
  margin: 3px 0 8px 0;
}

/* Institutional Accreditation Badges Row */
.ag-banner-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding-top: 6px;
  border-top: 1px dashed rgba(6, 59, 34, 0.22);
}

.ag-gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 59, 34, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #063b22;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ag-gov-badge:hover {
  background: #ffffff;
  border-color: var(--ag-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(6, 59, 34, 0.12);
}

.ag-digital-india-badge {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #16a34a;
  border-radius: 10px;
  padding: 6px 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}

@media (max-width: 991px) {
  .ag-council-logo-seal {
    width: 80px;
    height: 80px;
  }
  .ag-council-banner {
    padding: 10px 0;
  }
}

@media (max-width: 576px) {
  .ag-council-logo-seal {
    width: 65px;
    height: 65px;
  }
  .ag-banner-badges-row {
    gap: 4px 8px;
  }
  .ag-gov-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}

/* ========================================================
   HEADER BRAND STRIP & RESPONSIVE LOGO BANNER
   ======================================================== */
.ag-brand-strip {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--ag-border);
  padding: 6px 0;
  overflow: hidden;
}

.ag-brand-strip img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .ag-brand-strip img {
    max-height: 75px;
  }
}

/* ========================================================
   MAIN NAVBAR (Clean Mobile-First Bootstrap Support)
   ======================================================== */
.ag-navbar-wrapper {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 59, 34, 0.08);
  border-bottom: 3px solid var(--ag-primary-light);
  position: sticky;
  top: 0;
  z-index: 1020;
  overflow: visible !important;
}

.ag-navbar-wrapper .container-fluid,
.ag-navbar-wrapper .container {
  overflow: visible !important;
}

.ag-navbar-wrapper .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ag-primary) !important;
  padding: 12px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.ag-navbar-wrapper .nav-link:hover,
.ag-navbar-wrapper .nav-link.active {
  color: var(--ag-accent) !important;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 6px;
}

/* ========================================================
   BULLETPROOF NAVBAR DROPDOWNS (DESKTOP HOVER/CLICK & MOBILE ACCORDION)
   ======================================================== */

.ag-navbar-wrapper .dropdown-toggle i.bi-chevron-down {
  transition: transform 0.25s ease;
  display: inline-block;
}

.ag-navbar-wrapper .dropdown.show .dropdown-toggle i.bi-chevron-down,
.ag-navbar-wrapper .dropdown.dropdown-open .dropdown-toggle i.bi-chevron-down,
.ag-navbar-wrapper .dropdown:hover .dropdown-toggle i.bi-chevron-down {
  transform: rotate(180deg);
}

.ag-navbar-wrapper .dropdown-item {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ag-text-dark) !important;
  padding: 9px 18px !important;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  white-space: normal;
}

.ag-navbar-wrapper .dropdown-item:hover {
  background: rgba(22, 163, 74, 0.12) !important;
  color: var(--ag-primary) !important;
  padding-left: 22px !important;
}

/* --- DESKTOP SCREEN (min-width: 992px) --- */
@media (min-width: 992px) {
  .ag-navbar-wrapper .navbar-collapse {
    overflow: visible !important;
  }
  .ag-navbar-wrapper .navbar-nav .dropdown {
    position: relative;
  }

  /* Override style.css 30px gap and force perfect position */
  .ag-navbar-wrapper .navbar-nav .dropdown-menu,
  .navbar.ag-navbar-wrapper .dropdown ul,
  .navbar.ag-navbar-wrapper .navbar-nav .dropdown ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    min-width: 260px !important;
    background: #ffffff !important;
    border: 1px solid var(--ag-border) !important;
    border-top: 3.5px solid var(--ag-accent) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 15px 35px rgba(6, 59, 34, 0.18) !important;
    z-index: 1050 !important;

    /* Hidden by default with smooth transform */
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  }

  /* Expand on Hover OR Click */
  .ag-navbar-wrapper .navbar-nav .dropdown:hover > .dropdown-menu,
  .ag-navbar-wrapper .navbar-nav .dropdown.show > .dropdown-menu,
  .ag-navbar-wrapper .navbar-nav .dropdown-menu.show,
  .navbar.ag-navbar-wrapper .dropdown:hover > ul,
  .navbar.ag-navbar-wrapper .dropdown.show > ul,
  .navbar.ag-navbar-wrapper .dropdown > ul.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  /* Invisible hover bridge */
  .ag-navbar-wrapper .navbar-nav .dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 10px;
  }
}

/* --- MOBILE SCREEN (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
  .ag-navbar-wrapper .navbar-collapse {
    background: #ffffff !important;
    border-top: 2px solid var(--ag-border) !important;
    padding: 15px 12px 20px 12px !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  .ag-navbar-wrapper .navbar-nav .nav-item {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .ag-navbar-wrapper .navbar-nav .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
  }

  /* Nested accordion dropdowns on mobile */
  .ag-navbar-wrapper .navbar-nav .dropdown-menu,
  .navbar.ag-navbar-wrapper .dropdown ul,
  .navbar.ag-navbar-wrapper .navbar-nav .dropdown ul {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 4px 0 10px 0 !important;
    padding: 6px 0 6px 10px !important;
    background: #f0fdf4 !important;
    border: none !important;
    border-left: 3px solid var(--ag-accent) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;

    /* Collapsed by default on mobile */
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Expand when parent or menu has .show or .dropdown-open */
  .ag-navbar-wrapper .navbar-nav .dropdown.show > .dropdown-menu,
  .ag-navbar-wrapper .navbar-nav .dropdown.dropdown-open > .dropdown-menu,
  .ag-navbar-wrapper .navbar-nav .dropdown-menu.show,
  .navbar.ag-navbar-wrapper .dropdown.show > ul,
  .navbar.ag-navbar-wrapper .dropdown.dropdown-open > ul,
  .navbar.ag-navbar-wrapper .dropdown > ul.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.ag-btn-apply {
  background: linear-gradient(135deg, var(--ag-accent) 0%, var(--ag-primary-light) 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ag-btn-apply:hover {
  background: linear-gradient(135deg, var(--ag-primary-light) 0%, var(--ag-primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 59, 34, 0.4);
}

/* ========================================================
   FLASH NEWS / LATEST NOTIFICATIONS TICKER
   ======================================================== */
.ag-news-ticker {
  background: linear-gradient(90deg, var(--ag-primary-dark) 0%, var(--ag-primary) 100%);
  color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ag-news-badge {
  background: var(--ag-gold);
  color: #000000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ag-ticker-content {
  overflow: hidden;
  white-space: nowrap;
}

.ag-ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: agTicker 28s linear infinite;
  font-weight: 500;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.ag-ticker-track:hover {
  animation-play-state: paused;
}

.ag-ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 40px;
  gap: 8px;
}

@keyframes agTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ========================================================
   HERO BANNER & TYPEWRITER AUTO-WRITING (RESPONSIVE)
   ======================================================== */
.ag-hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  background-color: var(--ag-primary-dark);
  overflow: hidden;
}

.ag-hero .carousel-item {
  height: 560px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark Green Vignette Overlay ensuring text readability */
  background: linear-gradient(135deg, rgba(3, 32, 20, 0.92) 0%, rgba(6, 59, 34, 0.82) 45%, rgba(13, 92, 54, 0.4) 100%);
  z-index: 1;
}

.ag-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

/* Hero Content Card (High Contrast Dark Green Glass) */
.ag-hero-card {
  background: rgba(3, 32, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 38px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  max-width: 780px;
}

.ag-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid var(--ag-gold);
  color: var(--ag-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ag-hero-title {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.ag-typewriter-wrapper {
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 500;
  min-height: 44px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ag-typewriter-prefix {
  color: #94a3b8;
  font-weight: 600;
}

.ag-typewriter-text {
  color: var(--ag-gold);
  font-weight: 800;
  border-bottom: 2px solid var(--ag-gold);
  padding-bottom: 2px;
}

.ag-typewriter-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--ag-gold);
  animation: agBlink 0.8s infinite;
}

@keyframes agBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ag-hero-btn {
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.ag-hero-btn-primary {
  background: linear-gradient(135deg, var(--ag-accent) 0%, var(--ag-primary-light) 100%);
  color: #ffffff !important;
  border: 1px solid var(--ag-accent);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.ag-hero-btn-primary:hover {
  background: linear-gradient(135deg, var(--ag-gold) 0%, #d97706 100%);
  color: #000000 !important;
  border-color: var(--ag-gold);
  transform: translateY(-2px);
}

.ag-hero-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.ag-hero-btn-outline:hover {
  background: #ffffff;
  color: var(--ag-primary-dark) !important;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .ag-hero {
    min-height: 480px;
  }
  .ag-hero .carousel-item {
    height: 500px;
  }
  .ag-hero-card {
    padding: 25px 22px;
    margin: 0 15px;
  }
  .ag-hero-title {
    font-size: 1.75rem;
  }
  .ag-typewriter-wrapper {
    font-size: 1.05rem;
    min-height: 40px;
  }
}

@media (max-width: 576px) {
  .ag-hero {
    min-height: 460px;
  }
  .ag-hero .carousel-item {
    height: 480px;
  }
  .ag-hero-title {
    font-size: 1.4rem;
  }
  .ag-typewriter-wrapper {
    font-size: 0.92rem;
  }
  .ag-hero-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================
   QUICK VERIFICATION & PORTAL TILES STRIP
   ======================================================== */
.ag-quick-tiles {
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

.ag-tile-card {
  background: #ffffff;
  border: 1px solid var(--ag-border);
  border-top: 4px solid var(--ag-primary-light);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ag-shadow-md);
  text-decoration: none;
  transition: all 0.35s ease;
  height: 100%;
}

.ag-tile-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: var(--ag-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.ag-tile-card:hover {
  background: var(--ag-primary);
  border-color: var(--ag-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(6, 59, 34, 0.25);
}

.ag-tile-card:hover .ag-tile-icon {
  background: var(--ag-gold);
  color: #000000;
  transform: scale(1.1);
}

.ag-tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ag-primary);
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.ag-tile-desc {
  font-size: 0.82rem;
  color: var(--ag-text-muted);
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.ag-tile-card:hover .ag-tile-title {
  color: #ffffff;
}

.ag-tile-card:hover .ag-tile-desc {
  color: #d1fae5;
}

/* ========================================================
   SECTION STYLING
   ======================================================== */
.ag-section {
  padding: 70px 0;
}

.ag-section-white {
  background-color: #ffffff;
}

.ag-section-light {
  background-color: var(--ag-light-bg);
}

.ag-section-green {
  background: linear-gradient(135deg, var(--ag-primary-dark) 0%, var(--ag-primary) 100%);
  color: #ffffff;
}

.ag-section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.ag-section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ag-primary-light);
  background: #dcfce7;
  padding: 5px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.ag-section-green .ag-section-subtitle {
  background: rgba(245, 158, 11, 0.2);
  color: var(--ag-gold);
}

.ag-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ag-primary);
  letter-spacing: -0.5px;
}

.ag-section-green .ag-section-title {
  color: #ffffff;
}

.ag-section-desc {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--ag-text-muted);
  font-size: 1rem;
}

.ag-section-green .ag-section-desc {
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .ag-section {
    padding: 50px 0;
  }
  .ag-section-title {
    font-size: 1.65rem;
  }
}

/* ========================================================
   ATTRACTIVE BLOCKS - 180° SPIN & DARK GREEN COLOR CHANGE
   ======================================================== */
.ag-spin-card {
  background: #ffffff;
  border: 1px solid var(--ag-border);
  border-radius: 16px;
  padding: 32px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--ag-shadow-sm);
  cursor: pointer;
}

.ag-spin-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.06);
  transition: all 0.5s ease;
  z-index: 0;
}

.ag-spin-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ag-spin-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--ag-primary);
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.15);
  perspective: 1000px;
  /* 180° Rotation smooth transition */
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, color 0.4s ease;
}

.ag-spin-icon-wrap i {
  display: inline-block;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ag-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ag-primary);
  margin-bottom: 10px;
  transition: color 0.35s ease;
}

.ag-card-desc {
  font-size: 0.92rem;
  color: var(--ag-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
  transition: color 0.35s ease;
}

.ag-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  width: fit-content;
  transition: all 0.35s ease;
}

/* 🔄 HOVER STATE: 180° Spin on Icon & Rich Dark Green Background Change */
.ag-spin-card:hover {
  background: linear-gradient(135deg, var(--ag-primary-dark) 0%, var(--ag-primary-light) 100%) !important;
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 45px rgba(3, 32, 20, 0.35);
}

.ag-spin-card:hover::before {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.6);
}

.ag-spin-card:hover .ag-spin-icon-wrap {
  transform: rotateY(180deg) scale(1.08);
  background: var(--ag-gold);
  color: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.ag-spin-card:hover .ag-card-title {
  color: #ffffff !important;
}

.ag-spin-card:hover .ag-card-desc {
  color: #d1fae5 !important;
}

.ag-spin-card:hover .ag-card-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  color: var(--ag-gold-light) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ========================================================
   COURSE MATRIX & SPECIALIZATIONS (Bhari Bhari Data)
   ======================================================== */
.ag-course-box {
  background: #ffffff;
  border: 1px solid var(--ag-border);
  border-radius: 14px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  box-shadow: var(--ag-shadow-sm);
  position: relative;
  overflow: hidden;
}

.ag-course-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ag-primary-light);
  transition: width 0.3s ease;
}

.ag-course-box:hover {
  border-color: var(--ag-accent);
  transform: translateY(-5px);
  box-shadow: var(--ag-shadow-md);
}

.ag-course-box:hover::after {
  width: 8px;
}

.ag-course-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ag-primary-light);
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 8px;
}

.ag-course-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ag-primary);
  margin-bottom: 6px;
}

.ag-course-desc {
  font-size: 0.88rem;
  color: var(--ag-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.ag-course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--ag-border);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ========================================================
   CHAIRMAN & COUNCIL LEADERSHIP DESK
   ======================================================== */
.ag-leadership-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 35px;
  border: 1px solid var(--ag-border);
  box-shadow: var(--ag-shadow-md);
  position: relative;
}

.ag-leadership-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ag-text-dark);
  line-height: 1.8;
  position: relative;
  margin-bottom: 20px;
}

.ag-leadership-quote::before {
  content: '\201C';
  font-size: 60px;
  color: var(--ag-gold);
  line-height: 0;
  position: relative;
  top: 16px;
  margin-right: 6px;
}

/* ========================================================
   4-COLUMN GALLERY & LIGHTBOX (CLICK TO VIEW & CLOSE)
   ======================================================== */
.ag-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ag-shadow-sm);
  background: var(--ag-primary-dark);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 32, 20, 0.95) 0%, rgba(3, 32, 20, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(10px);
}

.ag-gallery-overlay h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 3px;
}

.ag-gallery-overlay p {
  color: #d1fae5;
  font-size: 0.82rem;
  margin: 0;
}

.ag-gallery-icon-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.85);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.3s ease;
}

.ag-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--ag-shadow-lg);
}

.ag-gallery-item:hover img {
  transform: scale(1.1);
}

.ag-gallery-item:hover .ag-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   LIGHTBOX MODAL (CLICK-TO-VIEW & MULTI-OPTION CLOSE)
   ======================================================== */
.ag-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 12, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  opacity: 0;
  cursor: pointer; /* Clicking backdrop closes */
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-lightbox.active {
  display: flex !important;
  opacity: 1;
}

.ag-lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  text-align: center;
  cursor: default; /* Inside content doesn't inherit backdrop pointer */
  animation: agZoomIn 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 92vh;
}

@keyframes agZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Fixed Top-Right Close Button (Always visible on all screens) */
.ag-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  padding: 10px 22px;
  border-radius: 40px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10000005;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
  transition: all 0.25s ease;
}

.ag-lightbox-close:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.7);
  color: #ffffff;
}

.ag-lightbox-close i {
  font-size: 16px;
}

/* Image Container */
.ag-lightbox-img-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 160, 23, 0.3);
  background: #000000;
  max-height: 68vh;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Caption and Controls */
.ag-lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  width: 100%;
  max-width: 800px;
}

.ag-lightbox-counter {
  display: inline-block;
  font-size: 0.82rem;
  color: #032014;
  background: var(--ag-gold);
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.ag-lightbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ag-lightbox-desc {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Secondary Bottom Close Button */
.ag-lightbox-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ag-lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Next / Prev Navigation Arrows */
.ag-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000002;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ag-lightbox-nav:hover {
  background: var(--ag-gold);
  color: #032014;
  border-color: var(--ag-gold);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.5);
}

.ag-lightbox-prev { left: -72px; }
.ag-lightbox-next { right: -72px; }

@media (max-width: 991px) {
  .ag-lightbox {
    padding: 20px 10px;
  }
  .ag-lightbox-close {
    top: 14px;
    right: 14px;
    padding: 7px 16px;
    font-size: 13px;
  }
  .ag-lightbox-prev { left: 8px; width: 44px; height: 44px; font-size: 16px; }
  .ag-lightbox-next { right: 8px; width: 44px; height: 44px; font-size: 16px; }
  .ag-lightbox-title { font-size: 1.05rem; }
  .ag-lightbox-desc { font-size: 0.82rem; }
  .ag-lightbox-img-wrapper { max-height: 60vh; }
  .ag-lightbox-img { max-height: 60vh; }
}

@media (max-width: 576px) {
  .ag-lightbox-close {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
    gap: 4px;
  }
  .ag-lightbox-prev { left: 4px; width: 38px; height: 38px; font-size: 14px; }
  .ag-lightbox-next { right: 4px; width: 38px; height: 38px; font-size: 14px; }
  .ag-lightbox-title { font-size: 0.95rem; }
  .ag-lightbox-img-wrapper { max-height: 52vh; }
  .ag-lightbox-img { max-height: 52vh; }
}

/* ========================================================
   RICH DARK GREEN FOOTER (100% VISIBLE & HIGH CONTRAST)
   ======================================================== */
#footer,
.ag-footer {
  background-color: var(--ag-dark-bg) !important;
  color: #e2e8f0 !important;
  font-size: 0.92rem;
  padding: 0 !important;
  border-top: 4px solid var(--ag-gold);
}

#footer .footer-top,
.ag-footer-top {
  background-color: var(--ag-dark-bg) !important;
  padding: 60px 0 35px 0 !important;
}

.ag-footer h4,
#footer h4 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--ag-gold) !important;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ag-footer h4::after,
#footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--ag-accent);
  border-radius: 2px;
}

.ag-footer p,
#footer p,
.ag-footer span,
#footer span {
  color: #d1fae5 !important;
  line-height: 1.8;
}

.ag-footer strong,
#footer strong {
  color: #ffffff !important;
}

.ag-footer a,
#footer a {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ag-footer a:hover,
#footer a:hover {
  color: var(--ag-gold) !important;
  padding-left: 4px;
}

.ag-footer-links li,
#footer .footer-links li {
  padding: 7px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ag-footer-links i,
#footer .footer-links i {
  color: var(--ag-gold);
  margin-right: 8px;
  font-size: 14px;
}

.ag-footer-bottom {
  background-color: #021a0f !important;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #94a3b8;
}

/* ========================================================
   DUAL FLOATING CALL & WHATSAPP BUTTONS
   ======================================================== */
.ag-floating-actions {
  position: fixed;
  bottom: 28px;
  right: 25px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.ag-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ag-float-btn i {
  font-size: 26px;
}

.ag-float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* WhatsApp Button */
.ag-float-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.ag-float-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: agPulseWhatsapp 2s infinite;
}

@keyframes agPulseWhatsapp {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Call Button */
.ag-float-call {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.ag-float-call::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.4);
  z-index: -1;
  animation: agPulseCall 2s infinite 0.7s;
}

@keyframes agPulseCall {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ag-float-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(3, 32, 20, 0.95);
  border: 1px solid var(--ag-gold);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

.ag-float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(3, 32, 20, 0.95);
}

.ag-float-btn:hover .ag-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================================
   FULL WIDTH CONTENT FOR MASTERPAGE & CHILD PAGES
   ======================================================== */
.ag-main-content,
#main {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 55vh;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ag-main-content > .container-fluid,
#main > .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

@media (min-width: 992px) {
  .ag-main-content > .container-fluid,
  #main > .container-fluid {
    padding-left: 45px !important;
    padding-right: 45px !important;
  }
}

/* Expand boxed child page containers to responsive full width */
.ag-main-content .container,
#main .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Child page sections spanning 100% width */
.ag-main-content section,
#main section {
  width: 100% !important;
}
