/* ============================================
   events.css  —  Events page styles
   Requires: style.css (site-wide)
   ============================================ */

/* ===== PAGE INTRO ===== */
.page-intro {
  text-align: center;
  padding: 52px 40px 36px;
  background: #fff;
  border-bottom: 1px solid #f0ece8;
}
.page-intro h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}
.section-text {
  color: #666;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════
   SPECIAL HIGHLIGHTS — warm cream/gold
═══════════════════════════════════ */
.highlight-events-section {
  background: linear-gradient(135deg, #f5ede0 0%, #fdf6ec 60%, #f9eedb 100%);
  border-top: 3px solid #e8c97a;
  border-bottom: 1px solid #e8d9bc;
  padding: 50px 40px 56px;
}
.highlight-events-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.highlight-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b8860b;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.25);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

/* Highlighted event card */
.highlight-event-card {
  background: #fff;
  border: 1.5px solid #e2c97a;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(184,134,11,0.12);
  transition: 0.3s;
}
.highlight-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(184,134,11,0.18);
  border-color: #c8a040;
}

.highlight-event-img-wrap {
  width: 340px;
  min-width: 340px;
  height: 260px;
  overflow: hidden;
  background: #f5ede0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.highlight-event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.highlight-event-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b8860b;
  font-size: 0.85rem;
}
.highlight-event-placeholder span:first-child { font-size: 3rem; }
.ph-hint {
  font-size: 0.72rem;
  font-family: monospace;
  background: rgba(184,134,11,0.1);
  padding: 3px 10px;
  border-radius: 8px;
  color: #b8860b;
  opacity: 0.7;
}

.highlight-event-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.highlight-dept-tag {
  display: inline-block;
  background: rgba(184,134,11,0.1);
  color: #b8860b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(184,134,11,0.25);
  margin-bottom: 12px;
  width: fit-content;
}
.highlight-event-body h3 {
  font-size: 1.5rem;
  color: #2a2a2a;
  margin-bottom: 12px;
  line-height: 1.3;
}
.highlight-event-body p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.highlight-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hmeta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fdf6ec;
  border: 1px solid #e2c97a;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.82rem;
  color: #666;
}

/* ═══════════════════════════════════
   ALL EVENTS GRID
═══════════════════════════════════ */
.events-section {
  background: #f9f6f3;
  padding: 52px 40px 70px;
}
.events-inner { max-width: 1100px; margin: 0 auto; }

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.events-header h2 {
  font-size: 1.6rem;
  color: #333;
}

.search-wrap { position: relative; }
.search-wrap input {
  padding: 10px 18px 10px 40px;
  border-radius: 30px;
  border: 1.8px solid #ddd;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  width: 260px;
  outline: none;
  transition: 0.3s;
  background: #fff;
  color: #333;
}
.search-wrap input:focus {
  border-color: #c8a040;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #bbb;
}
.no-results {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 0.95rem;
}

/* ── Event cards ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e8e0d8;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  transition: 0.25s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.09);
  border-color: #c8b49a;
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Department colour badges */
.dept-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.dept-kutir   { background: #fff1eb; color: #c65a2e; border: 1px solid #f3c6b4; }
.dept-anaj    { background: #fffbe8; color: #b8860b; border: 1px solid #e8d48a; }
.dept-medical { background: #edf7f1; color: #2e7d52; border: 1px solid #a8d9bc; }
.dept-taraben { background: #f3f0fb; color: #5c35b0; border: 1px solid #c9b8e8; }
.dept-jaipur  { background: #e0f4f1; color: #1a7f6e; border: 1px solid #4db8a4; }

.event-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-completed { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.status-upcoming  { background: #fff8e1; color: #e65c00; border: 1px solid #ffcc80; }
.status-ongoing   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

.event-card h4 {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.event-card p {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
  font-size: 0.8rem;
  color: #888;
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 860px) {
  .highlight-event-card     { flex-direction: column; }
  .highlight-event-img-wrap { width: 100%; min-width: unset; height: 220px; }
  .highlight-event-body     { padding: 24px 22px; }
  .highlight-events-section { padding: 36px 20px 40px; }
  .events-section   { padding: 36px 20px 50px; }
  .page-intro       { padding: 36px 20px 24px; }
  .events-header    { flex-direction: column; align-items: flex-start; }
  .search-wrap input { width: 100%; box-sizing: border-box; }
  .events-grid      { grid-template-columns: 1fr; }
}

/* ── Card footer link ── */
.card-footer-link {
  padding-top: 12px;
  border-top: 1px dashed #eee;
  margin-top: 4px;
}
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a07850;
  text-decoration: none;
  background: #fdf6ec;
  border: 1.5px solid #e2c97a;
  padding: 6px 14px;
  border-radius: 20px;
  transition: 0.22s;
}
.view-all-btn:hover {
  background: #a07850;
  color: #fff;
  border-color: #a07850;
  gap: 9px;
}