:root {
    --primary-color: #ff4757;
    --secondary-color: #2ed573;
    --accent-color: #ffa502;
    --text-color: #2f3542;
    --bg-color: #f1f2f6;
    --card-bg: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 18px;
    line-height: 2;
    overflow-x: hidden;
    transition: direction 0.3s ease;
}

/* Language Visibility */
.lang-en-text { display: none !important; }
.lang-ur-text { display: block; }
span.lang-ur-text, strong.lang-ur-text, a.lang-ur-text { display: inline; }

body.lang-en .lang-en-text { display: block !important; }
body.lang-en span.lang-en-text, body.lang-en strong.lang-en-text, body.lang-en a.lang-en-text { display: inline !important; }
body.lang-en .lang-ur-text { display: none !important; }

/* Font setups */
body.lang-ur {
    direction: rtl;
    font-family: 'Noto Nastaliq Urdu', system-ui, sans-serif;
}
body.lang-en {
    direction: ltr;
    font-family: system-ui, sans-serif;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 5px;
    border-radius: 20px;
}
.lang-switch button {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-switch button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header {
    background: linear-gradient(135deg, var(--primary-color), #ff6b81);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    margin: 0;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: system-ui, sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    right: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
body.lang-en nav a::after {
    right: auto;
    left: 0;
}
nav a:hover::after {
    width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.2)" stroke-width="2" fill="none"/></svg>') repeat, linear-gradient(135deg, #1e90ff, #70a1ff);
    color: white;
    position: relative;
    overflow: hidden;
}

.parents-message {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 3px dashed var(--primary-color);
}

.parents-message h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0;
}

.offer {
    background: linear-gradient(135deg, var(--accent-color), #ff7f50);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    position: relative;
}

.badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
body.lang-en .badge { left: -15px; right: auto; }

.btn {
    background: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 8px 15px rgba(46, 213, 115, 0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    background: #26b963;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(46, 213, 115, 0.6);
}

.info-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.schedule-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top: 8px solid var(--secondary-color);
}

.schedule-card h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.2rem;
    margin-top: 0;
}

.schedule-list {
    list-style: none;
    padding: 0;
    font-size: 1.4rem;
}

.schedule-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    border-right: 5px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 15px;
}
body.lang-en .schedule-list li {
    border-right: none;
    border-left: 5px solid var(--accent-color);
}

.schedule-list i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.syllabus-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.module-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-top: 6px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
body.lang-ur .module-card { text-align: right; }
body.lang-ur .module-card.roman-urdu-mod { text-align: left; direction: ltr; }

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.mod-header {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: system-ui, sans-serif;
}

.mod-body {
    padding: 1.5rem;
    font-family: system-ui, sans-serif;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.mod-body ul {
    padding: 0 20px;
    margin-bottom: 1.5rem;
}

.mod-body li {
    margin-bottom: 8px;
}

.mod-activity {
    background: #f1f2f6;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
}
body.lang-ur .mod-activity {
    border-left: none;
    border-right: 4px solid var(--accent-color);
}
body.lang-ur .module-card.roman-urdu-mod .mod-activity {
    border-right: none;
    border-left: 4px solid var(--accent-color);
}

/* FAQ Section (New features) */
.faq-section {
    padding: 4rem 2rem;
    background: #eef2f5;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-right: 4px solid var(--secondary-color);
}
body.lang-en .faq-item { border-right: none; border-left: 4px solid var(--secondary-color); }
.faq-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #2f3542;
    color: white;
    font-size: 1.2rem;
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px; /* default */
    background-color: #25d366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: transform 0.3s;
}
body.lang-en .floating-wa { left: auto; right: 30px; }
.floating-wa:hover {
    transform: scale(1.15) rotate(15deg);
    color: white;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-fast {
    0% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating { animation: float 4s ease-in-out infinite; }
.floating-fast { animation: float-fast 2s ease-in-out infinite; }
.bounce { animation: float-fast 3s ease-in-out infinite; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 5px solid var(--accent-color);
}
.feature-card:hover {
    transform: translateY(-10px);
}
.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .logo h1 {
        font-size: 1.8rem;
        justify-content: center;
    }
    nav ul {
        justify-content: center;
        gap: 15px;
    }
    .lang-switch {
        margin-top: 10px;
    }
    .hero {
        padding: 2rem 1rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .parents-message {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    .parents-message h3 {
        font-size: 1.5rem;
    }
    .offer {
        font-size: 1.2rem;
        padding: 1rem;
    }
    .schedule-card {
        padding: 1.5rem;
    }
    .schedule-card h2 {
        font-size: 1.6rem;
    }
    .schedule-list {
        font-size: 1.1rem;
    }
    .schedule-list li {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 5px;
    }
    .module-grid {
        grid-template-columns: 1fr;
    }
    .floating-wa {
        width: 60px;
        height: 60px;
        font-size: 35px;
        bottom: 20px;
        left: 20px;
    }
    body.lang-en .floating-wa {
        right: 20px;
        left: auto;
    }
    h2 {
        font-size: 2rem !important;
    }
    .btn {
        font-size: 1.2rem;
        padding: 10px 20px;
        white-space: normal;
        line-height: 1.5;
    }
}

