/* ==========================================================================
   1. CORE VARIABLES & THEME
   ========================================================================== */
:root {
  --navy: #1a1b4b; /* Primary Institutional Color */
  --gold: #f2a900; /* Premium Gold Accent */
  --white: #ffffff;
  --light-gold: rgba(242, 169, 0, 0.1);
  --light-navy: rgba(26, 27, 75, 0.1);
}

/* Global Typography */
body {
  font-family: "Inter", "Outfit", sans-serif;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-nav {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Color Helper Classes */
.bg-navy {
  background-color: var(--navy) !important;
}
.bg-gold {
  background-color: var(--gold) !important;
}
.text-navy {
  color: var(--navy) !important;
}
.text-gold {
  color: var(--gold) !important;
}
/* ==========================================================================
   2. NAVIGATION: LOCKED HEADER & GLITCH-FREE MEGAMENU
   ========================================================================== */

/* ==========================================================================
   FINAL NAVIGATION: ZERO-GAP & LOCKED HEADER
   ========================================================================== */

/* 1. FIXED HEADER STABILITY
   Locked at 80px to ensure the logo and hamburger icon never move.
*/
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 2000;
  background-color: var(--white) !important;
  padding: 0 15px !important;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: none !important;
}

/* Fix for content hiding behind navbar */
.hero-section {
  margin-top: 80px !important;
}

/* 2. DESKTOP OPTIMIZATION (992px +) */
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding: 30px 15px !important; /* Spans 80px height exactly */
    line-height: 20px;
  }

  .has-megamenu {
    position: static !important;
  }

  .dropdown-menu.megamenu {
    width: 100%;
    left: 0;
    top: 80px; /* Sits flush with header */
    margin-top: 0;
    border: none;
    border-top: 4px solid var(--gold) !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    display: none;
  }

  .nav-item.dropdown:hover .dropdown-menu.megamenu {
    display: block;
  }
}

/* 3. MOBILE "GAP-REPAIR" LOGIC (Up to 991px)
   This specifically removes the gaps between menu items shown in your images.
*/
@media (max-width: 991px) {
  .navbar {
    height: 70px;
  }
  .hero-section {
    margin-top: 70px !important;
  }

  .navbar-collapse {
    position: fixed;
    top: 70px; /* Starts exactly where header ends */
    left: 0;
    width: 100%;
    background: white !important;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 0 !important; /* REMOVES TOP/BOTTOM GAP */
    border-top: 1px solid #eee;
  }

  /* Pulls Home, About, Courses together */
  .navbar-nav {
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-item {
    border-bottom: 1px solid #f8f9fa; /* Clean separation */
    width: 100%;
  }

  .nav-link {
    padding: 15px 20px !important; /* Strict internal spacing */
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  /* Course list inside mobile */
  .megamenu {
    max-height: 300px !important;
    overflow-y: auto !important;
    background: #fdfdfd !important;
    margin: 0 !important; /* REMOVES GAP */
    padding: 10px !important;
    border: none;
  }

  /* Fixed Apply Now Button at bottom of list */
  .navbar-collapse .btn-navy {
    margin: 20px !important;
    width: calc(100% - 40px);
    display: block;
    padding: 12px !important;
  }
}

/* Icon Alignment */
.dropdown-item i {
  width: 25px;
  color: var(--gold);
  margin-right: 10px;
  text-align: center;
}
/* ==========================================================================
   3. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-navy {
  background-color: var(--gold);
  color: white;
  border: 2px solid var(--gold);
  transition: 0.4s;
}

.btn-navy:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: white;
  transform: translateY(-2px);
}

.dropdown-item:hover {
  background-color: transparent !important;
  color: var(--gold) !important;
  transform: translateX(10px);
}

/* ==========================================================================
   4. HOME PAGE COMPONENTS (ABOUT, COURSES, SKILLS)
   ========================================================================== */

/* Shadow & Transition Effects */
.shadow-hover {
  transition: all 0.3s ease;
}

.shadow-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--gold) !important;
}

/* Course Cards */
.course-card {
  transition: all 0.3s ease;
  border: 1px solid #eee !important;
  background: #fff;
}

.category-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--light-gold);
  color: var(--gold);
  font-weight: 700;
}

/* Skill Progress Bars */

.progress {
  height: 6px;
  border-radius: 10px;
}
.progress-bar.bg-gold {
  background-color: var(--gold);
}
.progress-bar.bg-navy {
  background-color: var(--navy);
}

/* Founder Image */
.img-fluid {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
}

/* ==========================================================================
   5. SPECIALIZED SECTIONS (FAQ & GALLERY)
   ========================================================================== */

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
  background-color: #fcf6e6;
  color: var(--gold);
  box-shadow: none;
}

/* Gallery Interactivity */
.gallery-item {
  position: relative;
  cursor: pointer;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(26, 27, 75, 0.8));
  opacity: 0;
  transition: 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ==========================================================================
   6. FOOTER STYLING
   ========================================================================== */
.footer h5 {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.footer-links li a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.footer-links li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

/* ==========================================================================
   7. KEYFRAMES & UTILITIES
   ========================================================================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Laptop View Borders */
@media (min-width: 992px) {
  .border-end-lg {
    border-right: 1px solid #dee2e6;
  }
}
/* Premium Gold Gradient for Title */
.text-gold-gradient {
  background: linear-gradient(45deg, #f2a900, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Button Shadow & Glow */
.btn-gold {
  background-color: var(--gold) !important;
  border: none;
  color: var(--navy) !important;
  box-shadow: 0 10px 20px rgba(242, 169, 0, 0.3); /* Makes the pill shape visible */
  transition: all 0.3s ease;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(242, 169, 0, 0.4);
  background-color: #ffcc00 !important;
}

/* Letter Spacing for Subheadings */
.ls-2 {
  letter-spacing: 2px;
}

/* Animation for a modern feel */
.animate-fade-in {
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Responsive Stats Ribbon Fix */
@media (max-width: 767px) {
  .stats-ribbon {
    margin-top: 20px !important; /* Move it down on mobile */
    max-width: 95% !important; /* Give it more room */
    padding: 20px 10px !important;
  }

  .stats-ribbon .border-end {
    border-end: none !important; /* Remove borders that don't look good on mobile */
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}
/* Circular Icon Container */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

/* Hover lift effect */
.transition-up {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shadow-hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.1) !important;
  background: linear-gradient(to bottom, #ffffff, #fffdf9);
}

.shadow-hover:hover .icon-circle {
  transform: rotateY(180deg);
}

.bg-light-gold {
  background-color: rgba(242, 169, 0, 0.1);
}
.bg-light-navy {
  background-color: rgba(26, 27, 75, 0.1);
}
.ls-2 {
  letter-spacing: 2px;
}

.line-height-lg {
  line-height: 1.8;
}

.translate-middle-z-1 {
  transform: translate(15px, 15px);
}

.bg-navy {
  background-color: #1a1b4b !important;
}

/* Ensure the quote icon doesn't shift the layout */
.message-body i {
  display: block;
}
/* Shine effect for progress bars */
.progress-glow {
  position: relative;
  overflow: hidden;
}

.progress-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.elite-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid transparent;
  transition: all 0.4s ease;
}

.elite-card:hover {
  border-bottom-color: var(--gold);
}

.bg-light-gold {
  background-color: #fcf6e6;
}
.bg-light-navy {
  background-color: #e8e9ef;
}
.recognition-card {
  background: #ffffff;
  transition: all 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.institutional-logo {
  max-height: 70px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.recognition-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 10px 25px rgba(242, 169, 0, 0.1) !important;
  transform: translateY(-5px);
}

.recognition-card:hover .institutional-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.x-small {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hover-gold:hover {
  color: var(--gold) !important;
  padding-left: 5px;
  transition: all 0.3s ease;
}
.social-icons .btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy) !important;
}
.ls-1 {
  letter-spacing: 1px;
}
.ls-2 {
  letter-spacing: 2px;
}

.hover-white:hover {
  color: #ffffff !important;
  transition: 0.3s ease;
}

/* Ensure breadcrumb separator is white */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}
.bg-light-gold {
  background-color: rgba(242, 169, 0, 0.1);
}
.ls-2 {
  letter-spacing: 2px;
}
.lead-sm {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Custom hover to keep the card distinct */
.bg-navy.shadow-hover:hover {
  background-color: #1e1f5a !important;
  transform: translateY(-10px);
}
/* Fix for invisible text on hover in the Mission Card */
.mission-card {
  background-color: var(--navy) !important;
}

/* Forces text color to remain white/light during all hover states */
.mission-card:hover h3,
.mission-card:hover p,
.mission-card:hover i {
  color: var(--navy) !important;
}

.mission-card:hover .text-gold {
  color: var(--gold) !important; /* Keeps the gold icon gold */
}

/* Lead text style */
.lead-sm {
  font-size: 1.05rem;
  line-height: 1.8;
}
.recognition-elite {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 20px;
}

.recognition-elite:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 31, 63, 0.1) !important;
}

.bg-light-navy {
  background-color: rgba(26, 27, 75, 0.1);
}
.bg-light-gold {
  background-color: rgba(242, 169, 0, 0.1);
}
.bg-navy-light {
  background-color: #eef2f7;
}
.bg-gold-light {
  background-color: #fdf6e6;
}
.text-gold-dark {
  color: #855d00;
}
/* Glassmorphism Card Style */
.infra-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.infra-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-15px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(242, 169, 0, 0.1);
}

/* Icon Animation & Glow */
.infra-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold), #ffcc00);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(242, 169, 0, 0.2);
  transition: 0.5s ease;
}

.infra-card:hover .infra-icon-wrapper {
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 0 30px rgba(242, 169, 0, 0.4);
}

/* Grid Line Animation */
.animated-grid-lines {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(242, 169, 0, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(242, 169, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.ls-3 {
  letter-spacing: 3px;
}
.bg-gold-gradient {
  background: linear-gradient(90deg, var(--gold), #ffcc00);
}
.bg-light-gold { background-color: rgba(242, 169, 0, 0.1); }
.bg-light-navy { background-color: rgba(26, 27, 75, 0.1); }
.ls-1 { letter-spacing: 1px; }

/* Mobile Adjustment */
@media (max-width: 767px) {
    .border-end { border-right: none !important; border-bottom: 1px solid #f1f1f1; padding-bottom: 10px; }
    section[style*="margin-top: -30px"] { margin-top: 20px !important; border-radius: 15px !important; }
}
