/*--------------------------------------------------------------
# Centralized Color Variables - Change colors here for entire site
--------------------------------------------------------------*/
:root {
  /* ══════════════════════════════════════════════════════════════
     OFFICIAL NGO 12-COLOR DESIGN TOKENS
     ══════════════════════════════════════════════════════════════ */
  --color-primary-navy:     #0B2C45; /* 1. Main headings, titles, navigation, footer headings, dark UI */
  --color-primary-orange:   #F68B1E; /* 2. Primary brand accent, highlighted words, section accent, icons, active states */
  --color-orange-hover:     #D96F0B; /* 3. Hover states of orange elements, interactive links, button hover */
  --color-white:            #FFFFFF; /* 4. Text on dark backgrounds, primary button text, card/content surfaces */
  --color-light-bg:         #F8FAFC; /* 5. Alternating sections, page backgrounds, soft content areas */
  --color-soft-orange-bg:   #FFF4E6; /* 6. Highlight boxes, campaign/category backgrounds, soft accent sections */
  --color-body-text:        #334155; /* 7. Paragraphs, descriptions, general readable content */
  --color-secondary-text:   #64748B; /* 8. Metadata, dates, supporting info, subtle labels */
  --color-border:           #E2E8F0; /* 9. Card borders, dividers, input borders, subtle separators */
  --color-success-green:    #198754; /* 10. Success messages, verified/success states, positive indicators */
  --color-error-red:        #DC3545; /* 11. Error messages, validation errors, destructive states */
  --color-dark:             #111827; /* 12. Special high-contrast text where necessary */

  /* ══════════════════════════════════════════════════════════════
     BACKWARD COMPATIBILITY ALIASES FOR EXISTING CODE & LIBRARIES
     ══════════════════════════════════════════════════════════════ */
  --primary-color:          var(--color-primary-orange);
  --primary-dark:           var(--color-orange-hover);
  --primary-light:          var(--color-primary-orange);
  --secondary-color:        var(--color-primary-navy);
  --secondary-dark:         #082235;
  --secondary-light:        var(--color-primary-navy);

  --kdo-navy:               var(--color-primary-navy);
  --kdo-orange:             var(--color-primary-orange);
  --kdo-white:              var(--color-white);
  --kdo-cream:              var(--color-soft-orange-bg);
  --kdo-dark:               var(--color-dark);
  --kdo-text:               var(--color-body-text);

  --text-color:             var(--color-body-text);
  --text-light:             var(--color-body-text);
  --text-muted:             var(--color-secondary-text);
  --text-white:             var(--color-white);
  --text-light-gray:        var(--color-secondary-text);

  --light-bg:               var(--color-light-bg);
  --body-bg:                var(--color-white);
  --white-bg:               var(--color-white);
  --dark-bg:                var(--color-primary-navy);
  --darker-bg:              #082235;
  --black-bg:               var(--color-dark);

  --border-light:           var(--color-border);
  --border-lighter:         var(--color-border);
  --border-dark:            var(--color-secondary-text);

  --success-color:          var(--color-success-green);
  --success-dark:           #146c43;
  --gold-color:             var(--color-primary-orange);

  /* Typography Variables */
  --font-heading:           'Nunito Sans', sans-serif;
  --font-body:              'Lora', serif;
  --font-nav:               'Poppins', sans-serif;

  /* Harmonized Gradients */
  --gradient-primary:       linear-gradient(135deg, var(--color-primary-orange), var(--color-orange-hover));
  --gradient-primary-reverse: linear-gradient(175deg, var(--color-primary-orange) 50%, var(--color-orange-hover) 50%);
  --gradient-header:        linear-gradient(135deg, var(--color-white) 0%, var(--color-light-bg) 100%);
  --gradient-navbar:        linear-gradient(135deg, var(--color-primary-navy), #082235);
  --gradient-footer:        linear-gradient(135deg, var(--color-primary-navy) 0%, #082235 100%);
  --gradient-footer-cta:    linear-gradient(135deg, var(--color-primary-orange), var(--color-orange-hover));
  --gradient-copyright:     linear-gradient(135deg, var(--color-dark), #0B2C45);

  /* Shadows */
  --shadow-light:           rgba(11, 44, 69, 0.05);
  --shadow-medium:          rgba(11, 44, 69, 0.1);
  --shadow-dark:            rgba(11, 44, 69, 0.15);
  --shadow-darker:          rgba(11, 44, 69, 0.2);
  --shadow-darkest:         rgba(11, 44, 69, 0.3);

  /* Overlays */
  --overlay-light:          rgba(255, 255, 255, 0.1);
  --overlay-medium:         rgba(255, 255, 255, 0.2);
  --overlay-dark:           rgba(11, 44, 69, 0.6);
  --overlay-darker:         rgba(11, 44, 69, 0.75);
  --overlay-darkest:        rgba(11, 44, 69, 0.9);
  --primary-color-overlay:  rgba(246, 139, 30, 0.85);

  /* Form & Highlight Colors */
  --form-bg:                var(--color-soft-orange-bg);
  --form-border:            var(--color-border);
}

/*--------------------------------------------------------------
# Rest of your CSS remains exactly the same...
--------------------------------------------------------------*/
/* Premium Professional Font Styling */
/*body {*/
/* font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;*/
/* font-weight: 400;*/
/* color: var(--text-color);*/
/* background-color: var(--body-bg);*/
/* line-height: 1.65;*/
/* letter-spacing: -0.01em;*/
/* font-size: 16px;*/
/*}*/

/*h1,*/
/*h2,*/
/*h3,*/
/*h4,*/
/*h5,*/
/*h6 {*/
/* font-family: 'Poppins', 'Inter', sans-serif;*/
/* font-weight: 600;*/
/* letter-spacing: -0.02em;*/
/* line-height: 1.3;*/
/*}*/

/*h1 {*/
/* font-weight: 700;*/
/* font-size: 2.5rem;*/
/*}*/

/*h2 {*/
/* font-weight: 600;*/
/* font-size: 2rem;*/
/*}*/

/*h3 {*/
/* font-weight: 600;*/
/* font-size: 1.75rem;*/
/*}*/

/*h4 {*/
/* font-weight: 600;*/
/* font-size: 1.5rem;*/
/*}*/

/*h5 {*/
/* font-weight: 600;*/
/* font-size: 1.25rem;*/
/*}*/

/*h6 {*/
/* font-weight: 600;*/
/* font-size: 1.1rem;*/
/*}*/

/*a {*/
/* text-decoration: none;*/
/* color: var(--primary-color);*/
/* transition: all 0.3s ease;*/
/*}*/

/*a:hover {*/
/* color: var(--primary-dark);*/
/*}*/

/*.section-heading {*/
/* color: var(--text-white);*/
/* background: var(--gradient-primary);*/
/* padding: 8px 15px;*/
/* margin-bottom: 1.5rem;*/
/* font-size: 1.5rem;*/
/* text-align: center;*/
/* border-radius: 5px;*/
/* font-weight: 600;*/
/* letter-spacing: 0.02em;*/
/*}*/

/*.section-heading span {*/
/* background-color: var(--white-bg);*/
/* padding: 0 15px;*/
/* color: var(--primary-color);*/
/* font-weight: 600;*/
/*}*/

/*.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;*/
/*}*/

/* Enhanced typography for professional look */
/*p {*/
/* font-size: 1.05rem;*/
/* line-height: 1.7;*/
/* margin-bottom: 1rem;*/
/* letter-spacing: -0.01em;*/
/*}*/

/*strong, b {*/
/* font-weight: 600;*/
/*}*/

/*button,*/
/*.btn {*/
/* font-family: 'Poppins', 'Inter', sans-serif;*/
/* font-weight: 500;*/
/* letter-spacing: 0.01em;*/
/* font-size: 0.95rem;*/
/*}*/

/* Improved readability for smaller text */
/*small, .small {*/
/* font-size: 0.875rem;*/
/* letter-spacing: 0;*/
/*}*/

/* Professional list styling */
/*ul, ol {*/
/* line-height: 1.8;*/
/*}*/

/* Better label and form text */
/*label, .form-label {*/
/* font-weight: 500;*/
/* font-size: 0.95rem;*/
/* letter-spacing: 0;*/
/*}*/

/* Refined input fields */
/*input, textarea, select {*/
/* font-family: 'Inter', 'Segoe UI', sans-serif;*/
/* font-size: 0.95rem;*/
/* letter-spacing: -0.01em;*/
/*}*/

/* Card titles and subtitles */
/*.card-title {*/
/* font-family: 'Poppins', sans-serif;*/
/* font-weight: 600;*/
/* letter-spacing: -0.01em;*/
/*}*/

/*.card-subtitle {*/
/* font-weight: 400;*/
/* letter-spacing: 0;*/
/*}*/

/* Navigation and menu items - Compact to fit all items */
/*.nav-link, .navbar-nav .nav-link {*/
/* font-weight: 600;*/
/* letter-spacing: 0em;*/
/* font-size: 0.82rem;*/
/* text-transform: uppercase;*/
/* padding: 0.5rem 0.35rem !important;*/
/*}*/

/*.main-navbar-container .nav-link {*/
/* padding: 0.5rem 0.35rem !important;*/
/* font-size: 0.82rem !important;*/
/* white-space: nowrap;*/
/*}*/

/*.main-navbar-container .nav-link i {*/
/* font-size: 0.8rem !important;*/
/* margin-right: 0.25rem !important;*/
/*}*/

/* Mobile menu links - Balanced */
/*.mobile-nav-link {*/
/* font-weight: 600;*/
/* font-size: 1rem;*/
/* letter-spacing: 0.02em;*/
/* text-transform: uppercase;*/
/*}*/

/* Quote and blockquote styling */
/*blockquote {*/
/* font-style: italic;*/
/* font-weight: 400;*/
/* line-height: 1.75;*/
/*}*/

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-body-text);
  background-color: var(--color-white);
  line-height: 1.65;
}

p {
  color: var(--color-body-text);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  font-weight: 800;
}

/* Highlighted Heading Words & Accents */
.highlight-word,
.highlight-text,
.text-orange,
.text-highlight {
  color: var(--color-primary-orange) !important;
}

.text-navy {
  color: var(--color-primary-navy) !important;
}

/* Secondary / Metadata Text */
.text-secondary-meta,
.meta-text,
.card-subtitle {
  color: var(--color-secondary-text) !important;
}

/* Interactive Links */
a {
  text-decoration: none;
  color: var(--color-primary-orange);
  transition: all 0.25s ease;
}

a:hover {
  color: var(--color-orange-hover);
}

/* Primary Button */
.btn-primary,
.btn-orange,
.kdo-btn-primary {
  background-color: var(--color-primary-orange) !important;
  border-color: var(--color-primary-orange) !important;
  color: var(--color-white) !important;
  transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-orange:hover,
.btn-orange:focus,
.btn-orange:active,
.kdo-btn-primary:hover {
  background-color: var(--color-orange-hover) !important;
  border-color: var(--color-orange-hover) !important;
  color: var(--color-white) !important;
}

/* Secondary Button */
.btn-secondary,
.btn-navy,
.kdo-btn-navy {
  background-color: var(--color-primary-navy) !important;
  border-color: var(--color-primary-navy) !important;
  color: var(--color-white) !important;
  transition: all 0.25s ease;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-navy:hover,
.btn-navy:focus,
.btn-navy:active,
.kdo-btn-navy:hover {
  background-color: #082235 !important;
  border-color: #082235 !important;
  color: var(--color-white) !important;
}

/* Cards */
.card,
.card-custom {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

/* Alternating Section Backgrounds */
.bg-light,
.section-alt,
.section-light {
  background-color: var(--color-light-bg) !important;
}

.bg-soft-orange,
.box-highlight,
.highlight-box {
  background-color: var(--color-soft-orange-bg) !important;
}

.section-heading {
  color: var(--color-white);
  background: var(--gradient-primary);
  padding: 8px 15px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 5px;
}

.section-heading span {
  background-color: var(--color-white);
  padding: 0 15px;
  color: var(--color-primary-orange);
}

.navbar-margin-pusher {
  margin-top: 0px;
}

/*--------------------------------------------------------------
# Floating Action Buttons
--------------------------------------------------------------*/
.floating-buttons {
  display: contents;
}

.floating-btn-problem {
  font-family: var(--font-nav);
  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-donate {
  font-family: var(--font-nav);
  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);
}

/*--------------------------------------------------------------
# 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-logo img {
  height: 65px;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

.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: 2px 2px 4px var(--shadow-medium);

  /* 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;
}

.header-contact {
  margin-bottom: 15px;
}

.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;
  }
}

/*--------------------------------------------------------------
# Enhanced Navigation
--------------------------------------------------------------*/
.main-navbar-container {
  background: var(--gradient-navbar);
  border-bottom: 3px solid var(--gold-color);
  box-shadow: 0 2px 10px var(--shadow-medium);
}

.main-navbar-container .nav-link {
  font-family: var(--font-nav);
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px 10px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 0 1px;
}

.main-navbar-container .nav-link:hover,
.main-navbar-container .dropdown:hover .nav-link {
  background: var(--gradient-footer-cta);
  box-shadow: 0 4px 10px var(--shadow-darker);
}

.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;
}

/* Mobile Nav Toggle Button - Enhanced */
.mobile-nav-toggle {
  position: absolute;
  top: 160px;
  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);
}

/* Enhanced Mobile Navigation */
.offcanvas {
  background: var(--gradient-navbar);
  width: 300px !important;
}

.offcanvas-header {
  border-bottom: 2px solid var(--overlay-light);
  padding: 2rem 1.5rem;
  background: var(--overlay-light);
}

.offcanvas-title {
  color: var(--text-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

.offcanvas .btn-close {
  background-color: var(--text-white);
  opacity: 1;
  border-radius: 50%;
  padding: 8px;
}

.offcanvas-body {
  padding: 0;
}

.offcanvas-body .nav-link {
  color: var(--text-white);
  font-size: 1.1rem;
  padding: 18px 25px;
  border-bottom: 1px solid var(--overlay-light);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.offcanvas-body .nav-link:hover {
  background: linear-gradient(135deg, var(--overlay-light), var(--overlay-medium));
  color: var(--gold-color);
  padding-left: 35px;
}

.offcanvas-body .nav-link i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  color: var(--gold-color);
}

/* Enhanced Accordion for mobile */
.offcanvas-body .accordion-item {
  background: transparent;
  border: none;
}

.offcanvas-body .accordion-button {
  background: transparent;
  color: var(--text-white);
  font-size: 1.1rem;
  padding: 18px 25px;
  border: none;
  border-bottom: 1px solid var(--overlay-light);
  box-shadow: none;
  transition: all 0.3s ease;
}

.offcanvas-body .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--overlay-light), var(--overlay-medium));
  color: var(--gold-color);
}

.offcanvas-body .accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-body .accordion-body {
  padding: 0;
  background: var(--overlay-darker);
}

.offcanvas-body .accordion-body .nav-link {
  padding-left: 50px;
  font-size: 1rem;
  background: var(--overlay-medium);
}

.offcanvas-body .accordion-body .nav-link:hover {
  padding-left: 60px;
  background: linear-gradient(135deg, var(--overlay-light), var(--overlay-medium));
}

/*--------------------------------------------------------------
# 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: fill;
  /* Stretch image to fill container */
  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: 300px;
    /* Reduced height for tablets */
  }
}

@media (max-width: 767.98px) {
  .main_slider .carousel-item {
    height: 200px;
    /* Further reduced for mobile */
  }
}

/*--------------------------------------------------------------
# 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-heading);
  font-size: 1.4rem;
  margin-bottom: 0;
}

.member-card p {
  font-size: 1rem;
  opacity: 0.8;
}

.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
--------------------------------------------------------------*/
.footer-section {
  background: var(--gradient-footer);
  position: relative;
  color: var(--text-light-gray);
  clear: both;
}

.footer-cta {
  border-bottom: 2px solid var(--border-dark);
}

.single-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.single-cta:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px var(--shadow-darkest);
}

.cta-icon {
  margin-bottom: 15px;
}

.single-cta i {
  color: var(--primary-color);
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-text h4 {
  color: var(--text-white);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.cta-text span {
  color: var(--text-light-gray);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-widget-heading h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-heading h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--text-light-gray);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.footer-links li a:hover {
  color: var(--primary-dark);
  padding-left: 10px;
}

.footer-links li a i {
  margin-right: 10px;
  color: var(--primary-dark);
  font-size: 0.8rem;
}

.footer-text p {
  line-height: 1.8;
  color: var(--text-light-gray);
}

.footer-social-icon span {
  color: var(--text-white);
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-icon a {
  color: var(--text-white);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px var(--shadow-darkest);
}

.footer-social-icon a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.facebook-bg {
  background: linear-gradient(135deg, var(--facebook-color), var(--facebook-hover));
}

.twitter-bg {
  background: linear-gradient(135deg, var(--twitter-color), var(--twitter-hover));
}

.instagram-bg {
  background: linear-gradient(135deg, var(--instagram-color), var(--instagram-hover));
}

.youtube-bg {
  background: linear-gradient(135deg, var(--youtube-color), var(--youtube-hover));
}

.android-bg {
  background: linear-gradient(135deg, var(--android-color), var(--android-hover));
}

.facebook-widget {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-darker);
}

.copyright-area {
  background: var(--gradient-copyright);
  padding: 20px 0;
  border-top: 1px solid var(--border-dark);
}

.copyright-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light-gray);
}

.copyright-text a {
  color: var(--primary-color);
  font-weight: 600;
}

.footer-menu ul {
  margin: 0;
  padding: 0;
}

.footer-menu .list-inline-item {
  margin-right: 20px;
}

.footer-menu .list-inline-item a {
  font-size: 0.9rem;
  color: var(--text-light-gray);
  transition: color 0.3s ease;
}

.footer-menu .list-inline-item a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  background: var(--gradient-copyright);
  color: var(--text-white);
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--gold-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-dark);
}

/*--------------------------------------------------------------
# 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;
  }

  .single-cta {
    padding: 15px;
  }

  .single-cta i {
    font-size: 2rem;
  }

  .cta-text h4 {
    font-size: 1.1rem;
  }

  .footer-social-icon a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# User Apply Form Page
--------------------------------------------------------------*/
.form-container {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(11, 44, 69, 0.08), 0 4px 12px -2px rgba(11, 44, 69, 0.04);
}

.form-field-title {
  font-weight: 500;
}

.image-uploader {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  position: relative;
  width: 150px;
  height: 150px;
  margin: auto;
  background-color: var(--color-light-bg);
  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(--primary-dark) 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: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-primary-orange);
  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: var(--color-secondary-text);
  font-size: 0.9rem;
}

.event-meta span i {
  color: var(--color-primary-orange);
}

.event-description {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body-text);
}

/* Custom scrollbar for description */
.event-description::-webkit-scrollbar {
  width: 6px;
}

.event-description::-webkit-scrollbar-track {
  background: var(--color-light-bg);
}

.event-description::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.event-description::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-text);
}

.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: var(--color-body-text);
  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: var(--color-body-text);
}

.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: var(--color-body-text);
}

.about-us-container .about-section strong {
  color: var(--color-primary-navy);
}

/* 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 var(--color-border);
  border-top: 5px solid var(--color-primary-orange);
}

.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);
}

/* ── Sub-dropdown fix ───────────────────────────────────────
   Ensures nested .sub-dropdown-menu is never hidden and sits correctly
──────────────────────────────────────────────────────────── */
.dropdown-submenu { 
  position: relative !important; 
}

.dropdown-submenu .sub-dropdown-menu {
  display: none;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  min-width: 240px;
  background: #ffffff !important;
  border-top: 3px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  z-index: 10001 !important;
  padding: 8px 0;
  margin-top: -3px; /* Align with parent top */
}

/* Hit-area bridge - deactivated to prevent covering sibling menu items */
.dropdown-submenu .sub-dropdown-menu::before {
  display: none !important;
}

.main-navbar-container .nav-link:hover,
.main-navbar-container .dropdown:hover .nav-link {
  background: var(--gradient-footer-cta);
  /* transform: translateY(-2px); -- Removed to prevent gap issues */
  box-shadow: 0 4px 10px var(--shadow-darker);
}

/* ============================================================
   GLOBAL CONTRAST & READABILITY ENHANCEMENTS FOR DESCRIPTION FONTS
============================================================ */
p {
  color: var(--color-body-text);
}

.text-muted {
  color: var(--color-secondary-text) !important;
}

.text-light {
  color: var(--color-secondary-text) !important;
}

/* Specific component description override for maximum readability */
.about-description,
.feature-content-dynamic,
.president-text,
.camp-desc,
.goal-desc,
.testimonial-card p,
.award-card p,
.press-card p,
.project-content,
.content-rich-text,
.rich-text {
  color: var(--color-body-text) !important;
  font-weight: 500 !important;
}

/* Exempt light text on dark backgrounds in footer/components */
.bg-dark .text-muted,
.bg-dark p,
.bg-dark a,
.bg-dark span,
.text-white p,
.text-white a,
.text-white span,
.text-white .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Highly visible, crystal-clear white text on dark green footer and orange cards */
.bg-orange,
.bg-orange p,
.bg-orange span,
.sf-footer p,
.sf-footer .sf-footer-desc,
.sf-footer .sf-hq-item,
.sf-footer .sf-hq-item span,
.sf-footer .sf-phone-link,
.sf-footer .sf-footer-links li a {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.sf-copyright p,
.sf-copyright p a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.sf-dev-credit {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.sf-dev-credit p {
  color: rgba(255, 255, 255, 0.75) !important;
  text-align: center !important;
  margin: 0 !important;
}

.sf-dev-credit p a {
  color: var(--color-primary-orange) !important;
  font-weight: 700 !important;
}

.sf-copyright p a:hover,
.sf-dev-credit p a:hover {
  color: var(--color-orange-hover) !important;
}

/* ============================================================
   GLOBAL PREMIUM TEAM FLIP CARD EFFECT
   ============================================================ */
.team-flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 400px;
    margin-bottom: 30px;
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
}
.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
}
.team-flip-card:hover .team-card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 15px 35px rgba(11, 44, 69, 0.18);
}
.team-card-front, .team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: none !important;
}
.team-card-front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
.team-card-back {
    background: linear-gradient(135deg, #0b2c45 0%, #0d5c75 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(246, 139, 30, 0.15) !important;
}
.team-img-wrap-flip {
    height: 300px;
    overflow: hidden;
    position: relative;
}
.team-img-flip {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}
.team-flip-card:hover .team-img-flip {
    transform: scale(1.05);
}