/* ============================================
   anaj-rahat.css
   Page-specific styles for Anaj Rahat Fund page
   Requires: style.css (site-wide styles)
   Colour scheme: Golden amber — warmth of food & nourishment
   ============================================ */

:root {
  --primary: #b8860b;
  --primary-dark: #8b6508;
  --primary-light: #f0c040;
  --bg: #fffdf4;
  --card-bg: #ffffff;
  --text: #333333;
  --muted: #666666;
  --border: #e8d48a;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 40px;
  font-size: 0.88rem;
  color: var(--muted);
  background: #fffbe8;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ===== HERO BANNER ===== */
.dept-hero {
  background: linear-gradient(135deg, #8b6508 0%, #c8940e 50%, #e8b830 100%);
  padding: 55px 40px 45px;
  position: relative;
  overflow: hidden;
}
.dept-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.dept-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.dept-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.dept-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.dept-hero h1 { font-size: 2.4rem; color: #fff; margin-bottom: 10px; }
.dept-hero p  { font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 650px; }

.dept-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.stat-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 22px;
  border-radius: 14px;
  color: #fff;
  text-align: center;
  min-width: 110px;
}
.stat-box strong { display: block; font-size: 1.6rem; font-weight: 700; }
.stat-box span   { font-size: 0.8rem; opacity: 0.85; }

/* ===== FEATURED HIGHLIGHT CARD ===== */
.highlight-section { padding: 40px 40px 0; max-width: 1100px; margin: 0 auto; }
.highlight-card {
  background: #fff;
  border-radius: 20px;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 28px rgba(184,134,11,0.13);
  padding: 30px 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}
.highlight-card::before {
  content: '★ FEATURED';
  position: absolute;
  top: 16px; right: -32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 44px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}
.highlight-icon {
  width: 64px; height: 64px; min-width: 64px;
  background: linear-gradient(135deg, #b8860b, #f0c040);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.highlight-body h3    { font-size: 1.3rem; color: var(--primary); margin-bottom: 6px; }
.highlight-body p     { color: #555; font-size: 0.97rem; margin-bottom: 14px; }
.highlight-meta       { display: flex; flex-wrap: wrap; gap: 16px; }
.meta-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fffbe8;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.83rem;
  color: #555;
}
.meta-chip .icon { font-size: 0.95rem; }
.amount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #b8860b, #e8b830);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 25px;
  margin-bottom: 12px;
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #555;
  font-size: 0.87rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 500;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== SEARCH BAR ===== */
.search-wrap { position: relative; margin-bottom: 24px; }
.search-wrap input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border-radius: 30px;
  border: 1.8px solid var(--border);
  font-size: 0.97rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  background: #fff;
  transition: 0.3s;
  color: var(--text);
}
.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #aaa;
}
.no-results {
  display: none;
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== ACTIVITY CARDS ===== */
.activity-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1.5px solid #edd98a;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.card-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5edb0, #fffbe8);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.activity-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #c8940e;
  font-size: 2.4rem;
}
.card-img-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #c8940e;
  opacity: 0.7;
}

.card-body { padding: 20px 24px 22px; }
.card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.card-title  { font-size: 1.08rem; color: var(--text); font-weight: 600; }
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-upcoming  { background: #fffbe8; color: #b8860b; border: 1px solid #e8d48a; }
.status-completed { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.status-ongoing   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

.card-desc { font-size: 0.93rem; color: #555; margin-bottom: 16px; line-height: 1.6; }

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.card-meta-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.84rem; color: #555;
}
.card-meta-item .mi    { font-size: 1rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.card-meta-item strong { display: block; font-size: 0.74rem; color: #999; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }

.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e8d48a;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.impact-tag {
  font-size: 0.82rem;
  background: #fffbe8;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-weight: 500;
}
.detail-btn {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: 0.2s;
}
.detail-btn:hover { color: var(--primary-dark); gap: 8px; }

/* ===== YEAR DIVIDER ===== */
.year-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 32px 0 20px;
}
.year-divider span {
  font-size: 1rem; font-weight: 700;
  color: var(--primary); white-space: nowrap;
}
.year-divider::before {
  content: ''; flex: 1; height: 1.5px;
  background: linear-gradient(to left, var(--border), transparent);
}
.year-divider::after {
  content: ''; flex: 1; height: 1.5px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 1rem; color: var(--primary);
  margin-bottom: 18px; font-weight: 600;
}

.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cal-header span { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.cal-nav {
  background: none; border: 1.5px solid var(--border);
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; color: var(--primary); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.cal-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px; text-align: center;
}
.cal-day-name { font-size: 0.7rem; color: #aaa; padding: 4px 0; font-weight: 600; }
.cal-day {
  font-size: 0.8rem; padding: 6px 4px;
  border-radius: 8px; cursor: pointer;
  transition: 0.2s; color: #555;
}
.cal-day:hover     { background: #fffbe8; color: var(--primary); }
.cal-day.today     { background: var(--primary); color: #fff; font-weight: 600; }
.cal-day.has-event { color: var(--primary); font-weight: 600; }
.cal-day.has-event::after {
  content: ''; display: block;
  width: 5px; height: 5px;
  background: var(--primary-light);
  border-radius: 50%; margin: 2px auto 0;
}
.cal-day.empty { color: transparent; cursor: default; pointer-events: none; }

.upcoming-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #f0e8b0;
}
.upcoming-item:last-child { border-bottom: none; }
.upcoming-date-box {
  min-width: 42px; height: 42px;
  background: #fffbe8; border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--primary); font-weight: 600;
  line-height: 1.2;
}
.upcoming-date-box strong { font-size: 1rem; }
.upcoming-info h4 { font-size: 0.88rem; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.upcoming-info p  { font-size: 0.78rem; color: var(--muted); }

.quick-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f0e8b0;
  font-size: 0.88rem;
}
.quick-stat:last-child { border-bottom: none; }
.quick-stat span   { color: var(--muted); }
.quick-stat strong { color: var(--primary); font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .main-layout { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .sidebar { order: -1; }
  .dept-hero { padding: 40px 20px 30px; }
  .dept-hero h1 { font-size: 1.8rem; }
  .highlight-section { padding: 30px 20px 0; }
  .highlight-card { flex-direction: column; }
  .dept-stats { gap: 16px; }
  .breadcrumb { padding: 14px 20px; }
}