/* ============================================
   Homepage Design Enhancements
   تحسينات تصميم الصفحة الرئيسية
   ============================================ */

/* ============================================
   Header & Footer Enhancements
   تحسينات الهيدر والفوتر
   ============================================ */

/* Header Enhancements */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
}

    .navbar.sticky-top {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.98) !important;
    }

.navbar-brand {
    transition: transform 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

    .navbar-brand img {
        transition: transform 0.3s ease;
    }

    .navbar-brand:hover img {
        transform: rotate(5deg) scale(1.1);
    }

.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 5px;
    margin: 0 5px;
}

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

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

    .navbar-nav .nav-link:hover {
        color: #ffc107 !important;
        background: rgba(255, 193, 7, 0.1);
    }

    .navbar-nav .nav-link.active {
        color: #ffc107 !important;
        background: rgba(255, 193, 7, 0.15);
    }

.navbar .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.navbar .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff;
}

    .navbar .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        z-index: 0;
    }

    .navbar .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

    .navbar .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
        background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
    }

    .navbar .btn-primary i,
    .navbar .btn-primary span {
        position: relative;
        z-index: 1;
    }

.navbar .btn-outline-secondary {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

    .navbar .btn-outline-secondary:hover {
        background: #6c757d;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    }

/* Join Us Button Special Styling */
.navbar .join-us-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

    .navbar .join-us-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        z-index: 0;
    }

    .navbar .join-us-btn:hover::before {
        width: 300px;
        height: 300px;
    }

    .navbar .join-us-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
        background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
    }

    .navbar .join-us-btn i,
    .navbar .join-us-btn span {
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease;
    }

    .navbar .join-us-btn:hover i {
        transform: scale(1.2) rotate(15deg);
    }

    .navbar .join-us-btn:hover span {
        transform: translateX(3px);
    }

[dir="rtl"] .navbar .join-us-btn:hover span {
    transform: translateX(-3px);
}

.navbar-toggler {
    border: 2px solid #ffc107;
    border-radius: 5px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

    .navbar-toggler:hover {
        background: #ffc107;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    }

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #181d38 0%, #0f1729 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 60px 0 40px 0 !important;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ffc107, #ffb300, #ffc107);
        background-size: 200% 100%;
        animation: gradientMove 3s ease infinite;
    }

    .footer::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.footer h4 {
    color: #ffc107;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

    .footer h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        border-radius: 2px;
    }

.footer .container {
    position: relative;
    z-index: 1;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    transition: color 0.3s ease;
}

    .footer p:hover {
        color: #ffc107;
    }

.footer .btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .footer .btn-social::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        z-index: 0;
    }

    .footer .btn-social:hover::before {
        width: 100px;
        height: 100px;
    }

    .footer .btn-social:hover {
        background: #ffc107;
        border-color: #ffc107;
        transform: translateY(-8px) scale(1.1);
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
        color: #181d38;
    }

    .footer .btn-social i {
        transition: all 0.4s ease;
        position: relative;
        z-index: 1;
        font-size: 1.1rem;
    }

    .footer .btn-social:hover i {
        transform: scale(1.3) rotate(360deg);
        color: #181d38;
    }

.footer .fa-map-marker-alt,
.footer .fa-phone-alt,
.footer .fa-envelope {
    color: #ffc107;
    width: 20px;
    text-align: center;
}

.footer a {
    transition: color 0.3s ease;
}

    .footer a:hover {
        color: #ffc107 !important;
    }

/* RTL Support for Footer */
[dir="rtl"] .footer h4::after {
    left: auto;
    right: 0;
}

/* ============================================
   Hero Section (Carousel) Enhancements
   ============================================ */

/* Fix Carousel Height Issue - حل مشكلة ارتفاع السلايدر */
.header-carousel {
    height: 600px;
    overflow: hidden;
}

    .header-carousel .owl-carousel-item {
        position: relative;
        overflow: hidden;
        height: 600px;
    }

        .header-carousel .owl-carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform 0.6s ease;
            filter: brightness(0.9);
        }

@media (max-width: 768px) {
    .header-carousel {
        height: 500px;
    }

        .header-carousel .owl-carousel-item {
            height: 500px;
        }
}

@media (max-width: 576px) {
    .header-carousel {
        height: 400px;
    }

        .header-carousel .owl-carousel-item {
            height: 400px;
        }
}

.header-carousel .owl-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 29, 56, 0.85) 0%, rgba(24, 29, 56, 0.6) 100%);
    z-index: 1;
}

/* Removed duplicate - already defined above */

.header-carousel .position-absolute {
    z-index: 2;
}

.header-carousel h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    font-weight: 800;
}

.header-carousel p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.header-carousel .btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .header-carousel .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

.header-carousel .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border: none;
}

.header-carousel .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #181d38;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

    .header-carousel .btn-light:hover {
        background: #ffffff;
        border-color: #ffffff;
        color: #181d38;
    }

/* Service/Features Section Enhancements */
.service-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

    .service-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .service-item:hover::before {
        left: 100%;
    }

    .service-item:hover {
        margin-top: -15px;
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
        transform: translateY(-5px);
    }

    .service-item .p-4 {
        position: relative;
        z-index: 1;
    }

    .service-item i {
        transition: all 0.4s ease;
        display: inline-block;
    }

    .service-item:hover i {
        transform: scale(1.2) rotate(5deg);
        color: #ffffff !important;
    }

    .service-item h5 {
        font-weight: 700;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }

    .service-item:hover h5 {
        color: #ffffff !important;
        transform: translateX(5px);
    }

    .service-item p {
        color: #666;
        line-height: 1.7;
        transition: all 0.3s ease;
    }

    .service-item:hover p {
        color: rgba(255, 255, 255, 0.95) !important;
    }

/* About Us Section Enhancements */
.container-xxl.py-3 {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    margin: 40px auto;
    padding: 60px 20px !important;
}

    .container-xxl.py-3 .row {
        align-items: center;
    }

    .container-xxl.py-3 img {
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s ease;
    }

        .container-xxl.py-3 img:hover {
            transform: scale(1.02);
        }

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

    .section-title::before,
    .section-title::after {
        display: none;
    }

.container-xxl.py-3 h1 {
    font-weight: 800;
    color: #181d38;
    margin-bottom: 25px;
    line-height: 1.3;
}

.container-xxl.py-3 p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
}

.container-xxl.py-3 .fa-arrow-right {
    color: #ffc107;
    font-weight: bold;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.container-xxl.py-3 .row.gy-2 .col-sm-6:hover .fa-arrow-right {
    transform: translateX(5px);
}

/* Courses Section Enhancements */
.course-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .course-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

    .course-item .position-relative {
        overflow: hidden;
        border-radius: 20px 20px 0 0;
    }

    .course-item img {
        transition: transform 0.6s ease;
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .course-item:hover img {
        transform: scale(1.15);
    }

    .course-item .text-center {
        padding: 25px 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .course-item h3 {
        font-weight: 700;
        color: #ffc107;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

        .course-item h3 s {
            color: #999;
            font-size: 1.2rem;
            font-weight: 400;
        }

    .course-item h5 {
        font-weight: 600;
        color: #181d38;
        margin-bottom: 0;
        line-height: 1.5;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .course-item .d-flex {
        background: #f8f9fa;
        border-top: 2px solid #e9ecef;
        padding: 12px 0;
    }

        .course-item .d-flex small {
            font-size: 0.85rem;
            color: #666;
            font-weight: 500;
        }

        .course-item .d-flex i {
            color: #ffc107;
            margin-left: 5px;
        }

    .course-item:hover .d-flex {
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        border-top-color: #ffc107;
    }

        .course-item:hover .d-flex small,
        .course-item:hover .d-flex i {
            color: #ffffff;
        }

/* Section Headers */
.text-center.wow.fadeInUp h6.section-title {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.text-center.wow.fadeInUp h1 {
    font-weight: 800;
    color: #181d38;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

    .text-center.wow.fadeInUp h1::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        border-radius: 2px;
    }

/* RTL Support for Arabic */
[dir="rtl"] .container-xxl.py-3 .fa-arrow-right {
    transform: scaleX(-1);
}

[dir="rtl"] .service-item:hover h5 {
    transform: translateX(-5px);
}

[dir="rtl"] .course-item {
    direction: rtl;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-carousel h1 {
        font-size: 2rem;
    }

    .header-carousel p {
        font-size: 0.95rem;
    }

    .text-center.wow.fadeInUp h1 {
        font-size: 1.8rem;
    }

    .course-item {
        margin-bottom: 30px;
    }

    .service-item {
        margin-bottom: 20px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.wow.fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
.course-item img,
.service-item img,
.container-xxl.py-3 img {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

/* Card Hover Effects */
.course-item,
.service-item {
    position: relative;
}

    .course-item::after,
    .service-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: inherit;
        padding: 2px;
        background: linear-gradient(135deg, #ffc107, #ffb300);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .course-item:hover::after,
    .service-item:hover::after {
        opacity: 1;
    }

/* Fix spacing after carousel - حل مشكلة المسافة بعد السلايدر */
.container-fluid.p-0.mb-0 + .container-xxl.py-5 {
    margin-top: 0;
    padding-top: 60px;
}

/* ============================================
   Login & Register Pages Enhancements
   تحسينات صفحات تسجيل الدخول والتسجيل
   ============================================ */

.container-xxl.py-5.wow.fadeInUp {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

    .container-xxl.py-5.wow.fadeInUp .col-lg-6 {
        background: #ffffff;
        border-radius: 20px;
        padding: 50px 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .container-xxl.py-5.wow.fadeInUp .bi-Key {
        font-size: 5rem;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .container-xxl.py-5.wow.fadeInUp h1.display-1 {
        font-size: 2.5rem;
        font-weight: 800;
        color: #181d38;
        margin-bottom: 30px;
    }

    .container-xxl.py-5.wow.fadeInUp .form-control {
        border-radius: 10px;
        padding: 15px 20px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        font-size: 1rem;
        margin-bottom: 15px;
    }

        .container-xxl.py-5.wow.fadeInUp .form-control:focus {
            border-color: #ffc107;
            box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
            outline: none;
        }

    .container-xxl.py-5.wow.fadeInUp .btn-primary.rounded-pill {
        background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
        border: none;
        padding: 15px 40px;
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 1px;
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
        transition: all 0.3s ease;
        border-radius: 50px !important;
    }

        .container-xxl.py-5.wow.fadeInUp .btn-primary.rounded-pill:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255, 193, 7, 0.5);
            background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
        }

    .container-xxl.py-5.wow.fadeInUp .alert {
        border-radius: 15px;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .container-xxl.py-5.wow.fadeInUp .alert-danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: #ffffff;
    }

    .container-xxl.py-5.wow.fadeInUp .alert-success {
        background: linear-gradient(135deg, #28a745 0%, #218838 100%);
        color: #ffffff;
    }

/* ============================================
   About Page Enhancements
   تحسينات صفحة من نحن
   ============================================ */

.page-header {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(24, 29, 56, 0.85) 0%, rgba(24, 29, 56, 0.7) 100%);
        z-index: 1;
    }

    .page-header .container {
        position: relative;
        z-index: 2;
    }

    .page-header h1 {
        font-weight: 800;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }

/* Footer Additional Improvements */
.footer .row {
    position: relative;
    z-index: 1;
}

.footer .col-lg-4 {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .footer .col-lg-4:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-5px);
    }

/* ============================================
   Course Details Subscribe Button
   تحسين زر اشترك الآن في صفحة تفاصيل الكورس
   ============================================ */

.btn-subscribe-course {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
    min-width: 220px;
}

    .btn-subscribe-course::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        z-index: 0;
    }

    .btn-subscribe-course:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-subscribe-course:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 193, 7, 0.6);
        background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
        color: #ffffff;
        text-decoration: none;
    }

    .btn-subscribe-course:active {
        transform: translateY(-2px) scale(1.02);
    }

    .btn-subscribe-course i,
    .btn-subscribe-course span {
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .btn-subscribe-course:hover i {
        transform: scale(1.3) rotate(15deg);
    }

    .btn-subscribe-course:hover span {
        transform: translateX(5px);
        letter-spacing: 2px;
    }

[dir="rtl"] .btn-subscribe-course:hover span {
    transform: translateX(-5px);
}

.btn-subscribe-course:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4), 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Loading state for subscribe button */
.btn-subscribe-course.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-subscribe-course.loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-subscribe-course {
        padding: 15px 40px;
        font-size: 1.1rem;
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .btn-subscribe-course {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
}

/* ============================================
   Video Modal Enhancements
   تحسينات Modal عرض الفيديو
   ============================================ */

.video-modal .modal-dialog {
    max-width: 95%;
    margin: 20px auto;
}

.video-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    background: #1a1a1a;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
    background: linear-gradient(135deg, #181d38 0%, #0f1729 100%);
    border-bottom: 2px solid #ffc107;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .video-modal-header .modal-title {
        color: #ffffff;
        font-weight: 700;
        font-size: 1.3rem;
        margin: 0;
        display: flex;
        align-items: center;
    }

        .video-modal-header .modal-title i {
            color: #ffc107;
            font-size: 1.5rem;
        }

.btn-close-video {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

    .btn-close-video:hover {
        background: #ffc107;
        border-color: #ffc107;
        transform: rotate(90deg);
        color: #181d38;
    }

.video-modal-body {
    padding: 0;
    background: #000000;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

    .video-container iframe,
    .video-container .video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.video-modal-footer {
    background: linear-gradient(135deg, #181d38 0%, #0f1729 100%);
    border-top: 2px solid #ffc107;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
}

.btn-close-modal {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-close-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
        background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
        color: #ffffff;
    }

/* ============================================
   Video Card Enhancements
   تحسينات كارت الفيديو
   ============================================ */

.video-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.video-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px;
    background: #f8f9fa;
}

    .video-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.video-card:hover .video-card-image img {
    transform: scale(1.15);
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-card-overlay {
    opacity: 1;
}

.btn-play-video {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .btn-play-video::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: width 0.6s, height 0.6s;
        z-index: -1;
    }

    .btn-play-video:hover::before {
        width: 120px;
        height: 120px;
    }

    .btn-play-video:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(255, 193, 7, 0.6);
    }

    .btn-play-video i {
        margin-left: 5px; /* Adjust play icon position */
    }

.badge-free {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    z-index: 2;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

[dir="rtl"] .badge-free {
    right: auto;
    left: 15px;
}

.video-card-body {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.video-card-title {
    font-weight: 600;
    color: #181d38;
    margin: 0;
    line-height: 1.5;
    text-align: center;
    font-size: 1.1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   WhatsApp Float Button
   زر الواتساب الثابت
   ============================================ */

.whatsapp-float {
    position: fixed !important;
    width: 60px;
    height: 60px;
    bottom: 15px;
    left: 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
    border: none;
}

    .whatsapp-float:hover {
        transform: scale(1.1) translateY(-5px);
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
        color: #ffffff;
        text-decoration: none;
    }

    .whatsapp-float i {
        font-size: 32px;
        transition: transform 0.3s ease;
    }

    .whatsapp-float:hover i {
        transform: scale(1.2) rotate(15deg);
    }

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #25D366;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

    .whatsapp-tooltip::after {
        content: '';
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        border: 8px solid transparent;
        border-left-color: #25D366;
    }

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* RTL Support for WhatsApp */
[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 20px;
}

[dir="rtl"] .whatsapp-tooltip {
    right: auto;
    left: 70px;
}

    [dir="rtl"] .whatsapp-tooltip::after {
        left: auto;
        right: 100%;
        border-left-color: transparent;
        border-right-color: #25D366;
    }

[dir="rtl"] .whatsapp-float:hover .whatsapp-tooltip {
    right: auto;
    left: 75px;
}

/* Override old whatsapp styles */
.whatsapp {
    display: none !important;
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        bottom: 90px !important;
        left: 15px !important;
        font-size: 26px;
        display: flex !important;
    }

        .whatsapp-float i {
            font-size: 28px;
        }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 80px !important;
        left: 10px !important;
        font-size: 24px;
        display: flex !important;
    }

        .whatsapp-float i {
            font-size: 26px;
        }
}
