/* Filename: style/konsultan.css */

/* --- WRAPPER & HERO --- */
.surau-consultant-wrapper {
    background: #F9FAFB;
    overflow-x: hidden;
}

.consultant-hero {
    background: var(--surau-black);
    color: white;
    padding: 120px 0 60px; /* Offset header fixed */
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
    color: white;
}

.hero-text p {
    color: #D1D5DB;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.pill-badge {
    background: rgba(230,0,2,0.15);
    color: var(--surau-red);
    border: 1px solid var(--surau-red);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- LIST SECTION --- */
.consultant-list-section {
    padding: 60px 0;
}

.consultant-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

/* Layout Grid: Kiri Teks, Kanan Gambar */
.card-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 500px;
}

/* Modifier untuk Zig-Zag Layout di Desktop */
.card-grid.reverse-desktop {
    grid-template-columns: 1fr 1.2fr;
    direction: rtl; /* Trik membalik kolom */
}
.card-grid.reverse-desktop .card-content {
    direction: ltr; /* Kembalikan teks ke LTR */
}

/* --- CONTENT STYLING --- */
.card-content {
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--surau-black);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-bottom: 3px solid var(--surau-yellow);
    display: inline-block;
    padding-bottom: 5px;
    width: fit-content;
}

.job-list { margin-bottom: 30px; }
.job-list h3, .specs-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #374151;
}

.job-list ul {
    list-style: none;
    padding: 0; margin: 0;
}

.job-list ul li {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #4B5563;
    align-items: start;
}

.job-list ul li i {
    color: var(--surau-red);
    margin-top: 5px;
}

/* --- SPECS BOX --- */
.specs-box {
    margin-bottom: 30px;
}

.spec-item { margin-bottom: 15px; }
.spec-item strong { display: block; color: var(--surau-black); font-size: 1.05rem; }
.spec-item p { margin: 0; color: #666; font-size: 0.95rem; }

.simple-list li {
    margin-bottom: 8px;
    color: #4B5563;
    font-size: 0.95rem;
}

/* --- PRICE BOX (Dark Style ala Image) --- */
.price-box.dark {
    background: #1F2937; /* Dark Gray */
    color: white;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Aksen garis vertikal putih/tebal ala img 3 */
.price-box .vertical-line-accent {
    position: absolute;
    left: 20px; top: 20px; bottom: 20px;
    width: 4px;
    background: white;
    border-radius: 4px;
}
.price-box:has(.vertical-line-accent) { padding-left: 40px; }

.price-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 5px;
}
.price-row:last-child { border-bottom: none; }
.price-row strong { color: #FCD34D; /* Kuning Emas */ font-size: 1.1rem; }

.price-grid-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-weight: 700;
    color: #FCD34D;
}

.note { display: block; margin-top: 10px; font-size: 0.75rem; opacity: 0.6; font-style: italic; }


/* --- IMAGE SIDE --- */
.card-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Helper for Split Row (Keuangan) */
.row-split { display: flex; gap: 30px; margin-bottom: 20px; }
.border-left { border-left: 2px solid #eee; padding-left: 20px; }

/* Image Mobile Only / Desktop Only helpers */
.card-image-mobile-only { display: none; margin-top: 20px; border-radius: 12px; overflow: hidden; }
.card-image-mobile-only img { width: 100%; height: auto; }
.desktop-only { display: block; }

/* --- CTA --- */
.consultant-cta {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #eee;
    text-align: center !important; /* Paksa teks rata tengah */
}
.consultant-cta .surau-container {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Mengatur alignment horizontal ke tengah */
    justify-content: center;
}

.consultant-cta h2 { 
    font-size: 2rem; 
    margin-bottom: 15px; 
    color: var(--surau-black); 
    font-weight: 800;
    line-height: 1.3;
}

.consultant-cta p { 
    color: #666; 
    margin-bottom: 30px; 
    font-size: 1.1rem; 
    max-width: 700px; /* Batasi lebar teks agar enak dibaca */
    margin-left: auto;
    margin-right: auto;
}

.consultant-cta .surau-btn {
    width: auto; 
    padding-left: 30px;
    padding-right: 30px;
}
/* --- ANIMATION --- */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.in-view { opacity: 1; transform: translateY(0); }


/* ==========================================================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 992px) {
    /* Tablet & Mobile: Stack ke bawah */
    .card-grid, .card-grid.reverse-desktop {
        grid-template-columns: 1fr; /* 1 Kolom */
        direction: ltr; /* Reset arah */
    }
    
    .card-image {
        height: 300px; /* Gambar jadi banner di bawah/tengah */
        min-height: auto;
        order: -1; /* Gambar pindah ke ATAS agar visual duluan */
    }
    
    .card-content { padding: 30px; }
    
    .row-split { flex-direction: column; gap: 20px; }
    .border-left { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 20px; }
}

@media (max-width: 600px) {
    /* Mobile Phone */
    .hero-text h1 { font-size: 1.8rem; }
    .card-title { font-size: 1.5rem; width: 100%; text-align: center; }
    
    .consultant-card { border-radius: 16px; margin-bottom: 30px; }
    .card-content { padding: 20px; }
    
    .card-image { height: 200px; }
    
    .price-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .price-grid-sm { grid-template-columns: 1fr; }
    
    /* Layout Keuangan Mobile: Image ditangani khusus */
    .desktop-only { display: none; }
    .card-image-mobile-only { display: block; }
}