/*--------------------------------------------------------------
# Centralized Color Variables - Hindu Devotional Theme
# REVISION: Strict Color-Only Update (No Design Layout Changes)
--------------------------------------------------------------*/
:root {
  /* Main Brand Colors */
  --primary-color: #FF6F0F; /* Saffron Orange */
  --primary-dark: #E6640E; /* Darker Saffron */
  --primary-light: #FF8A3D; /* Lighter Saffron */
  
  --secondary-color: #DC143C; /* Sacred Crimson (Was Maroon Red) */
  --secondary-dark: #B71C1C; /* Darker Red */
  --secondary-light: #FF5252; /* Lighter Red */
  
  /* Hindu Devotional Specifics */
  --saffron-dark: #FF6B35; /* Deep Saffron/Bhagwa */
  --bg-beige: #FFF8E7; /* Light Cream/Kesar */
  --sacred-red: #CC0000; /* Deep Sacred Red */
  --deep-maroon: #800000; /* Text & Heavy Accents */
  --sacred-brown: #8B4513; /* Earthy/Wood tones */
  
  /* Replaced Teal with Saffron/Brown variants */
  --teal-dark: #8B4513; /* Now Sacred Brown */

  /* Accent Colors */
  --gold-color: #ffd700;
  --success-color: #25d366; /* WhatsApp green - PRESERVED */
  --success-dark: #128c7e;
  
  /* Text Colors */
  --text-color: #333;
  --text-light: #555;
  --text-muted: #8B4513; /* Warm Brown instead of gray-blue */
  --text-white: #fff;
  --text-light-gray: #E0E0E0; /* Warm Gray */
  
  /* Background Colors */
  --light-bg: #FFF8E7; /* Warm Cream */
  --body-bg: #FCF5E5; /* Very light warm beige */
  --white-bg: #ffffff;
  --dark-bg: #2C0E0E; /* Dark Maroon/Brown */
  --darker-bg: #1A0505; /* Deepest Maroon */
  --black-bg: #000;
  
  /* Border Colors */
  --border-light: #F5DEB3; /* Wheat/Gold tint */
  --border-lighter: #FAEBD7;
  --border-dark: #8B4513;
  
  /* 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%, #FFF8E7 100%);
  --gradient-navbar: linear-gradient(135deg, var(--primary-color), var(--sacred-red));
  --gradient-footer: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  --gradient-footer-cta: linear-gradient(135deg, var(--primary-color), var(--gold-color));
  --gradient-copyright: linear-gradient(135deg, var(--black-bg), #2C0E0E);
  
  /* Social Media Colors - STRICTLY PRESERVED */
  --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;
  
  /* Supporter Card Colors */
  --supporter-primary: #FF6F0F;
  --supporter-light: #FFE0B2;
  
  /* Shadow Colors - Warm Tones */
  --shadow-light: rgba(139, 69, 19, 0.05);
  --shadow-medium: rgba(139, 69, 19, 0.1);
  --shadow-dark: rgba(139, 69, 19, 0.15);
  --shadow-darker: rgba(139, 69, 19, 0.2);
  --shadow-darkest: rgba(139, 69, 19, 0.3);
  
  /* Overlay Colors */
  --overlay-light: rgba(255, 255, 255, 0.1);
  --overlay-medium: rgba(255, 255, 255, 0.2);
  --overlay-dark: rgba(44, 14, 14, 0.5); /* Warm dark overlay */
  --overlay-darker: rgba(44, 14, 14, 0.6);
  --overlay-darkest: rgba(0, 0, 0, 0.7);
  --primary-color-overlay: rgba(255, 111, 15, 0.85);
  
  /* Form Colors */
  --form-bg: #FFFDF5;
  --form-border: #FFD700;
}

/*--------------------------------------------------------------
# Typography & Global Resets
--------------------------------------------------------------*/
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;
  color: var(--deep-maroon); /* Changed from black/default */
}

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(--secondary-color); /* Red hover instead of blue */
}

/* Force override Bootstrap text-primary if used in HTML */
.text-primary {
    color: var(--primary-color) !important;
}

/* Force override Bootstrap bg-primary if used in HTML */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.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;
  border: 1px solid var(--gold-color);
}

.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; }

p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

strong, b { font-weight: 600; color: var(--deep-maroon); }

button, .btn {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}

small, .small { font-size: 0.875rem; letter-spacing: 0; }
ul, ol { line-height: 1.8; }
label, .form-label { font-weight: 500; font-size: 0.95rem; letter-spacing: 0; color: var(--deep-maroon); }

input, textarea, select {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-color: var(--border-light);
  background-color: var(--form-bg);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 111, 15, 0.25);
    outline: none;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
}

.card-subtitle { font-weight: 400; letter-spacing: 0; }

/* Navigation Links */
.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;
  color: var(--deep-maroon) !important;
}

.main-navbar-container .nav-link {
  padding: 0.5rem 0.35rem !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
  color: var(--text-white) !important;
}

.main-navbar-container .nav-link i {
  font-size: 0.8rem !important;
  margin-right: 0.25rem !important;
  color: var(--gold-color) !important;
}

.mobile-nav-link {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-white);
}

blockquote {
  font-style: italic;
  font-weight: 400;
  line-height: 1.75;
  border-left: 4px solid var(--gold-color);
  padding-left: 15px;
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# Floating Action Buttons
--------------------------------------------------------------*/
.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn-whatsapp {
  background-color: var(--success-color); /* PRESERVED */
  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 {
  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;
  border: 2px solid var(--gold-color);
}

.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; }

.main-title {
  font-size: 2.8rem;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  text-shadow: 2px 2px 4px var(--shadow-medium);
  color: var(--primary-color);
  background: var(--gradient-primary);
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  text-rendering: optimizeLegibility;
}

@supports not (-webkit-background-clip: text) {
  .main-title { background: none; color: var(--primary-color); }
}

.subtitle {
  font-size: 1.1rem;
  color: var(--deep-maroon);
  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;
}

.header-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.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;
}

.header-social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-darkest);
}

.header-bottom-bar {
  background: var(--gradient-footer-cta);
  padding: 10px 0;
  color: var(--deep-maroon);
  font-weight: bold;
}

.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: 600;
  color: var(--deep-maroon);
}

.quick-link-item i {
  margin-right: 8px;
  color: var(--deep-maroon);
}

@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 {
  color: var(--text-white) !important;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px 18px !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 0 2px;
}

.main-navbar-container .nav-link:hover,
.main-navbar-container .dropdown:hover .nav-link {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: var(--gold-color) !important;
  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(--deep-maroon);
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--bg-beige);
  color: var(--primary-color);
  padding-left: 25px;
}

.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(139, 69, 19, 0.4);
  color: var(--text-white);
}

/* Enhanced Mobile Navigation */
.offcanvas {
  background: var(--gradient-navbar);
  width: 300px !important;
}

.offcanvas-header {
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,0.05);
}

.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) !important;
  font-size: 1.1rem;
  padding: 18px 25px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.offcanvas-body .nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold-color) !important;
  padding-left: 35px !important;
}

.offcanvas-body .nav-link i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  color: var(--gold-color) !important;
}

.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 rgba(255,255,255,0.1);
  box-shadow: none;
  transition: all 0.3s ease;
}

.offcanvas-body .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.1);
  color: var(--gold-color);
}

.offcanvas-body .accordion-button::after {
  filter: invert(1) brightness(200%);
}

.offcanvas-body .accordion-body {
  padding: 0;
  background: rgba(0,0,0,0.1);
}

.offcanvas-body .accordion-body .nav-link {
  padding-left: 50px !important;
  font-size: 1rem;
  background: rgba(0,0,0,0.05);
}

.offcanvas-body .accordion-body .nav-link:hover {
  padding-left: 60px !important;
  background: rgba(255,255,255,0.15);
}

/*--------------------------------------------------------------
# Hero Slider
--------------------------------------------------------------*/
.main_slider { margin-top: 0; }
.main_slider .carousel-item { height: 600px; background-color: var(--black-bg); }
.main_slider .carousel-item img { width: 100%; height: 100%; object-fit: fill; object-position: center; }
.main_slider .carousel-caption { bottom: 20px; text-shadow: 0 1px 3px var(--overlay-dark); }
.main-navbar-container + .main_slider { margin-top: 0; }

@media (max-width: 991.98px) { .main_slider .carousel-item { height: 300px; } }
@media (max-width: 767.98px) { .main_slider .carousel-item { height: 200px; } }

/*--------------------------------------------------------------
# Main Grid & Content
--------------------------------------------------------------*/
.marquee-box {
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: 5px;
  background: var(--white-bg);
  color: var(--deep-maroon);
}
.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: "Teko", sans-serif; 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: #dcb386; /* Light Gold text */
}

.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: #dcb386;
  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: #dcb386;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.footer-links li a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.footer-links li a i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 0.8rem;
}

.footer-text p { line-height: 1.8; color: #dcb386; }

.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);
}

/* BRAND COLORS - PRESERVED */
.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 #3d2315;
}

.copyright-text p { margin: 0; font-size: 0.95rem; color: #a69083; }
.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: #a69083;
  transition: color 0.3s ease;
}

.footer-menu .list-inline-item a:hover { color: var(--primary-color); }

.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-color); }

/*--------------------------------------------------------------
# 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;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.form-field-title { font-weight: 500; }

.image-uploader {
  border: 2px dashed var(--gold-color);
  border-radius: 8px;
  position: relative;
  width: 150px;
  height: 150px;
  margin: auto;
  background-color: var(--bg-beige);
  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: var(--text-muted);
}

.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;
  box-shadow: 0 4px 6px rgba(139, 69, 19, 0.2);
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
}

@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(139, 69, 19, 0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 250px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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);
  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; }

#galleryModal .modal-dialog { max-width: 90vw; }
#galleryModal .modal-content { box-shadow: none; }
#galleryModal .modal-body img { border-radius: 5px; max-height: 90vh; }

/*--------------------------------------------------------------
# ID Card Download Page
--------------------------------------------------------------*/
.download-card {
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--primary-color);
  margin-top: 2rem;
}

.btn-download-primary {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border: none;
}
.btn-download-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-download-secondary {
  background-color: var(--sacred-brown); /* Replaced secondary with brown */
  color: white;
  font-weight: 500;
  border: none;
}
.btn-download-secondary:hover {
  background-color: var(--deep-maroon);
  color: white;
}

/*--------------------------------------------------------------
# Upcoming Event Page
--------------------------------------------------------------*/
.event-card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: var(--white-bg);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
}

.event-image-container { height: 300px; 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: "Bakbak One", sans-serif;
  color: var(--primary-color);
  font-size: 1.75rem;
}

.event-meta { color: var(--text-muted); 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;
}

.event-description::-webkit-scrollbar { width: 6px; }
.event-description::-webkit-scrollbar-track { background: var(--bg-beige); }
.event-description::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
.event-description::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.event-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: bold;
  color: white;
}
.event-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

@media (max-width: 767.98px) {
  .event-image-container { height: 200px; }
}

/*--------------------------------------------------------------
# Supporter / Donor Card Styles (Orange)
--------------------------------------------------------------*/
.supporter-card {
  background-color: var(--primary-color);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.15);
  transition: transform 0.3s ease;
}

.supporter-card:hover { transform: translateY(-5px); }

.supporter-img-container {
    background-color: var(--primary-light);
    border: 2px solid var(--text-white);
    padding: 10px;
    border-radius: 8px;
    min-height: 250px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supporter-img-container img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .supporter-img-container { min-height: 200px; padding: 8px; }
}

.supporter-body { text-align: center; }

.supporter-name {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.supporter-name h5 { margin: 0; font-weight: 600; font-size: 1.25rem; font-family: "Poppins", sans-serif; }

.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;
  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(139, 69, 19, 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; 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; }

.about-us-container .about-section h4 {
  font-family: "Bakbak One", sans-serif;
  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; }
.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; }

@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: "Bakbak One", sans-serif;
  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; }
.overlay-content h6 { margin: 0; font-size: 14px; font-weight: 600; }

.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;
    border: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    margin-bottom: 55px;
}

/*--------------------------------------------------------------
# Management Team and Members Sections
--------------------------------------------------------------*/
.card-custom .member-card a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-custom .member-card a:hover { color: var(--gold-color); }

.card-custom .view-all-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    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;
}

.card-custom .view-all-btn:hover {
    background: var(--gradient-primary-reverse);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-dark);
}

/* ==========================================================================
   # NEW ADDITIONS FOR REDESIGN
   ========================================================================== */

/* --- NEWS TICKER --- */
.news-ticker-container { 
    background-color: var(--deep-maroon); /* Changed from secondary/blue to deep maroon */
    color: var(--gold-color); 
    overflow: hidden; 
    white-space: nowrap; 
    padding: 8px 0; 
    border-bottom: 1px solid var(--gold-color);
}
.news-ticker-content { 
    display: inline-block; 
    padding-left: 100%; 
    animation: ticker 20s linear infinite; 
}
@keyframes ticker { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-100%, 0, 0); } 
}

/* --- HERITAGE GRID STYLES (Blue/Teal Box REPLACED) --- */
.heritage-grid-section { 
    background-color: var(--sacred-brown); /* Replaced Teal Dark */
    color: white; 
}
.heritage-box { 
    padding: 40px 20px; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.2); 
    transition: all 0.3s ease; 
    background: rgba(139, 69, 19, 0.4); /* Brown Translucent */
}
.heritage-box:hover { 
    background-color: var(--deep-maroon); /* Darker Maroon Hover */
    transform: translateY(-5px);
}
.heritage-title { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 15px; 
    color: var(--gold-color);
}
.heritage-desc { 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
    opacity: 0.9; 
    color: #FFF8E7;
}
.middle-banner-text { 
    font-size: 2rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--gold-color);
}
.btn-read-more { 
    border: 1px solid var(--gold-color); 
    color: var(--gold-color); 
    padding: 5px 20px; 
    border-radius: 20px; 
    text-decoration: none; 
    font-size: 0.85rem; 
    transition: 0.3s; 
}
.btn-read-more:hover { 
    background-color: var(--gold-color); 
    color: var(--deep-maroon); 
}

/* --- JOIN US CARDS --- */
.join-card { 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 20px; 
    text-align: center; 
    transition: 0.3s; 
    height: 100%; 
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.05); 
    background: var(--white-bg);
}
.join-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2); 
    border-top: 3px solid var(--primary-color); 
}
.join-icon { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}

/* --- CATEGORIES SECTION STYLES (Redesign) --- */
.categories-section { 
    background-color: var(--bg-beige); 
    padding: 60px 0; 
}
.cat-nav-item { 
    text-align: center; 
    color: var(--text-light); 
    cursor: pointer; 
    padding: 10px; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-width: 80px; 
}
.cat-nav-item:hover, .cat-nav-item.active { 
    color: var(--sacred-red); 
    font-weight: bold; 
}
.cat-nav-item i { 
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    color: var(--primary-color);
}
.cat-nav-item.active { 
    border-bottom: 3px solid var(--sacred-red); 
}

/* Categories Mobile Scroll Update - Modified to SHOW Scrollbar */
@media (max-width: 991px) {
    .category-scroll-wrapper {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 15px; /* Increased bottom padding for scrollbar space */
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
        gap: 15px !important; /* Adjust gap for mobile */
        padding-left: 10px;
        padding-right: 10px;
        
        /* Enable Scrollbar for Firefox */
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #e9ecef;
    }
    
    /* Custom Scrollbar Styling for Webkit (Chrome, Safari, Edge) */
    .category-scroll-wrapper::-webkit-scrollbar {
        display: block; /* Show the scrollbar */
        height: 4px;    /* Make it a thin line */
    }
    
    .category-scroll-wrapper::-webkit-scrollbar-track {
        background: #e9ecef; /* Light gray track background */
        border-radius: 10px;
        margin: 0 10px;      /* Slight indent from edges */
    }
    
    .category-scroll-wrapper::-webkit-scrollbar-thumb {
        background-color: var(--primary-color); /* Brand color scroll handle */
        border-radius: 10px;
    }

    .cat-nav-item {
        flex: 0 0 auto; /* Don't shrink */
        min-width: 90px; /* Slightly wider touch target */
    }
}

.cause-card { 
    border: none; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.08); 
    background: #fff; 
    height: 100%; 
    transition: transform 0.3s; 
}
.cause-card:hover { 
    transform: translateY(-5px); 
}
.cause-img-wrapper { 
    position: relative; 
    height: 200px; 
}
.cause-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.tax-badge { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: var(--gold-color); /* Changed from green to gold */
    color: var(--deep-maroon); 
    padding: 2px 10px; 
    font-size: 0.8rem; 
    border-radius: 4px; 
    font-weight: bold; 
}
.cause-body { 
    padding: 20px; 
}
.cause-title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
    min-height: 50px; 
    line-height: 1.4; 
    color: var(--deep-maroon);
}
.cause-progress { 
    height: 8px; 
    border-radius: 4px; 
    background-color: var(--bg-beige); 
    margin: 15px 0; 
}
.progress-bar-custom { 
    background-color: var(--primary-color); 
}
.cause-stats { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
    font-weight: 600; 
    color: var(--text-muted); 
}
.btn-donate-red { 
    background-color: var(--sacred-red); 
    color: white; 
    border: none; 
    border-radius: 4px; 
    padding: 8px 20px; 
    font-weight: 600; 
    width: auto; 
}
.btn-donate-red:hover { 
    background-color: #b71c1c; 
    color: white; 
}
.share-icons i { 
    color: #333; 
    margin-right: 10px; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 1.1rem; 
}
.share-icons i:hover { 
    color: var(--primary-color); 
}

/* --- IMPACT COUNTERS --- */
.impact-section { 
    background-image: url('../images/impact-bg.jpg'); 
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding: 60px 0; 
    text-align: center; 
    position: relative; 
}
.impact-section::before { 
    content: ''; 
    position: absolute; 
    top:0; 
    left:0; 
    right:0; 
    bottom:0; 
    background: rgba(128, 0, 0, 0.8); /* Deep Maroon Overlay */
    z-index: 1; 
}
.counter-box { 
    position: relative; 
    z-index: 2; 
}
.counter-box h2 { 
    font-size: 3rem; 
    font-weight: bold; 
    color: var(--gold-color); 
}
.counter-box p { 
    font-size: 1.2rem; 
    color: #FFF8E7;
}

/* --- DONORS GRID --- */
.donor-img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 5px; 
    margin-bottom: 10px; 
}
/* --- NEW IMPACT SECTION (Split Design) --- */
.impact-split-section {
    background-color: #fff;
    padding: 60px 0;
}

.impact-slider-container {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.impact-slider-img {
    width: 100%;
    height: 450px; /* Fixed height for consistency */
    object-fit: cover;
}

.impact-content-box {
    padding: 20px 0 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.impact-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.impact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--deep-maroon);
}

.impact-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.impact-stat-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-maroon);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.impact-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

/* Mobile Responsive for Impact Section */
@media (max-width: 768px) {
    .impact-content-box {
        padding: 40px 0 0 0;
    }
    .impact-slider-img {
        height: 300px;
    }
    .impact-stats-grid {
        gap: 20px;
    }
    .impact-title {
        font-size: 2rem;
    }
}

/* --- JOIN GRID LAYOUT (Teal Box Design) --- */
.join-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 20px;
}

.join-grid-item {
    background-color: var(--sacred-brown); /* Replaced Teal Dark */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-height: 150px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}

.join-grid-item:hover {
    background-color: var(--deep-maroon); /* Slightly darker maroon */
    transform: translateY(-3px);
    color: var(--gold-color); /* Gold on hover */
    border-color: var(--gold-color);
}

/* Specific Grid Item Placements */
.join-item-1 { grid-column: 1 / 2; grid-row: 1 / 3; } /* Large Left Box */
.join-item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.join-item-3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.join-item-4 { grid-column: 4 / 5; grid-row: 1 / 2; }
.join-item-5 { grid-column: 5 / 6; grid-row: 1 / 3; } /* Large Right Box */
.join-item-6 { grid-column: 2 / 3; grid-row: 2 / 3; }
.join-item-7 { grid-column: 3 / 4; grid-row: 2 / 3; }
.join-item-8 { grid-column: 4 / 5; grid-row: 2 / 3; }

/* --- PROJECTS GRID LAYOUT --- */
.projects-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    padding: 20px;
}

.project-grid-item {
    background-color: var(--sacred-brown); /* Replaced Teal Dark */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-height: 250px; /* Taller for project sections */
    text-decoration: none;
    font-weight: 500;
}

.project-grid-item:hover {
    background-color: var(--deep-maroon);
    transform: translateY(-3px);
    color: var(--gold-color);
}

/* Specific Project Item Placements */
.proj-item-1 { grid-column: 1 / 2; } /* Touching Lives (Left) */
.proj-item-2 { grid-column: 2 / 5; display: flex; flex-direction: column; gap: 10px; background: transparent !important; padding: 0 !important; } /* Center Container */
.proj-center-top { 
    background-color: var(--sacred-brown); 
    padding: 15px; 
    width: 100%; 
    text-align: center; 
    color: white; 
    border-radius: 4px; 
    min-height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
} /* Submit Cause Bar */
.proj-center-bottom { display: flex; gap: 10px; height: 100%; } /* 3 Bottom Boxes */
.proj-sub-item { 
    flex: 1; 
    background-color: var(--sacred-brown); 
    color: white; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    border-radius: 4px; 
    transition: 0.3s; 
}
.proj-sub-item:hover { background-color: var(--deep-maroon); color: var(--gold-color); }

.proj-item-3 { grid-column: 5 / 6; } /* Our Projects (Right) */


/* Responsive Grid for Mobile */
@media (max-width: 991px) {
    .join-grid-container, .projects-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .join-item-1, .join-item-5, .proj-item-1, .proj-item-3 {
        grid-column: span 2;
        grid-row: auto;
        min-height: 120px;
    }
    
    .join-item-2, .join-item-3, .join-item-4, 
    .join-item-6, .join-item-7, .join-item-8 {
        grid-column: span 1;
        grid-row: auto;
    }

    .proj-item-2 {
        grid-column: span 2;
    }
    
    .proj-center-bottom {
        flex-direction: column;
    }
}

/* --- STAY INFORMED SECTION STYLES --- */
#news-events-section {
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.object-fit-cover {
    object-fit: cover;
}

/* Card Styles for News */
#news-events-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: 0;
    border-color: var(--border-light);
}

#news-events-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.08) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Story Link Hover Effect */
.story-link {
    position: relative;
    display: inline-block;
    color: var(--deep-maroon);
    font-weight: 600;
}

.story-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.story-link:hover:after {
    width: 100%;
}

/* Scrollable Content Areas */
.stories-wrapper,
.causes-wrapper,
.events-wrapper {
    height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 69, 19, 0.2) transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Scroll Bar Styling */
.stories-wrapper::-webkit-scrollbar,
.causes-wrapper::-webkit-scrollbar,
.events-wrapper::-webkit-scrollbar {
    width: 5px;
}

.stories-wrapper::-webkit-scrollbar-thumb,
.causes-wrapper::-webkit-scrollbar-thumb,
.events-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(139, 69, 19, 0.2);
    border-radius: 10px;
}

.stories-wrapper::-webkit-scrollbar-track,
.causes-wrapper::-webkit-scrollbar-track,
.events-wrapper::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Color Improvements for Stay Informed - Replaced Blues */
.bg-primary-subtle { background-color: rgba(255, 111, 15, 0.1) !important; color: var(--primary-color) !important; }
.bg-success-subtle { background-color: rgba(37, 211, 102, 0.1) !important; color: var(--success-dark) !important; }
.bg-info-subtle { background-color: rgba(255, 215, 0, 0.1) !important; color: var(--deep-maroon) !important; } /* Gold tint */

/* Responsive Adjustments for News Section */
@media (max-width: 991.98px) {
    #news-events-section .row.g-4 > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- ABOUT US ACCORDION (Drop Down Content) --- */
.custom-about-accordion .accordion-item {
    border: none;
    background: transparent;
}

.custom-about-accordion .accordion-button {
    background: var(--sacred-brown); /* Replaced Teal #0f4c5c */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px !important;
    padding: 20px 25px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color); /* Orange accent */
}

.custom-about-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color); /* Active state orange */
    color: white;
    box-shadow: 0 8px 15px rgba(255, 111, 15, 0.3);
}

.custom-about-accordion .accordion-button:focus {
    box-shadow: none; /* Remove default blue focus ring */
}

.custom-about-accordion .accordion-button::after {
    filter: invert(1) brightness(200%); /* Make arrow white */
}

.custom-about-accordion .accordion-collapse {
    background: var(--white-bg);
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.05);
    border: 1px solid var(--border-light);
}

.custom-about-accordion .accordion-body {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.custom-quote {
    background: var(--bg-beige);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.custom-list .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
    font-size: 1.05rem;
}

