/* ======================================= */
/* STYLE UNTUK MICROSITE RISET OMI      */
/* ======================================= */
:root {
    --color-primary: #107C41; /* Hijau Kemenag */
    --color-secondary: #FFCA28; /* Kuning */
    --color-dark: #222;
    --color-light: #f9f9f9;
}

.riset-container {
    width: 100%;
    overflow-x: hidden;
    background-color: #fff;
    color: #333;
}

/* 1. HERO SECTION */
.riset-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    /* PERBAIKAN: Tambahkan warna latar belakang gelap sebagai cadangan */
    background-color: var(--color-dark);
}

.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    /* PERBAIKAN: Ubah z-index menjadi 1 (lapisan paling bawah) */
    z-index: 1;
}

/* Style untuk YouTube (sinematik) */
.hero-video-background.type-youtube {
    pointer-events: none;
}
.hero-video-background.type-youtube iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-width: 177.77vh; /* 16:9 */
    min-height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Style untuk Google Drive (player standar) */
.hero-video-background.type-gdrive iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

/* Fallback untuk file video lokal */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* PERBAIKAN: Ubah z-index menjadi 1 (lapisan paling bawah) */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* PERBAIKAN: Ubah z-index menjadi 2 (di atas video) */
    z-index: 2;
}

.hero-content {
    animation: fadeIn 1.5s ease-out;
    position: relative;
    color: white;
    max-width: 900px;
    padding: 20px;
    /* PERBAIKAN: Ubah z-index menjadi 3 (di atas overlay) */
    z-index: 3;
}

.hero-kategori {
    background: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
}

.hero-title {
    font-size: 2.8em;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.3;
}

.team-list {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-button {
    background: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
}
.cta-button:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-3px);
}
.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 25px;
}
.cta-button.secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* 2. SECTION UMUM */
.riset-section {
    padding: 80px 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.riset-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.dark-section {
    background-color: #f4f7f6;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 50px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    max-width: 600px;
    margin: -30px auto 40px auto;
}

/* 3. PROBLEM SECTION */
.problem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.problem-text p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}
.problem-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 4. FINDINGS SECTION */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.findings-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.card-icon {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.findings-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}
.findings-quote {
    font-style: italic;
    padding: 10px 15px;
    border-left: 4px solid var(--color-primary);
    background: #f9f9f9;
    margin-top: 20px;
}

/* 5. LEGITIMACY SECTION */
.legitimacy-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.legitimacy-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.legitimacy-item.reverse {
    grid-template-columns: 1fr 1fr;
}
.legitimacy-item.reverse .legitimacy-content {
    order: 2;
}
.legitimacy-item.reverse .legitimacy-image {
    order: 1;
}
.legitimacy-content h3 {
    font-size: 2em;
    color: var(--color-primary);
}
.legitimacy-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin: 20px 0;
}
.legitimacy-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 6. DOWNLOADS SECTION */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.download-card {
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--color-dark);
    transition: all 0.3s ease;
}
.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}
.download-card i {
    font-size: 3.5em;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.download-card h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
}
.download-card p {
    font-size: 0.9em;
    color: #666;
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2em;
    }
    .problem-container,
    .legitimacy-item,
    .legitimacy-item.reverse {
        grid-template-columns: 1fr;
    }
    .legitimacy-item.reverse .legitimacy-content,
    .legitimacy-item.reverse .legitimacy-image {
        order: 0; /* Reset order */
    }
}