/* =========================================
   1. RESET & BASIC STYLES (Global)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f7fc;
    scroll-behavior: smooth;
    color: #333;
    overflow-x: hidden;
}

section {
    padding: 100px 10%;
}

.title {
    text-align: center;
    margin-bottom: 60px;
}

.title h2 {
    font-size: 32px;
    color: #0b3c91;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: #ffd700;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* =========================================
   2. NAVBAR STYLES
   ========================================= */
nav {
    position: fixed;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.3s;
    background: rgba(11, 60, 145, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    top: 0;
    left: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    width: 50px;
    height: auto;
    display: block;
}

.logo-area h2 {
    color: #ffd700;
    font-size: 20px;
    font-weight: 600;
    text-overflow: ellipsis;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 9999;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffd700;
}

nav ul.active {
    display: flex;
}

/* =========================================
   3. HERO STYLES
   ========================================= */
.hero {
    min-height: 100vh !important;
    background: linear-gradient(rgba(11, 60, 145, 0.6), rgba(11, 60, 145, 0.8)),
                url('images/bgrn.png') no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 42px;
    color: #ffd700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    margin-top: 20px;
    font-size: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    color: #FFD700;
    margin-bottom: 10px;
}

.btn {
    padding: 12px 35px;
    background: #ffd700;
    color: #0b3c91;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Halaman dalam (bukan home) butuh padding atas agar tidak tertutup navbar,
   dan diberi background gambar senada dengan hero di Home */
.page-header {
    padding-top: 160px;
    padding-bottom: 70px;
    background: linear-gradient(rgba(11, 60, 145, 0.75), rgba(11, 60, 145, 0.85)),
                url('images/bgrn.png') no-repeat;
    background-size: cover;
    background-position: center center;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    color: #ffd700;
    font-size: 32px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .page-header {
        background-attachment: scroll !important;
        padding-top: 130px;
        padding-bottom: 50px;
    }
    .page-header h1 {
        font-size: 24px;
    }
}

/* =========================================
   4. PEMENANG UNDIAN & PENGURUS STYLES
   ========================================= */
#team, #pengurus { background-color: #ffffff; }

.team-subtitle, .role-title {
    text-align: center;
    color: #555;
    margin: -40px auto 50px auto;
    font-weight: 400;
    max-width: 600px;
}

.role-title {
    color: #0b3c91;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 50px;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

.team-member {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #eee;
    text-align: left;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-photo-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s;
}

.team-member:hover .team-photo-wrapper img {
    transform: scale(1.08);
}

.team-info {
    padding: 20px;
    border-top: 3px solid #ffd700;
}

.team-name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Pemenang Undian */
.undian-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.undian-member {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.undian-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.undian-photo-wrapper {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

.undian-photo-wrapper img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center;
}

.undian-info {
    padding: 15px;
    text-align: center;
    border-top: 2px solid #ffd700;
    background: #fff;
    margin-top: auto;
}

.undian-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.undian-role {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* =========================================
   5. OTHER SECTIONS (Produk, About, Form)
   ========================================= */
#produk { background-color: #f0f4f8; }
#about { background-color: #ffffff; }
#contact { background-color: #f0f4f8; }
#pengumuman { background-color: #0b3c91; color: #fff; padding: 20px; text-align: center; }
#pengumuman .title h2 { color: #ffd700; }
#Karir { background-color: #ffffff; padding: 20px; text-align: center; }

#pengumuman .content-box,
#lps .content-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#pengumuman .content-box img,
#lps .content-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

#lps { padding: 20px; text-align: center; }

#Karir .info-loker {
    display: flex;
    justify-content: center;
    align-items: center;
}

#Karir .undian-photo-wrapper img {
    width: 800px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: auto;
}

.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 40px;
    width: 320px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.4s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 15px;
    color: #0b3c91;
    font-size: 20px;
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 16px;
}

.contact-info {
    text-align: center;
    font-size: 18px;
}

.contact-info p {
    margin: 12px 0;
}

.about-map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.map-box {
    flex: 1.2;
    min-width: 320px;
}

.map-box iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.address-box {
    flex: 1;
    min-width: 320px;
}

.address-box h3 {
    color: #0b3c91;
    margin-bottom: 15px;
    font-size: 20px;
}

.address-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

/* =========================================
   6. FORM PENGADUAN STYLES
   ========================================= */
#Pengaduan {
    background-color: #f0f4f8;
}

.complaint-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0b3c91;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn-wa {
    width: 100%;
    padding: 15px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-wa:hover {
    background: #128c7e;
    transform: translateY(-3px);
}

.btn-ws {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-ws:hover {
    background-color: #0056b3;
}

/* Laporan Keuangan */
#laporan {
    padding: 60px 20px;
    background: #f5f7fa;
    text-align: center;
}

#laporan .title h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.laporan-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

.laporan-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    padding: 25px 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 170px;
}

.laporan-card h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-laporan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 150px;
    height: 45px;
    margin: 20px auto 0;

    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

.btn-laporan:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}   
/* =========================================
   7. FOOTER STYLES
   ========================================= */
footer {
    background: #0b3c91;
    color: #fff;
    text-align: center;
    padding: 30px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   8. MASKOT & POPUP LAYANAN
   ========================================= */
.maskot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s;
    animation: float 3s ease-in-out infinite;
}

.maskot:hover {
    animation: goyang 0.5s;
    transform: scale(1.2) translateY(-10px);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes goyang {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.popup {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 300px;
    background: rgb(247, 248, 248);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px;
    display: none;
    z-index: 9999;
    font-family: Arial;
}

.popup h3 {
    margin-top: 0;
    font-size: 16px;
}

.popup input, .popup select, .popup button {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-weight: bold;
    color: red;
}

/* =========================================
   9. RESPONSIVE STYLES (HP & Tablet)
   ========================================= */
@media(max-width: 1024px) {
    .team-member {
        width: calc(50% - 25px);
        max-width: 320px;
    }
}

@media(max-width: 768px) {
    nav { padding: 15px 20px; }

    .menu-toggle { display: flex; }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 220px;
        background: #0b3c91;
        border: 1px solid #ffd700;
        border-radius: 12px;
        padding: 10px 0;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        text-align: left;
    }

    nav ul.active { display: flex; }

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

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

    nav ul li a {
        display: block;
        padding: 12px 20px;
        color: #ffd700;
        font-size: 14px;
        text-decoration: none;
        transition: 0.3s;
    }

    nav ul li a:hover {
        background: rgba(255, 215, 0, 0.1);
        color: #fff;
    }

    .hero h1 { font-size: 28px; }
    section { padding: 60px 20px; }
    .title h2 { font-size: 26px; }
    .team-container, .undian-container { gap: 20px; }
    .team-member, .undian-member {
        width: calc(50% - 10px);
        max-width: 280px;
    }
    .team-photo-wrapper, .undian-photo-wrapper { height: 250px; }

    .about-map-container { flex-direction: column; }
}

@media (max-width: 600px) {
    .hero {
        background-size: cover !important;
        background-attachment: scroll !important;
        height: auto !important;
        min-height: 100dvh !important;
    }
    .laporan-container {
        grid-template-columns: 1fr;
    }
}
