/* ==========================================================================
   Frontend Design System - ULD Universitas Ma Chung
   Brand Colors: Ma Chung Navy (#0b2f64), Maroon (#991b1b), Gold (#d97706)
   ========================================================================== */

:root {
    --mc-primary: #0b2f64;
    --mc-primary-dark: #071e42;
    --mc-primary-light: #1a56db;
    --mc-secondary: #991b1b;
    --mc-gold: #d97706;
    --mc-gold-light: #f59e0b;
    --mc-dark: #0f172a;
    --mc-text: #334155;
    --mc-text-muted: #64748b;
    --mc-bg-light: #f8fafc;
    --mc-bg-soft: #f1f5f9;
    --mc-border: #e2e8f0;
    --mc-radius-sm: 8px;
    --mc-radius-md: 12px;
    --mc-radius-lg: 16px;
    --mc-shadow-sm: 0 2px 4px rgba(11, 47, 100, 0.05);
    --mc-shadow-md: 0 6px 16px rgba(11, 47, 100, 0.08);
    --mc-shadow-lg: 0 12px 28px rgba(11, 47, 100, 0.12);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--mc-text);
    background-color: var(--mc-bg-light);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--mc-primary-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar-machung {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(11, 47, 100, 0.08);
    padding: 6px 0;
    transition: all 0.3s ease;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-badge-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-secondary) 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(11, 47, 100, 0.2);
    flex-shrink: 0;
}

.brand-text-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--mc-primary);
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.brand-text-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--mc-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    white-space: nowrap;
}

.navbar-machung .navbar-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.navbar-machung .nav-link {
    font-weight: 600;
    color: #1e293b !important;
    padding: 7px 11px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.885rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}

.navbar-machung .nav-link:hover,
.navbar-machung .nav-link:focus {
    color: var(--mc-primary) !important;
    background-color: #f1f5f9;
}

.navbar-machung .nav-link.active {
    color: var(--mc-primary) !important;
    background-color: #eff6ff;
    font-weight: 700;
}

.nav-badge-afirmasi {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: #dc2626;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: inline-block;
}

.btn-nav-ajukan {
    background: linear-gradient(135deg, var(--mc-secondary) 0%, #7f1d1d 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 7px 15px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.22);
    transition: all 0.25s ease;
    line-height: 1.3;
    text-decoration: none;
}

.btn-nav-ajukan:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(153, 27, 27, 0.32);
    background: linear-gradient(135deg, #b91c1c 0%, var(--mc-secondary) 100%);
    color: #ffffff !important;
}

.navbar-machung .dropdown-menu {
    border: 1px solid rgba(11, 47, 100, 0.08);
    box-shadow: 0 12px 32px rgba(11, 47, 100, 0.12);
    border-radius: 10px;
    padding: 8px;
    min-width: 220px;
}

.navbar-machung .dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #334155;
    display: flex;
    align-items: center;
}

.navbar-machung .dropdown-item:hover,
.navbar-machung .dropdown-item:focus {
    background-color: #eff6ff;
    color: var(--mc-primary);
}

/* Mobile & Tablet Responsive (< 1200px) */
@media (max-width: 1199.98px) {
    .navbar-machung .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        padding: 16px;
        margin-top: 12px;
        border: 1px solid #e2e8f0;
    }

    .navbar-machung .navbar-nav {
        align-items: stretch !important;
        gap: 4px;
    }

    .navbar-machung .nav-link {
        padding: 10px 14px !important;
        font-size: 0.95rem;
        border-radius: 8px;
        justify-content: flex-start;
    }

    .navbar-machung .dropdown-menu {
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        box-shadow: none;
        margin: 4px 0 8px 10px;
        padding: 6px;
    }

    .navbar-machung .btn-nav-ajukan {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding: 11px 16px;
        font-size: 0.92rem;
    }
}

/* Custom Buttons */
.btn-machung-primary {
    background: linear-gradient(135deg, var(--mc-primary) 0%, #1e40af 100%);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 4px 12px rgba(11, 47, 100, 0.25);
    transition: all 0.3s ease;
}

.btn-machung-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 47, 100, 0.35);
    color: #ffffff;
}

.btn-machung-gold {
    background: linear-gradient(135deg, var(--mc-gold) 0%, var(--mc-gold-light) 100%);
    color: #0b2f64 !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
}

.btn-machung-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
    color: #0b2f64;
}

.btn-machung-maroon {
    background: linear-gradient(135deg, var(--mc-secondary) 0%, #b91c1c 100%);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.25);
    transition: all 0.3s ease;
}

.btn-machung-maroon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(153, 27, 27, 0.35);
    color: #ffffff;
}

.btn-machung-outline {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 20px;
    transition: all 0.3s ease;
}

.btn-machung-outline:hover {
    background: #ffffff;
    color: var(--mc-primary) !important;
    border-color: #ffffff;
}

/* Hero Section - Compact Viewport Fit */
.hero-machung {
    background: linear-gradient(135deg, #071e42 0%, #0b2f64 60%, #1e3a8a 100%);
    color: #ffffff;
    position: relative;
    padding: 24px 0 34px 0;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-machung {
        padding: 26px 0 38px 0;
    }
}

.hero-machung::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--mc-bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-title {
    color: #ffffff;
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 18px;
    line-height: 1.55;
    max-width: 580px;
}

.hero-card-widget {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--mc-radius-lg);
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Hero Video Widget (Peresmian Satgas ULD Ma Chung) */
.hero-video-widget {
    background: rgba(11, 47, 100, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(217, 119, 6, 0.2);
    transition: all 0.3s ease;
    max-width: 520px;
    margin-left: auto;
}

.hero-video-widget:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.25);
}

.hero-video-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(245, 158, 11, 0.85);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
    background: #000000;
}
    border: 2px solid rgba(245, 158, 11, 0.85);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    background: #000000;
}

/* Rektor Photo Frame & Wrap */
.rektor-photo-wrap {
    position: relative;
    border-radius: 14px;
    padding: 3px;
    background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-secondary) 100%);
    box-shadow: 0 8px 20px rgba(11, 47, 100, 0.22);
    display: inline-block;
}

.rektor-img-fluid {
    width: 115px;
    height: 145px;
    object-fit: cover;
    object-position: top center;
    border-radius: 11px;
    display: block;
    background: #e2e8f0;
}

/* Metric / Stat Strip */
.metric-card {
    background: #ffffff;
    border-radius: var(--mc-radius-md);
    padding: 24px;
    box-shadow: var(--mc-shadow-md);
    border: 1px solid var(--mc-border);
    transition: all 0.3s ease;
    text-align: center;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mc-shadow-lg);
    border-color: #cbd5e1;
}

.metric-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mc-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--mc-text-muted);
    font-weight: 600;
}

/* Feature & Service Cards */
.card-service {
    background: #ffffff;
    border-radius: var(--mc-radius-md);
    border: 1px solid var(--mc-border);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mc-shadow-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mc-primary), var(--mc-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-service:hover {
    transform: translateY(-6px);
    box-shadow: var(--mc-shadow-lg);
    border-color: #cbd5e1;
}

.card-service:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--mc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-service:hover .service-icon-box {
    background: var(--mc-primary);
    color: #ffffff;
}

/* Timeline Step for PMB / Layanan */
.step-timeline {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.step-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 36px;
    bottom: -20px;
    width: 2px;
    background: #cbd5e1;
}

.step-timeline:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mc-primary);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(11, 47, 100, 0.3);
}

/* Facility Card */
.card-facility {
    background: #ffffff;
    border-radius: var(--mc-radius-md);
    border: 1px solid var(--mc-border);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.card-facility:hover {
    transform: translateY(-5px);
    box-shadow: var(--mc-shadow-md);
}

.facility-img-wrapper {
    height: 200px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.facility-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-facility:hover .facility-img-wrapper img {
    transform: scale(1.05);
}

/* News Card */
.card-news {
    background: #ffffff;
    border-radius: var(--mc-radius-md);
    border: 1px solid var(--mc-border);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card-news:hover {
    transform: translateY(-5px);
    box-shadow: var(--mc-shadow-md);
}

.news-thumb {
    height: 200px;
    position: relative;
    background: #e2e8f0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--mc-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Section Title Stylings */
.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e0e7ff;
    color: var(--mc-primary);
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--mc-primary-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--mc-text-muted);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1030;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Footer */
.footer-machung {
    background: #071e42;
    color: #94a3b8;
    padding: 70px 0 25px 0;
    border-top: 5px solid var(--mc-secondary);
}

.footer-machung h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-machung h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--mc-gold);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--mc-gold-light);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .section-title {
        font-size: 1.65rem;
    }
}
