/* ============================================================
   WARNA UTAMA (THEME VARIABLES)
   ============================================================ */
:root {
    --primary-light: #B3E5FC;
    --primary-medium: #2196F3;
    --primary-dark: #1565C0;
    --background-gradient: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    --header-gradient: linear-gradient(90deg, #2196F3, #4FC3F7);
    --card-background: #FFFFFF;
    --text-dark: #333;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --success-color: #28A745;
}

/* ============================================================
   RESET DASAR
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.logo-nav {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.header {
    background: var(--header-gradient);
    box-shadow: 0 4px 12px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----------------------------
   DESKTOP NAV
----------------------------- */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s ease-out;
}
.nav a:hover::after {
    width: 100%;
}

/* ----------------------------
   BURGER MENU (MOBILE)
----------------------------- */
.menu-toggle {
    width: 32px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 4px;
    transition: 0.35s ease;
}
/* Icon → X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   NAV MOBILE DROPDOWN
   ============================================================ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav {
        z-index: 9999 !important;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 25px 0;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        background: var(--header-gradient);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 0 0 16px 16px;

        transform: translateY(-320px);
        opacity: 0;
        pointer-events: none;
        transition: 0.35s ease;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================================
   MAIN LAYOUT CONTAINER
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 25px;
    display: grid;
    gap: 30px;
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 15px;
    background-color: var(--primary-medium);
    box-shadow: 0 8px 20px var(--shadow-color);
}
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Captions */
.carousel-caption {
    position: absolute;
    padding: 25px;
    color: white;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
}
.carousel-caption h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
}
.carousel-caption p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 10px;
    cursor: pointer;
    font-size: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
}
.carousel-control:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.indicator.active {
    background: white;
}

/* ============================================================
   CARD BASE STYLE
   ============================================================ */
.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: 0.3s ease;
}
.card:hover { transform: translateY(-5px); }

.card h2 {
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--primary-dark);
    padding-left: 15px;
    border-left: 4px solid var(--primary-medium);
}

/* ============================================================
   FORM INPUT
   ============================================================ */
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
    color: #555;
}
.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s;
}
.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-medium);
    box-shadow: 0 0 8px rgba(33,150,243,0.3);
    outline: none;
}

/* ============================================================
   PPOB GRID
   ============================================================ */
.ppob-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    text-align: center;
}
.service-icon {
    padding: 20px 15px;
    background-color: #E3F2FD;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.service-icon:hover {
    background-color: var(--primary-light);
    box-shadow: 0 4px 8px rgba(179,229,252,0.5);
}
.icon {
    font-size: 38px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.service-icon p {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   STATUS MESSAGE
   ============================================================ */
.status-message {
    display: none;
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}
.status-message.success {
    background-color: #E8F5E9;
    color: var(--success-color);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-content { padding: 10px 15px; }
    .nav { top: 60px; }

    .container { padding: 0 15px; }

    .carousel-caption h3 { font-size: 1.5em; }
    .carousel-caption p { font-size: 0.9em; }
    .carousel-control { font-size: 30px; }
}

@media (max-width: 480px) {
    .carousel-caption h3 { font-size: 1.2em; }
    .carousel-caption p { display: none; }
    .carousel-control { font-size: 24px; }

    .ppob-grid { grid-template-columns: repeat(2, 1fr); }
}
