/********** Template CSS **********/
:root {
  --primary: #8a2be2; /* Main Purple */
  --secondary: #c186ca; /* Very light purple/lavender for backgrounds */
  --light: #f8f8f9;
  --dark: #001d23;
}

body {
  transition: background-color 0.8s ease-in-out;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/* Container */
.loader-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  flex-direction: column;
  background-color: #ffffff;
  z-index: 99999;
  overflow: hidden;
}

/* Wrapper for centering elements */
.ribbon-spinner-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* SVG Ribbon size */
.ribbon-svg {
  width: 64px;
  height: 64px;
  animation: safeContinuousSpin 4s linear infinite;
}

/* Base text style */
.ribbon-subtext {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #6f42c1;
  margin: 0;
  text-transform: uppercase;
}

/* Continuous, slow rotation is safer than sudden starts/stops */
@keyframes safeContinuousSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility: Stop motion for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ribbon-svg {
    animation: none;
    transform: rotate(0deg);
  }

  .ribbon-spinner-wrapper::after {
    content: "Loading...";
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
  }
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
}

.btn.btn-primary:hover {
  color: var(--primary);
  background: transparent;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.fixed-top {
  transition: 0.5s;
}

.top-bar {
  height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #ffffff;
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--dark);
  }

  .navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 29, 35, 0.8);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--dark);
  border: 12px solid var(--dark);
  border-radius: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8));
  background-size: cover;
}

/* Default per-page header background (fallback for pages without a specific image) */
.page-header {
  background:
    linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),
    url("img/background images/work background.JPG") center center no-repeat;
  background-size: cover;
}

/* Malezi Forum Page Header */
.page-header-malezi {
  padding-top: 12rem;
  padding-bottom: 6rem;
  /* center the background image itself and scale to cover entire header */
  background:
    linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),
    url(../img/blog/blog\ background.jpeg) center center no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

/* Youth Forum Page Header */
.page-header-youth {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background:
    linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),
    url(../img/blog/WhatsApp\ Image\ 2025-12-24\ at\ 11.27.34\ \(1\).jpeg)
      center center no-repeat;
  background-size: cover, cover;
  background-position: center, center, center;
}

/* Per-page header background images */
.page-header[data-bg-image] {
  background-image: var(--bg-image);
  background-attachment: fixed;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #999999;
}

/*** Causes ***/
.causes-item .progress {
  height: 5px;
  border-radius: 0;
  overflow: visible;
}

.causes-item .progress .progress-bar {
  position: relative;
  overflow: visible;
  width: 0px;
  border-radius: 0;
  transition: 5s;
}

.causes-item .progress .progress-bar span {
  position: absolute;
  top: -7px;
  right: 0;
  width: 40px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--primary);
  color: #ffffff;
}

.causes-item .causes-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.causes-item:hover .causes-overlay {
  height: 100%;
  opacity: 1;
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
}

/*** Donate ***/
.donate {
  background: rgba(0, 29, 35, 0.8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked + label {
  color: var(--primary);
  border-color: var(--primary);
}

/*** Team ***/
.team-item img {
  position: relative;
  top: 0;
  transition: 0.5s;
}

.team-item:hover img {
  top: -30px;
}

.team-item .team-text {
  position: relative;
  height: 100px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  margin-top: -60px;
  height: 160px;
}

.team-item .team-text .team-social {
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-text .team-social {
  opacity: 1;
}

.team-item .team-social .btn {
  display: inline-flex;
  color: var(--primary);
  background: #ffffff;
  border-radius: 40px;
}

.team-item .team-social .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text {
  background: var(--light);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary);
  transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

/*** Footer ***/

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-square {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer .btn.btn-square:hover {
  color: var(--secondary);
  border-color: var(--light);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--secondary);
}

.footer .copyright a:hover {
  color: var(--primary);
}

/* FORCE PURPLE OVERRIDES */

/* Fixes the "About Us" and "What We Do" labels */
.bg-secondary {
  background-color: var(--secondary) !important;
}

/* Fixes the progress bar yellow */
.progress-bar {
  background-color: var(--primary) !important;
}

/* Fixes buttons that are still yellow */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Fixes icons and small arrow boxes */
.text-primary,
.btn-sm-square.text-primary,
.fa-arrow-right {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* Fixes the border lines on boxes */
.border-primary {
  border-color: var(--primary) !important;
}

/* Remove dark overlay from carousel */
.carousel-caption {
  background: transparent !important;
}

.carousel-item::after {
  display: none !important; /* Removes the dark tint filter if the template uses one */
}

/* Optional: Add a shadow to the text so it's readable on bright images */
.carousel-caption h1 {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
Counter Animation */
/* Counter Box Styling */
.counter-viewport {
  height: 40px; /* Adjust based on your font size */
  overflow: hidden;
  position: relative;
}

.counter-list {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth 'power' easing */
  transform: translateY(0);
}

.counter-list div {
  height: 40px; /* Must match .counter-viewport height */
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: Button Hover Effects */
.btn-primary {
  background-color: #6f42c1;
  border-color: #6f42c1;
}

.btn-primary:hover {
  background-color: #5a32a3;
  border-color: #5a32a3;
}

.btn-outline-primary {
  color: #6f42c1;
  border-color: #6f42c1;
}

.btn-outline-primary:hover {
  background-color: #6f42c1;
  color: #fff;
}

/* Container for the image and overlay */
.county-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* The hidden overlay */
.county-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 100, 0.85); /* Semi-transparent primary color */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0; /* Hidden by default */
  transition: all 0.4s ease-in-out;
  transform: translateY(20px);
}

/* Show overlay on hover */
.testimonial-item:hover .county-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Image scaling effect */
.testimonial-item img {
  transition: transform 0.5s ease;
}
.testimonial-item:hover img {
  transform: scale(1.1);
}

/* Ensure the carousel container has space at the bottom for nav */
.testimonial-carousel {
  padding-bottom: 50px;
  position: relative;
}

/* Position the Nav Buttons (Arrows) at the bottom center */
.testimonial-carousel .owl-nav {
  position: absolute;
  width: 100%;
  top: auto;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 15px; /* Space between the two arrows */
  margin-top: 20px;
}

/* Style the Arrows to look professional */
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: var(--primary) !important; /* Uses your theme's primary color */
  border-radius: 45px;
  font-size: 20px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--secondary) !important; /* Darker shade on hover */
}

/* GALLERY 
ensure the dots (if any) are also below */
.testimonial-carousel .owl-dots {
  margin-top: 15px;
  text-align: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 41, 102, 0.85); /* Dark blue overlay */
  color: #ffffff;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  padding: 15px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Replace link icon in gallery overlays with an epilepsy ribbon */
.gallery-overlay .fa.fa-link {
  display: inline-block;
  width: 36px;
  height: 36px;
  color: transparent; /* hide font icon */
  margin-bottom: 0.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%236a1b9a' d='M32 6c-7 0-14 7-14 13 0 8 7 13 14 21 7-8 14-13 14-21 0-6-7-13-14-13zm-5 34l-7 10 10-3 9-13-12 6z'/></svg>");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Adjust the size of the logo */
/* Custom Logo Styling */
.logo-img {
  height: 100px; /* Adjust this to make it bigger or smaller */
  width: auto;
  padding: 10px 0;
  z-index: 1000; /* Ensures it stays on top of the background image */
}

/* Small consistent sizing for service icons (vision, mission, programmes) */
.service-icon {
  width: 80px;
  height: auto;
}

/* Fix for the Navbar spacing */
.navbar-brand {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Responsive adjustment for Mobile */
@media (max-width: 991.98px) {
  .logo-img {
    height: 70px; /* Smaller on mobile to fit the header */
  }
}

.counter-viewport {
  height: 50px; /* Match this to the line-height of your numbers */
  overflow: hidden; /* Hides the numbers above and below */
  text-align: center;
}

.counter-list {
  display: flex;
  flex-direction: column;
  transition: transform 3s cubic-bezier(0.12, 0, 0.39, 1); /* Professional "slow-down" ease */
}

.counter-list div {
  height: 50px; /* Must match viewport height */
  line-height: 50px;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
}

.mpesa-card {
  background: #f8f9fa;
  border-left: 5px solid #28a745;
  border-radius: 8px;
}
.copy-btn {
  cursor: pointer;
  transition: all 0.2s;
  border: 1px dashed #28a745;
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  color: #28a745;
}
.copy-btn:hover {
  background: #28a745;
  color: #fff;
}
.copy-success {
  background: #28a745 !important;
  color: white !important;
}

/* The Modern Rounded Box */
.nice-shape {
  border-radius: 30px; /* Strong rounded corners */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Deep soft shadow */
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

/* Styling the Input Fields to match the rounded theme */
.form-control {
  border-radius: 12px !important;
}

/* Currency and Amount Buttons */
.btn-group {
  border-radius: 15px;
  overflow: hidden;
}

.btn-outline-primary,
.btn-light {
  border-radius: 12px !important;
  margin: 2px;
}

/* Payment Logos */
.payment-icon {
  width: 50px;
  height: 30px;
  object-fit: contain;
  transition: 0.3s;
  cursor: pointer;
}
.payment-check:checked + label .payment-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px #6f42c1);
}

/* KES Amount Styling & Purple Hover */
.kes-highlight {
  color: #28a745;
  font-weight: 800;
  transition: 0.3s;
}
.btn-light:hover .kes-highlight {
  color: #6f42c1 !important;
}

#customAmountContainer {
  display: none;
}

/* 1. The Glass Container */
.nice-shape {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* 2. Fix for "Currency" and "Payment Method" Labels */
.nice-shape label.text-muted,
.nice-shape .small.fw-bold {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.3); /* Dark "shield" background */
  padding: 2px 12px;
  border-radius: 50px;
  display: inline-block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

/* 3. Improve Form Inputs (Floating Labels) */
.nice-shape .form-floating > .form-control {
  background: rgba(
    255,
    255,
    255,
    0.9
  ) !important; /* Make inputs solid white for contrast */
  color: #000 !important;
  border-radius: 10px;
}

.nice-shape .form-floating > label {
  color: #666 !important; /* Ensure the "Your Name" text is dark/readable */
  text-shadow: none;
}

/* 4. Payment Icons visibility */
.payment-icon {
  background: white;
  padding: 5px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.payment-icon:hover {
  transform: scale(1.1);
}

/* Custom Lavender Color for Awareness 404 page start */
.text-primary,
.awareness-ribbon {
  color: #967bb6 !important; /* Standard Epilepsy Awareness Lavender */
}

.bg-lavender-light {
  background-color: rgba(150, 123, 182, 0.15);
}

/* This box holds both icons */
/* Container */
.maintenance-icon-box {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
}

/* The Gear */
.gear-rotate {
  font-size: 8rem;
  color: rgba(150, 123, 182, 0.2); /* Very light lavender gear */
  display: block;
  animation: spin 12s linear infinite;
}

/* Base style for all ribbons */
.awareness-ribbon {
  position: absolute;
  color: #967bb6 !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* Center Ribbon (The Biggest) */
.main-ribbon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 3;
  animation: sway 3s ease-in-out infinite;
}

/* Floating Ribbon 1 (Top Left) */
.sub-ribbon-1 {
  top: 10%;
  left: 10%;
  font-size: 2rem;
  opacity: 0.8;
  animation: float 4s ease-in-out infinite;
}

/* Floating Ribbon 2 (Bottom Right) */
.sub-ribbon-2 {
  bottom: 15%;
  right: 10%;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: float 5s ease-in-out infinite reverse;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-10deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(10deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

/* Hero Image Styling */
.main-featured-post {
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.main-featured-post img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
}

/* Editorial Grid Styling */
.editorial-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: 0.3s;
  cursor: pointer;
}

.editorial-card h5:hover {
  color: #967bb6; /* Lavender accent */
}

.editorial-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.editorial-card:hover img {
  opacity: 0.8;
}

/* Sidebar Styling */
.sidebar-box h6 {
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.badge.border {
  background: white;
  font-weight: normal;
  transition: 0.3s;
}

.badge.border:hover {
  background: #967bb6;
  color: white !important;
  border-color: #967bb6;
}

.btn-play span {
  transition: 0.5s;
  position: relative;
  z-index: 1;
}

.btn-play:hover span {
  transform: scale(1.1);
  background-color: #000 !important;
}

.btn-play::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 107, 255, 0.5); /* Match your primary color */
  border-radius: 50%;
  z-index: 0;
  animation: pulse-border 1.5s linear infinite;
}

@keyframes pulse-border {
  0% {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

/* Styling to match the overlay text in your image */
.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  min-height: 500px;
}
.featured-card img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  position: absolute;
}
.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
}
.sidebar-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
/* Custom CSS for NCWPD Blog Page *
        /* Hero Section for ncwpd page */
header {
  background:
    linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1351&q=80");
  background-size: cover;
  color: white;
  padding: 60px 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Main Blog Content */
.main-content {
  padding: 40px 0;
}
.section-title {
  border-left: 5px solid var(--primary-blue);
  padding-left: 15px;
  margin: 30px 0;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.blog-post {
  background: white;
  padding: 20px;
  border-radius: 8px;
}
.feature-box {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-top: 4px solid var(--secondary-teal);
}

/* Skills List */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}
.skill-item {
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Diagram Placeholder */
.diagram-container {
  text-align: center;
  background: #e9ecef;
  padding: 30px;
  margin: 20px 0;
  border-radius: 10px;
}

/* Social/Update Section */
.updates-section {
  background: var(--light-bg);
  padding: 50px 0;
}
.update-card {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.update-card:hover {
  transform: translateY(-5px);
}

.cta-button {
  display: inline-block;
  background: var(--accent-green);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
/* Custom Styling for Career Assessment Page */
.blog-image-wrap {
  margin: 2.5rem 0;
  text-align: center;
}
.blog-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.blog-image-wrap img:hover {
  transform: scale(1.02);
}
.img-caption {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.75rem;
  font-style: italic;
}
.update-card {
  transition: all 0.3s ease;
  border: none !important;
}
.update-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: #007bff;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
/* Colorful Impact Section Styling */
.bg-soft-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #eef9f9 100%);
}

.impact-card {
  transition: all 0.3s ease;
  border-radius: 20px !important;
  overflow: hidden;
}

.impact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 86, 179, 0.1) !important;
}

/* Color Accents for Categories */
.tag-career {
  background: rgba(0, 86, 179, 0.1);
  color: #0056b3;
}
.tag-advocacy {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
}
.tag-medical {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
}

.card-img-wrap {
  overflow: hidden;
  height: 200px;
}

.card-img-wrap img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* Custom Darts Tournament Page Styling */
:root {
  --report-navy: #09090b; /* Almost black for sharp text */
  --report-accent: #d63031; /* Subtle red for highlights */
  --report-muted: #71717a;
}

.report-body {
  max-width: 800px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  color: var(--report-navy);
  line-height: 1.7;
}

/* Sharp, Simple Heading */
.clean-header {
  text-align: left;
  margin-bottom: 60px;
}

.clean-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.clean-header .meta {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--report-accent);
}

/* Minimalist Content Sections */
.report-section {
  margin-bottom: 50px;
}

.report-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.report-section h2::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--report-accent);
  margin-right: 12px;
}

/* Data Points without boxes */
.data-grid {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #f4f4f5;
}

.data-item .val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.data-item .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--report-muted);
  font-weight: 600;
}

/* The Pull Quote */
.impact-quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--report-navy);
  padding: 40px 0;
  border-bottom: 1px solid #f4f4f5;
  margin-bottom: 40px;
}

/* Blog Carousel Styles */
.blog-carousel {
  max-width: 100%;
}

.blog-carousel .owl-nav {
  position: absolute;
  top: -60px;
  right: 0;
  left: auto;
  display: flex;
  gap: 10px;
}

.blog-carousel .owl-nav button {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.blog-carousel .owl-nav button:hover {
  background: #6a1fa3 !important;
}

.blog-carousel .owl-nav button.disabled {
  background: #ccc !important;
  cursor: not-allowed;
}

.blog-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.blog-carousel .owl-dots button {
  background: #ddd !important;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-carousel .owl-dots button.active {
  background: var(--primary) !important;
}

.blog-carousel .item {
  padding: 15px;
}

.blog-carousel .blog-card {
  transition: all 0.3s ease;
}

.blog-carousel .blog-card:hover {
  box-shadow: 0 5px 20px rgba(138, 43, 226, 0.15) !important;
  transform: translateY(-5px);
}

/* Container styling */
#spinner {
  z-index: 9999;
}

/* Wrapper setup */
.overlay-loader-wrapper {
  padding: 3rem 2rem;
}

/* Base text styling */
.awareness-text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #6f42c1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.25;
  user-select: none;
}

/* Ribbon overlay positioning and visibility */
.ribbon-overlay {
  z-index: 2;
  pointer-events: none;
}

.ribbon-overlay img {
  filter: drop-shadow(0px 2px 8px rgba(255, 255, 255, 0.9));
}

/* SAFE BREATHING ANIMATION */
.pulse-element {
  animation: safeBreathPulse 3s ease-in-out infinite;
}

@keyframes safeBreathPulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ACCESSIBILITY: Stop animation if reduce motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .pulse-element {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

#epilepsy-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10000;
  padding: 20px;
  border-radius: 20px;
  color: white;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
  width: 280px; /* Slightly wider for all units */
  transition: opacity 0.3s ease;
}
#close-btn {
  position: absolute;
  top: 5px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.7;
}
.widget-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
  font-weight: bold;
}
.timer-container {
  display: flex;
  justify-content: space-between;
}
.time-segment {
  flex: 1;
}
.time-value {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}
.time-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.8;
}

:root {
  --primary: #512da8; /* Deep Purple */
  --secondary: #2980b9; /* Calm Blue */
  --accent: #e74c3c; /* Alert Red */
  --light: #f4f7f6;
  --text: #2c3e50;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, #311b92 0%, #512da8 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

header h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: -1px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 20px auto 0;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.intro-box {
  background-color: var(--light);
  padding: 20px 30px;
  border-radius: 12px;
  border-left: 6px solid var(--secondary);
  margin-top: -80px; /* Overlap effect */
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

h2 {
  text-align: center;
  color: var(--primary);
  margin: 60px 0 30px;
  font-size: 2rem;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

figure {
  margin: 0;
  transition: transform 0.3s ease;
}

figure:hover {
  transform: translateY(-5px);
}

figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

figcaption {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Myth Cards */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.myth-card {
  padding: 30px;
  background: #fffafa;
  border: 1px solid #ffebeb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.myth-card:hover {
  background: #fff;
  box-shadow: 0 10px 20px rgba(231, 76, 60, 0.1);
  border-color: var(--accent);
}

.myth-card h4 {
  color: var(--accent);
  margin-top: 0;
  font-size: 1.2rem;
}

/* Framework Icons */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.tool-item .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  background: #f0f3ff;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
}

/* Action Section */
.action-banner {
  background: var(--primary);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  margin-top: 80px;
  text-align: center;
}

.action-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.action-list li {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  text-align: left;
}

.quote {
  margin-top: 50px;
  font-size: 1.5rem;
  font-weight: 300;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

footer {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 0.9rem;
}

/* Volunteer Section "Hollow" Style */
.volunteer-input-hollow {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  padding: 12px 15px !important;
}

.volunteer-input-hollow::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: italic;
}

.volunteer-input-hollow:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  border-color: #ffffff !important;
  outline: none;
}

/* Transition between the sections */
.section-partnership {
  border-bottom: 5px solid #6f42c1; /* Brand purple border to lead into the volunteer section */
}

:root {
  --epilepsy-purple: #663399; /* Royal Purple */
  --accent-purple: #9b59b6;
  --soft-bg: #fdfcff;
  --card-bg: #ffffff;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --myth-red: #ff5e57;
  --fact-green: #1dd1a1;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  --radius: 24px;
}

body {
  background-color: var(--soft-bg);
  color: var(--text-dark);
  font-family: "Inter", sans-serif;
}

/* Hero Section */
.stigma-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--soft-bg) 100%);
}

.hero-title {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 6px;
  color: var(--epilepsy-purple);
}

/* Floating Bench Image */
.visual-anchor {
  max-width: 1000px;
  margin: -40px auto 80px;
  padding: 0 20px;
}

.floating-card {
  background: var(--card-bg);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.floating-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* Narrative Flow */
.narrative-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.narrative-row.reverse {
  flex-direction: row-reverse;
}

.img-container {
  flex: 1.2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 500px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  flex: 0.8;
}

/* Panel Grid */
.panel-box {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--epilepsy-purple);
}

.badge-purple {
  background: rgba(102, 51, 153, 0.1);
  color: var(--epilepsy-purple);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

/* Myth Styling */
.myth-alert {
  border-left: 4px solid var(--myth-red);
  background: #fff5f5;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

/* Illustration Container Styling */
.illustration-box {
  flex: 1;
  background: #f8f7ff; /* Soft purple tint */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(102, 51, 153, 0.05);
}

/* This simulates a "badge" on the illustration */
.status-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
}

.myth-card-row {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.myth-card-row.reverse {
  flex-direction: row-reverse;
}

.myth-text-side {
  flex: 1.5;
}

.myth-tag {
  color: #e74c3c;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fact-tag {
  color: #27ae60;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Training Page Specifics */
.training-wrapper {
  background-color: #ffffff;
}

/* Plan of Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.action-item {
  background: #fdfcff;
  padding: 25px;
  border-radius: 18px;
  border: 1px solid rgba(102, 51, 153, 0.08);
  transition: all 0.3s ease;
}

.action-item:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(102, 51, 153, 0.05);
}

.action-icon {
  width: 45px;
  height: 45px;
  background: var(--epilepsy-purple);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Survey/Impact Card */
.impact-card {
  background: var(--charcoal);
  color: white;
  padding: 50px;
  border-radius: var(--radius);
  margin-top: 60px;
}

.kaps-tag {
  background: var(--epilepsy-purple);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
/* Enhanced Impact Card */
.impact-card {
  background: #2d3436; /* Deep Charcoal */
  color: #ffffff; /* Pure White Text */
  padding: 60px;
  border-radius: 24px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.impact-card h2 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

.impact-card p {
  color: #dfe6e9; /* Light grey for better readability on dark bg */
  font-size: 1.1rem;
  line-height: 1.8;
}

.kaps-tag {
  background: #663399; /* Epilepsy Purple */
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
}

.impact-icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Gradient Background for the whole section FAQs */
.faq-section {
  background: linear-gradient(135deg, #f5f7ff 0%, #ede7f6 50%, #f3e5f5 100%);
  border-radius: 30px;
  padding: 60px 0;
}

/* Sidebar Tab Styling */
.nav-pills .nav-link {
  background-color: white;
  color: #6a1b9a; /* Deep Purple */
  border: 1px solid #e1bee7;
  transition: 0.3s;
}

/* Purple color when a category is selected */
.nav-pills .nav-link.active {
  background-color: #6a1b9a !important;
  color: white !important;
}

/* Accordion Button Styling */
.accordion-button {
  color: #4a148c;
  font-weight: 600;
}

/* Purple color when an accordion question is open/clicked */
.accordion-button:not(.collapsed) {
  background-color: #f3e5f5;
  color: #7b1fa2;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

/* Matching the icon color */
.accordion-button::after {
  filter: hue-rotate(280deg); /* Shifts standard icons toward purple */
}

/* Ensures all conference/award images have a consistent look */
.feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.award-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: -60px auto 1rem; /* Creates an overlapping effect */
}

/* Soft Gradient Background for the whole section */
.ngo-section-bg {
  background: linear-gradient(135deg, #fdfbfb 0%, #f3e5f5 100%);
  position: relative;
}

/* The Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.6) !important; /* Semi-transparent white */
  backdrop-filter: blur(10px); /* The "frosted" effect */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Light border for definition */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Softening the Lavender color for NGO feel */
.bg-lavender-light {
  background-color: rgba(225, 190, 231, 0.4);
  color: #4a148c;
}

.conf-custom-card {
  border-radius: 0px !important;
  overflow: visible !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}
.conf-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0px !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.conf-custom-card:hover .conf-img {
  transform: scale(1.06);
}
.conf-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6c5ce7 0%, #e84393 100%);
}
.conf-badge {
  background-color: #3f37c9 !important;
  color: #ffffff !important;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 12px !important;
  border-radius: 3px !important;
}
.conf-title-link {
  transition: color 0.2s ease;
}
.conf-title-link:hover {
  color: #6c5ce7 !important;
}
.conf-dot-grid {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 60px;
  height: 44px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
  background-size: 8px 8px;
}
.conf-animated-card {
  opacity: 0;
  transform: translateY(40px);
  animation: confFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--order) * 0.15s);
}
@keyframes confFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  .conf-grid-layout .col-md-6:nth-child(even) {
    margin-top: 60px;
  }
}
/* Card Sharp Visual Framework */
.conf-custom-card {
  border-radius: 0px !important; /* Forces clean square edges from layout mockup */
  overflow: visible !important; /* Essential to let the dot grids peek past borders */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

/* Enforces exact uniform sizing on all image paths smoothly */
.conf-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0px !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image-scale interaction hover animation */
.conf-custom-card:hover .conf-img {
  transform: scale(1.05);
}

/* Magenta/Purple Dual Accent Divider Line */
.conf-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--epilepsy-purple, #6c5ce7) 0%,
    #e84393 100%
  );
}

/* Date Badge Block adjustments */
.conf-badge {
  background-color: #3f37c9 !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px !important;
  border-radius: 2px !important;
}

/* Header Text Interaction Properties */
.conf-title-link {
  transition: color 0.2s ease;
}
.conf-title-link:hover {
  color: var(--epilepsy-purple, #6c5ce7) !important;
}

/* Background matrix pattern accent layer */
.conf-dot-grid {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 60px;
  height: 44px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
  background-size: 8px 8px;
}

/* Smooth Entrance Cascading Animations */
.conf-animated-card {
  opacity: 0;
  transform: translateY(35px);
  animation: confRevealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--order) * 0.12s);
}

@keyframes confRevealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Asymmetric column offset style to precisely mirror the sample page */
@media (min-width: 768px) {
  .conf-grid-layout .col-md-6:nth-child(even) {
    margin-top: 55px;
  }
}
