html {
  scroll-behavior: smooth;
}

/* General Styling */
:root {
    --primary-color: #004D99; /* Biru gelap RRI */
    --secondary-color: #FFC107; /* Kuning/emas */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #fff;
    --gray-light: #eee;
    --gray-dark: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

.section-padding {
    padding: 60px 0;
}

.light-bg {
    background: var(--light-bg);
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 15px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    color: var(--white);
    background: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #003366;
}

.btn.primary-btn {
    background: var(--primary-color);
}

.btn.secondary-btn {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn.secondary-btn:hover {
    background: #e6b000;
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    color: var(--white);
    margin: 0;
    font-size: 28px;
    text-align: left; /* Override center for logo text */
}

nav ul {
    list-style: none;
    display: flex;
}

#menusaja {
    margin-left: 25px;
}

nav ul li {
}


nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}



/* Dropdown Button */
nav ul li .dropbtn {
  cursor: pointer;
}

/* Dropdown Menu (hidden by default) */
nav ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  min-width: 180px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.1);
  z-index: 999;
  flex-direction: column;
  padding: 0;
}

/* Dropdown Links */
nav ul li .dropdown-content li a {
  display: block;
  padding: 10px 5px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
}

nav ul li .dropdown-content li a:hover {
  background-color: var(--secondary-color);
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 768px) {
  nav ul li.dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Show dropdown when 'active' (mobile) */
nav ul li.dropdown.active .dropdown-content {
  display: flex;
}






.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 30px;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    background: url('gambar/sampuldepan.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--white);
}

/* Featured Programs */
#featured-programs h3 {
    text-align: center;
    margin-bottom: 40px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.program-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.program-item:hover {
    transform: translateY(-5px);
}

.program-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.program-item h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3em;
}

.program-item p {
    padding: 0 15px 15px;
    font-size: 0.95em;
    color: var(--gray-dark);
}


/* Streaming Section */
.streaming-section h2, .streaming-section p {
    text-align: center;
    margin-bottom: 30px;
}

.streaming-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stream-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px; /* Ensure buttons have a minimum width */
}

.stream-btn i {
    margin-right: 10px;
}

.stream-btn.pro1 { background: #E44D26; } /* Example color */
.stream-btn.pro1:hover { background: #c23e1e; }
.stream-btn.pro2 { background: #3498DB; } /* Example color */
.stream-btn.pro2:hover { background: #2874a6; }
.stream-btn.pro4 { background: #2ECC71; } /* Example color */
.stream-btn.pro4:hover { background: #229954; }

.note-stream {
    font-size: 0.85em;
    color: var(--gray-dark);
    margin-top: 20px;
    text-align: center;
    width: 100%;
}


/* Jadwal Program */
#jadwal h2, #jadwal p {
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
}

.tablinks {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: 0.3s;
    font-size: 17px;
    color: var(--primary-color);
    font-weight: bold;
}

.tablinks:hover {
    background-color: var(--gray-light);
}

.tablinks.active {
    border-bottom: 3px solid var(--secondary-color);
    color: var(--primary-color);
}

.tabcontent {
    padding: 20px 0;
    border-top: none;
}

.tabcontent h3 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--text-color);
}

.tabcontent ul {
    list-style: none;
    padding-left: 0;
}

.tabcontent ul li {
    background: var(--white);
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 5px;
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Podcast Section */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.podcast-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.podcast-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.podcast-item p {
    font-size: 0.9em;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.podcast-item audio {
    width: 100%;
    margin-bottom: 15px;
}

.podcast-item .btn {
    margin-top: 10px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item iframe {
    width: 100%;
    height: 250px;
    display: block;
}

.gallery-item p {
    padding: 15px;
    font-size: 0.9em;
    color: var(--gray-dark);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info {
    text-align: left;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    text-align: left; /* Override center */
    color: var(--text-color);
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
}

.map-container {
    margin-top: 40px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block; /* Remove extra space below iframe */
}


/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    color: var(--white);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    nav {
        order: 3; /* Move nav below logo and hamburger */
        width: 100%;
        display: none; /* Hidden by default for mobile */
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    nav ul li .dropdown-content {
        width: 84%;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        background: rgba(0, 77, 153, 0.9); /* Slightly darker background for mobile menu items */
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
        position: absolute; /* Position it relative to header */
        right: 5%;
        top: 20px;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .streaming-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .stream-btn {
        width: 80%; /* Make buttons wider on mobile */
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tablinks {
        flex-basis: 100%; /* Full width buttons for tabs on mobile */
        margin-bottom: 5px;
        border-bottom: 1px solid var(--gray-light);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Nav Toggle */
#main-nav.active {
    display: block;
}








/* --- Program Detail Page Specific Styles --- */
/* Gaya untuk elemen utama di halaman program-detail.html */
.program-detail-main {
    padding-top: 50px; /* Ruang di atas konten utama */
    padding-bottom: 50px; /* Ruang di bawah konten utama */
}

/* Bagian Hero (gambar dan judul) di halaman detail program */
.program-hero {
    text-align: center; /* Pusatkan teks dan gambar */
    margin-bottom: 40px; /* Jarak ke bagian selanjutnya */
}

/* Gaya untuk gambar program di halaman detail */
.program-hero img {
    max-width: 100%; /* Pastikan gambar tidak melebihi lebar kontainer */
    height: auto; /* Jaga rasio aspek gambar */
    border-radius: 8px; /* Sudut membulat pada gambar */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Efek bayangan pada gambar */
    margin-bottom: 20px; /* Jarak antara gambar dan judul */
}

/* Gaya untuk judul program di halaman detail */
.program-hero h2 {
    font-size: 3em;
    color: var(--primary-color); /* Warna biru RRI */
}

/* Bagian Pemutar Audio di halaman detail program */
.audio-player-section {
    background: var(--light-bg); /* Latar belakang terang */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Efek bayangan */
    margin-bottom: 40px; /* Jarak ke bagian selanjutnya */
    text-align: center; /* Pusatkan konten */
}

/* Judul di bagian pemutar audio */
.audio-player-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Sembunyikan kontrol audio default browser */
.audio-player-section audio {
    width: 100%;
    margin-bottom: 20px;
    display: none;
}

/* Gaya untuk tombol Putar/Jeda di halaman detail program */
.play-pause-btn {
    font-size: 1.2em;
    padding: 12px 25px;
    min-width: 180px; /* Lebar minimum tombol */
}

/* Jarak ikon di dalam tombol play/pause */
.play-pause-btn i {
    margin-right: 10px;
}

/* Warna ikon pause saat aktif */
.play-pause-btn .fa-pause-circle {
    color: var(--secondary-color);
}

/* Catatan kecil di bawah pemutar audio */
.audio-note {
    font-size: 0.85em;
    color: var(--gray-dark);
    margin-top: 15px;
}

/* Bagian Deskripsi Program di halaman detail program */
.program-description {
    background: var(--white); /* Latar belakang putih */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Judul di bagian deskripsi program */
.program-description h3 {
    text-align: left; /* Teks rata kiri */
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Gaya untuk paragraf deskripsi program */
.program-description p {
    text-align: left; /* Teks rata kiri */
    font-size: 1.1em;
    line-height: 1.8; /* Jarak antar baris */
    color: var(--text-color);
}


/* --- Perubahan pada Gaya yang Sudah Ada di index.html --- */

/* Memastikan item program unggulan adalah link yang terlihat rapi */
#featured-programs .program-item {
    text-decoration: none; /* Hilangkan garis bawah pada link */
    color: var(--text-color); /* Pastikan warna teks sesuai */
    display: block; /* Agar seluruh area item bisa diklik */
}

/* Mobile Responsiveness untuk Halaman Detail Program */
@media (max-width: 768px) {
    /* Penyesuaian ukuran font untuk judul di mobile */
    .program-hero h2 {
        font-size: 2em;
    }
    /* Penyesuaian padding untuk bagian audio dan deskripsi di mobile */
    .audio-player-section, .program-description {
        padding: 20px;
    }
    /* Penyesuaian ukuran font untuk paragraf deskripsi di mobile */
    .program-description p {
        font-size: 1em;
    }
}
