/* ============================================================
   Fakultas Modern — Main Stylesheet
   Mobile-first · CSS Variables · Ringan
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--link-color); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--primary-color); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.25;
    color: var(--dark-color);
    margin: 0 0 .6em;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
    position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
    position: fixed; top: 8px; left: 8px; z-index: 9999;
    background: var(--primary-color); color: #fff;
    padding: 10px 16px; border-radius: 6px; clip: auto;
    clip-path: none; height: auto; width: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all .2s ease;
    cursor: pointer;
    line-height: 1.2;
}
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--secondary-color); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.link-arrow { font-weight: 600; color: var(--primary-color); }
.link-arrow:hover { text-decoration: none; }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--dark-color);
    color: #cbd5e1;
    font-size: .85rem;
    padding: 8px 0;
}
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar__item { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; }
.top-bar__item:hover { color: #fff; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo img { max-height: 60px; width: auto; }
.site-title { font-size: 1.15rem; margin: 0; line-height: 1.2; }
.site-title a { color: var(--dark-color); }
.site-title a:hover { color: var(--primary-color); text-decoration: none; }
.site-university, .site-description { margin: 2px 0 0; font-size: .82rem; color: var(--muted-color); }

.main-navigation { flex: 1; display: flex; justify-content: flex-end; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    display: block;
    padding: 10px 14px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: .95rem;
    border-radius: 6px;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    background: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}
.primary-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s ease;
    z-index: 50;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-menu .sub-menu a {
    display: block;
    padding: 8px 12px;
    font-size: .9rem;
    color: var(--dark-color);
    border-radius: 6px;
}
.primary-menu .sub-menu a:hover { background: var(--light-color); color: var(--primary-color); text-decoration: none; }
.primary-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger { display: inline-flex; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark-color); border-radius: 2px; }

.header-actions { display: flex; gap: 6px; align-items: center; }
.header-actions button {
    background: transparent; border: 0; cursor: pointer;
    font-size: 1.1rem; padding: 8px; border-radius: 6px;
    color: var(--dark-color);
}
.header-actions button:hover { background: var(--light-color); color: var(--primary-color); }

.header-search { background: var(--light-color); border-top: 1px solid var(--border-color); padding: 16px 0; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
    position: fixed;
    top: 0; left: 0;
    width: 82%; max-width: 340px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow-md);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-nav__title { font-weight: 700; }
.mobile-nav__close { background: none; border: 0; font-size: 2rem; cursor: pointer; line-height: 1; }
.mobile-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--border-color); }
.mobile-menu a { display: block; padding: 12px 0; color: var(--dark-color); font-weight: 500; }
.mobile-menu .sub-menu { padding-left: 16px; }
.mobile-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 998;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--light-color); border-bottom: 1px solid var(--border-color); font-size: .85rem; padding: 10px 0; color: var(--muted-color); }
.breadcrumbs a { color: var(--muted-color); }
.breadcrumbs span[aria-current] { color: var(--dark-color); font-weight: 500; }

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; height: 70vh; min-height: 420px; max-height: 640px; overflow: hidden; background: var(--dark-color); }
.hero-slides { position: relative; height: 100%; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease;
    display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,64,175,.75), rgba(15,23,42,.6));
}
.hero-slide__content { position: relative; color: #fff; text-align: left; max-width: 760px; z-index: 2; }
.hero-slide__title { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 14px; }
.hero-slide__desc { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.5vw, 1.15rem); margin-bottom: 26px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.2); color: #fff;
    border: 0; width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 3;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5); border: 0; cursor: pointer; padding: 0;
}
.hero-dot.is-active { background: #fff; transform: scale(1.2); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section:nth-child(even) { background: var(--light-color); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header--inline { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 20px; flex-wrap: wrap; }
.section-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 8px; }
.section-title { margin: 0; }

/* ---------- About ---------- */
.about-grid, .dean-grid { display: grid; gap: 40px; align-items: center; }
.about-media img, .dean-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-media__placeholder, .dean-media__placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); border-radius: var(--radius); }

/* ---------- Stats ---------- */
.section-stats { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; }
.section-stats .section-title, .section-stats .stat-value { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat-card { padding: 22px; background: rgba(255,255,255,.12); border-radius: var(--radius); backdrop-filter: blur(4px); }
.stat-value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.stat-label { font-size: .9rem; opacity: .9; }

/* ---------- Programs ---------- */
.programs-grid { display: grid; gap: 24px; }
.program-card {
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-card__img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.program-card__body { padding: 20px; }
.program-card__title { font-size: 1.15rem; margin: 6px 0; }
.program-card__title a { color: var(--dark-color); }
.program-card__title a:hover { color: var(--primary-color); text-decoration: none; }
.badge {
    display: inline-block; background: var(--accent-color); color: #fff;
    font-size: .72rem; font-weight: 600; letter-spacing: .05em;
    padding: 3px 10px; border-radius: 999px;
}
.badge--muted { background: var(--light-color); color: var(--primary-color); }

/* ---------- Dean ---------- */
.dean-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px; margin: 0 0 20px; font-style: italic; color: var(--muted-color);
}
.dean-sign { display: flex; flex-direction: column; margin-bottom: 20px; }
.dean-sign strong { color: var(--dark-color); }
.dean-sign span { font-size: .85rem; color: var(--muted-color); }

/* ---------- News grid / post card ---------- */
.post-grid { display: grid; gap: 24px; }
.post-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .post-thumbnail img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat a { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--primary-color); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.post-card__title { font-size: 1.1rem; margin: 0 0 8px; }
.post-card__title a { color: var(--dark-color); }
.post-card__title a:hover { color: var(--primary-color); text-decoration: none; }
.post-card__meta { font-size: .82rem; color: var(--muted-color); display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-card__excerpt { font-size: .92rem; color: var(--muted-color); flex: 1; }

/* ---------- Announcements ---------- */
.announcement-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.announcement-item {
    display: flex; gap: 18px; padding: 18px;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); align-items: center;
}
.announcement-date {
    flex-shrink: 0; text-align: center; width: 64px;
    background: var(--primary-color); color: #fff;
    border-radius: var(--radius); padding: 10px 0;
}
.announcement-date .day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.announcement-date .month { font-size: .75rem; text-transform: uppercase; }
.announcement-body { flex: 1; }
.announcement-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.announcement-body h3 a { color: var(--dark-color); }
.announcement-body h3 a:hover { color: var(--primary-color); text-decoration: none; }
.announcement-meta { font-size: .78rem; color: var(--muted-color); margin-bottom: 4px; }
.announcement-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ---------- Agenda ---------- */
.agenda-grid { display: grid; gap: 20px; }
.agenda-card {
    display: flex; gap: 16px; padding: 18px;
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
}
.agenda-card__date {
    flex-shrink: 0; width: 70px; text-align: center;
    background: var(--light-color); color: var(--primary-color);
    border-radius: var(--radius); padding: 12px 0;
}
.agenda-card__date .day { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.agenda-card__date .month { font-size: .75rem; text-transform: uppercase; }
.agenda-card__body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.agenda-card__body h3 a { color: var(--dark-color); }
.agenda-meta { list-style: none; padding: 0; margin: 0 0 8px; font-size: .82rem; color: var(--muted-color); display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Academic ---------- */
.academic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.academic-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px; text-align: center;
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
    transition: transform .2s, border-color .2s;
}
.academic-card:hover { transform: translateY(-3px); border-color: var(--primary-color); text-decoration: none; }
.academic-card__icon { font-size: 1.8rem; margin-bottom: 8px; }
.academic-card__title { font-weight: 600; color: var(--dark-color); font-size: .95rem; }

/* ---------- Research ---------- */
.research-grid { display: grid; gap: 20px; }
.research-card {
    background: #fff; padding: 22px; border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.research-card h3 { font-size: 1.1rem; margin: 10px 0; }
.research-card h3 a { color: var(--dark-color); }
.research-meta { list-style: none; padding: 0; margin: 0 0 10px; font-size: .82rem; color: var(--muted-color); display: flex; gap: 12px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(15,23,42,.8));
    color: #fff; padding: 20px 12px 10px; font-size: .82rem;
    opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(15,23,42,.9);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer;
}

/* ---------- Video ---------- */
.video-wrapper { position: relative; aspect-ratio: 16/9; max-width: 900px; margin: 0 auto; }
.video-wrapper iframe, .video-wrapper video { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ---------- Sidebar / Widgets ---------- */
.site-content { padding: 40px 0; }
.site-content .site-main.container + .sidebar { margin-top: 40px; }
@media (min-width: 992px) {
    .site-content > .container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
}
.widget { margin-bottom: 28px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-color); display: inline-block; }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: var(--dark-color); font-weight: 500; font-size: .92rem; }
.widget-list a:hover { color: var(--primary-color); text-decoration: none; }
.widget-date { display: block; font-size: .78rem; color: var(--muted-color); margin-top: 2px; }

/* ---------- Single post ---------- */
.entry-header { margin-bottom: 20px; }
.entry-meta { font-size: .85rem; color: var(--muted-color); display: flex; gap: 14px; flex-wrap: wrap; }
.entry-content { font-size: 1.02rem; line-height: 1.75; }
.entry-content img, .entry-content iframe { border-radius: var(--radius); }
.entry-content blockquote { border-left: 4px solid var(--primary-color); background: var(--light-color); padding: 16px 20px; margin: 1em 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table th, .entry-content table td { border: 1px solid var(--border-color); padding: 10px; }
.entry-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); font-size: .85rem; }
.tags-links a { display: inline-block; background: var(--light-color); padding: 3px 10px; border-radius: 999px; margin: 0 4px 4px 0; font-size: .78rem; }
.post-navigation { margin: 40px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 16px; background: var(--light-color); border-radius: var(--radius); color: var(--dark-color); }
.post-navigation .nav-label { display: block; font-size: .75rem; color: var(--muted-color); text-transform: uppercase; }

/* Pagination */
.pagination, .navigation.pagination { margin: 40px 0; text-align: center; }
.pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    border-radius: 6px; background: var(--light-color); color: var(--dark-color);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary-color); color: #fff; text-decoration: none; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="number"], textarea, select {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border-color); border-radius: 8px;
    font-family: inherit; font-size: .95rem; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit {
    background: var(--primary-color); color: #fff;
    border: 0; padding: 0 20px; border-radius: 8px; font-weight: 600; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #cbd5e1; margin-top: 60px; }
.footer-widgets { padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-col .widget-title { color: #fff; border-bottom-color: var(--primary-color); }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 6px 0; font-size: .9rem; }
.footer-menu-list { list-style: none; padding: 0; margin: 0; }
.footer-menu-list li { padding: 5px 0; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); display: inline-flex;
    align-items: center; justify-content: center;
    color: #cbd5e1; font-weight: 700;
    transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--primary-color); color: #fff; text-decoration: none; }
.social-links--small a { width: 30px; height: 30px; font-size: .85rem; }
.top-bar .social-links a { background: rgba(255,255,255,.08); }
.top-bar .social-links a:hover { background: var(--primary-color); }

.site-info { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }
.site-info__inner { text-align: center; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-color); color: #fff; border: 0;
    cursor: pointer; font-size: 1.2rem; z-index: 90;
    box-shadow: var(--shadow-md);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .academic-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .programs-grid { grid-template-columns: repeat(3, 1fr); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .academic-grid { grid-template-columns: repeat(6, 1fr); }
    .stats-grid { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .about-grid, .dean-grid { grid-template-columns: 1fr 1fr; }
    .dean-grid { grid-template-columns: 400px 1fr; }
    .agenda-grid { grid-template-columns: repeat(2, 1fr); }
    .research-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .main-navigation { display: none; }
    .menu-toggle { display: inline-flex; }
    .primary-menu { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
    .announcement-item { flex-wrap: wrap; }
    .announcement-actions { width: 100%; flex-direction: row; justify-content: flex-end; }
    .top-bar__contact { gap: 10px; }
}

/* ---------- Dark mode ---------- */
body.dark-mode {
    --text-color: #e2e8f0;
    --muted-color: #94a3b8;
    --light-color: #1e293b;
    --white: #0f172a;
    --border-color: #334155;
    background: #0f172a;
    color: var(--text-color);
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 { color: #f1f5f9; }
body.dark-mode .site-header, body.dark-mode .widget, body.dark-mode .post-card,
body.dark-mode .program-card, body.dark-mode .agenda-card, body.dark-mode .research-card,
body.dark-mode .announcement-item, body.dark-mode .academic-card,
body.dark-mode .mobile-nav { background: #1e293b; color: #e2e8f0; }
body.dark-mode .site-title a, body.dark-mode .post-card__title a,
body.dark-mode .program-card__title a, body.dark-mode .primary-menu > li > a { color: #f1f5f9; }