:root {
  --primary: #7c1d4a;
  --primary-dark: #56142f;
  --primary-light: #a83464;
  --accent: #e3a72f;
  --dark: #1c1c26;
  --text-muted: #6b6b76;
  --light-bg: #faf6f8;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--dark);
  background: #fff;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
}

a { text-decoration: none; }

.section-py { padding: 80px 0; }
@media (max-width: 767px) { .section-py { padding: 48px 0; } }

.section-tag {
  display: inline-block;
  color: var(--primary);
  background: rgba(124, 29, 74, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title { font-size: 2.1rem; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); max-width: 680px; }

.bg-light-rose { background: var(--light-bg); }

/* Buttons */
.btn-brand {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all .2s ease;
}
.btn-brand:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); }

.btn-outline-brand {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  transition: all .2s ease;
}
.btn-outline-brand:hover { background: var(--primary); color: #fff; }

.btn-donate {
  background: var(--accent);
  color: var(--dark) !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 22px;
  transition: all .2s ease;
}
.btn-donate:hover { background: #cf9524; color: #fff !important; transform: translateY(-1px); }

/* Topbar */
.topbar { background: var(--dark); color: #d9d9e0; font-size: 0.85rem; }
.topbar a { color: #d9d9e0; margin-right: 18px; }
.topbar a:last-child { margin-right: 0; }
.topbar a:hover { color: var(--accent); }
.topbar-social a { margin-left: 14px; margin-right: 0; font-size: 0.95rem; }

/* Navbar */
.site-navbar { background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,0.06); padding: 14px 0; z-index: 1030; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--primary) !important; }
.brand-mark { display: inline-flex; align-items:center; justify-content:center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; }
.navbar-nav .nav-link { font-weight: 600; color: var(--dark); padding: 8px 16px !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }

/* Hero */
.hero-carousel { position: relative; }
.hero-slide {
  height: 620px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,28,38,0.78) 10%, rgba(28,28,38,0.35) 60%, rgba(28,28,38,0.1) 100%);
}
.hero-slide-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-slide-content .subtitle { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display:block; }
.hero-slide-content h1 { font-size: 2.9rem; margin-bottom: 18px; line-height: 1.15; }
.hero-slide-content p { font-size: 1.05rem; opacity: .92; margin-bottom: 28px; }
@media (max-width: 767px) {
  .hero-slide { height: 480px; }
  .hero-slide-content h1 { font-size: 1.9rem; }
}
.hero-carousel .carousel-indicators { margin-bottom: 24px; }
.hero-carousel .carousel-indicators [data-bs-target] { background-color: var(--accent); width: 34px; height: 4px; border-radius: 2px; }

/* Stats */
.stats-section { background: var(--primary); color: #fff; position: relative; }
.stat-box { text-align: center; padding: 20px 10px; }
.stat-box i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; display: block; }
.stat-number { font-size: 2.4rem; font-weight: 800; font-family: 'Poppins', sans-serif; }
.stat-label { opacity: .9; font-size: .95rem; }

/* About */
.about-image-wrap { position: relative; }
.about-image-wrap img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--accent); color: var(--dark);
  padding: 18px 22px; border-radius: var(--radius);
  font-weight: 800; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
@media (max-width: 991px) { .about-badge { position: static; margin-top: 16px; display: inline-block; } }

/* Program cards */
.program-card {
  background: #fff; border-radius: var(--radius); padding: 32px 26px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06); height: 100%;
  transition: transform .2s ease, box-shadow .2s ease; border: 1px solid #f1e6ec;
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(124,29,74,0.14); }
.program-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: rgba(124,29,74,0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px;
}
.program-card h5 { margin-bottom: 10px; }
.program-card p { color: var(--text-muted); font-size: .95rem; }
.program-card .stretched-link-wrap a { font-weight: 600; color: var(--primary); }

/* Program detail image */
.program-banner, .news-banner, .page-banner {
  height: 340px; background-size: cover; background-position: center; position: relative; display:flex; align-items:flex-end;
}
.program-banner::after, .news-banner::after, .page-banner::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(28,28,38,0.1), rgba(28,28,38,0.75)); }
.program-banner .container, .news-banner .container, .page-banner .container { position: relative; z-index: 2; color: #fff; padding-bottom: 34px; }

/* News cards */
.news-card { background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.06); height: 100%; border: 1px solid #f1e6ec; }
.news-card img { width:100%; height: 210px; object-fit: cover; }
.news-card-body { padding: 22px; }
.news-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.news-meta .badge-cat { background: rgba(124,29,74,0.08); color: var(--primary); font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-right: 8px; }
.news-card h5 a { color: var(--dark); }
.news-card h5 a:hover { color: var(--primary); }

/* Team */
.team-card { text-align:center; }
.team-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: #eee; }
.team-card h5 { margin-bottom: 2px; }
.team-card .designation { color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }

/* Gallery */
.gallery-filters { margin-bottom: 30px; }
.gallery-filters button { border: none; background: #f2e9ee; color: var(--dark); padding: 8px 20px; border-radius: 30px; font-weight: 600; margin: 0 6px 10px 0; font-size: .88rem; }
.gallery-filters button.active, .gallery-filters button:hover { background: var(--primary); color: #fff; }
.gallery-item { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay { position:absolute; inset:0; background: rgba(28,28,38,0.35); opacity:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.6rem; transition: opacity .2s ease; }
.gallery-item:hover .overlay { opacity: 1; }

/* CTA */
.cta-section { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color:#fff; border-radius: var(--radius); padding: 56px 40px; }
@media (max-width: 767px) { .cta-section { padding: 36px 22px; text-align:center; } }

/* Contact */
.contact-info-card { background: var(--light-bg); border-radius: var(--radius); padding: 30px; height:100%; }
.contact-info-card .icon-box { width:50px; height:50px; border-radius:12px; background: var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.2rem; margin-bottom:14px; }
.form-control, .form-select { border-radius: 10px; padding: 12px 16px; border: 1px solid #e4d9df; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(124,29,74,0.12); }

/* Footer */
.site-footer { background: var(--dark); color: #c7c7d1; }
.footer-brand { color: #fff; font-family:'Poppins',sans-serif; font-weight: 800; margin-bottom: 14px; }
.footer-about { font-size: .92rem; line-height: 1.7; }
.footer-heading { color: #fff; margin-bottom: 18px; font-weight: 700; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c7c7d1; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { list-style:none; padding:0; margin:0; }
.footer-contact li { margin-bottom: 12px; font-size: .92rem; }
.footer-contact i { color: var(--accent); margin-right: 10px; }
.footer-social a { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,0.08); color:#fff; margin-right:8px; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); font-size: .85rem; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items:center; justify-content:center; opacity: 0; visibility: hidden;
  transition: all .25s ease; z-index: 1050;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); color:#fff; }

/* Pagination */
.pagination .page-link { color: var(--primary); border-radius: 8px !important; margin: 0 3px; border: 1px solid #eadfe4; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Breadcrumb page banner */
.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav span { color: #fff; opacity: .8; }

/* Generic content typography (rich text from CMS) */
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-content p { line-height: 1.8; color: #38383f; }
