/*
 * PMI Flores Timur Core Stylesheet
 * Version: 5.0 (Fix Carousel Text Color)
 */

/* ========================================================================
 * 1. Penyesuaian Bootstrap & Polesan Umum
 * ======================================================================== */

/* Perbaikan Teks Putih di Tema Gelap */
.card, .table-responsive { color: #333; }

/* Penyesuaian form grid */
@media (min-width: 768px) {
  .col-form-label.text-md-end { text-align: right; }
}

/* Notifikasi Admin */
.pmi-admin-notice .btn-close { box-sizing: content-box; }


/* ========================================================================
 * 2. Style Dasbor Statistik (Modul 7)
 * ======================================================================== */
.pmi-stat-card { border-top: 5px solid #0073aa; }
.pmi-stat-card-v2 { border-left: 5px solid #0073aa; transition: transform 0.2s; background: #fff; }
.pmi-stat-card-v2:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.1)!important; }
.pmi-stat-icon { width: 60px; height: 60px; border-radius: 12px; background-color: rgba(0,115,170,0.1); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #0073aa; }
.pmi-stat-card .stat-number, .pmi-stat-card-v2 .stat-number { font-size: 28px; font-weight: 700; color: #2c3e50; line-height: 1.2; }
.pmi-stat-card .stat-label, .pmi-stat-card-v2 .stat-label { font-size: 13px; color: #6c757d; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Pewarnaan Kotak Statistik */
.pmi-stat-cpmi.pmi-stat-card-v2 { border-left-color: #ffc107; } .pmi-stat-cpmi .pmi-stat-icon { color: #ffc107; background-color: rgba(255, 193, 7, 0.1); }
.pmi-stat-pmi.pmi-stat-card-v2 { border-left-color: #198754; } .pmi-stat-pmi .pmi-stat-icon { color: #198754; background-color: rgba(25, 135, 84, 0.1); }
.pmi-stat-purna.pmi-stat-card-v2 { border-left-color: #0d6efd; } .pmi-stat-purna .pmi-stat-icon { color: #0d6efd; background-color: rgba(13, 110, 253, 0.1); }
.pmi-stat-kasus.pmi-stat-card-v2 { border-left-color: #dc3545; } .pmi-stat-kasus .pmi-stat-icon { color: #dc3545; background-color: rgba(220, 53, 69, 0.1); }

.pmi-charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-top: 20px; }
.pmi-chart-container { background: #fff; }
.pmi-chart-container-wrapper { position: relative; height: 300px; width: 100%; }

/* ========================================================================
 * 3. Style Admin Meta Box (Backend)
 * ======================================================================== */
.pmi-admin-meta-box { box-sizing: border-box; }
.pmi-admin-meta-box table.form-table { width: 100%; }
.pmi-admin-meta-box table.form-table th, .pmi-admin-meta-box table.form-table td { padding: 15px; vertical-align: top; }
.pmi-admin-meta-box table.form-table th { width: 200px; font-weight: 600; }
.pmi-admin-meta-box input[type="text"], .pmi-admin-meta-box select, .pmi-admin-meta-box textarea { width: 100%; max-width: 600px; }
.pmi-admin-meta-box p.description { font-style: italic; color: #555; }
.pmi-admin-meta-box .button.button-secondary { margin: 0 10px 10px 0; }


/* ========================================================================
 * 4. Landing Page (v5.0 - Fix Text Colors)
 * ======================================================================== */

.pmi-landing-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Carousel Container */
.pmi-hero-carousel {
    margin-bottom: 4rem;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Slide Item Individual */
.pmi-hero-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 6rem 1rem;
    color: #ffffff !important; /* Paksa warna putih */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay Gelap */
.pmi-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%); /* Sedikit lebih gelap */
    z-index: 0;
}

/* Typography - PERBAIKAN WARNA DI SINI */
.pmi-hero-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); /* Shadow lebih kuat */
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    color: #ffffff !important; /* Paksa putih, menimpa tema */
    margin-bottom: 1.5rem;
}
.pmi-hero-subtitle {
    font-weight: 400;
    opacity: 1;
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 2rem auto; /* Margin bawah */
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
    color: #f0f0f0 !important; /* Hampir putih */
}

/* Badge/Label Slide */
.badge {
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tombol CTA */
.d-flex.justify-content-center.gap-3 {
    position: relative;
    z-index: 1;
}

/* Tombol Navigasi Carousel (Panah) */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    z-index: 2;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* Tombol Indikator */
.carousel-indicators [data-bs-target] {
    background-color: #fff;
    height: 5px;
    border-radius: 2px;
    width: 30px;
    margin: 0 5px;
    opacity: 0.7;
}
.carousel-indicators .active {
    opacity: 1;
    width: 40px;
}

/* Kartu Layanan (Floating) */
.pmi-services-container {
    margin-top: -6rem; 
    position: relative;
    z-index: 10;
}

.pmi-service-card { background: #fff; border: none; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 74, 143, 0.08); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); height: 100%; text-decoration: none; display: block; color: #333; }
.pmi-service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 74, 143, 0.15); color: #004a8f; }
.pmi-service-icon-wrapper { width: 70px; height: 70px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; font-size: 32px; transition: all 0.3s ease; }
.pmi-icon-blue { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.pmi-icon-green { background: rgba(25, 135, 84, 0.1); color: #198754; }
.pmi-icon-red { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.pmi-icon-purple { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.pmi-service-card:hover .pmi-service-icon-wrapper { transform: scale(1.1); }
.pmi-service-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.pmi-service-desc { font-size: 0.9rem; color: #6c757d; line-height: 1.4; }

.pmi-stats-section { background-color: #f8f9fa; padding: 4rem 0; border-radius: 20px; }
.pmi-stat-item { text-align: center; padding: 1.5rem; background: #fff; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.pmi-stat-value { font-size: 3rem; font-weight: 800; color: #004a8f; line-height: 1; margin-bottom: 0.5rem; }
.pmi-stat-label { font-weight: 600; color: #555; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* Berita */
.pmi-news-card { border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.3s ease; height: 100%; background: #fff; }
.pmi-news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.pmi-news-img-wrapper { height: 180px; overflow: hidden; }
.pmi-news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pmi-news-card:hover .pmi-news-img-wrapper img { transform: scale(1.05); }
.pmi-news-body { padding: 1.5rem; }
.pmi-news-date { font-size: 0.8rem; color: #999; margin-bottom: 0.5rem; display: block; }
.pmi-news-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; line-height: 1.4; }
.pmi-news-title a { color: #333; text-decoration: none; transition: color 0.2s; }
.pmi-news-title a:hover { color: #0073aa; }