/* css/style.css - TEMA BIRU LOGO KOWOT LABO */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #FFFFFF; /* Putih bersih */
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
header {
    background: #1E40AF; /* Biru tua dari logo */
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    transition: padding 0.3s, box-shadow 0.3s;
}

header.header-shrink {
    padding: 0.4rem 0;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.10);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.35rem;
    color: white;
}

.logo img {
    width: 55px;
    height: auto;
    margin-right: 12px;
}

.logo span {
    color: #60A5FA; /* Biru muda untuk "KIMBIRIK PAPUA" */
    font-size: 0.85rem;
    display: block;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 24px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #60A5FA;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #60A5FA;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
    border-radius: 2px;
}

/* MAIN */
main {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.92), rgba(59, 130, 246, 0.88)), url('../img/banner1.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 110px 20px;
    border-bottom: 6px solid #60A5FA;
}

.hero h1 {
    font-size: 2.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.95;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: #60A5FA;
    color: white;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 6px;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    border: 2px solid transparent;
}

.btn:hover {
    background: #3B82F6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #60A5FA;
    color: #60A5FA;
}

.btn-outline:hover {
    background: #60A5FA;
    color: white;
    border-color: #60A5FA;
}

/* SECTION */
.section {
    padding: 120px 0 70px 0; /* Tambah padding atas agar konten tidak mepet header */
}

.section:nth-child(even) {
    background: #F8FAFC; /* Abu sangat muda */
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    color: #1E40AF;
    margin-bottom: 45px;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    width: 90px;
    height: 5px;
    background: linear-gradient(to right, #3B82F6, #60A5FA);
    display: block;
    margin: 18px auto 0;
    border-radius: 3px;
}

/* CARD */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.18);
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1E40AF;
    font-weight: 600;
}

/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

/* FORM */
form {
    max-width: 620px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.12);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 9px;
    font-weight: 500;
    color: #374151;
}

input, select, textarea {
    width: 100%;
    padding: 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #60A5FA;
    background: white;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

input[type="radio"], input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* ALERT */
.alert {
    padding: 16px;
    margin: 22px 0;
    border-radius: 10px;
    font-weight: 500;
    border-left: 5px solid;
}

.alert-success {
    background: #eff6ff;
    color: #1e40af;
    border-color: #60A5FA;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #f87171;
}

/* FOOTER */
footer {
    background: #1E40AF;
    color: white;
    text-align: center;
    padding: 35px 0;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #3B82F6, #60A5FA);
}

footer p {
    font-size: 0.92rem;
    margin: 6px 0;
    opacity: 0.9;
}

/* BERITA ITEM */
.berita-item {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.berita-item:hover {
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
}

.berita-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.berita-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #1E40AF;
    font-weight: 600;
}

.berita-info small {
    color: #64748b;
    font-size: 0.85rem;
}

/* SLIDESHOW */
.slideshow {
    margin-top: 63px; /* Jarak agar tidak tertutup header */
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
    margin-bottom: 30px;
}

header.header-shrink + .slideshow {
    margin-top: 56px; /* Jarak lebih kecil saat header mengecil */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        padding: 0.7rem 0;
    }
    .logo img {
        width: 40px;
        margin-right: 8px;
    }
    .logo span {
        font-size: 0.75rem;
    }
    .nav-links {
        flex-direction: column;
        background: #1E40AF;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        padding: 18px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 12px 0;
        text-align: center;
    }
    .mobile-menu {
        display: block;
    }
    .section {
        padding-top: 110px; /* Pastikan cukup jarak dari header pada mobile */
    }
    .slideshow {
        margin-top: 110px;
    }
}