/* Colors are injected dynamically via theme-vars.blade.php partial.
   This file only contains layout/component styles. */

/* Minimal reset */
html, body { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--krem);
    color: var(--hitam);
    position: relative;
}

/* ── TOP BAR ─────────────────────────────── */
.topbar {
    background: var(--secondary);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .04em;
    padding: 6px 0;
}
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── NAVBAR ──────────────────────────────── */
.navbar-custom {
    background: var(--putih);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030; /* Below offcanvas (1045+) */
}
.navbar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}
.brand-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-caps);
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid var(--accent);
    transition: all .3s;
}
.brand-logo.has-logo {
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
}
.brand-text-main {
    font-family: var(--font-caps);
    font-size: .78rem;
    letter-spacing: .14em;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1.2;
}
.brand-text-sub {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hitam);
    line-height: 1.2;
}
.nav-link-custom {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 500;
    color: var(--hitam) !important;
    padding: 22px 14px !important;
    letter-spacing: .03em;
    position: relative;
    transition: color .2s;
    text-decoration: none !important;
}
.nav-link-custom:hover, .nav-link-custom.active { color: var(--primary) !important; font-weight: 600; }

/* ── HERO ────────────────────────────────── */
.hero {
    min-height: 92vh;
    background: linear-gradient(135deg, var(--abu-gelap) 0%, var(--abu-mid) 55%, var(--secondary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
    radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--primary) 30%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), .2) 0%, transparent 50%);
    pointer-events: none;
}
.hero-script {
    position: absolute;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(9rem, 18vw, 20rem);
    font-style: italic;
    font-weight: 900;
    color: rgba(255,255,255,.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.hero-label {
    font-family: var(--font-caps);
    font-size: .75rem;
    letter-spacing: .22em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 900;
    color: var(--putih);
    line-height: 1.08;
    margin-bottom: 10px;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 36px;
}
.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .06em;
    padding: 13px 32px;
    border-radius: 2px;
    text-decoration: none;
    transition: all .25s;
    display: inline-block;
}
.btn-hero-primary:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-hero-ghost {
    background: transparent;
    color: rgba(255,255,255,.85);
    border: 2px solid rgba(255,255,255,.3);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .06em;
    padding: 13px 32px;
    border-radius: 2px;
    text-decoration: none;
    transition: all .25s;
    display: inline-block;
}
.btn-hero-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 52px;
}
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    letter-spacing: .06em;
    margin-top: 4px;
}

/* floating card on hero */
.hero-card-float {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 28px 24px;
    color: #fff;
}
.hero-card-float .card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}
.quick-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .87rem;
    transition: color .2s, padding-left .2s;
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { color: var(--accent); padding-left: 6px; }
.quick-link-item i { font-size: 1rem; color: var(--accent); }

/* ── SECTION GENERAL ─────────────────────── */
.section-label {
    font-family: var(--font-caps);
    font-size: .72rem;
    letter-spacing: .2em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--hitam);
}
.section-rule {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 18px 0 24px;
}

/* ── DYNAMIC THEME UTILITIES ─────────────── */
.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent    { color: var(--accent) !important; }
.bg-primary     { background-color: var(--primary) !important; }
.bg-secondary   { background-color: var(--secondary) !important; }
.bg-accent      { background-color: var(--accent) !important; }

.btn-purple {
    background: var(--primary);
    color: #fff;
    border: none;
    transition: all .3s;
}
.btn-purple:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ── PRODI CARDS ─────────────────────────── */
.prodi-section { background: var(--krem); padding: 90px 0; }

.prodi-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    padding: 32px 28px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.prodi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.prodi-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.prodi-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.prodi-card h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.prodi-card p {
    font-size: .875rem;
    color: #555;
    line-height: 1.7;
}
.prodi-badge {
    display: inline-block;
    background: #f3e0f3;
    border: 1px solid var(--accent);
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 14px;
    letter-spacing: .04em;
}

/* ── ABOUT ───────────────────────────────── */
.about-section { background: var(--abu-gelap); padding: 100px 0; position: relative; overflow: hidden; }
.about-section::before {
    content: '"';
    position: absolute;
    top: -40px; left: -30px;
    font-family: var(--font-display);
    font-size: 28rem;
    color: rgba(255,255,255,.025);
    line-height: 1;
    pointer-events: none;
}
.about-section .section-label { color: var(--accent); }
.about-section .section-title { color: #fff; }
.about-section .section-rule { background: linear-gradient(90deg, var(--accent), var(--primary)); }
.about-text { color: rgba(255,255,255,.72); line-height: 1.85; font-size: .97rem; }
.about-highlight {
    background: rgba(255,255,255,.05);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-light);
    font-size: 1.15rem;
    margin: 28px 0;
    line-height: 1.6;
}
.visi-misi-tabs .nav-link {
    color: rgba(255,255,255,.5);
    border-radius: 2px;
    font-size: .88rem;
    font-weight: 600;
    padding: 10px 22px;
}
.visi-misi-tabs .nav-link.active { background: var(--primary); color: #fff; }
.visi-misi-tabs .nav-link:not(.active):hover { color: var(--accent); }
.tab-content-custom { color: rgba(255,255,255,.75); line-height: 1.8; font-size: .93rem; padding-top: 22px; }
.tab-content-custom ul { padding-left: 20px; }
.tab-content-custom ul li { margin-bottom: 10px; }

/* ── NEWS ────────────────────────────────── */
.news-section { background: var(--krem); padding: 90px 0; }
.news-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.1); }
.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--abu-mid), var(--abu-gelap));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.news-card-img i { font-size: 3rem; color: rgba(255,255,255,.2); }
.news-cat {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 3px;
}
.news-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: .78rem; color: #888; margin-bottom: 10px; }
.news-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
    color: var(--hitam);
    flex: 1;
}
.news-excerpt { font-size: .83rem; color: #666; line-height: 1.65; }
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 16px;
}
.news-link:hover { color: var(--secondary); }

/* news big card */
.news-big {
    background: var(--abu-gelap);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-big-img {
    height: 260px;
    background: linear-gradient(135deg, var(--secondary), var(--abu-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.news-big-body { padding: 28px; flex: 1; }
.news-big-body .news-date { color: rgba(255,255,255,.45); }
.news-big-body .news-title { font-size: 1.2rem; color: #fff; }
.news-big-body .news-excerpt { color: rgba(255,255,255,.6); }
.news-big-body .news-link { color: var(--accent); }

/* ── ACADEMICS BANNER ────────────────────── */
.akademik-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, var(--accent) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.akademik-section::after {
    content: 'BAHASA';
    position: absolute;
    right: -2%;
    bottom: -20px;
    font-family: var(--font-display);
    font-size: 14rem;
    font-weight: 900;
    color: rgba(255,255,255,.06);
    pointer-events: none;
    user-select: none;
}
.akademik-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: 32px 24px;
    color: #fff;
    text-align: center;
    height: 100%;
    transition: background .3s, transform .3s;
}
.akademik-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.akademik-card i { font-size: 2.4rem; color: var(--accent-light); margin-bottom: 16px; }
.akademik-card h5 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.akademik-card p { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.7; }
.btn-akademik {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: .82rem;
    padding: 8px 20px;
    border-radius: 3px;
    margin-top: 16px;
    display: inline-block;
    text-decoration: none;
    transition: background .25s;
}
.btn-akademik:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ── DOSEN ───────────────────────────────── */
.dosen-section { background: #f9f4ec; padding: 90px 0; }
.dosen-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 0 0 24px;
    border: 1px solid #e8e0d0;
    transition: transform .3s, box-shadow .3s;
}
.dosen-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.dosen-avatar {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--abu-mid), var(--abu-gelap));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.dosen-avatar i { font-size: 4rem; color: rgba(255,255,255,.3); }
.dosen-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--hitam);
    margin-bottom: 4px;
    padding: 0 16px;
}
.dosen-gelar { font-size: .78rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.dosen-bidang { font-size: .8rem; color: #777; padding: 0 16px; }

/* ── MAHASISWA ───────────────────────────── */
.mhs-section { background: var(--abu-gelap); padding: 90px 0; }
.mhs-section .section-label { color: var(--accent); }
.mhs-section .section-title { color: #fff; }
.mhs-section .section-rule { background: linear-gradient(90deg, var(--accent), var(--primary)); }
.mhs-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 28px 22px;
    color: #fff;
    height: 100%;
    transition: background .3s;
}
.mhs-card:hover { background: rgba(255,255,255,.1); }
.mhs-card i { font-size: 2rem; color: var(--accent); margin-bottom: 14px; display: block; }
.mhs-card h6 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.mhs-card p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ── PENGUMUMAN ──────────────────────────── */
.pengumuman-section { background: var(--krem); padding: 90px 0; }
.pengumuman-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e4d8c5;
    text-decoration: none;
    color: inherit;
    transition: padding-left .2s;
}
.pengumuman-item:hover { padding-left: 8px; }
.pengumuman-date-box {
    flex-shrink: 0;
    width: 54px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 8px 4px;
}
.pengumuman-date-day { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.pengumuman-date-mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.pengumuman-title { font-weight: 600; font-size: .92rem; color: var(--hitam); line-height: 1.45; }
.pengumuman-badge {
    display: inline-block;
    font-size: .68rem;
    background: #f3e0f3;
    border: 1px solid var(--accent);
    color: var(--secondary);
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 5px;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
    background: var(--hitam);
    color: rgba(255,255,255,.65);
    padding: 60px 0 0;
}
.footer-brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-tagline { font-size: .83rem; line-height: 1.75; margin-bottom: 20px; }
.footer-heading { font-family: var(--font-caps); font-size: .75rem; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.footer-link { display: block; font-size: .85rem; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 9px; transition: color .2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    margin-top: 48px;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 1rem;
    transition: border-color .2s, color .2s;
    margin-right: 6px;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── CONTACT INFO ────────────────────────── */
.contact-icon { color: var(--accent); margin-right: 8px; }

/* ── ANIMATIONS ──────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-2 { transition-delay: .15s; }
.fade-up-3 { transition-delay: .3s; }
.fade-up-4 { transition-delay: .45s; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 70px 0 50px; }
    .hero-script { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
}