/* ============================================
   HunnerUdyog.css
   Page-specific styles for Hunner Udyog page
   Requires: style.css (site-wide styles)
   Colour scheme: Warm saffron-amber — craft,
   heritage, women's empowerment; distinct from
   all sibling pages
   ============================================ */

:root {
  --primary      : #c4722a;
  --primary-dark : #9e5518;
  --primary-light: #e0a068;
  --bg           : #fdf7f2;
  --card-bg      : #ffffff;
  --text         : #2b2b2b;
  --muted        : #666666;
  --border       : #e8c8a8;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 40px;
  font-size: 0.88rem;
  color: var(--muted);
  background: #fdf0e6;
  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 ===== */
.dept-hero {
  background: linear-gradient(135deg, #7a3d10 0%, #c4722a 55%, #e0a068 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.88); 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; }

/* ===== HIGHLIGHT SECTION ===== */
.highlight-section { padding: 32px 40px 0; }

.highlight-card {
  background: linear-gradient(135deg, #fdf0e6, #fff);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 4px 18px rgba(196,114,42,0.1);
}
.highlight-icon { font-size: 2.4rem; flex-shrink: 0; margin-top: 2px; }
.highlight-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.amount-badge {
  display: inline-block;
  background: #fde8d4;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.highlight-body p {
  color: #555;
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.highlight-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.82rem;
  color: #666;
}
.meta-chip .icon { font-size: 0.9rem; }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* ===== SEARCH & FILTER ===== */
.search-wrap { position: relative; margin-bottom: 16px; }
.search-wrap input {
  width: 100%;
  padding: 11px 18px 11px 42px;
  border-radius: 30px;
  border: 1.8px solid #e0c4a4;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  transition: 0.3s;
}
.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,114,42,0.1);
}
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #ccc;
}

.filter-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #e0c4a4;
  background: #fff;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.no-results {
  display: none;
  text-align: center;
  padding: 40px;
  color: #aaa;
  font-size: 0.95rem;
}

/* ===== YEAR DIVIDER ===== */
.year-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}
.year-divider::before,
.year-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8c8a8;
}
.year-divider span {
  white-space: nowrap;
  background: var(--bg);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== ACTIVITY CARDS ===== */
.activity-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #e8c8a8;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  box-shadow: 0 3px 14px rgba(196,114,42,0.07);
  transition: 0.25s;
}
.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(196,114,42,0.14);
  border-color: var(--primary-light);
}

.card-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-completed { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.status-ongoing   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.status-upcoming  { background: #fff8e1; color: #e65c00; border: 1px solid #ffcc80; }

.card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  background: #fdf7f2;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f0d8c0;
}
.card-meta-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: #555;
}
.mi { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.card-meta-item div { display: flex; flex-direction: column; gap: 1px; }
.card-meta-item strong {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #aaa;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.impact-tag {
  display: inline-block;
  background: #fde8d4;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ===== EVENTS LIST (crochet card) ===== */
.events-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8c8a8;
  border-radius: 14px;
  overflow: hidden;
}
.event-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f5e0ca;
  background: #fff;
  transition: background 0.2s;
}
.event-list-item:last-child { border-bottom: none; }
.event-list-item:hover { background: #fdf7f2; }
.event-list-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.event-list-item div { display: flex; flex-direction: column; gap: 3px; }
.event-list-item strong { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.event-list-item span  { font-size: 0.83rem; color: #777; line-height: 1.5; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #e8c8a8;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(196,114,42,0.07);
}
.sidebar-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f5e0ca;
}

/* Calendar */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.cal-nav {
  background: none;
  border: 1.5px solid #e8c8a8;
  border-radius: 8px;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary);
  transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 0.78rem;
  text-align: center;
}
.cal-day-name { color: #aaa; font-weight: 600; padding: 4px 0; }
.cal-day { padding: 5px 2px; border-radius: 6px; color: #555; }
.cal-day.today { background: var(--primary); color: #fff; font-weight: 700; border-radius: 8px; }
.cal-day.has-event { background: #fde8d4; color: var(--primary-dark); font-weight: 700; border-radius: 8px; }
.cal-day.empty { opacity: 0; }

/* Upcoming */
.upcoming-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e8c8a8;
}
.upcoming-item:last-child { border-bottom: none; }
.upcoming-date-box {
  background: #fde8d4;
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  min-width: 44px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
}
.upcoming-date-box strong { display: block; font-size: 1.2rem; }
.upcoming-info h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.upcoming-info p  { font-size: 0.78rem; color: #999; }

/* Chips */
.class-list { display: flex; flex-wrap: wrap; gap: 8px; }
.class-chip {
  background: #fde8d4;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Quick stats */
.quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #e8c8a8;
  font-size: 0.87rem;
  color: #666;
}
.quick-stat:last-child { border-bottom: none; }
.quick-stat strong { color: var(--text); font-weight: 700; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-top: 1px solid #e8c8a8;
  font-size: 0.85rem;
  color: #999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .main-layout       { grid-template-columns: 1fr; padding: 28px 20px 40px; }
  .dept-hero         { padding: 40px 20px 30px; }
  .dept-hero h1      { font-size: 1.8rem; }
  .dept-stats        { gap: 14px; }
  .breadcrumb        { padding: 14px 20px; }
  .highlight-section { padding: 24px 20px 0; }
  .highlight-card    { flex-direction: column; gap: 14px; }
  .card-meta-grid    { grid-template-columns: 1fr; }
}