/* ==========================================================================
   Takshashila NGO - Main Stylesheet
   Modern, Trustworthy, Responsive & Accessible Design System
   ========================================================================== */

:root {
  --primary-color: #0f4c81;        /* Deep Dignified Blue / Classic Trust */
  --primary-dark: #0a3258;
  --primary-light: #e8f1f8;
  --secondary-color: #e65c00;      /* Warm Energetic Saffron / Action */
  --secondary-hover: #c44d00;
  --accent-green: #10b981;         /* Growth / Healthcare / Hope */
  --accent-gold: #f59e0b;          /* Care / Value */
  --dark-text: #1e293b;            /* Slate 800 */
  --muted-text: #64748b;           /* Slate 500 */
  --light-bg: #f8fafc;             /* Slate 50 */
  --white: #ffffff;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 20px 35px -5px rgba(15, 76, 129, 0.15);
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark-text);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.25;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Utility Badges & Headers */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary-color);
  background-color: rgba(230, 92, 0, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted-text);
  max-width: 650px;
  margin: 0 auto;
}

/* Top Notification / Info Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #dbeafe;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar a {
  color: #ffffff;
}
.top-bar a:hover {
  color: var(--secondary-color);
}

/* Header & Navigation */
.navbar-custom {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.navbar-brand .brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 15px rgba(230, 92, 0, 0.25);
}

.navbar-brand .brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}
.navbar-brand .brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-text);
  display: block;
  margin-top: -4px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.96rem;
  color: #334155 !important;
  padding: 0.6rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover {
  color: var(--secondary-color) !important;
}
.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 700;
}
@media (min-width: 992px) {
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0.9rem;
    right: 0.9rem;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #f97316);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(230, 92, 0, 0.4);
  }
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--secondary-color), #f97316);
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(230, 92, 0, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, #c44d00, var(--secondary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 92, 0, 0.45);
}

.btn-secondary-custom {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary-custom:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.25);
}

.btn-outline-light-custom {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline-light-custom:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0b2540 0%, #103b64 50%, #0f4c81 100%);
  color: white;
  padding: 100px 0 130px;
  overflow: hidden;
}

.hero-overlay-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.4rem;
  color: white;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  font-weight: 800;
}
.hero-title span {
  color: #fb923c;
  background: linear-gradient(to right, #ffb347, #ffcc33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.floating-badge {
  position: absolute;
  background: white;
  color: var(--dark-text);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.floating-badge.top-left {
  top: 30px;
  left: -20px;
}

.floating-badge.bottom-right {
  bottom: 25px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Impact Counter Bar */
.impact-bar-wrapper {
  margin-top: -65px;
  position: relative;
  z-index: 10;
}

.impact-counter-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding: 2.2rem 1.5rem;
  border: 1px solid #edf2f7;
}

.counter-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}
.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e2e8f0;
}

.counter-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.counter-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.counter-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted-text);
  margin-bottom: 0;
}

/* Section Styling */
.section-padding {
  padding: 95px 0;
}
.bg-light-pattern {
  background-color: var(--light-bg);
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
}

/* About Us Section */
.about-img-grid {
  position: relative;
}
.about-img-1 {
  width: 85%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.about-img-2 {
  position: absolute;
  bottom: -35px;
  right: 10px;
  width: 55%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 6px solid white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.about-badge-exp {
  position: absolute;
  top: 20px;
  left: -15px;
  background: linear-gradient(135deg, var(--secondary-color), #f97316);
  color: white;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(230, 92, 0, 0.35);
  text-align: center;
}
.about-badge-exp .years {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #edf2f7;
  transition: var(--transition);
}
.feature-pill:hover {
  background: white;
  box-shadow: var(--card-shadow);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Pillar / Cause Cards */
.cause-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cause-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}
.cause-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.cause-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cause-card:hover .cause-img {
  transform: scale(1.06);
}
.cause-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.cause-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.cause-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.cause-content p {
  color: var(--muted-text);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Custom Progress Bar */
.cause-progress {
  margin: 1.25rem 0 1rem;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.progress-bar-custom {
  height: 8px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), #f59e0b);
  border-radius: 6px;
  transition: width 1.2s ease-in-out;
}

/* Quick Donation Calculator Section */
.donation-box {
  background: linear-gradient(135deg, #0f4c81 0%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
  color: white;
  padding: 3rem;
  box-shadow: 0 20px 45px rgba(15, 76, 129, 0.25);
  position: relative;
  overflow: hidden;
}
.donation-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(230, 92, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.donation-tabs {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  display: inline-flex;
  margin-bottom: 1.5rem;
}
.donation-tab-btn {
  background: transparent;
  color: white;
  border: none;
  padding: 0.4rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.donation-tab-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.amount-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.amount-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.amount-btn:hover, .amount-btn.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.tax-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #86efac;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

/* How We Work / Process */
.process-step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}
.step-number {
  width: 60px;
  height: 60px;
  background: white;
  border: 2px dashed var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Success Stories / Testimonials */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-icon {
  font-size: 2.2rem;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.custom-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.custom-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-text);
  padding: 1.25rem 1.5rem;
  background: white;
  box-shadow: none !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: #f8fafc;
}
.custom-accordion .accordion-button::after {
  filter: grayscale(1);
}
.custom-accordion .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--muted-text);
  font-size: 0.98rem;
  line-height: 1.7;
  background-color: white;
}

/* Contact Section */
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-color), #1a4f7c);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid #edf2f7;
}

.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

/* Call to Action Volunteer Ribbon */
.volunteer-cta-banner {
  background: linear-gradient(135deg, #e65c00 0%, #ea580c 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(230, 92, 0, 0.3);
}

/* Footer */
.footer-main {
  background: linear-gradient(180deg, #0d1e38 0%, #091527 100%);
  color: #cbd5e1;
  padding: 70px 0 25px;
  font-size: 0.94rem;
  border-top: 4px solid var(--secondary-color);
  position: relative;
}

/* Ensure any Bootstrap text-muted or text-secondary inside footer has clear visibility */
.footer-main .text-muted {
  color: #94a3b8 !important;
}
.footer-main .text-secondary {
  color: #cbd5e1 !important;
}
.footer-main .text-white-50 {
  color: #e2e8f0 !important;
}

.footer-brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer-brand-tag {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 2px;
}

.footer-desc {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-office-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.footer-office-card .office-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-office-card .office-addr {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.footer-office-card .office-contact-link {
  color: #f1f5f9;
  font-size: 0.86rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.footer-office-card .office-contact-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a i {
  color: var(--secondary-color);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links a:hover i {
  color: #fbbf24;
  transform: translateX(2px);
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.footer-newsletter-form .form-control::placeholder {
  color: #94a3b8;
}

.footer-newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.25);
  color: #ffffff;
}

.footer-newsletter-form .btn-primary-custom {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.footer-privacy-text {
  color: #94a3b8;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 25px;
  padding-bottom: 10px;
  margin-top: 50px;
}

.footer-bottom-text {
  color: #cbd5e1;
  font-size: 0.88rem;
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-bottom-links .divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

/* Live Toast Notification */
.custom-toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: white;
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 1050;
  animation: slideInUp 0.5s ease-out;
}
@keyframes slideInUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Advanced Responsive & Device Optimizations
   ========================================================================== */

/* Prevent horizontal scroll globally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Desktop Navbar Layout (>= 992px) */
@media (min-width: 992px) {
  .mobile-nav-icon,
  .mobile-nav-arrow,
  .mobile-drawer-close {
    display: none !important;
  }
  .navbar-custom .offcanvas.offcanvas-end {
    position: static !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    visibility: visible !important;
    transform: none !important;
    display: flex !important;
    flex-grow: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  .navbar-custom .offcanvas-body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .navbar-custom .navbar-nav {
    flex-direction: row !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0.6rem;
  }
}

/* Tablet & Mobile (<= 991px) */
@media (max-width: 991px) {
  /* Mobile Offcanvas Drawer - 80% width with rounded corners */
  .navbar-custom .offcanvas.offcanvas-end {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 80% !important;
    max-width: 82vw !important;
    z-index: 1060 !important;
    background: #ffffff !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.32) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  @media (min-width: 600px) and (max-width: 991px) {
    .navbar-custom .offcanvas.offcanvas-end {
      width: 360px !important;
      max-width: 75vw !important;
    }
  }

  .navbar-custom .offcanvas .offcanvas-header {
    background: #ffffff;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    border-top-left-radius: 20px;
    flex-shrink: 0;
  }

  .navbar-custom .offcanvas .offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem !important;
  }

  .navbar-custom .offcanvas .navbar-nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.2rem 0 0.8rem !important;
    flex-direction: column !important;
  }

  .navbar-custom .offcanvas .nav-item {
    width: 100% !important;
  }

  .navbar-custom .offcanvas .nav-link {
    width: 100% !important;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 0.65rem 0.8rem !important;
    border-radius: 10px;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none !important;
    margin-bottom: 0.25rem;
    text-decoration: none;
  }

  .navbar-custom .offcanvas .nav-link:hover {
    background-color: #f8fafc;
    color: var(--primary-color) !important;
    transform: translateX(3px);
  }

  .navbar-custom .offcanvas .nav-link.active {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08) 0%, rgba(230, 92, 0, 0.06) 100%);
    color: var(--primary-color) !important;
    font-weight: 700;
    border-left: 3.5px solid var(--secondary-color) !important;
  }

  .mobile-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .navbar-custom .offcanvas .nav-link.active .mobile-nav-icon {
    background: var(--primary-color);
    color: #ffffff;
  }

  .mobile-nav-arrow {
    color: #cbd5e1;
    font-size: 0.72rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .navbar-custom .offcanvas .nav-link:hover .mobile-nav-arrow {
    color: var(--secondary-color);
    transform: translateX(3px);
  }

  .mobile-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  }

  .mobile-toggle-btn:hover, .mobile-toggle-btn:focus, .mobile-toggle-btn:active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
  }

  .mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .mobile-drawer-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
  }

  .mobile-helpline-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    text-align: left;
  }

  .mobile-helpline-card .helpline-badge {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-helpline-card .helpline-phone {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: var(--transition);
  }

  .mobile-helpline-card .helpline-phone:hover {
    color: var(--secondary-color);
  }

  .mobile-helpline-card .helpline-email {
    display: block;
    font-size: 0.84rem;
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
  }

  .mobile-helpline-card .helpline-email:hover {
    color: var(--secondary-color);
  }

  .offcanvas-backdrop.show {
    opacity: 0.65;
    background-color: #050e1d;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .hero-section {
    padding: 70px 0 100px;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .hero-main-img {
    height: 380px;
    margin-top: 1.5rem;
  }

  .impact-bar-wrapper {
    margin-top: -35px;
  }
  .counter-item:not(:last-child)::after {
    display: none;
  }
  
  .about-img-grid {
    margin-bottom: 2rem;
  }
  .about-img-1 {
    width: 100%;
    height: 340px;
  }
  .about-img-2 {
    position: static;
    width: 100%;
    height: 240px;
    margin-top: 1.25rem;
    border: none;
  }
  .about-badge-exp {
    top: 15px;
    left: 15px;
  }

  .donation-box {
    padding: 2.5rem 1.75rem;
  }
  .amount-btn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-card, .contact-form-card {
    padding: 2rem 1.5rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.95rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Safe positioning for hero badges so they never overflow screens */
  .floating-badge.top-left {
    top: 12px;
    left: 12px;
    padding: 0.6rem 0.9rem;
  }
  .floating-badge.bottom-right {
    bottom: 12px;
    right: 12px;
    padding: 0.6rem 0.9rem;
  }
  .floating-badge h6 {
    font-size: 0.85rem;
  }
  .floating-badge small {
    font-size: 0.72rem;
  }

  /* Impact Counters styled as modern app tiles */
  .impact-counter-card {
    padding: 1.25rem 0.75rem;
  }
  .counter-item {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
    border: 1px solid #edf2f7;
  }
  .counter-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .counter-val {
    font-size: 1.85rem;
  }
  .counter-label {
    font-size: 0.82rem;
  }

  /* Cause Filter Tabs on Mobile */
  .cause-filter-box {
    border-radius: var(--radius-md) !important;
    width: 100%;
    gap: 0.35rem !important;
  }
  .cause-filter-btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem !important;
    flex: 1 1 auto;
    text-align: center;
  }

  /* Volunteer CTA Banner */
  .volunteer-cta-banner {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .volunteer-cta-banner h2 {
    font-size: 1.75rem;
  }

  /* Custom live toast on mobile */
  .custom-toast {
    left: 12px;
    right: 12px;
    bottom: 15px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  /* FAQ Accordion Mobile Refinement */
  .custom-accordion .accordion-button {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }
  .custom-accordion .accordion-body {
    padding: 0.9rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .navbar-brand .brand-logo {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .navbar-brand .brand-name {
    font-size: 1.08rem;
  }
  .navbar-brand .brand-tagline {
    font-size: 0.58rem;
  }

  .hero-section {
    padding: 45px 0 70px;
  }
  .hero-badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.85rem;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.22;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-main-img {
    height: 270px;
  }

  .counter-val {
    font-size: 1.55rem;
  }

  .donation-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }
  .donation-tab-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
  }
  .amount-btn {
    font-size: 0.95rem;
    padding: 0.65rem 0.3rem;
  }

  .contact-info-card, .contact-form-card {
    padding: 1.5rem 1rem;
  }

  /* Footer Mobile Refinements */
  .footer-main {
    padding: 50px 0 25px;
  }
  .footer-title {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }
  .footer-links a {
    font-size: 0.86rem;
    gap: 0.35rem;
  }
  .footer-links li {
    margin-bottom: 0.6rem;
  }
  .footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    text-align: center;
  }
  .footer-bottom-text {
    font-size: 0.82rem;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .footer-bottom-links a {
    font-size: 0.82rem;
  }
}

