/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --primary: #034f3d;     /* Dark Green */
    --primary-dark: #023629;
    --gold: #D4AF37;        /* Gold */
    --gold-hover: #b89628;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --font-heading: 'Amiri', serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITY CLASSES
========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn-primary { background: var(--gold); color: var(--white); padding: 10px 25px; border-radius: 50px; font-weight: 600; }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }

.section-header { text-align: center; margin-bottom: 60px; }
.sub-heading { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--primary); margin-bottom: 15px; }
.divider { height: 3px; width: 70px; background: var(--gold); margin: 0 auto; border-radius: 3px; }

/* Animation Classes */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   3. TOP BAR & NAVBAR
========================================= */
.top-bar { background: var(--primary); color: var(--white); padding: 10px 0; font-size: 0.9rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.contact-info a, .social-links a { color: var(--white); margin-right: 15px; display: inline-flex; align-items: center; gap: 8px; }
.social-links a:hover { color: var(--gold); }

.navbar { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.navbar.scrolled { padding: 10px 0; }
.navbar-inner { display: flex; justify-content: space-between; align-items: center; }

.desktop-menu { display: flex; gap: 30px; }
.nav-link { color: var(--dark); font-weight: 500; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--gold); transition: 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* Mobile Sidebar */
.mobile-sidebar { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: var(--white); z-index: 2000; box-shadow: -5px 0 30px rgba(0,0,0,0.1); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 30px; }
.mobile-sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.close-btn { font-size: 1.5rem; cursor: pointer; color: var(--gray); }
.sidebar-nav { display: flex; flex-direction: column; gap: 20px; }
.sidebar-nav a { font-size: 1.1rem; color: var(--dark); font-weight: 500; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.btn-sidebar { background: var(--primary); color: var(--white) !important; text-align: center; border: none; border-radius: 8px; padding: 12px; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; backdrop-filter: blur(3px); }
.overlay.active { display: block; }

/* =========================================
   4. HERO SECTION
========================================= */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; background: #f4fdf9; }
.hero-content { display: flex; align-items: center; gap: 50px; position: relative; z-index: 2; }
.hero-text { flex: 1; }
.hero-visual { flex: 1; position: relative; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(212, 175, 55, 0.15); color: #b8860b; padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.hero-text h1 { font-family: var(--font-heading); font-size: 3.8rem; line-height: 1.1; margin-bottom: 20px; color: var(--primary); }
.highlight { color: var(--gold); }
.hero-text p { font-size: 1.15rem; color: var(--gray); margin-bottom: 30px; max-width: 90%; }

.cta-group { display: flex; gap: 15px; margin-bottom: 40px; }
.btn-hero-solid { background: var(--primary); color: var(--white); padding: 15px 35px; border-radius: 50px; font-weight: 600; box-shadow: 0 10px 20px rgba(3, 79, 61, 0.3); }
.btn-hero-solid:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-hero-outline { border: 2px solid var(--primary); color: var(--primary); padding: 13px 30px; border-radius: 50px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.btn-hero-outline:hover { background: var(--primary); color: var(--white); }

.trust-badges p { font-size: 0.9rem; color: var(--gray); margin-bottom: 10px; font-weight: 500; }
.flags { display: flex; gap: 15px; }
.flags img { width: 30px; opacity: 0.8; transition: 0.3s; }
.flags img:hover { opacity: 1; transform: scale(1.1); }

/* Hero Visual */
.image-frame { position: relative; }
.image-frame img { border-radius: 20px; box-shadow: var(--shadow); border: 5px solid var(--white); }
.floating-card { position: absolute; background: var(--white); padding: 15px 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary); animation: float 3s ease-in-out infinite; }
.card-1 { top: 40px; left: -30px; }
.card-2 { bottom: 40px; right: -30px; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================
   5. STATS & COURSES
========================================= */
.stats-strip { background: var(--primary); padding: 60px 0; color: var(--white); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.stat-item h3 { font-size: 2.5rem; color: var(--gold); margin-bottom: 5px; font-weight: 700; }
.stat-item p { opacity: 0.9; font-weight: 500; }

.courses-section { padding: 100px 0; background: var(--white); }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.course-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid #eee; transition: 0.4s; position: relative; }
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.course-card.featured { border: 2px solid var(--gold); transform: scale(1.02); }
.course-img { position: relative; height: 220px; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.course-card:hover .course-img img { transform: scale(1.1); }
.course-tag { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.6); color: var(--white); padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.course-tag.popular { background: var(--gold); color: var(--primary); }

.course-body { padding: 30px; }
.course-body h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; color: var(--primary); }
.course-features { margin: 20px 0; color: var(--gray); font-size: 0.95rem; }
.course-features li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.course-features i { color: var(--gold); }
.btn-course, .btn-course-solid { display: block; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; transition: 0.3s; }
.btn-course { border: 1px solid #eee; color: var(--primary); }
.btn-course:hover { background: var(--primary); color: var(--white); }
.btn-course-solid { background: var(--gold); color: var(--white); }
.btn-course-solid:hover { background: var(--gold-hover); }

/* =========================================
   6. BOOKING SECTION (GLASSMORPHISM)
========================================= */
.booking-section { background: linear-gradient(135deg, #034f3d 0%, #022c22 100%); padding: 100px 0; position: relative; overflow: hidden; }
.booking-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('../images/islamic-pattern-overlay.png'); opacity: 0.05; }
.booking-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 60px; position: relative; z-index: 2; }
.booking-info { flex: 1; color: var(--white); }
.booking-info h2 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.lead-text { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.check-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.check-list i { color: var(--gold); }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: white; padding: 10px 20px; border-radius: 50px; font-weight: 600; margin-top: 15px; }

.glass-form { flex: 1; max-width: 480px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 5px; }
.form-header p { color: rgba(255,255,255,0.7); }

.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gray); z-index: 2; }
.input-group input, .input-group select { width: 100%; padding: 14px 14px 14px 45px; border-radius: 8px; border: none; background: rgba(255,255,255,0.9); font-size: 1rem; color: var(--dark); font-family: inherit; transition: 0.3s; }
.input-group input:focus { background: var(--white); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3); outline: none; }
.submit-btn { width: 100%; background: var(--gold); color: var(--primary); font-weight: 700; padding: 14px; border-radius: 8px; border: none; font-size: 1.1rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-btn:hover { background: var(--white); }

/* =========================================
   7. FEATURES, PROCESS & REVIEWS
========================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-box { background: var(--light); padding: 30px; border-radius: 12px; transition: 0.3s; text-align: center; }
.feature-box:hover { background: var(--white); box-shadow: var(--shadow); transform: translateY(-5px); }
.icon-circle { width: 70px; height: 70px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.process-section { padding: 100px 0; }
.process-steps { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; text-align: center; }
.step { flex: 1; }
.step-num { font-size: 4rem; font-weight: 700; color: rgba(3, 79, 61, 0.08); line-height: 1; margin-bottom: -20px; position: relative; z-index: 1; }
.step h4 { font-size: 1.4rem; color: var(--primary); margin-bottom: 10px; position: relative; z-index: 2; }
.step-connector { height: 2px; background: #eee; flex: 1; margin-top: 60px; }

.reviews-section { padding: 100px 0; background: #f9f9f9; }
.split-layout { display: flex; gap: 60px; }
.reviews-col, .teachers-col { flex: 1; }
.review-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); margin-top: 30px; }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 15px; }
.reviewer { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.reviewer img { width: 50px; height: 50px; border-radius: 50%; }
.teacher-avatars { display: flex; align-items: center; margin: 20px 0; }
.teacher-avatars img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--white); margin-right: -10px; }
.teacher-avatars span { margin-left: 20px; font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.btn-outline-dark { border: 2px solid var(--primary); color: var(--primary); padding: 10px 25px; border-radius: 50px; font-weight: 600; display: inline-block; }

/* =========================================
   8. FOOTER
========================================= */
.footer { background: var(--dark); color: #cbd5e1; }
.newsletter-strip { background: var(--primary); padding: 50px 0; position: relative; top: -40px; border-radius: 20px; margin: 0 20px; width: auto; max-width: 1160px; margin-left: auto; margin-right: auto; }
.news-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.news-inner h3 { color: var(--white); font-size: 1.6rem; font-family: var(--font-heading); margin: 0; }
.news-form { display: flex; gap: 10px; flex: 1; max-width: 500px; }
.news-form input { flex: 1; padding: 12px 20px; border-radius: 50px; border: none; outline: none; }
.news-form button { background: var(--gold); border: none; padding: 0 30px; border-radius: 50px; font-weight: 600; cursor: pointer; color: var(--white); }

.footer-content { padding: 40px 0 60px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { margin: 20px 0; font-size: 0.95rem; line-height: 1.8; opacity: 0.8; }
.social-icons-footer a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); margin-right: 10px; transition: 0.3s; }
.social-icons-footer a:hover { background: var(--gold); }
.footer h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; }
.footer-links li, .footer-contact li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; font-size: 0.95rem; }
.footer-contact i { color: var(--gold); margin-top: 5px; }
.footer-bottom { padding: 25px 0; text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* =========================================
   9. RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; padding-top: 40px; }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
    .trust-badges { justify-content: center; display: flex; flex-direction: column; align-items: center; }
    .booking-wrapper { flex-direction: column; }
    .glass-form { width: 100%; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .desktop-menu, .nav-actions .btn-primary { display: none; }
    .mobile-toggle { display: block; }
}

@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 10px; }
    .hero-text h1 { font-size: 2.5rem; }
    .process-steps { flex-direction: column; }
    .step-connector { display: none; }
    .step { margin-bottom: 40px; }
    .split-layout { flex-direction: column; }
    .news-inner { flex-direction: column; text-align: center; }
    .news-form { width: 100%; flex-direction: column; }
}