.iqac-events-page {
    background: #f4f7fb;
    color: #132238;
}

.iqac-events-page a {
    text-decoration: none;
}

.iqac-events-hero {
    background: linear-gradient(120deg, rgba(9, 31, 83, .96), rgba(28, 78, 130, .92)), url("../img/library/l2.jpeg") center/cover;
    color: #fff;
    padding: 54px 0 46px;
}

.iqac-kicker {
    display: inline-flex;
    color: #111827;
    background: #ffd166;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.iqac-events-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 14px 0 10px;
    letter-spacing: 0;
}

.iqac-events-hero p {
    color: #e8eef8;
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0;
}

.iqac-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.iqac-hero-stats div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 18px;
}

.iqac-hero-stats strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.iqac-hero-stats span {
    display: block;
    color: #dce6f5;
    font-size: 13px;
    margin-top: 8px;
}

.iqac-events-body {
    padding: 34px 0 56px;
}

.iqac-events-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.iqac-events-side {
    position: sticky;
    top: 90px;
}

.iqac-events-side #iqac-sidebar,
.event-year-panel,
.events-toolbar,
.event-archive-card,
.iqac-empty-state {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.iqac-events-side #iqac-sidebar {
    padding: 10px;
    margin: 0 0 16px !important;
}

.iqac-events-side #iqac-sidebar a {
    background: transparent !important;
    color: #20324c !important;
    border-radius: 6px;
    padding: 10px 12px !important;
    margin: 0 0 4px !important;
    font-weight: 700;
}

.iqac-events-side #iqac-sidebar a:hover,
.iqac-events-side #iqac-sidebar .active {
    background: #0b2f66 !important;
    color: #fff !important;
}

.event-year-panel {
    padding: 16px;
}

.event-year-panel h2 {
    color: #0b2f66;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
}

.event-year-panel a {
    display: flex;
    justify-content: space-between;
    color: #24364f;
    border-top: 1px solid #edf1f6;
    padding: 10px 4px;
    font-weight: 700;
}

.event-year-panel a:hover,
.event-year-panel a.active {
    color: #b01822;
}

.events-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 20px;
    margin-bottom: 18px;
}

.events-toolbar span {
    color: #0e217f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.events-toolbar h2 {
    color: #0c1b33;
    font-size: 26px;
    font-weight: 800;
    margin: 5px 0 0;
}

.latest-pill {
    color: #b01822;
    background: #fff4e3;
    border: 1px solid #f5d28d;
    border-radius: 5px;
    padding: 8px 10px;
    font-weight: 800;
    white-space: nowrap;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.event-archive-card {
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.event-archive-card:hover {
    transform: translateY(-4px);
    border-color: #b9c9de;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .1);
}

.event-cover {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: #0b2f66;
}

.event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88;
    transition: transform .25s ease, opacity .25s ease;
}

.event-archive-card:hover .event-cover img {
    transform: scale(1.04);
    opacity: .96;
}

.event-cover.no-image,
.event-placeholder {
    display: grid;
    place-items: center;
}

.event-placeholder {
    height: 100%;
    color: rgba(255, 255, 255, .78);
    font-size: 42px;
}

.event-date-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    min-width: 82px;
    color: #fff;
    background: #b01822;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.event-date-badge strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.event-card-body {
    padding: 16px;
}

.event-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.event-meta-row span {
    color: #0b2f66;
    background: #eef4fb;
    border: 1px solid #dbe7f5;
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 12px;
    font-weight: 800;
}

.event-card-body h3 {
    min-height: 64px;
    color: #10213a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 14px;
}

.event-details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b01822;
    font-weight: 800;
}

.iqac-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 42px 20px;
}

.iqac-empty-state i {
    color: #b01822;
    font-size: 38px;
}

.iqac-empty-state h3 {
    font-weight: 800;
    margin: 12px 0 6px;
}

.iqac-empty-state p {
    color: #647386;
}

.iqac-empty-state a {
    color: #fff;
    background: #0b2f66;
    border-radius: 5px;
    padding: 9px 13px;
    font-weight: 800;
}

@media (max-width: 1199px) {
    .event-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .iqac-events-layout {
        grid-template-columns: 1fr;
    }

    .iqac-events-side {
        position: static;
    }

    .iqac-hero-stats {
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .iqac-events-hero {
        padding: 40px 0 34px;
    }

    .iqac-events-hero h1 {
        font-size: 31px;
    }

    .iqac-hero-stats,
    .event-card-grid {
        grid-template-columns: 1fr;
    }

    .events-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .latest-pill {
        white-space: normal;
    }
}
