/* ===================================================
   SHARED NAVBAR & FOOTER STYLES
   Used across: index.php, news.php, contact.php, detail-berita.php
   =================================================== */

/* --- LENIS SMOOTH SCROLL STYLES (REQUIRED GLOBALLY) --- */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- NAVBAR STYLES --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.4s ease-in-out;
    background: transparent;
}

header.sticky {
    height: 70px;
    background: rgba(44, 37, 109, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- LIGHT HEADER MODE (For pages without dark hero sections) --- */
header.header-light:not(.sticky) .logo {
    color: #1e293b; /* Dark Slate */
}
header.header-light:not(.sticky) .title-sub {
    opacity: 0.7;
}
header.header-light:not(.sticky) .nav-links li a {
    color: #475569;
}
header.header-light:not(.sticky) .nav-links li a:after {
    background: #2c256d; /* Primary color underline */
}
header.header-light:not(.sticky) .nav-links li a:hover,
header.header-light:not(.sticky) .nav-links li a.active {
    color: #2c256d;
}
header.header-light:not(.sticky) .btn-news {
    background: #2c256d;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(44, 37, 109, 0.3);
}
header.header-light:not(.sticky) .btn-news:hover {
    background: #facc15;
    color: #2c256d;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.5);
}
header.header-light:not(.sticky) .menu-toggle {
    color: #1e293b;
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 15px;
}

header .logo .logo-images {
    display: flex;
    align-items: center;
    gap: 8px;
}

header .logo img {
    height: 48px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
    transition: 0.3s;
}

header .logo .logo-images:hover img {
    transform: scale(1.05);
}

header .logo .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

header .logo .title-main {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

header .logo .title-sub {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0.85;
}

header .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

header .nav-links li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: white;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
}

header .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #facc15;
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

header .nav-links li a:hover::after,
header .nav-links li a.active::after {
    width: 100%;
}

header .nav-links li a:hover,
header .nav-links li a.active {
    color: #facc15;
}

.btn-news {
    padding: 10px 25px;
    background: #facc15;
    color: #2c256d;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-news:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.5);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* --- NAVBAR MOBILE --- */
@media (max-width: 900px) {
    header {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    header .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c256d;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        clip-path: circle(0% at 100% 0);
        transition: 0.5s ease-in-out;
    }

    header .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .btn-news {
        display: none;
    }
}


/* --- FOOTER SECTION --- */
footer {
    background: #020617;
    color: #cbd5e1;
    position: relative;
    padding-top: 100px;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave .shape-fill {
    fill: var(--footer-wave-bg, #f8fafc);
}

.footer-content {
    padding: 50px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: #facc15;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.footer-links {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: #facc15;
    padding-left: 5px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-row i {
    color: #facc15;
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: #facc15;
    color: #020617;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom span {
    color: #facc15;
    font-weight: 700;
}
