/* ===== ROOT VARIABLES ===== */
:root {
    --navy: #0a1628;
    --navy-mid: #112240;
    --navy-light: #1d3461;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --cream: #f5f0e8;
    --white: #ffffff;
    --gray: #8a9ab5;
    --gray-light: #eef1f6;
    --text: #1a2540;
    --text-light: #4a5878;
    --shadow: 0 4px 24px rgba(10,22,40,0.12);
    --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-top {
    background: var(--navy-mid);
    padding: 10px 48px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    /* font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.4)); */
    width: 100px;
    height: 100px;
}

.logo-text { display: flex; flex-direction: column; }
.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 3px;
}
.logo-sub {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== NAVBAR ===== */
.navbar { background: var(--navy); }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 18px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-top: 3px solid var(--gold);
    overflow: hidden;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 400;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background: var(--gray-light);
    color: var(--navy);
    border-left-color: var(--gold);
    padding-left: 24px;
    font-weight: 600;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== PAGE CONTENT ===== */
main { flex: 1; }

/* ===== HERO / BERANDA ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a4a7f 100%);
    color: var(--white);
    padding: 100px 48px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    animation: fadeDown 0.6s ease both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeDown 0.7s 0.1s ease both;
}

.hero h1 span { color: var(--gold); }

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
    animation: fadeDown 0.7s 0.2s ease both;
}

.hero-video {
    animation: fadeUp 0.8s 0.3s ease both;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    aspect-ratio: 16/9;
    max-width: 800px;
    margin: 0 auto;
}

.hero-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== STATS ===== */
.stats-bar {
    background: var(--white);
    padding: 40px 48px;
    box-shadow: 0 4px 0 rgba(201,168,76,0.3);
}

.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--navy);
    font-weight: 900;
}
.stat-item h3 span { color: var(--gold); }
.stat-item p { font-size: 0.82rem; color: var(--text-light); font-weight: 500; letter-spacing: 0.5px; }

/* ===== PAGE HEADER (sub pages) ===== */
.page-hero {
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 64px 48px 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(201,168,76,0.08);
    pointer-events: none;
}

.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero-inner .breadcrumb {
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.page-hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
}
.page-hero-inner p {
    margin-top: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    max-width: 560px;
}

/* ===== CONTENT SECTION ===== */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 48px;
}

/* ===== CARDS (Tentang) ===== */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
    margin-bottom: 32px;
}

.info-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* ===== DOSEN GRID ===== */
.dosen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.dosen-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.dosen-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.dosen-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--gray-light);
}

.dosen-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); */
    color: var(--gold);
    font-size: 3.5rem;
    /* background-color: red; */
}

.dosen-info { padding: 24px 20px; }

.dosen-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.dosen-info .jabatan {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.dosen-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid;
}

.btn-sinta {
    color: #1a73e8;
    border-color: #1a73e8;
    background: rgba(26,115,232,0.06);
}
.btn-sinta:hover { background: #1a73e8; color: white; }

.btn-scholar {
    color: #0f9d58;
    border-color: #0f9d58;
    background: rgba(15,157,88,0.06);
}
.btn-scholar:hover { background: #0f9d58; color: white; }

/* ===== JURNAL ===== */
.jurnal-list { display: flex; flex-direction: column; gap: 16px; }

.jurnal-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.jurnal-item:hover {
    border-color: var(--gold);
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.jurnal-num {
    min-width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
}

.jurnal-content { flex: 1; }
.jurnal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.4;
}
.jurnal-content .meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.jurnal-content .meta span {
    background: var(--gray-light);
    padding: 2px 10px;
    border-radius: 100px;
    margin-right: 6px;
}

.btn-jurnal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-jurnal:hover { color: var(--navy); gap: 10px; }

/* ===== PENGUMUMAN / BERITA ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    /* height: 180px; */
    background: linear-gradient(135deg, var(--navy) 0%, #2a4a7f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-card-body { padding: 24px; }
.news-card-body .tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.news-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-card-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }
.news-card-body .date { font-size: 0.78rem; color: var(--gray); margin-top: 14px; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 100px 48px;
    color: var(--text-light);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }

/* ===== STRUKTUR ORG ===== */
.org-chart { text-align: center; }
.org-level {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
    position: relative;
}
.org-box {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    min-width: 160px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.org-box:hover {
    border-color: var(--gold);
    background: var(--navy);
    color: var(--white);
}
.org-box strong { display: block; font-size: 0.85rem; font-weight: 700; }
.org-box small { font-size: 0.72rem; color: var(--text-light); }
.org-box:hover small { color: var(--gold); }
.org-connector {
    display: flex;
    justify-content: center;
    height: 24px;
}
.org-connector::before {
    content: '';
    width: 2px;
    background: var(--navy);
    opacity: 0.3;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 48px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    /* margin-bottom: 16px; */
    /* letter-spacing: 2px; */
}
.footer-brand p { 
    font-size: 0.88rem; 
    /* line-height: 1.8;  */
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul a {
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-links ul a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact p { font-size: 0.88rem; margin-bottom: 10px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 20px 48px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-top { padding: 10px 24px; }
    .nav-container { padding: 0 24px; }
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-mid);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 16px;
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        border-left: 3px solid var(--gold);
        margin-left: 24px;
        background: var(--navy);
        display: none;
    }
    .nav-item.has-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu li a { color: rgba(255,255,255,0.75); border-left: none; }
    .dropdown-menu li a:hover { background: rgba(255,255,255,0.05); color: var(--gold); }

    .hero, .page-hero { padding: 60px 24px 40px; }
    .content-section { padding: 40px 24px; }
    .stats-inner { grid-template-columns: repeat(2,1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 24px; }
    .footer-bottom { padding: 16px 24px; }
    .dosen-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

.btn-email {
    display: inline-block;
    padding: 12px 20px;
    background: #c9a646;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-email:hover {
    background: #b8963d;
}