/* ========================================= */
/* 0. CUSTOM FONT SETUP (Year of the Camel)  */
/* ========================================= */
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-Thin.otf') format('opentype'); font-weight: 100; }
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-ExtraLight.otf') format('opentype'); font-weight: 200; }
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-Light.otf') format('opentype'); font-weight: 300; }
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-Regular.otf') format('opentype'); font-weight: 400; }
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-Medium.otf') format('opentype'); font-weight: 500; }
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-Bold.otf') format('opentype'); font-weight: 700; }
@font-face { font-family: 'YearOfTheCamel'; src: url('../images/TheYearofTheCamel-ExtraBold.otf') format('opentype'); font-weight: 800; }

/* ========================================= */
/* 1. GLOBAL VARIABLES & RESET               */
/* ========================================= */
:root {
    --primary-green: #108c6c;
    --secondary-yellow: #fdb94e;
    --bg-cream: #fdfbf7;
    --text-dark: #333333;
    --text-light: #555555;
    /* Added from PHP files to global root */
    --bg-soft-green: #e2f3e6;
    --bg-soft-blue: #dbeef4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'YearOfTheCamel', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================= */
/* 2. HEADER (NAVBAR)                        */
/* ========================================= */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 20px; background-color: #fff; border-bottom: 1px solid #eee; }
.logo img { height: 50px; width: auto; }
.nav-container { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: #555; font-size: 16px; font-weight: 600; transition: color 0.3s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-green); }
.btn-login { background-color: var(--primary-green); color: white !important; padding: 10px 30px; border-radius: 30px; font-weight: bold; font-size: 16px; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 4px 6px rgba(0, 166, 126, 0.2); white-space: nowrap; }
.btn-login:hover { background-color: #007a5e; transform: translateY(-2px); }

/* ========================================= */
/* 3. HERO SECTIONS (Index vs Inner Pages)   */
/* ========================================= */

/* Index Hero - UPDATED */
.hero-section { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 50px 0; 
    gap: 50px; 
    margin-bottom: 20px; 
    width: 100%; 
    direction: rtl; /* Essential for Arabic Layout */
}

.hero-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* Centers the Image and Button */
    max-width: 600px;
}

.hero-title-img { 
    width: 100%; 
    max-width: 500px; 
    margin-bottom: 20px; 
    height: auto; 
}

.hero-description { 
    font-size: 20px; 
    color: #555; 
    margin: 0 0 35px 0; 
    line-height: 1.7; 
    font-weight: 500;
    
    /* Justify Settings */
    text-align: right; 
    text-align-last: center; /* Centers the last line */
    width: 100%;
}

.cta-link img { 
    height: 65px; 
    width: auto; 
    transition: transform 0.2s ease; 
    max-width: 100%;
}

.cta-link:hover img { 
    transform: scale(1.05); 
}

.hero-image-container { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
}

.hero-main-img { 
    width: 100%; 
    max-width: 550px; 
    height: auto; 
    border-radius: 20px; 
    object-fit: contain;
}

/* Inner Pages Curve */
.header-curve { background-color: var(--primary-green); height: 350px; width: 100%; border-bottom-left-radius: 50% 100px; border-bottom-right-radius: 50% 100px; position: relative; display: flex; justify-content: center; padding-top: 40px; margin-bottom: 80px; }
.header-curve.small { height: 300px; margin-bottom: 50px; } /* For Register page */
.header-badge { background-color: rgba(255, 255, 255, 0.9); color: var(--primary-green); padding: 10px 40px; border-radius: 30px; font-size: 22px; font-weight: 800; height: fit-content; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Overlapping Content Container for Inner Pages */
.content-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; top: -150px; }
.content-container.narrow { max-width: 900px; top: -120px; } /* For Register page */

/* ========================================= */
/* 4. SHARED COMPONENTS                      */
/* ========================================= */
.section { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 36px; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.section-text { font-size: 18px; color: var(--text-light); max-width: 800px; margin: 0 auto; line-height: 1.8; }
.badge { display: inline-block; background-color: #fff; color: var(--primary-green); padding: 8px 25px; border-radius: 50px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px; border: 1px solid transparent; }
.badge.green-filled { background-color: var(--primary-green); color: #fff; }

/* ========================================= */
/* 5. INDEX SPECIFIC FEATURES                */
/* ========================================= */
.features-bar { background-color: #f0f2f5; padding: 30px 0; width: 100%; }
.features-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 15px; flex: 1; }
.feature-item img { width: 60px; height: auto; flex-shrink: 0; }
.feature-item p { margin: 0; font-weight: 700; color: #333; font-size: 15px; line-height: 1.4; }

.info-blocks-wrapper { padding: 80px 0; }
.info-section { margin-bottom: 100px; }
.info-section:last-child { margin-bottom: 0; }
.info-box { border-radius: 40px; display: flex; align-items: flex-end; overflow: visible; position: relative; }
.bg-cyan { background-color: #dbeef4; }
.bg-green { background-color: #e2f3e6; }
.info-box-text { flex: 1; padding: 30px 40px 50px 60px; }
.info-box-text h2 { color: #00a67e; font-size: 32px; margin-bottom: 20px; line-height: 1.3; }
.info-box-text p { font-size: 18px; color: #555; line-height: 1.8; }
.info-box-image { flex: 1; display: flex; justify-content: center; position: relative; }
.info-box-image img { margin-bottom: -60px; max-width: 110%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); position: relative; top: -50px; }
.info-box.reverse .info-box-image img { margin-bottom: -60px; }
.info-box.reverse { flex-direction: row-reverse; }
.info-box.reverse .info-box-text { padding: 30px 60px 50px 40px; }

/* Programs Grid */
.program-section { padding: 80px 0 100px 0; text-align: center; background-color: #fff; }
.program-header { max-width: 850px; margin: 0 auto 50px auto; }
.program-title { font-size: 40px; font-weight: 800; margin-bottom: 15px; color: #000; }
.program-desc { font-size: 18px; color: #666; margin-bottom: 10px; line-height: 1.6; }
.program-subtitle { font-size: 24px; font-weight: 700; color: #222; margin-top: 15px; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.program-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; font-weight: 600; font-size: 16px; color: #333; border: 1px solid transparent; transition: all 0.3s ease; line-height: 1.6; cursor: pointer; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); border-color: #f0f0f0; }
.btn-book { display: inline-block; background-color: #fecb00; color: #000; font-weight: 700; padding: 16px 50px; border-radius: 50px; font-size: 18px; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 5px 15px rgba(254, 203, 0, 0.3); }
.btn-book:hover { background-color: #e5b700; transform: translateY(-2px); }

/* 12. NEW PRICING EFFECTS */

/* Highlight for the 570 SAR card (Saudi Site) */
.pricing-card.highlight { 
    border: 2px solid var(--primary-green) !important; 
    transform: scale(1.05); 
    z-index: 10; 
    box-shadow: 0 15px 40px rgba(16, 140, 108, 0.2) !important; 
}

/* Ambient Gold Glow for the 1700 SAR card */
.pricing-card.premium-gold {
    border: 2px solid #ffd700 !important;
    transform: scale(1.02);
    background: linear-gradient(to bottom, #ffffff, #fffdf0);
    position: relative;
    animation: ambientGlow 3s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
}

.badge-premium {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 11;
}
/* Testimonials */
.testimonials-section { padding: 100px 0; background-color: #fff; text-align: center; }
.testi-title { font-size: 36px; font-weight: 800; color: #222; margin-bottom: 50px; }
.avatars-wrapper { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 40px; position: relative; }
.nav-arrow { width: 40px; height: 40px; border-radius: 50%; background-color: #e0f2f1; color: #00a67e; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: background 0.3s; user-select: none; }
.nav-arrow:hover { background-color: #b2dfdb; }
.testi-avatar { width: 90px; height: 90px; border-radius: 50%; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 4px solid transparent; background-image: url('../images/photo.jpg'); background-size: 500% auto; background-repeat: no-repeat; opacity: 0.7; filter: grayscale(40%); }
.person-1 { background-position: 2% center; }
.person-2 { background-position: 26% center; }
.person-3 { background-position: 50% center; }
.person-4 { background-position: 74% center; }
.person-5 { background-position: 98% center; }
.testi-avatar:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }
.testi-avatar.active { width: 120px; height: 120px; opacity: 1; filter: grayscale(0%); border: 5px solid #b9f6ca; box-shadow: 0 10px 20px rgba(0,166,126,0.15); transform: scale(1); z-index: 2; }
.testimonial-content { max-width: 800px; margin: 0 auto; animation: fadeIn 0.5s ease; }
.testi-name { font-size: 22px; font-weight: 700; color: #000; margin-bottom: 5px; }
.testi-role { font-size: 15px; color: #777; margin-bottom: 15px; }
.testi-stars { color: #FFC107; font-size: 20px; margin-bottom: 25px; letter-spacing: 2px; }
.testi-bubble { background-color: #e8f5e9; padding: 30px 40px; border-radius: 20px; position: relative; display: inline-block; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.testi-bubble::before { content: ""; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); border-width: 0 15px 15px 15px; border-style: solid; border-color: transparent transparent #e8f5e9 transparent; }
.testi-text { font-size: 18px; line-height: 1.8; color: #333; margin: 0; font-weight: 500; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================= */
/* 6. ABOUT SPECIFIC                         */
/* ========================================= */
.hero-images-container { position: absolute; bottom: -120px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 20px; }
.hero-img-card { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.15); position: relative; background-color: #fff; }
.hero-img-card.center { width: 280px; height: 280px; z-index: 2; background-color: var(--secondary-yellow); display: flex; align-items: flex-end; justify-content: center; border: 4px solid #fff; }
.hero-img-card.center img { width: 90%; object-fit: cover; }
.hero-img-card.side { width: 200px; height: 200px; z-index: 1; background-color: #fff; filter: brightness(0.95); }
.hero-img-card.side img { width: 100%; height: 100%; object-fit: cover; }
.objectives-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.obj-card { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease; }
.obj-card:hover { transform: translateY(-5px); }
.obj-icon { width: 50px; height: 50px; background-color: #e0f2f1; border-radius: 12px; margin: 0 auto 15px auto; display: flex; align-items: center; justify-content: center; color: var(--primary-green); font-size: 24px; }
.obj-text { font-size: 16px; color: var(--text-dark); font-weight: 500; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 30px auto 0 auto; }
.feature-box { border: 2px solid var(--primary-green); border-radius: 50px; padding: 15px 30px; background-color: #fff; color: var(--primary-green); font-weight: 700; font-size: 18px; transition: all 0.3s; cursor: default; }
.feature-box:hover { background-color: var(--primary-green); color: #fff; }

/* ========================================= */
/* 7. TEACHERS SPECIFIC                      */
/* ========================================= */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 40px; }
.teacher-card { background: #fff; border-radius: 20px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #f0f0f0; display: flex; flex-direction: column; align-items: center; }
.teacher-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.teacher-img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.teacher-name { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.teacher-role { color: var(--primary-green); font-weight: 700; font-size: 14px; margin-bottom: 15px; background-color: rgba(16, 140, 108, 0.08); padding: 5px 15px; border-radius: 20px; display: inline-block; }
.teacher-separator { width: 40px; height: 3px; background-color: var(--secondary-yellow); margin: 0 auto 15px auto; border-radius: 2px; }
.teacher-bio { font-size: 14px; color: #666; line-height: 1.7; }

/* ========================================= */
/* 8. REGISTER SPECIFIC                      */
/* ========================================= */
.form-card { background: #fff; border-radius: 20px; padding: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); border: 1px solid #eee; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; text-align: right; margin-top: 40px; }
.form-group { margin-bottom: 0; }
.form-group.full-width { grid-column: span 2; }
.form-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-dark); font-size: 15px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 15px 20px; border-radius: 50px; border: 1px solid #e0e0e0; background-color: #fcfcfc; font-family: inherit; font-size: 15px; transition: all 0.3s; }
.form-textarea { border-radius: 20px; resize: vertical; min-height: 120px; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--primary-green); background-color: #fff; box-shadow: 0 0 0 3px rgba(16, 140, 108, 0.1); }
.file-upload-wrapper { position: relative; width: 100%; height: 50px; border: 2px dashed #ddd; border-radius: 50px; display: flex; align-items: center; justify-content: center; background: #fafafa; cursor: pointer; transition: all 0.3s; }
.file-upload-wrapper:hover { border-color: var(--primary-green); background: #fff; }
.file-upload-text { color: #888; font-size: 14px; }
.btn-submit { background-color: var(--secondary-yellow); color: #000; border: none; padding: 15px 50px; font-size: 18px; font-weight: 800; border-radius: 50px; cursor: pointer; transition: all 0.3s; box-shadow: 0 5px 15px rgba(253, 185, 78, 0.3); display: inline-block; margin-top: 20px; }
.btn-submit:hover { background-color: #e0a540; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(253, 185, 78, 0.4); }

/* ========================================= */
/* 9. FOOTER                                 */
/* ========================================= */
.main-footer { background-color: #f8f9fa; padding-top: 60px; border-top: 1px solid #eaeaea; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 20px; }
.footer-desc { font-size: 15px; color: #666; line-height: 1.8; max-width: 400px; }
.footer-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #555; font-size: 15px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-green); padding-right: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 40px; height: 40px; background-color: #fff; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #555; font-size: 18px; transition: all 0.3s ease; }
.social-icon:hover { background-color: var(--primary-green); color: #fff; border-color: var(--primary-green); transform: translateY(-3px); }
.footer-bottom { background-color: #e9ecef; padding: 20px 0; text-align: center; font-size: 14px; color: #777; }

/* ========================================= */
/* 10. RESPONSIVE MEDIA QUERIES              */
/* ========================================= */
@media (max-width: 992px) {
    header { flex-direction: column; gap: 20px; text-align: center; }
    .nav-container { flex-direction: column; gap: 15px; width: 100%; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 10px 15px; }
    .btn-login { width: 100%; max-width: 200px; }
    
    /* Find this section inside @media (max-width: 992px) */

    /* UPDATED: Mobile Hero Styles */
    .hero-section { 
        flex-direction: column-reverse; 
        text-align: center; 
        padding: 30px 0; 
        gap: 30px; 
    }

    .hero-content { 
        align-items: center; 
        width: 100%; 
        max-width: 100%; 
        
        /* This adds the space on the sides so it is not edge-to-edge */
        padding: 0 25px; 
    }

    .hero-description { 
        font-size: 16px; 
        margin: 10px 0 25px 0; 
        /* Removed extra padding here since the parent container now has it */
        padding: 0; 
        text-align: center; 
    }

    .cta-link img { 
        height: auto; 
        width: 100%; 
        max-width: 250px; 
    }

    .hero-image-container { 
        justify-content: center; 
        width: 100%; 
        /* Optional: Add side padding to the student image too if you want */
        padding: 0 25px; 
    }

    .hero-main-img { 
        max-width: 100%; 
        min-width: 250px; 
    }
    /* END UPDATED */

    .features-container { flex-wrap: wrap; gap: 20px; }
    .feature-item { flex-basis: 45%; background: white; padding: 15px; border-radius: 10px; justify-content: center; text-align: right; }
    .info-box { flex-direction: column; align-items: center; text-align: center; padding-top: 40px; margin-top: 60px; }
    .info-box.reverse { flex-direction: column; }
    .info-box-text, .info-box.reverse .info-box-text { padding: 30px 30px 50px 30px; }
    .info-box-text h2 { font-size: 24px; }
    .info-box-image img { margin-bottom: 0; margin-top: -100px; max-width: 70%; position: static; top: auto; }
    .info-box.reverse .info-box-image img { margin-top: -60px; margin-bottom: 0; }
    .info-section { margin-bottom: 80px; }
    .program-grid, .pricing-grid, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .form-card { padding: 30px 20px; }
    .testi-avatar { width: 60px; height: 60px; }
    .testi-avatar.active { width: 90px; height: 90px; }
    .avatars-wrapper { gap: 10px; }
    .testi-bubble { padding: 20px; }
    .testi-text { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo { margin: 0 auto 20px auto; }
    .objectives-grid { 
        grid-template-columns: 1fr; 
    }
    .footer-desc { margin: 0 auto; }
    .social-icons { justify-content: center; }
    /* Curve Adjustments */
    .header-curve { height: 280px; border-bottom-left-radius: 50% 50px; border-bottom-right-radius: 50% 50px; margin-bottom: 100px; }
    .header-curve.small { height: 220px; }
    .content-container { top: -80px; }
    .hero-images-container { flex-direction: column; bottom: -80px; }
    .hero-img-card.center { width: 220px; height: 220px; order: 1; }
    .hero-img-card.side { display: block; position: absolute; top: 40px; z-index: 0; opacity: 0.7; }
    .hero-img-card.side:first-child { left: 50%; transform: translateX(-160px) rotate(-10deg); }
    .hero-img-card.side:last-child { right: 50%; transform: translateX(160px) rotate(10deg); }
    .pricing-card.highlight { transform: none; }
    .pricing-card.highlight:hover { transform: translateY(-10px); }
}

@media (max-width: 600px) {
    .feature-item { flex-basis: 100%; justify-content: flex-start; }
    .feature-item img { width: 50px; }
    .info-box-image img { max-width: 85%; margin-top: -80px; }
    .info-box.reverse .info-box-image img { margin-top: -50px; }
    .program-grid, .pricing-grid, .teachers-grid { grid-template-columns: 1fr; }
    .program-title, .pricing-title, .testi-title, .section-title { font-size: 28px; }
    .btn-offer { font-size: 16px; padding: 15px 20px; width: 100%; }
    .testi-avatar { width: 50px; height: 50px; }
    .testi-avatar.active { width: 80px; height: 80px; }
}

/* ========================================= */
/* 11. UTILITIES                             */
/* ========================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ========================================================= */
/* ========================================================= */
/* APPENDED STYLES FROM PHP FILES (FIXED PATHS)         */
/* ========================================================= */
/* ========================================================= */

/* --- FROM INDEX.PHP --- */

/* 2. HERO SECTION (Index Specific) */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 50px 0; 
    gap: 50px; 
    margin-bottom: 20px; 
    width: 100%; 
    direction: rtl; 
}

/* Floating letters animation */
.floating-letter {
    position: absolute;
    color: var(--primary-green);
    opacity: 0.1;
    font-weight: 800;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Gentle Float for Hero Image */
@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-content { 
flex: 1; 
display: flex; 
flex-direction: column; 

/* CHANGE THIS: 'stretch' ensures text boxes take full width */
align-items: stretch; 

max-width: 600px;
text-align: right;
z-index: 2;
position: relative;
}
.hero-title { font-size: 48px; font-weight: 800; color: var(--primary-green); margin-bottom: 10px; line-height: 1.2; }
.hero-subtitle { font-size: 38px; font-weight: 700; color: #c98f33; margin-bottom: 20px; }
.hero-description { 
font-size: 20px; 
color: #555; 
margin: 0 0 15px 0; 
line-height: 1.7; 
font-weight: 500;

/* FORCE ALIGNMENT */
text-align: right;
width: 100%;
}
.hero-sub-description { 
font-size: 16px; 
color: #777; 
margin-bottom: 35px;

/* FORCE ALIGNMENT */
text-align: center;
width: 100%;
}

.cta-btn-hero {
    display: inline-block;
    background-color: var(--secondary-yellow);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(253, 185, 78, 0.4);
    transition: transform 0.2s ease;
    text-decoration: none;
    
    width: fit-content;        /* Only as wide as the text */
    align-self: flex-start
}
.cta-btn-hero:hover { transform: translateY(-3px); background-color: #e5b700; }

.hero-image-container { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    z-index: 2;
    position: relative;
}

.hero-main-img { 
    width: 100%; 
    max-width: 550px; 
    height: auto; 
    border-radius: 20px; 
    object-fit: contain;
    animation: gentleFloat 4s ease-in-out infinite;
}

/* 3. FEATURES BAR */
.features-bar { background-color: #f0f2f5; padding: 30px 0; width: 100%; }
.features-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 15px; flex: 1; justify-content: center;}
.feature-item img { width: 50px; height: auto; flex-shrink: 0; }
.feature-item p { margin: 0; font-weight: 700; color: #333; font-size: 15px; line-height: 1.4; }

/* 4. INFO BLOCKS */
.info-blocks-wrapper { padding: 80px 0; }
.info-section { margin-bottom: 100px; }
.info-box { border-radius: 40px; display: flex; align-items: flex-end; overflow: visible; position: relative; }
.bg-green { background-color: #e2f3e6; }
.info-box-text { flex: 1; padding: 30px 40px 50px 60px; }
.info-box-image { flex: 1; display: flex; justify-content: center; position: relative; }

/* 5. PROGRAMS SECTION */
.program-section { padding: 80px 0 100px 0; text-align: center; background-color: #fff; }
.program-header { max-width: 850px; margin: 0 auto 50px auto; }
.program-title { font-size: 40px; font-weight: 800; margin-bottom: 15px; color: #000; }
.program-split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }

.program-feature-card {
    background: #fff; border-radius: 20px; padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;
    text-align: center; display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.program-feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-color: var(--primary-green); }

.p-card-title { font-size: 28px; font-weight: 800; color: var(--primary-green); margin-bottom: 20px; }
.p-card-desc { font-size: 16px; color: #666; margin-bottom: 30px; line-height: 1.8; min-height: 80px; }
.p-card-list { text-align: right; margin: 0 auto 40px auto; display: inline-block; }
.p-card-list li { font-size: 18px; font-weight: 600; color: #444; margin-bottom: 12px; position: relative; padding-right: 25px; }
.p-card-list li::before { content: "•"; color: var(--secondary-yellow); font-size: 30px; position: absolute; right: 0; top: -8px; }

.btn-card-action { display: block; width: 100%; background-color: var(--secondary-yellow); color: #000; font-weight: 700; padding: 15px 0; border-radius: 50px; font-size: 18px; margin-bottom: 25px; text-decoration: none; transition: background 0.3s; }
.btn-card-action:hover { background-color: #e5b700; }

.card-secondary-links a { display: block; color: #555; font-size: 15px; margin-bottom: 10px; text-decoration: underline; transition: color 0.3s; }
.card-secondary-links a:hover { color: var(--primary-green); }

/* 6. TYPING HEADLINE */
.typing-headline { font-size: 36px; font-weight: 800; color: #333; line-height: 1.8; }
.txt-type::after { content: '|'; animation: blink 1s infinite; color: #333; margin-right: 5px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 7. WHY CHOOSE SECTION */
.features-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 50px; }
.feature-card { background: #fff; padding: 30px 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #eee; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.f-icon-box { height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.f-icon-box img { max-height: 60px; width: auto; }
.f-title { font-size: 18px; font-weight: 800; color: var(--primary-green); margin-bottom: 5px; }
.f-text { font-size: 15px; color: #666; line-height: 1.4; }

.btn-trial-session { display: inline-block; background-color: var(--primary-green); color: #fff; padding: 12px 60px; border-radius: 50px; font-size: 18px; font-weight: bold; text-decoration: none; box-shadow: 0 5px 15px rgba(16, 140, 108, 0.3); transition: all 0.3s; }
.btn-trial-session:hover { background-color: #0d7559; transform: translateY(-2px); }

/* 8. DETAILED GRID */
.detailed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.detail-card { background: #fff; border-radius: 16px; border: 1px solid #eee; box-shadow: 0 5px 20px rgba(0,0,0,0.04); display: flex; flex-direction: column; text-align: center; overflow: hidden; transition: transform 0.3s; }
.detail-card:hover { transform: translateY(-5px); border-color: var(--primary-green); }
.d-card-title { background-color: #f8f9fa; padding: 20px 10px; font-size: 18px; font-weight: 800; color: #333; border-bottom: 1px solid #eee; min-height: 85px; display: flex; align-items: center; justify-content: center; }
.d-card-body { padding: 20px; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.d-card-list li { font-size: 16px; color: #555; margin-bottom: 8px; font-weight: 600; }
.d-card-footer { padding: 0 20px 30px 20px; }
.d-audience { font-size: 14px; color: #888; margin-bottom: 20px; line-height: 1.5; min-height: 42px; }
.btn-register { display: block; width: 100%; padding: 10px 0; border: 2px solid #333; color: #333; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s; }
.btn-register:hover { background-color: var(--secondary-yellow); border-color: var(--secondary-yellow); color: #000; }

/* 9. PRICING SECTION */
.pricing-section { padding: 80px 0; background-color: #f9f9f9; }
.pricing-header { text-align: center; margin-bottom: 50px; }
.pricing-title { font-size: 36px; font-weight: 800; margin-bottom: 15px; color: #000; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; margin-top: 40px; }
.pricing-card { background: #fff; border-radius: 20px; padding: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s ease; border: 1px solid #eee; position: relative; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pricing-card.highlight { border: 2px solid var(--primary-green); transform: scale(1.05); z-index: 10; box-shadow: 0 15px 40px rgba(16, 140, 108, 0.15); }
.badge-recommended { position: absolute; top: 0; right: 0; background-color: var(--primary-green); color: white; font-size: 12px; font-weight: bold; padding: 5px 15px; border-bottom-left-radius: 15px; border-top-right-radius: 15px; }
.card-image-box { background-color: var(--secondary-yellow); height: 140px; border-radius: 15px; margin-bottom: 20px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.card-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-content { padding: 0 10px; flex-grow: 1; text-align: center; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: #000; }
.card-features li { font-size: 15px; color: #555; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.card-price { font-size: 28px; font-weight: 800; color: #222; margin-bottom: 15px; direction: ltr; display: inline-block; }
.card-price span { font-size: 16px; vertical-align: middle; }
.vat-badge { background-color: #FFF8E1; color: #dfa000; font-size: 12px; font-weight: 600; padding: 8px 15px; border-radius: 50px; display: block; margin-top: auto; width: 100%; text-align: center; }
.btn-offer { background-color: var(--secondary-yellow); color: #000; font-size: 20px; font-weight: 700; padding: 15px 40px; border-radius: 50px; display: inline-block; box-shadow: 0 5px 15px rgba(249, 199, 79, 0.4); transition: background-color 0.3s, transform 0.2s; text-decoration: none; }
.btn-offer:hover { background-color: #e5b700; transform: translateY(-2px); }
.btn-offer span { display: block; font-size: 14px; font-weight: normal; margin-top: 5px; opacity: 0.8; }
.bottom-cta-container { margin-top: 60px; text-align: center; }

/* 10. TESTIMONIALS (FLOWING) */
.whatsapp-floating-grid { column-count: 3; column-gap: 20px; max-width: 1000px; margin: 0 auto; }
.flowing-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; height: 600px; overflow: hidden; position: relative; mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent); }
.flow-col { position: relative; display: flex; flex-direction: column; }
.flow-track { display: flex; flex-direction: column; gap: 20px; width: 100%; animation: scrollUp linear infinite; }
.flow-track img { width: 100%; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: block; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.speed-slow { animation-duration: 25s; }
.speed-medium { animation-duration: 20s; }
.speed-fast { animation-duration: 15s; }
.flowing-wrapper:hover .flow-track { animation-play-state: paused; }

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-section { flex-direction: column-reverse; text-align: center; padding: 30px 25px; }
    .hero-content { align-items: center; text-align: center; }
    .features-container { flex-wrap: wrap; }
    .feature-item { flex-basis: 45%; }
    .program-split-grid, .pricing-grid, .features-grid-4, .detailed-grid { grid-template-columns: repeat(2, 1fr); }
    .info-box { flex-direction: column; padding-top: 40px; }
    .info-box-image img { margin-top: -80px; }
    .flowing-wrapper { grid-template-columns: repeat(2, 1fr); }
    .flow-col:nth-child(3) { display: none; }
}

@media (max-width: 600px) {
    .feature-item { flex-basis: 100%; }
    .program-split-grid, .pricing-grid, .features-grid-4, .detailed-grid { grid-template-columns: 1fr; }
    .flowing-wrapper { grid-template-columns: 1fr; }
    .flow-col:nth-child(2) { display: none; }
}


/* --- FROM ABOUT.PHP --- */

/* 2. HERO / INTRO SECTION */
.about-hero {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.floating-letter {
    position: absolute;
    color: var(--primary-green);
    opacity: 0.08;
    font-weight: 800;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.section-badge {
    display: inline-block;
    background-color: var(--bg-soft-green);
    color: var(--primary-green);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.main-title {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Founder Word Box (Top) */
.founder-word-box {
    background-color: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 2;
    border: 1px solid #eee;
}

.quote-icon {
    font-size: 60px;
    color: var(--secondary-yellow);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.intro-text {
    font-size: 20px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.founder-signature {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 18px;
}

/* Image Grid */
.hero-images-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-card img { width: 100%; height: 100%; object-fit: cover; }

.card-center {
    width: 320px;
    height: 400px;
    z-index: 2;
    animation: gentleFloat 4s ease-in-out infinite;
}

.card-side {
    width: 240px;
    height: 300px;
    opacity: 0.9;
    animation: gentleFloat 5s ease-in-out infinite reverse;
}

@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 3. VISION SECTION */
.vision-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.vision-card {
    background: var(--bg-soft-green);
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #fff;
    box-shadow: 0 10px 30px rgba(16, 140, 108, 0.1);
}

.vision-icon { font-size: 50px; margin-bottom: 20px; display: block; }
.vision-title { font-size: 36px; font-weight: 800; margin-bottom: 20px; color: var(--primary-green); }
.vision-text { font-size: 20px; line-height: 1.8; color: #333; font-weight: 600; }

/* 4. OBJECTIVES SECTION */
.objectives-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.obj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.obj-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}
.obj-card:hover { transform: translateY(-10px); border-color: var(--secondary-yellow); }
.obj-icon { font-size: 40px; margin-bottom: 20px; }
.obj-text { font-size: 17px; font-weight: 600; color: #555; }

/* 5. TEAM SECTION */
.team-section { padding: 80px 0; background-color: #fff; }
.team-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--bg-soft-blue);
    padding: 50px;
    border-radius: 40px;
}
.team-info { flex: 1.5; }
.team-info h2 { font-size: 36px; color: #333; margin-bottom: 20px; }
.team-info p { font-size: 18px; color: #444; margin-bottom: 20px; }
.team-img-box { flex: 1; text-align: center; }
.team-img-box img { border-radius: 20px; transform: rotate(-3deg); border: 5px solid #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* 6. FEATURES SECTION */
.features-section { padding: 80px 0; text-align: center; }
.feature-boxes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.feature-box-item {
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 30px 15px;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 10px rgba(0,0,0,0.03);
}
.feature-box-item:hover {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

/* 7. SUPERVISOR BIO SECTION */
.supervisor-bio-section {
    padding: 100px 0;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
}
.supervisor-container { display: flex; align-items: center; gap: 60px; }
.supervisor-image-col { flex: 1; position: relative; }
.supervisor-image-col img {
    border-radius: 30px;
    box-shadow: 20px 20px 0px var(--secondary-yellow);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.supervisor-text-col { flex: 1.5; }
.supervisor-label {
    color: var(--primary-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.supervisor-name { font-size: 42px; font-weight: 800; color: #333; margin-bottom: 25px; }
.supervisor-bio p { font-size: 18px; color: #555; margin-bottom: 20px; line-height: 1.8; }
.supervisor-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item h4 { font-size: 36px; font-weight: 800; color: var(--primary-green); margin-bottom: 5px; }
.stat-item span { font-size: 14px; color: #777; font-weight: 600; }

/* Responsive */
@media (max-width: 992px) {
    .supervisor-container { flex-direction: column; text-align: center; }
    .supervisor-image-col img { box-shadow: 10px 10px 0px var(--secondary-yellow); }
    .supervisor-stats { justify-content: center; }
    .team-content { flex-direction: column-reverse; padding: 30px; }
    .obj-grid { grid-template-columns: 1fr; }
    .feature-boxes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hero-images-grid { flex-direction: column; align-items: center; }
    .main-title { font-size: 32px; }
    .feature-boxes-grid { grid-template-columns: 1fr; }
    .card-side { display: none; }
}


/* --- FROM OUR-TEACHERS.PHP --- */

/* 2. HERO SECTION */
.teachers-hero {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-cream);
}

.floating-letter {
    position: absolute;
    color: var(--primary-green);
    opacity: 0.08;
    font-weight: 800;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.section-badge {
    display: inline-block;
    background-color: var(--bg-soft-green);
    color: var(--primary-green);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.main-title {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.intro-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555;
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

/* 3. TEACHERS GRID */
.teachers-section {
    padding-bottom: 100px;
    background-color: var(--bg-cream);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.teacher-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 140, 108, 0.15);
    border-color: var(--bg-soft-green);
}

.teacher-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 5px solid var(--bg-soft-green);
    position: relative;
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-img {
    transform: scale(1.1);
}

.teacher-name {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.teacher-role {
    font-size: 16px;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.teacher-divider {
    width: 50px;
    height: 3px;
    background-color: var(--secondary-yellow);
    margin: 0 auto 20px auto;
    border-radius: 10px;
}

.teacher-bio {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .teachers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .teachers-grid { grid-template-columns: 1fr; }
    .main-title { font-size: 32px; }
}