/* ============================================================
   TOGABE SCHOOLS — News & Events Page Stylesheet
   ============================================================ */

/* ── Category Filter ── */
.news-filter {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.news-filter-inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.news-filter-inner::-webkit-scrollbar { display: none; }

.news-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.news-filter-btn [data-lucide] { width: 15px; height: 15px; }
.news-filter-btn:hover  { color: var(--primary); background: var(--primary-xlight); }
.news-filter-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.news-filter-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    line-height: 1.4;
}

/* ── Featured Article ── */
.featured-section {
    padding: 3.5rem 0 0;
    background: #fff;
}
.featured-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.featured-card-content { position: relative; z-index: 1; }
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245,158,11,0.2);
    border: 1px solid rgba(245,158,11,0.4);
    color: #fbbf24;
    padding: 0.3rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.featured-badge [data-lucide] { width: 12px; height: 12px; }
.featured-card h2 {
    color: #fff;
    font-size: 1.875rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.featured-card-excerpt {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.featured-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.featured-card-meta-item [data-lucide] { width: 14px; height: 14px; }

.featured-card-visual {
    position: relative;
    z-index: 1;
}
.featured-visual-box {
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.featured-visual-box::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.featured-visual-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative; z-index: 1;
}
.featured-visual-icon [data-lucide] { width: 36px; height: 36px; color: #fff; }
.featured-visual-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    position: relative; z-index: 1;
}
.featured-visual-category {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    position: relative; z-index: 1;
    margin-top: 0.25rem;
}

/* ── News Grid ── */
.news-section {
    padding: 3.5rem 0 5rem;
    background: #fff;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.news-card.hidden { display: none; }

.news-card-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.news-card-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.news-card-icon [data-lucide] { width: 22px; height: 22px; }

.news-card-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.news-card-body { padding: 1.25rem 1.5rem; flex: 1; }
.news-card-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--bg-light);
}
.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.news-card-date [data-lucide] { width: 13px; height: 13px; }

/* No results message */
.news-no-results {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}
.news-no-results.show { display: block; }
.news-no-results [data-lucide] {
    width: 52px; height: 52px;
    color: var(--border);
    margin: 0 auto 1.25rem;
    display: block;
}
.news-no-results h4 { color: var(--text-dark); margin-bottom: 0.5rem; }
.news-no-results p  { font-size: 0.9rem; color: var(--text-muted); }

/* ── Events Section ── */
.events-section {
    padding: 5rem 0;
    background: var(--bg-section);
}
.events-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.event-item {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
}
.event-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 62px;
    border-radius: var(--radius-md);
    text-align: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.event-date-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
}
.event-date-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    position: relative; z-index: 1;
}
.event-date-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
    position: relative; z-index: 1;
}
.event-content { flex: 1; min-width: 0; }
.event-title {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}
.event-description {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.event-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}
.event-time [data-lucide] { width: 12px; height: 12px; }

/* Events sidebar CTA */
.events-sidebar {}
.events-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: #fff;
    text-align: center;
    position: sticky;
    top: 100px;
    overflow: hidden;
}
.events-cta-box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.events-cta-box > * { position: relative; z-index: 1; }
.events-cta-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    border: 2px solid rgba(255,255,255,0.2);
}
.events-cta-icon [data-lucide] { width: 28px; height: 28px; color: #fff; }
.events-cta-box h3   { color: #fff; font-size: 1.25rem; margin-bottom: 0.75rem; }
.events-cta-box p    { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.events-cta-contact  { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.events-cta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.875rem;
    text-decoration: none;
}
.events-cta-item [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }
.events-cta-item:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .news-grid     { grid-template-columns: repeat(2,1fr); }
    .events-layout { grid-template-columns: 1fr; }
    .events-cta-box { position: static; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card-visual { display: none; }
}
@media (max-width: 768px) {
    .news-grid      { grid-template-columns: 1fr; }
    .featured-card  { padding: 2rem 1.5rem; }
    .featured-card h2 { font-size: 1.5rem; }
}