/* Filename: style/home.css 
   Description: Styling khusus Homepage dengan detail UI/UX Premium.
   Revisi: v1.3 - Add Section Laris, Remove Modal, Fix Responsive
*/

/* ==========================================================================
   1. HERO SECTION (100vh Fixed)
   ========================================================================== */
.surau-hero-section {
    position: relative;
    height: 100vh; /* Fixed 100vh */
    min-height: 600px; /* Prevent squishing on very short screens */
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    overflow: hidden;
    color: var(--surau-white);
    padding-top: 0; 
}

/* Background Image & Animation */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: heroZoom 40s infinite alternate linear; 
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.35); }
}

/* Overlay Gradient */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(17, 24, 39, 0.7) 0%, 
        rgba(17, 24, 39, 0.85) 50%, 
        rgba(17, 24, 39, 0.95) 100%
    );
    z-index: 2;
}

/* Content Layout */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    text-align: center; /* Center alignment */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center Vertical */
    height: 100%;
}

/* Typography & Elements */
.hero-badge {
    margin-top: auto; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px; 
    color: #FCD34D; 
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.5rem; 
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px; 
    color: var(--surau-white);
    letter-spacing: -1px;
}

.text-highlight {
    background: linear-gradient(90deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: #E5E7EB; 
    margin-bottom: 25px; 
    max-width: 650px;
    line-height: 1.6;
    font-weight: 400;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 15px;
}

.surau-btn {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--surau-red);
    color: white;
    border: 2px solid var(--surau-red);
    box-shadow: 0 4px 15px rgba(230, 0, 2, 0.3);
}

.btn-primary:hover {
    background: #cc0002;
    color: #ffffff !important; /* Paksa teks menjadi putih */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 0, 2, 0.4);
}

.btn-outline-white {
    background: transparent;
    color: var(--surau-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: var(--surau-white);
    color: var(--surau-black);
    border-color: var(--surau-white);
    transform: translateY(-2px);
}

/* Social Proof (Micro) */
.hero-micro-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #9CA3AF;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: auto; 
    margin-bottom: auto; 
}

.proof-divider {
    width: 1px; height: 16px; background: rgba(255,255,255,0.2);
}

.text-white-link { 
    color: var(--surau-white); 
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.4); 
    transition: 0.3s;
}
.text-white-link:hover { border-bottom-color: var(--surau-white); }

/* Animation Classes */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1rem; }
    .hero-cta-group { width: 100%; flex-direction: column; }
    .surau-btn { width: 100%; }
    .hero-micro-proof { flex-direction: column; gap: 10px; border: none; padding-top: 10px; margin-bottom: 20px; }
    .proof-divider { display: none; }
}

/* ==========================================================================
   2. SERVICES SECTION
   ========================================================================== */
.surau-section { padding: 80px 0; }
.bg-gray { background-color: #F9FAFB; }

.section-header { 
    margin-bottom: 60px; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
    text-align: center;
}
.section-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: var(--surau-black);
    font-weight: 800;
    letter-spacing: -0.5px;
}
.surau-pill { 
    background: rgba(230,0,2,0.08); 
    color: var(--surau-red); 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    display: inline-block;
    letter-spacing: 1px; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 24px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--surau-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }

.icon-wrapper {
    width: 70px; height: 70px;
    background: #F3F4F6;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.75rem; 
    color: var(--surau-black);
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    background: var(--surau-red); 
    color: var(--surau-white);
    border-radius: 50%;
    transform: rotate(360deg);
}

.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; line-height: 1.6; color: #6B7280; margin: 0; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   3. PAKET USAHA SECTION
   ========================================================================== */
.surau-paket-section {
    position: relative;
    overflow: hidden; 
}

/* Layout Grid Utama (Desktop) */
.paket-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar 280px - Content Fluid */
    gap: 40px;
    align-items: start;
}

/* --- SIDEBAR STYLING --- */
.paket-sidebar { position: relative; z-index: 2; }

.sidebar-sticky-inner {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.sidebar-title { 
    font-size: 0.9rem; 
    font-weight: 800;
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-bottom: 15px; 
}

.paket-menu-list { display: flex; flex-direction: column; gap: 8px; }

.cat-btn {
    text-align: left;
    background: transparent; 
    border: 1px solid transparent;
    padding: 12px 16px; 
    border-radius: 10px;
    cursor: pointer; 
    font-weight: 600; 
    color: #4B5563;
    transition: all 0.2s;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.95rem;
}

.cat-btn:hover { background: #F9FAFB; color: var(--surau-red); }
.cat-btn.active { 
    background: var(--surau-red); 
    color: white; 
    box-shadow: 0 4px 12px rgba(230,0,2,0.25); 
}
.cat-btn .count-badge {
    background: #eee; color: #666; font-size: 0.75rem; 
    padding: 2px 8px; border-radius: 20px; transition: 0.2s;
}
.cat-btn.active .count-badge { background: rgba(255,255,255,0.3); color: white; }

/* --- CARD STYLING PAKET --- */
.paket-slider-area { width: 100%; min-width: 0; }

.surau-card-paket {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
    display: flex; flex-direction: column;
    transition: 0.3s;
    position: relative;
}
.surau-card-paket:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 200px; overflow: hidden; position: relative;
    background: #f9f9f9;
}
.card-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.badge-promo {
    position: absolute; top: 10px; left: 10px;
    background: #FD0002; color: white;
    font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
    border-radius: 4px; z-index: 2;
}

.card-body-paket {
    padding: 20px;
    display: flex; flex-direction: column; flex-grow: 1;
}
.paket-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: #111; }
.paket-desc { font-size: 0.85rem; color: #666; margin-bottom: 15px; line-height: 1.5; }


/* Responsive Paket */
@media (max-width: 900px) {
    .paket-layout-grid { grid-template-columns: 1fr; gap: 25px; }
    .sidebar-sticky-inner { position: relative; top: 0; padding: 0; background: transparent; box-shadow: none; border: none; }
    .sidebar-title { display: none; }
    .paket-menu-list { flex-direction: row; overflow-x: auto; padding-bottom: 5px; gap: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .paket-menu-list::-webkit-scrollbar { display: none; }
    .cat-btn { white-space: nowrap; flex: 0 0 auto; background: #fff; border: 1px solid #ddd; padding: 8px 16px; font-size: 0.85rem; }
    .cat-btn .count-badge { display: none; }
    .cat-btn.active { border-color: var(--surau-red); }
}

/* ==========================================================================
   4. PROMO BANNER SECTION
   ========================================================================== */
.surau-promo-banner-section {
    background-color: #fff;
    padding: 60px 0;
}

.promo-elegant-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    margin: 0 25px;
    max-width: 1200px; 
    margin-left: auto; margin-right: auto;
}

.surau-promo-banner-section .col-lg-6.text-center {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* Scarcity Timer */
.promo-scarcity-timer {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #ffe0e0;
    padding: 15px 30px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.08);
    margin-bottom: 25px;
    animation: pulseGlow 2s infinite ease-in-out;
}

.timer-label {
    font-size: 0.85rem; color: var(--surau-red); font-weight: 700; 
    margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1.2px;
}
.timer-countdown {
    font-size: 2.2rem; font-weight: 900; color: #111; 
    font-family: monospace, sans-serif; 
}
.timer-box {
    display: inline-block; min-width: 30px;
    font-weight: 800; font-variant-numeric: tabular-nums;
}
.timer-sep { margin: 0 4px; opacity: 0.5; }
.text-red { color: var(--surau-red); }

@keyframes pulseGlow {
    0% { box-shadow: 0 10px 25px rgba(220, 38, 38, 0.08); }
    50% { box-shadow: 0 15px 35px rgba(220, 38, 38, 0.15); border-color: var(--surau-red); }
    100% { box-shadow: 0 10px 25px rgba(220, 38, 38, 0.08); }
}
/* ==========================================================================
   FIX: PROMO VIDEO RESPONSIVE SIZE
   ========================================================================== */
/* Style untuk Frame Media (Gambar/Video) */
.promo-media-frame {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* KHUSUS GAMBAR: Tinggi tetap 300px */
.promo-media-frame.is-image {
    height: 300px;
}

/* KHUSUS VIDEO: Lebih tinggi untuk desktop (misal 450px) */
.promo-media-frame.is-video {
    height: 450px; /* Ubah angka ini jika ingin lebih tinggi lagi */
    padding-top: 0;
    background: #000;
}

/* Agar Iframe video mengisi penuh */
.promo-media-frame.is-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* --- Tampilan Khusus Desktop (Layar >= 992px) --- */
@media (max-width: 991px) {
    .promo-media-frame.is-video {
        height: auto;
        padding-top: 56.25%; /* Rasio 16:9 */
        display: block; /* Reset display flex */
    }
}
/* ==========================================================================
   5. SECTION LARIS (NEW REVISION)
   ========================================================================== */
.surau-laris-section {
    position: relative;
    padding-bottom: 80px; /* Space for swiper pagination if needed */
}

/* 5.1 Filters */
.laris-filters-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.laris-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.laris-filter-btn {
    background: transparent;
    border: 1px solid #E5E7EB;
    padding: 10px 26px;
    border-radius: 50px;
    color: #6B7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.laris-filter-btn:hover, 
.laris-filter-btn.active {
    background: var(--surau-red); 
    color: white;
    border-color: var(--surau-red);
    box-shadow: 0 4px 12px rgba(230,0,2,0.25);
}

/* 5.2 Carousel Container */
.laris-carousel-container {
    position: relative;
    padding: 0 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 5.3 Card Styling (Estetik) */
.surau-card-laris {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%; /* Uniform height */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.surau-card-laris:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Image Wrapper (Utuh & Fit) */
.laris-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio standard for products */
    background: #ffffff;
    border-bottom: 1px solid #f9f9f9;
}

.laris-img-wrapper img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%; 
    max-height: 90%;
    width: auto; 
    height: auto;
    object-fit: contain; /* Memastikan gambar utuh */
}

/* Dynamic Badge */
.laris-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: #FCD34D; /* Soft Gold */
    color: #92400E;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Content */
.laris-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.laris-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.laris-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Max 3 baris deskripsi */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.laris-cta {
    margin-top: auto;
}

/* 5.4 Navigation Arrows (Desktop) */
.laris-next, .laris-prev {
    width: 50px; height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: var(--surau-black);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}
.laris-prev { left: -25px; }
.laris-next { right: -25px; }

.laris-next:hover, .laris-prev:hover {
    background: var(--surau-red);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.laris-next::after, .laris-prev::after {
    font-size: 1.1rem;
    font-weight: 800;
}

/* 5.5 Responsive adjustments for Laris Section */
@media (max-width: 992px) {
    /* Hide desktop arrows on tablet/mobile */
    .laris-next, .laris-prev { display: none; }
    
    .laris-carousel-container {
        padding: 0; /* Remove padding to allow swipe from edge */
    }
}

@media (max-width: 768px) {
    .laris-filters-wrapper {
        text-align: left;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
        margin: 0 -20px 30px; /* Bleed out to screen edges */
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .laris-filters-wrapper::-webkit-scrollbar { display: none; }
    
    .laris-filters { display: inline-flex; flex-wrap: nowrap; }
    
    .surau-card-laris {
        box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Lighter shadow mobile */
    }
}


/* ==========================================================================
   6. EDUCATION SECTION
   ========================================================================== */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.surau-checklist li { display: flex; gap: 15px; margin-bottom: 20px; align-items: start; }
.surau-checklist i { color: var(--surau-red); font-size: 1.2rem; flex-shrink: 0; margin-top: 4px; }

.image-frame-3d { 
    position: relative; border-radius: 24px; 
    box-shadow: -20px 20px 0 #F3F4F6, 0 10px 30px rgba(0,0,0,0.1); 
    transform: perspective(1000px) rotateY(-5deg); transition: 0.5s; 
}
.image-frame-3d:hover { transform: perspective(1000px) rotateY(0deg); }
.image-frame-3d img { border-radius: 24px; width: 100%; display: block; }

.floating-badge-card {
    position: absolute; bottom: 40px; right: -30px;
    background: #fff; padding: 20px 30px; border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    display: flex; align-items: center; gap: 15px; z-index: 5;
    animation: float 4s ease-in-out infinite;
}
.badge-icon { background: var(--surau-red); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
    .edu-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-frame-3d { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 0 25px; }
    .floating-badge-card { right: 10px; bottom: -20px; }
}

/* ==========================================================================
   7. TESTIMONIALS SECTION
   ========================================================================== */
.surau-testimonials-section {
    padding: 100px 0;
}

.testi-card {
    background: #fff;
    padding: 40px 35px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    height: 100%;
    display: flex; flex-direction: column;
}

.quote-icon { font-size: 2.5rem; color: #F3F4F6; margin-bottom: 25px; }

.testi-text {
    font-style: italic; color: #555; font-size: 1.05rem; line-height: 1.7;
    flex-grow: 1; margin-bottom: 30px;
}

.testi-profile {
    display: flex; align-items: center; gap: 15px;
    border-top: 1px solid #f0f0f0; padding-top: 25px;
}

.testi-img {
    width: 55px; height: 55px; border-radius: 50%; overflow: hidden;
    border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.testi-img img { width: 100%; height: 100%; object-fit: cover; }

.surau-testimonials-section .swiper {
    padding: 20px; 
    margin: 0 -20px;
}

/* ==========================================================================
   8. SECTION MITRA SURAU RITEL (NEW)
   ========================================================================== */
.surau-mitra-section {
    position: relative;
    padding: 60px 0 80px 0;
    overflow: hidden;
}

.mitra-carousel-wrapper {
    position: relative;
    padding: 10px;
}

/* Card Styling */
.mitra-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Aspect Ratio Rectangle (16:9 approx) */
    aspect-ratio: 16/9; 
    cursor: pointer;
}

.mitra-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(230, 0, 2, 0.15); /* Red glow subtle */
}

/* Image Wrapper */
.mitra-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.mitra-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mitra-card:hover .mitra-img-wrapper img {
    transform: scale(1.1);
}

/* Overlay Gradient & Text */
.mitra-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity 0.3s;
}

.mitra-name {
    color: var(--surau-white);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.3s;
    /* Truncate text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mitra-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--surau-red);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .mitra-card {
        aspect-ratio: 4/3; /* Agak lebih tinggi di HP agar jelas */
    }
    .mitra-name {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   9. CTA SECTION (REVISI: TEXT CENTER)
   ========================================================================== */
.surau-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    color: var(--surau-white);
    text-align: center !important; /* WAJIB: Paksa rata tengah */
}

/* Wrapper Box agar konten rapi di tengah */
.cta-box {
    max-width: 800px; /* Batasi lebar agar enak dibaca */
    margin: 0 auto;   /* Posisikan box di tengah container */
    display: flex;
    flex-direction: column;
    align-items: center; /* Pastikan semua anak elemen (h2, p, btn) di tengah */
}

.cta-box h2 { 
    color: var(--surau-white); 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
    line-height: 1.2;
}

.cta-box p { 
    color: #9CA3AF; 
    font-size: 1.2rem; 
    margin-bottom: 40px; 
    max-width: 600px; /* Batasi lebar teks deskripsi */
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; /* Agar aman di layar kecil */
}

@media (max-width: 600px) {
    .cta-buttons { 
        flex-direction: column; 
        width: 100%;
    }
    .cta-buttons .surau-btn {
        width: 100%;
        justify-content: center;
    }
    .cta-box h2 { 
        font-size: 2rem; 
    }
}

/* ==========================================================================
   10. SECTION GOOGLE REVIEWS (FINAL + JARAK SPACING)
   ========================================================================== */

/* 1. Container Utama */
.surau-google-reviews {
    padding: 60px 0 80px;
    background: #fff;
    overflow: hidden;
}

/* 2. Badge Rating */
.google-rating-badge {
    display: inline-flex; 
    align-items: center; gap: 10px;
    background: #fff; padding: 5px 15px; border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-top: 10px;
    border: 1px solid #eee;
}
.g-score { font-weight: 800; font-size: 1.1rem; color: #333; }
.g-stars i { color: #FBC02D; font-size: 0.9rem; }
.g-count { font-size: 0.85rem; color: #777; }

/* 3. SWIPER CONTAINER */
.surau-google-swiper {
    padding: 30px 10px 50px !important;
    overflow: hidden !important;
}

/* Wrapper: Animasi Linear */
#google-reviews-wrapper {
    transition-timing-function: linear !important;
    display: flex;
}

/* 4. SLIDE ITEM (INI YANG DIREVISI UNTUK JARAK) */
#google-reviews-wrapper .swiper-slide {
    width: 320px !important;  /* Lebar tetap */
    height: auto !important;  /* Tinggi menyesuaikan */
    display: flex !important; /* Agar tinggi kartu rata */
    
    /* REVISI: Memberi jarak kanan 20px secara paksa */
    margin-right: 20px !important; 
    
    box-sizing: border-box !important;
}

/* 5. KARTU REVIEW */
.g-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    width: 100%;
    display: flex; 
    flex-direction: column;
    position: relative;
}

/* 6. HEADER (Avatar + Info) */
.g-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 15px !important; 
    width: 100%;
    border-bottom: none !important;
}

/* 7. AVATAR (Ukuran Fixed) */
img.g-avatar {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #eee !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 8. TEKS & ELEMEN LAIN */
.g-meta { flex-grow: 1; overflow: hidden; min-width: 0; }

.g-name {
    font-size: 0.95rem !important; 
    font-weight: 700 !important; 
    color: #202124 !important;
    margin: 0 !important; 
    line-height: 1.3 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: left;
}

.g-date { 
    font-size: 0.8rem !important; 
    color: #70757a !important; 
    display: block; text-align: left;
    margin-top: 2px !important;
}

.g-logo-icon { width: 24px !important; height: 24px !important; opacity: 1; flex-shrink: 0; }

.g-stars-row { 
    color: #FBC02D !important; font-size: 0.9rem !important; 
    margin-bottom: 12px !important; text-align: left;
}

.g-text {
    font-size: 0.95rem !important; color: #3c4043 !important; 
    line-height: 1.6 !important; margin: 0 !important;
    text-align: left;
    display: -webkit-box; -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* 9. RESPONSIVE MOBILE */
@media (max-width: 480px) {
    #google-reviews-wrapper .swiper-slide { 
        width: 280px !important; /* Kartu lebih kecil di HP */
    }
    .g-review-card { padding: 15px; }
}