/********** 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);
}

---

/********** TOP BAR **********/
.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-index-top-bar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color-light);
  transition: top 0.3s ease; /* For potential hide/show on scroll */
}

.top-bar .text-muted {
  color: var(--text-muted) !important; /* Ensure Bootstrap override if needed */
}

.top-bar .social-links a { /* Renamed from .top-bar a for clarity */
  color: var(--text-color);
  margin-left: 10px;
  display: inline-block; /* Ensure icons sit correctly */
}

.top-bar .social-links a i {
  width: 32px;
  height: 32px;
  line-height: 32px; /* Vertically centers text/icon */
  border-radius: 50%;
  background: var(--light);
  display: flex; /* Use flexbox for robust centering */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px var(--shadow-light);
  transition: all 0.3s ease;
}

.top-bar .social-links a:hover i {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 8px var(--shadow-medium);
}

/* Specific social icon hover colors */
.top-bar .social-links a.facebook:hover { color: #3b5998; }
.top-bar .social-links a.twitter:hover { color: #1da1f2; }
.top-bar .social-links a.instagram:hover { color: #e1306c; }
.top-bar .social-links a.youtube:hover { color: #ff0000; }

/* Google Translate specific styling */
#google_translate_element .skiptranslate.goog-te-gadget span {
    display: none !important; /* Hides "Google Translate" text */
}

#google_translate_element .goog-te-gadget {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    color: var(--text-color) !important;
}

#google_translate_element .goog-te-combo {
    border: 1px solid var(--border-color-light);
    border-radius: 5px;
    padding: 5px 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#google_translate_element .goog-te-combo:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), .25);
}

#google_translate_element .goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}



/********** NAVBAR **********/
.glass-navbar {
  position: fixed;
  top: 40px; /* Aligned below the top bar */
  width: 100%;
  z-index: var(--z-index-navbar-base);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color-dark); /* Using variable */
  box-shadow: 0 8px 32px var(--shadow-glass); /* Using variable */
  transition: all 0.3s ease;
  /* Make the navbar a flex container to control its children */
  display: flex;
  justify-content: space-between; /* Pushes brand to left, nav to right */
  align-items: center; /* Vertically centers content */
  padding: 0 15px; /* Add some horizontal padding */
}

/* Navbar Brand */
.glass-navbar .navbar-brand {
  display: flex; /* For alignment of logo and text */
  align-items: center;
  padding: 0.5rem 0; /* Adjust padding as needed */
  /* margin-right: auto; This isn't strictly necessary if using justify-content: space-between on the parent, but can reinforce the behavior. */
}

.glass-navbar .navbar-brand img {
  height: 45px;
  transition: height 0.3s ease;
}

.navbar-brand .brand-text {
  font-family: var(--font-saira);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle; /* Ensures text aligns with middle of image */
}

.glass-navbar .navbar-nav {
  display: flex; /* Make the ul a flex container */
  margin-left: auto; /* This pushes the navbar-nav and all its items to the right */
  padding-left: 0; /* Remove default ul padding if present */
  list-style: none; /* Remove default ul bullets */
  align-items: center; /* Vertically align nav items if they have different heights */
}

.glass-navbar .navbar-nav .nav-item {
  margin: 0 5px; /* Spacing between nav items */
}

.glass-navbar .navbar-nav .nav-link {
  padding: 10px 18px;
  font-family: var(--font-montserrat); /* Using defined variable */
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  position: relative;
  color: var(--text-color) !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.glass-navbar .navbar-nav .nav-link:hover,
.glass-navbar .navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--secondary);
  border-radius: 5px;
}

/* Shimmer Effect */
.glass-navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Using rgba values directly as they are part of the animation, not generic colors */
  background: linear-gradient(
    120deg,
    rgba(255, 165, 0, 0) 0%,
    rgba(223, 102, 3, 0.89) 50%,
    rgba(255, 165, 0, 0) 100%
  );

  
  transform: skewX(-25deg);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none; /* Allows clicks to pass through */
  opacity: 0.5;
  filter: blur(0.5px);
  z-index: -1; /* Behind the actual navbar content */
}

@keyframes shimmer {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: 0.8; }
  60% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(100%); opacity: 0; }
}

---

/********** DROPDOWN MENU STYLING **********/
.dropdown-menu {
  padding: 8px 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px var(--shadow-medium);
  z-index: var(--z-index-dropdown);
  /* Bootstrap's .show class handles display, opacity, transform */
  /* Remove explicit opacity/transform/visibility for standard dropdowns */
}

.dropdown-menu .dropdown-item {
  position: relative;
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  border-radius: 4px; /* Matches hover state */
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
}

/* Nested Dropdown Item Toggle Icon (Right Arrow) */
.dropdown-menu .dropdown-item.dropdown > .dropdown-toggle::after {
  content: "\f054"; /* Font Awesome right arrow */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  margin-left: 0.5em;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover state for nested dropdown toggle */
.dropdown-menu .dropdown-item.dropdown:hover > .dropdown-toggle::after {
  transform: translateY(-50%) translateX(2px); /* Slight movement on hover */
  color: var(--primary);
}

---

/********** NAVBAR TOGGLER (HAMBURGER ICON) **********/
.navbar-toggler {
  border: none;
  padding: 0;
  /* Ensure no default focus outline visible */
  &:focus {
    box-shadow: none;
    outline: none;
  }
}

.navbar-toggler-icon {
  background: none;
  width: 25px;
  height: 20px;
  position: relative;
  display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon div {
  content: '';
  background: var(--text-color);
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before { top: 0; }
.navbar-toggler-icon div {
  top: 50%;
  transform: translateY(-50%);
}
.navbar-toggler-icon::after { bottom: 0; }

/* Animation for toggler icon */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 50%;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 50%;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon div {
  opacity: 0; /* Middle line fades out */
}

---

/********** LANGUAGE TOGGLE BUTTON **********/
#toggleLang {
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

#toggleLang:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 5px var(--shadow-medium);
}



/********** MAIN CONTENT ADJUSTMENTS **********/
main {
  /* Initial margin-top to clear fixed navbar and top bar */
  margin-top: calc(40px + 60px); /* Top bar height + Navbar approximate height */
  padding-top: 20px; /* Add some internal padding */
}

/********** MEDIA QUERIES **********/

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Desktop Navbar Shrink Effect */
  .glass-navbar.shrinked {
    padding: 5px 20px;
    border-radius: 12px;
    width: 95%;
    left: 2.5%;
    top: 10px; /* Moves up to top when shrunk */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px var(--shadow-medium);
    z-index: var(--z-index-navbar-shrinked);
  }

  .glass-navbar.shrinked .navbar-brand img {
    height: 35px; /* Smaller logo when shrunk */
  }

  .glass-navbar.shrinked .navbar-brand .brand-text {
    font-size: 1rem;
    line-height: 1.1;
  }

  /* Desktop Dropdown Hover Effects */
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block; /* Bootstrap 5 generally uses .show. This forces display on hover. */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  /* Nested Desktop Dropdowns (Multi-level) */
  .dropdown-menu .dropdown-item.dropdown > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%; /* Positions sub-menu to the right */
    margin-left: 0.2rem; /* Small gap */
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px var(--shadow-medium);
    opacity: 0;
    transform: translateX(10px);
    visibility: hidden;
    transition: all 0.2s ease;
    display: none; /* Hide by default on desktop */
  }

  .dropdown-menu .dropdown-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    display: block; /* Show on hover */
  }
}

/* Small devices (landscape phones, tablets, up to 991.98px) */
@media (max-width: 991.98px) {
  .top-bar {
    display: none; /* Hide top bar on smaller screens */
  }

  .glass-navbar {
    top: 0; /* Navbar is at the very top */
  }

  .navbar-brand .brand-text {
    display: none; /* Hide full brand text on small screens */
  }

  /* Show a smaller brand text for smaller screens if needed, otherwise remove */
  .navbar-brand span.d-inline.d-lg-none {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    display: inline !important; /* Forces display */
    vertical-align: middle;
  }

  main {
    margin-top: 70px; /* Adjust margin-top for content below navbar */
  }

  /* Mobile Dropdown Styling */
  .dropdown-menu {
    position: static; /* Allows dropdown to flow naturally in document */
    box-shadow: none;
    background: none;
    opacity: 1; /* Always visible in mobile expanded menu */
    transform: none;
    pointer-events: auto;
    padding: 0;
    visibility: visible;
    border: none; /* Remove border */
  }

  .dropdown-menu .dropdown-item {
    padding-left: 30px; /* Indent mobile dropdown items */
    font-size: 16px;
    background: none !important; /* Ensure no background */
    color: var(--text-color) !important;
  }

  .dropdown-menu .dropdown-item:hover,
  .dropdown-menu .dropdown-item.active {
    background: transparent !important; /* No background on hover */
    color: var(--primary) !important; /* Only change text color */
  }

  /* Nested Mobile Dropdowns (Sub-menus) */
  .dropdown-menu .dropdown-item.dropdown > .dropdown-menu {
    position: static; /* Flow naturally */
    left: auto;
    right: auto;
    margin: 0;
    box-shadow: none;
    background: none;
    padding-left: 20px; /* Further indent nested items */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important; /* Always display for mobile toggle */
  }

  /* Mobile Nested Dropdown Toggle Icon (Down/Up Arrow) */
  .dropdown-menu .dropdown-item.dropdown > .dropdown-toggle::after {
    content: "\f078"; /* Font Awesome down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
  }

  .dropdown-menu .dropdown-item.dropdown.show > .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg); /* Rotate when opened */
  }
}








/* 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;
  }
}




/* ====== Footer Styling ====== */
.site-footer {
  background-color: var(--dark); /* Used dark variable */
  color: #fff;
  padding: 60px 30px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap; /* Changed to wrap for better responsiveness */
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px; /* Increased gap */
}

.footer-col {
  flex: 1;
  min-width: 220px; /* Slightly wider min-width */
  margin-bottom: 20px; /* Space between columns when wrapping */
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 20px; /* More spacing */
  color: var(--primary); /* Used primary variable */
  position: relative;
  padding-bottom: 8px; /* For an underline effect */
}
.footer-column h4::after { /* Simple underline */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}


.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px; /* More spacing */
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--primary); /* Used primary variable */
}

.social-icons a {
  color: #ccc;
  font-size: 20px; /* Slightly larger */
  margin-right: 15px; /* More spacing */
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary); /* Used primary variable */
}

/* Calendar Section */
.footer-calendar {
  min-width: 250px; /* Wider min-width for calendar */
}

.footer-calendar #calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px; /* Slightly more gap */
  background: color-mix(in srgb, var(--dark) 90%, black); /* Darker shade of dark */
  padding: 15px; /* More padding */
  border-radius: 8px;
  font-size: 13px; /* Slightly larger font */
  text-align: center;
  color: #fff; /* Changed to white for calendar text */
}

.footer-calendar #calendar div {
  background: color-mix(in srgb, var(--dark) 80%, black); /* Slightly lighter dark for days */
  border-radius: 4px;
  padding: 8px 0; /* More padding */
  color: #fff;
  font-weight: 500;
}

.footer-calendar #calendar .active-date {
  background: var(--primary); /* Used primary variable */
  color: #000; /* Black text for active date */
  font-weight: bold;
  border: 2px solid #fff;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 25px; /* More padding */
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible border */
  margin-top: 40px;
  font-size: 13px;
  color: #bbb; /* Lighter grey for copyright text */
}


/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    min-width: unset; /* Remove min-width on small screens */
    width: 100%;
  }

  .footer-column h4 {
    text-align: center; /* Center heading */
    padding-bottom: 10px;
  }
  .footer-column h4::after {
      left: 50%;
      transform: translateX(-50%); /* Center underline */
  }

  .footer-social {
    margin-top: 20px;
  }
}