/* ========================================
   Brand Colors & Variables
======================================== */
/* Remove link blue flash everywhere */
a {
  text-decoration: none !important;
  color: inherit !important;
}

:root {
  --green1: #254d27;
  --green2: #6fbf73;
  --gold: #d4af37;
  --gold-dark: #c19b2f;
  --light: #fffef7;
}
body {
  background: #ffffff; /* Avoid dark background flash */
}


/* Utility Colors */
.bg-green { background: linear-gradient(to right, var(--green1), var(--green2)); }
.text-green { color: var(--green1); }
.gold { color: var(--gold); }

/* ========================================
   Buttons
======================================== */
.btn-green {
  background: linear-gradient(to right, var(--green1), var(--green2));
  color: white;
  border: none;
  font-weight: 600;
}
.btn-green:hover {
  background: linear-gradient(to right, #1f3c20, #3fa161);
}

.btn-gold {
  background: var(--gold);
  color: var(--green1);
  border: 2px solid var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: white;
}

/* Hero button style fixes */
.hero .btn-gold {
  background: var(--gold);
  color: var(--green1) !important;
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: 10px 26px;
}
.hero .btn-gold:hover {
  background: var(--gold-dark);
  color: white !important;
}
.hero .btn-outline-light {
  border: 2px solid white !important;
  color: white !important;
  font-weight: 600;
  padding: 10px 26px;
}
.hero .btn-outline-light:hover {
  background: white !important;
  color: var(--green1) !important;
}

/* =======================
   HEADER
======================= */
.header {
  background: linear-gradient(to right, var(--green1), var(--green2)) !important;
  position: sticky;
  top: 0;
  z-index: 999;
  padding-bottom: 5px;
}

#navbar {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}

.nav-link {
  color: #ffffff !important;  /* Make menu text white */
  font-size: 18px;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}

/* Gold underline */
.nav-link::after {
  content:"";
  position:absolute;
  left:0; bottom:0;
  height:3px; width:0%;
  background:var(--gold);
  transition:.3s;
}
/* Hover effect only if not active */
.nav-link:hover:not(.active-gold)::after {
  width: 100%;
}

/* Active page underline */
.nav-link.active-gold::after {
  width: 100%;
}


/* Mobile menu toggle */
.menu-toggle {
  background: none;
  border: none;
  font-size: 30px;
  color: var(--gold) !important;
  cursor: pointer;
}
/* ========================================
   ✅ MOBILE DROPDOWN (Top Right)
======================================== */
/* ✅ Mobile Dropdown */
/* ✅ Compact Top-Right Mobile Menu */
.mobile-dropdown {
  display: none;
  flex-direction: column;
  background: linear-gradient(to right, var(--green1), var(--green2));
  padding: 12px 22px;
  position: absolute;
  top: 68px;
  right: 10px;
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
  z-index: 9999;
  animation: fadeMenu .25s ease-in-out;
}

.mobile-dropdown.show { display: flex; }

.mobile-dropdown li {
  list-style: none;
  margin-bottom: 14px;
}

.mobile-dropdown a {
  font-size: 18px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
}

.mobile-dropdown a:hover {
  color: var(--gold) !important;
}

@keyframes fadeMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Little hover glow */
.mobile-dropdown a:hover {
  color: var(--gold) !important;
}

/* Smooth fade animation */
@keyframes fadeMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Remove underline animation mobile */
.mobile-dropdown .nav-link::after { display: none !important; }

/* ========================================
   Hero Section
======================================== */
/* Hero Video Fullscreen */
.video-hero {
  position: relative;
  width: 100%;
  height: 80vh; 
  overflow: hidden;
  margin-top: 0;
}

/* Fix for sticky header overlapping */

/* ✅ Buttons BELOW text (bottom-center) */
.hero-buttons {
  position: absolute;
  bottom: 8%; 
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 3;
}

/* Buttons styling */
.hero-buttons .btn-gold {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--green1);
  font-weight: 700;
  padding: 12px 28px;
}

.hero-buttons .btn-gold:hover {
  background: var(--gold-dark);
  color: white;
}

.hero-buttons .btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 28px;
}

.hero-buttons .btn-outline-light:hover {
  background: #fff;
  color: var(--green1);
}

/* Mobile Buttons */
@media(max-width: 768px) {
  body { padding-top: 70px; }
  .video-hero { height: 65vh; }

  .hero-buttons {
    bottom: 10%;
    flex-direction: column;
    width: 90%;
    gap: 10px;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.service-box {
  background: #ffffff;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: .3s;
  color: var(--green1);
}

.service-box:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-5px);
}

.service-box h4 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--green1);
}

.service-box:hover h4 {
  color: #fff;
}

.service-box p {
  font-size: 13px;
  margin-top: 4px;
  color: #444;
}

.service-box:hover p {
  color: #fff;
}

/* ✅ Mobile layout: 2 per row */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ✅ Very small phones: 1 per row */
@media (max-width: 450px) {
  .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ========================================
   Section & Cards
======================================== */
.section-title {
  color: var(--green1);
  font-weight: 700;
  margin-bottom: 25px;
}
.section-title::after {
  content:"";
  width:60px; height:3px;
  background:var(--gold);
  display:block;
  margin:8px auto 0;
  border-radius:2px;
}

.faculty-modern-section {
  background: #ffffff;
  padding: 70px 0;
}
.faculty-theory-box {
  font-size:18px; line-height:30px;
  color:#0c3d2e;
  padding:18px;
  border-left:4px solid var(--gold);
  background:white;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
}
.faculty-cards {
  display:grid;
  gap:12px;
}
.faculty-card {
  background:white;
  padding:16px 20px;
  border-radius:10px;
  font-size:17px;
  color:#0c3d2e;
  border:2px solid transparent;
  transition: .25s;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
}
.faculty-card:hover,
.faculty-card.active {
  border-color:var(--gold);
  transform:translateY(-6px);
  background:#fffdef;
}

/* ========================================
   Footer
======================================== */
.footer {
  background: linear-gradient(to right, var(--green1), var(--green2));
  padding: 60px 0 30px;
  color: white;
}

/* Footer Titles */
/* Footer title style already correct */

.footer-links {
  padding-left: 0;
}

.footer-links li {
  list-style: none;
  margin-bottom: 6px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Default icon button style */
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: 0.3s ease;
}

/* Icon size */
.footer-social a i {
  font-size: 18px;
}

/* Platform colors */
.footer-social a:nth-child(1) { /* X / Twitter */
  background: #000; 
  color: #fff;
}

.footer-social a:nth-child(2) { /* Instagram - gradient */
  background: radial-gradient(circle at 30% 110%,
  #fdf497 0%,
  #fdf497 5%,
  #fd5949 45%,
  #d6249f 60%,
  #285AEB 90%);

  color: #fff;
}

.footer-social a:nth-child(3) { /* LinkedIn */
  background: #0077B5;
  color: #fff;
}

.footer-social a:nth-child(4) { /* YouTube */
  background: #FF0000;
  color: #fff;
}

/* Hover: make them glow gold theme */
.footer-social a:hover {
  box-shadow: 0 0 10px rgba(212,175,55,0.6);
  transform: translateY(-3px);
}


/* Fix alignment */
.courses-wrapper {
  max-width: 360px;
  margin: 0 auto;
}

/* Desktop: Right align connect */
@media (min-width: 992px) {
  .connect-col {
    text-align: right !important;
  }
}

/* Mobile: center everything */
@media (max-width: 991px) {
  .footer-links, 
  .connect-col, 
  .footer .row > div {
    text-align: center !important;
  }
}

/* ✅ Courses Two-Column Center Fix */
.courses-wrapper {
  max-width: 360px;
  margin: 0 auto;
}

/* ✅ Desktop alignment fixes */
@media (min-width: 992px) {

  /* Parent row spacing */
  .footer .row > div {
    text-align: left;
  }

  /* Courses text left, title centered */
  .courses-wrapper .footer-title {
    text-align: center;
  }
  
  .courses-wrapper .col-6 {
    text-align: left;
  }

  /* Connect right aligned desktop */
  .connect-col {
    text-align: right !important;
  }
}

/* ✅ Mobile & Tablet */
@media (max-width: 991px) {
  .footer .row > div {
    text-align: center !important;
    margin-bottom: 25px;
  }

  .footer-links {
    text-align: center !important;
  }

  .courses-wrapper .col-6 {
    text-align: center !important;
  }

  .connect-col {
    text-align: center !important;
    margin-top: 15px;
  }
}

.popup {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

.course-modal {
  display:none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
}

.course-modal-box {
  background: #fff;
  height: 100%;
  padding:20px;
  overflow-y:auto;
}
.course-modal-box ul { list-style:none; padding:0; }
.course-modal-box li {
  padding:14px;
  border-bottom:1px solid #ddd;
  font-size:18px;
}
.course-modal-box li:hover { background:#f7f7f7; cursor:pointer; }
/* Faculty card active (mobile tap) */
.faculty-card.active {
  border-color: var(--gold) !important;
  background: #fffdef;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* Better spacing for mobile faculty layout */
/* Fix spacing between paragraph and points in mobile */
@media (max-width: 768px) {

  .faculty-modern-section .row {
    display: block !important;
  }

  .faculty-theory-box {
    margin-bottom: 25px !important; /* Space below paragraph */
  }

  .faculty-cards {
    margin-top: 10px !important; /* Extra top space before cards */
  }
}

/* ========================================
   Footer 
======================================== */
.footer {
  background: linear-gradient(to right, var(--green1), var(--green2)) !important;
  padding: 60px 0 30px;
  color: white !important;
}

/* Titles */
.footer-title {
  color: var(--gold) !important;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

/* Links */
.footer-links { padding:0; }
.footer-links li { margin-bottom:6px; list-style:none; }
.footer-links a {
  color:#fff;
  text-decoration:none;
  font-size:16px;
}
.footer-links a:hover { color:var(--gold); }

/* Social Icons */
.social-icon {
  width:40px; height:40px;
  background: linear-gradient(to right, var(--green1), var(--green2)) !important;
  border-radius:10px;
  display:inline-flex;
  justify-content:center; align-items:center;
  font-size:18px; color:#fff;
  transition:.3s;
}
.social-icon:hover { background:var(--gold); color:#000; }

/* Footer About box */
.footer-about {
  max-width:350px;
  line-height:1.6;
}
.footer-about p {
  font-size:16px;
  color:#ffffffd5;
}

/* Mobile footer centering */
@media(max-width: 991px) {
  .footer .row > div,
  .footer-links,
  .courses-wrapper .col-6,
  .connect-col {
    text-align:center !important;
  }
}

/* Desktop alignment */
@media(min-width: 992px) {
  .connect-col { text-align:right !important; }
  .courses-wrapper .footer-title { text-align:center; }
}
/* Prevent wide spacing in Courses desktop */
@media (min-width: 992px) {
  .footer .col-md-4 ul {
    padding-right: 20px;
  }
}
/* Footer About Box Styling */
.footer-about {
  max-width: 350px;       /* Keeps text in neat width box */
  line-height: 1.6;
}

.footer-about p {
  font-size: 16px;
  color: #ffffffd5;
  margin-top: 10px;
}

/* Center nicely on mobile */
@media(max-width: 768px) {
  .footer-about {
    margin: 0 auto;
    max-width: 90%;
    text-align: center;
  }
}
.footer-contact {
  margin: 4px 0;
  font-size: 14px;
  color: #fff;
}

.footer-contact a {
  color:#fff ;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  text-decoration: underline;
}
/* Remove white gap above hero */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Fix header overlapping */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

/* ✅ No gap above video */
/* ✅ Hero Section */
/* ---------------------------
    HERO (DESKTOP + MOBILE VIDEO)
---------------------------- */
/* Hero wrapper */
.video-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* Desktop video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Mobile video */
.hero-video-mobile {
  display: none;
}

/* ---------------------------
   DESKTOP BUTTONS
---------------------------- */
/* Desktop — Hero Buttons Centered */
.hero-buttons {
  position: absolute;
  bottom: 70px;
  width: 100%;
  text-align: center;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.hero-buttons .btn-main,
.hero-buttons .btn-outline-gold {
  background: var(--gold);
  color: var(--green1) !important;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  font-size: 18px;
  text-decoration: none !important;
  display: inline-block;
  transition: 0.3s;
}

/* Hover */
.hero-buttons .btn-main:hover,
.hero-buttons .btn-outline-gold:hover {
  background: #c79f1b;
  color: white !important;
}

/* Prevent blue underline flash on page load */
.hero-buttons a {
  text-decoration: none !important;
  color: var(--green1) !important;
}

/* ✅ Hide buttons on mobile */
@media (max-width: 768px) {
  .hero-buttons {
    display: none !important;
  }
}

/* ---------------------------
   ✅ MOBILE STYLES
---------------------------- */
@media (max-width: 768px) {

  .video-hero {
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-video,
.hero-video-mobile {
  display: block;
  bottom: 0;
}

  .hero-video-mobile {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  /* ✅ Hide buttons on mobile */
  .hero-buttons {
    display: none;
  }

  /* ✅ GOLD TEXT LINKS instead of buttons */
  .hero-links-mobile {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 5;
  }

  .hero-links-mobile a {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold) !important;
    text-decoration: none !important;
    display: block;
    margin-bottom: 12px;
  }
}
.about-hero {
  padding: 120px 20px 80px;
  background: #fff; /* keep white background */
}

.about-badge {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
  letter-spacing: .5px;
}

.about-title {
  max-width: 900px;
  margin: auto;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--green1);
}

.about-title .highlight {
  color: var(--gold);
  font-weight: 800;
}

.about-btn {
  padding: 12px 28px;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .about-title { font-size: 26px; }
  .about-subtext { font-size: 16px; }
}
/* AIM Section container */
.about-aim {
  padding: 40px 20px;
  margin-top: -40px; /* reduce space below connect section */
}

/* OUR AIM label as plain text */
.aim-label {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* Main title bigger + bold */
.aim-title {
  max-width: 900px;
  margin: 0 auto 15px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--green1);
}

/* Content text */
.aim-text {
  max-width: 850px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

/* Quote */
.aim-quote {
  margin-top: 18px;
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: var(--green1);
  font-weight: 600;
}

.aim-author {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

/* Mobile view */
@media (max-width: 768px) {
  .aim-title { font-size: 22px; }
  .aim-text { font-size: 15px; }
}
.about-philosophy-objectives {
  padding: 70px 5%;
}

.apo-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.apo-left, .apo-right {
  flex: 1;
}

.apo-left h3,
.apo-right h3 {
  color: var(--green1);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 26px;
}

.apo-left p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #333;
}

.apo-quote {
  margin-top: 15px;
  font-style: italic;
  color: var(--green1);
  font-weight: 600;
}
.apo-quote span {
  color: var(--gold);
}
.apo-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.apo-card {
  background: #fff;
  border: 1px solid var(--gold);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.apo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.apo-card h4 {
  font-size: 18px;
  color: var(--green1);
  font-weight: 700;
  margin-bottom: 8px;
}

.apo-card-quote {
  font-size: 14px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 8px;
}

/* Mobile Responsive */
@media(max-width:900px) {
  .apo-container {
    flex-direction: column;
  }
  .apo-grid {
    grid-template-columns: 1fr;
  }
}
.contact-wrapper {
  padding: 80px 6%;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--green1);
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--green1);
  margin-top: 20px;
}

.contact-info p {
  font-size: 17px;
  color: #333;
  margin-bottom: 8px;
}

.contact-divider {
  border: none;
  border-top: 2px solid var(--gold);
  margin: 20px 0;
  width: 60%;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icon {
  font-size: 22px;
  color: var(--green1);
  transition: .3s;
}
.social-icon:hover {
  color: var(--gold);
}

/* RIGHT FORM */
.contact-form-container {
  flex: 1.2;
  background: #fff;
  padding: 30px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--green1);
  margin-bottom: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--green1);
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #caa333;
}

/* ✅ Mobile Responsive */
@media(max-width:900px){
  .contact-container {
    flex-direction: column;
  }
}

.form-box {
  max-width: 600px;
  margin: auto;
}
#contact a {
  color: var(--green1);
  font-weight: 600;
}
#contact a:hover {
  color: var(--gold);
}
/* ✅ Gold Submit Button */
.btn-submit,
.form-box button[type="submit"],
#contact button[type="submit"] {
  background: var(--gold) !important;
  color: var(--green1) !important;
  font-weight: 700;
  padding: 10px 26px !important;
  border-radius: 8px !important;
  border: none !important;
  font-size: 17px;
  width: auto !important;
  display: inline-block !important;
  transition: 0.25s ease-in-out;
  cursor: pointer;
}

/* Hover */
.btn-submit:hover,
.form-box button[type="submit"]:hover,
#contact button[type="submit"]:hover {
  background: var(--gold-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Center forms */
.form-box form,
#contact form {
  text-align: center;
}
.hero-links-mobile {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 768px) {
  .hero-links-mobile {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }
}
/* ✅ Fix 1px black line under hero video */
/* ✅ Modern correct hero height (fixes mobile viewport issues) */
:root {
  --vh: 1vh;
}

/* Update hero wrapper */
.video-hero {
  position: relative;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

/* Desktop & Mobile video */
.hero-video,
.hero-video-mobile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  object-fit: cover;
  transform: translate(-50%, -50%);
  display: block;
  z-index: 1;
}

/* Show mobile video only on mobile */
.hero-video-mobile { display: none; }

@media(max-width: 768px) {
  .hero-video { display: none; }
  .hero-video-mobile { display: block; }
}

/* Prevent layout jump under fixed header */
body {
  padding-top: 70px;
}

/* Smooth fix for iOS browser bar shrinking */
html, body {
  height: 100%;
  overflow-x: hidden;
}
/* ===============================
   ✅ Course Cards & Modal Styles
================================ */

.course-main-card {
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 20px;
  color: var(--green1);
}

.view-link {
  color: var(--green1);
  font-weight: 600;
  cursor: pointer;
}

.course-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.course-sub-card {
  border: 2px solid rgba(212,175,55,.4);
  padding: 18px;
  border-radius: 12px;
  background: white;
  transition: .2s;
}

.course-sub-card:hover {
  transform: translateY(-4px);
  background: #fff8dd;
}

.active-card {
  background: #ffefb4;
  border-color: var(--gold);
}
/* UPSC Page Styling */
.upsc-container {
  padding:80px 6%;
  max-width:1050px;
  margin:auto;
}

.upsc-title {
  font-weight:800;
  font-size:32px;
  color:var(--green1);
}

.upsc-box {
  background:#fff;
  border:1px solid rgba(212,175,55,.45);
  padding:25px;
  border-radius:12px;
  box-shadow:0 5px 14px rgba(0,0,0,.08);
  margin-bottom:40px;
}

.upsc-box ul li {
  margin-bottom:8px;
  font-size:16px;
  line-height:1.6;
}

.upsc-subtitle {
  font-weight:700;
  font-size:20px;
  color:var(--green1);
}

.back-btn {
  background:var(--gold);
  color:white;
  padding:10px 22px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
  transition:.3s;
}

.back-btn:hover { opacity:.85; }
/* UPSC Buttons – Gold Fill Hover + Green Text */
.upsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid #D4AF37; /* gold border */
  border-radius: 10px;
  font-weight: 600;
  background: #fff;
  color: #1d5821; /* deep green */
  transition: 0.3s ease;
  text-decoration: none;
  font-size: 16px;
}

/* Hover = Gold Fill, Green Text */
.upsc-btn:hover {
  background: #D4AF37; /* gold fill */
  border-color: #D4AF37;
  color: #1d5821; /* keep green text */
}

/* Active / Clicked */
.upsc-btn:active,
.upsc-btn.active {
  border-color: #D4AF37;
  background: #fff;
  color: #1d5821;
}

/* Icon size */
.upsc-btn i {
  font-size: 18px;
}
/* Courses Page Title */
.page-title-section {
  margin-top: 50px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #1b5e20; /* deep green */
}

.page-title-underline {
  width: 90px;
  height: 4px;
  background-color: #D4AF37; /* gold */
  margin: 8px auto 0;
  border-radius: 2px;
}
.btn-gold-filled {
  display: inline-block;
  background: #D4AF37; /* Gold */
  color: #1b5e20; /* Deep Green */
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #D4AF37;
  transition: 0.3s;
}

/* Hover effect - gold border & white inside */
.btn-gold-filled:hover {
  background: transparent;
  color: #1b5e20;
  border: 2px solid #D4AF37;
}
.btn-submit-popup {
  background: var(--gold) !important;
  color: var(--green1) !important;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  border: 2px solid var(--gold);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-submit-popup:hover {
  background: transparent !important;
  color: var(--green1) !important;
  border-color: var(--gold);
}
.btn-submit {
  background: #D4AF37 !important; /* gold */
  color: #124e24 !important; /* dark green */
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  border: none;
}

.btn-submit:disabled {
  opacity: 0.6;
}
/* ✅ Hero Section — White Background, Two Columns */
#heroBanner {
  width: 100%;
  padding: 120px 5% 80px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ✅ Form Left */
.hero-form {
  width: 420px;
  background: #ffffff;
  padding: 28px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0px 4px 15px rgba(0,0,0,0.08);
}

/* Form title */
.hero-form h2 {
  text-align: center;
  color: var(--green1);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 26px;
}

/* Inputs */
.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #bbb;
  border-radius: 8px;
}

/* Submit button */
.hero-form button {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--green1);
  font-weight: 700;
  border: none;
  border-radius: 8px;
}

/* Success text */
.hero-form #cb_success {
  display: none;
  text-align: center;
  margin-top: 8px;
  color: green;
  font-weight: 600;
}

/* Explore button */
.explore-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  background: var(--gold);
  padding: 10px;
  font-weight: 700;
  color: var(--green1);
  border-radius: 8px;
  text-decoration: none;
}
/* Center Explore Courses button under the form */
.hero-form .explore-btn {
  width: fit-content;
  padding: 10px 25px;
  display: block;
  margin: 12px auto 0 auto; /* centers it */
  text-align: center;
}
/* ✅ Mobile Layout — Video First, Form Below */
@media(max-width: 768px) {
  #heroBanner {
    flex-direction: column-reverse; /* ← video first, form below */
    padding-top: 110px;
    padding-bottom: 40px;
    gap: 20px;
  }

  .hero-form {
    width: 100%;
    margin-top: 10px;
  }

  .hero-video-wrap {
    width: 100%;
    max-width: 500px;   /* keeps nice size */
    margin: 0 auto;
  }

  #heroVideo {
    width: 100%;
    border-radius: 12px;
  }
}
/* ====== Discount Ticker ====== */
:root {
  --ticker-height: 44px;
  --ticker-fontsize: 16px;
  --ticker-speed: 18s;
}

.discount-ticker {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #ffd700 0%, #ffdd66 50%, #ffcc00 100%);
  color: green;
  font-weight: 700;
  font-size: var(--ticker-fontsize);
  line-height: var(--ticker-height);
  height: var(--ticker-height);
  overflow: hidden;
  display: block;
}

.discount-ticker__viewport {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.discount-ticker__track {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 3rem;
  animation: ticker-scroll var(--ticker-speed) linear infinite;
  will-change: transform;
  pointer-events: auto; /* enable pointer events */
}

/* Hover or tap to pause */
.discount-ticker__track:hover,
.discount-ticker__track:focus {
  animation-play-state: paused;
}

/* message blocks */
.discount-message {
  display: inline-block;
  padding: 0 2rem;
  white-space: nowrap;
}

/* Keyframes */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  :root { --ticker-fontsize: 14px; --ticker-height: 40px; --ticker-speed: 14s; }
  .discount-message { padding: 0 1rem; }
}

@media (min-width: 1200px) {
  :root { --ticker-fontsize: 18px; --ticker-height: 52px; --ticker-speed: 22s; }
}


/* Prevent animation from pausing on focus/hover (explicit) */
.discount-ticker__track:focus,
.discount-ticker__track:hover {
  animation-play-state: running !important;
}
.hero-banner {
  padding: 50px 5%;
}

.hero-form {
  width: 50%; /* increased from 45% */
  max-width: 480px;
}


.hero-img {
  width: 40%; /* reduced from 50% */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  width: auto;          /* Don't force full width */
  height: 550px;        /* Reduce height here — adjust as you like */
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;    /* Keeps image neat, doesn't distort */
}
/* 📱 Mobile Fix */
@media (max-width: 768px) {
  .hero-img img {
    width: 100% !important;
    height: auto !important; /* reset the fixed height for mobile */
    max-height: 400px;       /* optional max height limit */
    object-fit: contain;     /* keep full image visible */
  }

  .hero-banner {
    flex-direction: column;
  }

  .hero-form {
    width: 100%;
  }

  .hero-img {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
}
/* ================= TICKER BAR ================= */
.fee-ticker {
  position: sticky;
  top: 85px; /* adjust based on header */
  background: linear-gradient(90deg, #f2c94c, #f7d41b); /* gold gradient */
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  z-index: 999;
  padding: 8px 0;
  border-bottom: 2px solid #e5c118;
  -webkit-font-smoothing: antialiased;
}

/* ====== WRAPPER THAT SLIDES (2 COPIES SIDE BY SIDE) ====== */
.fee-track-wrap {
  display: flex;
  align-items: center;
  width: 200%; /* required: 2 copies => 200% */
  box-sizing: content-box;
  animation: scrollTicker 18s linear infinite;
  will-change: transform;

  /* ✅ GPU acceleration + flicker fix */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ====== EACH COPY ====== */
.fee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 60px; /* space between blocks */
  padding-left: 2%;
  box-sizing: content-box;
}

/* ====== INDIVIDUAL TEXT ITEMS ====== */
.fee-track span {
  display: inline-block;
  white-space: nowrap;
  font-weight: 600;
  color: #09310f; /* UPSC green */
  padding-right: 40px;
  font-size: 16px;
  line-height: 1;
}

/* ====== ANIMATION: moves left by 50% to reveal 2nd copy ====== */
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== PAUSE ON HOVER (optional, good UX) ====== */
.fee-ticker:hover .fee-track-wrap,
.fee-ticker:focus-within .fee-track-wrap {
  animation-play-state: paused;
}

/* ================= MOBILE FIXES ================= */
@media (max-width: 768px) {
  .fee-track span {
    font-size: 14px;
    padding-right: 30px;
  }
  .fee-track {
    gap: 40px;
    padding-left: 1.5%;
  }
  .fee-ticker {
    top: 85px;
  }
}

/* =============== WHATSAPP FLOAT (UNCHANGED) ================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  z-index: 99999;
  transition: 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
