/* CSS Variables */
:root {
    --primary: #2575fc;
    --secondary: #6a11cb;
    --text-dark: #333;
    --bg-light: #f9f9f9;
    --bg-white: #fff;
    --transition: all 0.3s ease;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* HEADER */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    border-radius: 50%;
}

.instansi-name {
    font-size: 1.5rem;
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.navbar ul li a:hover {
    color: var(--primary);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('bg.jpg') no-repeat center/cover;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ABOUT */
.about {
    background: var(--bg-light);
    padding: 80px 5%;
}

.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-img {
    max-width: 400px;
    border-radius: var(--radius);
    filter: grayscale(100%);
    transition: var(--transition);
}

.about-img:hover {
    filter: grayscale(0%);
}

.about-text {
    flex: 1;
    column-count: 2;
    column-gap: 30px;
}

/* ORGANISASI */
.org {
    padding: 80px 5%;
    background: var(--bg-white);
    text-align: center;
}

.org-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.person {
    position: relative;
    text-align: center;
}

.person img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.person:hover .tooltip {
    visibility: visible;
}

/* GALERI */
.gallery {
    padding: 80px 5%;
    background: var(--bg-light);
    text-align: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: sepia(40%);
    transition: var(--transition);
}

.gallery-container img:hover {
    filter: blur(0) sepia(0);
}

/* BERITA */
.news {
    padding: 80px 5%;
    text-align: center;
}

.news input[type="radio"] {
    display: none;
}

.news-pages {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 20px;
}

.news-page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#page1:checked~.news-pages .news-page:nth-child(1),
#page2:checked~.news-pages .news-page:nth-child(2),
#page3:checked~.news-pages .news-page:nth-child(3) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    opacity: 1;
    transform: translateY(0);
}

/* Card style */
.news-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    margin-top: 0;
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination label {
    padding: 6px 12px;
    border-radius: var(--radius);
    background: #eee;
    cursor: pointer;
    transition: var(--transition);
}

.pagination label:hover {
    background: var(--primary);
    color: #fff;
}

#page1:checked~.pagination label[for="page1"],
#page2:checked~.pagination label[for="page2"],
#page3:checked~.pagination label[for="page3"] {
    background: var(--primary);
    color: #fff;
}

/* KONTAK */
.contact {
    background: var(--bg-light);
    padding: 80px 5%;
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact input,
.contact textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: inherit;
}

.contact button {
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.contact button:hover {
    transform: scale(1.05);
}

.footer {
    background: var(--bg-light);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-text {
        column-count: 1;
    }

    .news-container {
        column-count: 1;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
}