/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --red: #BC2025;
  --red-dark: #8F1619;
  --blue: #261B40;
  --blue-dark: #1A1230;
  --mustard: #F2B705;
  --bg-light: #F8F9FA;
}

/* =====================================================
   GLOBAL STYLES
   ===================================================== */
body {
  margin: 0;
  font-family: 'Poppins', 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;
}

/* ===============================
   HERO SLIDER SECTION
================================= */
.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;
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeUp 1.2s ease-out;
}

.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 SCROLL BAR
================================= */
.hero-stats {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  padding: 1rem 0;
  z-index: 4;
}

.stats-wrapper {
  display: flex;
  gap: 3rem;
  animation: scrollStats 40s linear infinite;
  white-space: nowrap;
}

.stat-item {
  min-width: 150px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--mustard, #FFD700);
  margin: 0;
}

.stat-item p {
  font-size: 1rem;
  margin: 0;
  color: #f0f0f0;
  opacity: 0.85;
}

/* Navigation arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 5;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}
.hero-nav:hover { background: rgba(0,0,0,0.6); }
.hero-nav.prev { left: 2%; }
.hero-nav.next { right: 2%; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollStats {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   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: 12px;
  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;
}

/* Floating Admissions Timer */
.floating-timer {
  position: fixed;
  bottom: 90px;
  left: 20px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  animation: slideIn 0.8s ease forwards;
}

.timer-header {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
}

#countdown div {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 45px;
  text-align: center;
}

#countdown span {
  font-weight: 700;
  font-size: 1rem;
  display: block;
}

#countdown small {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 576px) {
  .floating-timer {
    bottom: 80px;
    left: 10px;
    right: 10px;
    font-size: 0.85rem;
    padding: 10px;
  }

  #countdown div {
    padding: 4px 5px;
    min-width: 40px;
  }
}

/* ===============================
   OUR PROCESS SECTION
=============================== */
.process-section {
  background: url('assets/images/10.jpg') center/cover no-repeat;
  padding: 80px 5%;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.process-section .container {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #ffd479;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

/* ---- Process Cards Layout ---- */
.process-steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
}

.process-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 30px 25px;
  width: 280px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
  scroll-snap-align: start;
}

.process-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

/* ---- Icons ---- */
.process-icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
  display: inline-block;
}

/* ---- Text ---- */
.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.process-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f2f2f2;
}

/* ---- Scrollbar ---- */
.process-steps::-webkit-scrollbar {
  height: 8px;
}
.process-steps::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.process-steps::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */
@media (max-width: 1024px) {
  .process-card {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .process-steps {
    flex-wrap: wrap;       /* stack vertically */
    justify-content: center;
    overflow-x: hidden;    /* disable horizontal scroll */
  }

  .process-card {
    width: 100%;
    max-width: 400px;
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .process-section {
    padding: 60px 20px;
  }

  .process-card {
    padding: 25px 20px;
  }

  .process-card h3 {
    font-size: 1rem;
  }

  .process-card p {
    font-size: 0.9rem;
  }

  .process-icon {
    font-size: 2.2rem;
  }
}

/* ===============================
   NEWS & EVENTS SECTION
=============================== */
.news-section {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  overflow: hidden;
  min-height: 90vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
}

.news-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('assets/images/9.jpg') center/cover no-repeat;
  z-index: 0;
  filter: brightness(0.4);
}

.news-container {
  position: relative;
  z-index: 1;
  padding: 60px 5%;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

.news-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Grid setup */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 260px;
  gap: 20px;
  overflow-y: auto;
  max-height: 65vh;
  padding-right: 10px;
  scrollbar-width: thin;
}

/* Card styling */
.news-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 10px 15px;
  font-size: 0.9rem;
}

.news-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.read-more {
  color: #ffd700;
  font-weight: bold;
  text-decoration: none;
}

/* Grid variations */
.news-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.news-card.tall {
  grid-row: span 2;
}

.news-card.wide {
  grid-column: span 2;
}

/* ===============================
   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;
  }
}
