﻿
/*
* Template Name: Codesigners
* Template URL: https://codesigners.net/
* Updated: Aug 26 2025 with Codesigners
* Author: Codesigners
* License: https://codesigners.net/
*/

/************************************************************************************************************************/ /*  Light Mode And Dark Mode  */

/* Light Mode */
:root {
    --primary-color: #8f7858; /*60%*/
    --secondary-color: #D6B585; /*30%*/
    --accent-color: #8f7858; /*10%*/
    /***/
    --background-color: #eee; /* خلفية فاتحة */
    --surface-color: #ffffff; /* الكروت والنوافذ */
    --text-color: #00071B; /* نصوص داكنة */
    --text-light-color: #64748b; /* نصوص ثانوية */
    /***/
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    --glow: 0 0 20px rgba(26, 188, 156, 0.3);
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --logo: url('/Web/img/logo/LogoLight.png');
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #8f7858; /*60%*/
    --secondary-color: #D6B585; /*30%*/
    --accent-color: #8f7858; /*10%*/
    /***/
    --background-color: #111827; /* خلفية رئيسية */
    --surface-color: #00071B; /* الكروت والنوافذ */
    --text-color: #ffffff; /* نصوص فاتحة */
    --text-light-color: #94a3b8; /* نصوص ثانوية */
    --logo: url('/Web/img/logo/LogoLight.png');
}

/************************************************************************************************************************/ /*  body  */

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* تحسين النصوص */
p {
    color: var(--text-light-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* روابط عامة */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all ease-in-out 0.3s !important;
}

    a:hover {
        color: var(--accent-color);
    }

/* Scrollbar (كروم + إيدج) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }

.nav-link {
    color: var(--text-color);
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: var(--text-color);
    background-color: var(--background-color);
    border-color: var(--secondary-color);
}

.nav-link:focus, .nav-link:hover {
    color: var(--accent-color);
}

.card {
    background-color: var(--surface-color);
}

.card-title {
    margin-bottom: var(--bs-card-title-spacer-y);
    color: var(--text-color);
}
/************************************************************************************************************************/
/*********** Navbar style ***********/
.navstyle {
    direction: rtl;
    background: var(--background-color);
    padding: 0.5rem 0.2rem;
    box-shadow: 0px -0.9px 5px var(--primary-color);
}

/*********** Logo ***********/
.navbar-brand .logo-img {
    width: 190px;
    height: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    direction: ltr;
    transition: all ease-in-out 0.3s;
}

.navbar-brand span {
    color: var(--accent-color);
    font-style: italic;
    transition: color 0.3s ease;
}

.navbar-brand h1:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.navbar-brand span:hover {
    color: var(--secondary-color);
}

.navbar-brand span:last-child {
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 1.7rem;
}


/********** Toggler ***********/
.toglestyle {
    border: none;
    background: unset;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    position: absolute;
    left: 35px;
    top: 16px;
}

    /* أيقونة الخطوط */
    .toglestyle .navbar-toggler-icon {
        background-image: none;
        width: 22px;
        height: 2px;
        background-color: var(--text-color);
        display: block;
        position: relative;
        transition: all 0.3s ease;
    }

        /* الخطين فوق وتحت */
        .toglestyle .navbar-toggler-icon::before,
        .toglestyle .navbar-toggler-icon::after,
        .toglestyle .navbar-toggler-icon {
            content: "";
            position: absolute;
            width: 22px;
            height: 2px;
            background-color: var(--text-color);
            transition: all 0.3s ease;
        }

            .toglestyle .navbar-toggler-icon::before {
                top: -7px;
            }

            .toglestyle .navbar-toggler-icon::after {
                top: 7px;
            }

    /* Hover Effect */
    .toglestyle:hover {
        transform: scale(1.05);
    }

    /* Animation عند الفتح */
    .toglestyle[aria-expanded="true"] .navbar-toggler-icon {
        background-color: transparent;
    }

        .toglestyle[aria-expanded="true"] .navbar-toggler-icon::before {
            transform: rotate(45deg);
            top: 0;
        }

        .toglestyle[aria-expanded="true"] .navbar-toggler-icon::after {
            transform: rotate(-45deg);
            top: 0;
        }


/*********** Nav Links ***********/
.nav-item {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

    .nav-item a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.5rem 1.8rem !important;
        border-radius: 40px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        animation: linkPop calc(var(--i) * 0.2s + 0.5s) ease-out forwards;
        position: relative;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

        .nav-item a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.3);
            transition: all 0.5s ease;
            z-index: 0;
        }

        .nav-item a:hover::before {
            left: 100%;
        }

        .nav-item a::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, #f2f2, transparent);
            transform: translate(-50%, -50%);
            transition: width 0.4s ease, height 0.4s ease;
            opacity: 0;
        }

        .nav-item a:hover::after {
            width: 200%;
            height: 200%;
            opacity: 0.5;
        }

        .nav-item a:nth-child(1) {
            --i: 1;
        }

        .nav-item a:nth-child(2) {
            --i: 2;
        }

        .nav-item a:nth-child(3) {
            --i: 3;
        }

        .nav-item a:hover {
            transform: scale(1.1) rotate(2deg);
            box-shadow: 0 0 20px rgba(26, 188, 156, 0.3), 0 12px 40px rgba(0, 0, 0, 0.1);
            color: var(--surface-color);
        }


/*********** login-btn ***********/
.login-btn {
    background: var(--secondary-color);
    border: none;
    padding: 0.5rem 1.8rem;
    border-radius: 60px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 150%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shine 3s infinite linear;
    }

    .login-btn:hover {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 0 20px rgba(26, 188, 156, 0.3), 0 12px 40px rgba(0, 0, 0, 0.1);
    }

    .login-btn:focus, .theme-toggle:focus, .toglestyle:focus {
        outline: 2px dashed var(--accent-color);
        outline-offset: 4px;
    }



/* Theme toggle */
.theme-toggle {
    position: relative;
    width: 45px;
    height: 45px;
    background: var(--surface-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    animation: pulse-glow 2s infinite ease-in-out;
    box-shadow: var(--shadow);
}

    .theme-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50%;
        height: 50%;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: inner-glow 1.2s infinite ease-in-out;
    }

    .theme-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 0 25px 10px rgba(255, 255, 255, 0.6);
    }

/*********** Responsive ***********/
@media (max-width: 1086px) {
    .logo-img {
        width: 200px !important;
    }

    .navbar-brand h1, .navbar-brand span:last-child {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 991px) {
    .logo-img {
        width: 150px !important;
    }
    .toglestyle {
        top: 28px;
    }

    .header-actions {
        justify-content: center !important;
        border-top: 1px solid var(--primary-color);
        padding: 7px;
    }

    .navbar-collapse {
        margin-top: 5px;
    }
}

@media (max-width: 375px) {
    .login-btn {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.8rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
    }

    .nav-item a {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.8rem;
    }
}

/************************************************************************************************************************/
/*********** Banner style ***********/
.banner {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    top: 2px;
    box-shadow: 0px -0.9px 5px var(--primary-color);
    background-image: url(/Web/img/HomeImg/Background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1100px;
}

.banner-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    /*color: var(--text-color);*/
    color: var(--secondary-color);
    text-shadow: var(--shadow);
    animation: titleGlow 1.5s ease-out forwards;
}

.banner-subtitle {
    font-size: 1.7rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    /* color: var(--text-color);*/
    color: #fff;
    opacity: 0.7 !important;
    animation: subtitleExpand 1.8s ease-out forwards;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 3rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: btnPulse 2s ease-out forwards;
    transition: all ease-in-out 0.3s !important;
}

    .banner-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shineEffect 3s infinite linear;
        transform: scale(1.1) rotate(0deg) !important;
    }

    .banner-btn:hover {
        background: var(--secondary-color);
        color: var(--text-color);
        box-shadow: var(--glow), var(--shadow);
        transform: translateY(-5px) scale(1.05) !important;
    }

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url('/Web/img/HomeImg/code-icon-256x171-4qfrf0xd.png') no-repeat center/cover;*/
    opacity: 0.15;
    z-index: 1;
    animation: overlayRotate 15s infinite linear;
    mix-blend-mode: overlay;
}

.banner-animations {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.animated-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.8;
    filter: drop-shadow(var(--shadow));
}

.code-icon {
    top: 15%;
    left: 10%;
    animation: floatIcon 6s infinite ease-in-out;
}

.design-icon {
    bottom: 20%;
    right: 15%;
    animation: floatIcon 7s infinite ease-in-out 1s;
}

.gear-icon {
    top: 50%;
    left: 70%;
    animation: spinGear 5s infinite linear;
}

.particle {
    position: absolute;
    background: var(--background-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle-1 {
    width: 20px;
    height: 20px;
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    width: 15px;
    height: 15px;
    bottom: 30%;
    left: 60%;
    animation-delay: 2s;
}

.particle-3 {
    width: 25px;
    height: 25px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}
/* Banner Animations */
@keyframes titleGlow {
    0% {
        transform: scale(0.9) translateY(-40px);
        opacity: 0;
        filter: blur(2px);
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes subtitleExpand {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

@keyframes btnPulse {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(60px);
    }

    70% {
        transform: scale(1.1) translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes overlayRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(10deg);
    }
}

@keyframes spinGear {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.9;
    }
}
/* Banner Responsive */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 3.5rem;
    }

    .banner-subtitle {
        font-size: 1.5rem;
    }

    .banner-btn {
        padding: 0.9rem 2.5rem;
        font-size: 1.3rem;
    }

    .animated-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 992px) {
    .banner {
        min-height: 80vh;
    }

    .banner-title {
        font-size: 3rem;
    }

    .banner-subtitle {
        font-size: 1.3rem;
    }

    .banner-btn {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }

    .code-icon {
        left: 5%;
    }

    .design-icon {
        right: 5%;
    }

    .gear-icon {
        left: 65%;
    }
}

@media (max-width: 768px) {
    .banner {
        min-height: 70vh;
        padding: 1.5rem;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .banner-btn {
        padding: 0.7rem 1.8rem;
        font-size: 1.1rem;
    }

    .animated-icon {
        width: 60px;
        height: 60px;
    }

    .particle-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner {
        min-height: 60vh;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .banner-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .animated-icon {
        width: 50px;
        height: 50px;
    }

    .code-icon {
        top: 18%;
    }

    .design-icon {
        bottom: 15%;
    }

    .gear-icon {
        top: 55%;
    }

    .particle-1 {
        width: 15px;
        height: 15px;
    }

    .particle-2 {
        width: 10px;
        height: 10px;
    }
}


/************************************************************************************************************************/
/*********** About-me style ***********/
mainn {
    max-width: 1600px;
    margin: 1rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    min-height: 50vh;
}

.instructor-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

    .instructor-details h1 {
        font-size: 2.8rem;
        font-weight: 700;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        color: var(--text-color);
        animation: textSlide 1.2s ease forwards;
    }

    .instructor-details .bio {
        font-size: 1.2rem;
        margin: 1.5rem 0;
        color: var(--text-color);
        opacity: 0.7 !important;
        line-height: 1.8;
        animation: fadeInRight 1.5s ease forwards;
    }

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin: 1.5rem 0 0;
}

.social-btn {
    background: var(--accent-color);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: socialPop calc(var(--i) * 0.2s + 1.5s) ease-out forwards;
}

    .social-btn:nth-child(1) {
        --i: 1;
    }

    .social-btn:nth-child(2) {
        --i: 2;
    }

    .social-btn:nth-child(3) {
        --i: 3;
    }

    .social-btn:nth-child(4) {
        --i: 4;
    }

    .social-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s ease, height 0.4s ease;
    }

    .social-btn:hover::before {
        width: 200%;
        height: 200%;
    }

    .social-btn:hover {
        transform: scale(1.2) rotate(10deg);
        box-shadow: var(--glow);
        background: var(--secondary-color);
    }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.8rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    animation: btnSlideUp 1.8s ease forwards;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    align-self: flex-start;
    margin-top: 2rem;
}

    .cta-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 300%;
        height: 300%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.5s ease;
    }

    .cta-btn:hover::after {
        transform: translate(-50%, -50%) scale(1);
    }

    .cta-btn:hover {
        background: var(--secondary-color);
        transform: translateY(-5px) rotate(-2deg);
        box-shadow: var(--glow);
        animation: heartbeat 1s infinite;
    }

.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    max-width: 100%;
    width: 350px;
    height: auto;
    border-radius: 20px;
    animation: profilePop 1.5s ease-out forwards, floatGlow 3s infinite ease-in-out;
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.profile-container::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(var(--primary-color), 0.2), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bgPulse 4s infinite ease-in-out;
    z-index: 0;
}
/* Mainn Animations */
@keyframes profilePop {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.05) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0);
        filter: brightness(1);
    }

    50% {
        transform: translateY(-10px);
        filter: brightness(1.1);
    }
}

@keyframes bgPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes textSlide {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes socialPop {
    0% {
        transform: scale(0) rotate(20deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.2) rotate(-5deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes btnSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.15);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.1);
    }

    80% {
        transform: scale(1);
    }
}
/* Main Responsive */
@media (max-width: 1400px) {
    mainn {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .profile-container {
        order: -1;
    }

    .instructor-details {
        text-align: center;
        padding: 1.5rem;
    }

    .social-links {
        justify-content: center;
        align-self: center;
    }

    .cta-btn {
        align-self: center;
    }

    .profile-img {
        width: 300px;
    }
}

@media (max-width: 1200px) {
    .instructor-details h1 {
        font-size: 2.5rem;
    }

    .instructor-details .bio {
        font-size: 1.1rem;
    }

    .profile-img {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .instructor-details h1 {
        font-size: 2.2rem;
    }

    .instructor-details .bio {
        font-size: 1rem;
    }

    .profile-img {
        width: 250px;
    }

    mainn {
        margin: 2rem auto;
    }
}

@media (max-width: 768px) {
    .instructor-details h1 {
        font-size: 1.8rem;
    }

    .instructor-details .bio {
        font-size: 0.95rem;
        margin: 1rem 0;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cta-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .profile-img {
        width: 220px;
    }

    mainn {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .instructor-details h1 {
        font-size: 1.5rem;
    }

    .instructor-details .bio {
        font-size: 0.9rem;
    }

    .social-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
        margin-top: 0.6rem;
    }

    .profile-img {
        width: 180px;
    }

    mainn {
        gap: 1.5rem;
    }
}


/************************************************************************************************************************/
/*********** Courses Section style ***********/
.courses-section {
    max-width: 1600px;
    padding: 0 2rem;
    text-align: center;
    margin: 1rem auto;
    margin-top: 75px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    color: var(--text-color);
    margin-bottom: 1rem;
    animation: titleFadeIn 1.2s ease forwards;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.course-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: cardPop calc(var(--i) * 0.3s + 0.5s) ease-out forwards;
    position: relative;
}

    .course-card:nth-child(1) {
        --i: 1;
    }

    .course-card:nth-child(2) {
        --i: 2;
    }

    .course-card:nth-child(3) {
        --i: 3;
    }

.course-img-wrapper {
    position: relative;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
    object-position: center;
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--background-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    animation: priceBounce 2s infinite ease-in-out;
}

.course-info {
    text-align: center;
    padding: 1.5rem;
}

    .course-info h3 {
        font-size: 1.5rem;
        color: var(--text-color);
    }

    .course-info p {
        font-size: 1rem;
        color: var(--text-color);
        opacity: 0.9;
        margin: 0.5rem 0;
    }

    .course-info span {
        font-weight: 700;
        color: var(--accent-color);
    }

/* تحسين شكل الزر */
.subscribe-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto 1rem;
    max-width: 80%;
}

    .subscribe-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 150%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
        z-index: 1;
    }

    .subscribe-btn:hover::before {
        left: 100%;
    }

    .subscribe-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
        opacity: 0;
        z-index: 1;
    }

    .subscribe-btn:hover::after {
        width: 200%;
        height: 200%;
        opacity: 1;
    }

    .subscribe-btn span,
    .subscribe-btn i {
        position: relative;
        z-index: 2;
        transition: var(--transition);
    }

    .subscribe-btn i {
        font-size: 1.3rem;
    }

    .subscribe-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: var(--glow), var(--shadow);
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    }

        .subscribe-btn:hover i {
            transform: translateX(8px) rotate(45deg);
        }

.course-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--glow), var(--shadow);
}

    .course-card:hover .course-img {
        transform: scale(1.1) rotate(2deg);
        filter: brightness(1.1);
    }

/* Courses Animations */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardPop {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    70% {
        transform: scale(1.05) translateY(-5px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes priceBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Courses Responsive */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }

    .course-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .courses-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .subscribe-btn {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .course-info h3 {
        font-size: 1.3rem;
    }

    .course-info p {
        font-size: 0.95rem;
    }

    .course-price {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .subscribe-btn {
        max-width: 90%;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .courses-container {
        grid-template-columns: 1fr;
    }

    .course-card {
        max-width: 300px;
    }

    .course-info h3 {
        font-size: 1.2rem;
    }

    .course-info p {
        font-size: 0.9rem;
    }

    .course-price {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
    }

    .subscribe-btn {
        max-width: 95%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}


/************************************************************************************************************************/
/*********** Newsletter style ***********/

:root {
    --surface-color1: #00071B; /* الكروت والنوافذ */
    --text-color1: #ffffff; /* نصوص فاتحة */
    --card-bg: #eee;
}

[data-theme="dark"] {
    --surface-color1: #ffffff; /* الكروت والنوافذ */
    --text-color1: #000; /* نصوص فاتحة */
    --card-bg: #111827;
}

.newsletter-section {
    padding: 0rem 1rem;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
    min-height: 350px;
    margin-top: 3rem !important;
}

.newsletter-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 1.7rem 1.9rem;
    background: var(--surface-color1);
    border-radius: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: containerFadeIn 1.2s ease-out forwards;
    backdrop-filter: blur(10px);
}

.newsletter-content {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color1);
    text-shadow: 0 6px 12px rgba(255, 255, 255, 0.4);
    animation: titleSlideUp 1.2s ease-out forwards;
    line-height: 1.3;
    position: relative;
}

    .newsletter-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
        border-radius: 2px;
        animation: underlineExpand 1.5s ease-out forwards;
    }

.newsletter-subtitle {
    font-size: 1.4rem;
    color: var(--text-color1);
    opacity: 0.7 !important;
    margin-top: 0.5rem;
    line-height: 1.7;
    max-width: 650px;
    animation: subtitleFadeIn 1.5s ease-out forwards;
}

.newsletter-form {
    display: flex;
    gap: 1.5rem;
    max-width: 750px;
    width: 100%;
    animation: formPop 1.8s ease-out forwards;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    flex: 1;
    padding: 0.0rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    color: var(--text-color1);
    background: var(--card-bg);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: var(--transition);
    font-family: 'El Messiri', sans-serif;
    position: relative;
    overflow: hidden;
}

    .newsletter-input::placeholder {
        color: var(--text-color);
        opacity: 0.6;
    }

    .newsletter-input:focus {
        box-shadow: var(--glow), inset 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: scale(1.03);
    }

    .newsletter-input::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50px;
        border: 2px solid transparent;
        border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .newsletter-input:focus::before {
        opacity: 1;
    }

.newsletter-btn {
    padding: 0.5rem 2rem;
    background: var(--accent-color);
    color: var(--text-color1);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    font-family: 'El Messiri', sans-serif;
    z-index: 2;
}

    .newsletter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 150%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
        z-index: 1;
    }

    .newsletter-btn:hover::before {
        left: 100%;
    }

    .newsletter-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
        transform: translate(-50%, -50%);
        transition: width 0.5s ease, height 0.5s ease;
        opacity: 0;
        z-index: 1;
    }

    .newsletter-btn:hover::after {
        width: 200%;
        height: 200%;
        opacity: 1;
    }

    .newsletter-btn:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        transform: scale(1.05) translateY(-5px);
        box-shadow: var(--glow), var(--shadow);
    }

        .newsletter-btn:hover .bi {
            transform: translateX(8px) rotate(10deg);
        }

.newsletter-decor {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: 0;
    opacity: 0.8;
}

.decor-wave {
    position: absolute;
    width: 100%;
    height: 140px;
    background: radial-gradient(circle, rgba(var(--highlight-color), 0.25), transparent 70%);
    animation: waveFloat 5s infinite ease-in-out;
    filter: blur(8px);
}

.decor-wave-1 {
    top: -20%;
    animation-delay: 0s;
}

.decor-wave-2 {
    bottom: -10%;
    animation-delay: 2s;
}

.decor-circle {
    position: absolute;
    background: radial-gradient(circle, rgba(var(--accent-color), 0.3), transparent 70%);
    border-radius: 50%;
    animation: circlePulse 6s infinite ease-in-out;
    filter: blur(5px);
}

.decor-circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.decor-circle-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 15%;
    animation-delay: 3s;
}

/* Newsletter Animations */
@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@keyframes formPop {
    0% {
        opacity: 0;
        transform: scale(0.85) rotate(-2deg);
    }

    70% {
        transform: scale(1.05) rotate(1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 60px;
        opacity: 1;
    }
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

@keyframes circlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Newsletter Responsive */
@media (max-width: 992px) {
    .newsletter-title {
        font-size: 2.5rem;
    }

    .newsletter-subtitle {
        font-size: 1.2rem;
    }

    .newsletter-container {
        max-width: 700px;
        padding: 2.5rem 1.5rem;
    }

    .newsletter-form {
        max-width: 500px;
    }

    .decor-circle-1 {
        width: 100px;
        height: 100px;
    }

    .decor-circle-2 {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {

    .newsletter-title {
        font-size: 2.2rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }

    .newsletter-container {
        max-width: 600px;
        padding: 2rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 350px;
    }

    .newsletter-input, .newsletter-btn {
        width: 100%;
    }

    .newsletter-btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        text-align: center;
        display: block;
    }

    .decor-wave {
        height: 100px;
    }

    .decor-circle-1 {
        width: 80px;
        height: 80px;
    }

    .decor-circle-2 {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {

    .newsletter-title {
        font-size: 1.8rem;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
        margin-top: 0.6rem;
    }

    .newsletter-container {
        max-width: 90%;
        padding: 1.5rem 0.8rem;
    }

    .newsletter-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .newsletter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        text-align: center;
    }

    .decor-wave {
        height: 80px;
    }

    .decor-circle-1 {
        width: 60px;
        height: 60px;
    }

    .decor-circle-2 {
        width: 40px;
        height: 40px;
    }
}

/************************************************************************************************************************/
/*********** Footer style ***********/

footer {
    background: var(--primary-color);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-color);
    animation: fadeInBottom 1s ease;
}

    footer p {
        margin: 0.6rem 0;
        font-size: 1rem;
        color: var(--text-color);
    }

    footer a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
    }

        footer a:hover {
            color: #fff;
            text-shadow: var(--glow);
        }
/* Footer Animations */
@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Footer Responsive */
@media (max-width: 480px) {
    footer {
        padding: 1rem;
    }

        footer p {
            font-size: 0.9rem;
        }
}

/************************************************************************************************************************/
/*********** AllCourses style ***********/
.edu-courses-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    direction: rtl;
}

/* الفلتر */
.filter-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    margin-top: 75px;
}

    .filter-wrapper::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgb(105 173 118 / 15%), transparent);
        animation: rotateGlow 8s infinite linear;
    }

.filter-title {
    font-size: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

    .filter-title i {
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .filter-title span {
        flex-grow: 1;
        text-align: center;
    }

.filter-desc {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7 !important;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-group {
    position: relative;
    animation: slideUp 0.6s ease-out calc(var(--i) * 0.2s) forwards;
    opacity: 0;
}

    .filter-group:nth-child(1) {
        --i: 1;
    }

    .filter-group:nth-child(2) {
        --i: 2;
    }

.filter-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
}

.filter-icon {
    position: absolute;
    right: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

.filter-select {
    text-align: center;
    padding: 0.8rem 2.5rem 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    appearance: none;
}

    .filter-select:hover, .filter-select:focus {
        transform: translateY(-3px);
        box-shadow: 0 0 20px rgba(0,180,216,0.3);
    }

.select-arrow {
    position: absolute;
    left: 12px;
    color: var(--primary-color);
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filter-select:focus + .select-arrow {
    transform: rotate(180deg);
}

/* الكورسات */
.courses-wrapper {
    text-align: center;
}

.courses-title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.courses-desc {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 3rem;
}

.course-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: cardReveal 0.7s ease-out forwards;
}

.course-card.hidden {
    display: none;
}

/* أنيميشن هادئ للصاروخ */
@keyframes calmRocket {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(-5deg);
    }

    100% {
        transform: translateY(-10px) rotate(0deg);
    }
}

/* الأنيميشن الأساسية */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    70% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pricePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* التجاوب */
@media (max-width: 1024px) {
    .courses-container {
        gap: 2rem;
    }

    .course-card {
        width: 340px;
    }
}

@media (max-width: 768px) {
    .filter-wrapper {
        max-width: 600px;
    }

    .filter-title {
        font-size: 1.8rem;
    }

    .courses-title {
        font-size: 2rem;
    }

    .filter-select {
        padding: 0.7rem 2.5rem 0.7rem 1.5rem;
    }

    .courses-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .filter-wrapper {
        max-width: 100%;
        padding: 1rem;
    }

    .filter-title {
        font-size: 1.5rem;
        gap: 0.8rem;
    }

    .courses-title {
        font-size: 1.7rem;
    }

    .filter-desc, .courses-desc {
        font-size: 0.9rem;
    }

    .filter-container {
        gap: 1rem;
    }

    .select-wrapper {
        width: 180px;
    }

    .filter-select {
        font-size: 0.9rem;
        padding: 0.6rem 2rem 0.6rem 1.5rem;
    }

    .course-info h3 {
        font-size: 1.1rem;
    }

    .course-img {
        height: 260px;
    }

    .course-price {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/************************************************************************************************************************/
/*********** CourseDetails style ***********/
section.course-section {
    margin-top: 75px;
    margin-bottom: 20px;
}

.course-section .course-container {
    justify-self: center;
    max-width: 1200px;
    width: 100%;
    background: var(--surface-color);
    border-radius: 25px;
    box-shadow: var(--shadow);
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-section .course-header {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    animation: slideDown 0.6s ease-out;
}

    .course-section .course-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
        opacity: 0.3;
        z-index: 0;
    }

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.course-section .course-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.course-section .course-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.course-section .course-media-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

    .course-section .course-media-container::after {
        content: '\f144';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 3rem;
        color: #fff;
        opacity: 0;
        transition: var(--transition);
    }

    .course-section .course-media-container:hover::after {
        opacity: 0.8;
    }

    .course-section .course-media-container:hover {
        transform: scale(1.03);
        box-shadow: var(--glow);
    }

    .course-section .course-media-container video {
        width: 100%;
        height: 350px;
        object-fit: cover;
        display: block;
    }

.course-section .course-details-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-section .course-info {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-section .course-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}

    .course-section .course-info h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--accent-color);
        border-radius: 2px;
    }

.course-section .course-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-section .detail-item {
    background: var(--bg-color);
    padding: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .course-section .detail-item::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: var(--accent-color);
        transition: var(--transition);
    }

    .course-section .detail-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--glow);
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: #fff;
    }

        .course-section .detail-item:hover::before {
            width: 100%;
            opacity: 0.2;
        }

    .course-section .detail-item i {
        font-size: 1.8rem;
        color: var(--accent-color);
        padding: 0.8rem;
        background: var(--secondary-color);
        border-radius: 50%;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .course-section .detail-item:hover i {
        transform: scale(1.15);
        background: rgba(255, 255, 255, 0.3);
        box-shadow: var(--glow);
    }

.course-section .detail-info span {
    font-size: 1.1rem;
    font-weight: 600;
}

.course-section .detail-info small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.course-section .detail-item:hover .detail-info small {
    color: #fff;
    opacity: 1;
}

.course-section .payment-section {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease-out;
}

    .course-section .payment-section h2 {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        text-align: center;
        position: relative;
    }

        .course-section .payment-section h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: var(--accent-color);
            border-radius: 2px;
        }

.course-section .payment-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.course-section .payment-method-select {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    appearance: none;
}

    .course-section .payment-method-select:focus {
        outline: none;
        box-shadow: var(--glow);
        background: var(--secondary-color);
    }

.nav-link {
    color: var(--text-color);
}

.course-section .payment-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.course-section .payment-method-select:hover + .payment-select-wrapper::after,
.course-section .payment-method-select:focus + .payment-select-wrapper::after {
    color: var(--secondary-color);
}

.course-section .payment-details {
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: none;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-section .payment-details.active {
    display: block;
}

.course-section .payment-details input,
.course-section .payment-details select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

    .course-section .payment-details input:focus,
    .course-section .payment-details select:focus {
        outline: none;
        box-shadow: var(--glow);
    }

.course-section .payment-details button {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .course-section .payment-details button::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        transition: var(--transition);
    }

    .course-section .payment-details button:hover::after {
        left: 100%;
    }

    .course-section .payment-details button:hover {
        background: var(--secondary-color);
        transform: scale(1.03);
        box-shadow: var(--glow);
    }

.course-section .confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.course-section .confirmation-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: zoomIn 0.5s ease-out;
    position: relative;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.course-section .confirmation-content i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    animation: bounce 0.8s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-25px);
    }

    60% {
        transform: translateY(-12px);
    }
}

.course-section .confirmation-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-section .confirmation-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.course-section .confirmation-content button {
    padding: 1rem 3rem;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

    .course-section .confirmation-content button:hover {
        background: var(--secondary-color);
        transform: scale(1.05);
        box-shadow: var(--glow);
    }

@media (max-width: 900px) {
    .course-section .course-content-wrapper {
        grid-template-columns: 1fr;
    }

    .course-section .course-media-container video {
        height: 280px;
    }

    .course-section .payment-section {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .course-section .course-container {
        padding: 1.5rem;
    }

    .course-section .course-header {
        padding: 2rem;
    }

        .course-section .course-header h1 {
            font-size: 1.2rem;
        }

    .course-section .course-info h2,
    .course-section .payment-section h2 {
        font-size: 1.6rem;
    }

    .course-section .course-media-container video {
        height: 220px;
    }

    .course-section .detail-item {
        padding: 0.6rem;
    }

        .course-section .detail-item i {
            font-size: 1.6rem;
            padding: 0.6rem;
        }

    .course-section .detail-info span {
        font-size: 1rem;
    }

    .course-section .detail-info small {
        font-size: 0.7rem;
    }

    .course-section .payment-method-select {
        padding: 1rem 2.5rem 1rem 1.2rem;
        font-size: 1rem;
    }

    .course-section .confirmation-content {
        padding: 2rem;
    }

        .course-section .confirmation-content i {
            font-size: 3rem;
        }

        .course-section .confirmation-content h3 {
            font-size: 1.6rem;
        }
}

/* Payment Section Styling */
.payment-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .payment-section h2 {
        text-align: center;
        margin-bottom: 25px;
        font-weight: 600;
        color: #333;
    }

/* Tabs Styling */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
}

/* Tab Content Styling */
.tab-content {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 15px 15px;
    background: var(--surface-color);
}

    /* Form Inputs */
    .tab-content input,
    .tab-content select {
        width: 100%;
        padding: 12px 15px;
        margin-bottom: 15px;
        border: 1px solid var(--input-border);
        border-radius: 10px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .tab-content input:focus,
        .tab-content select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 8px var(--input-focus-shadow);
            outline: none;
        }

    /* Submit Button */
    .tab-content button {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border: none;
        border-radius: 10px;
        color: #fff;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .tab-content button:hover {
            background: linear-gradient(135deg, #007a5f, #13856f);
            box-shadow: 0 6px 15px rgba(0,0,0,0.2);
        }


/************************************************************************************************************************/
/*********** StudentCourse style ***********/
.card-footer span {
    color: var(--text-color);
}

.card-text p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0.5rem 0;
}

/************************************************************************************************************************/
/*********** StudentCourseView style ***********/
.viewstyle {
    margin: 1rem auto;
    margin-top: 80px;
}

.vedioview {
    max-widthh: 576px !important;
}

.list-group-item.active {
    z-index: 2;
    color: var(--text-color);
    background-color: var(--background-color);
    border-color: var(--accent-color);
}

.btnstyleview {
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--accent-color);
}

.btn:hover {
    color: var(--text-color);
    background-color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    color: var(--text-color);
    background-color: var(--primary-color);
    border-color: var(--accent-color);
}
@media (max-width: 767px) {
    #lessonList {
        max-height: 230px;
        overflow: auto;
    }
}