
/* PAGE HERO — red theme */
.page-hero { background: linear-gradient(135deg, #c0392b 0%, #8e1a10 100%); }
.page-tag   { color: #ffd4cc; }
.page-hero h1 em { color: #ffd4cc; }

/* ANNOUNCEMENT BANNER */
.announcement-bar {
background: var(--gold); color: var(--dark);
padding: 14px 5%; display: flex; align-items: center; gap: 12px;
font-size: 0.9rem; font-weight: 600;
}
.announcement-bar .badge {
background: var(--dark); color: var(--gold);
padding: 3px 10px; border-radius: 50px;
font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}

/* MAIN LAYOUT */
.events-layout {
padding: 60px 5%;
display: grid; grid-template-columns: 1fr 340px;
gap: 48px; align-items: start;
}

/* TERM CARDS */
.term-section h2,
.events-section h2 {
font-family: 'Playfair Display', serif;
font-size: 1.8rem; font-weight: 900; color: var(--dark); margin-bottom: 6px;
}
.term-section h2 em  { font-style: normal; color: var(--green); }
.events-section h2 em { font-style: normal; color: var(--red); }
.term-section > p,
.events-section > p {
font-size: 0.95rem; color: var(--muted);
margin-bottom: 32px; line-height: 1.6;
}

.term-cards { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.term-card {
background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
padding: 28px 28px 24px;
display: grid; grid-template-columns: auto 1fr auto;
gap: 0 24px; align-items: start;
transition: box-shadow .2s, transform .2s;
}
.term-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.07); transform: translateY(-2px); }
.term-num {
width: 52px; height: 52px; border-radius: 14px;
display: flex; align-items: center; justify-content: center;
font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900;
flex-shrink: 0;
}
.term-num.t1 { background: var(--green-light); color: var(--green); }
.term-num.t2 { background: var(--red-light);   color: var(--red); }
.term-num.t3 { background: var(--gold-light);  color: var(--gold); }
.term-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.term-dates { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.date-chip {
display: flex; align-items: center; gap: 5px;
background: var(--cream); border: 1px solid var(--border);
padding: 4px 10px; border-radius: 50px;
font-size: 0.8rem; color: var(--muted);
}
.term-weeks {
display: inline-block;
background: var(--green-light); color: var(--green);
padding: 3px 10px; border-radius: 50px;
font-size: 0.8rem; font-weight: 600;
}
.term-weeks.red  { background: var(--red-light);  color: var(--red); }
.term-weeks.gold { background: var(--gold-light); color: var(--gold); }
.term-status { text-align: right; }
.status-badge {
padding: 5px 12px; border-radius: 50px;
font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.status-badge.upcoming  { background: var(--blue-light);  color: var(--blue); }
.status-badge.current   { background: var(--green-light); color: var(--green); }
.status-badge.completed { background: #f0f2f5; color: #8090a0; }

/* EVENTS LIST */
.events-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ev-filter-btn {
padding: 6px 16px; border-radius: 50px;
font-family: 'DM Sans', sans-serif; font-size: 0.83rem; font-weight: 600;
cursor: pointer; border: 1.5px solid var(--border);
background: #fff; color: var(--muted); transition: all .2s;
}
.ev-filter-btn:hover,
.ev-filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-item {
background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
padding: 20px 24px; display: flex; gap: 20px; align-items: flex-start;
transition: box-shadow .2s, transform .2s;
}
.event-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.event-date-block {
text-align: center; min-width: 52px;
background: var(--cream); border-radius: 10px;
padding: 8px 6px; flex-shrink: 0;
}
.event-day   { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--dark); }
.event-month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.event-body { flex: 1; }
.event-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.event-body p  { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.event-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-tag { padding: 3px 9px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.ev-tag.academic  { background: var(--green-light); color: var(--green); }
.ev-tag.sports    { background: var(--blue-light);   color: var(--blue); }
.ev-tag.cultural  { background: var(--purple-light); color: var(--purple); }
.ev-tag.community { background: var(--gold-light);   color: #8a5a00; }
.ev-tag.admin     { background: #f0f2f5; color: #5a6070; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 84px; }
.sidebar-card {
background: #fff; border-radius: var(--radius);
border: 1px solid var(--border); padding: 24px;
}
.sidebar-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.quick-dates { display: flex; flex-direction: column; gap: 10px; }
.qdate-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.qdate-item:last-child { border-bottom: none; }
.qdate-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.qdate-label { font-size: 0.88rem; color: var(--text); flex: 1; }
.qdate-date  { font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.countdown-card {
background: var(--dark); border-radius: var(--radius);
padding: 24px; color: #fff; text-align: center;
}
.countdown-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #7bd4a0; margin-bottom: 6px; }
.countdown-card p  { font-size: 0.82rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-unit { background: rgba(255,255,255,.08); border-radius: 8px; padding: 10px 4px; }
.countdown-num   { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.countdown-label { font-size: 0.65rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

.enroll-card {
background: linear-gradient(135deg, var(--green), var(--green-mid));
border-radius: var(--radius); padding: 24px; color: #fff; text-align: center;
}
.enroll-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.enroll-card p  { font-size: 0.88rem; opacity: .85; margin-bottom: 18px; line-height: 1.55; }
.enroll-btn {
display: inline-block; background: #fff; color: var(--green);
padding: 10px 22px; border-radius: 50px;
font-size: 0.88rem; font-weight: 700; text-decoration: none;
transition: transform .2s;
}
.enroll-btn:hover { transform: scale(1.03); }

@media (max-width: 900px) {
.events-layout { grid-template-columns: 1fr; }
.sidebar { position: static; }
.term-card { grid-template-columns: auto 1fr; }
.term-status { grid-column: 2; margin-top: 8px; text-align: left; }
}
