html {
  scroll-behavior: smooth; /* Ensures native smooth scrolling */
  scroll-padding-top: 100px; /* Default for larger screens */
}

@media (max-width: 767px) {
  /* Adjust breakpoint if your mobile design changes at a different width */
  html {
    scroll-padding-top: 90px; /* This value should be tailored to your mobile header's height */
  }
}
body {
  font-family: "Inter", sans-serif;
  background-color: oklch(27.4% 0.006 286.033);
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.kebea-shadow-text {
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-section-bg {
  background-image: url("./assets/abstract-dotted-pattern-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.animated-text-wrapper {
  display: inline-block;
  position: relative;
  overflow: hidden;

  height: 4.5rem; /* Estimated height for text-6xl. Adjust if line-height differs. */
  width: 1000px; /* Estimated width for "Karnataka Electricity Board Employees Association". Adjust precisely. */
  max-width: 90%; /* Ensures responsiveness */

  vertical-align: middle;
  line-height: normal;
  text-align: center;
}

/* --- Styles for the animated text elements themselves --- */
/* They will perfectly overlap within the .animated-text-wrapper */
.animated-text-full,
.animated-text-short {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centering trick */
  white-space: nowrap; /* Prevent text from wrapping */

  /* Inherit font styles from the parent <h1> */
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit; /* Ensures it gets text-white from h1 */
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4); /* Optional shadow */

  /* Tailwind transition classes applied via JavaScript */
  /* Ensure these are in your compiled Tailwind CSS if not using CDN */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out backwards;
  animation-delay: 0.5s;
}

.section-heading {
  font-size: 2.5rem; /* H2 size */
  font-weight: 700; /* Bold */
  color: #1e293b; /* Darker text */
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60%; /* Underline length */
  height: 4px;
  background-image: linear-gradient(to right, #164e63, #0f172a);
  border-radius: 9999px; /* Rounded corners for underline */
}

.dropdown-menu.active {
  display: block;
}
/* Style for mobile dropdown items within the mobile-nav-menu */
#mobile-nav-menu .dropdown-menu {
  position: static; /* Remove absolute positioning for mobile dropdowns */
  width: auto; /* Allow width to be determined by content */
  box-shadow: none; /* No shadow for nested mobile dropdowns */
  border-radius: 0; /* No rounded corners for nested mobile dropdowns */
  background-color: #f9fafb; /* Very light gray for nested mobile dropdowns */
  margin-top: 0.5rem; /* Space between parent and dropdown items */
  padding-top: 0;
  padding-bottom: 0;
}
#mobile-nav-menu .dropdown-menu li a {
  padding-left: 2.5rem; /* Indent mobile dropdown items */
  text-align: center; /* Center text for mobile dropdown items */
}

/* .nav-link {
  position: relative;
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 6px;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-image: linear-gradient(to right, #2563eb, #4338ca);
  border-radius: 9999px;
  opacity: 1;
  transition: width 0.6s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 75%;
} */

/* Custom styles for video responsiveness */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (e.g., for YouTube) */
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem; /* rounded-xl */
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Testimonial Carousel custom CSS */
.testimonial-carousel-container {
  position: relative;
  overflow: hidden;
}
.testimonial-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
  flex: 0 0 100%; /* Each slide takes full width of its container */
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.carousel-button.prev {
  left: 1rem;
}
.carousel-button.next {
  right: 1rem;
}
/* Accordion for Annual Action Plan */
.accordion-item {
  border-bottom: 1px solid #e2e8f0; /* Tailwind gray-200 */
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-top: 0;
  padding-bottom: 0; /* No padding when closed */
}
.accordion-item.active .accordion-content {
  padding-top: 0.5rem; /* Example padding when open */
  padding-bottom: 0.5rem; /* Example padding when open */
  max-height: auto;
}
.accordion-header svg {
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}
/* Floating WhatsApp Icon */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366; /* WhatsApp green */
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.calendar-day-cell {
  min-height: 120px; /* Adjust as needed for desired cell size */
}
.calendar-day-cell {
  min-height: 90px; /* Smaller height for very small screens */
}
@screen sm {
  /* Small screens and up */
  .calendar-day-cell {
    min-height: 100px; /* Slightly taller */
  }
}
@screen md {
  /* Medium screens and up */
  .calendar-day-cell {
    min-height: 120px; /* Original height for tablets/desktops */
  }
}
