/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-dark: #101010;
    --bg-darker: #141414;
    --surface-color: #1E1E1E;
    --primary-color: #f90;
    --text-primary: #ffffff;
    --text-secondary: #b6b6b6;
    --border-color: #2a2a2a;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-dark);
}

.container {
    width: 90%;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
.page-header {
    background-color: var(--bg-darker);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: var(--primary-color);
}
.logo-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- HERO SECTION --- */
.hero-profil {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 16, 16, 1) 0%, rgba(16, 16, 16, 0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.hero-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 4rem 0;
}
.content-section.bg-surface {
    background-color: var(--surface-color);
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.section-title.text-center {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.section-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Styling baru untuk video container agar responsif */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Rasio aspek 16:9 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- VISI & MISI --- */
.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.card {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.05);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.card ul {
    list-style: none;
    padding-left: 0;
}
.card ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.card ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 4px;
}

/* --- STRUKTUR ORGANISASI --- */
.struktur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.profile-card {
    text-align: center;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}
.profile-card .jabatan {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- GALERI --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    z-index: 10;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PETA LOKASI (MAPBOX STYLES) --- */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 450px;
    position: relative;
}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

/* --- FOOTER --- */
.page-footer {
    background-color: var(--bg-darker);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.page-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-tagline { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .back-link span { display: none; }
    .logo-title { font-size: 1.1rem; }
}

@media (min-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr 1fr; /* Diubah menjadi 1fr 1fr agar lebih seimbang */
        gap: 3rem;
    }
    .section-grid.reverse {
        grid-template-columns: 1fr 1fr;
    }
    .section-grid.reverse .section-text { order: 2; }
    .section-grid.reverse .video-container { order: 1; }
    .visi-misi-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-tagline { font-size: 1.2rem; }
    .content-section { padding: 5rem 0; }
}