/* ============================================================
   Universitas Islam Sumatera Barat — Gaya situs utama
   Aksen utama : Ungu   (#4C1D95 / #6D28D9 / #7C3AED)
   Aksen kedua : Kuning pekat (#F5A300 / #D98E00)
   ============================================================ */

:root {
    --ungu-900: #2E1065;
    --ungu-800: #3B0F80;
    --ungu-700: #4C1D95;
    --ungu-600: #6D28D9;
    --ungu-500: #7C3AED;
    --ungu-100: #EDE9FE;
    --ungu-050: #F7F4FF;
    --kuning: #F5A300;
    --kuning-600: #D98E00;
    --kuning-100: #FFF4DC;
    --ink: #1F1B3A;
    --muted: #5F5A78;
    --line: #E6E2F2;
    --bg: #FFFFFF;
    --bg-soft: #F8F7FC;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 10px rgba(var(--ungu-900-rgb), .06);
    --shadow: 0 12px 30px rgba(var(--ungu-900-rgb), .10);
    --shadow-lg: 0 24px 60px rgba(var(--ungu-900-rgb), .16);
    --wrap: 1200px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ungu-600); text-decoration: none; }
a:hover { color: var(--kuning-600); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------------------------------------------------- tombol */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; border: 0; cursor: pointer;
    transition: .22s ease; text-align: center; line-height: 1.2;
}
.btn-ungu { background: linear-gradient(135deg, var(--ungu-600), var(--ungu-800)); color: #fff; box-shadow: 0 10px 24px rgba(var(--ungu-rgb), .28); }
.btn-ungu:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--ungu-rgb), .38); }
.btn-kuning { background: var(--kuning); color: #3a2600; box-shadow: 0 10px 24px rgba(var(--kuning-rgb), .3); }
.btn-kuning:hover { color: #3a2600; background: var(--kuning-600); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn-outline:hover { color: var(--ungu-900); background: #fff; border-color: #fff; }
.btn-garis { background: transparent; color: var(--ungu-700); border: 1.5px solid var(--ungu-100); }
.btn-garis:hover { color: var(--ungu-700); background: var(--ungu-050); border-color: var(--ungu-500); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------- topbar */
.topbar {
    background: linear-gradient(90deg, var(--ungu-900), var(--ungu-700));
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: rgba(255, 255, 255, .88); }
.topbar a:hover { color: var(--kuning); }
.topbar-sosial { display: flex; gap: 12px; align-items: center; }
.topbar-sosial a { font-size: .78rem; letter-spacing: .04em; }

/* ---------------------------------------------------------- navbar */
.navbar {
    background: #fff;
    box-shadow: 0 4px 20px rgba(var(--ungu-900-rgb), .07);
    position: sticky; top: 0; z-index: 60;
}
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 46px; height: 46px; }
.brand-text { line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.brand-text .b1 { display: block; font-size: 1.06rem; color: var(--ungu-800); text-transform: uppercase; }
.brand-text .b2 { display: block; font-size: .82rem; color: var(--kuning); font-weight: 700; letter-spacing: .01em; }
.brand-text.small .b1 { font-size: .95rem; }
.brand-text.small .b2 { font-size: .74rem; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 14px; font-size: .93rem; font-weight: 600;
    color: var(--ink); border-radius: 10px;
}
.nav-menu > li > a:hover, .nav-menu > li.aktif > a { color: var(--ungu-700); background: var(--ungu-050); }
.nav-menu .caret { font-size: .6rem; opacity: .7; }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: .2s ease; z-index: 70; border-top: 3px solid var(--kuning);
}
.nav-menu > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px; border-radius: 9px; color: var(--ink);
    font-size: .9rem; font-weight: 500;
}
.dropdown a:hover { background: var(--ungu-050); color: var(--ungu-700); }
.dropdown a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--kuning); margin-top: 9px; flex: 0 0 auto; }
.nav-aksi { display: flex; align-items: center; gap: 12px; }
/* tombol PMB di navbar: sudut hanya sedikit melengkung */
.btn-pmb { border-radius: 11px; padding: 12px 22px; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ungu-700); border-radius: 2px; }

/* ---------------------------------------------------------- hero slider */
.hero { position: relative; overflow: hidden; background: var(--ungu-900); }
.slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease, transform .7s ease;
    transform: scale(1.02); pointer-events: none;
}
.slide.aktif { opacity: 1; position: relative; transform: scale(1); pointer-events: auto; }
.slide-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(1000px 480px at 88% 12%, rgba(var(--kuning-rgb), .30), transparent 60%),
        radial-gradient(760px 460px at 6% 90%, rgba(var(--ungu-500-rgb), .55), transparent 65%),
        linear-gradient(120deg, var(--ungu-900) 0%, var(--ungu-700) 55%, var(--ungu-600) 100%);
    background-size: cover; background-position: center;
}
.slide-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .5;
}
.hero-inner {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
    /* hanya padding atas/bawah — padding kiri/kanan tetap milik .wrap (jangan ditimpa dengan shorthand) */
    padding-top: 74px; padding-bottom: 110px;
}
.hero-teks { color: #fff; max-width: 620px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--kuning); color: #40270a;
    padding: 7px 16px; border-radius: 999px; font-size: .78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px;
}
.hero-teks h1 { color: #fff; font-size: clamp(1.85rem, 3.4vw, 2.9rem); margin-bottom: 16px; font-weight: 800; }
.hero-teks p { color: rgba(255, 255, 255, .86); font-size: 1.02rem; margin-bottom: 28px; }
.hero-aksi { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-gambar { position: relative; }
.hero-gambar img {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-gambar::before {
    content: ''; position: absolute; inset: -16px -16px 16px 16px;
    border: 2px dashed rgba(var(--kuning-rgb), .55); border-radius: var(--radius-lg); z-index: -1;
}

.hero-nav {
    position: absolute; bottom: 34px; left: 0; right: 0; z-index: 20;
}
.hero-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
    width: 32px; height: 6px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .35); transition: .25s;
}
.hero-dots button.aktif { background: var(--kuning); width: 52px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08);
    color: #fff; font-size: 1rem; transition: .2s;
}
.hero-arrows button:hover { background: var(--kuning); color: #3a2600; border-color: var(--kuning); }

/* ---------------------------------------------------------- link cepat */
/* Kartu link cepat diletakkan DI BAWAH banner (tidak lagi menumpuk ke atasnya) */
.link-cepat { position: relative; margin-top: 0; padding-top: 40px; z-index: 30; }
.link-cepat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lc-card {
    background: #fff; border-radius: var(--radius); padding: 20px 22px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
    border-left: 4px solid var(--kuning); transition: .22s;
}
.lc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lc-ikon {
    width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
    background: var(--ungu-050); color: var(--ungu-700);
    display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.lc-card strong { display: block; font-size: .98rem; }
.lc-card span { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------- section umum */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section.un-gu { background: linear-gradient(120deg, var(--ungu-900), var(--ungu-700)); color: #fff; }
.section-head { margin-bottom: 42px; }
.section-head.kiri { text-align: left; }
.section-head.center { text-align: center; }
.section-label {
    display: inline-block; color: var(--kuning); font-weight: 800; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.section-head.kiri p { margin: 0; }
.section-head h2::after {
    content: ''; display: block; width: 68px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--ungu-600), var(--kuning)); margin-top: 14px;
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section.un-gu .section-head p { color: rgba(255, 255, 255, .78); }
.baris-judi { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }

/* ---------------------------------------------------------- kartu berita */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* grid kartu program studi: tetap 2 kolom sampai layar sangat kecil */
.grid-prodi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* .berita-thumb dipakai untuk thumbnail kecil (mis. daftar berita lain di sidebar) */
.berita-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--ungu-050); overflow: hidden; }
.berita-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ungu-700), var(--ungu-500));
}
.thumb-fallback::after {
    content: ''; width: 52%; height: 52%; opacity: .5;
    background: no-repeat center/contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5A300'%3E%3Cpath d='M12 3 1 9l11 6 9-4.91V17h2V9L12 3zm-6 9.2V16c0 1.66 2.69 3 6 3s6-1.34 6-3v-3.8l-6 3.27-6-3.27z'/%3E%3C/svg%3E");
}
.badge-kategori {
    position: absolute; top: 14px; left: 14px; background: var(--kuning); color: #40270a;
    padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
}
/* ---------------------------------------------------------- agenda & pengumuman */
.panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 24px; background: linear-gradient(120deg, var(--ungu-700), var(--ungu-500)); color: #fff;
}
.panel-head h3 { margin: 0; font-size: 1.08rem; color: #fff; }
.panel-head a { color: var(--kuning); font-size: .82rem; font-weight: 700; }
.panel-body { padding: 10px 24px 24px; }

.agenda-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-tgl {
    flex: 0 0 auto; width: 68px; border-radius: 12px; overflow: hidden; text-align: center;
    background: var(--ungu-050); border: 1px solid var(--ungu-100);
}
.agenda-tgl .hari { background: var(--ungu-700); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.agenda-tgl .tgl { display: block; font-size: 1.4rem; font-weight: 800; color: var(--ungu-800); line-height: 1.25; }
.agenda-tgl .bln { display: block; font-size: .7rem; color: var(--kuning-600); font-weight: 700; padding-bottom: 6px; text-transform: uppercase; }
.agenda-isi h4 { font-size: .98rem; margin-bottom: 6px; }
.agenda-isi h4 a { color: var(--ink); }
.agenda-isi h4 a:hover { color: var(--ungu-700); }
.agenda-isi ul { margin: 0; padding-left: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.agenda-isi li { display: flex; gap: 8px; }

.pengumuman-list { list-style: none; margin: 0; padding: 0; }
.pengumuman-list li { padding: 16px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 14px; }
.pengumuman-list li:last-child { border-bottom: 0; }
.pen-ikon {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
    background: var(--kuning-100); color: var(--kuning-600); display: grid; place-items: center;
    font-weight: 800; font-size: .82rem;
}
.pengumuman-list h4 { font-size: .95rem; margin-bottom: 4px; }
.pengumuman-list h4 a { color: var(--ink); }
.pengumuman-list h4 a:hover { color: var(--ungu-700); }
.pengumuman-list span { font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------- program studi */
.prodi-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    padding: 26px 24px; box-shadow: var(--shadow-sm); transition: .24s; position: relative; overflow: hidden;
}
.prodi-card::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 5px;
    background: linear-gradient(180deg, var(--ungu-600), var(--kuning));
}
.prodi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prodi-jenjang {
    display: inline-block; background: var(--ungu-100); color: var(--ungu-700);
    padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; margin-bottom: 12px;
}
.prodi-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.prodi-fak { font-size: .82rem; color: var(--kuning-600); font-weight: 700; margin-bottom: 12px; }
.prodi-card p { font-size: .88rem; color: var(--muted); }
.prodi-akreditasi { font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }

/* ---------------------------------------------------------- kartu program studi (bergambar) */
.prodi-tile {
    position: relative; display: flex; overflow: hidden; isolation: isolate;
    min-height: 196px; padding: 22px 26px 24px; border-radius: 18px;
    background-color: var(--pc, #6B7280); color: var(--pc-teks, #fff);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transition: transform .24s ease, box-shadow .24s ease; text-decoration: none;
}
.prodi-tile:hover, .prodi-tile:focus-visible {
    transform: translateY(-5px); color: var(--pc-teks, #fff);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
/* saat tanpa foto: beri sedikit kesan gradasi seperti referensi */
.prodi-tile.tanpa-foto {
    background-image:
        radial-gradient(130% 110% at 100% 0%, rgba(255, 255, 255, .24), transparent 58%),
        linear-gradient(150deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .10));
}

/* lapisan foto: abu-abu + warna kartu (duotone), terpisah dari latar kartu */
.prodi-tile-media {
    position: absolute; inset: 0; isolation: isolate;
    /* kekuatan foto diatur dari panel admin (default 15% = foto sangat samar) */
    opacity: var(--pc-foto, .15);
}
.prodi-tile-media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(1.04);
}
.prodi-tile-media::after {
    content: ''; position: absolute; inset: 0;
    background: var(--pc, #6B7280); mix-blend-mode: multiply;
}

/* bulatan dekoratif di kanan bawah */
.prodi-tile-bulat {
    position: absolute; right: -46px; bottom: -70px; width: 208px; height: 208px;
    border-radius: 50%; background: var(--pc-bulat, rgba(255, 255, 255, .16));
}
.prodi-tile-bulat.kecil { right: 62px; bottom: -118px; width: 156px; height: 156px; }

.prodi-tile-isi {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    width: 100%; justify-content: space-between;
}
.prodi-tile-ikon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--pc-ikon, rgba(0, 0, 0, .2)); margin-bottom: 12px;
    backdrop-filter: blur(2px);
}
.prodi-tile-ikon .ikon-svg { width: 23px; height: 23px; }
.prodi-tile-judul {
    font-size: 1.14rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
    color: inherit; margin-top: auto;
}
.prodi-tile-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    font-size: .88rem; font-weight: 600; color: inherit; opacity: .95;
}
.prodi-tile-link span { transition: transform .2s ease; }
.prodi-tile:hover .prodi-tile-link span { transform: translateX(4px); }

/* ---------------------------------------------------------- kartu berita (box, gambar, tanggal, judul) */
.berita-kartu {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    transition: transform .24s ease, box-shadow .24s ease;
}
.berita-kartu:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ungu-100); }
.berita-kartu-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.berita-kartu-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ungu-050); overflow: hidden; }
.berita-kartu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.berita-kartu-isi { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.berita-kartu-tgl {
    font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.berita-kartu-tgl .pisah { opacity: .45; }
.berita-kartu-tgl .kategori { color: var(--ungu-700); font-weight: 700; }
.berita-kartu-judul {
    font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.berita-kartu:hover .berita-kartu-judul { color: var(--ungu-700); }

/* ---------------------------------------------------------- slider berita */
.slider-berita { position: relative; }
.slider-berita-track {
    display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none;
}
.slider-berita-track::-webkit-scrollbar { display: none; }
/* PC: 4 box terlihat */
.slider-berita-track > .berita-kartu {
    flex: 0 0 calc((100% - 3 * 22px) / 4); scroll-snap-align: start;
}
.slider-nav { display: flex; gap: 8px; }
.slider-nav button {
    width: 42px; height: 42px; border-radius: 11px; cursor: pointer; font-size: 1rem;
    border: 1px solid var(--line); background: #fff; color: var(--ungu-700);
    display: grid; place-items: center; transition: .18s;
}
.slider-nav button:hover { background: var(--ungu-700); color: #fff; border-color: var(--ungu-700); }
.slider-nav button:disabled { opacity: .38; cursor: default; background: #fff; color: var(--muted); border-color: var(--line); }
.slider-nav.tersembunyi { display: none; }

/* ---------------------------------------------------------- statistik */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-item {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); padding: 26px 24px; transition: .24s;
}
.stat-item:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.stat-nilai { font-size: 2.3rem; font-weight: 800; color: var(--kuning); line-height: 1; display: block; margin-bottom: 10px; }
.stat-item strong { display: block; font-size: 1rem; margin-bottom: 6px; color: #fff; }
.stat-item span { font-size: .85rem; color: rgba(255, 255, 255, .74); }

/* ---------------------------------------------------------- campus life & cta */
.cl-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: .24s; }
.cl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cl-thumb { aspect-ratio: 4 / 3; background: var(--ungu-050); }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-body { padding: 20px 22px 24px; }
.cl-body h3 { font-size: 1rem; margin-bottom: 8px; }
.cl-body p { font-size: .87rem; color: var(--muted); margin: 0; }

.cta {
    background: linear-gradient(120deg, var(--ungu-800), var(--ungu-600));
    border-radius: var(--radius-lg); padding: 44px 46px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta::after {
    content: ''; position: absolute; right: -70px; top: -70px; width: 250px; height: 250px;
    border-radius: 50%; background: rgba(var(--kuning-rgb), .22);
}
.cta h2 { color: #fff; margin-bottom: 8px; position: relative; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; position: relative; }
.cta .btn { position: relative; flex: 0 0 auto; }

/* ---------------------------------------------------------- halaman dalam */
.page-hero {
    background:
        radial-gradient(700px 320px at 90% 0%, rgba(var(--kuning-rgb), .25), transparent 60%),
        linear-gradient(120deg, var(--ungu-900), var(--ungu-600));
    color: #fff; padding: 74px 0 66px; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .5;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 720px; margin: 0; }
.crumb { font-size: .84rem; margin-bottom: 16px; color: rgba(255, 255, 255, .75); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--kuning); }

.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.konten { font-size: 1rem; }
.konten h3 { margin-top: 32px; color: var(--ungu-800); }
.konten ul, .konten ol { padding-left: 22px; margin-bottom: 1.2em; }
.konten li { margin-bottom: 8px; }
.konten img { border-radius: var(--radius); margin: 20px 0; }
.konten blockquote {
    margin: 24px 0; padding: 18px 22px; background: var(--ungu-050);
    border-left: 4px solid var(--kuning); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}
.table-konten { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .92rem; }
.table-konten th, .table-konten td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.table-konten th { background: var(--ungu-050); color: var(--ungu-800); }

.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px; }
.sidebar-card h3 { background: var(--ungu-700); color: #fff; margin: 0; padding: 15px 20px; font-size: .98rem; }
.sidebar-card ul { list-style: none; margin: 0; padding: 10px 12px 14px; }
.sidebar-card li a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 10px; border-radius: 9px; color: var(--ink); font-size: .9rem; }
.sidebar-card li a:hover { background: var(--ungu-050); color: var(--ungu-700); }
.sidebar-card li.aktif a { background: var(--ungu-050); color: var(--ungu-700); font-weight: 700; }

.info-list { list-style: none; margin: 0; padding: 18px 20px; font-size: .9rem; }
.info-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--muted); min-width: 92px; }
.info-list .v { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- form publik */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
    font-family: var(--font); font-size: .93rem; color: var(--ink); background: #fff; transition: .18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--ungu-500); box-shadow: 0 0 0 4px rgba(var(--ungu-500-rgb), .12);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.notif { border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; margin-bottom: 24px; }
.notif.sukses { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.notif.gagal { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------------------------------------------------------- footer */
.footer { background: var(--ungu-900); color: rgba(255, 255, 255, .76); padding: 68px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--kuning); border-radius: 3px; }
.footer p { font-size: .88rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; font-size: .88rem; }
.footer a { color: rgba(255, 255, 255, .76); }
.footer a:hover { color: var(--kuning); }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .brand-text .b1 { color: #fff; }
.footer-sosial { display: flex; gap: 10px; margin-top: 18px; }
.footer-sosial a {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: .78rem; font-weight: 700;
}
.footer-sosial a:hover { background: var(--kuning); color: #3a2600; }
.footer-bawah {
    border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: .82rem;
}

/* ---------------------------------------------------------- detail berita */
.artikel-head { margin-bottom: 26px; }
.artikel-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.artikel-gambar { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; }
.berita-lain { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.berita-lain:last-child { border-bottom: 0; }
.berita-lain .t { width: 74px; height: 58px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--ungu-050); }
.berita-lain .t img { width: 100%; height: 100%; object-fit: cover; }
.berita-lain h4 { font-size: .9rem; margin-bottom: 4px; }
.berita-lain h4 a { color: var(--ink); }
.berita-lain span { font-size: .76rem; color: var(--muted); }

.paginasi { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.paginasi a, .paginasi span {
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line);
    display: inline-grid; place-items: center; font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff;
}
.paginasi a:hover { border-color: var(--ungu-500); color: var(--ungu-700); }
.paginasi .aktif { background: var(--ungu-700); color: #fff; border-color: var(--ungu-700); }

.tab-kategori { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-kategori a {
    padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
    font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff;
}
.tab-kategori a.aktif, .tab-kategori a:hover { background: var(--ungu-700); color: #fff; border-color: var(--ungu-700); }

.kosong { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------------------------------------------------------- responsif */
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    /* PC kecil / tablet: berita 3 box, prodi 2 kolom */
    .slider-berita-track > .berita-kartu { flex: 0 0 calc((100% - 2 * 22px) / 3); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 14px 18px 22px;
        box-shadow: var(--shadow); display: none; max-height: 76vh; overflow-y: auto;
    }
    .nav-menu.buka { display: flex; }
    .nav-menu > li > a { justify-content: space-between; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        display: none; padding: 4px 0 12px 12px; border-top: 0;
    }
    .nav-menu > li.buka > .dropdown { display: block; }
    .hero-inner {
        grid-template-columns: 1fr; gap: 26px;
        padding-top: 40px; padding-bottom: 94px;
        padding-left: 26px; padding-right: 26px;
    }
    .hero-gambar { order: -1; }
    /* gambar tampil utuh (tanpa dipotong) — tinggi mengikuti rasio aslinya */
    .hero-gambar img { width: 100%; height: auto; max-height: none; object-fit: contain; }
    .hero-gambar::before { display: none; }
    .hero-nav { bottom: 26px; }
    .link-cepat-grid { grid-template-columns: 1fr; }
    .link-cepat { padding-top: 30px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-prodi { grid-template-columns: repeat(2, 1fr); }
    /* mobile: 2 box berita terlihat */
    .slider-berita-track { gap: 16px; }
    .slider-berita-track > .berita-kartu { flex: 0 0 calc((100% - 16px) / 2); }
    .cta { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
    .section { padding: 58px 0; }
    .baris-judi { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .grid-4, .grid-3, .grid-2, .stat-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    /* kartu program studi tetap 2 kolom di ponsel */
    .grid-prodi { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .prodi-tile { min-height: 0; padding: 14px 14px 16px; border-radius: 14px; }
    .prodi-tile-ikon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 8px; }
    .prodi-tile-ikon .ikon-svg { width: 19px; height: 19px; }
    .prodi-tile-judul { font-size: .9rem; }
    .prodi-tile-link { font-size: .76rem; margin-top: 8px; gap: 5px; }
    .prodi-tile-bulat { right: -40px; bottom: -62px; width: 148px; height: 148px; }
    .prodi-tile-bulat.kecil { display: none; }
    /* berita: tetap 2 box, kartu lebih ringkas */
    .slider-berita-track { gap: 12px; }
    .slider-berita-track > .berita-kartu { flex: 0 0 calc((100% - 12px) / 2); }
    .berita-kartu-isi { padding: 12px 13px 15px; gap: 6px; }
    .berita-kartu-judul { font-size: .86rem; -webkit-line-clamp: 4; }
    .berita-kartu-tgl { font-size: .7rem; }
    .topbar-info span:nth-child(n+2) { display: none; }
    .hero-inner { padding-left: 28px; padding-right: 28px; padding-top: 34px; padding-bottom: 92px; gap: 22px; }
    .hero-teks h1 { font-size: 1.46rem; line-height: 1.28; margin-bottom: 12px; }
    .hero-teks p { font-size: .93rem; margin-bottom: 20px; }
    .hero-eyebrow {
        font-size: .64rem; padding: 5px 12px; margin-bottom: 13px;
        letter-spacing: .06em; line-height: 1.35;
    }
    .hero-aksi { gap: 10px; }
    .hero-aksi .btn { padding: 10px 18px; font-size: .86rem; }
    .hero-gambar img { max-height: none; }
    .hero-dots button { width: 26px; height: 5px; }
    .hero-dots button.aktif { width: 40px; }
    .hero-arrows button { width: 38px; height: 38px; font-size: .9rem; }
    .footer-bawah { flex-direction: column; text-align: center; }
    .brand-text .b1 { font-size: .92rem; }
    .brand-text .b2 { font-size: .72rem; }
    .panel-body { padding: 8px 18px 20px; }
}
