body {
  font-family: 'Roboto', sans-serif;
  color: #222;
  background: #fff;
}

.school-name {
  font-family: 'Bodoni MT Black', serif;
  font-size: 1.2rem;
  color: #fff;
}

.logo {
  height: 40px;
}

.custom-navbar {
  background-color: #003366;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
}

.navbar-nav .dropdown-menu {
  background-color: #fff;
}

.custom-navbar .nav-link:hover {
  color: #ffc107; /* Optional hover color (yellow from your theme) */
}

.navbar-nav .dropdown-item:hover {
  background-color: #97835d;
}

.navbar .btn-outline-warning:hover {
  background-color: #ffc107;
  color: #003366;
  border-color: #ffc107;
}


/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

#typing-text {
  font-size: 2.2rem;
  font-weight: bold;
}

.hero-content-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Fade-in Background Carousel */
.bg-carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-layer.active {
  opacity: 1;
}

.bg-layer::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(48, 45, 45, 0.5); /* dark overlay */
}


/* Carousel */
.carousel-section {
  margin-top: 30px;
}

.carousel-inner img {
  height: 400px;
  object-fit: cover;
}

.bg-carousel {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.bg-carousel.fade {
  opacity: 0;
}

.bg-carousel.fade.active {
  opacity: 1;
}

.bg-carousel .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

#announcement-flyin.fade-out {
  opacity: 0;
  pointer-events: none;
}

.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
  }
}


@keyframes slideIn {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flyin-content h2 {
  font-size: 2rem;
  color: #002147;
  margin-bottom: 1rem;
}

.flyin-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

.announcement-flyin {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* Show using JS */
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.flyin-content {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}


.flyin-image-wrapper img {
  width: 100%;
  height: 100vh;          /* full screen height on desktop */
  object-fit: contain;    /* show full image without cropping */
  display: block;
  background-color: #000; /* fills empty space (letterbox effect) */
}

@media (max-width: 767.98px) {
  .flyin-image-wrapper img {
    width: 100%;
    height: auto;         /* scale naturally on mobile */
    max-height: 100vh;    /* never exceed screen height */
    object-fit: contain;  /* keep the full image visible */
  }
}


.custom-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #000;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

  @media (max-width: 768px) {
  .flyin-content {
    padding: 2rem 1rem;
  }
}

  .flyin-content h2 {
    font-size: 1.5rem;
  }

  /* Fly-in side animations */
.flyin-left {
  animation: slideInLeft 1s ease forwards;
  transform: translateX(-100%);
  opacity: 0;
}
.flyin-right {
  animation: slideInRight 1s ease forwards;
  transform: translateX(100%);
  opacity: 0;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* Footer */
.footer {
  background-color: #002147;
  color: #fff;
}

/* Navbar dropdown hover */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Feature Section */
.feature-section {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.feature-grid {
  border-radius: 20px;
  padding: 40px 20px;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 28px;
  border-radius: 50%;
  color: #fff;
  margin-bottom: 10px;
}

/* Feature Boxes */
.feature-box-1 {
  background-color: #f9f9ff;
}
.feature-box-1 .icon-wrap {
  background-color: #4e6ef2;
}

.feature-box-2 {
  background-color: #fff9f0;
}
.feature-box-2 .icon-wrap {
  background-color: #f0ad4e;
}

.feature-box-3 {
  background-color: #f0fff7;
}
.feature-box-3 .icon-wrap {
  background-color: #1abc9c;
}

.feature-box-4 {
  background-color: #fef4f7;
}
.feature-box-4 .icon-wrap {
  background-color: #e83e8c;
}

.feature-box-5 {
  background-color: #f3faff;
}
.feature-box-5 .icon-wrap {
  background-color: #17a2b8;
}

.feature-box-6 {
  background-color: #f8f9f5;
}
.feature-box-6 .icon-wrap {
  background-color: #5cb85c;
}

/* Typography */
.feature-grid h6 {
  font-size: 1rem;
  color: #002147;
}

.feature-grid p {
  color: #555;
  font-size: 0.85rem;
}

.feature-grid a {
  color: #0056b3;
}

/* Themed section */
.themed-bg {
  background-color: #f9f9ff;
}

/* About Section */
.about-section h2 {
  font-size: 2rem;
  color: #002147;
}
.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.about-border {
  border-left: 5px solid #002147;
}

.video-wrapper {
  position: relative;
  display: inline-block;
}

.video-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.video-wrapper:hover .video-icon-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}


/* Animations on hover */
.feature-grid .col {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.feature-grid .col:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Buttons hover */
.theme-buttons-section a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-weight: 500;
}
.theme-buttons-section a:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Anthem Button */
.anthem-btn {
  background-color: #002147;
  color: #fff;
  transition: all 0.3s ease;
}
.anthem-btn:hover {
  background-color: #001730;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Testimonials */
.testimonials-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background-color: #fff;
  border-left: 5px solid #002147;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.testimonial-card img {
  object-fit: cover;
}

.heading-highlight {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: #ffc107;
}
.heading-highlight::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 60%;
  height: 4px;
  background-color: #ffc107;
  transform: translateX(-50%);
  border-radius: 2px;
}

.testimonial-slide {
  max-width: 700px;
  margin: auto;
}

.heading-underline {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: #002147;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 60%;
  height: 3px;
  background-color: #002147;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Student Cards */
.student-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid #0d6efd;
}
.student-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Council Cards */
.council-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.council-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}
.council-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #002147;
}

/* Affiliation Cards */
.affiliation-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.affiliation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Events */
.events-section h2 {
  font-size: 2rem;
}
.event-card {
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.event-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-bottom: 4px solid #002147;
}

.calendar-container iframe {
  border-radius: 12px;
}

.object-fit-cover {
  object-fit: cover;
  height: 100%;
}

.student-card img {
  border: 3px solid #0d6efd;
  transition: transform 0.3s ease;
}
.student-card img:hover {
  transform: scale(1.05);
}


.principal-section {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.modal-content {
  border: none;
}

.modal-body img {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* views starts*/


/* view ends */

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateY(-2px);
}

.footer a:hover {
  color: #ffc107 !important;
}


.calendar-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Director, principal, vp and hods section */
.section-title {
  font-size: 1.5rem;
}

.section-underline {
  width: 60px;
  height: 3px;
  background-color: #ffc107;
  border: none;
  margin-top: 8px;
}


/* princpal and director */
.team-img-lg {
  width: 300px;
  height: 350px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

/* Vice Principals – */
.team-img-md {
  width: 80%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

/* HODs */
.team-img-sm {
  width: 80%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

/* Hover effect */
.team-card:hover img {
  transform: scale(1.05);
}

/* award style */
.section-underline {
  width: 60px;
  height: 3px;
  background-color: #ffc107;
  border: none;
}

.award-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.award-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.img-main.active,
.img-alt.active {
  opacity: 1;
  z-index: 2;
}

/* Toggle button */
.img-toggle-btn {
  z-index: 10;
  font-size: 0.8rem;
}

/* Modal zoom styling */
.zoom-container {
  overflow: hidden;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-img {
  transition: transform 0.4s ease;
  max-height: 90vh;
  cursor: zoom-in;
}

.zoom-img:hover {
  transform: scale(1.2);
}



/*  recent event additional css */
.filter-btn.active {
  background-color: #003366;
  color: #fff;
}
