/* Global Typography */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.responsive-page-container {
  width: 90%;
  margin: 0 auto;
  transition: width 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
}

/* Scroll Reveal Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Shadow and Border Styling */
.animated-border-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Very subtle border */
  border-radius: 16px;
  /* More rounded */
  padding: 1.5rem;
  margin: 0.5rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animated-border-box.no-border {
  border: none !important;
}

.animated-border-box.no-border:hover {
  border: none !important;
}

.animated-border-box:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border-color: rgba(40, 180, 99, 0.5);
}

/* Hit Counter Animation */
.hit-counter {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.5);
  }
}

/* Footer Styling */
.footer-modern {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-top: 3px solid rgba(255, 215, 0, 0.7);
  padding: 40px 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* COPYRIGHT SECTION */
.footer-copyright {
    margin-top: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(200, 200, 200, 0.1);
    font-size: 15px;
    color: rgba(200, 200, 200, 200);
    background: rgba(0, 0, 0, 0.2);
    /* Slightly darker for separation */
    letter-spacing: 0.5px;
}
/* .footer-modern:hover {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #1a1a2e 100%);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
} */

.footer-modern,
.footer-modern p,
.footer-modern small {
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav .nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: left;
  padding: 4px 0;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
}

.footer-nav .nav-link:hover {
  color: inherit !important;
  border-color: rgba(255, 193, 7, 0.6);
}

.footer-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer-nav .nav-link:hover::after {
  width: 100%;
}

.footer-modern .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.footer-modern [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  transition: transform 0.3s ease;
}

.footer-modern [class*="col-"]:hover {
  transform: translateY(-10px);
}

/* Footer Fade-in Animations */
.footer-fade-in {
  opacity: 0;
  transform: translateY(50px);
  animation: footerFadeIn 1s ease-out forwards;
}

.footer-fade-in.delay-1 {
  animation-delay: 0.2s;
}

.footer-fade-in.delay-2 {
  animation-delay: 0.4s;
}

.footer-fade-in.delay-3 {
  animation-delay: 0.6s;
}

@keyframes footerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Footer Nav Links with Icons */
.footer-nav .nav-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: left;
  padding: 8px 0;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-nav .nav-link::before {
  content: '➤';
  margin-right: 8px;
  color: rgba(255, 215, 0, 0.8);
  transition: transform 0.3s ease;
}

.footer-nav .nav-link:hover::before {
  transform: translateX(5px);
}

.footer-nav .nav-link:hover {
  color: rgba(255, 215, 0, 1) !important;
  border-color: rgba(255, 215, 0, 0.6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* SCROLL TO TOP BUTTON - Premium Pulse */
#myTopBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #ff6347, #800000);
  /* Tomato Gradient */
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: btnPulse 2s infinite;
}

/* Pulse Animation */
@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.7);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 99, 71, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 99, 71, 0);
    transform: scale(1);
  }
}

/* Pulse Animation for Emblem */
.pulse-animation {
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.4);
  }

  /* Maroon shadow */
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px 10px rgba(128, 0, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(128, 0, 0, 0);
  }
}

.zoom {
  /*padding: 50px;
  background-color: green;*/
  transition: transform .1s;
  /* Animation */
  /* width: 200px;
  height: 200px; */
  margin: 0 auto;
}

.zoom:hover {
  transform: scale(0.95);
  /*transform: scale(1.05);*/
  /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  /*filter:grayscale(80%); */
  /*opacity: 0.5;*/
}

/* Navbar Scrolled State */
.navbar-scrolled {
  background-color: rgba(20, 49, 69, 0.95) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  transition: all 0.3s ease-in-out;
}

/* Ensure initial state also has transition */
.navbar {
  transition: all 0.3s ease-in-out;
}

/* Nav Link Animations */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}



/* Header Entrance Animation */
@keyframes slideUpLively {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-5px) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-animate {
  animation: slideUpLively 1s ease-out forwards;
}

/* Sticky Navbar Logo */
.navbar-brand {
  display: none;
  font-weight: bold;
  color: tomato !important;
  font-size: 20px;
  transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand {
  display: block;
}

/* Carousel Animation: Curtain Raise & Zoom Out */
@keyframes curtainReveal {
  from {
    clip-path: inset(0 50% 0 50%);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes zoomOutEffect {
  from {
    transform: scale(1.2);
  }

  to {
    transform: scale(1);
  }
}

.carousel-item {
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: auto;
  transform-origin: center center;
}

.carousel-item.active img {
  animation:
    curtainReveal 1.5s ease-out both,
    zoomOutEffect 6s ease-out both;
}

/* Override Bootstrap Fade to prevent flash */
.carousel-fade .carousel-item {
  opacity: 1;
  transition: none !important;
}

.carousel-fade .carousel-item.active {
  z-index: 1;
  opacity: 1;
}

/* Curved Border with Green Gradient for Headings */
.curved-gradient-border {
  position: relative;
  background: white;
  border-radius: 30px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: #28a745;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border: 3px solid transparent;
  text-shadow: none;
  display: inline-block;
  width: 100%;
}

.curved-gradient-border::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #28a745, #20c997, #28a745);
  border-radius: 33px;
  z-index: -1;
}


/* Special Grid Heading Gradient */
.cvh-grid-heading {
  background-color: #43a047;
  /* Fallback */
  background: linear-gradient(90deg, #43a047 0%, #1b5e20 50%, #43a047 100%);
  /* Medium to Dark Green */
  color: white !important;
  border-radius: 8px;
  padding: 5px;
  /* Reduced spacing */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  /* Restore shadow for white text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* Logo Entrance Animation */
@keyframes logoEntrance {
  0% {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Gallery Grid Enhancement */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.gallery-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  border-color: transparent;
}

.gallery-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card-content {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  background: linear-gradient(135deg, #ff6347, #ff4500);
  color: white;
  margin: 0;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease;
}

.gallery-card:hover .gallery-card-title {
  background: linear-gradient(135deg, #ff4500, #b22222);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card-img-wrapper::after {
  content: 'View Category';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #ff6347;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: bottom 0.3s ease;
  z-index: 2;
}

.gallery-card:hover .gallery-card-img-wrapper::after {
  bottom: 20px;
}

/* Static Shadow for Gallery Cards (No Hover Change) */
.gallery-card-static {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transform: none !important;
}

.gallery-card-static:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transform: none !important;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

/* Modern Table Styling */
.modern-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.modern-table td,
.modern-table th {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:hover {
  background-color: rgba(255, 193, 7, 0.05);
}

.important-days-table {
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.important-days-table thead th {
  background: linear-gradient(135deg, #0d6efd 0%, #003d99 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.important-days-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}
/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: white !important;
    text-decoration: none;
    font-size: 20px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    background: #333;
}

.social-icon:hover {
    width: 60px;
    padding-right: 15px;
    border-radius: 25px 0 0 25px;
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2, #145dbf);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

/* Tooltip on hover */
.social-icon[title]:hover:after {
    content: attr(title);
    position: absolute;
    right: 100%;
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}
