/* Custom CSS to supplement Bootstrap */

/* Global Styling Overrides */
body {
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  font-family: "Arial", sans-serif;
}

/* Header & Navbar Styling */
.navbar {
  background-color: #2c3e50 !important;
  padding: 15px 0;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-light .navbar-nav .nav-link {
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #f39c12;
}

/* Style for dropdown menu */
.dropdown-menu {
  background-color: #34495e;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  color: white;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #2c3e50;
  color: #f39c12;
}

.navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Banner Layout */
#banner {
  background-color: #f4f4f4;
  padding: 50px 0;
}

.banner-slideshow {
  position: relative;
  height: 60vh;
  max-height: 620px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  animation: none;
}

.banner-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 15s infinite;
  transition: opacity 1s ease-in-out;
}

/* Slide backgrounds */
.banner-slideshow .slide:nth-child(1) {
  background-image: url("home_image/PHOTO-2025-04-22-11-43-33.jpg");
  animation-delay: 0s;
}
.banner-slideshow .slide:nth-child(2) {
  background-image: url("home_image/PHOTO-2025-04-22-11-48-07.jpg");
  animation-delay: 5s;
}
.banner-slideshow .slide:nth-child(3) {
  background-image: url("home_image/PHOTO-2025-03-09-01-04-07.jpg");
  animation-delay: 10s;
}

/* Pause on hover */
.banner-slideshow:hover .slide {
  animation-play-state: paused;
}

/* Keyframes for slideshow */
@keyframes slideShow {
  0% {
    opacity: 0;
    z-index: 1;
  }
  5% {
    opacity: 1;
    z-index: 2;
  }
  30% {
    opacity: 1;
    z-index: 2;
  }
  35% {
    opacity: 0;
    z-index: 1;
  }
  100% {
    opacity: 0;
    z-index: 1;
  }
}

/* Slide Content */
.banner-slideshow .card-body {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.banner-slideshow h1 {
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-size: clamp(1.5rem, 5vw, 42px);
  margin-bottom: 20px;
}

.banner-slideshow p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-size: clamp(1rem, 2.5vw, 20px);
}

/* Slide Indicators */
.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: indicatorFade 15s infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 5s;
}
.dot:nth-child(3) {
  animation-delay: 10s;
}

@keyframes indicatorFade {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1);
  }
  5%,
  30% {
    background: #ffffff;
    transform: scale(1.3);
  }
}

/* About Section */
#about {
  padding: 50px 0;
}

#about .card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#about .card:hover {
  transform: translateY(-5px);
}

#about h2 {
  color: #0e64acaf;
  font-size: 2rem;
}

#about p {
  color: #5a5a5ae3;
  font-size: 1.1rem;
}

#about img {
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Featured Video Section */
#featured-video {
  padding: 50px 0;
}

#featured-video .card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#featured-video .card:hover {
  transform: translateY(-5px);
}

#featured-video h2 {
  color: #0e64acaf;
  font-size: 2rem;
}

#featured-video h3 {
  color: #444;
  font-size: 1.5rem;
}

#featured-video p {
  color: #5a5a5ae3;
  font-size: 1.1rem;
}

#featured-video .ratio {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#featured-video .btn {
  background-color: #e74c3c;
  border-color: #e74c3c;
  transition: all 0.3s ease;
}

#featured-video .btn:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
}

/* Content Section */
#content {
  background-color: #f4f4f4;
  padding: 50px 0;
}

#content .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(208, 112, 27, 0.4);
  transition: transform 0.3s ease;
}

#content .card:hover {
  transform: scale(1.02);
}

#content img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(210, 100, 5, 0.3);
}

#content h2 {
  color: #0e64acaf;
  font-size: 1.8rem;
}

#content p {
  color: #5a5a5ae3;
  font-size: 1.1rem;
}

/* Current Programs/Gallery Preview Section */
#current-programs {
  padding: 50px 0;
}

#current-programs .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

#current-programs .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

#current-programs .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

#current-programs .card:hover .card-img-top {
  transform: scale(1.05);
}

#current-programs h2 {
  color: #0e64acaf;
  font-size: 2rem;
  margin-bottom: 30px;
}

#current-programs .card-title {
  font-weight: bold;
  color: #444;
}

#current-programs .btn {
  background-color: #3498db;
  border-color: #3498db;
  transition: all 0.3s ease;
}

#current-programs .btn:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

/* Quick Links Section */
#quick-links {
  padding: 50px 0;
}

#quick-links .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#quick-links .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

#quick-links h2 {
  color: #0e64acaf;
  font-size: 2rem;
  margin-bottom: 30px;
}

#quick-links .card-title {
  font-weight: bold;
  color: #444;
  font-size: 1.4rem;
}

#quick-links .card-text {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
}

#quick-links .btn {
  transition: all 0.3s ease;
}

#quick-links .btn:hover {
  transform: translateY(-2px);
}

/* Different colors for each quick link button */
#quick-links .btn-primary {
  background-color: #3498db;
  border-color: #3498db;
}

#quick-links .btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

#quick-links .btn-success {
  background-color: #27ae60;
  border-color: #27ae60;
}

#quick-links .btn-success:hover {
  background-color: #219653;
  border-color: #219653;
}

#quick-links .btn-info {
  background-color: #9b59b6;
  border-color: #9b59b6;
  color: white;
}

#quick-links .btn-info:hover {
  background-color: #8e44ad;
  border-color: #8e44ad;
}

/* Footer Styles */
footer {
  background: linear-gradient(to right, #071b37cb, #37474f) !important;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
  text-decoration: underline;
}

.developed-by span {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Responsive Enhancements */
@media (max-width: 767.98px) {
  footer .row > div {
    text-align: center !important;
  }
}

/* Video page specific styles */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Admission page specific styles */
.table-responsive {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table th {
  background-color: #2c3e50;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  #about h2,
  #content h2,
  #featured-video h2,
  #current-programs h2,
  #quick-links h2 {
    font-size: 1.8rem;
  }

  #about p,
  #content p,
  #featured-video p {
    font-size: 1rem;
  }

  #featured-video h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  #banner .card-body {
    padding: 40px 20px;
  }

  #banner-title {
    font-size: 1.8rem;
  }

  #banner-description {
    font-size: 1rem;
  }

  #current-programs .card-img-top {
    height: 150px;
  }

  #quick-links .card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  #banner .card-body {
    padding: 30px 15px;
  }

  #banner-title {
    font-size: 1.5rem;
  }

  footer {
    text-align: center;
  }

  #featured-video .ratio {
    margin-bottom: 20px;
  }
}

/* Classical glowing effect */
.glowing-classical {
  position: relative;
  cursor: pointer;
  color: #ffffff;
  background-color: #b96821; /*  - spiritual tone */
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  font-family: "Georgia", serif;
  box-shadow: 0 0 10px rgba(43, 41, 27, 0.767); /*  aura */
  transition: box-shadow 0.5s ease-in-out;
}

.glowing-classical:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); /* deeper glow on hover */
}

/* Hide submenu by default */
.submenu {
  display: none;
  position: absolute;
  background-color: #d99e29bc;
  min-width: 260px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 6px;
  padding: 0;
  margin-top: 10px;
  list-style: none;
}

/* Submenu item styling */
.submenu-item {
  padding: 12px 18px;
  display: block;
  font-family: "Georgia", serif;
  font-size: 16px;
  color: #782f08f2;
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid #eeeeeea6;
}

.submenu-item:last-child {
  border-bottom: none;
}

.submenu-item:hover {
  background-color: #f5f5f5;
  color: #8b0000;
}
/* 8‑stop zig‑zag glow: gold → saffron → gold → vermillion → gold → sunset → gold → deep‑orange → back to gold */
@keyframes glowCycleZigZag {
  0% {
    color: #ffda7b;
    text-shadow: 0 0 8px rgba(255, 218, 123, 0.85);
  } /* gold */
  12.5% {
    color: #d57b12;
    text-shadow: 0 0 8px rgba(213, 123, 18, 0.85);
  } /* saffron */
  25% {
    color: #ffda7b;
    text-shadow: 0 0 8px rgba(255, 218, 123, 0.85);
  } /* gold */
  37.5% {
    color: #e74c3c;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.85);
  } /* vermillion */
  50% {
    color: #e3b235;
    text-shadow: 0 0 8px rgba(255, 218, 123, 0.85);
  } /* gold */
  62.5% {
    color: #e98e0ff1;
    text-shadow: 0 0 8px rgba(255, 179, 71, 0.85);
  } /* sunset */
  75% {
    color: #0dcb9b;
    text-shadow: 0 0 8px rgba(255, 218, 123, 0.85);
  } /* gold */
  87.5% {
    color: #ada20f;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.85);
  } /* deep orange */
  100% {
    color: #ffda7b;
    text-shadow: 0 0 8px rgba(192, 22, 166, 0.919);
  } /* back to gold */
}

.glow-cycle {
  font-weight: 600;
  padding: 6px 10px;
  text-decoration: none;
  animation: glowCycleZigZag 3s linear infinite; /* 3‑sec loop */
}

.carousel-item img {
  width: 100%;
  height: 300px; /* Adjust as per your layout */
  object-fit: cover; /* Ensures cropping but no distortion */
}
