/*--------------------------------------------------------------
# Centralized Color Variables - Change colors here for entire site
--------------------------------------------------------------*/
:root {
  /* Main Brand Colors */
  --primary-color: #FF6F0F;
  /* Saffron Orange */
  --primary-dark: #FF671F;
  /* Darker Saffron */
  --primary-light: #FF8A3D;
  /* Lighter Saffron */
  --primary-color-rgb: 255, 111, 15;
  --gradient-primary-hover: linear-gradient(135deg, #e55e00, #d95010);
  --accordion-chevron: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6F0F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");

  --secondary-color: var(--primary-dark);
  /* Maroon Red */
  --secondary-dark: var(--primary-dark);
  /* Darker Maroon */
  --secondary-light: var(--primary-light);
  /* Lighter Maroon */

  /* Accent Colors */
  --gold-color: #ffd700;
  --success-color: #25d366;
  /* WhatsApp green */
  --success-dark: #128c7e;

  /* Text Colors */
  --text-color:      #1a1a1a;   /* Main body text — near-black, high contrast */
  --text-body:       #1a1a1a;   /* Paragraph / description text */
  --text-light:      #3d3d3d;   /* Secondary text, slightly lighter */
  --text-muted:      #5a6472;   /* Muted labels, placeholders */
  --text-white:      #fff;
  --text-light-gray: #9ca3af;   /* Very light, for captions / hints */

  /* Background Colors */
  --light-bg: #f8f9fa;
  --body-bg: #f1f1f1;
  --white-bg: #ffffff;
  --dark-bg: #151414;
  --darker-bg: #2c2c2c;
  --black-bg: #000;

  /* Border Colors */
  --border-light: #ddd;
  --border-lighter: #eee;
  --border-dark: #373636;

  /* Gradient Combinations */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-primary-reverse: linear-gradient(175deg, var(--primary-color) 50%, var(--primary-dark) 50%);
  --gradient-header: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-navbar: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-footer: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  --gradient-footer-cta: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-copyright: linear-gradient(135deg, var(--black-bg), #1a1a1a);

  /* Social Media Colors */
  --facebook-color: #3b5998;
  --facebook-hover: #4267b2;
  --twitter-color: #55acee;
  --twitter-hover: #1da1f2;
  --instagram-color: #d6249f;
  --instagram-hover: #e4405f;
  --youtube-color: #ff0000;
  --youtube-hover: #ff6b6b;
  --android-color: #a4c639;
  --android-hover: #8bc34a;
  --whatsapp-color: #25D366;

  /* Supporter Card Colors (Orange Theme) */
  --supporter-primary: #f3722c;
  --supporter-light: #fdcfa5;

  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --shadow-darker: rgba(0, 0, 0, 0.2);
  --shadow-darkest: rgba(0, 0, 0, 0.3);

  /* Overlay Colors */
  --overlay-light: rgba(255, 255, 255, 0.1);
  --overlay-medium: rgba(255, 255, 255, 0.2);
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-darker: rgba(0, 0, 0, 0.6);
  --overlay-darkest: rgba(0, 0, 0, 0.7);
  --primary-color-overlay: rgba(var(--primary-color-rgb), 0.7);

  /* Form Colors */
  --form-bg: #fef9e7;
  --form-border: #f1c40f;
  
  /* News Ticker Colors */
  --ticker-bg: #FE0000;
  --ticker-border: #FF6F0F;
  --ticker-label-bg: var(--primary-color);
  --ticker-text: #fff;
  --ticker-hover: #ffd700;
  --ticker-dot: var(--primary-light);

  /* ============================================================
   KDO DESIGN SYSTEM (Orange & Navy)
   Change these to retheme the entire navbar, topbar & footer
   ============================================================ */

  /* Navy (used in navbar background, footer deep sections, mobile menu) */
  --kdo-navy:        #0b2c45;
  --kdo-navy-dark:   #061d2f;
  --kdo-navy-deeper: #041522;
  --kdo-navy-deep:   #020c15;
  --kdo-navy-mid:    #0d1e2e;

  /* Orange (accent buttons, icon highlights, hover states) */
  --kdo-orange:      #f68b1e;
  --kdo-orange-alt:  var(--primary-color);  /* same family, mapped to site primary */

  /* Neutrals */
  --kdo-white:       #ffffff;
  --kdo-cream:       #FEF1E4;
  --kdo-dark:        #1C0D0A;
  --kdo-text:        #1a1a1a;
  --kdo-text-subtle: #a1c6ff;   /* light blue text in dark sections */
  --kdo-muted:       #888;
  --kdo-muted-dark:  #666;
  --kdo-install-title: #333;

  /* Funding progress bar */
  --kdo-progress-track: #e9ecef;
  --kdo-progress-fill:  #28a745;
  --kdo-progress-label: #888;

  /* Mobile nav hover */
  --kdo-mobile-hover-bg: rgba(246, 139, 30, 0.15);

  /* ============================================================
   TYPOGRAPHY — Change fonts here to retheme text site-wide
   ONE font family (Poppins) at different weights = perfect consistency
   ============================================================ */
  --font-heading:  'Poppins', sans-serif;  /* h1–h6: weight 700–800 */
  --font-body:     'Poppins', sans-serif;  /* paragraphs: weight 400 */
  --font-nav:      'Poppins', sans-serif;  /* nav/buttons/labels: weight 600 */
  --font-mono:     'Courier New', Courier, monospace; /* code blocks */
}

/*--------------------------------------------------------------
# Centralized Color Variables - End Here
# ↑ EDIT ONLY THE :root BLOCK ABOVE TO RETHEME THE ENTIRE SITE ↑
--------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 0.9rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);   /* dark grey — readable on white/light backgrounds */
  letter-spacing: -0.2px;
}

h1 { font-size: 2.2rem;   font-weight: 800; }
h2 { font-size: 1.8rem;   font-weight: 700; }
h3 { font-size: 1.5rem;   font-weight: 700; }
h4 { font-size: 1.25rem;  font-weight: 700; }
h5 { font-size: 1.05rem;  font-weight: 600; }
h6 { font-size: 0.95rem;  font-weight: 600; }

/* ──────────────────────────────────────────────────────────────────
   DARK SECTION TEXT — Automatically white text on any dark background
   Covers every dark/navy section pattern used site-wide
   ────────────────────────────────────────────────────────────────── */

/* Bootstrap dark utilities */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark p,  .bg-dark .lead, .bg-dark small, .bg-dark span,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary p,  .bg-primary .lead,

/* Bootstrap text-white parent — used on hero sections everywhere */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6,
.text-white p,  .text-white .lead, .text-white small,

/* Page header / banner classes used across all pages */
.page-header h1, .page-header h2, .page-header h3,
.page-header h4, .page-header h5, .page-header h6,
.page-header p,  .page-header .lead, .page-header .breadcrumb-item,
.page-header .breadcrumb-item a,

.page-banner h1, .page-banner h2, .page-banner h3,
.page-banner h4, .page-banner h5, .page-banner h6,
.page-banner p,  .page-banner .lead,

/* Gallery/events/news/campaigns hero sections */
.gallery-hero h1,   .gallery-hero h2,   .gallery-hero h3,
.gallery-hero h4,   .gallery-hero h5,   .gallery-hero h6,
.gallery-hero p,    .gallery-hero .lead,
.campaigns-hero h1, .campaigns-hero h2, .campaigns-hero p, .campaigns-hero .lead,
.events-hero h1,    .events-hero h2,    .events-hero p,    .events-hero .lead,
.news-hero h1,      .news-hero h2,      .news-hero p,      .news-hero .lead,
.projects-hero h1,  .projects-hero h2,  .projects-hero p,  .projects-hero .lead,

/* Generic dark/navy containers */
[style*="background: linear-gradient"] h1,
[style*="background: linear-gradient"] h2,
[style*="background: linear-gradient"] h3,
[style*="background: linear-gradient"] h4,
[style*="background: linear-gradient"] h5,
[style*="background: linear-gradient"] h6,
[style*="background: linear-gradient"] p,
[style*="background: linear-gradient"] .lead,
[style*="background:linear-gradient"] h1,
[style*="background:linear-gradient"] h2,
[style*="background:linear-gradient"] h3,
[style*="background:linear-gradient"] h4,
[style*="background:linear-gradient"] h5,
[style*="background:linear-gradient"] h6,
[style*="background:linear-gradient"] p,
[style*="background:linear-gradient"] .lead,

/* CTA Cards */
.cta-card h1, .cta-card h2, .cta-card h3, .cta-card h4, .cta-card h5, .cta-card h6,
.cta-card p, .cta-card .lead,

/* Impact Stats & Impact Card Section */
.impact-stats h1, .impact-stats h2, .impact-stats h3, .impact-stats h4, .impact-stats h5, .impact-stats h6,
.impact-stats p, .impact-stats .lead,
.stat-item h1, .stat-item h2, .stat-item h3, .stat-item h4, .stat-item h5, .stat-item h6,
.stat-item p, .stat-item .lead,
.impact-card h1, .impact-card h2, .impact-card h3, .impact-card h4, .impact-card h5, .impact-card h6,
.impact-card .fw-bold, .impact-card i {
  color: #ffffff !important;
}

/* President / Leadership Hero Section */
.president-hero-wrap h1, .president-hero-wrap h2, .president-hero-wrap h3,
.president-hero-wrap h4, .president-hero-wrap h5, .president-hero-wrap h6,
.president-hero-wrap p, .president-hero-wrap .lead, .president-hero-wrap span, .president-hero-wrap a {
  color: #ffffff !important;
}

/* Slightly transparent white for supporting text in dark sections */
.bg-dark p,            .bg-dark .lead,
.text-white p,         .text-white .lead,
.page-header p,        .page-header .lead,
.page-banner p,        .page-banner .lead,
.gallery-hero p,       .gallery-hero .lead,
.campaigns-hero p,     .campaigns-hero .lead,
.events-hero p,        .events-hero .lead,
.news-hero p,          .news-hero .lead,
.projects-hero p,      .projects-hero .lead,
[style*="background: linear-gradient"] p,
[style*="background: linear-gradient"] .lead,
[style*="background:linear-gradient"] p,
[style*="background:linear-gradient"] .lead,
.stat-item p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Breadcrumb links in dark hero sections */
.page-header .breadcrumb-item a,
.page-banner .breadcrumb-item a,
[style*="background: linear-gradient"] .breadcrumb-item a,
[style*="background:linear-gradient"] .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.65) !important;
}
.page-header .breadcrumb-item.active,
.page-banner .breadcrumb-item.active,
[style*="background: linear-gradient"] .breadcrumb-item.active,
[style*="background:linear-gradient"] .breadcrumb-item.active {
  color: #ffffff !important;
}


a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
}

.section-heading {
  color: var(--text-white);
  background: var(--gradient-primary);
  padding: 6px 12px;
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
  text-align: center;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.section-heading span {
  background-color: var(--white-bg, #ffffff);
  color: var(--primary-color);
  padding: 3px 14px;
  border-radius: 4px;
  font-weight: 800;
  display: inline-block;
  white-space: nowrap !important;
  font-size: inherit;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 2.5px solid var(--secondary-color, #fe0000);
}

.card-custom {
  background: var(--white-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.navbar-margin-pusher {
  margin-top: 0px;
}

/*--------------------------------------------------------------
# News Ticker Styles - Matches Reference Image
--------------------------------------------------------------*/
.news-ticker-bar {
  background: var(--primary-color);
  /* Orange Container */
  height: 45px;
  display: flex;
  align-items: center;
  padding: 4px;
  /* Maintain padding for border effect */
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-bottom: none;
  /* Explicitly remove any border */
}

/* Remove shimmer for cleaner look */
.news-ticker-bar::before {
  display: none;
}

.ticker-label {
  background: var(--ticker-label-bg);
  /* Use variable */
  color: #fff;
  padding: 0 15px 0 20px;
  font-weight: 500;
  /* Reduced from 700 */
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  text-transform: capitalize;
  clip-path: none;
  margin-right: -1px;
}

/* Add a slight slant or straight edge? Image shows straight. 
   User previously asked for skew. Let's keep it straight for now 
   as per the image, or add a subtle arrow if needed. 
   The image shows a clean break. */

.ticker-label i {
  margin-right: 8px;
  font-size: 1.1rem;
  /* Remove pulse animation for cleaner look */
  animation: none;
}

.ticker-scroll-area {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  background: #ffffff;
  /* White Scroll Area */
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-move 40s linear infinite;
  /* Ensure vertical centering */
  height: 100%;
}


.ticker-item {
  padding: 0 15px;
  /* Reduced side padding */
  font-size: 1rem;
  color: #333333;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.ticker-item a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  /* Use flexbox for alignment */
  align-items: center;
  /* Vertically center icon and text */
}

.ticker-item a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.ticker-item i {
  color: #333333;
  /* Dark Dot */
  font-size: 6px !important;
  /* Smaller dot, using px for precision */
  margin-right: 8px !important;
  opacity: 0.8;
  vertical-align: middle;
  /* Backup for older browsers */
  margin-top: -1px;
  /* Slight optical adjustment */
}

/* Pause animation on hover */
.news-ticker-bar:hover .ticker-content {
  animation-play-state: paused !important;
}

@keyframes ticker-move {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive News Ticker */
@media (max-width: 767px) {
  .news-ticker-bar {
    height: 35px;
  }

  .ticker-label {
    font-size: 1rem;
    padding: 0 10px;
    padding-right: 20px;
  }

  .ticker-label i {
    font-size: 1rem;
    margin-right: 6px;
  }

  .ticker-item {
    font-size: 0.85rem;
    padding: 0 15px;
  }
}

/*--------------------------------------------------------------
# Logo Perfect Fit Styles - No Cropping
--------------------------------------------------------------*/
.header-logo {
  display: block;
  width: 100%;
  height: auto;
  padding: 5px 0;
}

.header-logo img {
  width: 100%;
  height: auto;
  min-height: 90px;
  max-height: 130px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Responsive logo sizes */
@media (max-width: 1199px) {
  .header-logo img {
    min-height: 85px;
    max-height: 120px;
  }
}

@media (max-width: 991px) {
  .header-logo img {
    min-height: 80px;
    max-height: 110px;
  }
}

@media (max-width: 767px) {
  .header-logo {
    text-align: center;
  }

  .header-logo img {
    min-height: 90px;
    max-height: 120px;
    object-position: center center;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .header-logo img {
    min-height: 85px;
    max-height: 110px;
  }
}

/*--------------------------------------------------------------
# Mobile Navigation Styles
--------------------------------------------------------------*/
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-light) !important;
  padding-left: 26px;
  background: rgba(var(--primary-color-rgb), 0.12);
}

.mobile-nav-link:hover::before {
  transform: scaleY(1);
}

.mobile-nav-link i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.accordion-button {
  color: var(--text-white);
  background-color: transparent;
  border: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--overlay-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  color: var(--gold-color);
  background-color: transparent;
  box-shadow: none;
}

.accordion-button:focus {
  z-index: 3;
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  padding-left: 20px;
}

.accordion-item {
  background-color: transparent;
  border: none;
}

/* offcanvas premium styles defined in Enhanced Mobile Navigation section below */

/*--------------------------------------------------------------
# Google Translate Widget Styles
--------------------------------------------------------------*/
.google-translate-container {
  margin-top: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--overlay-light);
}

.google-translate-container .skiptranslate {
  display: block !important;
}

#google_translate_element {
  position: relative;
}

#google_translate_element .goog-te-gadget {
  font-family: inherit;
  font-size: 11px;
  color: var(--text-white);
}

#google_translate_element .goog-te-gadget-simple {
  background-color: var(--overlay-light);
  border: 1px solid var(--overlay-medium);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.2;
  display: inline-block;
  cursor: pointer;
  zoom: 1;
  min-width: 100px;
}

#google_translate_element .goog-te-gadget-simple:hover {
  background-color: var(--overlay-medium);
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value {
  color: var(--text-white);
  font-size: 11px;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
  color: var(--text-white) !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value:before {
  content: '\f0ac';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 5px;
  color: var(--text-white);
  font-size: 10px;
}

/* Hide Google Translate banner */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .google-translate-container {
    text-align: center;
    margin-top: 10px;
  }

  #google_translate_element .goog-te-gadget-simple {
    min-width: 80px;
    font-size: 10px;
    padding: 3px 5px;
  }
}

/*--------------------------------------------------------------
# Floating Action Buttons
--------------------------------------------------------------*/
.floating-buttons {
  position: fixed;
  bottom: 25px;
  left: 25px;
  right: auto;
  width: auto;
  max-width: fit-content;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.floating-btn-problem {
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 25px;
  padding: 12px 20px;
  font-weight: bold;
  box-shadow: 0 4px 15px var(--shadow-dark);
  transition: all 0.3s ease;
}

.floating-btn-problem:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-darker);
}

.floating-btn-whatsapp {
  background-color: var(--success-color);
  color: var(--text-white);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px var(--shadow-dark);
  transition: all 0.3s ease;
}

.floating-btn-whatsapp:hover {
  background-color: var(--success-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-darker);
}

.floating-btn-whatsapp-left {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1050;
  background-color: #25D366;
  color: var(--text-white) !important;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  font-size: 26px;
}

.floating-btn-whatsapp-left:hover {
  background-color: #128C7E;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: var(--text-white) !important;
}

/* -------------------------------------------------------------------------
   Floating Quick Contact Widget (WhatsApp & Call)
   ------------------------------------------------------------------------- */
.floating-contact-widget {
  position: fixed;
  bottom: 25px;
  left: 22px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.floating-contact-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.floating-contact-btn i {
  color: #ffffff !important;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Call Button */
.floating-call-btn {
  background: linear-gradient(135deg, #010066 0%, #1a1a8c 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-call-btn i {
  font-size: 20px;
}

.floating-call-btn:hover {
  background: linear-gradient(135deg, #fe0000 0%, #cc0000 100%);
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 10px 24px rgba(254, 0, 0, 0.45);
}

.floating-call-btn:hover i {
  transform: rotate(15deg);
}

/* WhatsApp Button */
.floating-wa-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-wa-btn i {
  font-size: 28px;
}

.floating-wa-btn:hover {
  background: linear-gradient(135deg, #1ebe5d 0%, #0d7367 100%);
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

.floating-wa-btn:hover i {
  transform: scale(1.08);
}

/* Pulse Ripple Animation for WhatsApp */
.wa-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: waPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes waPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Tooltip Badge on Hover */
.contact-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #111827;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-family: 'Poppins', sans-serif;
  z-index: 1051;
}

.contact-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #111827 transparent transparent;
}

.floating-contact-btn:hover .contact-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-contact-widget {
    bottom: 20px;
    left: 14px;
    gap: 10px;
  }
  .floating-contact-btn {
    width: 48px;
    height: 48px;
  }
  .floating-contact-btn i {
    font-size: 22px;
  }
  .floating-call-btn i {
    font-size: 19px;
  }
  .floating-wa-btn i {
    font-size: 25px;
  }
  .contact-tooltip {
    display: none !important;
  }
}


.floating-btn-donate {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  background: var(--gradient-primary);
  color: var(--text-white);
  border-radius: 25px;
  padding: 12px 20px;
  font-weight: bold;
  box-shadow: 0 4px 15px var(--shadow-dark);
  transition: all 0.3s ease;
}

.floating-btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-darker);
  color: var(--text-white);
}

/*--------------------------------------------------------------
# Equalized Main Grid Columns (Left, Center & Right)
--------------------------------------------------------------*/
@media (min-width: 992px) {
  .main-grid-row {
    display: flex !important;
    align-items: stretch !important;
  }
  .main-grid-col {
    display: flex !important;
    flex-direction: column !important;
  }
  .main-grid-col.col-center .activity-feed-card,
  .main-grid-col.col-left .fb-card-grow,
  .main-grid-col.col-right .card-custom:last-child {
    flex: 1 1 0px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }
  .activity-feed-card .activity-scroll-feed {
    flex: 1 1 0px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}

/*--------------------------------------------------------------
# Enhanced Header
--------------------------------------------------------------*/
.header-section {
  background: var(--gradient-header);
  padding: 15px 0;
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-medium);
  position: relative;
  z-index: 1030;
}

.dropdown-menu {
  z-index: 1050 !important;
  position: absolute;
}

.header-title {
  text-align: center;
}

/* Fixed gradient text for Devanagari characters */
.main-title {
  font-size: 2.8rem;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  text-shadow: none;

  /* Solid color fallback for complex Unicode characters */
  color: var(--primary-color);

  /* Alternative gradient approach using background */
  background: var(--gradient-primary);
  background-size: 100%;
  background-repeat: repeat;

  /* Modern browsers with better Unicode support */
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent;  */
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  background-clip: text;

  /* Force proper rendering of combining characters */
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "liga" on, "calt" on;
  -moz-font-feature-settings: "liga" on, "calt" on;
  font-feature-settings: "liga" on, "calt" on;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .main-title {
    background: none;
    color: var(--primary-color);
  }
}

.subtitle {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 5px 0 0 0;
  font-weight: 500;
  letter-spacing: 1px;
}

.header-right-section {
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
}

.contact-item i {
  color: var(--primary-dark);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Fixed social icons layout for desktop */
.header-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* Prevent wrapping on desktop */
}

.header-social-icons a {
  color: var(--text-white);
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 3px 10px var(--shadow-darker);
  flex-shrink: 0;
  /* Prevent icons from shrinking */
}

.header-social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-darkest);
}

/* Header Bottom Bar */
.header-bottom-bar {
  background: var(--gradient-footer-cta);
  padding: 10px 0;
  color: var(--text-white);
}

.header-quick-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.quick-link-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.quick-link-item i {
  margin-right: 8px;
  color: var(--gold-color);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .header-social-icons {
    gap: 6px;
  }

  .header-social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 991.98px) {
  .main-title {
    font-size: 2.2rem;
  }

  .header-social-icons {
    gap: 8px;
    flex-wrap: wrap;
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .main-title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .header-social-icons {
    gap: 10px;
    flex-wrap: wrap;
  }

  .header-social-icons a {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .main-title {
    font-size: 1.5rem;
  }

  .contact-item {
    font-size: 0.8rem;
  }

  .header-social-icons {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Header Donate Us Button - Universal across all themes
--------------------------------------------------------------*/
.btn-donate-header {
  background: var(--gradient-primary, var(--primary-color, #0b5c3a)) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  padding: 7px 22px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease !important;
}

.btn-donate-header:hover {
  background: var(--gradient-primary-hover, var(--primary-dark, #074028)) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2) !important;
}

/*--------------------------------------------------------------
# Enhanced Navigation
--------------------------------------------------------------*/
.main-navbar-container {
  background: var(--gradient-navbar);
  border-bottom: 3px solid var(--gold-color);
  box-shadow: 0 2px 10px var(--shadow-medium);
}

@media (min-width: 992px) {
  .main-navbar-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  }
}

.mobile-exact-header,
.mobile-sticky-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1040 !important;
  width: 100%;
}

.mobile-tier-1,
.mobile-tier-3 {
  background: var(--primary-color, #0b5c3a) !important;
}

.mobile-tier-2 {
  background: #ffffff !important;
}

.main-navbar-container {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1040 !important;
  background: var(--gradient-navbar, var(--primary-color));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.main-navbar-container .nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 4px 0 !important;
}

.main-navbar-container .nav-item {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.main-navbar-container .nav-link {
  color: var(--text-white);
  font-size: 0.83rem !important;
  font-weight: 700 !important;
  padding: 7px 9px !important;
  text-transform: uppercase;
  white-space: nowrap !important;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 6px;
  margin: 0 2px !important;
  line-height: 1.3 !important;
}

.main-navbar-container .nav-link i {
  font-size: 0.8rem;
  margin-right: 3px;
}

@media (max-width: 1400px) {
  .main-navbar-container .nav-link {
    font-size: 0.77rem !important;
    padding: 6px 6px !important;
  }
}

@media (max-width: 1200px) {
  .main-navbar-container .nav-link {
    font-size: 0.72rem !important;
    padding: 6px 4px !important;
  }
  .main-navbar-container .nav-link i {
    display: none !important;
  }
}

.main-navbar-container .nav-link:hover,
.main-navbar-container .dropdown:hover .nav-link,
.main-navbar-container .dropdown.show .nav-link {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: none !important;
  box-shadow: none !important;
}

.dropdown-menu {
  background-color: var(--white-bg);
  border: none;
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 8px 25px var(--shadow-dark);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1050 !important;
  position: absolute;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown {
  position: relative;
}

.admin-topbar {
  position: relative;
  z-index: 1040;
}

.dropdown-item {
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--light-bg), #e9ecef);
  color: var(--primary-dark);
  padding-left: 25px;
}


/* ============================================================
   PREMIUM MOBILE NAVIGATION OFFCANVAS
   ============================================================ */
.offcanvas {
  background: var(--kdo-navy, #0b2c45) !important;
  width: 310px !important;
  border-right: none;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

/* Decorative top accent stripe */
.offcanvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--kdo-orange, var(--primary-color, #f68b1e));
  z-index: 10;
}

.offcanvas-header {
  padding: 1.25rem 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative;
}

.offcanvas-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.offcanvas-title {
  color: var(--text-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.offcanvas-title img {
  filter: drop-shadow(0 2px 4px rgba(var(--primary-color-rgb), 0.4));
}

/* ── CUSTOM CLOSE BUTTON ──────────────────────────────────────
   Replaces Bootstrap's btn-close / btn-close-white entirely.
   Uses FontAwesome fa-times so it's ALWAYS visible —
   no SVG background, no filter: invert() conflicts.
   ─────────────────────────────────────────────────────────── */
.offcanvas-close-btn {
  /* Reset all button defaults */
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
  /* Kill any inherited Bootstrap filter */
  filter: none !important;
  opacity: 1 !important;
}

.offcanvas-close-btn i {
  /* Solid white X icon — always visible on dark background */
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  display: block;
  filter: none !important;
  opacity: 1 !important;
}

.offcanvas-close-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(90deg);
}

.offcanvas-close-btn:focus {
  outline: 2px solid rgba(var(--primary-color-rgb), 0.5);
  outline-offset: 2px;
}

/* Mobile hamburger toggle — matches primary color */
.mobile-nav-toggle {
  position: absolute;
  top: 220px;
  right: 20px;
  z-index: 1060;
  background: var(--gradient-primary);
  border: none;
  color: var(--text-white);
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px var(--shadow-darkest);
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-white);
}

/* Scrollable body with thin custom scrollbar */
.offcanvas-body {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-color-rgb), 0.3) transparent;
}

.offcanvas-body::-webkit-scrollbar { width: 3px; }
.offcanvas-body::-webkit-scrollbar-track { background: transparent; }
.offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-color-rgb), 0.4);
  border-radius: 3px;
}

/* Direct nav links (Home, Apply Now, Contact) */
.offcanvas-body .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
}

.offcanvas-body .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.offcanvas-body .nav-link:hover {
  background: rgba(var(--primary-color-rgb), 0.12);
  color: var(--primary-light);
  padding-left: 26px;
}

.offcanvas-body .nav-link:hover::before {
  transform: scaleY(1);
}

.offcanvas-body .nav-link i,
.offcanvas-body .accordion-button i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  color: var(--kdo-orange, var(--primary-color, #f68b1e)) !important;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Premium Accordion for mobile */
.offcanvas-body .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas-body .accordion-button {
  background: transparent !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 14px 20px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  width: 100%;
  text-align: left;
}

.offcanvas-body .accordion-button:not(.collapsed) {
  background: rgba(0, 0, 0, 0.2) !important;
  color: var(--kdo-orange, var(--primary-color, #f68b1e)) !important;
  box-shadow: none;
}

.offcanvas-body .accordion-button:focus {
  box-shadow: none;
  outline: none;
}

/* Custom chevron that rotates smoothly */
.offcanvas-body .accordion-button::after {
  background-image: var(--accordion-chevron);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Submenu body — dark recessed with left theme border */
.offcanvas-body .accordion-body {
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.25) !important;
  border-left: 3px solid var(--kdo-orange, var(--primary-color, #f68b1e)) !important;
  margin-left: 15px;
}

.offcanvas-body .accordion-body .nav-link {
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  letter-spacing: 0.2px;
}

.offcanvas-body .accordion-body .nav-link::before {
  content: '›';
  margin-right: 8px;
  color: var(--primary-color);
  font-size: 1.1rem;
  line-height: 1;
  position: static;
  transform: none;
  width: auto;
  background: none;
}

.offcanvas-body .accordion-body .nav-link:hover {
  color: var(--primary-light);
  background: rgba(var(--primary-color-rgb), 0.1);
  padding-left: 26px;
}

/* ── Mobile Drawer Footer High Contrast ── */
.mobile-drawer-footer a {
  color: #ffffff !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-drawer-footer a:hover {
  opacity: 0.9 !important;
  color: #38bdf8 !important;
}
.mobile-drawer-footer i {
  line-height: 1;
}

/*--------------------------------------------------------------
# Hero Slider
--------------------------------------------------------------*/
.main_slider {
  margin-top: 0;
  /* Remove any extra margin */
}

.main_slider .carousel-item {
  height: 600px;
  /* Fixed height for consistency */
  background-color: var(--black-bg);
  /* Fallback background for images */
}

.main_slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover container preserving aspect ratio without distortion */
  object-position: center;
}

.main_slider .carousel-caption {
  bottom: 20px;
  text-shadow: 0 1px 3px var(--overlay-dark);
}

/* Ensure no gap between navbar and slider */
.main-navbar-container+.main_slider {
  margin-top: 0;
}

/* Responsive adjustments for slider */
@media (max-width: 991.98px) {
  .main_slider .carousel-item {
    height: auto !important;
  }
  .main_slider .carousel-item img {
    height: auto !important;
  }
}

/*--------------------------------------------------------------
# Main Grid & Content
--------------------------------------------------------------*/
.marquee-box {
  border: 1px solid var(--border-lighter);
  padding: 10px;
  border-radius: 5px;
  background: var(--light-bg);
}

.marquee-box p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.quick-action-buttons .btn-action {
  background: var(--primary-color);
  color: var(--text-white);
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  flex-grow: 1;
}

.member-card {
  background-color: var(--primary-color);
  color: var(--text-white);
  text-align: center;
  padding: 1rem;
  border-radius: 5px;
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.member-card h5 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--text-white) !important;
}

.member-card h5 a {
  color: var(--text-white) !important;
}

.member-card p {
  font-size: 1rem;
  color: var(--text-white) !important;
  opacity: 1 !important;
}

.view-all-btn {
  display: block;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 8px;
  margin-top: 1rem;
  border-radius: 5px;
}

/*--------------------------------------------------------------
# Owl Carousel (Gallery)
--------------------------------------------------------------*/
.post-slide {
  margin: 0 15px;
}

.post-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.post-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease 0s;
}

.post-slide:hover .post-img img {
  transform: scale(1.1);
}

#news-slider .owl-buttons .owl-prev,
#news-slider .owl-buttons .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--text-white);
  padding: 5px 12px !important;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#news-slider .owl-buttons .owl-prev:hover,
#news-slider .owl-buttons .owl-next:hover {
  opacity: 1;
}

#news-slider .owl-buttons .owl-prev {
  left: -25px;
}

#news-slider .owl-buttons .owl-next {
  right: -25px;
}

/*--------------------------------------------------------------
# Enhanced Footer
--------------------------------------------------------------*/
/* ============================================================
   PREMIUM FOOTER REDESIGN
   ============================================================ */
.footer-section {
  background: var(--kdo-navy-deeper, #041522) !important;
  position: relative;
  color: var(--text-light-gray);
  overflow: hidden;
}

/* Orb pseudo-elements removed — caused gradient bleed on last CTA card */
.footer-section::before,
.footer-section::after {
  display: none;
}

.footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  padding: 22px 0 14px;
}

.footer-cta::after {
  display: none;
}

.single-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

/* Removed gradient overlay on cta cards — caused colour bleed */
.single-cta::before {
  display: none;
}

.single-cta:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.single-cta:hover::before { opacity: 1; }

.cta-icon {
  margin-bottom: 8px;
  width: 44px;
  height: 44px;
  background: var(--primary-color-overlay);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 3px 8px var(--shadow-medium);
}

.single-cta i {
  font-size: 1.15rem;
  color: var(--gold-color);
  background: none;
  -webkit-text-fill-color: unset;
}

.cta-text h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cta-text span {
  color: var(--text-light-gray);
  font-size: 0.76rem;
  line-height: 1.35;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-widget-heading h3 {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-widget-heading h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 6px; }

.footer-links li a {
  color: #e2e8f0 !important;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  padding: 3px 0;
  font-size: 0.88rem;
  text-decoration: none;
  position: relative;
}

.footer-links li a:hover {
  color: #ffffff !important;
  padding-left: 6px;
}

.footer-links li a i,
.footer-links li i {
  margin-right: 8px;
  color: var(--gold-color, #ffd700) !important;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.footer-links li a:hover i {
  color: #ffffff !important;
}

.footer-text,
.footer-text p {
  line-height: 1.6;
  color: #94a3b8 !important;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.footer-social-icon span {
  color: #fff;
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-icon a {
  color: #fff;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.footer-social-icon a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-social-icon a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.footer-social-icon a:hover::before { opacity: 1; }

.facebook-bg  { background: linear-gradient(135deg, #3b5998, #4267b2); }
.twitter-bg   { background: linear-gradient(135deg, #1da1f2, #55acee); }
.instagram-bg { background: linear-gradient(135deg, #833ab4, #d6249f, #f77737); }
.youtube-bg   { background: linear-gradient(135deg, #c4302b, #ff0000); }
.android-bg   { background: linear-gradient(135deg, #669900, #a4c639); }

.facebook-widget {
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Ensure facebook iframe fills its column but doesn't overflow the page */
.facebook-widget iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

.footer-logo img {
  filter: drop-shadow(0 4px 10px rgba(var(--primary-color-rgb), 0.2));
  transition: filter 0.3s ease;
  width: auto;
  height: auto;
  max-height: 60px;
  max-width: 100%;
  display: block;
}

@media (max-width: 991px) {
  .footer-logo img {
    max-height: 55px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .footer-logo img {
    max-height: 50px;
    margin: 0 auto;
  }
}

.footer-logo img:hover {
  filter: drop-shadow(0 6px 14px rgba(var(--primary-color-rgb), 0.35));
}

.copyright-area {
  background: var(--kdo-navy-deep, rgba(0, 0, 0, 0.45)) !important;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.copyright-text p {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
}

.copyright-text a {
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.copyright-text a:hover { color: var(--gold-color); }

.ogh-credits {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.ogh-brand-text {
  color: #FFB300 !important;
  font-weight: 600 !important;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 1px 4px;
}

.ogh-brand-text:hover {
  color: #ffd700 !important;
  text-decoration: underline !important;
  text-shadow: none !important;
  transform: translateY(-1px);
}

.footer-menu ul { margin: 0; padding: 0; }

.footer-menu .list-inline-item { margin-right: 0; }

.footer-menu .list-inline-item + .list-inline-item { margin-left: 14px; }

.footer-menu .list-inline-item a {
  font-size: 0.82rem;
  color: #94a3b8;
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer-menu .list-inline-item a:hover { color: var(--gold-color); }

.footer-bottom {
  display: none !important;
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-margin-pusher {
    margin-top: 75px;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .header-logo img {
    height: 50px;
  }

  .header-contact {
    margin-bottom: 10px;
  }

  .contact-item {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }

  .header-social-icons {
    gap: 8px;
  }

  .header-social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .header-quick-links {
    justify-content: center;
    gap: 15px;
  }

  .quick-link-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .main-title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .header-logo img {
    height: 45px;
  }

  .header-social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .header-quick-links {
    flex-direction: column;
    gap: 10px;
  }

  /* --- Mobile Footer CTA: 2 columns side by side --- */
  .footer-cta .row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 4px;
  }

  .footer-cta .col-xl-3 {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .single-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 10px;
    margin-bottom: 0;
    border-radius: 12px;
    gap: 10px;
    height: 100%;
  }

  .single-cta:hover { transform: translateY(-3px); }

  .cta-icon {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }

  .single-cta i { font-size: 1.15rem; }

  .cta-text { flex: 1; min-width: 0; width: 100%; }

  .cta-text h4 {
    font-size: 0.72rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    white-space: normal;
    line-height: 1.3;
  }

  .cta-text span {
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .footer-social-icon a {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .footer-cta .row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .single-cta { padding: 12px 8px; }
  .cta-text h4 { font-size: 0.68rem; }
  .cta-text span { font-size: 0.7rem; }
}

/*--------------------------------------------------------------
# User Apply Form Page
--------------------------------------------------------------*/
.form-container {
  background-color: #ffffff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.form-field-title {
  font-weight: 500;
}

.image-uploader {
  border: 2px dashed #ccc;
  border-radius: 8px;
  position: relative;
  width: 150px;
  height: 150px;
  margin: auto;
  background-color: #f8f9fa;
  transition: border-color 0.3s;
}

.image-uploader:hover {
  border-color: var(--primary-color);
}

.uploader-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: #888;
}

.uploader-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.uploader-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.uploader-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.uploader-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 6px;
}

.uploader-preview:hover .uploader-controls {
  opacity: 1;
}

.payment-info-section {
  background-color: #fef9e7;
  border-left: 5px solid #f1c40f;
}

.btn-submit-grad {
  background: linear-gradient(175deg, var(--primary-color) 50%, var(--secondary-color, #fe0000) 50%);
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px 40px;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.btn-submit-grad:hover {
  transform: scale(1.05);
  color: white;
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-darkest);
  z-index: 1060;
  /* Higher than modal */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments for the form */
@media (max-width: 767px) {
  .form-field-title {
    text-align: left;
    margin-bottom: 5px;
  }
}

/*--------------------------------------------------------------
# Gallery Page Styles
--------------------------------------------------------------*/
.gallery-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 250px;
  /* Fixed height for all cards */
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures image covers the card without stretching */
  transition: transform 0.3s ease-in-out;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color-overlay);
  /* Use primary color for overlay */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

/* Styles for the Lightbox Modal */
#galleryModal .modal-dialog {
  max-width: 90vw;
}

#galleryModal .modal-content {
  box-shadow: none;
}

#galleryModal .modal-body img {
  border-radius: 5px;
  max-height: 90vh;
  /* Prevents image from being too tall */
}

/*--------------------------------------------------------------
# ID Card Download Page
--------------------------------------------------------------*/
.download-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: 5px solid var(--primary-color);
  margin-top: 2rem;
}

.btn-download-primary {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.btn-download-primary:hover {
  background-color: var(--primary-dark);
  /* A darker shade of primary */
  color: white;
}

.btn-download-secondary {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.btn-download-secondary:hover {
  background-color: var(--primary-dark);
  /* A darker shade of secondary */
  color: white;
}

/*--------------------------------------------------------------
# Upcoming Event Page
--------------------------------------------------------------*/
/* Existing styles in style.css are mostly sufficient, but ensure these are present or adjusted */
.event-card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-image-container {
  height: 300px;
  /* Adjust height as needed */
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-image {
  transform: scale(1.05);
}

.event-details {
  padding: 1.5rem;
}

.event-title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.75rem;
}

.event-meta {
  color: #6c757d;
  font-size: 0.9rem;
}

.event-meta span i {
  color: var(--primary-dark);
}

.event-description {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Custom scrollbar for description */
.event-description::-webkit-scrollbar {
  width: 6px;
}

.event-description::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.event-description::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.event-description::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.event-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: bold;
}

.event-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Ensure image takes full width on smaller screens */
@media (max-width: 767.98px) {
  .event-image-container {
    height: 200px;
    /* Reduced height for mobile */
  }
}

/*--------------------------------------------------------------
# Supporter / Donor Card Styles (Orange)
--------------------------------------------------------------*/
.supporter-card {
  background-color: var(--primary-color);
  /* Main orange color */
  border-radius: 12px;
  padding: 1rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.supporter-card:hover {
  transform: translateY(-5px);
}

.supporter-img-container {
  background-color: var(--primary-light);
  /* Light peach background for the image */
  border: 2px solid var(--text-white);
  padding: 10px;
  /* This creates the thick peach border effect */
  border-radius: 8px;
  min-height: 250px;
  /* Changed from fixed height to min-height */
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.supporter-img-container img {
  width: 100%;
  height: auto;
  /* Let height adjust automatically */
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 0;
  /* Remove margin as container handles spacing */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .supporter-img-container {
    min-height: 200px;
    /* Slightly smaller on mobile */
    padding: 8px;
  }
}

.supporter-body {
  text-align: center;
}

.supporter-name {
  background-color: rgba(0, 0, 0, 0.1);
  /* Slightly darker overlay for the name */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.supporter-name h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  font-family: var(--font-nav);
}

.supporter-details .detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

/*--------------------------------------------------------------
# Contact Us Page
--------------------------------------------------------------*/
.contact-info-wrapper {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  border-left: 4px solid var(--primary-color);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item > i {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-right: 1.5rem;
  width: 30px;
  /* To align text */
  text-align: center;
}

.contact-info-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# About Us Page
--------------------------------------------------------------*/
.about-us-container {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

.about-us-container .about-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.about-us-container .about-section:hover {
  transform: translateY(-5px);
}

.about-us-container .about-section .section-image {
  flex: 0 0 300px;
  /* Fixed width for image */
  margin-right: 1.5rem;
}

.about-us-container .about-section .section-image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-us-container .about-section .section-content {
  flex: 1;
  /* Take remaining space */
}

.about-us-container .about-section h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-dark);
  padding-left: 10px;
}

.about-us-container .about-section p,
.about-us-container .about-section li {
  margin-bottom: 1rem;
  color: #333;
}

.about-us-container .about-section strong {
  color: #333;
}

/* Style for ordered and unordered lists */
.about-us-container ul,
.about-us-container ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.about-us-container ul li {
  list-style-type: disc;
}

.about-us-container ol li {
  list-style-type: decimal;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .about-us-container .about-section {
    flex-direction: column;
  }

  .about-us-container .about-section .section-image {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  .about-us-container .about-section .section-image img {
    max-height: 150px;
  }
}

/*--------------------------------------------------------------
# Solutions Page
--------------------------------------------------------------*/
.solution-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.solution-card .card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.solution-card .card-title {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Login Pages
--------------------------------------------------------------*/
.login-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-card {
  border: 1px solid #ddd;
  border-top: 5px solid var(--primary-color);
}

.login-card .card-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
}

/* Footer Bottom Credit */
.footer-bottom {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

/*--------------------------------------------------------------
# Dashboard Styles
--------------------------------------------------------------*/
.dashboard-sidebar {
  min-height: 100vh;
  background: var(--primary-color);
  color: white;
}

.dashboard-content {
  min-height: 100vh;
  background: #f8f9fa;
}

.nav-link {
  color: white !important;
  border-radius: 5px;
  margin: 2px 0;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.table-actions {
  white-space: nowrap;
}

.modal-lg {
  max-width: 90%;
}

.gallery-image-container {
  position: relative;
  overflow: hidden;
}

.gallery-image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-container:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h6 {
  margin-bottom: 0.5rem;
}

/* Index Gallery Section Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

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

.gallery-image-container img {
  transition: transform 0.3s ease;
}

.gallery-image-container:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--overlay-darkest) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-image-container:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}



/*--------------------------------------------------------------
# Management Team and Members Sections
--------------------------------------------------------------*/
.card-custom .member-card a {
  color: var(--text-white);
  /* White (#fff) for visibility against orange background */
  text-decoration: none;
  font-weight: 600;
  /* Slightly bolder for emphasis */
  transition: color 0.3s ease;
  /* Smooth hover transition */
}

.card-custom .member-card a:hover {
  color: var(--gold-color);
  /* Gold (#ffd700) on hover for NDF theme */
}

.card-custom .view-all-btn {
  background: var(--gradient-primary);
  /* Orange gradient (#FF6F0F to #E6640E) */
  color: var(--text-white);
  /* White text */
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  display: block;
  margin-top: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  /* Smooth hover effects */
}

.card-custom .view-all-btn:hover {
  background: var(--gradient-primary-reverse);
  /* Reverse gradient for hover */
  color: var(--text-white);
  /* Maintain white text */
  transform: translateY(-2px);
  /* Slight lift effect */
  box-shadow: 0 4px 10px var(--shadow-dark);
  /* Subtle shadow */
}
/*--------------------------------------------------------------
# Objectives Slider — Premium Card Design
--------------------------------------------------------------*/
.objectives-slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 10px;
}

.objectives-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.objective-slide {
  min-width: 33.333%;
  padding: 8px 10px 16px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .objective-slide { min-width: 50%; }
}

@media (max-width: 600px) {
  .objective-slide { min-width: 100%; padding: 6px 6px 14px; }
}

/* Card — override all global .card-custom styles */
.objectives-slider-container .card-custom {
  background: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column;
  outline: none !important;
  gap: 16px;
}

.objectives-slider-container .card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15) !important;
}

/* Small circular image */
.objective-image-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50% !important;
  overflow: hidden;
  position: relative;
  background: #f0f4f8;
  border: 3px solid var(--primary-color, #010066);
  flex-shrink: 0;
  margin: 0 auto 14px auto;
  padding: 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.objective-image-wrapper::after { display: none; }

.objective-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s ease;
  border: none !important;
  outline: none !important;
  margin: 0;
  padding: 0;
  border-radius: 50% !important;
}

.objectives-slider-container .card-custom:hover .objective-image {
  transform: scale(1.08);
}

/* Card text — centered below circular image */
.objective-card-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.objective-card-body h5 {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.4;
}

.objective-card-body h5::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color, #0b2c45), var(--secondary-color, var(--primary-dark, #ff6b35)));
  border-radius: 3px;
  margin: 8px auto 0 auto;
}

.objective-card-body p {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Slider nav buttons */
.objectives-slider-container .slider-controls {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 4px;
  box-sizing: border-box;
}

.objectives-slider-container .slider-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(var(--primary-color-rgb), 0.4);
}

.objectives-slider-container .slider-btn i { font-size: 14px; }

.objectives-slider-container .slider-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.55);
}

/* Dot indicators */
.objectives-slider-container .slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.objectives-slider-container .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.objectives-slider-container .indicator.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

.objectives-slider-container .indicator:hover { background: var(--primary-light); }

/* --- Objectives Slider Mobile Responsive --- */
@media (max-width: 600px) {
  .objectives-slider-container {
    padding: 0 2px 10px;
  }

  /* 1 card at a time, full width */
  .objective-slide {
    min-width: 100%;
    padding: 4px 6px 14px;
  }

  /* Card: reduced padding on mobile */
  .objectives-slider-container .card-custom {
    padding: 14px !important;
    gap: 12px;
    border-radius: 14px !important;
  }

  /* Square image: slightly smaller on phone */
  .objective-image-wrapper {
    border-radius: 10px;
    aspect-ratio: 4 / 3; /* wider on mobile — shows more of the photo */
  }

  /* Text */
  .objective-card-body h5 {
    font-size: 1rem;
    font-weight: 700;
  }

  .objective-card-body p {
    font-size: 0.85rem;
    line-height: 1.6;
    /* Show full text on mobile, no truncation */
  }

  /* Move nav buttons to sit ON the image, not mid-card */
  .objectives-slider-container .slider-controls {
    top: 30%;
    padding: 0 2px;
  }

  .objectives-slider-container .slider-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  /* Indicators below card */
  .objectives-slider-container .slider-indicators {
    margin-top: 14px;
  }
}

/* Section heading mobile */
@media (max-width: 600px) {
  .section-heading {
    font-size: 1.1rem;
    padding: 5px 10px;
    margin-bottom: 16px;
  }
  .section-heading span {
    padding: 2px 10px;
  }
}

/*--------------------------------------------------------------
# Management/General Team Flip Cards Layout & Animation
--------------------------------------------------------------*/
.team-flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 380px;
  margin-bottom: 30px;
  width: 100%;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.team-flip-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  border: none !important;
}

.team-card-front {
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.team-card-back {
  background-color: var(--kdo-navy) !important; /* Premium dark navy background */
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.team-img-wrap-flip {
  height: 280px;
  width: 100%;
  overflow: hidden;
}

.team-img-flip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-flip-card:hover .team-img-flip {
  transform: scale(1.08);
}

.team-card-back h5 {
  color: #fff !important;
  font-weight: 700;
}

.team-card-back p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.team-socials a {
  transition: all 0.2s ease;
}

.team-socials a:hover {
  transform: translateY(-2px);
  background: var(--kdo-orange) !important;
  color: #fff !important;
}

.team-socials a:hover i {
  color: #fff !important;
}

/* Custom Grid system matching legacy team view */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991.98px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Global Button Consistency System
# All .btn-primary buttons use the brand colors + consistent 6px border-radius
--------------------------------------------------------------*/

/* === SITE-WIDE PRIMARY BUTTON === */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 28px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(var(--primary-color-rgb), 0.3) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--gradient-primary-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.45) !important;
  color: #fff !important;
}

.btn-primary:active,
.btn-primary:focus {
  transform: translateY(0) !important;
  box-shadow: 0 3px 10px rgba(var(--primary-color-rgb), 0.35) !important;
  outline: none !important;
}

/* === OUTLINE SECONDARY (for "Read More" paired with "Donate Now") === */
.btn-outline-primary,
a.btn-outline-primary {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: 8px !important;
  padding: 8px 24px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.btn-outline-primary:hover,
a.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* === SMALL BUTTON VARIANT (btn-sm) === */
.btn-sm.btn-primary,
.btn-primary.btn-sm {
  padding: 8px 20px !important;
  font-size: 12.5px !important;
}

.btn-sm.btn-outline-primary,
.btn-outline-primary.btn-sm {
  padding: 6px 18px !important;
  font-size: 12.5px !important;
}

/* === GALLERY TOGGLE STAYS NEUTRAL (exception) === */
.btn.btn-secondary {
  background: #6c757d !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  transition: all 0.2s ease !important;
}

.btn.btn-secondary:hover {
  background: #5a6268 !important;
  transform: translateY(-1px) !important;
}

/* PWA Toast Notification */
.install-app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 480px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideUp .5s ease forwards;
    border: 1px solid rgba(0,0,0,.07);
}
.install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.install-content img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.install-text {
    flex: 1;
    min-width: 0;
}
.install-text h6 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #0c2b45 !important;
    white-space: nowrap;
}
.install-text p {
    margin: 0;
    font-size: 12px;
    color: #777 !important;
    white-space: normal;
    line-height: 1.4;
}
.install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
#installAppBtn {
    background: var(--primary-color, #FF6F0F);
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
#installAppBtn:hover {
    background: var(--primary-dark, #cc590c);
    color: #fff !important;
}
@keyframes slideUp {
    from { bottom: -120px; opacity: 0; }
    to   { bottom: 24px;  opacity: 1; }
}

/* ============================
   KDO Buttons (Navy & Orange)
   ============================ */
.btn.kdo-btn-navy,
button.kdo-btn-navy,
a.kdo-btn-navy {
    background-color: var(--kdo-navy, #0b2c45) !important;
    background: var(--kdo-navy, #0b2c45) !important;
    color: #ffffff !important;
    border: 1px solid var(--kdo-navy, #0b2c45) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}
.btn.kdo-btn-navy:hover,
.btn.kdo-btn-navy:focus,
button.kdo-btn-navy:hover,
button.kdo-btn-navy:focus,
a.kdo-btn-navy:hover,
a.kdo-btn-navy:focus {
    background-color: var(--kdo-orange, #f68b1e) !important;
    background: var(--kdo-orange, #f68b1e) !important;
    color: #ffffff !important;
    border-color: var(--kdo-orange, #f68b1e) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 139, 30, 0.4) !important;
}
.btn.kdo-btn-navy:active,
button.kdo-btn-navy:active {
    transform: translateY(0);
}

.btn.kdo-btn-orange,
button.kdo-btn-orange,
a.kdo-btn-orange {
    background-color: var(--kdo-orange, #f68b1e) !important;
    background: var(--kdo-orange, #f68b1e) !important;
    color: #ffffff !important;
    border: 1px solid var(--kdo-orange, #f68b1e) !important;
    transition: all 0.3s ease !important;
}
.btn.kdo-btn-orange:hover,
button.kdo-btn-orange:hover,
a.kdo-btn-orange:hover {
    background-color: var(--kdo-navy, #0b2c45) !important;
    background: var(--kdo-navy, #0b2c45) !important;
    color: #ffffff !important;
    border-color: var(--kdo-navy, #0b2c45) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 44, 69, 0.4) !important;
}