@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary: #ea3d54;
  --primary-dark: #690202;
  --primary-gradient: linear-gradient(135deg, #ea3d54, #690202);
  --text-main: #1a1a1b;
  --text-muted: #5f6368;
  --bg-light: #f8f9fa;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: #fff;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.top-bar {
  background: var(--primary-gradient);
  color: white;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===============================
   NAVBAR – PREMIUM GLASSMORPHISM
================================ */

.main-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-header.scrolled {
  padding: 2px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(234, 61, 84, 0.1);
}

.logo {
  height: 80px;
  transition: var(--transition);
}

.scrolled .logo {
  height: 60px;
}

.custom-navbar {
  padding: 0;
}

.custom-menu .nav-link {
  position: relative;
  margin: 0 16px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.custom-menu .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
  transform: translateX(-50%);
}

.custom-menu .nav-link:hover::after,
.custom-menu .nav-link.active::after {
  width: 100%;
}

.custom-menu .nav-link.active,
.custom-menu .nav-link:hover {
  color: var(--primary);
}

/* ===============================
   MOBILE MENU & TOGGLER
================================ */

.custom-toggler {
  border: none;
  padding: 10px;
  background: transparent;
  position: relative;
  width: 45px;
  height: 45px;
}

.custom-toggler span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  margin: 6px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Hamburger to X Animation */
.custom-toggler:not(.collapsed) span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.custom-toggler:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

.custom-toggler:not(.collapsed) span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {

  /* Premium Side Panel Navigation */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    padding: 100px 40px;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* Above header */
    display: block !important;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    transform: translateX(-100%);
  }

  /* New Real Backdrop Overlay */
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .custom-menu .nav-link {
    margin: 0;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .custom-menu .nav-link::after {
    display: none;
  }
}

/* ===============================
   HERO SLIDER – SCOPED
================================ */

#hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

#hero .carousel-item {
  height: 80vh;
  min-height: 500px;
}

#hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transform: scale(1);
  transition: transform 6s ease-out;
}

#hero .carousel-item.active img {
  transform: scale(1.1);
}

#hero .carousel-caption {
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
}

#hero .carousel-caption h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

#hero .carousel-caption p {
  font-size: 1.25rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  #hero .carousel-item {
    height: 100vh;
  }

  #hero .carousel-caption {
    padding: 0 20px;
  }

  #hero .carousel-caption h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  #hero .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
}

.custom-indicators {
  bottom: 40px;
  gap: 12px;
}

.custom-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  opacity: 0.5;
  transition: var(--transition);
}

.custom-indicators button.active {
  opacity: 1;
  background: #fff;
  transform: scale(1.2);
}

/* ===============================
   ABOUT SECTION
================================ */

.section-padding {
  padding: 100px 0;
}

.about h2 {
  font-size: 3rem;
  margin-bottom: 25px;
}

.about p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.video-box {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .about h2 {
    font-size: 2.2rem;
  }
}

/* ===============================
   STATS – GLASS CARDS
================================ */

.stats {
  background: var(--primary-gradient);
  padding: 100px 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 45px 25px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  color: white;
}

.stat-card:hover {
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stat-card h3 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===============================
   NEWS & EVENTS CAROUSEL (FIXED)
================================ */

.news h2 {
  font-size: 3rem;
  margin-bottom: 60px !important;
}

/* Scoped to news-carousel to avoid leaking */
.news-carousel .carousel-item {
  height: auto;
  /* Ensure it doesn't use the hero height */
  min-height: 0;
  background: transparent;
  padding: 10px 0;
}

.news-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.news-content {
  padding: 30px;
}

.news-content h5 {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.news-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.news-content a {
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  transition: var(--transition);
}

.news-content a:hover {
  letter-spacing: 2px;
}

.news-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.news-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Custom Arrows for News */
.news-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  z-index: 5;
  transition: var(--transition);
}

.carousel-control-prev.news-arrow {
  left: -25px;
}

.carousel-control-next.news-arrow {
  right: -25px;
}

.news-arrow:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

/* Mobile spacing */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 30px;
    padding: 30px 15px;
  }

  .stat-card h3 {
    font-size: 2.8rem;
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  .news-card img {
    height: 180px;
  }

  .news-arrow {
    display: none;
  }
}

/* ===============================
   FOOTER (RESTORED BRAND COLOR)
================================ */

.footer {
  background: var(--primary-gradient);
  /* Restored to red gradient */
  color: white;
  padding: 100px 0 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 15px;
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* ===============================
   BUTTONS & MISC
================================ */

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(234, 61, 84, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(234, 61, 84, 0.4);
  filter: brightness(1.1);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(234, 61, 84, 0.2);
}

#backToTop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(234, 61, 84, 0.4);
}

/* Standard Contact Card */
.contact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-card .form-control {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.contact-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 61, 84, 0.1);
}

/* ===============================
   DOWNLOADS – PREMIUM PORTAL
================================ */

.downloads-header {
  background: var(--primary-gradient);
  padding: 80px 0;
  text-align: center;
  color: white;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.downloads-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.downloads-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.download-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.download-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.download-icon-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: inherit;
  filter: blur(15px);
  opacity: 0.3;
  z-index: -1;
}

.download-icon-box.pdf {
  background: var(--primary-gradient);
  color: #fff;
}

.download-icon-box.doc {
  background: linear-gradient(135deg, #0072ff, #004aad);
  color: #fff;
}

.download-body h5 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.download-actions {
  display: flex;
  gap: 12px;
}

.download-actions .btn {
  flex: 1;
  padding: 10px 15px;
  border-radius: 12px;
  font-weight: 600;
}

/* ===============================
   CONTACT – PREMIUM TWEAKS
================================ */

.contact-header {
  background: var(--primary-gradient);
  padding: 80px 0;
  text-align: center;
  color: white;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
}

.info-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.info-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(234, 61, 84, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.info-content h6 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--primary);
}

.info-content p {
  margin: 5px 0 0;
  font-weight: 500;
  color: var(--text-main);
}

.contact-card.premium-form {
  padding: 50px;
  border: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.premium-form .form-label {
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.premium-form .form-control {
  border: 2px solid #f1f1f1;
  border-radius: 15px;
  padding: 15px 20px;
  transition: var(--transition);
}

.premium-form .form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 10px 20px rgba(234, 61, 84, 0.05);
}

/* ===============================
   RESPONSIVE REFINEMENTS
================================ */

@media (max-width: 991px) {
  .logo {
    height: 55px;
  }

  .scrolled .logo {
    height: 45px;
  }

  .downloads-header h2,
  .contact-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
    /* Minimalist mobile look */
  }

  .section-padding {
    padding: 60px 0;
  }

  /* Hero Adjustments */
  #hero .carousel-caption h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.2;
  }

  /* Stats Adjustments */
  .stat-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .stat-card h3 {
    font-size: 2.5rem;
  }

  /* News Carousel Refinement */
  .news-carousel .row>[class*='col-'] {
    margin-bottom: 20px;
  }

  /* Footer Refinement */
  .footer {
    padding: 60px 0 30px;
    text-align: center;
  }

  .footer h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #fff;
    margin: 10px auto;
  }

  .footer ul li a:hover {
    padding-left: 0;
    opacity: 1;
  }
}

@media (max-width: 576px) {

  .downloads-header,
  .contact-header {
    padding: 60px 0;
  }

  .downloads-header h2,
  .contact-header h2 {
    font-size: 2rem;
  }

  .premium-form {
    padding: 30px 20px !important;
  }

  .info-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
}

/* ===============================
   ADMISSION MODAL – PREMIUM
================================ */

.admission-modal {
  border: none !important;
  border-radius: 24px;
  overflow: visible !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: transparent !important;
}

.admission-modal .admin-img {
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 24px !important;
}

.admission-modal .btn-close {
  background-color: var(--primary) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  opacity: 1 !important;
  padding: 12px;
  border-radius: 50%;
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 1060;
  box-shadow: 0 5px 15px rgba(234, 61, 84, 0.4);
  transition: var(--transition);
  border: 2px solid #fff !important;
}

.admission-modal .btn-close:hover {
  transform: scale(1.1) rotate(90deg);
  background-color: var(--primary-dark) !important;
}

@media (max-width: 768px) {
  .admission-modal .btn-close {
    top: 10px;
    right: 10px;
  }
}