:root {
    --primary-color: #0077ff;
    --text-color: #333;
    --background-light: #f9f9f9;
    --white-color: #ffffff;
    --black-color: #000000;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.226);
}

*, html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--white-color);
}

section {
    scroll-margin-top: 80px;
    padding: 4rem 2rem;
}

nav {
    width: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    box-shadow: 0 4px 10px var(--shadow-dark);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 200;
}

nav .logo-navbar img {
    height: 40px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    font-size: 1rem;
    color: var(--black-color);
    font-weight: 500;
    transition: border-bottom 0.2s;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: scale(1.08);
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--white-color);
    box-shadow: -4px 0 10px var(--shadow-light);
    padding-top: 4rem;
    transition: right 0.3s ease;
    z-index: 300;
}

.sidebar.active {
    right: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.sidebar ul li a {
    color: var(--black-color);
    font-size: 1.2rem;
    text-decoration: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    padding: 1rem;
}

.hero > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-text {
    color: var(--white-color);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-out;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-text button {
    padding: 0.8rem 2rem;
    background-color: var(--white-color);
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s, color 0.3s;
}

.hero-text button:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 12px rgba(0,0,0,0.2);
    background-color: var(--primary-color);
    color: var(--white-color);
}

.about {
    background-color: var(--white-color);
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    column-count: 2;
    column-gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 250px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.about-image img:hover {
    filter: grayscale(0%);
}

.struktur {
    text-align: center;
    background-color: var(--background-light);
}

.struktur h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.personil {
    position: relative;
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 10px var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px;
}

.personil:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 119, 255, 0.2);
}

.personil img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.personil h3 {
    font-size: 1.4rem;
}

.personil .tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: var(--black-color);
    color: var(--white-color);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
}
.personil .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--black-color) transparent transparent transparent;
}

.personil:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.galeri {
    text-align: center;
}

.galeri h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: none !important;
}

.gallery-grid .filter-sepia { border-radius: 15px; filter: sepia(80%); }
.gallery-grid .filter-blur { border-radius: 50% 15px 50% 15px; filter: blur(2px); }
.gallery-grid .filter-contrast { border-radius: 15px 50px; filter: contrast(150%); }
.gallery-grid .filter-brightness { border-radius: 5px; filter: brightness(70%); }

.berita {
    background-color: var(--background-light);
}

.berita h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.news-content {
    display: none;
    margin-bottom: 2rem;
    column-count: 2;
    column-gap: 2rem;
}

@keyframes fadeInNews {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-content.active {
    display: block;
    animation: fadeInNews 0.5s ease-in-out;
}

.news-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    column-span: all;
}

.news-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 1.5rem;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.6;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.saran {
    text-align: center;
}

.saran h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.saran-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.saran-container input,
.saran-container textarea,
.saran-container button {
    width: 100%;
    max-width: 800px;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 10px var(--shadow-light);
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    resize: none;
    background-color: var(--background-light);
}

.saran-container textarea {
    height: 200px;
}

.saran-container button {
    background-color: var(--black-color);
    color: var(--white-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.saran-container button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 14px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 -5px 11px var(--shadow-light);
}

footer p {
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-text p, .news-content {
        column-count: 1;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 1rem;
    }
    
    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}