/* ============================================================
   FONT SETUP â€” Bengali + English
============================================================ */

/* Google Fonts (English) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Merriweather:wght@700&display=swap');

/* Local Bengali Fonts */
@font-face {
  font-family: 'NotoSansBengali';
  src: url('../fonts/NotoSansBengali-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'NotoSansBengali';
  src: url('../fonts/NotoSansBengali-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'HindSiliguri';
  src: url('../fonts/HindSiliguri-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'HindSiliguri';
  src: url('../fonts/HindSiliguri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ============================================================
   ROOT VARIABLES â€” Colors, Typography, Layout
============================================================ */
:root {
  --color-primary: #d40000;
  --color-secondary: #09295d;
  --color-accent: #ff4c4c;
  --color-bg: #f9fbfc;
  --color-surface: #ffffff;
  --color-dark-bg: #0e1824;
  --color-dark-surface: #152235;
  --color-text: #222;
  --color-text-light: #f9fbfc;
  --color-muted: #6b7280;

  --radius-lg: 1rem;
  --radius-md: 0.5rem;
  --radius-sm: 0.25rem;
  --shadow-sm: 0 3px 10px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: var(--color-dark-bg);
  --color-surface: var(--color-dark-surface);
  --color-text: var(--color-text-light);
  --color-muted: #c9d1d9;
}

/* ============================================================
   TYPOGRAPHY BASED ON LANGUAGE
============================================================ */
html[lang="bn"], body[lang="bn"] {
  font-family: 'NotoSansBengali', 'HindSiliguri', 'Poppins', sans-serif;
  font-size: 17px;
}

html[lang="en"], body[lang="en"] {
  font-family: 'Poppins', 'NotoSansBengali', 'HindSiliguri', sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'NotoSansBengali', 'HindSiliguri', 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6 {
  font-family: 'Merriweather', serif;
}

/* ============================================================
   GLOBAL RESET & LINKS
============================================================ */
/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text, #333);
  background: var(--white, #fff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity 0.5s ease-in-out, background 0.3s ease;
}

/* ==================== Main Content ==================== */
main {
  flex: 1; /* Takes remaining space to push footer down */
  padding: 20px; /* Optional padding for main content */
}

/* ==================== Footer ==================== */
.dashboard-footer {
  flex-shrink: 0; /* Ensure footer doesn't shrink */
}


a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Remove Bootstrap focus ring */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}


/* ============================================================
   FORM STYLING
============================================================ */
.form-floating {
  position: relative;
  margin-bottom: 0.5rem;
}

.form-floating > .form-control,
.form-floating > .form-select,
.form-floating > textarea.form-control {
  height: 2.4rem !important;
  min-height: 2.4rem !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  border-radius: 0.4rem !important;
  border: 1px solid #ccc !important;
  box-sizing: border-box !important;
}

/* Allow textarea to grow */
.form-floating > textarea.form-control {
  height: auto !important;
  min-height: 4rem !important;
  resize: vertical;
}

/* Label default state */
.form-floating > label {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-52%);
  font-size: 1rem !important;
  line-height: 1 !important;
  color: #666 !important;
  background: #fff;
  padding: 0 0.25rem;
  pointer-events: none !important;
  transition: all 0.25s ease-in-out !important;
  height: auto !important;
}

/* Floating state */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]) ~ label,
.form-floating > textarea.form-control:focus ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  left: 0.55rem;
  font-size: 0.75rem !important;
  color: var(--brand, #2e7d32);
  transform: none;
  background: #fff;
  padding: 0 0.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ================================
   Branded Select2 (Bootstrap 5 theme)
   with Scroll Protection for Modals
================================ */
.select2-container--bootstrap-5 .select2-selection {
  border: 1px solid #d0d7de;
  border-radius: 0.5rem;
  height: auto !important;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.select2-container--bootstrap-5 .select2-selection:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  border-color: var(--primary-color, #013470);
  box-shadow: 0 0 0 0.15rem rgba(1, 52, 112, 0.25);
}

.select2-container--bootstrap-5 .select2-selection__rendered {
  color: #212529;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0.75rem;
}

/* Dropdown container appearance */
.select2-dropdown {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Limit dropdown height for safety */
.select2-results > .select2-results__options {
  max-height: 180px !important; /* Fixed height */
  overflow-y: auto !important;   /* Enable scroll */
}

/* Hovered and selected styles */
.select2-results__option--highlighted {
  background-color: var(--primary-color, #013470) !important;
  color: #fff !important;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-brand {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-brand:hover {
  color: #fff;
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}

.btn-outline-brand:hover {
  background: var(--color-secondary);
  color: #fff;
}

.btn-brand-secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn-brand-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}


/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 1.5rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: #fff;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--color-accent);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.social-icons .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icons .social-link:hover {
  background: var(--color-primary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Buttons */
.btn-topbar {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-topbar.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-topbar.btn-outline-light:hover {
  background: #fff;
  color: var(--color-secondary);
}

.btn-topbar.btn-brand {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.btn-topbar.btn-brand:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Scrolled State */
.top-bar.scrolled {
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ================= TOP BAR MOBILE CENTER ALIGN ================= */
@media (max-width: 575.98px) {
  .top-bar .container > .d-flex:first-child {
    justify-content: center !important; /* center the contact info */
    width: 100%;
  }

  /* Reduce padding and font size on small screens */
  .top-bar .helpline,
  .top-bar .email {
    font-size: 0.85rem !important;
    font-weight: 600;
  }

  .topbar-buttons a.btn-topbar {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }

  .social-icons a {
    font-size: 0.85rem;
  }
}


/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  background: #fff;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Fixed logo sizing */
.navbar .logo {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar .logo:hover {
  transform: scale(1.08);
}

.navbar .nav-link {
  position: relative;
  color: var(--color-secondary) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Animated underline */
.navbar .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
  width: 70%;
}

.navbar .nav-link:hover {
  color: var(--color-primary) !important;
  transform: scale(1.05);
}

/* Dropdowns */
.dropdown-menu.fade-slide {
  opacity: 0;
  transform: translateY(15px);
  visibility: hidden;
  transition: all 0.3s ease;
  display: block;
  position: absolute;
  margin-top: 0.5rem;
}

.nav-item.dropdown:hover > .dropdown-menu.fade-slide {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-menu.fade-slide .dropdown-item {
  transition: background-color 0.3s ease;
}

.dropdown-menu.fade-slide .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Mini logo */
.mini-logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.mini-logo-link:hover {
  transform: scale(1.1);
}

.mini-logo {
  height: 38px;
  width: auto;
}

/* Donate button */
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(212,0,0,0.3);
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-donate:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212,0,0,0.4);
}

/* ============================================================
   OFFCANVAS / MOBILE MENU
============================================================ */
.offcanvas {
  width: 250px;
  max-width: 80%;
  height: 100vh !important;
  background-color: var(--color-primary);
  color: #fff;
  z-index: 1070 !important;
  transition: transform 0.4s ease;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas .nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}


.offcanvas .nav-link:hover {
  color: var(--color-accent) !important;
  transform: scale(1.05);
}

.offcanvas .btn-accent {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offcanvas .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 0, 0, 0.4);
}

.offcanvas-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

/* ============================================================
   HERO SECTION (WITH CONTAINER)
============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  padding: 3rem 0 5rem;
  color: #fff;
}


.hero-wrapper {
  display: grid;
  grid-template-columns: 75% 25%;
  gap: 2rem;
  align-items: stretch;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  height: 520px;
  position: relative;
}

.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

/* ===== NOTICE BOARD ===== */
.notice-board {
  background: #fff;
  color: #333;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 520px;
  display: flex;
  flex-direction: column;
}

.notice-board h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.notice-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.notice-item {
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--color-secondary);
  transition: transform 0.3s ease;
}

.notice-item:hover {
  transform: translateX(4px);
}

.notice-item p {
  margin: 0;
  font-size: 0.95rem;
}

.notice-item small {
  color: #777;
}

.notice-item .see-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;           /* smaller text */
  padding: 2px 8px;             /* tighter spacing */
  border-radius: 30px;          /* rounded pill */
  margin-left: 6px;             /* small gap from text */
  line-height: 1.2;
  transition: all 0.3s ease;
  background: var(--color-secondary);
  color: #fff;
}

.notice-item .see-more i {
  font-size: 0.8rem;
}

.notice-item .see-more:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateX(2px);
}


/* ============================================================
   RESPONSIVE FIXES
============================================================ */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .notice-board {
    height: auto;
    max-height: none;
  }

  .notice-board {
    margin-top: 2rem;
  }
}

/* ✅ MOBILE FIX — FULL-WIDTH HERO IMAGE + CLEAN STACK */
@media (max-width: 576px) {
  .hero-section {
    padding: 0;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  /* Remove extra container padding if any */
  .hero-section .container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-slider {
    border-radius: 0;
    height: auto;
    box-shadow: none;
  }

  .hero-slide img {
    border-radius: 0;
    width: 100%;
    height: auto;
  }

  .notice-board {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 1.25rem 1rem 2rem;
  }

  .notice-board h3 {
    font-size: 1.1rem;
  }

  .notice-item p {
    font-size: 0.9rem;
  }
}



/* ==================== STATS SECTION ==================== */
.stats-section {
 
  border-radius: 1rem;
  width: 1200px;
  margin: -100px auto 20px auto; /* Float up and center horizontally */
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 5;
}

/* Each stat card */
.stat-card {
  background: var(--color-bg, #f9fafb);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Counter numbers */
.stats-section h2.counter {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.3rem 0;
  color: var(--color-secondary, #0066cc);
}

/* Labels */
.stats-section p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted, #666);
  margin: 0;
}

/* Gradient icons */
.icon-gradient {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary, #e30613), var(--color-accent, #00a859), var(--color-secondary, #0066cc));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform 0.3s ease;
}

.icon-gradient:hover {
  transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .stats-section {
    max-width: 90%;
    padding: 2.5rem 1.25rem;
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .stats-section {
    margin-top: -60px;
    padding: 2rem 1rem;
  }
  .stat-card {
    padding: 1.25rem;
  }
  .stats-section h2.counter {
    font-size: 1.8rem;
  }
}


@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .top-bar .contact-info,
  .top-bar .social-icons,
  .top-bar .btn-group {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .top-bar .contact-info {
    font-size: 0.85rem;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .btn-topbar {
    width: 100%;
    justify-content: center;
    margin-top: 0.3rem;
  }

  .btn-topbar + .btn-topbar {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.8rem;
    padding: 0.6rem;
  }

  .social-icons .social-link {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .btn-topbar {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
}


/* ============================================================
   MOBILE FIX – Prevent horizontal shift + top-bar
============================================================ */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1040 !important;
  }

  .navbar {
    position: fixed !important;
    top: 35px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
  }

  body {
    padding-top: calc(32px + 70px) !important;
  }

  .hero-slider {
    margin-top: 0 !important;
    position: relative !important;
  }

}

/* ============================================================
   ABOUT SECTION
============================================================ */
#about {
  margin-top: -120px;
}
.about-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-section p.lead {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-image {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.about-image-text {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: transparent;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
}

.about-image-text p {
  margin: 0;
}

/* Gradient icon */
.icon-gradient {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: all 0.3s ease;
}

.icon-gradient:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
#about {
  margin-top: -60px;
}
}

/* Section Divider */
.cause-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
  margin: 0 auto 2rem;
}

/* Causes Wrapper */
.causes-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-top: 2rem;
}

.cause-divider-vertical {
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
  align-self: stretch;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
  margin: 0 2rem;
  position: relative;
}

.cause-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.cause-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}

.cause-circle i {
  font-size: 3rem;
  color: var(--color-primary);
  transition: transform 0.35s ease, color 0.35s ease;
}

.cause-circle h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0.8rem;
  text-align: center;
  line-height: 1.3;
  max-width: 90%;
  z-index: 1;
}

.cause-circle:hover {
  background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cause-circle:hover h5,
.cause-circle:hover i {
  color: #fff;
  transform: scale(1.1);
}

/* Activity Thumb / Lightbox */
.activity-thumb {
  width: 150px;
  height: 150px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  cursor: pointer;
}

.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.activity-thumb:hover img {
  transform: scale(1.1);
}

.lightbox-overlay {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.9);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.lightbox-overlay img {
  max-width:90%;
  max-height:80%;
}

.lightbox-controls span {
  font-size: 2rem;
  color:#fff;
  cursor:pointer;
  margin: 0 20px;
  user-select:none;
}

.close-lightbox {
  position:absolute;
  top:20px;
  right:30px;
  font-size:2.5rem;
  color:#fff;
  cursor:pointer;
}

/* ============================================================
   DONATE SECTION (Final Polished Version)
   ============================================================ */
#donate {
  position: relative;
  margin-top: 100px;
  overflow: visible !important; /* allows upward image overlap */
  z-index: 1010;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  text-align: center;
}

/* --- Image Styling --- */
.donate-image {
  margin-top: -120px;    /* lifts image above previous section */
  margin-bottom: -77px;
  position: relative;
  z-index: 1020;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.donate-image:hover {
  transform: translateY(-4px); /* subtle hover lift */
}

/* --- Typography --- */
#donate h2 {
  font-size: 2rem;
  font-weight: 700;
}

#donate p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- Button Styling --- */
#donate .btn-light {
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#donate .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Fixes --- */
@media (max-width: 991px) {
  .donate-image {
    margin-top: -80px;
    margin-bottom: -60px;
  }

  #donate h2 {
    font-size: 1.75rem;
  }

  #donate p {
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .donate-image {
    margin-top: -80px;
    margin-bottom: -30px;
  }

  #donate h2 {
    font-size: 1.5rem;
  }

  #donate p {
    font-size: 0.9rem;
  }
}

/* ============================================================
   CONTACT SECTION - Centered with Divider
============================================================ */
#contact {
  background: #f8f9fa;
  position: relative;
  overflow: visible;
  padding-top: 50px;
  padding-bottom: 150px;
  
}

.contact-info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.icon-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*  Vertical divider between Phone & Email */
.phone-section {
  position: relative;
}

.phone-section .divider {
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: #dee2e6;
}

/*  Mobile Responsive Center Alignment */
@media (max-width: 767.98px) {
  .contact-info-card .divider {
    display: none !important;
  }

  .contact-info-card h5 {
    font-size: 1.15rem;
    justify-content: center;
    text-align: center;
  }

  .contact-info-card ul,
  .contact-info-card li,
  .contact-info-card a,
  .contact-info-card small {
    text-align: center !important;
  }
}


/* ============================================================
   TEAM SECTION
============================================================ */
.team-card {
  transition: all 0.3s ease-in-out;
  border: none;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.team-overlay .social-links {
  display: flex;
  gap: 10px;
}

.team-overlay .social-links .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-overlay .social-links .social-icon:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
}

.team-hero h1,
.team-hero p {
  color: #fff;
}

.team-img img {
  width: 200px;
  height: 450px !important;       /* Set a fixed height for all images */
  object-fit: cover; /* Ensures the full image is visible without cropping */
  background: #f5f5f5; /* Optional: background for empty space */
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.05); /* optional zoom on hover */
}

/* Modern Membership Form Heading with Left Border & Brand Gradient */
.membership-heading {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-left: 5px solid var(--color-primary); /* Left border with primary color */
  margin-left: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.membership-heading i {
  font-size: 1.6rem;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.membership-heading:hover i {
  transform: scale(1.2) rotate(15deg);
}

/* ============================================================
   VOLUNTEER CTA — Overlapping Above Footer (Balanced Layout)
============================================================ */
.volunteer-cta {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-radius: 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-align: center;
  transition: all 0.4s ease;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: -140px;
  margin-bottom: -140px; 
}

.volunteer-cta h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.volunteer-cta p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.volunteer-cta .cta-btn {
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--color-secondary);
  font-weight: 600;
  border: none;
}
.volunteer-cta .cta-btn:hover {
  transform: translateY(-4px);
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FOOTER SECTION — Curved Top + CTA Overlap Integration
============================================================ */
.footer {
  background: var(--color-secondary);
  color: #f1f1f1;
  position: relative;
  padding-top: 180px; /* more breathing space below CTA */
  padding-bottom: 20px;
  overflow: hidden;
  text-align: left;
}

/* Smooth curved top for footer */
.footer::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--color-secondary);
  border-top-left-radius: 100% 50px;
  border-top-right-radius: 100% 50px;
  z-index: 1;
}

/* Footer content styles */
.footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer .footer-link {
  color: #f1f1f1;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
  transition: 0.3s;
}
.footer .footer-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer .social-icons {
  display: flex;
  gap: 12px;
}


/* Divider line */
.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Facebook Feed Column Styling */
.footer .fb-page {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  transition: all 0.3s ease;
}

.footer .fb-page:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .footer .fb-page {
    width: 100% !important;
  }
}


/* Responsive Tweaks */
@media (max-width: 768px) {
  .volunteer-cta {
    max-width: 95%;
    padding: 40px 20px;
    margin-bottom: -80px;
    margin-top: -60px;
  }
  .volunteer-cta h2 {
    font-size: 1.6rem;
  }
  .footer {
    text-align: center;
    padding-top: 140px;
  }
  .footer .social-icons {
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
============================================================ */
@media (max-width: 992px) {
  .about-section {
    padding: 3rem 0;
  }

  .about-section h2 {
    font-size: 2rem;
    text-align: center;
  }

  .about-section p.lead {
    font-size: 1rem;
    text-align: center;
  }
  
  .about-buttons {
    justify-content: center; /* center buttons horizontally */
    text-align: center;
  }

  .about-buttons .btn {
    width: auto; /* keeps button width adjusted to content */
    margin-bottom: 0.5rem; /* spacing between wrapped buttons */
  }
  
  .text-left-mobile {
    text-align: center !important;  /* center text */
    margin-left: auto !important;    /* center column */
    margin-right: auto !important;
  }

  .causes-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .cause-divider-vertical {
    display: none;
  }

  .cause-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .cause-circle {
    width: 150px;
    height: 150px;
  }

  .cause-circle i {
    font-size: 2.5rem !important;
  }

  .contact-info-row {
    flex-direction: column;
    border: none;
  }

  .contact-divider {
    display: none;
  }

  .contact-info-card {
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
  }

  .contact-info-card:last-child {
    border-bottom: none;
  }

  .contact-form {
    margin-top: 1rem;
  }

}

@media (max-width: 768px) {
  .about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .about-section p.lead {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  .about-image-text {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: transparent;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
  }
  

  #contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  #contact .contact-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 2.5rem 0;
  }

  .about-section h2 {
    font-size: 1.6rem;
  }

  .about-section p.lead {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .about-image-text {
    margin-top: -70px;
  }

  .icon-gradient {
    font-size: 1.5rem;
  }
}


/* Dashboard Style */

.section-title {
    position: relative;
    font-weight: 600;
    font-size: 1.75rem; /* adjust as needed */
    padding-left: 1rem; /* space for the left border */
    border-left: 6px solid;
    border-image: linear-gradient(180deg, var(--color-primary), var(--color-secondary), var(--color-primary)) 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #222;
}

.section-title i {
    font-size: 1.5rem; /* icon size */
    color: var(--color-primary); /* icon color, matches gradient start */
}


.gradient-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

/* ============================================================ 
   Sparkline charts in stat cards
============================================================ */
.sparkline-canvas {
    height: 50px !important;   /* fixed height for small cards */
    width: 100% !important;
}


/* Badge styling */
.badge { font-size:.75rem; padding:.35em .5em; border-radius:.25rem; text-transform: uppercase !important; }

/* Light badges */
.badge.bg-success-light { background-color:#d4edda !important; color:#155724 !important; }
.badge.bg-info-light { background-color:#d1ecf1 !important; color:#0c5460 !important; }
.badge.bg-danger-light { background-color:#f8d7da !important; color:#721c24 !important; }
.badge.bg-warning-light { background-color:#fff3cd !important; color:#856404 !important; }
.badge.bg-secondary-light { background-color:#e2e3e5 !important; color:#6c757d !important; }


/* ============================================================ 
   Global Branded Modal Styles
============================================================ */
.modal-content {
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    color: #fff;
    font-weight: 600;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title i {
    margin-right: 0.5rem;
}

.modal-body h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #0066CC;
    padding-bottom: 0.25rem;
}

.modal-body .row > div {
    margin-bottom: 0.5rem;
}

.modal-body .img-thumbnail {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-body .img-thumbnail:hover {
    transform: scale(1.2);
    z-index: 1055;
    position: relative;
}

.modal-body .badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

.modal-footer {
    border-top: 0;
    justify-content: space-between;
}

.modal-footer .btn i {
    margin-right: 0.25rem;
    vertical-align: middle;
}

.modal-dialog-scrollable .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    .modal-body .row > div {
        margin-bottom: 0.75rem;
    }
}

/* =========================
   Branded Bootstrap Modals
   ========================= */
/* Remove modal backdrop */
.modal-backdrop {
  display: none !important;
  background: none !important;
}

/* Optional: prevent body from shifting (Bootstrap normally adds padding) */
body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* =========================
   Notification Banner
========================= */
.notification-banner {
  background-color: #d1ecf1;       
  color: #0c5460;                  
  border-bottom: 3px solid #0bc9ff; 
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;          
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 5px 5px;
  font-size: 0.875rem;
  animation: slideDown 0.5s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-height: 220px;               
  overflow-y: auto;                
  z-index: 1010;
}

/* Scrollbar styling */
.notification-banner::-webkit-scrollbar {
  width: 6px;
}

.notification-banner::-webkit-scrollbar-thumb {
  background: #0bc9ff;
  border-radius: 3px;
}

.notification-banner::-webkit-scrollbar-track {
  background: #d1ecf1;
}

/* Individual notification item */
.notification-item {
  display: flex;
  flex-wrap: nowrap;               /* Keep row layout */
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 201, 255, 0.1);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  transition: background 0.2s;
}

.notification-item:hover {
  background: rgba(11, 201, 255, 0.2);
}

/* Notification text */
.notification-item .text {
  flex: 1 1 auto;                  /* Shrink text if needed */
  margin-right: 0.5rem;
  font-size: 0.85rem;
  word-wrap: break-word;            
  white-space: nowrap;              /* Single line */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons inside each notification */
.notification-item .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  margin-left: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;                  /* Prevent shrinking */
}

/* Close icon styling */
.btn-close-custom {
  background: none;
  border: none;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-close-custom i {
  font-size: 1rem;
  color: #0c5460;
}

/* See More button styling */
.notification-item .btn .btn-outline-brand {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Slide-down animation */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .notification-item {
    flex-wrap: nowrap;               /* Keep text and buttons in one row */
  }

  .notification-item .text {
    max-width: 65%;                  /* Shrink text to make room for buttons */
    font-size: 0.8rem;
  }

  .notification-item .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.35rem;
  }

  .btn-close-custom i {
    font-size: 0.9rem;
  }
}


 .notif-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 3rem auto;
    max-width: 900px;
    transition: transform 0.3s;
  }

  .notif-card:hover {
    transform: translateY(-3px);
  }

  .notif-header {
    border-bottom: 3px solid #0066CC;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .notif-header h3 {
    color: #0066CC;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
  }

  .notif-meta {
    font-size: 0.875rem;
    color: #6c757d;
  }

  .lang-block {
    margin-top: 1.5rem;
    padding: 1.2rem 1rem;
    border-radius: 0.75rem;
    background: #f1f3f6;
  }

  .lang-block h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .btn-attachment {
    margin-top: 1rem;
  }

  @media (max-width: 576px) {
    .notif-card {
      padding: 1rem;
      margin: 2rem 1rem;
    }
  }
  
 .receipt-link {
  color: #0056b3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.receipt-link:hover {
  color: #003d80;
  text-decoration: underline;
}
