:root {
    --primary-color: #d32f2f; 
    --secondary-color: #ffcc02; 
    --dark-color: #000000; 
    --light-bg: #f8f9fa;
    --gradient: linear-gradient(135deg, #d32f2f 0%, #ffcc02 100%);
}

* {
    font-family: 'Cairo', sans-serif;
}

body {
    overflow-x: hidden;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

[dir="ltr"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-toggler {
    border: none;
    background: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    flex-grow: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.hero-section {
    background: url('https://images.unsplash.com/photo-1523050854058-8a5a56d0b055?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title img {
    height: 150px;
    margin-left: 20px;
    display: inline;
}

.hero-title-text {
    margin-right: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-custom {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
}

.course-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.course-level {
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.faq-question {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #555;
    padding: 0.5rem 0;
}

.payment-method-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

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

.payment-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.lang-toggle {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: scale(1.05);
    color: white;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.page-section {
    display: none;
    padding: 5rem 0;
}

.page-section.active {
    display: block;
}

.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem 0;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

#backToTop {
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    width: 36px; /* Smaller size */
    height: 36px; /* Smaller size */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1rem; /* Smaller icon size */
    padding: 0; /* Ensure no padding affects circular shape */
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-title img {
        height: 80px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .navbar-brand img {
        height: 30px;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .nav-link {
        font-size: 0.9rem;
    }
    .contact-info {
        padding: 1rem;
    }
    .contact-icon {
        font-size: 1.8rem;
    }
    .map-container iframe {
        width: 100%;
        height: 200px;
    }
    .course-card {
        padding: 1rem;
    }
    .course-card h4 {
        font-size: 1.2rem;
    }
    .course-card p {
        font-size: 0.9rem;
    }
    .navbar-collapse .lang-toggle {
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: fit-content;
    }
    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .faq-question {
        font-size: 0.9rem;
    }
    .faq-answer {
        font-size: 0.85rem;
    }
    .payment-method-card {
        padding: 1rem;
    }
    .payment-icon {
        font-size: 2rem;
    }
   
    #backToTop {
        width: 32px; /* Even smaller on mobile */
        height: 32px;
        font-size: 0.9rem;
    }
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: none;
}