/* Global Styles */
:root {
  --primary-blue: #005fa5;
  --secondary-blue: #0073cc;
  --light-blue: #e6f3ff;
  --dark-blue: #004080;
  --accent-blue: #3399ff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --border-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Header Styles */
.header-section {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand .logo {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

.brand-text h4 {
  color: var(--primary-blue);
  font-weight: 600;
  margin: 0;
  font-size: 1.2rem;
}

.brand-text p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgb(0 95 165 / 23%),
    rgb(0 115 204 / 72%)
  ); */
  display: flex;
  align-items: center;
  color: var(--white);
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
  /* Ensure white text color */
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
  /* Ensure white text color */
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
  margin-right: 1rem;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  /* Ensure button text has proper contrast */
  text-shadow: none;
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
}

.hero-prev,
.hero-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--white);
}

/* Quick Info Section */
.quick-info-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
  width: 80px;
  height: 80px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.info-icon i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.info-card h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Preview Section */
.about-preview-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.feature-list li i {
  margin-right: 1rem;
}

/* News & Events Section */
.news-events-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-blue);
}

.news-item,
.event-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-item:hover,
.event-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-date,
.event-date {
  background: var(--primary-blue);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-right: 1.5rem;
  min-width: 80px;
}

.news-date .day,
.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.news-date .month,
.event-date .month {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.news-content h5,
.event-content h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-content p,
.event-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--dark-blue);
}

.event-time {
  color: var(--text-light);
  font-size: 0.9rem;
}

.event-time i {
  margin-right: 0.5rem;
}

/* Footer */
.footer-section {
  /* background: var(--text-dark); */
  background-color: #1b1464de;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-widget h5,
.footer-widget h6 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-blue);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-info p {
  margin-bottom: 0.8rem;
  color: #cbd5e1;
}

.contact-info i {
  color: var(--primary-blue);
  margin-right: 0.8rem;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .info-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    display: block;
    margin: 0.5rem auto;
    text-align: center;
    width: 200px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .news-item,
  .event-item {
    flex-direction: column;
    text-align: center;
  }

  .news-date,
  .event-date {
    margin: 0 auto 1rem;
  }

  /* Better mobile navigation */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 450px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .quick-info-section,
  .about-preview-section,
  .news-events-section,
  .content-section {
    padding: 50px 0;
  }

  /* Better mobile card layouts */
  .info-card {
    padding: 1.5rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-content .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Page-specific styles */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  width: 100%;
  background: url('../images/bgheader.jpg') no-repeat center center/cover;
  color: var(--white);
  /* padding: 80px 0 60px; */
  padding: 7px 0 2px;
  text-align: center;
}

.page-title {
  /* font-size: 3rem; */
  font-weight: 700;
  margin-bottom: 1rem;
  background-color: #00000026;
  border-radius: 20px;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  background-color: #00000026;
  display: none;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  /* margin-top: 2rem; */
   background-color: #00000026;
  border-radius: 20px;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--white);
}

.content-section {
  padding: 80px 0;
}

.card {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 2 / 1;    /* makes image a square */
  object-fit: cover;       /* crops nicely */
  border-radius: 10px;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.05);
}

.section-header {
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.section-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #87cefa;
  /* light blue */
  margin: 0.5rem auto 0;
  border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-item:hover {
  color: blue;
  background-color: rgba(255, 255, 255, 0.1);

  text-decoration: none;
}


.navbar-toggler, .collapsed{
  background-color: black !important;
}

.nav .nav-link.show {
    color: blue !important;
}



/* Pop-up container */
.apply-now-popup {
  position: fixed;
  bottom: 65px;
  left: -20px;
  z-index: 1080;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  padding: 12px 20px;
  border-radius: 50px;
  overflow: visible;
  animation: slideIn 0.6s ease;
  rotate:-90deg;
}

/* Button styling */
.apply-now-btn {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.apply-now-btn:hover {
  color: #ffe484;
  transform: scale(1.05);
}

/* Wave animation ring */
.wave-ring {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: wavePulse 2.5s ease-out infinite;
}

.wave-ring.delay {
  animation-delay: 1.25s;
}

/* Pulse keyframes */
@keyframes wavePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

/* Entry animation */
@keyframes slideIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* âœ… Mobile responsiveness + hide waves */
@media (max-width: 576px) {
  .apply-now-popup {
    left: -20px;
    bottom: 55px;
    padding: 10px 16px;
  }

  .apply-now-btn {
    font-size: 14px;
  }

  /* ðŸ‘‡ Hide waves on mobile */
  .wave-ring {
    display: none !important;
  }
}



/*.notice-ribbon {*/
/*  background-color: #87CEEB;*/
/*  color: #721c24; */
/*  padding: 0.5rem 1rem;*/
/*  overflow: hidden;*/
/*  white-space: nowrap;*/
/*  position: relative;*/
/*}*/

/*.notice-ribbon .scrolling-text {*/
/*  display: inline-block;*/
/*  padding-left: 100%;*/
/*  animation: scroll-left 30s linear infinite;*/
/*}*/

/*@keyframes scroll-left {*/
/*  0% {*/
/*    transform: translateX(0%);*/
/*  }*/
/*  100% {*/
/*    transform: translateX(-100%);*/
/*  }*/
/*}*/

.notice-ribbon {
  background-color: #87CEEB;
  color: #721c24; /* Dark red text */
  padding: 0.5rem 1rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.notice-ribbon .scrolling-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 40s linear infinite;
}

/* Pause the animation on hover */
.notice-ribbon:hover .scrolling-text {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}




/* Make sure collapse content appears horizontal on desktop */
@media (min-width: 992px) {
  #navbarNav {
    display: none; /* initially hidden on desktop */
  }

  #navbarNav.show {
    display: flex !important; /* show as flex on toggle */
    justify-content: center;
  }

  .navbar-nav {
    flex-direction: row;
    gap: 0.5rem;
  }

  .dropdown-menu {
    position: absolute;
  }
}

/* Optional: adjust spacing */
.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
}


@media (min-width: 992px) {
  .dropdown-menu .show{
    position: absolute !important;
  }

  .navbar-nav .dropdown-menu{
    position: absolute !important;
  }
}

@media (max-width: 576px) {
  .dropdown-item{
    text-align: center !important;
  }
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: rgb(59, 188, 211) !important;
}


.navbar-brand{
    flex: 1;
    justify-content: center;
}




header.sticky-top, 
header .navbar {
    position: sticky !important;
    top: 0;
    z-index: 1050;
    background: #fff;
}
.notice-ribbon {
    position: sticky;
    top: 0;
    z-index: 1100;
    /*background: #fff;*/
    font-weight:bold;
}
header.sticky-top {
    top: 40px;
}

.admission-modal .modal-content{
    z-index:555;
}



.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}


header.sticky-top.scrolled nav.navbar {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Fancybox wrapper (background overlay) */
.fancybox__container {
    z-index: 9999 !important;
}

/* Fancybox content (the popup image) */
.fancybox__content {
    z-index: 10000 !important;
}
