.official-home {
    background: #f5f7fb;
    color: #1d2939;
}

.home-flash {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e5eaf2;
}

.flash-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff7e6;
    border: 1px solid #ffdfa6;
    border-radius: 6px;
    padding: 10px 14px;
    color: #4a3510;
}

.flash-strip a {
    color: #4a3510;
    font-weight: 700;
}

.flash-label {
    background: #9b1c1c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.home-hero {
    padding: 22px 0;
    background: #eef3f9;
}

.hero-slider,
.notice-board,
.upcoming-panel,
.document-panel,
.committee-panel,
.principal-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.hero-slider {
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 430px;
    position: relative;
    background: #0f172a;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}

.hero-caption {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    color: #fff;
    max-width: 680px;
}

.hero-caption span,
.section-heading span,
.eyebrow {
    color: #0e217f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-caption span {
    color: #ffd166;
}

.hero-caption h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 0;
}

.notice-board,
.upcoming-panel,
.document-panel {
    padding: 18px;
    height: 100%;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5eaf2;
}

.panel-head h2,
.section-heading h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 2px 0 0;
}

.panel-head a {
    color: #0e217f;
    font-weight: 800;
    font-size: 13px;
}

.notice-list {
    max-height: 354px;
    overflow: hidden;
    padding-right: 4px;
}

.notice-scroll.is-moving {
    animation: noticeScrollUp 38s linear infinite;
}

.notice-list:hover .notice-scroll.is-moving {
    animation-play-state: paused;
}

.notice-row {
    display: flex;
    gap: 12px;
    color: #1f2937;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f7;
    text-decoration: none;
}

.notice-row:hover,
.compact-link:hover,
.committee-grid a:hover {
    color: #0e217f;
    text-decoration: none;
}

.notice-row .date {
    min-width: 52px;
    color: #9b1c1c;
    font-weight: 800;
    font-size: 13px;
}

.notice-row .text {
    font-size: 13px;
    line-height: 1.45;
}

.notice-row strong {
    display: block;
}

@keyframes noticeScrollUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

.alert-ticker {
    background: #111827;
    color: #fff;
}

.ticker-shell {
    display: flex;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
}

.ticker-title {
    background: #b91c1c;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 800;
    white-space: nowrap;
}

.ticker-window {
    overflow: hidden;
    flex: 1;
}

.ticker-track {
    display: inline-flex;
    gap: 36px;
    white-space: nowrap;
    animation: homeTicker 54s linear infinite;
    padding-left: 100%;
}

.ticker-track a,
.ticker-track span {
    color: #fff;
    text-decoration: none;
}

@keyframes homeTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.quick-access {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.quick-grid a {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 10px;
    text-align: center;
    color: #1f2937;
    background: #fbfdff;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.quick-grid a:hover {
    border-color: #0e217f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.quick-grid i {
    display: block;
    color: #0e217f;
    font-size: 22px;
    margin-bottom: 8px;
}

.quick-grid span {
    font-size: 13px;
    font-weight: 700;
}

.institution-section,
.events-section,
.documents-section {
    padding: 44px 0;
}

.institution-section,
.documents-section {
    background: #fff;
}

.principal-panel {
    display: flex;
    gap: 18px;
    padding: 20px;
    align-items: center;
}

.principal-panel img {
    width: 118px;
    height: 118px;
    border-radius: 8px;
    object-fit: cover;
}

.principal-panel h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 4px 0 6px;
}

.principal-panel p,
.institution-copy {
    color: #667085;
    line-height: 1.7;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.identity-grid div {
    border-left: 4px solid #0e217f;
    background: #f8fafc;
    padding: 12px;
}

.identity-grid strong {
    display: block;
    font-size: 24px;
    color: #0e217f;
}

.identity-grid span {
    color: #667085;
    font-size: 13px;
}

.events-section {
    background: #f5f7fb;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.event-card {
    min-height: 268px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.event-card:hover {
    color: #1f2937;
    text-decoration: none;
    border-color: #b7c7dc;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .1);
    transform: translateY(-3px);
}

.event-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #0e217f, #9b1c1c);
}

.event-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, .45) 100%);
    pointer-events: none;
}

.event-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.04);
}

.event-image.image-missing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image.image-missing::before {
    content: "DLC";
    color: rgba(255, 255, 255, .9);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .08em;
}

.event-date {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    background: #fff;
    color: #9b1c1c;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .16);
}

.event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.event-body h3 {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.38;
    margin: 0 0 14px;
}

.event-link {
    color: #0e217f;
    font-size: 13px;
    font-weight: 800;
    margin-top: auto;
}

.event-link i {
    margin-left: 4px;
    transition: transform .2s ease;
}

.event-card:hover .event-link i {
    transform: translateX(3px);
}

.calendar-row {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
}

.calendar-row h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin: 4px 0 0;
}

.calendar-date {
    width: 54px;
    height: 58px;
    border-radius: 6px;
    background: #0e217f;
    color: #fff;
    text-align: center;
    flex: 0 0 auto;
    padding-top: 6px;
}

.calendar-date.muted {
    background: #475467;
}

.calendar-date strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.calendar-date span {
    font-size: 12px;
    text-transform: uppercase;
}

.calendar-row p {
    color: #667085;
    font-size: 13px;
    margin: 4px 0 0;
}

.compact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
    text-decoration: none;
}

.compact-link i {
    color: #9b1c1c;
}

.committee-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.committee-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.committee-grid i {
    color: #0e217f;
}

.empty-state {
    color: #667085;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 14px;
    text-align: center;
    width: 100%;
}

@media (max-width: 991px) {
    .hero-slider .carousel-item {
        height: 340px;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .hero-slider .carousel-item {
        height: 280px;
    }

    .hero-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .hero-caption h1 {
        font-size: 23px;
    }

    .ticker-shell {
        align-items: stretch;
        flex-direction: column;
    }

    .ticker-title {
        padding: 10px 14px;
    }

    .quick-grid,
    .identity-grid,
    .committee-grid {
        grid-template-columns: 1fr;
    }

    .principal-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-image {
        height: 178px;
    }
}
