:root {
  --blue: #17458F;
  --blue-light: #1A5DB5;
  --gold: #F7A800;
  --gold-dark: #d4900a;
  --bg: #F4F6FB;
  --text: #1A1A2E;
  --text-light: #5a6a85;
  --white: #ffffff;
  --card-shadow: 0 4px 20px rgba(23, 69, 143, 0.10);
  --card-shadow-hover: 0 8px 32px rgba(23, 69, 143, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.nav-logo-text {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 0.45rem 1.1rem !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 60%, #1e6fc7 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' 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='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(247,168,0,0.2);
  border: 1px solid rgba(247,168,0,0.5);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero h1 span { color: var(--gold); }

.hero-location {
  font-size: 1.05rem;
  opacity: 0.82;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-gold {
  background: var(--gold);
  color: var(--text);
}

.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover { background: var(--blue-light); transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }

/* ─── SECTIONS ─── */
section { padding: 4rem 1.5rem; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── CARDS ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.25s;
  border: 1px solid rgba(23,69,143,0.06);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── STATS BANNER ─── */
.stats-banner {
  background: var(--blue);
  color: white;
  padding: 3rem 1.5rem;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* ─── CALENDAR ─── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 0.4rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  width: fit-content;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--blue);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: var(--bg);
  color: var(--text);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: capitalize;
}

.cal-nav-btn {
  background: white;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-nav-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }

.cal-grid {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--blue);
  color: white;
}

.cal-day-label {
  text-align: center;
  padding: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #f0f0f0;
}

.cal-cell {
  min-height: 70px;
  padding: 0.4rem;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.82rem;
}

.cal-cell:nth-child(7n) { border-right: none; }

.cal-cell.other-month { opacity: 0.35; }

.cal-date {
  font-weight: 600;
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 2px;
}

.cal-cell.today .cal-date {
  background: var(--blue);
  color: white;
}

.cal-event {
  background: var(--blue);
  color: white;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

.cal-event.gold { background: var(--gold); color: var(--text); }
.cal-event.green { background: #2e7d32; }

.event-list { display: flex; flex-direction: column; gap: 1rem; }

.event-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border-left: 4px solid var(--blue);
  transition: box-shadow 0.2s;
}

.event-card:hover { box-shadow: var(--card-shadow-hover); }
.event-card.gold { border-left-color: var(--gold); }
.event-card.green { border-left-color: #2e7d32; }

.event-date-badge {
  background: var(--blue);
  color: white;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}

.event-card.gold .event-date-badge { background: var(--gold); color: var(--text); }
.event-card.green .event-date-badge { background: #2e7d32; }

.event-date-badge .day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.event-info h4 { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.event-info p { color: var(--text-light); font-size: 0.875rem; }
.event-info .event-location { font-size: 0.82rem; color: var(--blue); margin-top: 0.25rem; }

/* ─── ACTIONS PAGE ─── */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.action-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.25s;
}

.action-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.action-card-header {
  background: var(--blue);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-card-header .emoji { font-size: 2rem; }
.action-card-header h3 { font-size: 1.05rem; font-weight: 700; }

.action-card-body { padding: 1.5rem; }
.action-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.65; }

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(23,69,143,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.info-item p { font-size: 0.9rem; }

.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid #dde3ee;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: #fafbfd;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.char-count {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--blue-light); transform: translateY(-1px); }

.form-success, .form-error {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-error { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ─── DONATION ─── */
.amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-btn {
  background: white;
  border: 2px solid #dde3ee;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  text-decoration: none;
  display: block;
}

.amount-btn:hover, .amount-btn.selected {
  border-color: var(--blue);
  background: rgba(23,69,143,0.05);
}

.amount-btn .amount { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.amount-btn .label { font-size: 0.8rem; color: var(--text-light); }

/* ─── CHATBOT ─── */
.chatbot-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  background: white;
}

/* ─── FOOTER ─── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.875rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-logo-text {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* ─── ABOUT SECTION ─── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}

.about-img img { width: 100%; display: block; }

.about-img-placeholder {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 5rem;
}

/* ─── JOIN PAGE ─── */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.profile-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.profile-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-list li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.5s ease forwards; }
.fade-in-2 { animation: fadeInUp 0.5s 0.1s ease forwards; opacity: 0; }
.fade-in-3 { animation: fadeInUp 0.5s 0.2s ease forwards; opacity: 0; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--blue); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .burger { display: flex; }

  .hero { padding: 3rem 1.25rem; }
  .about-layout, .contact-layout, .join-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .amounts-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .amounts-grid { grid-template-columns: repeat(2, 1fr); }
}
