/* =========================================================
   SATGAS PPKPT UNIVERSITAS PERTIBA
   Stylesheet utama
   ========================================================= */

:root {
    --primary-color: #1c398e;   /* Navy blue - selaras dengan sipekerja.pertiba.ac.id */
    --primary-dark: #172554;
    --accent-color: #fe6e00;    /* Orange - aksen */
    --accent-dark: #c2410c;
    --secondary-color: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============ NAVBAR ============ */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    padding: 0.5rem 0;
}

.navbar-brand img { height: 48px; width: auto; object-fit: contain; }

.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand .brand-main { font-size: 1.05rem; font-weight: 700; }
.navbar-brand .brand-sub { font-size: 0.72rem; font-weight: 500; opacity: 0.8; color: var(--text-light); }

.navbar-nav { gap: 0.25rem; }

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.75rem 1.1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i { font-size: 0.9rem; width: 18px; text-align: center; }

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(28, 57, 142, 0.06);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(28, 57, 142, 0.1);
    font-weight: 700;
}

.nav-cta {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 8px;
    margin-left: 0.4rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(254, 110, 0, 0.25);
}

.nav-cta:hover {
    background: var(--accent-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.nav-cta i { color: var(--white) !important; }

@media (max-width: 767.98px) {
    .navbar-brand span:not(.brand-main) { display: none; }
    .nav-cta { margin-left: 0; margin-top: 0.5rem; width: 100%; justify-content: center; }
}

/* ============ HERO ============ */
.hero-section {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 55%, rgba(15, 23, 42, 0.3) 100%),
        url('../img/banner-hero.png') center / cover no-repeat;
    color: white;
    padding: 90px 0 70px;
    position: relative;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 480px;
        display: flex;
        align-items: center;
        padding: 60px 0;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    display: inline-block;
}

.hero-section h1,
.hero-section .lead {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.btn-hero-primary,
.btn-hero-secondary {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
}

.btn-hero-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-hero-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-hero-secondary:hover {
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    transform: translateY(-2px);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 70px 0;
}

/* ============ CARD ============ */
.card {
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
}

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

.hover-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(28, 57, 142, 0.15) !important; }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(28, 57, 142, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============ BUTTONS ============ */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary { border-radius: 8px; font-weight: 600; }

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 8px;
}

.btn-accent:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff; }

.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }

.badge-soft {
    background: rgba(28, 57, 142, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ============ STEP / ALUR ============ */
.step-item { position: relative; text-align: center; padding: 1.5rem 1rem; }
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

/* ============ FOOTER ============ */
.footer { background-color: var(--primary-dark); color: white; padding: 40px 0 20px; margin-top: 80px; }
.footer a.opacity-75:hover { opacity: 1 !important; color: var(--accent-color) !important; }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-2px); color: var(--accent-color) !important; }

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
    width: 20%;
    transition: all 0.3s ease;
}

.mobile-nav-item i { font-size: 1.15rem; margin-bottom: 4px; }
.mobile-nav-item.active { color: var(--primary-color); font-weight: 700; }
.mobile-nav-item.active i { transform: translateY(-3px); }

.mobile-nav-item-center {
    position: relative;
    top: -25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(28, 57, 142, 0.4);
    border: 4px solid #f9fafb;
}

.mobile-nav-item-center i { font-size: 1.4rem; }
.mobile-nav-item-center:hover { color: white; }

.mobile-nav-item-center-label {
    position: absolute;
    bottom: -22px;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

@media (min-width: 992px) { .mobile-bottom-nav { display: none; } }

@media (max-width: 991px) {
    body { padding-bottom: 80px; }
    .footer { padding-bottom: 90px; }
}

/* ============ DOKUMEN ============ */
.doc-card { border-left: 4px solid var(--primary-color); }
.doc-icon { font-size: 2rem; color: var(--primary-color); }

/* ============ COOKIE CONSENT ============ */
.cookie-box {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: linear-gradient(145deg, rgba(28, 57, 142, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9999;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    .cookie-box { bottom: 15px; width: 95%; padding: 15px; }
}

@keyframes slideUpFade {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============ MISC ============ */
.section-title-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.emergency-box {
    background: rgba(254, 110, 0, 0.1);
    border: 1px solid rgba(254, 110, 0, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
