/* All CSS from the <style> tag goes here */
:root {
    --primary: #36454F; /* Charcoal */
    --secondary: #F5DEB3; /* Wheat */
    --light: #f8f8f0;
    --dark: #212121;
    --accent: #F5F5F5;
    --text: #333333;
    --light-text: #666666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
}

h1, h2, h3, h4 {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(0.8) sepia(0.2) saturate(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.header-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header-btn:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Mobile menu button with larger touch area */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 20px;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    z-index: -1;
    transition: var(--transition);
}

.mobile-menu-btn:hover::after {
    background-color: rgba(0,0,0,0.1);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: white;
    z-index: 998;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px;
}

.mobile-nav-links li {
    margin: 15px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Page Styles */
.page {
    display: none;
    min-height: calc(100vh - 200px);
    padding: 40px 5% 80px;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Page */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 8px solid var(--secondary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background-color: var(--secondary);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.benefits {
    background-color: var(--secondary);
    padding: 60px 5%;
    border-radius: 10px;
    margin: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    background-color: var(--secondary);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
}

/* Courses Page */
.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

.course-header h2 {
    color: white !important;
}

.course-body {
    padding: 25px;
}

.course-body ul {
    list-style: none;
    margin: 20px 0;
}

.course-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.course-body ul li:last-child {
    border-bottom: none;
}

.course-body ul li i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 4px;
}

/* About Page */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 8px solid var(--secondary);
}

.mission-section {
    background-color: var(--secondary);
    padding: 40px;
    border-radius: 10px;
    margin: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background-color: var(--secondary);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Contact Page */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.contact-info-box i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    background-color: var(--secondary);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

/* Register Page */
.register-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: var(--primary);
}

.register-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}


/* Time Selection */
.time-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.time-input {
    flex: 1;
    position: relative;
}

.time-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--dark);
    transition: var(--transition);
    font-size: 1.3rem;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.social-links .facebook:hover {
    background-color: #1877f2;
}

.social-links .instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links .twitter:hover {
    background-color: #1da1f2;
}

.social-links .youtube:hover {
    background-color: #ff0000;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.fab:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: var(--transition);
}

.fab-menu.active {
    transform: scale(1);
}

.fab-option {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.fab-option:hover {
    background-color: #f5f5f5;
}

.fab-option i {
    margin-right: 10px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.fab-option.whatsapp {
    color: #25D366;
}

.fab-option.register {
    color: var(--primary);
}

/* Thank You Page */
.thank-you-container {
    max-width: 800px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Privacy Policy Page */
.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.privacy-section h3 {
    color: var(--dark);
    margin: 20px 0 10px;
}

.privacy-section ul {
    padding-left: 25px;
    margin: 15px 0;
}

.privacy-section li {
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #1c2b36);
    color: white;
    padding: 60px 5%;
    text-align: center;
    margin: 60px 0;
    border-radius: 10px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-btn {
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    background-color: white;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .header {
        top: 0;
        padding: 10px 5%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links,
    .header .header-btn {
        display: none;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero {
        flex-direction: column;
    }

    .about-hero {
        flex-direction: column;
    }

    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }

    .logo img {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .page {
        padding: 30px 15px 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .register-container,
    .privacy-container {
        padding: 20px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fab-menu {
        width: 180px;
    }

    .logo img {
        max-width: 180px;
    }
}