    /* Global Reset for margin, padding, box-sizing, font-family, and transition */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Rubik', sans-serif;
        transition: all 0.4s ease;
    }

    /* Defining root variables for easy color theme management */
    :root {
        --body-color: #ffffff;
        --nav-color: #668b8057;
        --side-nav: #e1e1e1;
        --text-color: #2d453d;
        --search-bar: #F2F2F2;
        --search-text: #010718;
        --title-background-color: linear-gradient(45deg, #e6b264, #2d453d 70%);
        --circle--color: #2d453d;
        --counter-color:#4a716489;
    }

    /* Body style in light mode */
    body {
        direction: rtl;
        height: 100vh;
        background-color: var(--body-color);
    }

    /* Body style in dark mode */
    body.dark {
        --body-color: #18191A;
        --nav-color: #242526;
        --side-nav: #242526;
        --text-color: #CCC;
        --search-bar: #242526;
        --title-background-color: linear-gradient(45deg, #e6b264, #c1c2c2 70%);
        --circle--color: #dba245;
        --counter-color:#18191a;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 999;
        backdrop-filter: blur(5px);
    }
    
    .overlay.active {
        display: block;
        opacity: 1;
    }

    /* Navigation bar styling */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 70px;
        width: 100%;
        background-color: var(--nav-color);
        z-index: 1000;
        direction: rtl;
        backdrop-filter: blur(100px);
        
    }

    /* Navigation bar styling in dark mode */
    body.dark nav {
        border: 1px solid #393838;
    }

    /* Inner nav-bar container for content alignment */
    nav .nav-bar {
        position: relative;
        height: 100%;
        max-width: 1200px;
        width: 100%;
        /* background-color: var(--nav-color); */
        margin: 0 auto;
        padding: 0 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Menu icon in mobile view (hidden by default) */
    nav .nav-bar .sidebarOpen {
        color: var(--text-color);
        font-size: 25px;
        padding: 5px;
        cursor: pointer;
        display: none;
    }

    /* Logo text styling */
    nav .nav-bar .logo a {
        font-size: 25px;
        font-weight: 500;
        color: var(--text-color);
        text-decoration: none;
    }

    /* Hidden logo toggle (for mobile) */
    .menu .logo-toggle {
        display: none;
    }
    
    .menu .menu-large1 {
        display: none;
    }

    /* Styling navigation links */
    .nav-bar .nav-links {
        display: flex;
        align-items: center;
    }

    /* Styling individual list items in the navigation */
    .nav-bar .nav-links li {
        margin: 0 5px;
        list-style: none;
    }

    /* Styling the anchor tags for nav links */
    .nav-links li a {
        position: relative;
        font-size: 17px;
        font-weight: 800;
        color: var(--text-color);
        text-decoration: none;
        padding: 10px;
    }

    /* Adding a small circle on hover */
    .nav-links li a::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        height: 6px;
        width: 6px;
        border-radius: 50%;
        background-color: var(--text-color);
        opacity: 0;
        transition: all 0.3s ease;
    }

    /* Circle becomes visible on hover */
    .nav-links li:hover a::before {
        opacity: 1;
    }

    /* Container for dark/light mode toggle and search box */
    .nav-bar .darkLight-searchBox {
        display: flex;
        align-items: center;
    }

    /* Common styling for dark/light mode toggle and search toggle */
    .darkLight-searchBox .dark-light,
    .darkLight-searchBox .searchToggle {
        height: 40px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 5px;
    }

    /* Styling icons for dark/light mode and search toggle */
    .dark-light i,
    .searchToggle i {
        position: absolute;
        color: var(--text-color);
        font-size: 22px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Sun icon hidden by default (shown when activated) */
    .dark-light i.sun {
        opacity: 0;
        pointer-events: none;
    }

    /* Display sun icon and hide moon icon when dark mode is active */
    .dark-light.active i.sun {
        opacity: 1;
        pointer-events: auto;
    }

    .dark-light.active i.moon {
        opacity: 0;
        pointer-events: none;
    }

    /* Cancel icon hidden by default (shown when search is active) */
    .searchToggle i.cancel {
        opacity: 0;
        pointer-events: none;
    }

    /* Show cancel icon when search is active */
    .searchToggle.active i.cancel {
        opacity: 1;
        pointer-events: auto;
    }

    /* Hide search icon when search is active */
    .searchToggle.active i.search {
        opacity: 0;
        pointer-events: none;
    }

    /* Search box container */
    .searchBox {
        position: relative;
    }

    /* Hidden search field (shown when search is active) */
    .searchBox .search-field {
        position: absolute;
        bottom: -85px;
        left: 5px;
        height: 50px;
        width: 300px;
        display: flex;
        align-items: center;
        background-color: var(--nav-color);
        padding: 3px;
        border-radius: 6px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Show search field when active */
    .searchToggle.active~.search-field {
        background: #668b8057;
        bottom: -74px;
        opacity: 1;
        pointer-events: auto;
    }

    /* Arrow shape at the top of the search field */
    .search-field::after {
        content: '';
        position: absolute;
        left: 14px;
        top: -4px;
        height: 12px;
        width: 12px;
        background-color: var(--nav-color);
        transform: rotate(-45deg);
        z-index: -1;
    }

    /* Styling the search input field */
    .search-field input {
        height: 100%;
        width: 100%;
        padding: 0 45px 0 15px;
        outline: none;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 400;
        color: var(--search-text);
        background-color: var(--search-bar);
    }

    /* Dark mode search input text color */
    body.dark .search-field input {
        color: var(--text-color);
    }

    /* Search icon inside the search field */
    .search-field i {
        position: absolute;
        color: var(--nav-color);
        right: 15px;
        font-size: 22px;
        cursor: pointer;
    }

    /* Dark mode search icon color */
    body.dark .search-field i {
        color: var(--text-color);
    }

    nav button {
        padding: 10px 20px;
        color: #fff;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: bold;
    }

    nav button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    button {
        font-family: 'Rubik', sans-serif;
    }

    .sign-in {
        background: linear-gradient(45deg, #dba245, #e9b76c);
    }

    .sign-up {
        background: linear-gradient(45deg, #7a9f93, #447367);
        margin-left: 10px;
    }

    /* Media query for responsive adjustments */
    @media (max-width: 980px) {

        /* Show sidebar menu icon on smaller screens */
        nav .nav-bar .sidebarOpen {
            display: block;
        }

        /* Full-screen menu for mobile view */
        .menu {
            position: fixed;
            height: 100vh;
            width: 320px;
            right: -100%;
            top: 0;
            padding: 20px;
            background-color: var(--side-nav);
            z-index: 100;
            transition: all 0.4s ease;
            backdrop-filter: blur(100px) !important;
        }

        .menu .menu-large1{
            display: flex;
            flex-direction: column;
            gap: 1rem;
            
        }
        .menu .menu-large1 .sign-in{
            flex: 1;
            
        }

         .menu .menu-large1 .sign-up{
            flex: 1;
            width: 100%;
            
        }

        .nav-bar .menu-large2{
            display: none;
        }

        /* Menu slides in when active */
        nav.active .menu {
            right: 0;
        }

        /* Hide logo text when menu is active */
        nav.active .nav-bar .navLogo a {
            opacity: 0;
            transition: all 0.3s ease;
        }

        /* Toggle between logo and close icon */
        .menu .logo-toggle {
            display: block;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Close icon in the menu */
        .logo-toggle .siderbarClose {
            color: var(--text-color);
            font-size: 24px;
            cursor: pointer;
        }

        /* Stack nav links vertically in mobile view */
        .nav-bar .nav-links {
            flex-direction: column;
            padding-top: 30px;
        }

        /* Add spacing to nav links in mobile view */
        .nav-links li a {
            display: block;
            margin-top: 20px;
        }
    }


    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 999;
        backdrop-filter: blur(5px);
    }

    .circle {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        animation: float-circle 15s linear infinite;
        opacity: 0.2;
    }

    .circle:nth-child(1) {
        width: 300px;
        height: 300px;
        background: #dba245;
        top: -150px;
        right: -150px;
        animation-duration: 20s;
    }

    .circle:nth-child(2) {
        width: 200px;
        height: 200px;
        background: #7a9f93;
        bottom: -100px;
        left: 10%;
        animation-duration: 25s;
        animation-delay: 2s;
    }

    .circle:nth-child(3) {
        width: 150px;
        height: 150px;
        background: #dba245;
        top: 20%;
        left: 20%;
        animation-duration: 30s;
        animation-delay: 5s;
    }

    .circle:nth-child(4) {
        width: 100px;
        height: 100px;
        background: #7a9f93;
        bottom: 20%;
        right: 20%;
        animation-duration: 22s;
        animation-delay: 3s;
    }

    .circle:nth-child(5) {
        width: 250px;
        height: 250px;
        background: #dba245;
        top: 40%;
        right: 5%;
        animation-duration: 28s;
        animation-delay: 1s;
    }

    @keyframes float-circle {
        0% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-100px) rotate(180deg);
        }

        100% {
            transform: translateY(0) rotate(360deg);
        }
    }



    .hero-section {

        min-height: 100vh;
        /* background: radial-gradient(circle at top right, rgba(71, 218, 115, 0.1) 0%, transparent 60%),
            radial-gradient(circle at bottom left, rgba(0, 85, 29, 0.1) 0%, transparent 60%); */
        position: relative;
        overflow: hidden;
    }





    .hero-container {
        max-width: 1400px;
        margin: 2rem auto;
        padding: 0 2rem;
        height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .hero-content-wrapper {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .content {
        flex: 1;
        /* max-width: 300px; */
        z-index: 1;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease forwards;
        position: relative;
    }



    .title-container {
        height: 180px;
        margin-bottom: 20px;
        position: relative;
    }

    .hero-section h1 {
        font-size: 4.5rem;
        background: var(--title-background-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1.2;
        font-weight: 800;
        text-shadow: 2px 2px 9px rgba(0, 0, 0, 0.1);
        position: absolute;
        /* white-space: nowrap; */
    }

    .hero-section h1::after {
        content: '|';
        margin-left: 5px;
        opacity: 1;
        animation: blink 0.7s infinite;
    }

    @keyframes blink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    .hero-section p {
        font-size: 1.3rem;
        margin-bottom: 30px;
        color: var(--text-color);
        line-height: 1.6;
        opacity: 0;
        animation: fadeIn 1s ease 1s forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    .hero-section button {
        padding: 15px 35px;
        background: linear-gradient(45deg, #7a9f93, #355a51);
        color: #fff;
        border: none;
        border-radius: 30px;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        font-family: 'Rubik', sans-serif;
    }

    .hero-section button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .hero-section button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(219, 162, 69, 0.3);
    }

    .hero-section button:hover::before {
        left: 100%;
    }

    .hero-image-container {
        position: relative;
        animation: float 6s ease-in-out infinite;
    }

    .hero-blob {
        width: 500px;
        height: 500px;
        background: var(--gradient);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        animation: blobAnimation 20s infinite alternate;
        filter: drop-shadow(0 10px 40px #2d453db5);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-blob::after {
        content: '';
        position: absolute;
        inset: 10px;
        border-radius: inherit;
        background: rgba(255, 255, 255, 0.2);
    }

    .hero-blob img {
        width: 100%;
    }

    @keyframes blobAnimation {
        0% {
            border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        }

        25% {
            border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
        }

        50% {
            border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        }

        75% {
            border-radius: 60% 40% 50% 50% / 30% 50% 60% 70%;
        }

        100% {
            border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        }
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-20px) rotate(2deg);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 1200px) {
        .hero-heading {
            font-size: 4rem;
        }

        .hero-blob {
            width: 450px;
            height: 450px;
        }

        .hero-container {
            margin-top: 10rem;
        }
    }

    @media (max-width: 992px) {
        .hero-content-wrapper {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 3rem;
        }

        .hero-heading {
            font-size: 3.5rem;
        }

        .hero-buttons-wrapper {
            justify-content: center;
        }

        .hero-blob {
            width: 400px;
            height: 400px;
            margin: 0 auto;
        }
        .hero-section h1 {
            font-size: 3rem;
        }
    }

    @media (max-width: 576px) {
        .hero-container {
            margin-top: 10rem;
            padding: 0 1rem;
        }

        .hero-heading {
            font-size: 2.5rem;
        }

        .hero-paragraph {
            font-size: 1rem;
        }

        .hero-buttons-wrapper {
            flex-direction: column;
        }

        .hero-blob {
            width: 300px;
            height: 300px;
        }

        .hero-button {
            width: 100%;
        }
    }


       /* Learning Path Section */

.learning-path {
    min-height: 100vh;
    background: var(--nav-color);
    padding: 80px 20px;
    perspective: 1000px;
    overflow: hidden;
    position: relative;
}

.learning-path::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #dba24522, #44736722);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.path-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 60px;
    position: relative;
}

.path-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--title-background-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: skew(-5deg);
}

.learning-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.path-card {
    flex: 1 1 300px;
    max-width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.path-card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(45deg, #686868, #44736711); */
    z-index: -1;
}

.step-number {
    font-size: 5rem;
    font-weight: bold;
    background: var(--title-background-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.card-back {
    background: #fff;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#dba245 var(--progress), #eee var(--progress));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: attr(data-progress);
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s linear infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    border: 5px solid #dba245;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    border: 5px solid #447367;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    background: #dba245;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(100px, 100px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}



/* Interactive Timeline */
.timeline {
    margin-top: 100px;
    padding: 0 20px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #dba245, #447367);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-content {
    width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--text-color);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--circle--color);
    border-radius: 50%;
    margin: 0 20px;
    position: relative;
    z-index: 2;
}


/* Animated Counter Section */
.counter-section {
    padding: 100px 20px;
    background:  var(--counter-color);
    position: relative;
    overflow: hidden;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.counter-item {
    text-align: center;
    color: var(--text-color);
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
}

.counter-value {
    font-size: 3.5rem;
    font-weight: bold;
    background: var(--title-background-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}




.learning-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--nav-color);
}

.learning-text {
    max-width: 550px;
    padding: 20px;
}

.learning-text h1 {

    background:var(--title-background-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.9;
    font-weight: 800;
    text-shadow: 2px 2px 9px rgba(0, 0, 0, 0.1);


}

.learning-text p {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    color: white;
    background: linear-gradient(45deg, #dba245, #e9b76c);
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
    transition: 0.9s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #e9b76c, #dba245);
    /* color: #333; */
    
}

.learning-image img {
    max-width: 500px;
    width: 100%;
    border-radius: 10px;
    animation: float 6s ease-in-out infinite;
}



@media (max-width: 768px) {
    .learning-section {
        flex-direction: column;
        text-align: center;
    }

    .learning-image img {
        max-width: 300px;
    }
}


.special_courses {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section_title {
    text-align: center;
    margin-bottom: 3rem;
}

.section_title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section_title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--title-background-color);
    border-radius: 2px;
}

/* تحسينات إضافية للكورسات */
.courses_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.course_card {
    background: var(--card-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.course_image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course_card:hover .course_image img {
    transform: scale(1.08);
}

.course_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--circle--color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.course_content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course_tag {
    display: inline-block;
    background: rgba(45, 69, 61, 0.08);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.course_tag:hover {
    background: rgba(45, 69, 61, 0.15);
}

.course_price {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--circle--color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 1;
}

.course_title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.course_card:hover .course_title {
    color: var(--accent-color, #e6b264);
}

.course_description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.author_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author_image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(230, 178, 100, 0.3);
}

.author_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author div p {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.author div small {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
}

.rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating small {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .section_title h2 {
        font-size: 2rem;
    }
}


.advance_feature {
    padding: 5rem 0;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.feature_content h5 {
    color: #e6b264;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature_content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.feature_content p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature_card {
    padding: 1.5rem;
    background: rgba(230, 178, 100, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature_card:hover {
    transform: translateY(-5px);
}

.feature_icon {
    width: 60px;
    height: 60px;
    background: var(--title-background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature_icon i {
    font-size: 1.5rem;
    color: white;
}

.feature_card h4 {
    color: var(--text-color);
    margin: 1rem 0;
    font-size: 1.2rem;
}

.feature_card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature_image {
    position: relative;
}

.feature_image img {
    width: 90%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 10px 10px var(--circle--color));
}

/* .feature_image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    right: 20px;
    border-radius: 20px;
    background: var(--title-background-color);
    z-index: -1;
    opacity: 0.2;
} */

@media (max-width: 992px) {
    .feature_grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature_content h2 {
        font-size: 2rem;
    }

    .feature_image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .feature_cards {
        grid-template-columns: 1fr;
    }
}


.footer-area {
    background: var(--nav-color);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--title-background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-widget {
    color: var(--text-color);
}

.footer-widget img {
    max-width: 150px;
    margin-bottom: 20px;
    
}

.footer-widget h4 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--circle--color);
}

.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--search-bar);
    border-radius: 5px;
    color: var(--text-color);
}

.newsletter-form button {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 20px;
    background: var(--circle--color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: var(--circle--color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: var(--text-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info span {
    font-weight: bold;
    color: var(--circle--color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--side-nav);
    color: var(--text-color);
}

.copyright a {
    color: var(--circle--color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-widget {
        text-align: center;
    }

    .footer-widget h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-icons {
        justify-content: center;
    }
}

/* تنسيق قائمة المستخدم */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 500;
    color: var(--text-color);
}

.sign-out {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sign-out:hover {
    background-color: #d32f2f;
}

/* تنسيق القائمة المنسدلة للمستخدم */
.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-btn i {
    font-size: 40px;
    color: var(--text-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--body-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--hover-color);
}

.dropdown-menu i {
    margin-left: 10px;
    font-size: 18px;
}
