:root {
    --navy: #0a2472;
    --navy-dark: #061a52;
    --blue: #1656c9;
    --red: #e2001a;
    --gold: #f4b400;
    --light: #f5f7fb;
    --gray: #6b7280;
    --border: #e5e9f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Topbar */
.topbar {
    background: var(--navy-dark);
    color: #cfd8f0;
    font-size: 13px;
    padding: 6px 0;
}
.topbar .container { display: flex; gap: 24px; align-items: center; }
.topbar a { color: #cfd8f0; }

/* Navbar */
.navbar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.brand img { height: 48px; }
.brand-text .title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-text .subtitle { font-size: 12px; color: #cfd8f0; }

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    background: none;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.nav-menu > li.active > a { background: rgba(255,255,255,0.15); }
.nav-menu .nav-cta { background: var(--red); font-weight: 700; }
.nav-menu .nav-cta:hover { background: #c50017; }

.dropdown { position: relative; }
.dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(10,36,114,0.2);
    padding: 8px;
    margin-top: 0;
}
.dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}
.dropdown-panel a:hover { background: var(--light); color: var(--red); }

.nav-toggle { display: none; }

.search-form {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px; padding: 2px 4px 2px 10px; margin-left: 6px;
}
.search-form input {
    background: none; border: none; outline: none; color: #fff;
    font: inherit; font-size: 13.5px; width: 120px;
}
.search-form input::placeholder { color: #cfd8f0; }
.search-form button {
    background: none; border: none; color: #fff; cursor: pointer;
    font-size: 15px; padding: 6px 8px; border-radius: 4px;
}
.search-form button:hover { background: rgba(255,255,255,0.15); }
.search-form-page {
    max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
}
.search-form-page input { color: var(--navy); width: 100%; }
.search-form-page input::placeholder { color: var(--gray); }
.search-form-page button { color: var(--blue); }
.search-form-page button:hover { background: var(--light); }
mark { background: #fff2b8; color: var(--navy); padding: 0 2px; border-radius: 2px; }

/* Hero */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(244,180,0,0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(226,0,26,0.25) 0%, transparent 45%),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--blue) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 40px);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    padding: 90px 24px 110px;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 17px; color: #dfe6f7; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(226,0,26,0.35); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn:hover { transform: translateY(-2px); }

.wave { display: block; width: 100%; height: 60px; margin-top: -2px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .tag {
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin: 8px 0 12px; }
.section-head p { color: var(--gray); font-size: 15px; }

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -70px;
    position: relative;
    z-index: 5;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(10,36,114,0.12);
    border-top: 4px solid var(--red);
}
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat-card .label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 16px 32px rgba(10,36,114,0.12); transform: translateY(-3px); }
.card .icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
    margin-bottom: 16px;
}
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray); }

/* News */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.news-card .thumb {
    height: 140px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.news-card .body { padding: 18px 20px 22px; }
.news-card .date { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.news-card h3 { font-size: 15px; color: var(--navy); margin: 8px 0 12px; line-height: 1.4; }
.news-card .more { font-size: 13px; font-weight: 700; color: var(--blue); }

/* Page header (interior pages) */
.page-header {
    background-image: linear-gradient(120deg, rgba(6,26,82,.92), rgba(10,36,114,.88) 60%, rgba(22,86,201,.90)), url('/images/gedung-kuliah-terpadu.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.page-header .crumb { font-size: 13px; color: #cfd8f0; margin-bottom: 10px; }
.page-header .crumb a { color: #cfd8f0; font-weight: 600; }
.page-header .crumb a:hover { color: #fff; text-decoration: underline; }
.page-header .crumb .crumb-sep { margin: 0 4px; opacity: .6; }
.page-header .crumb span:not(.crumb-sep) { color: #cfd8f0; }
.page-header h1 { font-size: 32px; font-weight: 800; }

/* Content blocks */
.prose h2 { color: var(--navy); font-size: 22px; margin: 32px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; color: #333; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: #333; }
.prose li { margin-bottom: 6px; }

.quote-box {
    background: var(--light);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: 24px 28px;
    font-style: italic;
    color: var(--navy);
    font-weight: 600;
    font-size: 17px;
    margin: 20px 0;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Org chart */
.org-tier { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.org-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    text-align: center;
    min-width: 210px;
    box-shadow: 0 8px 20px rgba(10,36,114,0.08);
}
.org-card .role { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.org-card .name { font-weight: 700; color: var(--navy); margin-top: 6px; }

/* Dosen grid */
.dosen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dosen-card { text-align: center; }
.dosen-avatar {
    width: 100%; aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800;
    margin-bottom: 12px;
}
.dosen-card .name { font-weight: 700; color: var(--navy); font-size: 14px; }
.dosen-card .role { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* Curriculum table */
.sem-block { margin-bottom: 36px; }
.sem-block h3 {
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
}
table.kurikulum { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.kurikulum th, table.kurikulum td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
table.kurikulum th { background: var(--light); color: var(--navy); font-weight: 700; }
table.kurikulum td.center, table.kurikulum th.center { text-align: center; }
table.kurikulum tr.total td { background: #fff8e6; font-weight: 700; color: var(--navy); }

/* Doc list */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 16px 20px;
}
.doc-item .doc-icon {
    width: 42px; height: 42px; border-radius: 8px;
    background: #fdeaea; color: var(--red);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
    flex-shrink: 0;
}
.doc-item .doc-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.doc-item .doc-desc { font-size: 12.5px; color: var(--gray); }
.doc-item .doc-action { margin-left: auto; }
.doc-item .doc-action a {
    font-size: 13px; font-weight: 700; color: var(--blue);
    border: 1px solid var(--blue); padding: 7px 16px; border-radius: 6px;
}
.doc-item .doc-action a:hover { background: var(--blue); color: #fff; }
.doc-item .doc-kategori {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; color: var(--blue); background: #eaf1fb;
    padding: 2px 8px; border-radius: 4px; margin: 2px 0 4px;
}
.doc-item .doc-date { font-size: 11.5px; color: var(--gray); margin-top: 2px; }

/* Prestasi */
.prestasi-list { display: flex; flex-direction: column; gap: 12px; }
.prestasi-item {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 16px 20px;
}
.prestasi-item .prestasi-icon {
    width: 42px; height: 42px; border-radius: 8px;
    background: #fff8e6; color: var(--gold);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    flex-shrink: 0;
}
.prestasi-item .prestasi-thumb {
    width: 120px; align-self: stretch;
    min-height: 90px; max-height: 220px;
    border-radius: 8px;
    object-fit: cover; flex-shrink: 0; cursor: zoom-in;
    border: 1px solid var(--border);
}
.prestasi-item .prestasi-name { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.prestasi-item .prestasi-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.prestasi-item .prestasi-kategori {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; color: var(--blue); background: #eaf1fb;
    padding: 2px 8px; border-radius: 4px;
}
.prestasi-item .prestasi-mahasiswa { font-size: 12px; color: var(--gray); align-self: center; }
.prestasi-item .prestasi-desc { font-size: 12.5px; color: var(--gray); margin-bottom: 4px; }
.prestasi-item .prestasi-date { font-size: 11.5px; color: var(--gray); }
.prestasi-item .prestasi-action { margin-left: auto; flex-shrink: 0; }
.prestasi-item .prestasi-action a {
    font-size: 13px; font-weight: 700; color: var(--blue);
    border: 1px solid var(--blue); padding: 7px 16px; border-radius: 6px;
}
.prestasi-item .prestasi-action a:hover { background: var(--blue); color: #fff; }

/* Mitra Industri */
.mitra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mitra-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mitra-card img { max-width: 100%; max-height: 64px; object-fit: contain; }
.mitra-fallback {
    height: 64px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--navy); font-size: 13px;
}
.mitra-name { font-weight: 700; color: var(--navy); font-size: 13.5px; }
.mitra-name a { color: inherit; }
.mitra-name a:hover { color: var(--blue); }
.mitra-bidang { font-size: 12px; color: var(--gray); }

/* Testimoni */
.testimoni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimoni-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.testimoni-kutipan { font-size: 13.5px; color: var(--navy); font-style: italic; line-height: 1.6; flex: 1; }
.testimoni-person { display: flex; align-items: center; gap: 12px; }
.testimoni-person img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.testimoni-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px;
}
.testimoni-nama { font-weight: 700; color: var(--navy); font-size: 13.5px; }
.testimoni-nama span { font-weight: 400; color: var(--gray); font-size: 12px; }
.testimoni-posisi { font-size: 12px; color: var(--gray); }

/* PMB */
.pmb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.pmb-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 24px;
}
.pmb-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.pmb-card p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }
.pmb-actions { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.pmb-actions .btn { padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 14px; }

/* Kontak */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px;
    display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .ic {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    background: var(--light); color: var(--red);
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
}
.contact-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--gray); }

/* Footer */
footer { background: var(--navy-dark); color: #b7c2e0; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { height: 44px; }
.footer-brand .title { color: #fff; font-weight: 700; font-size: 15px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
footer ul li { margin-bottom: 9px; font-size: 13.5px; }
.footer-social {
    display: inline-flex; align-items: center; gap: 6px;
    color: #cfd8f0; font-size: 13px; font-weight: 600;
}
.footer-social:hover { color: var(--gold); }
footer a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 12.5px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 28px rgba(10,36,114,0.14);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px 18px 14px;
    background: linear-gradient(0deg, rgba(6,26,82,0.9), rgba(6,26,82,0));
    color: #fff; font-weight: 700; font-size: 14px;
}
.gallery-item img { cursor: zoom-in; }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6,10,26,0.92);
    align-items: center; justify-content: center;
    padding: 64px 20px 20px;
}
.lightbox-overlay.open { display: flex; flex-direction: column; }
.lightbox-overlay img {
    max-width: calc(100vw - 40px); max-height: calc(100vh - 140px);
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-cap { color: #cfd8f0; font-size: 14px; margin-top: 16px; text-align: center; }
.lightbox-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; width: 40px; height: 40px; border-radius: 50%;
    font-size: 18px; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Video profile */
.video-wrap {
    max-width: 860px; margin: 0 auto;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 45px rgba(10,36,114,0.2);
    background: #000;
}
.video-wrap video { width: 100%; display: block; max-height: 484px; }

/* Accreditation */
.accred-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.accred-block > * { min-width: 0; }
.accred-block img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 36px rgba(10,36,114,0.18); }
.accred-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff8e6; color: #8a6400; border: 1px solid #f4d98a;
    padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    margin-bottom: 14px;
}
.accred-block h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.accred-block p { color: var(--gray); font-size: 15px; margin-bottom: 10px; }
.accred-meta { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.accred-meta div strong { display: block; color: var(--navy); font-size: 15px; }
.accred-meta div span { font-size: 12.5px; color: var(--gray); }
.accred-download {
    display: inline-block; margin-top: 20px; font-size: 13.5px; font-weight: 700;
    color: var(--blue); border: 1px solid var(--blue); padding: 9px 18px; border-radius: 6px;
}
.accred-download:hover { background: var(--blue); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle { display: block; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--navy-dark);
        padding: 10px;
        box-shadow: 0 16px 30px rgba(0,0,0,0.25);
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a, .nav-menu > li > button { width: 100%; justify-content: space-between; }
    .search-form { margin: 4px 0 0; padding: 2px 4px 2px 12px; }
    .search-form input { width: 100%; }
    .dropdown-panel {
        display: none;
        position: static;
        background: rgba(255,255,255,0.06);
        box-shadow: none;
        margin-top: 2px;
        padding: 4px;
    }
    .dropdown.open .dropdown-panel { display: block; }
    .dropdown-panel a { color: #fff; }
    .dropdown-panel a:hover { background: rgba(255,255,255,0.12); color: var(--gold); }

    .stats-grid, .cards-grid, .news-list, .dosen-grid, .gallery-grid, .mitra-grid, .testimoni-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col, .contact-grid, .footer-grid, .accred-block { grid-template-columns: 1fr; }
    .accred-block img { max-height: 320px; width: 100%; object-fit: cover; }
    .hero h1 { font-size: 32px; }
}
@media (max-width: 560px) {
    .stats-grid, .cards-grid, .news-list, .dosen-grid, .gallery-grid, .mitra-grid, .testimoni-grid, .pmb-grid { grid-template-columns: 1fr; }
    .prestasi-item .prestasi-thumb { width: 76px; min-height: 76px; }
}

/* Chatbot Mia */
.chatbot-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
}

.chatbot-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 36, 114, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}
.chatbot-toggle:hover { transform: scale(1.06); }

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 340px;
    max-width: calc(100vw - 40px);
    height: 460px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(10, 20, 60, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}
.chatbot-panel[hidden] {
    display: none;
}

.chatbot-header {
    background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chatbot-title { font-weight: 700; font-size: 15px; }
.chatbot-subtitle { font-size: 11.5px; color: #cfd8f0; }
.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--light);
}

.chatbot-msg {
    max-width: 85%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    white-space: pre-line;
}
.chatbot-msg-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    color: #1a1a2e;
    border-bottom-left-radius: 3px;
}
.chatbot-msg-user {
    align-self: flex-end;
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 3px;
}
.chatbot-typing { opacity: 0.6; font-style: italic; }

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: #fff;
}
.chatbot-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
}
.chatbot-input:focus { border-color: var(--blue); }
.chatbot-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}
.chatbot-send:hover { background: var(--navy); }

@media (max-width: 480px) {
    .chatbot-widget { right: 14px; bottom: 14px; }
    .chatbot-panel { width: calc(100vw - 28px); height: calc(100vh - 120px); bottom: 70px; }
    .lightbox-overlay { padding: 56px 12px 16px; }
    .lightbox-overlay img { max-width: calc(100vw - 24px); max-height: calc(100vh - 160px); }
    .lightbox-close { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 16px; }
    .lightbox-cap { font-size: 12.5px; margin-top: 10px; }
}
