/********** BASE VARIABLES **********/
:root {
  --primary: #FF6F0F;           /* Brand Orange */
  --secondary: #FFF0E6;         /* Soft Cream */
  --light: #F8F8F9;             /* Off-white */
  --dark: #00252c;              /* Near Black */
  --text-color: #333;           /* Base Text */
  --text-muted: #555;           /* Muted Text */
  --border-color-light: #e0e0e0;
  --border-color-dark: rgba(255, 255, 255, 0.4); /* For glass effect borders */

  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --shadow-glass: rgba(31, 38, 135, 0.15);

  --z-index-base: 1;
  --z-index-content: 10;
  --z-index-navbar-base: 1000;
  --z-index-top-bar: 1001;
  --z-index-navbar-shrinked: 1002;
  --z-index-dropdown: 1100;
  --z-index-back-to-top: 1200;

  /* Font Families */
  --font-inter: 'Inter', sans-serif;
  --font-saira: 'Saira', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif; /* Added, as it's used in nav-link */
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}



/********** GLOBAL STYLES & RESET **********/
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light) url('../img/Background.jpg') center/cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevents horizontal scroll */
}

/* General Link Styling */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark); /* A darker shade or a different interaction */
  border-color: var(--dark);
  color: #fff;
  box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-lg-square {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/********** BACK TO TOP **********/
.back-to-top {
  position: fixed;
  display: none; /* Controlled by JS */
  right: 30px;
  bottom: 30px;
  z-index: var(--z-index-back-to-top);
  border-radius: 50%;
  box-shadow: 0 4px 10px var(--shadow-medium);
}

---





/* Banner Carousel Styling */
#bannerCarousel {
  position: relative;
  margin-bottom: 40px;
  z-index: 0; /* Lower z-index than navbar to sit behind it */
}

.banner-img {
  height: 95vh;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6); /* Slightly more opaque */
  padding: 1.5rem 2.5rem; /* More padding */
  border-radius: 0.75rem; /* More rounded */
  max-width: 80%; /* Slightly narrower */
  margin: 0 auto;
}

.carousel-caption h2 {
  font-size: 2.8rem; /* Slightly larger */
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.carousel-caption p {
  font-size: 1.35rem; /* Slightly larger */
  color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .banner-img {
    height: 50vh;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }
}

/* Fade Transition for Carousel */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* General Section Styling - About Section Example */
#about {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--light), var(--secondary)); /* Using variables */
  box-shadow: 0 10px 30px var(--shadow-medium); /* Consistent shadow variable */
  border-radius: 12px;
  transition: box-shadow 0.3s ease-in-out;
}

/* Image Styling */
#about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-medium); /* Consistent shadow variable */
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.03);
}

/* Section Title Styling */
#about .section-title {
  font-size: 18px;
  color: #ffffff;
  background-color: var(--primary); /* Used primary variable */
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  /* Make sure --primary-rgb-r, -g, -b are defined or use a fixed rgba */
  /* Example fixed: rgba(255, 111, 15, 0.3) */
  box-shadow: 0 4px 6px rgba(255, 111, 15, 0.3); /* Adjusted for clarity, use your var if defined */
}

/* Main Heading Styling */
#about h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color); /* Used variable */
  margin-bottom: 20px;
}

/* Paragraph Styling */
#about p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted); /* Used variable */
  margin-bottom: 15px;
}

/* Button Styling */
#about .btn-primary {
  background-color: var(--primary); /* Used primary variable */
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

#about .btn-primary:hover {
  background-color: #e0600f; /* Slightly darker orange */
  box-shadow: 0 6px 12px var(--shadow-strong); /* Stronger shadow */
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #about h1 {
    font-size: 28px;
  }

  #about p {
    font-size: 14px;
  }

  #about .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/*** Events Start ***/
.upcoming-events {
  padding-top: 40px;
  
  
}

.event {
    padding-top: 40px;
    background-color: rgba(255, 255, 255, 0.5); /* 50% transparent white */
    
  }

.event-item {
    border: 1px dotted rgba(0, 0, 0, 0.3); /* Small dotted border for each event item */
    margin-bottom: 30px; /* Add some space between event items */
    padding: 20px; /* Add some internal padding so content isn't right against the border */
    border-radius: 8px; /* Optional: Slightly round the corners */
    background-color: rgba(234, 250, 244, 0.5);
}



.event-item img {
  transition: transform 0.5s ease;
}

.event .event-item a {
  transition: color 0.3s;
  
}

.event-item:hover img {
  transform: scale(1.05); /* Slightly less aggressive scale */
}

.event-item p {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif, Helvetica, sans-serif;
  text-align: justify;
}

.event-item a:hover {
  background: var(--dark); /* Used variable */
  color: var(--primary); /* Used variable */
  opacity: 1; /* Removed opacity for clearer hover */
}

/* Container to hide overflow when image scales */
.event-item .overflow-hidden {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Style the images */
.event-item img {
  width: 100%;
  height: auto;
  border: 5px solid var(--secondary); /* Used secondary variable */
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-light); /* Consistent shadow variable */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}

/* Scale image and enhance shadow on hover */
.event-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--shadow-medium); /* Consistent shadow variable */
}



/********** MAIN CONTENT **********/
main {
  margin-top: 110px;
  padding-top: 20px;
}

@media (max-width: 991.98px) {
  main {
    margin-top: 70px;
  }
}

/* Banner Carousel Styling */
#bannerCarousel {
  position: relative;
  margin-bottom: 40px;
  z-index: 0; /* Lower z-index than navbar to sit behind it */
}

.banner-img {
  height: 95vh;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6); /* Slightly more opaque */
  padding: 1.5rem 2.5rem; /* More padding */
  border-radius: 0.75rem; /* More rounded */
  max-width: 80%; /* Slightly narrower */
  margin: 0 auto;
}

.carousel-caption h2 {
  font-size: 2.8rem; /* Slightly larger */
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.carousel-caption p {
  font-size: 1.35rem; /* Slightly larger */
  color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .banner-img {
    height: 50vh;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }
}

/* Fade Transition for Carousel */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* General Section Styling - About Section Example */
#about {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--light), var(--secondary)); /* Using variables */
  box-shadow: 0 10px 30px var(--shadow-medium); /* Consistent shadow variable */
  border-radius: 12px;
  transition: box-shadow 0.3s ease-in-out;
}

/* Image Styling */
#about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-medium); /* Consistent shadow variable */
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.03);
}

/* Section Title Styling */
#about .section-title {
  font-size: 18px;
  color: #ffffff;
  background-color: var(--primary); /* Used primary variable */
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  /* Make sure --primary-rgb-r, -g, -b are defined or use a fixed rgba */
  /* If not defined, this line will break */
  /* Example fixed: rgba(255, 111, 15, 0.3) */
  box-shadow: 0 4px 6px rgba(255, 111, 15, 0.3); /* Adjusted for clarity, use your var if defined */
}

/* Main Heading Styling */
#about h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color); /* Used variable */
  margin-bottom: 20px;
}

/* Paragraph Styling */
#about p {
  font-size: 16px;
  text-align: justify;
  line-height: 1.6;
  color: var(--text-muted); /* Used variable */
  margin-bottom: 15px;
}

/* Button Styling */
#about .btn-primary {
  background-color: var(--primary); /* Used primary variable */
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

#about .btn-primary:hover {
  /* Using color-mix requires CSS Color Module Level 5 support, might not be fully cross-browser yet */
  /* Fallback to a hardcoded darker shade if issues */
  background-color: #e0600f; /* Slightly darker orange */
  box-shadow: 0 6px 12px var(--shadow-strong); /* Stronger shadow */
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #about h1 {
    font-size: 28px;
  }

  #about p {
    font-size: 14px;
  }

  #about .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/*** Events Start ***/
.upcoming-events {
  padding-top: 40px;
}

.event {
  padding-top: 40px;
  /* Ensure this image exists in static/images/ */
  background-image: url('../images/event-bg.jpg'); /* Adjust the path as needed */
  background-size: cover; /* Changed from 100% 100% for better responsiveness */
  background-position: top center;
  background-repeat: no-repeat;
}

.event-item img {
  transition: transform 0.5s ease;
}

.event .event-item a {
  transition: color 0.3s;
}

.event-item:hover img {
  transform: scale(1.05); /* Slightly less aggressive scale */
}

.event-item p {
  text-align: justify;
}

.event-item a:hover {
  background: var(--dark); /* Used variable */
  color: var(--primary); /* Used variable */
  opacity: 1; /* Removed opacity for clearer hover */
}

/* Container to hide overflow when image scales */
.event-item .overflow-hidden {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Style the images */
.event-item img {
  width: 100%;
  height: auto;
  border: 5px solid var(--secondary); /* Used secondary variable */
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-light); /* Consistent shadow variable */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}

/* Scale image and enhance shadow on hover */
.event-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--shadow-medium); /* Consistent shadow variable */
}



/* Banner Carousel Styling */
#bannerCarousel {
  position: relative;
  margin-bottom: 40px;
  z-index: 0; /* Lower z-index than navbar to sit behind it */
}

.banner-img {
  height: 95vh;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6); /* Slightly more opaque */
  padding: 1.5rem 2.5rem; /* More padding */
  border-radius: 0.75rem; /* More rounded */
  max-width: 80%; /* Slightly narrower */
  margin: 0 auto;
}

.carousel-caption h2 {
  font-size: 2.8rem; /* Slightly larger */
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.carousel-caption p {
  font-size: 1.35rem; /* Slightly larger */
  color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .banner-img {
    height: 50vh;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }
}

/* Fade Transition for Carousel */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* General Section Styling - About Section Example */
#about {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--light), var(--secondary)); /* Using variables */
  box-shadow: 0 10px 30px var(--shadow-medium); /* Consistent shadow variable */
  border-radius: 12px;
  transition: box-shadow 0.3s ease-in-out;
}

/* Image Styling */
#about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-medium); /* Consistent shadow variable */
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.03);
}

/* Section Title Styling */
#about .section-title {
  font-size: 18px;
  color: #ffffff;
  background-color: var(--primary); /* Used primary variable */
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(var(--primary-rgb-r), var(--primary-rgb-g), var(--primary-rgb-b), 0.3); /* Dynamic shadow color */
}

/* Main Heading Styling */
#about h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color); /* Used variable */
  margin-bottom: 20px;
}

/* Paragraph Styling */
#about p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted); /* Used variable */
  margin-bottom: 15px;
}

/* Button Styling */
#about .btn-primary {
  background-color: var(--primary); /* Used primary variable */
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

#about .btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black); /* Darker shade of primary */
  box-shadow: 0 6px 12px var(--shadow-strong); /* Stronger shadow */
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #about h1 {
    font-size: 28px;
  }

  #about p {
    font-size: 14px;
  }

  #about .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/*** Events Start ***/
.upcoming-events {
  padding-top: 40px;
}

.event {
  padding-top: 40px;
  /* Ensure this image exists in static/images/ */
  background-image: url('../images/event-bg.jpg'); /* Adjust the path as needed */
  background-size: cover; /* Changed from 100% 100% for better responsiveness */
  background-position: top center;
  background-repeat: no-repeat;
}

.event-item img {
  transition: transform 0.5s ease;
}

.event .event-item a {
  transition: color 0.3s;
}

.event-item:hover img {
  transform: scale(1.05); /* Slightly less aggressive scale */
}

.event-item p {
  text-align: justify;
}

.event-item a:hover {
  background: var(--dark); /* Used variable */
  color: var(--primary); /* Used variable */
  opacity: 1; /* Removed opacity for clearer hover */
}

/* Container to hide overflow when image scales */
.event-item .overflow-hidden {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Style the images */
.event-item img {
  width: 100%;
  height: auto;
  border: 5px solid var(--secondary); /* Used secondary variable */
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-light); /* Consistent shadow variable */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}

/* Scale image and enhance shadow on hover */
.event-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--shadow-medium); /* Consistent shadow variable */
}


/*** Events End ***/


/*--------------------------------------------------------------
# Update Section
--------------------------------------------------------------*/
.recent-updates-section {
  padding: 80px 30px;
  background: linear-gradient(135deg, var(--light), var(--secondary)); /* Using variables */
  box-shadow: 0 10px 30px var(--shadow-medium); /* Consistent shadow variable */
  border-radius: 12px;
  transition: box-shadow 0.3s ease-in-out;
}

.update-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
}

.updates-item img {
  position: relative;
  top: 0;
  transition: top 0.3s ease, transform 0.3s ease; /* Added transform for potential future use */
}

.updates-item:hover img {
  top: -10px;
}

.updates-item .updates-text {
  position: relative;
  height: 100px;
  transition: margin-top 0.5s, height 0.5s; /* Explicit transitions */
}

.updates-item:hover .updates-text {
  margin-top: -60px;
  height: 160px;
}

.updates-item .updates-text .updates-social {
  opacity: 0;
  transition: opacity 0.5s; /* Explicit transition */
}

.updates-item:hover .updates-text .updates-social {
  opacity: 1;
}

.updates-item .updates-social .btn {
  display: inline-flex;
  color: var(--primary); /* Used primary variable */
  background: #FFFFFF;
  border-radius: 40px;
  box-shadow: 0 2px 5px var(--shadow-light);
}

.updates-item .updates-social .btn:hover {
  color: #FFFFFF;
  background: var(--primary); /* Used primary variable */
  box-shadow: 0 4px 8px var(--shadow-medium);
}

/* Navigation Buttons (Owl Carousel) */
.recent-updates-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  opacity: 0.6; /* Slightly more visible initially */
  transition: opacity 0.3s;
}

.recent-updates-carousel .owl-nav:hover {
  opacity: 1;
}

.recent-updates-carousel .owl-nav .owl-prev,
.recent-updates-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary); /* Used primary variable */
  font-size: 45px;
  transition: 0.5s;
}

.recent-updates-carousel .owl-nav .owl-prev:hover,
.recent-updates-carousel .owl-nav .owl-next:hover {
  color: var(--dark); /* Used dark variable */
}

/* Generic Button Wrap */
.btn-wrap {
  text-align: center;
  width: 100%;
}
button {
  background-color: var(--border-color-light); /* Used variable */
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.5s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color); /* Added text color */
}

.owl-theme .owl-nav .disabled,
button.disabled {
  opacity: 0.6;
}

.recent-updates-carousel .owl-nav button.owl-prev:hover,
.recent-updates-carousel .owl-nav button.owl-next:hover {
  background-color: var(--text-muted); /* Used text-muted as a darker grey */
}

/* Dot Indicators (Owl Carousel) */
.recent-updates-carousel .owl-dots {
  text-align: center;
  margin-top: 15px; /* More spacing */
}

.recent-updates-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 6px; /* More spacing */
}

.recent-updates-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: var(--border-color-light); /* Used variable */
  display: block;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.recent-updates-carousel .owl-dots .owl-dot.active span,
.recent-updates-carousel .owl-dots .owl-dot:hover span {
  background: var(--primary); /* Used primary variable */
  transform: scale(1.2);
}


/* Subcenters Section Styling */
.subcenters-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--light), var(--secondary)); /* Used variables */
  box-shadow: 0 10px 30px var(--shadow-medium); /* Consistent shadow variable */
  border-radius: 12px;
  transition: box-shadow 0.3s ease-in-out;
}

/* Section Title Styling */
.subcenters-section .section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text-color); /* Used variable, but then overridden by gradient */
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  /* The gradient makes the text transparent, consider if this is intended for primary color */
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, white)); /* Gradient with primary */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* Makes text transparent to show gradient */
}

/* Sub-Centers Grid Layout */
.subcenters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Sub-Center Card Styling */
.subcenter-card {
  background-color: #fff; /* Keeping white for cards */
  border-radius: 10px;
  box-shadow: 0 8px 20px var(--shadow-medium); /* Consistent shadow variable */
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.subcenter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px var(--shadow-strong); /* Stronger shadow on hover */
}

/* Sub-Center Card Image Styling */
.subcenter-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.subcenter-card:hover img {
  transform: scale(1.05);
}

/* Sub-Center Card Title Styling */
.subcenter-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary); /* Used primary variable */
  font-weight: bold;
}

/* Sub-Center Card Description Styling */
.subcenter-card p {
  font-size: 16px;
  color: var(--text-muted); /* Used variable */
  margin-bottom: 15px;
}

/* Button Styling */
.subcenter-card .btn-primary {
  background-color: var(--primary); /* Used primary variable */
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.subcenter-card .btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black); /* Darker shade of primary */
  box-shadow: 0 6px 12px var(--shadow-medium); /* Consistent shadow variable */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .subcenters-section .section-title { /* Corrected selector */
    font-size: 28px;
  }

  .subcenter-card h3 {
    font-size: 20px;
  }

  .subcenter-card p {
    font-size: 14px;
  }

  .subcenter-card .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
  }
}


/*--------------------------------------------------------------
# Activities Section
--------------------------------------------------------------*/
.activities .activities-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.activities .activities-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  /* font-family: var(--heading-font); - This variable is not defined */
  color: var(--text-color); /* Default color */
}

.activities .activities-filters li:hover,
.activities .activities-filters li.filter-active {
  color: #fff; /* White text on active/hover */
  background-color: var(--primary); /* Used primary variable */
}

.activities .activities-filters li:first-child {
  margin-left: 0;
}

.activities .activities-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .activities .activities-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

.activities .activities-item {
  position: relative;
  overflow: hidden;
}

.activities .activities-item .activities-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  /* Adjust color-mix to use variables if possible or a clear rgba */
  background: rgba(255, 255, 255, 0.9); /* Opaque white background */
  padding: 15px;
  border-radius: 8px; /* Added border-radius */
}

.activities .activities-item .activities-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
  color: var(--primary); /* Used primary variable */
}

.activities .activities-item .activities-info p {
  color: var(--text-muted); /* Used variable */
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.activities .activities-item .activities-info .preview-link,
.activities .activities-item .activities-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: var(--text-muted); /* Used variable */
  transition: 0.3s;
  line-height: 0;
}

.activities .activities-item .activities-info .preview-link:hover,
.activities .activities-item .activities-info .details-link:hover {
  color: var(--primary); /* Used primary variable */
}

.activities .activities-item .activities-info .details-link {
  right: 14px;
  font-size: 28px;
}

.activities .activities-item:hover .activities-info {
  opacity: 1;
  bottom: 0;
}


/*** Vaani ***/
.vaani-carousel::before,
.vaani-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  height: 100%;
  width: 0;
  z-index: 1;
}

.vaani-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.vaani-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

@media (min-width: 768px) {
  .vaani-carousel::before,
  .vaani-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .vaani-carousel::before,
  .vaani-carousel::after {
    width: 300px;
  }
}

.vaani-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.vaani-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.vaani-carousel .owl-nav .owl-prev,
.vaani-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary); /* Used primary variable */
  font-size: 45px;
  transition: 0.5s;
}

.vaani-carousel .owl-nav .owl-prev:hover,
.vaani-carousel .owl-nav .owl-next:hover {
  color: var(--dark); /* Used dark variable */
}

.vaani-carousel .vaani-img img {
  width: 100px;
  height: 100px;
  border-radius: 50%; /* Added border-radius for profile images */
  object-fit: cover;
}

.vaani-carousel .vaani-img .btn-square {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
}

.vaani-carousel .owl-item .vaani-text {
  margin-bottom: 30px;
  box-shadow: 0 0 45px var(--shadow-light); /* Consistent shadow variable */
  transform: scale(0.9); /* Slightly larger default scale */
  transition: 0.5s;
  padding: 25px; /* Added padding */
  border-radius: 10px; /* Rounded corners */
  background-color: #fff; /* White background */
}

.vaani-carousel .owl-item.center .vaani-text {
  transform: scale(1);
}


/*** Visit Start ***/
.visit-img {
  position: relative;
  padding: 15px;
}

.visit-img::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: 0;
  left: 0;
  background: var(--secondary); /* Used secondary variable */
  border-radius: 10px;
  opacity: 1;
  z-index: -1;
  transition: .5s;
}

.visit-img::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--primary); /* Used primary variable */
  border-radius: 10px;
  opacity: 1;
  z-index: -1;
  transition: .5s;
}

.visit-content {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.visit-content a {
  display: inline-block;
  padding: 20px 25px;
  background: var(--primary); /* Used primary variable */
  border-radius: 10px;
  color: #fff; /* Ensure text is white */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}

.visit-content a:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, black); /* Darker on hover */
    transform: translateY(-2px); /* Slight lift */
}

.visit-item:hover .visit-content {
  opacity: 1;
  transition: .5s;
}

.visit-item:hover .visit-img::before,
.visit-item:hover .visit-img::after {
  opacity: 0;
}

/*** Project End (should be Visit End) ***/

/* --------------------------------------------------------------
# Donation Section Base
-------------------------------------------------------------- */
.donate {
  background: var(--dark);
  box-shadow: 0 0 20px var(--shadow-light);
}

/* --------------------------------------------------------------
# Info Box
-------------------------------------------------------------- */
.info-box {
  width: 100%;
  max-width: 600px;
  padding: 15px;
  background-color: var(--secondary);
  border: 2px solid color-mix(in srgb, var(--primary) 50%, white);
  box-shadow: 0 4px 8px var(--shadow-light);
  font-family: 'Arial', sans-serif;
  text-align: center;
  border-radius: 0;
}

.info-box h3 {
  color: var(--primary);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.info-box p {
  color: var(--text-color);
  font-size: 1em;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-color-light);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* --------------------------------------------------------------
# Form Container
-------------------------------------------------------------- */
.form-container {
  height: 700px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 25px 25px 10px;
  background: #fff;
  box-shadow: 0 0 10px var(--shadow-light);
  border-radius: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------
# Progress Bar
-------------------------------------------------------------- */
#progressbar {
  display: flex;
  justify-content: space-between;
  counter-reset: step;
  list-style: none;
  margin-bottom: 25px;
  padding: 0;
}

#progressbar li {
  flex: 1;
  text-align: center;
  counter-increment: step;
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
}

#progressbar li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  line-height: 32px;
  display: block;
  margin: 0 auto 10px;
  background: var(--border-color-light);
  border-radius: 0;
  color: var(--text-color);
  font-weight: bold;
  position: relative;
  z-index: 1;
}

#progressbar li.active::before {
  background: var(--primary);
  color: white;
}

/* ✅ Green if valid, Red if invalid */
#progressbar li.success::before {
  background: #28a745;
  color: #fff;
}

#progressbar li.error::before {
  background: #dc3545;
  color: #fff;
}

#progressbar li::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--border-color-light);
  top: 16px;
  left: -50%;
  z-index: 0;
}

#progressbar li:first-child::after {
  content: none;
}

#progressbar li.active + li::after {
  background: var(--primary);
}

/* --------------------------------------------------------------
# Fieldsets and Steps
-------------------------------------------------------------- */
fieldset {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}

fieldset.active {
  display: block;
}

fieldset h3 {
  margin: 0 0 15px;
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary);
}

fieldset p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

fieldset img {
  display: block;
  margin: 0 auto 25px;
  border: 1px solid var(--border-color-light);
  background-color: var(--light);
  border-radius: 0;
  box-shadow: 0 2px 5px var(--shadow-light);
}

/* --------------------------------------------------------------
# Form Elements
-------------------------------------------------------------- */
input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border-color-light);
  border-radius: 0;
  font-size: 16px;
  color: var(--text-color);
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb-r), var(--primary-rgb-g), var(--primary-rgb-b), 0.25);
}

label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: var(--text-color);
  text-align: left;
}

.name-fields {
  display: flex;
  gap: 15px;
}

.name-fields input {
  flex: 1;
}

/* --------------------------------------------------------------
# Navigation Buttons
-------------------------------------------------------------- */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.nav-button {
  height: 40px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--shadow-light);
}

.nav-button .arrow {
  font-size: 20px;
  margin: 0 10px;
}

.nav-button.previous {
  background-color: var(--text-muted);
  color: #fff;
}

.nav-button.previous:hover {
  background-color: color-mix(in srgb, var(--text-muted) 90%, black);
}

.nav-button.next,
.nav-button.submit {
  background-color: var(--primary);
  color: #fff;
}

.nav-button.next:hover,
.nav-button.submit:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

/* --------------------------------------------------------------
# Declaration Checkbox
-------------------------------------------------------------- */
.declaration-container {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-color);
  margin-top: 20px;
}

.declaration-container input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 0;
}

/* --------------------------------------------------------------
# Radio Buttons
-------------------------------------------------------------- */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  margin: 0 10px 0 0;
  font: inherit;
  color: currentColor;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 0;
  display: grid;
  place-content: center;
  transition: border 0.2s ease;
}

.radio-option input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
  background-color: var(--primary);
}

.radio-option input[type="radio"]:checked::before {
  transform: scale(1);
}

.radio-option input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb-r), var(--primary-rgb-g), var(--primary-rgb-b), 0.3);
}

/* --------------------------------------------------------------
# Responsive Fixes
-------------------------------------------------------------- */
@media (max-width: 600px) {
  .form-container {
    padding: 20px;
  }

  .name-fields {
    flex-direction: column;
    gap: 0;
  }

  .name-fields input {
    margin-bottom: 15px;
  }
}


