@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

body {
    font-family: 'Amiri', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
}

.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #d6d54a;
    border-color: #d6d54a;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
}

.nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.nav-item .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.services-section .col-md-4 h3 {
    color: #d6d54a;
    margin-bottom: 15px;
}

.about-us-section, .courses-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #d6d54a;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #d6d54a;
}

.text-center h1, .text-center h2 {
    position: relative;
    display: inline-block;
}

.text-center h1::after, .text-center h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d6d54a, #28a745);
}



/* Additional animations and responsive styles */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scrolled {
    background: rgb(255 255 236) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-item {
        margin: 0.2rem 0;
    }
    
    header .container {
        flex-direction: column;
    }
    
    header img {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Arabic text improvements */
.arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    line-height: 1.8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d6d54a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3f73;
}

/* Hover effects for navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}


/* Carousel Banner Styles */
.hero-carousel {
    position: relative;
    height: 800px;
    overflow: hidden;
}

.hero-slide {
    height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .active {
    background-color: #d6d54a;
    border-color: #d6d54a;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(44, 90, 160, 0.8);
    border-radius: 50%;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(44, 90, 160, 1);
}

/* Mobile responsive for carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 350px;
    }
    
    .hero-slide {
        height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}


/* Modern Course Card Styles */
.modern-course-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.course-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-course-card:hover .course-image {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d6d54a 0%, #434201 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d6d54a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.course-students {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.course-students i {
    color: #d6d54a;
}


.btn-outline-primary {
    color: #d6d54a;
    border-color: #d6d54a;
}
.course-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d6d54a;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.course-cart-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d6d54a 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.course-cart-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #764ba2 0%, #d6d54a 100%);
}

/* Filter Styles */
.course-filters {
    margin-bottom: 40px;
}

.filter-btn {
    margin: 5px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #a5a400 0%, #d6d54a 100%);
    color: white;
    border-color: transparent;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #a5a400 0%, #d6d54a 100%);
    color: white;
    border-color: transparent;
}

/* Course Item Animation */
.course-item {
    transition: all 0.5s ease;
}

.course-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.course-item.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-filters {
        text-align: center;
    }
    
    .filter-btn {
        margin: 3px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .course-title {
        font-size: 1.1rem;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
}


/* About Us Page Styles */
.about-hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    margin-bottom: 0;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d6d54a;
    line-height: 1.3;
    text-align: right;
}

.about-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.about-content-section {
    background-color: #f8f9fa;
}

.about-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #d6d54a;
}

.about-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin: 0;
}

.about-section-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #d6d54a 0%, #764ba2 100%);
}

.vision-card::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mission-card::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.goals-card::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d6d54a;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #d6d54a 0%, #764ba2 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.vision-card .section-line {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mission-card .section-line {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.goals-card .section-line {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

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

.section-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.goals-list {
    text-align: right;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.goal-bullet {
    color: #d6d54a;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 2px;
}

.whatsapp-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Responsive for About Page */
@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-card {
        padding: 25px;
    }
    
    .about-section-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .whatsapp-contact {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-hero-section {
        padding: 40px 0;
    }
    
    .about-hero-title {
        font-size: 1.8rem;
    }
    
    .about-intro-text {
        font-size: 1rem;
    }
    
    .section-content p {
        font-size: 1rem;
    }
    
    .goal-item {
        font-size: 0.9rem;
    }
}

header{
color: black !important;
    background-color: #dbdbdb !important;
}
.nav-link{
    color: black !important;
}


/* Features Section Styles */
.features-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #d6d54a 0%, #764ba2 100%);
}

.feature-card:nth-child(1) .feature-card::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-card:nth-child(2) .feature-card::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.feature-card:nth-child(3) .feature-card::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) .feature-icon {
       background: linear-gradient(135deg, #d6d54a 0%, #666500 100%);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    transform: translate(-50%, -50%) scale(1);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Animation for features on scroll */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Mobile Responsive for Features */
@media (max-width: 768px) {
    .features-section {
        padding: 40px 0;
    }
    
    .feature-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
}

