:root {
    --primary-gradient: <?php echo $active_theme['primary']; ?>;
    --dark-bg: #0b1120;
    --card-bg: #1e293b; /* Solid dark contrast background */
    --card-hover-bg: #334155;
    --border-glass: rgba(255, 255, 255, 0.15);
    --badge-color: <?php echo $active_theme['badge']; ?>;
    --text-heading: #ffffff;
    --text-body: #cbd5e1;
}

body {
    background-color: var(--dark-bg);
    background-image: radial-gradient(at 50% 0%, <?php echo $active_theme['accent']; ?> 0px, transparent 65%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    min-height: 100vh;
}

/* SECTION TITLES FIX */
.section-title {
    color: var(--text-heading) !important;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
   color: #000000 !important;
}

.section-subtitle, .section-lead {
    color: #f1f5f9 !important;
    font-size: 16px;
}

.section-titles {
    color: var(--text-heading) !important;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
   color: white; !important;
}

/* HERO SECTION */
.puchong-hero {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.95), rgba(30, 41, 59, 0.92)), url('/assets/images/Smart_Education_Home_Tuition.webp') center/cover no-repeat;
    padding: 80px 20px;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border-glass);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--badge-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--border-glass);
}

.puchong-hero h1 {
    color: var(--text-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.puchong-hero p {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-img-wrapper img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border: 2px solid var(--border-glass);
    max-width: 100%;
}

/* 3D CARDS FIX */
.services-3d, .areas-section, .faq-section {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover-bg);
    border-color: var(--badge-color);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.service-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 0;
}

/* AREA TAGS / CITIES FIX */
.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.area-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    color: #f1f5f9;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
}

.area-tag i {
    color: var(--badge-color);
}

.area-tag:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: scale(1.05);
    border-color: transparent;
}

/* FAQ STYLING FIX */
.faq-container { 
    max-width: 850px; 
    margin: 30px auto 0 auto; 
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.faq-item h3 {
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA BANNER */
.puchong-cta {
    background: var(--primary-gradient);
    padding: 60px 20px;
    border-radius: 30px;
    text-align: center;
    margin: 50px 0 70px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* RECOMMENDED TUTORS */
.recommended-tutors-section{padding:60px 0;background:rgba(15,23,42,.55)}
.recommended-tutors-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-top:32px}
.recommended-tutor-card{height:100%;display:flex;flex-direction:column;text-align:center;padding:25px 20px;background:#1e293b;border:1px solid rgba(255,255,255,.13);border-radius:20px;box-shadow:0 10px 25px rgba(0,0,0,.22);transition:transform .25s ease,border-color .25s ease}
.recommended-tutor-card:hover{transform:translateY(-5px);border-color:var(--badge-color)}
.recommended-tutor-photo{width:100px;height:100px;object-fit:cover;border-radius:50%;border:3px solid #007bff;background:#f1f5f9;margin:0 auto 15px}
.recommended-tutor-card h3{font-size:18px;font-weight:800;color:#fff;margin:0 0 8px}
.recommended-tutor-location{font-size:13px;color:#f1f5f9;margin-bottom:12px}
.recommended-tutor-subjects{font-size:13px;line-height:1.6;color:#dbeafe;min-height:42px;margin-bottom:18px}
.recommended-tutor-subjects span{display:inline-block;background:rgba(0,112,243,.17);border:1px solid rgba(0,112,243,.25);padding:4px 8px;border-radius:20px;margin:2px}
.recommended-tutor-button {
    display: inline-block;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: var(--primary-gradient);
}

.recommended-tutor-button:hover {
    color: #fff;
    filter: brightness(1.08);
}
@media(max-width:991px){.recommended-tutors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.recommended-tutors-grid{grid-template-columns:1fr}.recommended-tutor-card{max-width:420px;width:100%;margin:0 auto}}
