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

:root {
    --primary-color: #b0bfca;
    --secondary-color: #154270;
    --text-color: #333;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: linear-gradient(100deg, #161616, #383838, #364044, #364870);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero {
    height: 100vh;
}

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

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.hero-stats .stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.hero-stats .stat p {
    opacity: 0.9;
}

/* Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #007bff, #52badd, #00fff2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 0px 20px #ffffffa6;
    display: none;
    transition: all 0.3s;
}

@keyframes arrow {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#scrollTopBtn:hover {
    animation: arrow 1s infinite ease-in-out;
}


/* Courses Section */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
}

.course-card {
    overflow: hidden;
    transition: all 0.4s ease;
}

.course-card:hover {
    box-shadow: 0 0px 15px #ffffff;
}

.card-img-top {
    transition: all 0.3s;
}

.course-card:hover .card-img-top {
    transform: scale(1.1);
}

.course-card .card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.course-instructor {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.instructor-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    color: #666;
}

.course-stats i {
    color: var(--primary-color);
    margin-left: 5px;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Modal Styles */
.course-details-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

.why {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* RTL Specific Styles */
[dir="rtl"] .course-instructor img {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .course-stats i {
    margin-right: 0;
    margin-left: 5px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.course-card {
    animation: fadeIn 0.5s ease-out;
}

/* Course Card Styles */
.course-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

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

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

.course-instructor {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.instructor-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: #666;
}

.course-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

/* Form Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

/* Modal Styles */
.modal-header {
    background-color: #f8f9fa;
}

.course-details-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Navbar Styles */
.user-name {
    color: white;
}

.user-name i {
    margin-left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-stats {
        flex-direction: column;
    }

    .course-stats>div {
        margin-bottom: 5px;
    }
}

/* Features Section */
.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card i {
    color: var(--primary-color);
}

/* Contact Section */
.contact-form-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-card input,
.contact-form-card textarea {
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    border: none;
    padding: 10px 20px;
}

.newsletter-form button {
    padding: 10px 30px;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer a {
    transition: color 0.3s ease;
    width: fit-content;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .footer {
        text-align: center;
    }

    .social-links {
        margin-top: 20px;
    }
}