@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@300;400;500;600;700;800&family=Noto+Serif+Malayalam:wght@400;600;700&display=swap');

:root {
  --teal: #1a8a8a;
  --teal-dark: #136969;
  --teal-light: #e8f7f7;
  --maroon: #8b1a5e;
  --maroon-dark: #6b1348;
  --maroon-light: #f8eaf4;
  --gold: #d4a843;
  --gold-light: #fdf6e3;
  --white: #ffffff;
  --off-white: #f9fafb;
  --gray-light: #f0f4f4;
  --gray: #6b7280;
  --gray-dark: #374151;
  --text: #1f2937;
  --shadow-sm: 0 2px 8px rgba(26,138,138,0.10);
  --shadow-md: 0 8px 32px rgba(26,138,138,0.13);
  --shadow-lg: 0 20px 60px rgba(26,138,138,0.16);
  --radius: 16px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans Malayalam', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif Malayalam', serif;
  line-height: 1.4;
}

/* ── TOPBAR ── */
.topbar {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.topbar a:hover { color: var(--gold); }

/* ── NAVBAR ── */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand img { height: 60px; }
.navbar-brand span {
  font-family: 'Noto Serif Malayalam', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-dark);
  line-height: 1.3;
}
.navbar-brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--maroon);
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-weight: 500;
}
.nav-link {
  font-weight: 500;
  color: var(--gray-dark) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  font-size: 0.92rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--teal-dark) !important;
  background: var(--teal-light);
}
.navbar .btn-donate {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: white !important;
  padding: 9px 22px !important;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(139,26,94,0.3);
  transition: all 0.3s;
}
.navbar .btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,26,94,0.4);
  background: var(--maroon) !important;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0d5f5f 0%, #1a8a8a 40%, #156b6b 70%, #8b1a5e 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero p.lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 580px;
}
.hero .reg-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}
.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-circle {
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: float 6s ease-in-out infinite;
}
.hero-logo-circle img { width: 220px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2)); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ── STAT CARDS ── */
.stat-strip {
  background: var(--white);
  padding: 50px 0;
}
.stat-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--teal);
  transition: all 0.3s;
  height: 100%;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-card.maroon { border-top-color: var(--maroon); }
.stat-card.gold { border-top-color: var(--gold); }
.stat-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.stat-icon.teal { background: var(--teal-light); color: var(--teal-dark); }
.stat-icon.maroon { background: var(--maroon-light); color: var(--maroon); }
.stat-icon.gold { background: var(--gold-light); color: #a07820; }
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: 'Noto Serif Malayalam', serif;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num.maroon { color: var(--maroon); }
.stat-num.gold { color: #a07820; }
.stat-label { color: var(--gray); font-size: 0.92rem; font-weight: 500; }

/* ── SECTION COMMON ── */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-light); }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title.maroon { color: var(--maroon); }
.section-subtitle { color: var(--gray); font-size: 1.05rem; max-width: 600px; }
.title-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--maroon));
  border-radius: 2px;
  margin: 14px 0 36px;
}
.title-line.center { margin: 14px auto 36px; }

/* ── MISSION CARDS ── */
.mission-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--teal);
  height: 100%;
  transition: all 0.3s;
}
.mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.mission-card.maroon { border-left-color: var(--maroon); }
.mission-card h4 { color: var(--teal-dark); font-size: 1.15rem; margin-bottom: 10px; }
.mission-card.maroon h4 { color: var(--maroon); }

/* ── PROJECT CARDS ── */
.project-card {
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.project-card-img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--teal-light), #d0efef);
}
.project-card-img.maroon { background: linear-gradient(135deg, var(--maroon-light), #f0d4e8); }
.project-card-img.gold { background: linear-gradient(135deg, var(--gold-light), #f5e8c0); }
.project-card-body { padding: 24px; }
.project-card-body h5 { color: var(--teal-dark); font-size: 1.1rem; margin-bottom: 10px; }
.project-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.project-badge.maroon { background: var(--maroon-light); color: var(--maroon); }
.project-badge.gold { background: var(--gold-light); color: #a07820; }

/* ── MEMBER CARDS ── */
.member-card {
  text-align: center;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 36px 24px 28px;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.member-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--maroon));
}
.member-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.member-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 4px solid var(--teal-light);
  box-shadow: 0 4px 16px rgba(26,138,138,0.15);
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--teal);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-role {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), var(--maroon));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.member-name { font-size: 1.1rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.member-detail { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ── REQUEST FORM ── */
.form-section { background: linear-gradient(135deg, var(--teal-light) 0%, var(--maroon-light) 100%); }
.request-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
}
.form-label { font-weight: 600; color: var(--teal-dark); font-size: 0.9rem; margin-bottom: 6px; }
.form-control, .form-select {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 0.92rem;
  transition: all 0.25s;
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,138,138,0.12);
  outline: none;
}
.form-text { font-size: 0.8rem; color: var(--gray); }

/* ── BUTTONS ── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  border: none;
  padding: 13px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Noto Sans Malayalam', sans-serif;
  box-shadow: 0 6px 20px rgba(26,138,138,0.35);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26,138,138,0.4);
  color: white;
}
.btn-maroon-custom {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: white;
  border: none;
  padding: 13px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Noto Sans Malayalam', sans-serif;
  box-shadow: 0 6px 20px rgba(139,26,94,0.35);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-maroon-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139,26,94,0.4);
  color: white;
}
.btn-outline-teal {
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  padding: 11px 34px;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.btn-outline-teal:hover { background: var(--teal); color: white; }

/* ── QUOTE SECTION ── */
.quote-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0d5f5f 50%, var(--maroon-dark) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  font-size: 20rem;
  color: rgba(255,255,255,0.04);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.quote-text {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: white;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.7;
  position: relative;
}
.quote-author { color: var(--gold); font-weight: 500; font-size: 0.95rem; }

/* ── CONTACT ── */
.contact-info-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: linear-gradient(135deg, #0a3d3d 0%, #0d5252 60%, #3d0a26 100%);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}
.footer h5 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer p, .footer li { font-size: 0.88rem; line-height: 2; color: rgba(255,255,255,0.75); }
.footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  text-decoration: none;
  margin-right: 8px;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.social-btn:hover { background: var(--gold); color: #333; transform: translateY(-3px); }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--maroon) 100%);
  padding: 70px 0 50px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--gray-light);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.page-header p { color: rgba(255,255,255,0.85); }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--gold); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── ALERTS ── */
.alert-success-custom {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: var(--radius-sm);
  color: #166534;
  padding: 16px 20px;
}
.alert-error-custom {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: var(--radius-sm);
  color: #991b1b;
  padding: 16px 20px;
}

/* ── UTILS ── */
.gap-16 { gap: 16px; }
img { max-width: 100%; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 80px 0 100px; }
  .hero-logo-circle { width: 220px; height: 220px; margin-top: 40px; }
  .hero-logo-circle img { width: 150px; }
  .request-card { padding: 28px 20px; }
  .stat-num { font-size: 2rem; }
}
