/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --red: #BC2025;
  --red-dark: #8F1619;
  --blue: #261B40;
  --blue-dark: #1A1230;
  --mustard: #F2B705;
  --bg-light: #F8F9FA;
}

/* =====================================================
   GLOBAL STYLES
   ===================================================== */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================================================
   NAVBAR STYLES
   ===================================================== */
.custom-navbar {
  background-color: rgba(38, 27, 64, 0.3); /* translucent navy tint */
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.custom-navbar.scrolled {
  background-color: var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  height: 70px;
}

.nav-link {
  color: white;
  font-weight: 500;
  position: relative;
  padding: 10px 16px;
  transition: color 0.3s ease;
  z-index: 1;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background-color: var(--mustard);
  border-radius: 6px;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: -1;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link:hover::before {
  height: 100%;
  opacity: 1;
}

/* Dropdown menu */
.dropdown-menu {
  background-color: var(--blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s ease;
}

.dropdown-item {
  color: white;
  padding: 10px 16px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: color 0.3s ease;
  z-index: 1;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background-color: var(--mustard);
  opacity: 0;
  z-index: -1;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  color: var(--blue);
}

.dropdown-item:hover::before {
  height: 100%;
  opacity: 1;
}

/* Brand name beside logo */
.brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

/* Apply Now button styling */
.btn-apply {
  background-color: var(--mustard);
  color: var(--blue-dark);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background-color: var(--blue-dark);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ===== Brand beside logo ===== */
.brand-name {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ===== Apply button ===== */
.btn-apply {
  background-color: var(--mustard);
  color: var(--blue-dark);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background-color: var(--blue-dark);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ===== Hamburger color for visibility ===== */
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== Mobile navbar scroll shrink ===== */
@media (max-width: 992px) {
  .custom-navbar.scrolled {
    background-color: rgba(10, 31, 68, 0.95);
    padding: 4px 10px;
  }
  .custom-navbar .logo {
    height: 55px;
    transition: height 0.3s ease;
  }
  .custom-navbar.scrolled .logo {
    height: 45px;
  }
}

/* ===============================
   UNIVERSAL HERO SLIDER
   Applies to all pages except homepage
=============================== */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; z-index: 2; }

/* Overlay for darkening images */
.hero-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(38, 27, 64, 0.6);
  z-index: 1;
}

/* Universal hero content - no box */
.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeUp 1.2s ease-out;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-btn {
  background: #004aad;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hero-btn:hover { background: #002f73; }

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  padding: 1rem 0;
  z-index: 4;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   HOMEPAGE HERO SLIDER
   Unique glassy box and lighter overlay
=============================== */
.home-hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Slides */
.home-hero .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.home-hero .hero-slide.active { opacity: 1; z-index: 1; }

/* Lighter overlay */
.home-hero .hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 30, 0.40);
  z-index: 2;
}

/* CAD-style glassy hero box */
.home-hero .home-hero-content {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  width: min(420px, 45%);
  z-index: 3;
  text-align: left;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 30px rgba(4,8,20,0.45);
  padding: 28px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Typography inside homepage box */
.home-hero .home-hero-content h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 0.4rem;
}

.home-hero .home-hero-content p.lead {
  margin-bottom: 1rem;
  opacity: 0.95;
}

/* Admissions info styling within homepage glassy box */
.home-hero .home-hero-content .admissions-info {
  color: #fff; /* keep text white */
  line-height: 1.5;
  font-size: 1rem;
}

.home-hero .home-hero-content .admissions-info ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
}

.home-hero .home-hero-content .admissions-info li {
  margin-bottom: 0.3rem;
}

/* CTA Button */
.home-hero .home-hero-content .btn {
  border-radius: 28px;
  padding: 0.6rem 1.25rem;
}

/* Entrance animation */
.home-hero .home-hero-content.animate {
  animation: leftSlideFade 700ms cubic-bezier(.2,.8,.2,1);
}

@keyframes leftSlideFade {
  0% { opacity: 0; transform: translateY(-50%) translateX(-28px) scale(0.99); }
  60% { opacity: 1; transform: translateY(-50%) translateX(6px) scale(1.01); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}

/* Stats bar for homepage */
.home-hero .hero-stats {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .home-hero .home-hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.12);
  }
  .home-hero .hero-slide::before { background: rgba(10,12,30,0.55); }
}

@media (max-width: 576px) {
  .home-hero .home-hero-content {
    padding: 18px;
    border-radius: 10px;
  }
  .home-hero .home-hero-content h1 { font-size: 1.5rem; }
}

/* ========= RIGHT-SIDE HEADLINE ========= */
.home-hero-headline {
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 40%;
  z-index: 6;
  pointer-events: none;

  opacity: 0;
  animation: fadeSlide 1.2s ease-out forwards;
}

.welcome-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

/* Bloomberg-style gradient highlight */
.brand-gradient {
  background: linear-gradient(90deg, #c41e3a, #ff5f5f, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ========= GLASS BOX TEXT ========= */
.admission-main {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ========= SMOOTH ANIMATION ========= */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

//* ========= MOBILE VIEW ========= */
@media (max-width: 768px) {

  /* Make the hero section column-flex */
  .home-hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  /* Move welcome text ABOVE the glass box */
  .home-hero-headline {
    position: relative;   /* remove absolute positioning */
    top: auto;
    transform: none;
    text-align: center;
    max-width: 100%;
    margin-bottom: 1rem;
    order: -1;            /* ensures it comes before the box */
    opacity: 0;
    animation: fadeSlideMobile 1s ease-out forwards;
  }

  .home-hero-content {
    position: relative;   /* remove absolute positioning */
    left: auto;
    margin-top: 0.2rem;
    width: calc(100% - 40px); /* responsive width */
    max-width: 420px;
    text-align: center;
  }

  @keyframes fadeSlideMobile {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* =====================================================
   PRINCIPAL MESSAGE SECTION
   ===================================================== */
.principal-message {
  background-color: var(--bg-light);
  color: var(--blue);
}

.principal-message h2 {
  color: var(--red);
  font-weight: 600;
}

.principal-message p {
  font-size: 1.1rem;
}

.principal-message img {
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}



/* =====================================================
   PRE-FOOTER SECTION
   ===================================================== */
.pre-footer {
  background-color: var(--blue);
  color: white;
  padding: 3rem 0;
}

.pre-footer-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--mustard);
}

.pre-footer-links li {
  margin-bottom: 0.5rem;
}

.pre-footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pre-footer-links a:hover {
  color: var(--red);
}

.pre-footer .btn-primary {
  background-color: var(--mustard);
  color: var(--blue);
  border: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.pre-footer .btn-primary:hover {
  background-color: #d49e04;
  color: #fff;
}

/* =====================================================
   GALLERY STYLES
   ===================================================== */
.hero-gallery {
  height: 45vh;
  background: linear-gradient(rgba(38, 27, 64, 0.6), rgba(38, 27, 64, 0.6)),
              url('/assets/images/gallery/7.jpg') center/cover no-repeat;
}

.gallery-section {
  background: #fff;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  padding: 6px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* =====================================================
   CONTACT PAGE STYLES
   ===================================================== */
.hero-contact {
  height: 40vh;
  background: linear-gradient(rgba(38, 27, 64, 0.6), rgba(38, 27, 64, 0.6)),
              url('/assets/images/contact/hero-contact.jpg') center/cover no-repeat;
}

.contact-section {
  background: #fff;
}

.contact-details li {
  margin-bottom: 8px;
  color: var(--blue);
}

.contact-form {
  background: #f9f9f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .btn-primary {
  background-color: var(--red);
  border: none;
  transition: background 0.3s ease;
}

.contact-form .btn-primary:hover {
  background-color: var(--blue);
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section {
  padding: 0;
  background-color: #f8f9fa; /* optional: soft neutral background */
}

.map-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px; /* gives your map soft edges consistent with your site style */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* =====================================================
   CURRICULUM SECTION
   ===================================================== */
.curriculum-section {
  background-color: #fff;
}

.curriculum-section .section-title {
  font-weight: 700;
  color: var(--blue);
}

.curriculum-section .section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
}

.curriculum-card {
  position: relative;
  height: 350px;
  border-radius: 0px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.curriculum-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 27, 64, 0.65);
  transition: background 0.4s ease;
}

.curriculum-card .card-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.curriculum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.curriculum-card:hover .overlay {
  background: rgba(188, 32, 37, 0.65);
}

.curriculum-card .btn-outline-light {
  border-color: #fff;
  color: #fff;
  transition: all 0.3s ease;
}

.curriculum-card .btn-outline-light:hover {
  background-color: #fff;
  color: var(--blue);
}

/* =====================================================
   FLOATING BUTTONS
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: #25d366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  width: 45px;
  height: 45px;
  display: block;
}


/* ===== OUR PROCESS SECTION STYLES ===== */
.process-section {
  position: relative;
  background: linear-gradient(-45deg, #c2002f, #0a1f44, #d7263d, #13293d);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: #fff;
  padding: 90px 20px;
  overflow: hidden;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.process-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 60, 0.7);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.process-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #ffd;
  margin-bottom: 3rem;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Process Steps */
.process-steps {
  display: grid;
 grid-template-columns: repeat(3, 1fr); /* 3 columns desktop */
  gap: 2rem;                          /* space between cards */
  justify-items: center;               /* center cards horizontally */
  align-items: stretch;                /* make cards same height */
  text-align: center;
  margin-top: 2rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0px;
  padding: 2rem 1rem;
  width: 100%;        /* card fills the column */
  max-width: 320px;   /* prevent cards from being too wide */
  text-align: center;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  opacity: 1;
}

.process-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.process-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.process-card p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
}

@media (max-width: 576px) {
  .process-steps {
    grid-template-columns: 1fr; /* 1 column for mobile */
  }
  .process-card {
    max-width: 100%;
    padding: 1.5rem;
  }
}

.process-card.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== PROCESS BACKGROUND IMAGE ===== */
.process-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) contrast(1.05) saturate(1.1);
  transition: filter 0.6s ease;
}

/* Gradient overlay on top of image */
.process-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    rgba(194, 0, 47, 0.55),
    rgba(10, 31, 68, 0.75),
    rgba(194, 0, 47, 0.55)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  mix-blend-mode: multiply;
  z-index: 2;
  opacity: 0.9;
}

/* Gradient animation for the overlay */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Bring text and cards above everything */
.process-section .container {
  position: relative;
  z-index: 3;
}



/* ===============================
   CALENDAR STYLING
================================= */
.calendar-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  position: sticky;
  top: 100px;
  /* removed scroll */
  max-height: none;
  overflow: visible;
  font-family: sans-serif;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-controls button {
  background: none;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

/* Days of week headers */
.calendar-grid div.day-header {
  font-weight: bold;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}

/* Current month days */
.current-month {
  color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

/* Faded days (prev/next month) */
.faded {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

/* Event days */
.event-day {
  border: 1px solid #ffd700;
  font-weight: 600;
}

/* Selected day */
.selected {
  background: #ffd700;
  color: #000;
  font-weight: bold;
}

/* Hover effect */
.calendar-grid div:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
  .calendar-card {
    position: relative;
    top: 0;
    max-height: none;
  }
}