/* ============================================================
   FSSL NEWS — Premium Landing Page Design System
   ============================================================ */

/* ---- CSS Variables ---------------------------------------- */
:root {
    --brand-blue:        #0F2027;
    --brand-blue-mid:    #203A43;
    --brand-blue-light:  #2C5364;
    --accent-red:        #E63946;
    --accent-red-hover:  #C1121F;
    --accent-teal:       #2EC4B6;   /* Events section accent */
    --surface:           #ffffff;
    --background:        #F4F6F9;
    --text-primary:      #1D1E2C;
    --text-secondary:    #5C677D;
    --text-muted:        #9AA3B2;
    --border:            rgba(0,0,0,0.06);

    --shadow-soft:       0 4px 24px rgba(0,0,0,0.06);
    --shadow-card:       0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover:      0 20px 50px rgba(15,32,39,0.15);
    --shadow-red:        0 8px 24px rgba(230,57,70,0.35);

    --radius-xl:  28px;
    --radius-lg:  20px;
    --radius-md:  14px;
    --radius-sm:  10px;
    --radius-pill: 100px;

    --transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.18s ease;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { display: block; max-width: 100%; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.news-ticker {
    background: var(--accent-red);
    color: #fff;
    display: flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-ticker__label {
    background: rgba(0,0,0,0.25);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 8px;
}

.news-ticker__label .ticker-dot {
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.news-ticker__track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-ticker__inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}

.news-ticker__inner:hover { animation-play-state: paused; }

.news-ticker__item {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.95);
}

.news-ticker__item::before {
    content: '◆';
    font-size: 0.5rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.news-ticker__item:hover { color: #fff; text-decoration: underline; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 38px; /* Default below ticker */
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    background: rgba(15, 32, 39, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    border-bottom: none;
    transition: padding 0.3s ease, background 0.3s ease, top 0.3s ease;
}

/* Adjust header top if no ticker is present */
body:not(.has-ticker) .header {
    top: 0;
}

.header.scrolled {
    background: rgba(15, 32, 39, 0.98);
    padding-top: 10px;
    padding-bottom: 10px;
    top: 0;
}

/* Content offset for all pages — Using padding to prevent margin collapse */
main {
    padding-top: 60px; /* Offset to clear the fixed header (Ticker is relative/scrolled) */
}

body:not(.has-ticker) main {
    padding-top: 60px; /* Offset for just header */
}

/* Override hero margins since main now handles it */
.hero-section, .page-hero {
    margin-top: 0 !important;
}

.header-left .logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-accent {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-right a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    position: relative;
}

.header-right a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.header-right a:hover { color: #fff; }
.header-right a:hover::after { width: 100%; }

.header-login-btn {
    background: var(--accent-red);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: var(--transition) !important;
}

.header-login-btn::after { display: none !important; }

.header-login-btn:hover {
    background: var(--accent-red-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-red) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 1200;
}

.hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,32,39,0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent-red); }
.mobile-nav .mobile-nav-login {
    margin-top: 16px;
    background: var(--accent-red);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    font-size: 1rem !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 0; 
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--brand-blue);
    transition: transform 8s ease;
}

.hero-section:hover .hero-bg { transform: scale(1.03); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(15,32,39,0.15) 0%,
        rgba(15,32,39,0.3) 40%,
        rgba(15,32,39,0.92) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 64px 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    width: fit-content;
    box-shadow: var(--shadow-red);
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 720px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-meta-sep { width: 4px; height: 4px; background: rgba(255,255,255,0.4); border-radius: 50%; }

.hero-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--brand-blue) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    width: fit-content;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: var(--transition) !important;
}

.hero-read-more::after { display: none !important; }

.hero-read-more:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-red) !important;
}

.hero-read-more svg { transition: transform 0.2s ease; }
.hero-read-more:hover svg { transform: translateX(4px); }

/* Hero Search Overlay */
.hero-search-wrapper {
    display: flex;
    gap: 0;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-pill);
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 620px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-search-wrapper:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.hero-search-wrapper select {
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 36px 12px 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L5 6L10 0H0Z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.hero-search-wrapper select option { background: var(--brand-blue); color: #fff; }

.hero-search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 12px;
}

.hero-search-icon svg { width: 18px; height: 18px; }
.hero-search-icon svg path { fill: rgba(255,255,255,0.7); }

.hero-search-wrapper input[type="text"] {
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 12px 14px;
    width: 100%;
    outline: none;
}

.hero-search-wrapper input::placeholder { color: rgba(255,255,255,0.55); }

.hero-search-btn {
    border: none;
    background: var(--accent-red);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.04);
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.main-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 40px 48px 56px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title-bar {
    width: 5px;
    height: 32px;
    background: linear-gradient(180deg, var(--accent-red) 0%, var(--accent-red-hover) 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

.section-title-bar.teal {
    background: linear-gradient(180deg, var(--accent-teal) 0%, #1aA09A 100%);
}

.section-header h2, .content-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: -0.02em;
    margin: 0;
}

.content-section { margin-bottom: 52px; }

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.category-pill {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition);
}

.category-pill:hover {
    background: var(--brand-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15,32,39,0.12);
    border-color: transparent;
}

.category-pill .badge {
    background: var(--background);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.category-pill:hover .badge { background: rgba(255,255,255,0.2); color: #fff; }

.view-all-button {
    background: transparent;
    color: var(--accent-red);
    border: 1.5px solid var(--accent-red);
    font-weight: 600;
}

.view-all-button:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 1rem;
}

/* ============================================================
   LATEST NEWS CAROUSEL
   ============================================================ */
.latest-news-section {
    margin: 0 0 48px;
    position: relative;
}

.latest-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.latest-news-title {
    display: flex;
    align-items: center;
    gap: 0;
}

.latest-news-title .big-text {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--brand-blue);
    letter-spacing: -0.03em;
    padding-right: 14px;
    position: relative;
}

.latest-news-title .big-text::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 26px;
    background: var(--accent-red);
    border-radius: 4px;
}

.latest-news-title .small-text {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 14px;
    letter-spacing: 0.05em;
}

.carousel-wrapper-outer {
    position: relative;
}

.latest-news-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 12px;
}

.latest-news-carousel::-webkit-scrollbar { display: none; }
.latest-news-carousel.grabbing { cursor: grabbing; }

.latest-news-carousel-inner {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 16px 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-red);
}

/* News Cards */
.news-card {
    width: 260px;
    height: 360px;
    flex-shrink: 0;
    background-color: var(--brand-blue);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.news-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(15,32,39,0.5) 55%, rgba(15,32,39,0.95) 100%);
    z-index: 1;
    transition: var(--transition);
}

.news-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: var(--shadow-hover); }
.news-card:hover::before { background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(15,32,39,0.55) 50%, rgba(15,32,39,0.98) 100%); }

.news-card__rank {
    position: absolute;
    top: 14px; left: 14px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 50%;
    z-index: 2;
    box-shadow: var(--shadow-red);
}

.news-card__new-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: #fff;
    color: var(--accent-red);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 2;
}

.news-card__content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__date {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.news-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    z-index: 0;
}

.news-card__placeholder span {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.4;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    width: 48px; height: 48px;
    font-size: 1.6rem;
    color: var(--brand-blue);
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.carousel-arrow:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-red);
}

.carousel-arrow.prev { left: -24px; }
.carousel-arrow.next { right: -24px; }

/* ============================================================
   MAGAZINE GRID — ANNOUNCEMENTS
   ============================================================ */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Featured card — left column, natural height */
.magazine-grid__featured {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* Stack — right column, equal-height flex */
.magazine-grid__stack {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each compact card grows to share stack height equally */
.magazine-grid__stack .ann-card--compact {
    flex: 1;
    min-height: 0;
}

/* Regular grid — full width, below */
.magazine-grid__regular {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Featured Card */
.ann-card--featured {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.ann-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.ann-card--featured .ann-card__image {
    /* Fixed aspect ratio — prevents tall posters from blowing up the grid */
    aspect-ratio: 4 / 3;
    max-height: 360px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ann-card--featured .ann-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ann-card--featured:hover .ann-card__image img { transform: scale(1.06); }

.ann-card--featured .ann-card__image-placeholder {
    width: 100%; height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
}

.ann-card--featured .ann-card__image-placeholder span {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.5;
}

.featured-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-red);
}

.ann-card__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ann-card__date {
    font-size: 0.78rem;
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ann-card__date::before {
    content: '';
    display: inline-block;
    width: 16px; height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

.ann-card--featured .ann-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.02em;
}

.ann-card__summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ann-card__cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
}

.ann-card__cta svg { transition: transform 0.2s; }
.ann-card--featured:hover .ann-card__cta svg { transform: translateX(4px); }

/* Compact Horizontal Card */
.ann-card--compact {
    display: flex;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.ann-card--compact:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.ann-card--compact .ann-card__thumbnail {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.ann-card--compact .ann-card__thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ann-card--compact:hover .ann-card__thumbnail img { transform: scale(1.06); }

.ann-card--compact .ann-card__thumbnail-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--brand-blue-mid) 0%, var(--brand-blue-light) 100%);
    display: flex; align-items: center; justify-content: center;
    min-height: 110px;
}

.ann-card--compact .ann-card__thumbnail-placeholder span {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
}

.ann-card--compact .ann-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.ann-card--compact .ann-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Regular Grid Card */
.ann-card--regular {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    content-visibility: auto;
    contain: content;
}

.ann-card--regular:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.ann-card--regular .ann-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--brand-blue);
}

.ann-card--regular .ann-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ann-card--regular:hover .ann-card__image img { transform: scale(1.04); }

.ann-card--regular .ann-card__image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    display: flex; align-items: center; justify-content: center;
}

.ann-card--regular .ann-card__image-placeholder span {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
    padding: 16px;
}

.ann-card--regular .ann-card__body { 
    padding: 18px 20px 22px; 
    gap: 6px; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ann-card--regular .ann-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    flex: 0 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reading time chip */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   NEWS LISTING GRID — category page / search results
   3-column on desktop, 2 on tablet, 1 on mobile
   ============================================================ */
.news-listing-grid,
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .news-listing-grid,
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-listing-grid,
    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   EVENTS SECTION — Timeline Scroll
   ============================================================ */
.events-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 0 24px;
    cursor: grab;
}

.events-strip::-webkit-scrollbar { display: none; }
.events-strip.grabbing { cursor: grabbing; }

.event-card {
    flex: 0 0 280px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.event-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), #1aA09A);
    opacity: 0;
    transition: opacity 0.3s;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(46,196,182,0.15);
    border-color: transparent;
}

.event-card:hover::after { opacity: 1; }

.event-card__image {
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card__image img { transform: scale(1.05); }

.event-card__image-placeholder {
    height: 160px;
    background: linear-gradient(135deg, var(--brand-blue-mid) 0%, var(--brand-blue-light) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.event-card__image-placeholder span {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-align: center;
    padding: 12px;
}

.event-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.event-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card__summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   NEWSROOM INFO STRIP
   ============================================================ */
.newsroom-strip {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 50%, var(--brand-blue-light) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 64px;
    margin: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}

.newsroom-strip::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.newsroom-strip::after {
    content: '';
    position: absolute;
    bottom: -80px; right: 180px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.newsroom-strip__text { position: relative; z-index: 1; }

.newsroom-strip__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsroom-strip__label::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

.newsroom-strip__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.newsroom-strip__sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

.newsroom-strip__actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.newsroom-strip__btn {
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.newsroom-strip__btn--primary {
    background: #fff;
    color: var(--brand-blue);
}

.newsroom-strip__btn--primary:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.newsroom-strip__btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.2);
}

.newsroom-strip__btn--outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--brand-blue);
    color: rgba(255,255,255,0.65);
    padding: 56px 48px 32px;
}

.site-footer__grid {
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.site-footer__desc {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

.site-footer__col-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.site-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__links li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}

.site-footer__links li a:hover { color: #fff; }

.site-footer__bottom {
    max-width: 1480px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__dev-credit {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px; height: 48px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 8px 24px rgba(230,57,70,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--accent-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(230,57,70,0.5);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
    .magazine-grid { grid-template-columns: 1fr; }
    .magazine-grid__featured { grid-row: auto; grid-column: auto; }
    .magazine-grid__stack { grid-column: auto; grid-row: auto; }
    .magazine-grid__regular { grid-column: auto; }

    .newsroom-strip { flex-direction: column; text-align: center; gap: 28px; padding: 48px 40px; }
    .newsroom-strip__label { justify-content: center; }
    .newsroom-strip__actions { justify-content: center; }

    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .header { padding: 14px 24px; }
    .main-content { padding: 40px 24px 60px; }
    .hero-content { padding: 0 32px 48px; }
    .hero-headline { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .hero-section { height: 75vh; }
    .carousel-arrow.prev { left: 0; }
    .carousel-arrow.next { right: 0; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 768px) {
    .header-right { display: none; }
    .hamburger { display: flex; }
    .hero-search-wrapper select { display: none; }
    .hero-section { margin-top: calc(38px + 56px); }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
    .newsroom-strip { padding: 40px 24px; border-radius: var(--radius-lg); }
    .newsroom-strip__actions { flex-direction: column; width: 100%; }
    .newsroom-strip__btn { justify-content: center; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .news-ticker { display: none; }
    .hero-section { margin-top: 62px; height: 80vh; }
    .hero-content { padding: 0 20px 36px; }
    .main-content { padding: 32px 16px 48px; }
    .latest-news-section { margin-bottom: 48px; }
    .news-card { width: 220px; height: 300px; }
    .site-footer { padding: 40px 20px 24px; }
    .ann-card--compact .ann-card__thumbnail { width: 90px; }
}

/* ============================================================
   SHARED PAGE STYLES — category / search / listing pages
   ============================================================ */

/* Page hero banner (category + search) */
.page-hero {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 50%, var(--brand-blue-light) 100%);
    padding: 130px 64px 64px;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 120px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.page-hero__inner {
    max-width: 1480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.page-hero__breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.page-hero__breadcrumb a:hover { color: #fff; }

.page-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

.page-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin: 0 0 12px;
}

.page-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    max-width: 640px;
    margin: 0;
}

/* Results meta bar */
.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.results-meta__count {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.results-meta__count strong {
    color: var(--text-primary);
    font-weight: 700;
}

.results-meta__back {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.results-meta__back:hover {
    color: var(--accent-red-hover);
}

/* Inline search bar (search page) */
.inline-search-form {
    background: var(--surface);
    border-radius: var(--radius-pill);
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    max-width: 760px;
    width: 100%;
    margin: 0 auto 40px;
    transition: box-shadow 0.3s ease;
}

.inline-search-form:focus-within {
    box-shadow: 0 12px 40px rgba(230,57,70,0.12);
    border-color: rgba(230,57,70,0.25);
}

.inline-search-form select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 36px 12px 20px;
    border-right: 1px solid #EDEDED;
    cursor: pointer;
    -webkit-appearance: none;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L5 6L10 0H0Z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 160px;
}

.inline-search-form .search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 10px;
}

.inline-search-form .search-icon svg { width: 18px; height: 18px; }

.inline-search-form input[type="text"] {
    border: none;
    background: transparent;
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

.inline-search-form input::placeholder { color: var(--text-muted); }

.inline-search-btn {
    border: none;
    background: var(--accent-red);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.inline-search-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.03);
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 24px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.pagination-btn:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,32,39,0.12);
}

.pagination-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.pagination-status {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 16px;
    background: var(--background);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

/* ---- existing .announcement-card needs this for backwards compat */
.announcement-card__placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.announcement-card__placeholder span {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .page-hero { padding: 90px 32px 44px; }
}

@media (max-width: 600px) {
    .page-hero { padding: 80px 20px 36px; margin-top: 60px; }
    .page-hero__title { font-size: 1.8rem; }
    .inline-search-form { flex-direction: column; border-radius: var(--radius-lg); padding: 12px; gap: 8px; }
    .inline-search-form select { width: 100%; border-right: none; border-bottom: 1px solid #EDEDED; padding-right: 20px; }
    .inline-search-form .search-input-group { width: 100%; padding-left: 0; }
    .inline-search-btn { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
}


/* ============================================================
   DEPARTMENTS — OFFICIAL ACADEMIC DESIGN
   ============================================================ */

/* ---- Hero: Official Look ---- */
.page-hero--official {
    padding: 100px 64px 60px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.page-hero--official .page-hero__title {
    color: #0F2027;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.page-hero--official .page-hero__subtitle {
    color: #4a5568;
    font-size: 1.15rem;
    max-width: 800px;
}

.page-hero--official .page-hero__breadcrumb a,
.page-hero--official .page-hero__breadcrumb span {
    color: #718096;
}

/* ---- Section Headers ---- */
.dept-section-header, .dept-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.dept-section-title, .dept-archive-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dept-section-title .accent-line, .dept-archive-title .accent-line {
    width: 4px;
    height: 28px;
    background: #E63946;
    border-radius: 2px;
}

.dept-section-title h2, .dept-archive-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F2027;
    margin: 0;
}

.dept-stats-total, .count-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 600;
}

/* ---- Grid Layout ---- */
.dept-official-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

/* ---- Card: Official Academic ---- */
.dept-official-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dept-official-card:hover {
    border-color: #cbd5e0;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dept-official-card__accent {
    height: 4px;
    background: #0F2027;
    width: 100%;
}

.dept-official-card__content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dept-official-card__header {
    margin-bottom: 20px;
}

.dept-official-code {
    display: inline-block;
    color: #E63946;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.dept-official-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0F2027;
    line-height: 1.3;
    margin: 0;
}

.dept-official-desc {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.dept-official-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f7fafc;
}

.dept-official-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
}

.dept-official-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F2027;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.dept-official-link:hover:not(.is-disabled) {
    color: #E63946;
}

.dept-official-link.is-disabled {
    color: #a0aec0;
    cursor: default;
    font-style: italic;
}

/* ---- Archive Header Specifics ---- */
.official-back-link {
    color: #718096;
    font-weight: 700;
    font-size: 0.9rem;
}

.official-back-link:hover {
    color: #0F2027;
}

/* ---- Empty States: Official ---- */
.official-empty-state, .official-empty-archive {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.official-empty-archive h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F2027;
    margin-bottom: 10px;
}

.official-empty-archive p {
    color: #718096;
    margin-bottom: 24px;
}

.official-btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #0F2027;
    color: #0F2027;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.official-btn-secondary:hover {
    background: #0F2027;
    color: #fff;
}

/* ---- Pagination: Official ---- */
.official-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ---- Responsive: Official ---- */
@media (max-width: 900px) {
    .page-hero--official { padding: 80px 32px 40px; }
    .page-hero--official .page-hero__title { font-size: 2.4rem; }
    .dept-section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}

@media (max-width: 640px) {
    .dept-official-grid { grid-template-columns: 1fr; }
    .dept-official-card__content { padding: 24px; }
}

