/* ============================================================
   Modern Design System — Teknik Informatika UMT
   Navy (#05184E) / Gold (#ffdd57) refined palette
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --navy: #05184E;
    --navy-light: #0A2A6E;
    --navy-dark: #031035;
    --navy-rgb: 5, 24, 78;

    --gold: #ffdd57;
    --gold-light: #ffe88a;
    --gold-dark: #e6c84e;

    --accent-teal: #0ea5e9;
    --accent-green: #22c55e;
    --accent-red: #ef4444;

    --body-bg: #f8f9fc;
    --surface: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;

    --gradient-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(5,24,78,0.92) 0%, rgba(10,42,110,0.85) 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.3s ease;
}

/* ---------- Typography ---------- */
body.modern-layout {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.section-title-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ---------- Modern Page Header ---------- */
.page-header-modern {
    background: var(--gradient-navy);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 221, 87, 0.06);
    border-radius: 50%;
}

.page-header-modern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.page-header-modern h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header-modern .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-header-modern .breadcrumb-item a {
    color: var(--gold-light);
    text-decoration: none;
}

.page-header-modern .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header-modern .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Card Components ---------- */
.card-modern {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-stat {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-stat .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.card-stat .stat-icon.navy { background: rgba(5, 24, 78, 0.1); color: var(--navy); }
.card-stat .stat-icon.gold { background: rgba(255, 221, 87, 0.2); color: var(--gold-dark); }
.card-stat .stat-icon.teal { background: rgba(14, 165, 233, 0.1); color: var(--accent-teal); }
.card-stat .stat-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }

.card-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.card-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Dosen Card */
.card-dosen {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

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

.card-dosen .dosen-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card-dosen:hover .dosen-img {
    border-color: var(--gold);
}

.card-dosen .dosen-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-dosen .dosen-jabatan {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card-dosen .dosen-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--body-bg);
    color: var(--text-secondary);
    margin: 0 3px;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
}

.card-dosen .dosen-social a:hover {
    background: var(--navy);
    color: #fff;
}

/* Fasilitas Card */
.card-fasilitas {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.card-fasilitas .fasilitas-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(5, 24, 78, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.card-fasilitas .fasilitas-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-fasilitas .fasilitas-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-fasilitas .fasilitas-capacity {
    display: inline-block;
    background: rgba(255, 221, 87, 0.2);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
}

/* ---------- Presence Status Badges ---------- */
.status-ada {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
}

.status-ada::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-green 2s infinite;
}

.status-tidak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
}

.status-tidak::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.status-na {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---------- Mega-Menu ---------- */
.navbar-modern {
    background: var(--navy) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    z-index: 1050;
}

.navbar-modern .navbar-brand img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
}
.navbar-brand-text {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .navbar-brand-text {
        font-size: 0.85rem;
    }
}

.navbar-modern .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 0.75rem !important;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus {
    color: var(--gold) !important;
}

.navbar-modern .dropdown-toggle::after {
    font-size: 0.65rem;
}

/* Mega-menu dropdown */
.mega-menu {
    padding: 1rem;
    min-width: 520px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-column {
    padding: 0 0.75rem;
}

.mega-menu-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.mega-menu-link:hover {
    background: rgba(5, 24, 78, 0.05);
    color: var(--navy);
}

.mega-menu-link i {
    width: 20px;
    text-align: center;
    color: var(--navy-light);
    font-size: 0.8rem;
}

/* Standard dropdown (non-mega) override */
.navbar-modern .dropdown-menu:not(.mega-menu) {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease;
}

.navbar-modern .dropdown-menu:not(.mega-menu) .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.navbar-modern .dropdown-menu:not(.mega-menu) .dropdown-item:hover {
    background: rgba(5, 24, 78, 0.05);
    color: var(--navy);
}

/* Mobile mega-menu collapse */
@media (max-width: 991.98px) {
    .mega-menu {
        min-width: 100%;
        padding: 0.5rem;
    }

    .mega-menu .row {
        flex-direction: column;
    }

    .mega-menu-column {
        padding: 0.5rem 0;
    }

    .navbar-modern .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }
}

/* ---------- Chart Container ---------- */
.chart-container {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.chart-container canvas {
    max-height: 350px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ---------- Section Spacing ---------- */
.section-modern {
    padding: 3rem 0;
}

.section-modern-sm {
    padding: 2rem 0;
}

/* ---------- Hero Overlay (Landing Page) ---------- */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(5, 24, 78, 0.85));
    color: #fff;
    z-index: 2;
}

.hero-overlay h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.hero-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ---------- Blockquote (Visi) ---------- */
.blockquote-visi {
    background: var(--surface);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--navy);
    position: relative;
}

.blockquote-visi::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    line-height: 1;
    opacity: 0.3;
}

/* ---------- Misi List ---------- */
.misi-list {
    list-style: none;
    padding: 0;
    counter-reset: misi-counter;
}

.misi-list li {
    counter-increment: misi-counter;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.misi-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.misi-list li::before {
    content: counter(misi-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Data Tables Styling Override ---------- */
.table-modern {
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border: none;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.table-modern tbody tr:hover {
    background: rgba(5, 24, 78, 0.03);
}

/* ---------- Semester Filter Tabs ---------- */
.semester-tabs .nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.4rem 0.75rem;
    transition: var(--transition);
}

.semester-tabs .nav-link.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.semester-tabs .nav-link:hover:not(.active) {
    background: rgba(5, 24, 78, 0.05);
}

/* ---------- Kerjasama Badge ---------- */
.badge-mou {
    background: rgba(5, 24, 78, 0.1);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.badge-moa {
    background: rgba(255, 221, 87, 0.3);
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.badge-aktif {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

/* ---------- Layanan Surat Feature Cards ---------- */
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--navy-light);
    color: inherit;
    text-decoration: none;
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(5, 24, 78, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--navy);
    flex-shrink: 0;
}

.feature-card .feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.feature-card .feature-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Footer Modern ---------- */
.footer-modern {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 0;
}

.footer-modern h5 {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-modern a:hover {
    color: var(--gold);
}

.footer-modern .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern .footer-links li {
    margin-bottom: 0.5rem;
}

.footer-modern .footer-links li a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-right: 0.5rem;
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.8rem;
    text-align: center;
}

/* ---------- Coming Soon Placeholder ---------- */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.coming-soon h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.coming-soon p {
    color: var(--text-secondary);
}

/* ---------- Landing Page Stat Counter ---------- */
.stat-counter-section {
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
    padding-bottom: 1rem;
}

.stat-counter-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-navy);
}

.stat-counter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.stat-counter-card .counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-counter-card .counter-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-counter-card .counter-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(5, 24, 78, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

/* ---------- Prestasi Section ---------- */
.prestasi-section {
    padding: 3.5rem 0;
    background: var(--body-bg);
}
.prestasi-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(5, 24, 78, 0.13);
    display: block;
    margin: 0 auto;
}
.prestasi-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.prestasi-badge-row {
    margin-bottom: 1rem;
}
.prestasi-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.prestasi-badge.gold {
    background: linear-gradient(135deg, var(--gold), #e6a817);
    color: var(--navy);
}
.prestasi-desc {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.25rem;
    font-style: italic;
}
.prestasi-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.prestasi-details li {
    padding: 0.5rem 0;
    color: #444;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.prestasi-details li:last-child {
    border-bottom: none;
}
.prestasi-details li i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}
@media (max-width: 767.98px) {
    .prestasi-section {
        padding: 2rem 0;
    }
    .prestasi-title {
        font-size: 1.35rem;
        margin-top: 1rem;
    }
}

/* ---------- PMB Banner ---------- */
.pmb-banner {
    padding: 2.5rem 0;
    background: var(--gradient-navy);
    position: relative;
    overflow: hidden;
}

.pmb-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 221, 87, 0.06);
}

.pmb-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 221, 87, 0.04);
}

/* ---------- Landing Layanan Cards Restyle ---------- */
.layanan-card-modern {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    padding: 1.25rem;
    text-align: center;
}

.layanan-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.layanan-card-modern .layanan-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.layanan-card-modern .layanan-status-dot {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.layanan-card-modern .layanan-status-dot.online {
    background: #22c55e;
    animation: pulse-green 2s infinite;
}

.layanan-card-modern .layanan-status-dot.offline {
    background: #ef4444;
}

.layanan-card-modern .layanan-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.layanan-card-modern .layanan-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.layanan-card-modern .layanan-keterangan {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ---------- HKI Badge ---------- */
.badge-hki {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

/* ---------- Hero Banner (Dynamic with Text Overlay) ---------- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--navy-dark);
}

.hero-banner img.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-banner .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(5,24,78,0.65) 0%, rgba(10,42,110,0.35) 50%, rgba(5,24,78,0.15) 100%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-banner .hero-content {
    color: #fff;
    padding: 0 2rem;
    max-width: 800px;
}

.hero-banner .hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
}

.hero-banner .hero-content .hero-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-banner .hero-content .hero-tagline {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-banner .hero-badges {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero-banner .hero-badges img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--body-bg));
    pointer-events: none;
    z-index: 2;
}

/* ---------- Visi Misi Homepage Section ---------- */
.visi-misi-home {
    padding: 3rem 0 2rem;
    background: var(--body-bg);
}

.visi-misi-home .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.visi-misi-home .visi-card {
    background: var(--surface);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2rem 2rem;
    box-shadow: var(--shadow-md);
    font-size: 1.05rem;
    color: var(--navy);
    position: relative;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.visi-misi-home .visi-card .visi-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--navy);
    margin-top: 2px;
}

.visi-misi-home .visi-card .visi-content {
    font-style: italic;
}

.visi-misi-home .misi-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.visi-misi-home .misi-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.visi-misi-home .misi-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--gradient-gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 2px;
}

.visi-misi-home .misi-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 767.98px) {
    .page-header-modern {
        padding: 2rem 0 1.5rem;
    }

    .page-header-modern h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .chart-container canvas {
        max-height: 250px;
    }

    .stat-counter-section {
        margin-top: -2rem;
    }

    .stat-counter-card {
        padding: 1.25rem 0.75rem;
    }

    .stat-counter-card .counter-number {
        font-size: 1.6rem;
    }

    .stat-counter-card .counter-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hero-banner {
        height: 55vh;
        min-height: 350px;
    }

    .hero-banner .hero-content {
        padding: 0 1.25rem;
    }

    .hero-banner .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero-banner .hero-content .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .hero-banner .hero-content .hero-tagline {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-banner .hero-badges {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.3rem;
    }

    .hero-banner .hero-badges img {
        height: 30px;
    }

    .hero-banner::after {
        height: 80px;
    }

    .visi-misi-home .visi-card {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .visi-misi-home .misi-item {
        padding: 0.85rem 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-banner {
        height: 70vh;
    }

    .hero-banner .hero-content h1 {
        font-size: 2rem;
    }
}
