/* =========================================================
   ভরসা সোশ্যাল ফাউন্ডেশন — Website Styles
   ========================================================= */

:root {
  --brand-green: #0f7a3d;
  --brand-green-dark: #0a5c2d;
  --brand-green-darker: #073d1e;
  --brand-gold: #d4a017;
  --brand-gold-light: #f2c94c;
  --accent-blue: #1f6fb2;
  --accent-blue-dark: #185683;
  --accent-red: #c0392b;
  --accent-red-dark: #992d22;
  --text-dark: #1c2b22;
  --text-muted: #5c6b62;
  --bg-soft: #f4f9f5;
  --border-soft: #e3ece6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(10, 60, 30, 0.08);
  --font-bangla: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-bangla);
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .2s ease; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-bangla); font-weight: 700; color: var(--text-dark); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--brand-green-darker);
  color: #dfeee3;
  font-size: 0.88rem;
  padding: 7px 0;
}
.topbar a { color: #dfeee3; }
.topbar i { color: var(--brand-gold-light); margin-left: 2px; }
.topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  margin-inline-start: 6px;
  font-size: 0.78rem;
}
.topbar .social-links a:hover { background: var(--brand-gold); color: #1c2b22; }

/* ---------- Main nav ---------- */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  padding: 10px 0;
  z-index: 1030;
}
.brand-logo { height: 52px; width: 52px; margin-inline-end: 12px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--brand-green-dark); }
.brand-tagline { font-size: 0.78rem; color: var(--text-muted); }

.main-nav .nav-link {
  font-weight: 600;
  color: var(--text-dark);
  padding: 10px 14px !important;
  border-radius: 8px;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand-green-dark); }
.main-nav .btn-contact-nav {
  background: var(--brand-green);
  color: #fff !important;
  border-radius: 30px;
  padding: 8px 22px !important;
  margin-inline-start: 6px;
}
.main-nav .btn-contact-nav:hover { background: var(--brand-green-dark); }
.dropdown-menu { border-radius: var(--radius-md); border: none; box-shadow: var(--shadow-soft); }
.dropdown-item:hover { background: var(--bg-soft); color: var(--brand-green-dark); }

/* ---------- Notice ticker ---------- */
.notice-ticker {
  background: var(--brand-gold);
  color: #1c2b22;
  font-size: 0.92rem;
  overflow: hidden;
}
.ticker-label {
  font-weight: 700;
  background: var(--brand-green-dark);
  color: #fff;
  padding: 8px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-inline-end: 14px;
}
.ticker-wrap { overflow: hidden; width: 100%; flex: 1 1 0; min-width: 0; }
.ticker-move {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  padding: 8px 0;
}
.ticker-move a { font-weight: 600; }
.ticker-move a:hover { text-decoration: underline; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero-section { position: relative; overflow: hidden; }
.hero-slide {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(125deg, var(--brand-green-darker) 0%, var(--accent-blue-dark) 48%, var(--brand-green) 100%);
  background-size: cover;
  background-position: center;
}
/* alternate the gradient direction/emphasis on every other slide for variety */
.carousel-item:nth-child(even) .hero-slide {
  background: linear-gradient(125deg, var(--accent-blue-dark) 0%, var(--brand-green-dark) 52%, var(--accent-blue) 100%);
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/pattern.svg');
  background-size: 100px;
  opacity: 0.5;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.25), rgba(0,0,0,0.05));
}
.hero-bg-img ~ .hero-overlay {
  background: linear-gradient(120deg, rgba(7,61,30,0.82), rgba(15,122,61,0.55));
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.hero-blob-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--brand-gold-light), transparent 70%);
  top: -120px; inset-inline-end: -80px;
}
.hero-blob-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #ffffff, transparent 70%);
  bottom: -100px; inset-inline-end: 12%;
  opacity: 0.12;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
}
.hero-text { max-width: 640px; min-width: 0; color: #fff; }
.hero-content h1 { color: #fff; font-size: 2.6rem; margin-bottom: 16px; }
.hero-content p { font-size: 1.15rem; color: #e6f3ea; margin-bottom: 28px; }
.hero-slide-default { min-height: 480px; }

.hero-logo-badge {
  flex-shrink: 0;
  width: 190px; height: 190px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  border: 4px solid rgba(255,255,255,0.5);
}
.hero-logo-badge img { width: 100%; height: 100%; object-fit: contain; }

.btn-hero {
  background: var(--brand-gold);
  color: #1c2b22 !important;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.35);
}
.btn-hero:hover { background: var(--brand-gold-light); transform: translateY(-2px); }

.carousel-control-prev, .carousel-control-next { width: 5%; }

/* ---------- Quick info strip ---------- */
.quick-info-strip {
  background: var(--brand-green-dark);
  color: #fff;
  padding: 26px 0;
  margin-top: -1px;
}
.quick-info-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }
.quick-info-item i { font-size: 2rem; color: var(--brand-gold-light); }
.quick-info-item i.icon-blue { color: #7bb8ec; }
.quick-info-item i.icon-red { color: #ec8a7f; }
.quick-info-item i.icon-green { color: #7fd9a3; }
.quick-info-item .counter { font-size: 1.5rem; font-weight: 700; display: block; }
.quick-info-item small { color: #cfe4d6; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.bg-soft { background: var(--bg-soft); }
.section-tag {
  display: inline-block;
  color: var(--brand-green);
  font-weight: 700;
  background: rgba(15,122,61,0.1);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.section-title { font-size: 1.9rem; margin-bottom: 18px; }
.section-text { color: var(--text-muted); font-size: 1.02rem; line-height: 1.85; margin-bottom: 20px; }

.check-list { list-style: none; padding: 0; margin-bottom: 26px; }
.check-list li { padding: 6px 0; color: var(--text-dark); }
.check-list i { color: var(--brand-green); margin-inline-end: 10px; }

.btn-primary-outline {
  border: 2px solid var(--brand-green);
  color: var(--brand-green-dark) !important;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 30px;
  display: inline-block;
}
.btn-primary-outline:hover { background: var(--brand-green); color: #fff !important; }
.btn-primary-solid {
  background: var(--brand-green);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-block;
  border: none;
}
.btn-primary-solid:hover { background: var(--brand-green-dark); }

/* ---------- Chairman card ---------- */
.chairman-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  border-top: 5px solid var(--brand-gold);
}
.chairman-photo { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 4px solid var(--bg-soft); }
.chairman-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-icon { color: var(--brand-gold); font-size: 1.4rem; margin-bottom: 10px; }
.chairman-message { color: var(--text-muted); font-style: italic; margin-bottom: 14px; }
.chairman-name { margin-bottom: 2px; }
.chairman-designation { color: var(--brand-green); font-weight: 600; font-size: 0.9rem; }

.chairman-full-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 30px;
}
.chairman-full-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-soft); }
.chairman-message-full { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; }

/* ---------- Mission/Vision ---------- */
.mv-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.mv-icon {
  width: 60px; height: 60px;
  background: var(--bg-soft);
  color: var(--brand-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.mv-card p { color: var(--text-muted); line-height: 1.8; }

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.service-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #fff;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}
.service-icon.icon-blue { background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark)); }
.service-icon.icon-red { background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark)); }
.service-icon.icon-gold { background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold)); }
.service-card h5 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.rate-badge {
  display: inline-block;
  background: rgba(212,160,23,0.12);
  color: #8a6a10;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 20px;
}

.service-card-full {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  gap: 22px;
  height: 100%;
  transition: box-shadow .2s ease;
}
.service-card-full:hover { box-shadow: var(--shadow-soft); }
.service-card-full .service-icon { flex-shrink: 0; margin: 0; }
.service-card-full p { color: var(--text-muted); }

/* ---------- Notices widget ---------- */
.notice-list-widget { display: flex; flex-direction: column; gap: 14px; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.notice-item:hover { transform: translateX(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.notice-item.cat-notice { border-inline-start: 4px solid var(--accent-blue); }
.notice-item.cat-circular { border-inline-start: 4px solid var(--brand-green); }
.notice-item.cat-news { border-inline-start: 4px solid var(--brand-gold); }
.notice-item.cat-agm { border-inline-start: 4px solid var(--accent-red); }
.notice-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 8px 0;
  color: var(--brand-green-dark);
}
.notice-date .day { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.notice-date .month { font-size: 0.78rem; text-transform: uppercase; }
.notice-body { flex-grow: 1; }
.notice-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  background: rgba(15,122,61,0.1);
  padding: 3px 12px;
  border-radius: 20px;
}
.notice-category.cat-notice { color: var(--accent-blue); background: rgba(31,111,178,0.1); }
.notice-category.cat-circular { color: var(--brand-green); background: rgba(15,122,61,0.1); }
.notice-category.cat-news { color: #ab7d0e; background: rgba(212,160,23,0.14); }
.notice-category.cat-agm { color: var(--accent-red); background: rgba(192,57,43,0.1); }
.notice-body h6 { margin: 4px 0 0; }
.notice-body p { color: var(--text-muted); margin: 4px 0 0; font-size: 0.9rem; }
.notice-arrow { color: var(--brand-gold); font-size: 1.1rem; flex-shrink: 0; }

.notice-filter { margin-bottom: 10px; }
.filter-chip {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.9rem;
}
.filter-chip:hover, .filter-chip.active { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }

.notice-detail-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.notice-body-text { color: var(--text-muted); line-height: 1.9; margin-top: 14px; }

/* ---------- Committee mini/full cards ---------- */
.committee-mini-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  height: 100%;
}
.committee-mini-photo { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; }
.committee-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.committee-mini-card h6 { margin-bottom: 2px; font-size: 0.95rem; }
.committee-mini-card span { color: var(--text-muted); font-size: 0.8rem; }

.committee-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 16px;
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.committee-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.committee-photo { width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 4px solid var(--bg-soft); }
.committee-photo img { width: 100%; height: 100%; object-fit: cover; }
.committee-card h5 { margin-bottom: 4px; font-size: 1.05rem; }
.committee-card .designation { color: var(--brand-green); font-weight: 600; font-size: 0.88rem; }
.committee-card .bio { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; }
.committee-card .contact-line { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; margin-bottom: 0; }

.period-tabs .nav-link {
  border-radius: 30px;
  padding: 10px 22px;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--border-soft);
  margin: 4px;
}
.period-tabs .nav-link.active { background: var(--brand-green); color: #fff; }
.current-badge { background: var(--brand-gold); color: #1c2b22; font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; margin-inline-start: 6px; }

/* ---------- Gallery ---------- */
.gallery-thumb { display: block; position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: #fff; font-size: 0.82rem; padding: 20px 10px 8px; text-align: center;
}
.album-block h4 { color: var(--brand-green-dark); }

/* ---------- Downloads ---------- */
.download-list { display: flex; flex-direction: column; gap: 14px; }
.download-item {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 16px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.download-item:hover { box-shadow: var(--shadow-soft); transform: translateX(-4px); }
.download-icon { font-size: 1.8rem; color: #c0392b; flex-shrink: 0; }
.download-body { flex-grow: 1; }
.download-body h6 { margin-bottom: 2px; }
.download-body p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.download-arrow { color: var(--brand-green); }

/* ---------- Contact ---------- */
.contact-info-card {
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 30px; text-align: center; height: 100%;
}
.contact-info-icon {
  width: 60px; height: 60px; margin: 0 auto 14px;
  background: var(--bg-soft); color: var(--brand-green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.contact-info-card p { color: var(--text-muted); margin-bottom: 0; }
.contact-form .form-control {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-bangla);
}
.contact-form .form-control:focus { border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(15,122,61,0.12); }
.office-hours-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.office-hours-card p { margin-bottom: 12px; color: var(--text-dark); }
.office-hours-card i { color: var(--brand-green); margin-inline-end: 8px; width: 18px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--brand-green-darker), var(--brand-green-dark));
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/pattern.svg');
  background-size: 100px;
  opacity: 0.5;
}
.page-header h1 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; position: relative; z-index: 1; }
.page-header .breadcrumb { position: relative; z-index: 1; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: #cfe4d6; }
.page-header .breadcrumb-item.active { color: #fff; font-weight: 600; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: #cfe4d6; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(120deg, var(--brand-green-dark), var(--brand-green));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: #dff0e4; max-width: 600px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-green-darker); color: #cfe4d6; }
.footer-main { padding: 60px 0 30px; }
.footer-logo { height: 44px; margin-inline-end: 12px; }
.footer-brand-name { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-about { font-size: 0.9rem; line-height: 1.8; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-contact li i { color: var(--brand-gold-light); margin-inline-end: 8px; width: 16px; }
.footer-links a:hover { color: var(--brand-gold-light); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border-radius: 50%; margin-inline-end: 8px;
}
.footer-social a:hover { background: var(--brand-gold); color: #1c2b22; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.85rem;
}
.dev-credit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: #9fc4aa;
}
.dev-credit a { color: var(--brand-gold-light); font-weight: 600; }
.dev-credit a:hover { text-decoration: underline; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px;
  width: 46px; height: 46px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-green-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
  .main-nav .btn-contact-nav { display: inline-block; margin-top: 8px; }
  .quick-info-item { flex-direction: column; gap: 4px; text-align: center; }
  .hero-content { flex-direction: column; text-align: center; gap: 26px; }
  .hero-text { max-width: 100%; width: 100%; min-width: 0; }
  .hero-logo-badge { width: 130px; height: 130px; padding: 14px; }
}
