/*
Theme Name: HTBF
Theme URI: https://webinfotek.in
Author: Webinfotek / You
Author URI: https://webinfotek.in
Description: Fully custom accessible theme for Help The Blind Foundation.
Version: 1.0.0
Text Domain: htbf
*/
/* License: GNU General Public License v2 or later */


/* font import */
@import url('https://fonts.googleapis.com/css2?family=lato:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=arial:wght@400;500;600;700&display=swap');   



@media (min-width: 922px) {
    #secondary {
        width: 100%;
    }
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 15px;
  color: #222;
}



/* Base H1 size */
h1 {
  font-size: 3rem; /* 3 * 16px = 48px */
}

h2 {
  font-size: 2.25rem; /* 2.25 * 16px = 36px */
}

h3 {
  font-size: 1.75rem; /* 1.75 * 16px = 28px */
}

h4 {
  font-size: 1.25rem; /* 1.25 * 16px = 20px */
}

h5 {
  font-size: 1rem; /* 1 * 16px = 16px */
}

h6 {
  font-size: 0.75rem; /* 0.75 * 16px = 12px */
}


/* Change the primary button styles to dark */
.btn-primary {
    background-color: #212529 !important; /* Bootstrap dark color */
    border-color: #212529 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a1e21 !important; /* Slightly darker on hover */
    border-color: #1a1e21 !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.2) !important;
}

/* Update carousel button styles */
#homepageCarousel .carousel-caption .btn-primary {
    background-color: #212529 !important;
    color: #fff !important;
    border: none;
}

#homepageCarousel .carousel-caption .btn-primary:hover,
#homepageCarousel .carousel-caption .btn-primary:focus {
    background-color: #1a1e21 !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.2);
}

.ast-builder-menu .main-navigation>ul
 {
    align-self: center;
    margin-left: -15px;
}

/* ✅ Equal top/bottom padding for all sections except the hero slider */
main.site-main > section:not(#slider-carousel):not(#announcement-section) {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

/* 🔹 Adjust for smaller screens */
@media (max-width: 767.98px) {
  main.site-main > section:not(#slider-carousel):not(#announcement-section) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}


/* .about-us, 
.vision-mission, 
.donation-cta, 
.our-causes, 
.team-members, 
.financial-report, 
.countdown, 
.sponsors,
.home-blog {
  padding:100px 0 !important
} */


/* Initially hide the elements */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Visible state when scrolled into view */
.fade-in.visible {
  opacity: 1;
}


/* Loader overlay */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

#loader svg {
  width: 80px;
  height: auto;
  overflow: visible;
}

#loader svg circle {
  transform-origin: center;
  animation: pulse 2.5s infinite ease-in-out;
}

#loader svg circle:nth-child(1) { animation-delay: 0s; }
#loader svg circle:nth-child(2) { animation-delay: 0.3s; }
#loader svg circle:nth-child(3) { animation-delay: 0.6s; }
#loader svg circle:nth-child(4) { animation-delay: 0.9s; }
#loader svg circle:nth-child(5) { animation-delay: 1.2s; }
#loader svg circle:nth-child(6) { animation-delay: 1.5s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

body.loaded #loader {
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
}

.page-content {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.loaded .page-content {
  opacity: 1;
}


body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


.full-width {
    width: 100% !important;
    margin-left: 0;
    margin-right: calc(50% - 50vw);
    position: relative;
    left: 0;
    right: 0;
}

@media (max-width: 767.98px) {
  .full-width {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}




/* override parent theme styles here */
#primary {
    margin: 0 !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid #ddd !important;
}

/* Ensure sections are full-width and block */

.page-title {
    margin-top:1em !important;
    margin-bottom: 1em;
    font-weight: bold;
}



/* Countdown */


.countdown {
  position: relative;
  padding: 100px 0 50px;
  color: #fff;
  background: url('./assets/img/counter-bg.jpg') center center / cover no-repeat;
  background-attachment: fixed; /* Parallax effect */
  z-index: 1;
}

.countdown .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9); /* Dark overlay */
  z-index: 0;
}

.countdown .container {
  position: relative;
  z-index: 1; /* Keeps content above overlay */
}

.counter-item {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.counter-suffix {
  font-size: 1.5rem;
  margin-left: 0.2rem;
  color: #fff;
}

.counter-title {
  font-size: 1rem;
  margin-top: 0.5rem;
}






.our-causes .card-img-top {
    width: 100% !important;
    height: 250px !important; /* adjust as needed */
    object-fit: cover  !important; /* crop without distortion */
    object-position: center !important; /* keep image centered */
}



/* home page counter */



/*** ===================================================
     HOMEPAGE HERO SWIPER (WCAG READY, DROP-IN VERSION)
     =================================================== ***/

/* ==========================================================
   HOMEPAGE HERO SWIPER — WCAG + NEW ARROW STYLE (DROP-IN)
   ========================================================== */


/* ===== Base Swiper Container ===== */

.homepageSwiper {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  position: relative;
  background: #e9e9e9;
  overflow: hidden;
}

.homepageSwiper .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.homepageSwiper .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
}


/* ===== Slide Image ===== */

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e9e9e9;
  display: block;
}


/* ===== Caption Positioning ===== */

.homepageSwiper .slide-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 650px;
  padding: 20px 30px;
  text-align: left;
  border-radius: 8px;
  z-index: 2;
}


/* ===== Typography ===== */

.homepageSwiper .slide-caption h1,
.homepageSwiper .slide-caption h2,
.homepageSwiper .slide-caption h3 {
  color: #F2613D;
  font-size: 4rem;
  line-height: 1.1;
}

.homepageSwiper .slide-caption p {
  font-size: 1.6rem;
  line-height: 1.4;
  color: #000;
}


/* ===== CTA Buttons ===== */

.homepageSwiper .slide-caption .btn {
  display: inline-block;
  width: auto;
  max-width: max-content;
  min-width: unset;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  line-height: 1.4;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Primary button */
.homepageSwiper .slide-caption .btn-primary {
  background-color: #0d6efd;
  color: #fff;
  border: none;
}
.homepageSwiper .slide-caption .btn-primary:hover,
.homepageSwiper .slide-caption .btn-primary:focus {
  background-color: #0b5ed7;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.2);
}

/* Outline light */
.homepageSwiper .slide-caption .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.homepageSwiper .slide-caption .btn-outline-light:hover,
.homepageSwiper .slide-caption .btn-outline-light:focus {
  background: #fff;
  color: #000;
}


/* ==================================================
   NAVIGATION ARROWS (MATCH TESTIMONIAL STYLE)
   ================================================== */

.homepageSwiper .swiper-button-prev,
.homepageSwiper .swiper-button-next {
  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  background: #000 !important;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);

  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);

  z-index: 9999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  color: #fff !important;
}

/* hide default Swiper pseudo icons */
.homepageSwiper .swiper-button-prev::after,
.homepageSwiper .swiper-button-next::after {
  display: none !important;
}

/* inline SVG styling */
.homepageSwiper .swiper-button-prev svg,
.homepageSwiper .swiper-button-next svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

/* static fallback positions (JS auto-pos overrides if used later) */
.homepageSwiper .swiper-button-prev { left: 18px !important; }
.homepageSwiper .swiper-button-next { right: 18px !important; }

/* optional hover glow */
.homepageSwiper .swiper-button-prev:hover,
.homepageSwiper .swiper-button-next:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.5) !important;
}


/* ==================================================
   PAGINATION (Indicators)
   ================================================== */

.homepageSwiper .swiper-pagination {
  bottom: -30px !important;
}

.homepageSwiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(177, 90, 9, 0.6);
  margin: 0 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Focus ring (WCAG AAA) */
.homepageSwiper .swiper-pagination-bullet:focus-visible {
  outline: 3px solid #F2613D;
  outline-offset: 3px;
}

/* Active bullet */
.homepageSwiper .swiper-pagination-bullet-active {
  background: #000000;
  border-color: #fff;
}


/* ==================================================
   PLAY / PAUSE BUTTON
   ================================================== */

.swiper-pause-btn {
  position: absolute;
  bottom: 10px;
  right: 30px;
  z-index: 1100;

  background: rgba(255,255,255,.9);
  color: #000;
  border: 0;
  border-radius: 0;
  padding: .5rem .9rem;
  font-size: 1rem;
  cursor: pointer;
}

.swiper-pause-btn:hover,
.swiper-pause-btn:focus-visible {
  background: rgba(255,255,255,1);
  outline: 3px solid #F2613D;
  outline-offset: 3px;
}


/* ==================================================
   MOBILE OVERLAY
   ================================================== */


/* ==================================================
   HOMEPAGE SLIDER – MOBILE
================================================== */

@media (max-width: 768px) {

  .homepageSwiper {
    position: relative;
  }

  /* Caption wrapper */
  .homepageSwiper .slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;                 /* more breathing room */
    max-width: 360px;
    padding: 16px 18px;
    text-align: center;
    z-index: 2;
  }

  /* Headings */
  .homepageSwiper .slide-caption h1,
  .homepageSwiper .slide-caption h2,
  .homepageSwiper .slide-caption h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #fff;
  }

  /* Text */
  .homepageSwiper .slide-caption p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #fff;
  }

  /* Button */
  .homepageSwiper .slide-caption .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  /* Mobile overlay */
  .homepageSwiper .mobile-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9); /* improves text contrast */
    z-index: 1;
  }

  /* Hide arrows */
  .homepageSwiper .swiper-button-prev,
  .homepageSwiper .swiper-button-next {
    display: none !important;
  }

  /* Pause button */
  .swiper-pause-btn {
    bottom: 20px;
    right: 20px;
    z-index: 3;
  }
}


.homepageSwiper .swiper-button-prev,
.homepageSwiper .swiper-button-next,
#homepagePauseBtn,
#homepagePauseBtn * {
  pointer-events: auto !important;
  z-index: 999999 !important;
}



/* Screen reader only text */
.sr-announcement {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==============================
  footer
   ============================== */


.site-footer {
    background-color: #2f3a47;
}

.site-footer h4 {
    font-weight: 600;
}

.site-footer .text-warning {
    color: #F2613D !important;
}

.site-footer .border-top {
    border-color: rgba(255,255,255,0.15) !important;
}

/* ==================================================
   FOOTER – MOBILE SECTION DIVIDERS (HTBF)
================================================== */

@media (max-width: 768px) {

  /* Target each footer column */
  .site-footer .footer-inner > .row > [class^="col-"] {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Remove divider from last column */
  .site-footer .footer-inner > .row > [class^="col-"]:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

}


/* ============================================
   FOOTER NEWSLETTER FORM (Global Override)
   ============================================ */
/* ============================================
   FOOTER NEWSLETTER FORM — SAFE SCOPE
   ============================================ */

.footer-newsletter {
  overflow-x: hidden;
  max-width: 100%;
}

/* Only target direct form elements (not every child!) */
.footer-newsletter form {
  display: block;
  width: 100%;
}

/* Input styles */
.footer-newsletter input[type="text"],
.footer-newsletter input[type="email"],
.footer-newsletter input[type="tel"],
.footer-newsletter input[type="name"],
.footer-newsletter .form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
}

/* Placeholder */
.footer-newsletter input::placeholder {
  color: #888;
}

/* Show vertical rhythm only in THIS form */
.footer-newsletter form > * {
  margin-bottom: 12px;
}

/* Submit button */
.footer-newsletter input[type="submit"],
.footer-newsletter button,
.footer-newsletter .tnp-submit,
.footer-newsletter .wpforms-submit {
  background: #F2613D !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
}

/* Hover */
.footer-newsletter input[type="submit"]:hover,
.footer-newsletter button:hover {
  background: #d04c28 !important;
}

/* Fix horizontal scroll (mobile) */
.footer-newsletter input {
  min-width: 0;
}

.footer-social-icon svg {
  display: inline-block;

  color: #ffffff;
  fill: currentColor;
  transition: color .2s ease;
  margin-right: 10px;
}

.footer-social-icon:hover svg {
  color: #F2613D;
}

/* Error border */
.wpcf7-not-valid {
  border-color: #c0392b !important;
  outline: 2px solid #c0392b !important;
}

/* Error messages */
.wpcf7-not-valid-tip {
  font-size: 0.875rem;
  color: #c0392b;
  margin-top: 4px;
}

/* CF7 success message */
.wpcf7-response-output {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Colors */
.wpcf7-mail-sent-ok {
  background: #d4edda !important;
  color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background: #f8d7da !important;
  color: #721c24;
}


/* ==============================
   Dononrs page
   ============================== */

/* ✅ Donors Page Styling */
.donors-gallery .donor-item img {
  transition: transform 0.3s ease;
}

.donors-gallery .donor-item:hover img {
  transform: scale(1.05);
}

/* Optional: add a subtle hover lift effect for better visuals */
.donors-gallery .donor-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donors-gallery .donor-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


/* ==============================
   Team Members Section
   ============================== */

.team-members {
    margin: 0 0 40px 0;
    text-align: center;
}

.team-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.board-type {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

/* ✅ Force exactly 3 per row on desktops */
@media (min-width: 1024px) {
    .team-members .team-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.team-member {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.team-photo img {
    border-radius: 50%;
    max-width: 150px;
    margin-bottom: 15px;
}

.team-member h3 {
    margin: 10px 0 5px;
    font-size: 20px;
}

.team-member .designation {
    font-weight: normal;
    color: #666;
    margin-bottom: 10px;
}



.main-header {
    position: relative;
    z-index: 3;
    -webkit-box-shadow: 0 10px 15px rgba(25, 25, 25, 0.1);
}


/* ==============================
   Financial Report Page
   ============================== */

/* Sidebar */
.report-sidebar {
    max-height: 80vh;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    position: sticky;
    top: 2rem;
}

.report-sidebar .list-group-item {
    cursor: pointer;
    transition: background-color 0.3s;
}

.report-sidebar .list-group-item:hover,
.report-sidebar .list-group-item.active {
    background-color: #f5fbff;
    color: #000000;
}

/* PDF Viewer */
.report-main iframe {
    width: 100%;
    height: 80vh;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
}

/* Mobile adjustments */
.sidebar-toggle {
    display: none;
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: inline-block;
        width: 100%;
        margin-bottom: 1rem;
    }
    .report-sidebar {
        display: none;
        border-right: none;
        max-height: none;
    }
    .report-sidebar.open {
        display: block;
        margin-bottom: 1rem;
    }
    .report-main iframe {
        height: 100vh;
    }
}

/* Desktop sticky sidebar */
@media (min-width: 992px) {
    .report-sidebar {
        position: sticky;
        top: 170px; /* adjust for header height */
        max-height: calc(100vh - 120px);
    }
}


/* ==============================
   Donation CTA Section
   ============================== */

  .donation-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0 40px;
  }

.donation-cta .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.donation-cta .container {
  position: relative;
  z-index: 2;
}


@media (max-width: 991px)  {
    .donation-cta {
        padding: 40px 30px 20px;

        }
}

/* =======================================================
   TESTIMONIAL SWIPER — CLEAN FINAL MERGE
======================================================= */
/* =============================================
   TESTIMONIAL SWIPER — CONSOLIDATED CSS
============================================= */

.testimonialSwiper {
    width: 100%;
    padding-bottom: 40px;
    /* keep horizontal inset so navigation buttons don't overlap cards */
    padding-left: 64px;
    padding-right: 64px;
    box-sizing: border-box; /* ensure padding is included in width calculation */
  /* keep arrows visible while preventing horizontal page scroll */
  overflow-x: hidden; /* prevent horizontal overflow that causes page scroll */
  overflow-y: visible; /* allow vertical overflow (e.g. card content) */
  position: relative;
}

/* Reduce padding on tablets to avoid horizontal scroll */
@media (max-width: 1024px) {
  .testimonialSwiper {
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* Further reduce padding on phones */
@media (max-width: 768px) {
  .testimonialSwiper {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/*** Wrapper layout ***/
.testimonialSwiper .swiper-wrapper {
    display: flex !important;
}

/*** Slide ***/
.testimonialSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  /* Use padding for spacing between slides (keeps layout inside container) */
  padding: 20px;
  box-sizing: border-box;
}

/*** Card ***/
.testimonial-card {
    max-width: 340px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 300px;         /* equal height */
  margin: 0; /* spacing moved to slide padding to avoid overflow */
}

/*** Content & scrollbar ***/
.testimonial-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 6px;
    line-height: 1.6;
    font-style: italic;
}

/*** Author ***/
.testimonial-author img {
    border-radius: 50%;
}
.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 0;
}
.testimonial-info .designation {
    font-size: 0.9rem;
    color: #777;
}

/*** NAVIGATION ARROWS (Auto positioned via JS) ***/
.home-testimonials .swiper-button-prev,
.home-testimonials .swiper-button-next {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/*** Icon color ***/
.home-testimonials .swiper-button-prev::after,
.home-testimonials .swiper-button-next::after {
  /* hide pseudo-content since we use inline SVGs inside the buttons */
  display: none;
}

/*** Pagination ***/
.home-testimonials .swiper-pagination {
    bottom: 0;
    margin-top: 20px;
}
.home-testimonials .swiper-pagination-bullet {
    background: #bbb;
    opacity: 1;
}
.home-testimonials .swiper-pagination-bullet-active {
    background: #007aff;
}

/* NAVIGATION ARROWS — FORCE VISIBLE */
.home-testimonials .swiper-button-prev,
.home-testimonials .swiper-button-next {
  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  background: #000 !important;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);

  top: 50%;
  transform: translateY(-50%);

  z-index: 9999 !important; /* ensure visible */
  opacity: 1 !important;    /* ensure visible */
  visibility: visible !important;
  position: absolute !important; /* ensure positioned for left/right/top to work */
  pointer-events: auto !important;
  color: #fff !important; /* make inline SVG using currentColor visible */
}


.home-testimonials .swiper-button-prev::after,
.home-testimonials .swiper-button-next::after {
  /* hide pseudo-content since we use inline SVGs inside the buttons */
  display: none;
}

/* SVG icon color inside the buttons */
.home-testimonials .swiper-button-prev svg,
.home-testimonials .swiper-button-next svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

.home-testimonials .swiper-button-prev { left: 12px !important; }
.home-testimonials .swiper-button-next { right: 12px !important; }

/* Safety: prevent horizontal page scroll coming from testimonials */
.home-testimonials {
  overflow-x: hidden; /* hide any accidental horizontal overflow */
}

/* Ensure sizing calculations don't exceed container (prevents overflow from padding/margins) */
.testimonialSwiper,
.testimonialSwiper * {
  box-sizing: border-box;
}


/*** MOBILE FIX ***/
@media (max-width: 768px) {
    .home-testimonials .swiper-button-prev,
    .home-testimonials .swiper-button-next {
        display: none !important;
    }
    .testimonial-card {
        height: auto;
        max-width: 90%;
        margin: 10px auto;
    }
}
/* ========/* Vision & Mission Section */
 

/* Vision & Mission Section */

/* Circle wrapper and centered icon */
.vision-mission .vision-icon,
.vision-mission .mission-icon {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;               /* remove inline whitespace */
    margin-bottom: 1rem;          /* spacing before title */
    transform: scale(0.8);        /* initial state for animation */
    opacity: 0;                    /* initial state for animation */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Icon image */
.vision-mission .vision-icon img,
.vision-mission .mission-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Active state when scrolled into view */
.vision-mission .animate-in {
    transform: scale(1);
    opacity: 1;
}

/* Responsive: slightly larger icons on large screens */
@media (min-width: 992px) {
    .vision-mission .vision-icon,
    .vision-mission .mission-icon { 
        width: 100%; 
        height: 1005; 
    }
    .vision-mission .vision-icon img,
    .vision-mission .mission-icon img { 
        max-width: 80%; 
        max-height: 80%; 
        border-radius: 10px;
    }
}

/* Titles and text spacing */
.vision-mission h2 {
    font-weight: 700;
}

.vision-mission p {
    color: #555;
    line-height: 1.6;
}


/* ========/* Vision & Mission Section */

/*
   ==============================
   History Page Template Styles
   ============================== */

/* Ensuring vertical alignment for image and text */
.history-section .row {
    display: flex;
    align-items: center; /* Vertically center the content */
}

.history-section .col-md-6 {
    display: flex;
    align-items: center; /* Vertically center the content in this column */
    justify-content: center; /* Horizontally center the content */
    margin-bottom: 20px;
}

/* Image Styling */
.history-section .col-md-4 img {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensuring image is responsive */
    max-width: 100%; /* Ensuring image does not overflow */
}

/* Hover Effect for Images */
.history-section .col-md-4 img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Ensure Image and Text stack vertically on smaller screens */
    .history-section .row {
        flex-direction: column;
    }

    /* Adjust font sizes and ensure responsive design */
    .history-section .col-md-6 {
        margin-bottom: 20px;
    }

    .history-section .col-md-4 img {
        width: 100%; /* Make sure image takes full width */
        margin-bottom: 20px; /* Space below image */
    }

    .history-section .col-12 p {
        font-size: 1rem; /* Adjust font size */
    }
}

/* Divider Style */
.hr-divider {
    border: 0;
    border-top: 2px solid #ccc; /* Light gray color for divider */
    margin: 30px 0; /* Space around the divider */
}


/* donation page */

#ways-to-support ul {
    list-style: none;
    padding: 0;
    margin: 0;
}   

#ways-to-support ul li {
    position: relative;
    padding-left: 0; /* space for the icon */
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}   
#ways-to-support ul li:last-child {
    border-bottom: none; /* remove border for last item */
}


#ways-to-support ul li span{
    display: inline-block;
}

#ways-to-support .card{
    padding-bottom: 0 !important;
}


/* =========================
   General Masonry Grid Styles
   ========================= */
.photos-page .masonry,
.videos-page .masonry,
.podcasts-page .masonry,
.press-releases-page .masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: auto;
    gap: 1.5rem;
}

.photos-page .masonry-item,
.videos-page .masonry-item,
.podcasts-page .masonry-item,
.press-releases-page .masonry-item {
    break-inside: avoid;
}

/* =========================
   Card Styling for Each Page
   ========================= */
.photos-page .card,
.videos-page .card,
.podcasts-page .card,
.press-releases-page .card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 0 !important;
}

.photos-page .card:hover,
.videos-page .card:hover,
.podcasts-page .card:hover,
.press-releases-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}




/* =========================
   Image / Video / Podcast Thumbnails
   ========================= */
.photos-page .card-img-top,
.videos-page .card-img-top,
.podcasts-page .card-img-top,
.press-releases-page .card-img-top {
    width: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

/* =========================
   Card Body (Title/Excerpt)
   ========================= */
.photos-page .card-body,
.videos-page .card-body,
.podcasts-page .card-body,
.press-releases-page .card-body {
    padding: 1rem;
}

/* ✅ Uniform photo thumbnails */
.photos-page .gallery-item {
  width: 100%;
  height: 250px; /* adjust as needed (200–300px looks good) */
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Optional: make all cards equal height visually */
.photos-page .card.h-100 {
  display: flex;
  flex-direction: column;
}

.photos-page .card-body {
  flex-grow: 1;
  text-align: center;
}


/* press release */
/* Press Release Cards */
.press-thumb-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.press-thumb-wrapper img.press-release-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.press-thumb-wrapper:hover img.press-release-image {
    transform: scale(1.05);
}

.press-thumb-wrapper .card.shadow-sm {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.press-thumb-wrapper .card-body {
    flex: 1;
}

/* =========================
   Placeholder Boxes for Videos/Podcasts Without Thumbnails
   ========================= */
.videos-page .ratio,
.podcasts-page .ratio,
.videos-page .card .bg-dark,
.podcasts-page .card .bg-success {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 576px) {
    .photos-page .card,
    .videos-page .card,
    .podcasts-page .card,
    .press-releases-page .card {
        margin-bottom: 1rem;
    }
}


.video-thumb-wrapper {
    position: relative;
    display: inline-block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%; /* % of thumbnail width */
    max-width: 50px; /* optional max size */
    height: auto;
    opacity: 0.9;
    pointer-events: none;
}


.video-thumb-wrapper:hover .video-play-icon {
    opacity: 1;
}


/* Spotify Embed Styling */

.spotify-thumb {
    width: 100%;
    padding: 10%;
    background-color: #39473d; /* Spotify green */
    border-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spotify-play-icon {
    width: 25%; /* adjust size to your liking */
    height: auto;
    max-width: 60px; /* optional max size */
}

/* Make sure the Lightbox arrows are visible */
.lb-prev, .lb-next {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999;
}

.lb-prev, .lb-next {
    font-size: 30px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
}

.lb-prev:hover, .lb-next:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* contact us page */


/* .card-title {
  font-weight: 600;
  color: #007bff;
} */

.card-text p {
  margin: 0.2rem 0;
}

.country-cards .card {
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.contact-form h3 {
  font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .contact-page .row > div {
    margin-bottom: 2rem;
  }
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==============================
   Fancy Page Header Section
   ============================== */

.page-header-section {
    position: relative;
    overflow: hidden;
    background: #23272b;
    text-align: center;
    padding: 2rem 0 2rem 0;
}

.page-header-section h1 {
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
}

/* ✅ Uniform Blog Thumbnails */
.uniform-thumb,
.blog-card .card-img-top {
  width: 100%;
  height: 250px; /* You can tweak this to 220–300px depending on your layout */
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Keep all blog cards equal height */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-card-body {
  flex-grow: 1;
  padding: 20px 20px 0 20px;
}

.blog-card .entry-title {
  font-size: 1.1rem !important;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card .entry-summary {
  font-size: 0.95rem;
  color: #555;
}

.read-more-btn {
  margin-top: 15px;
}


/* Blog thumbnails */
.blog-thumb-wrapper {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-thumb-wrapper:hover img {
    transform: scale(1.05);
}
/* Generic card grid layout for reach, emet, and sip sections */
.state-list,
.emet-details,
.sip-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Consistent card styling */
.state-card,
.emet-card,
.sip-card {
  width: 100%;
  max-width: 250px; /* all cards same width */
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effect */
.state-card:hover,
.emet-card:hover,
.sip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Image styling */
.state-card img {
  max-height: 80px;
  width: auto;
  margin-bottom: 10px;
}

/* Grand total cards highlighted */
.grand-total-card {
  background: #f8f9fa;
  font-weight: bold;
}

/* Section spacing */
.our-reach-page section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .state-list,
  .emet-details,
  .sip-details {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 575px) {
  .state-list,
  .emet-details,
  .sip-details {
    grid-template-columns: 1fr;
  }
}


/* ===== CTA Section ===== */
/* .cta-section {
    color: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.cta-section .cta-button {
    display: inline-block;
    background: #fff;
    padding: 12px 32px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.cta-section .cta-button:hover {
    background: #e6f0ff;
} */

/* ===== Divider ===== */
.hr-divider {
    border: none;
    margin: 40px 0;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .state-list, .emet-details, .sip-details {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on large tablets */
    }
}

@media (max-width: 992px) {
    .state-list, .emet-details, .sip-details {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .state-list, .emet-details, .sip-details {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }

    .cta-section {
        padding: 30px 15px;
    }
}


/* accordion styling */

.wpsm_panel-title a{
    font-weight: normal;
}

#wpsm_accordion_28268 .wpsm_panel-title {
  line-height: 1.5em;
}

/* Change the primary button styles to dark */
.btn-primary,
btn-outline-primary {
    background-color: #212529 !important;
    /* Bootstrap dark color */
    border-color: #212529 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a1e21 !important;
    /* Slightly darker on hover */
    border-color: #1a1e21 !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, .2) !important;
}

/* Update carousel button styles */
#homepageCarousel .carousel-caption .btn-primary {
    background-color: #212529 !important;
    color: #fff !important;
    border: none;
}

#homepageCarousel .carousel-caption .btn-primary:hover,
#homepageCarousel .carousel-caption .btn-primary:focus {
    background-color: #1a1e21 !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, .2);
}

.search-page .row {
    margin-bottom: 3rem;
    /* Adds space after the entire grid */
}

.search-page .col-12 {
    margin-bottom: 2rem;
    /* Adds space after each card */
}



/* ================================
   Newsletter Template Styles
   ================================ */

   .newsletter-heading{
    padding-left: 45px;
   }

   .newsletter-archive .list-group-item.active {
    background-color: #3998e6;
    color: #fff;
}

.newsletter-archive .list-group-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.newsletter-archive .newsletter-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.newsletter-archive .newsletter-list-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#newsletter-content img {
    max-width: 100%;
    height: auto;
}


.newsletter-wrapper {
    width: 100%;
    overflow-x: auto;
}
.newsletter-wrapper table {
    width: 100%;
    border-collapse: collapse;
}


/* ==============================
   Newsletter Archive Page
   ============================== */

/* Sidebar */
.newsletter-sidebar {
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 2rem;
    /* background: #fff; */
}

.newsletter-sidebar .list-group-item {
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-sidebar .list-group-item:hover,
.newsletter-sidebar .list-group-item.active {
    background-color: #3998e6;
    color: #fff;
}

/* Newsletter Content */
.newsletter-main {
    padding-left: 0;
}

#newsletter-content {
    min-height: 60vh;

    margin-bottom: 2rem;
    transition: opacity 0.3s;
}

/* Mobile adjustments */
.newsletter-toggle {
    display: none;
}

@media (max-width: 991px) {
    .newsletter-toggle {
        display: inline-block;
        width: 100%;
        margin-bottom: 1rem;
    }
    .newsletter-sidebar {
        display: none;
        border-right: none;
        max-height: none;
    }
    .newsletter-sidebar.open {
        display: block;
        margin-bottom: 1rem;
    }
    #newsletter-content {
        padding: 1rem;
        min-height: 40vh;
    }
}


/* Desktop sticky sidebar */
@media (min-width: 992px) {
    .newsletter-sidebar {
        position: sticky;
        top: 170px; /* adjust for header height */
        max-height: calc(100vh - 120px);
    }
}


/* Responsive table wrapper */
.newsletter-wrapper {
    width: 100%;
    overflow-x: auto;
}

.newsletter-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table doesn't shrink too much */
}

/* Table cells: reduce padding and font size on mobile */
@media (max-width: 767px) {
    .newsletter-wrapper table,
    .newsletter-wrapper th,
    .newsletter-wrapper td {
        font-size: 0.95rem;
        padding: 6px 4px;
    }
    #newsletter-content {
        padding: 0.5rem;
    }

       .newsletter-heading{
    padding-left: 15px;
   }

}


@media only screen and (max-width:480px) {
    .newsletter-text { font-size:1rem !important; }
    .newsletter-leftimage div, 
    .newsletter-rightimage div { max-width:100% !important; flex:100% !important; }
}

.custom-newsletter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-newsletter-list ul, .custom-newsletter-list ul li{
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-newsletter-item {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid #ddd;
}

.custom-newsletter-item:last-child {
    border-bottom: none;
}

.custom-newsletter-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.custom-newsletter-item.active a {
    font-weight: 500;
    color: #007bff; /* your active color */
}
.custom-newsletter-item a:hover {
    color: #df6925;
}
.custom-newsletter-item a:focus {
    outline: none;
    outline-offset: 0px;
} 


/* ==============================
   CONTACT PAGE STYLES
   ============================== */

/* Layout & Cards */
.contact-page .country-cards .card {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.contact-page .country-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Card title & flag/map position */
.contact-page .card-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #004080;
  font-size: 1.25rem;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 0.5rem;
}

.contact-page .card-title .country-image {
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.contact-page .card-title .country-image img {
  width: 30px;
  height: auto;
  opacity: 0.9;
}

/* Contact details (inside ACF WYSIWYG) */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.8;
}

.contact-text p {
  margin: 0;
  line-height: 1.4;
  color: #333;
  font-size: .9em;
}

.contact-divider {
  border: 0;
  border-top: 1px solid #e2e2e2;
  margin: 0.5rem 0;
}

/* Hover styles for links */
.contact-info a {
  color: #004080;
  transition: color 0.2s;
}
.contact-info a:hover {
  color: #007bff;
}

/* Contact Form Section */
.contact-page .contact-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-page .contact-form h3 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #003366;
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .contact-page .country-cards .col-lg-4 {
    margin-bottom: 2rem;
  }
  .contact-page .card-title {
    font-size: 1.1rem;
  }
  .contact-page .card-title .country-image img {
    width: 22px;
  }
}


/* ==============================
   Accessibility Toolbar Styles
   ============================== */
/* 🔹 Floating Accessibility Toolbar - Always Collapsed */
.accessibility-toolbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Toggle Button with Accessibility Icon */
.accessibility-toggle {
  background: none; /* remove blue background */
  color: #000;      /* icon color */
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}



/* Panel (hidden by default) */
.accessibility-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: 6px;
  transition: all 0.3s ease;
}

/* Show panel when toolbar has active class */
.accessibility-toolbar.active .accessibility-panel {
  display: flex;
}

/* 🔹 Floating Accessibility Toolbar - Always Collapsed */
.accessibility-toolbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.6rem; /* icon size */
  cursor: pointer;
}

/* Toggle icon - plain text */
.accessibility-toggle {
  display: inline-block;
  color: #000;
}

/* Panel (hidden by default) */
.accessibility-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
  gap: 4px;
}

/* Panel buttons - plain text with subtle hover */
.accessibility-btn {
  display: inline-block;
  font-size: 1rem;
  padding: 2px 6px;
  cursor: pointer;
  color: #333;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.accessibility-btn:hover {
  background: rgba(0,0,0,0.05);
  color: #000;
}

/* Show panel when toolbar is active */
.accessibility-toolbar.active .accessibility-panel {
  display: flex;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .accessibility-panel {
    flex-direction: column;
    align-items: center;
  }
}


/* Mobile adjustments */
@media (max-width: 768px) {
  .accessibility-panel {
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 5px 10px;
  }

  .accessibility-toolbar {
    position: fixed;
    top: 1.5rem;
    right: 4.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

}

/* Dark Mode Styles */

body.dark-mode {
  background-color: #111 !important;
  color: #eee !important;
}

body.dark-mode a {
  color: #66b3ff !important;
}



/* === Feedback Widget (Fixed Button + Sliding Panel + Overlay + Animation) === */
#feedback-widget {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: inherit;
}

#feedback-toggle {
  background: #F2613D;
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

#feedback-toggle:hover {
  background: #d94d26;
}

/* Overlay */
#feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 9998;
}
#feedback-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sliding panel */
#feedback-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}
#feedback-panel.open {
  transform: translateX(0);
}

/* Header */
.feedback-header {
  background: #F2613D;
  color: #fff !important;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.feedback-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.feedback-header p {
    color:#ffffff !important;
}

.feedback-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* Body */
.feedback-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Mobile full width */
@media (max-width: 768px) {
  #feedback-panel {
    width: 100%;
  }
}


/* wcag */

/* Smooth fade-in when the feedback widget appears */
#feedback-widget {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
#feedback-widget.visible {
  opacity: 1;
}


.widget-title {
  font-weight: 600;
  margin-bottom: .75rem;
  font-size: 1.1rem;
}

.widget a {
  text-decoration: none;
}

.widget a:focus,
.widget a:hover {
  text-decoration: underline;
  outline: 2px solid #000;
  outline-offset: 2px;
}


/* === Header base layout === */

.site-header.fixed-header {
  position: sticky;            /* or 'fixed' if you prefer */
  top: 0;
  z-index: 9999;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

/* Ensure content is not hidden behind fixed header if using position:fixed */
body {
  /* tweak this if header height changes */
  scroll-padding-top: 100px;   /* for in-page anchors */
}

/* inner structure */
.header-inner {
  width: 100%;
}

/* Top row: logo + utilities */
.header-top {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.header-nav-row {
  padding: 0.5rem 0;
}

/* Desktop nav: make sure items are horizontal */
.header-primary-nav .primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop: Show search, hide mobile search */
.header-search-desktop {
  display: flex !important;
}

.header-search-mobile {
  display: none !important;
}

/* Desktop: Header end group (search + accessibility + mobile toggle) */
.header-end-group {
  display: flex;
  gap: 1rem;
}

@media (min-width: 577px) {
  .header-end-group {
    display: flex;
  }
}

/* Header utilities: accessibility + mobile toggle */
.header-utilities {
  gap: 1rem;
}

/* Compact search form in header */
.header-search form {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.header-search input[type="search"] {
  max-width: 220px;
  padding: 8px 10px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  height: 30px;
}

.header-search input[type="submit"],
.header-search button[type="submit"] {
  padding: 0 10px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 0 4px 4px 0;
  background: #fff;
  cursor: pointer;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #333;
  font-weight: 500;
  margin: 0 0 0 -1px;
}

/* Accessibility toolbar in header */
.accessibility-toolbar-header {
  position: relative;
  display: flex;
  align-items: center;
}

.accessibility-toolbar-header .accessibility-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: #000;
}

.accessibility-toolbar-header .accessibility-panel {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  flex-direction: row;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: 8px;
  z-index: 1000;
}

.accessibility-toolbar-header.active .accessibility-panel {
  display: flex;
}

.accessibility-toolbar-header .accessibility-panel span:hover {
  background-color: #f5f5f5; /* subtle hover background */
  border-radius: 4px;
  transform: none; /* ensure no size/scale change on hover */
}

.accessibility-toolbar-header .accessibility-panel span:active {
  background-color: #e9e9e9; /* slightly darker on active */
}

.accessibility-toolbar-header .accessibility-panel svg {
  display: block;
  width: 30px;
  height: 30px;
}

.accessibility-toolbar-header #increaseFont,
.accessibility-toolbar-header #decreaseFont,
.accessibility-toolbar-header #resetFont,
.accessibility-toolbar-header #darkModeToggle,
.accessibility-toolbar-header #toggleReadBtn,
.accessibility-toolbar-header #stopReadBtn {
  cursor: pointer;
  transform: none; /* ensure no hover scaling applied elsewhere */
}

/* close button removed — styles cleared */
.accessibility-toolbar-header #resetFont,
.accessibility-toolbar-header #darkModeToggle,
.accessibility-toolbar-header #toggleReadBtn,
.accessibility-toolbar-header #stopReadBtn {
  cursor: pointer;
}

.accessibility-toolbar-header .accessibility-panel svg {
  display: block;
}

/* Desktop: Accessibility toolbar in header */
.accessibility-toolbar-header {
  display: flex;
  align-items: center;

  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile toggle (hamburger) alignment */
.nav-toggle {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* === Donate Now Button (Nav) ============================= */

.menu-donate > a {
  background: #000000 !important;
  color: #fff !important;
  padding: 5px 15px !important;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: background 0.25s ease;
}

/* Hover / Focus – WCAG visible focus */
 .menu-donate > a:hover,
.menu-donate > a:focus-visible {
  background: #d44f30 !important;
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* Keep consistent on dark header */
 .menu-donate > a:active {
  background: #b63f25 !important;
}


body.dark-mode .menu-donate > a {
  background: #000000 !important;
  color: #ffffff !important;
}


/* === Responsive behavior === */

@media (max-width: 991.98px) {
  /* On mobile: nav row can be hidden (we rely on off-canvas menu) */
  .header-nav-row {
    display: none;
  }

  .header-search input[type="search"] {
    max-width: 140px;
  }
}

@media (min-width: 992px) {
  /* On desktop: hide mobile menu button if you want */
  .nav-toggle {
    display: none;
  }

  /* Keep full desktop nav visible */
  .header-nav-row {
    display: block;
  }
}

/* Make sure header-inner is NOT flex */
.site-header .header-inner {
  display: block;
}

/* Top row is flex: logo + utilities */
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Second row (nav) always on its own line */
.header-nav-row {
  border-top: 1px solid #eee;
}

/* Just in case something else makes nav flex with header-top */
.header-primary-nav {
  display: block;
}

/* Desktop menu layout */
.header-primary-nav .primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Fixed/sticky header */
.site-header.fixed-header {
  position: sticky;   /* use fixed if you want it always fixed */
  top: 0;
  z-index: 9999;
  background: #fff;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  padding: 10px 15px;
  background: #000;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  z-index: 99999;
}
.skip-link:focus {
  top: 10px;
}

/* =========================================
   MOBILE NAVIGATION DRAWER (WCAG)
   ========================================= */

/* Drawer base */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 360px;
  height: 100vh;

  background: #ffffff;
  z-index: 9999;

  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;

  display: flex;
  flex-direction: column;
}

/* Drawer visible state */
.mobile-nav-drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Prevent background scroll */
.no-scroll {
  overflow: hidden;
}

/* Drawer inner */
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Drawer header (fixed) */
.mobile-drawer-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

/* Nav scroll area */
.mobile-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
}

/* Submenu toggle */
.submenu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0px;
}

/* Focus rings for accessibility */
.mobile-nav-drawer button:focus,
.mobile-nav-drawer a:focus {
  outline: 2px solid #ff9900;
  outline-offset: 2px;
}

/* Optional scrollbar styling */
.mobile-nav::-webkit-scrollbar {
  width: 6px;
}

.mobile-nav::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.2);
  border-radius: 3px;
}





/* =========================================
   MOBILE HEADER (break search to 2nd row)
   ========================================= */

@media (max-width: 576px) {

  /* Remove ANY horizontal scroll */
  body {
    overflow-x: hidden !important;
  }

  /* ROW 1: Logo + Utilities (keep together) */
  .header-top .container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0 !important;
    width: 100% !important;
    align-items: center;
  }

  .site-branding {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .header-utilities {
    display: flex !important;
    grid-column: 2 / 3;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  /* Hide desktop header-end-group on mobile */
  .header-end-group {
    display: none !important;
  }

  /* ROW 1: Logo + Accessibility + Hamburger */
  .header-top .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .site-branding {
    flex: 0 0 auto;
  }

  /* Show header-end-group on mobile */
  .header-end-group {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center;
    justify-content: flex-end;
  }

  /* Hide desktop search on mobile */
  .header-search-desktop {
    display: none !important;
  }

  /* Show mobile search on mobile */
  .header-search-mobile {
    display: block !important;
    width: 100% !important;
    margin-top: 12px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Show only accessibility + hamburger on row 1 */
  .header-utilities {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center;
  }

  /* ----- MOBILE SEARCH FORM ----- */
  .header-search-mobile form {
    display: flex !important;
    width: calc(100% - 32px) !important;
    align-items: center;
    gap: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 16px !important;
  }

  /* Input full width */
  .header-search-mobile input[type="search"],
  .header-search-mobile input[type="text"] {
    flex: 1 1 auto !important;
    width: auto !important;
    border-radius: 4px 0 0 4px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    height: 30px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
  }

  /* Submit button icon */
  .header-search-mobile input[type="submit"],
  .header-search-mobile button[type="submit"] {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    height: 30px !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 0 10px !important;
    margin: 0 0 0 -4px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
  }

  /* Search text and icon styling */
  .header-search-mobile button[type="submit"] .search-text {
    display: block !important;
  }

  .header-search-mobile .search-icon {
    display: block !important;
  }

  /* Search text and icon styling */
  .header-search button[type="submit"] .search-text {
    display: block !important;
  }

  .header-search button[type="submit"] .search-icon {
    display: block !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  /* Prevent any rogue theme styles */
  .header-search input,
  .header-search button {
    display: inline-flex !important;
  }
}

  body {
    overflow-x: hidden;
  }


/* =======================================================
   HOMEPAGE CAROUSEL — ACCESSIBLE ARROW CONTROLS
   ======================================================= */

/* Base button container */
#homepageCarousel .carousel-control-prev,
#homepageCarousel .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;

  background: #ffffff !important;       /* solid white */
  border-radius: 50%;                   /* circle */
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1 !important;
}

/* Position left & right */
#homepageCarousel .carousel-control-prev { left: 20px; }
#homepageCarousel .carousel-control-next { right: 20px; }

/* Remove default Bootstrap gradients */
#homepageCarousel .carousel-control-prev::before,
#homepageCarousel .carousel-control-next::before {
  display: none !important;
}

/* Arrow icons: clean black SVG look */
#homepageCarousel .carousel-control-prev-icon,
#homepageCarousel .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  background-size: contain !important;
  background-color: transparent !important;
  opacity: 1 !important;
  filter: none !important;              /* ensures black icons */
}

/* WCAG visible focus & hover */
#homepageCarousel .carousel-control-prev:focus,
#homepageCarousel .carousel-control-next:focus,
#homepageCarousel .carousel-control-prev:hover,
#homepageCarousel .carousel-control-next:hover {
  outline: 3px solid #ff9900;           /* accessibility orange */
  outline-offset: 2px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  #homepageCarousel .carousel-control-prev,
  #homepageCarousel .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  #homepageCarousel .carousel-control-prev-icon,
  #homepageCarousel .carousel-control-next-icon {
    width: 14px;
    height: 14px;
  }
}
#homepageCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3e%3cpath d='M11 1L5 8l6 7'/%3e%3c/svg%3e") !important;
}

#homepageCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3e%3cpath d='M5 1l6 7-6 7'/%3e%3c/svg%3e") !important;
}


.counter-item,
.counter-value {
  pointer-events: none;
}

/* Reduce logo size on small screens to fit header layout */
@media (max-width: 576px) {
  .site-branding img,
  .site-logo img {
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
  }
}


/* FAQ wcag adjustments */

/* WCAG Visible Focus for FAQ */
.wpsm_panel-heading a[data-toggle="collapse"]:focus,
.wpsm_panel-heading a[data-toggle="collapse"]:focus-visible {
  outline: 3px solid #ff8a00;
  outline-offset: 3px;
  border-radius: 4px;
}


/* Reduce CF7 auto spacing */
.footer-newsletter p {
  margin: 0;
  padding: 0;
}

.footer-newsletter br {
  display: none;
}

/* Clean spacing between fields */
.footer-newsletter label {
  display: block;
  margin-bottom: 0.75rem;
}

.footer-newsletter .form-control {
  margin-bottom: 0.5rem;
}

/* Reduce top space before submit button */
.footer-newsletter .mt-3 {
  margin-top: 0.5rem !important;
}


/* ==================================================
   HOME ANNOUNCEMENT
================================================== */

/* ==================================================
   HOME ANNOUNCEMENT
================================================== */

.home-announcement {
  background: #000;
  color: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.announcement-text {
    font-size: 1.5rem;
    line-height: 1.6;
    padding: 0 40px;
}

.announcement-text strong {
  font-weight: 600;
}

.announcement-btn {
  white-space: nowrap;
}



/* Media homepage */

.media-thumb {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f8f9fa;
}

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

/* header social icons */

.header-social {
  display: flex;
  gap: 8px; /* adjust to 6px / 10px if needed */
}

.header-social-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-social-icon:hover {
  background-color: #F2613D;
}

.header-social-icon svg {
  display: block;
}


