/* Elegant Theme Styles - Exact Match to Design */

:root {
    --primary-red: #DC2626;
    --secondary-color: #1F2937;
    --white: #ffffff;
    --black: #000000;
    --light-red: #FF6B6B;
    --dark-blue: #1E3A5F;
}

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: var(--white);
    overflow-x: hidden;
}

.content-wrapper {
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
}

/* Header Styles - Exact Match */
.elegant-header {
    background: var(--white);
    padding: 20px 5rem;
    max-width: 1450px;
    margin: 0 auto 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 1rem;
    z-index: 1000;
    border-radius: 20px;
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Theme Toggle Styles */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--primary-red);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.theme-toggle-slider.active {
    right: 3px;
}

.theme-icon {
    font-size: 14px;
    position: absolute;
    transition: opacity 0.3s ease;
}

.sun-icon {
    right: 8px;
    opacity: 1;
}

.moon-icon {
    left: 8px;
    opacity: 0.5;
}

.theme-toggle-slider.active .sun-icon {
    opacity: 1;
}

.theme-toggle-slider.active .moon-icon {
    opacity: 0.3;
}

.header-actions-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row; /* RTL: Register (red) on right, Login (white) on left */
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.btn-login {
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-login:hover {
    background: #fff5f5;
    color: var(--primary-red);
}

.btn-register {
    padding: 10px 24px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-register:hover {
    background: var(--primary-color);
    filter: brightness(0.85);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section Styles - Exact Match */
.elegant-hero {
    background: var(--primary-red);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    margin-top: -140px;
    padding-top: 180px;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 2;
}

body.dark-theme .hero-content {
    z-index: 3;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 3;
    border-radius: 0;
}

.hero-graphics {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.watermelon-splash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.4) 0%, rgba(220, 38, 38, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    z-index: 1;
}

.hero-placeholder {
    width: 100%;
    height: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.hero-text-wrapper {
    color: var(--white);
    padding-left: 40px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
    color: var(--white);
    text-align: right;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
    color: var(--white);
    opacity: 0.98;
    text-align: right;
}

.hero-button {
    display: inline-block;
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary-red);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    margin-right: 0;
}

.hero-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: var(--primary-red);
}

.hero-stats {
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 0;
    align-items: flex-start;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    text-align: right;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--white);
    opacity: 0.95;
    font-weight: 500;
}

.stat-facebook {
    justify-content: flex-end;
}

.stat-youtube {
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* الصورة في الأعلى على الشاشات الصغيرة */
    .hero-image-wrapper {
        order: 1;
    }
    
    .hero-text-wrapper {
        order: 2;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .stat-item {
        justify-content: center;
    }
}

/* Responsive Header Styles */
@media (max-width: 1200px) {
    .elegant-header {
        margin-left: 2rem;
        margin-right: 2rem;
        padding: 20px 3rem;
    }
}

@media (max-width: 992px) {
    .elegant-header {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        padding: 18px 2rem;
    }
    
    .header-logo img {
        height: 45px;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .elegant-header {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 15px 1.5rem;
        top: 0.5rem;
        border-radius: 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }
    
    .header-left {
        width: auto;
        justify-content: center;
        gap: 15px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .theme-toggle {
        width: 55px;
        height: 28px;
    }
    
    .theme-toggle-slider {
        width: 22px;
        height: 22px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions-wrapper {
        position: relative;
    }
    
    .header-actions {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        flex-direction: column;
        width: 200px;
        gap: 10px;
        display: none;
        z-index: 1000;
    }
    
    .header-actions.show {
        display: flex;
    }
    
    .btn-login,
    .btn-register {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .elegant-hero {
        min-height: auto;
        padding: 40px 0;
        margin-top: -140px;
        padding-top: 160px;
    }
    
    .hero-content {
        padding: 20px 0;
        gap: 30px;
    }
    
    /* الصورة في الأعلى على الشاشات الصغيرة */
    .hero-image-wrapper {
        order: 1;
    }
    
    .hero-text-wrapper {
        order: 2;
    }
    
    .hero-image {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .elegant-header {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 12px 1rem;
        top: 0.5rem;
        border-radius: 12px;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .header-left {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .header-logo img {
        height: 35px;
    }
    
    .theme-toggle {
        width: 50px;
        height: 26px;
    }
    
    .theme-toggle-slider {
        width: 20px;
        height: 20px;
        top: 3px;
    }
    
    .theme-icon {
        font-size: 12px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .header-actions {
        width: 180px;
        padding: 12px;
    }
    
    .btn-login,
    .btn-register {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Dark Theme Styles */
body.dark-theme {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .elegant-header {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

body.dark-theme .elegant-hero {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        rgba(30, 30, 30, 0.95) 50%,
        var(--primary-color) 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-color) 0%, rgba(30, 30, 30, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

body.dark-theme .elegant-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

body.dark-theme .elegant-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 70%
    );
    animation: darkHeroFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes darkHeroFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

body.dark-theme .watermelon-splash {
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        transparent 100%);
    opacity: 0.6;
}

body.dark-theme .hero-image {
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.3s ease;
}

body.dark-theme .hero-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn-login {
    background: #1a1a1a;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

body.dark-theme .btn-register {
    background: var(--primary-red);
    color: var(--white);
}

body.dark-theme .btn-register:hover {
    background: var(--primary-color);
    filter: brightness(0.9);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .header-actions {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

body.dark-theme .mobile-menu-toggle span {
    background: var(--primary-red);
}

/* Why Choose Section Styles */
.elegant-why-choose {
    background: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elegant-why-choose .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 80px;
    opacity: 0;
    animation: floatAround 20s infinite ease-in-out, fadeInOut 6s infinite ease-in-out;
    z-index: 0;
}

/* Random Distribution - Top Area */
.floating-icon-1 {
    top: 3%;
    left: 8%;
    animation-delay: 0s, 0s;
    animation-duration: 25s, 6s;
}

.floating-icon-2 {
    top: 12%;
    left: 25%;
    animation-delay: 2s, 1.2s;
    animation-duration: 30s, 7s;
}

.floating-icon-3 {
    top: 7%;
    right: 15%;
    animation-delay: 4s, 2.5s;
    animation-duration: 22s, 5.5s;
}

.floating-icon-4 {
    top: 18%;
    right: 8%;
    animation-delay: 1s, 0.8s;
    animation-duration: 28s, 6.5s;
}

.floating-icon-5 {
    top: 5%;
    left: 45%;
    animation-delay: 3s, 1.8s;
    animation-duration: 26s, 7.5s;
}

.floating-icon-6 {
    top: 15%;
    right: 32%;
    animation-delay: 5s, 3.2s;
    animation-duration: 24s, 5.8s;
}

/* Random Distribution - Upper Middle */
.floating-icon-7 {
    top: 28%;
    left: 12%;
    animation-delay: 1.5s, 0.5s;
    animation-duration: 27s, 6.2s;
}

.floating-icon-8 {
    top: 22%;
    left: 38%;
    animation-delay: 3.5s, 2.8s;
    animation-duration: 29s, 7.2s;
}

.floating-icon-9 {
    top: 32%;
    right: 22%;
    animation-delay: 2.5s, 1.5s;
    animation-duration: 23s, 5.2s;
}

.floating-icon-10 {
    top: 25%;
    right: 45%;
    animation-delay: 4.5s, 3.5s;
    animation-duration: 25s, 6.8s;
}

.floating-icon-11 {
    top: 35%;
    left: 5%;
    animation-delay: 0.5s, 0.3s;
    animation-duration: 24s, 5.5s;
}

.floating-icon-12 {
    top: 38%;
    right: 5%;
    animation-delay: 1.8s, 1.1s;
    animation-duration: 26s, 6.5s;
}

/* Random Distribution - Middle Area (avoiding center) */
.floating-icon-13 {
    top: 48%;
    left: 18%;
    animation-delay: 3.2s, 2.2s;
    animation-duration: 28s, 7.5s;
}

.floating-icon-14 {
    top: 52%;
    right: 28%;
    animation-delay: 0.8s, 0.6s;
    animation-duration: 23s, 5.8s;
}

.floating-icon-15 {
    top: 45%;
    left: 52%;
    animation-delay: 2.3s, 1.8s;
    animation-duration: 27s, 6.8s;
}

.floating-icon-16 {
    top: 55%;
    right: 18%;
    animation-delay: 1.2s, 0.9s;
    animation-duration: 25s, 5.2s;
}

.floating-icon-17 {
    top: 42%;
    left: 28%;
    animation-delay: 3.8s, 3.1s;
    animation-duration: 29s, 7.8s;
}

.floating-icon-18 {
    top: 58%;
    right: 38%;
    animation-delay: 0.3s, 0.2s;
    animation-duration: 22s, 5.5s;
}

/* Random Distribution - Lower Middle */
.floating-icon-19 {
    top: 65%;
    left: 15%;
    animation-delay: 2.7s, 2.1s;
    animation-duration: 26s, 6.2s;
}

.floating-icon-20 {
    top: 72%;
    left: 42%;
    animation-delay: 1.5s, 1.3s;
    animation-duration: 24s, 5.8s;
}

.floating-icon-21 {
    top: 68%;
    right: 25%;
    animation-delay: 0.7s, 0.4s;
    animation-duration: 27s, 6.5s;
}

.floating-icon-22 {
    top: 62%;
    right: 48%;
    animation-delay: 2.1s, 1.7s;
    animation-duration: 25s, 5.5s;
}

.floating-icon-23 {
    top: 75%;
    left: 8%;
    animation-delay: 3.5s, 2.9s;
    animation-duration: 28s, 7.2s;
}

.floating-icon-24 {
    top: 78%;
    right: 12%;
    animation-delay: 0.9s, 0.7s;
    animation-duration: 23s, 5.2s;
}

/* Random Distribution - Bottom Area */
.floating-icon-25 {
    top: 82%;
    left: 22%;
    animation-delay: 1.6s, 1.2s;
    animation-duration: 26s, 6.8s;
}

.floating-icon-26 {
    top: 85%;
    left: 48%;
    animation-delay: 2.9s, 2.4s;
    animation-duration: 24s, 5.8s;
}

.floating-icon-27 {
    top: 88%;
    right: 22%;
    animation-delay: 0.4s, 0.3s;
    animation-duration: 27s, 6.2s;
}

.floating-icon-28 {
    top: 92%;
    right: 35%;
    animation-delay: 3.1s, 2.6s;
    animation-duration: 25s, 5.5s;
}

.floating-icon-29 {
    top: 88%;
    left: 35%;
    animation-delay: 1.1s, 0.8s;
    animation-duration: 28s, 7.5s;
}

.floating-icon-30 {
    top: 95%;
    right: 8%;
    animation-delay: 2.4s, 2.0s;
    animation-duration: 26s, 6.5s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    20%, 80% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.15;
    }
}

.why-choose-central {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.elegant-why-choose.animated .why-choose-central {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: center;
}

.elegant-why-choose {
    --why-choose-primary: var(--primary-red);
    --why-choose-secondary: var(--secondary-color);
}

/* Use primary color RGB for shadow */
.elegant-why-choose {
    --shadow-color: rgba(var(--primary-rgb, 220, 38, 38), 0.06);
    --shadow-color-hover: rgba(var(--primary-rgb, 220, 38, 38), 0.15);
}

.why-choose-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0 auto;
    width: 160px;
    height: 160px;
}

.why-choose-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(-80px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    border: 4px solid var(--white);
}

.elegant-why-choose.animated .why-choose-image {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.why-choose-image-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 600;
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(-80px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.elegant-why-choose.animated .why-choose-image-placeholder {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.why-choose-boxes-wrapper {
    position: relative;
    z-index: 3;
    margin-top: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.why-choose-boxes {
    display: grid;
    gap: 30px;
    width: 100%;
    justify-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Grid layouts based on box count */
.why-choose-boxes-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.why-choose-boxes-2 {
    grid-template-columns: repeat(2, 1fr);
}

.why-choose-boxes-3 {
    grid-template-columns: repeat(3, 1fr);
}

.why-choose-boxes-4 {
    grid-template-columns: repeat(4, 1fr);
}

.why-choose-boxes-5 {
    grid-template-columns: repeat(3, 1fr);
}

.why-choose-boxes-5 .why-choose-box:nth-child(4) {
    grid-column: 1 / 2;
}

.why-choose-boxes-5 .why-choose-box:nth-child(5) {
    grid-column: 2 / 3;
}

.why-choose-boxes-6 {
    grid-template-columns: repeat(3, 1fr);
}

.why-choose-boxes-7 {
    grid-template-columns: repeat(4, 1fr);
}

.why-choose-boxes-7 .why-choose-box:nth-child(5) {
    grid-column: 1 / 2;
}

.why-choose-boxes-7 .why-choose-box:nth-child(6) {
    grid-column: 2 / 3;
}

.why-choose-boxes-7 .why-choose-box:nth-child(7) {
    grid-column: 3 / 4;
}

.why-choose-boxes-8 {
    grid-template-columns: repeat(4, 1fr);
}

.why-choose-box {
    background: var(--white);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: all 0.4s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 344px;
    height: 288px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Box animations - different directions */
.why-choose-box {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Boxes from bottom */
.why-choose-box:nth-child(1),
.why-choose-box:nth-child(4),
.why-choose-box:nth-child(7) {
    transform: translateY(50px);
}

/* Boxes from right */
.why-choose-box:nth-child(2),
.why-choose-box:nth-child(5),
.why-choose-box:nth-child(8) {
    transform: translateX(50px);
}

/* Boxes from left */
.why-choose-box:nth-child(3),
.why-choose-box:nth-child(6) {
    transform: translateX(-50px);
}

.elegant-why-choose.animated .why-choose-box {
    opacity: 1;
    transform: translate(0, 0);
}

.why-choose-box:nth-child(1) { transition-delay: 0.1s; }
.why-choose-box:nth-child(2) { transition-delay: 0.2s; }
.why-choose-box:nth-child(3) { transition-delay: 0.3s; }
.why-choose-box:nth-child(4) { transition-delay: 0.4s; }
.why-choose-box:nth-child(5) { transition-delay: 0.5s; }
.why-choose-box:nth-child(6) { transition-delay: 0.6s; }
.why-choose-box:nth-child(7) { transition-delay: 0.7s; }
.why-choose-box:nth-child(8) { transition-delay: 0.8s; }

.why-choose-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 6px 20px var(--shadow-color-hover);
    border-color: var(--why-choose-primary);
}

.why-choose-box:hover .why-choose-box-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.why-choose-box-icon {
    transition: transform 0.3s ease;
}

.why-choose-box-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.icon-emoji {
    display: inline-block;
    font-size: 48px;
    line-height: 1;
}

.why-choose-box-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

.why-choose-box-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4B5563;
    text-align: center;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .why-choose-boxes-4,
    .why-choose-boxes-7,
    .why-choose-boxes-8 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-choose-boxes-5,
    .why-choose-boxes-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .elegant-why-choose {
        padding: 60px 0;
    }
    
    .why-choose-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .why-choose-boxes-3,
    .why-choose-boxes-4,
    .why-choose-boxes-5,
    .why-choose-boxes-6,
    .why-choose-boxes-7,
    .why-choose-boxes-8 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-boxes-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .elegant-why-choose {
        padding: 50px 0;
        min-height: auto;
    }
    
    .why-choose-title {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .why-choose-image-wrapper {
        width: 130px;
        height: 130px;
    }
    
    .why-choose-image {
        width: 130px;
        height: 130px;
        transform: translateX(-65px) scale(0.9);
    }
    
    .elegant-why-choose.animated .why-choose-image {
        transform: translateX(0) scale(1);
    }
    
    .why-choose-image-placeholder {
        width: 130px;
        height: 130px;
        transform: translateX(-65px) scale(0.9);
    }
    
    .elegant-why-choose.animated .why-choose-image-placeholder {
        transform: translateX(0) scale(1);
    }
    
    .why-choose-boxes {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .why-choose-box {
        padding: 25px 20px;
        width: 100% !important;
        max-width: 100%;
        height: auto;
        min-height: 200px;
        /* Reset box animations on mobile - all from bottom */
        transform: translateY(30px) !important;
    }
    
    .elegant-why-choose.animated .why-choose-box {
        transform: translate(0, 0) !important;
    }
    
    .why-choose-box-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .icon-emoji {
        font-size: 40px;
    }
    
    .why-choose-box-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .why-choose-box-description {
        font-size: 14px;
    }
    
    .floating-icon {
        font-size: 50px;
    }
    
    /* Adjust fade animation for mobile */
    @keyframes fadeInOut {
        0%, 100% {
            opacity: 0;
        }
        20%, 80% {
            opacity: 0.1;
        }
        50% {
            opacity: 0.12;
        }
    }
}

@media (max-width: 576px) {
    .why-choose-title {
        font-size: 28px;
    }
    
    .why-choose-image-wrapper {
        width: 110px;
        height: 110px;
    }
    
    .why-choose-image {
        width: 110px;
        height: 110px;
        transform: translateX(-55px) scale(0.9);
    }
    
    .elegant-why-choose.animated .why-choose-image {
        transform: translateX(0) scale(1);
    }
    
    .why-choose-image-placeholder {
        width: 110px;
        height: 110px;
        transform: translateX(-55px) scale(0.9);
    }
    
    .elegant-why-choose.animated .why-choose-image-placeholder {
        transform: translateX(0) scale(1);
    }
    
    .why-choose-box {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    /* Reset box animations on mobile */
    .why-choose-box {
        transform: translateY(30px) !important;
    }
    
    .elegant-why-choose.animated .why-choose-box {
        transform: translate(0, 0) !important;
    }
    
    .why-choose-box {
        padding: 20px 18px;
    }
}

/* Dark Theme for Why Choose */
body.dark-theme .elegant-why-choose {
    background: #1a1a1a;
}

body.dark-theme .why-choose-title {
    color: #ffffff;
}

body.dark-theme .why-choose-box {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .why-choose-box-title {
    color: #ffffff;
}

body.dark-theme .why-choose-box-description {
    color: #d1d5db;
}

body.dark-theme .why-choose-image-placeholder {
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary-red);
}

/* Courses Section Styles */
.elegant-courses {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    width: 100%;
}

.elegant-courses .container {
    max-width: 1450px;
    width: 100%;
}

.courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 40px;
    gap: 20px;
}

.courses-filter-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.courses-filter-btn:hover {
    background: #333333;
    transform: translateY(-2px);
}

.courses-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

.courses-carousel-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.courses-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Side shadow gradients to indicate more content */
.courses-carousel::before,
.courses-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.courses-carousel::before {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7) 50%, transparent);
}

.courses-carousel::after {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7) 50%, transparent);
}

/* Show shadows only when there's content in that direction */
.courses-carousel.has-content-right::before {
    opacity: 1;
}

.courses-carousel.has-content-left::after {
    opacity: 1;
}

.courses-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    width: 100%;
}

.course-card {
    flex: 0 0 calc((100% - 72px) / 3.3);
    min-width: 0;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.course-card:hover {
    /* hover removed per design */
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.course-card-header {
    position: relative;
    width: 100%;
    min-height: 225px;
    height: 225px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
}

.course-card-header-img {
    width: 100%;
    height: 100%;
    display: block;
}

.course-card-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.course-card-logo {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #FFD700;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    font-family: 'Cairo', sans-serif;
}

.course-card-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    gap: 20px;
}

.course-card-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.course-card-header-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-card-header-text-white {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    line-height: 1.1;
}

.course-card-header-text-yellow {
    font-size: 32px;
    font-weight: 700;
    color: #FFD700;
    font-family: 'Cairo', sans-serif;
    line-height: 1.1;
}


.course-card-content {
    padding: 12px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-family: 'Cairo', sans-serif;
}

.course-card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.course-card-date-inline {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.course-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Cairo', sans-serif;
}

.course-card-description {
    font-size: 14px;
    color: #666666;
    margin: 0 0 8px 0;
    line-height: 1.6;
    flex: 1;
    font-family: 'Cairo', sans-serif;
}

.course-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.course-card-meta .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.course-card-date {
    font-size: 14px;
    color: #666666;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-card-date svg {
    color: #999999;
    flex-shrink: 0;
}

.course-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.course-card-btn {
    width: 100%;
    padding: 8px 22px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    border: 2px solid transparent;
}

.course-card-btn-outline {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.course-card-btn-outline:hover {
    background: #fff5f5;
    color: var(--primary-color);
}

.course-card-btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.course-card-btn-primary:hover {
    filter: brightness(0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background: transparent;
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.carousel-nav-btn svg {
    width: 48px;
    height: 48px;
    stroke-width: 3;
}

.carousel-nav-btn:hover {
    color: #b91c1c;
    transform: translateY(-50%) scale(1.2);
    filter: drop-shadow(0 6px 16px rgba(220, 38, 38, 0.4));
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.courses-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.pagination-dot:hover {
    background: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .courses-title {
        font-size: 24px;
    }
    
    .course-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .elegant-courses {
        padding: 40px 0;
    }
    
    .course-card {
        min-width: 260px;
        max-width: 260px;
    }
}

/* Dark theme support */
body.dark-theme .elegant-courses {
    background: #1f2937;
}

body.dark-theme .courses-title {
    color: #ffffff;
}

body.dark-theme .course-card {
    background: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .course-card-title {
    color: #ffffff;
}

body.dark-theme .course-card-price {
    color: #ffffff;
}

body.dark-theme .course-card-description {
    color: #d1d5db;
}

body.dark-theme .course-card-date {
    color: #d1d5db;
}

body.dark-theme .course-card-btn-outline {
    background: #374151;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-theme .course-card-btn-outline:hover {
    background: #4b5563;
}

/* Bundle Details Page Styles */
.bundle-details-page {
    min-height: 100vh;
    background: #ffffff;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
    max-width: 1490px;
    margin: 0 auto;
}

.bundle-details-header {
    background-color: var(--primary-color);
    padding: 30px 0;
    color: #ffffff;
    position: relative;
    padding: 30px 0;
    color: #ffffff;
    position: relative;
    padding-bottom: 14rem;
    padding-top: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: .375rem;
}

.bundle-details-header .container {
    position: relative;
    padding: 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
    color: #ffffff;
}

.bundle-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.4;
}

.bundle-subtitle {
    font-size: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.bundle-details-container {
    width: 55%;
}

/* .bundle-details-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
} */

.bundle-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    left: 0px;
    max-width: 42%;
}

.bundle-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bundle-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bundle-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cairo', sans-serif;
}

.bundle-lessons-list {
    border-radius: 16px;
}

.lessons-list-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #000000;
    font-family: 'Cairo', sans-serif;
}

.lesson-item-main {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
    font-size: 16px;
    color: #1f2937;
    font-family: 'Cairo', sans-serif;
}

.lesson-item-main:last-child {
    border-bottom: none;
}

.bundle-subscribe-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    font-family: 'Cairo', sans-serif;
}

.bundle-subscribe-btn:hover:not(:disabled) {
    filter: brightness(0.85);
    color: #ffffff;
    text-decoration: none;
}

.bundle-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    background: #ffffff;
    padding: 40px 20px;
    margin-top: 3%;
    border-radius: 5px;
}

.sidebar-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #000000;
    font-family: 'Cairo', sans-serif;
}

.sidebar-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

.lessons-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lessons-accordion .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #ffffff;
}

.lessons-accordion .accordion-header {
    margin: 0;
}

.lessons-accordion .accordion-button {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Cairo', sans-serif;
    position: relative;
}

.lessons-accordion .accordion-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    margin-right: auto;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.lessons-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.lessons-accordion .accordion-button.collapsed {
    background-color: var(--primary-color);
}

.lessons-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.lessons-accordion .accordion-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lessons-accordion .accordion-body {
    padding: 16px 20px;
    background-color: #ffffff;
}

.sidebar-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #374151;
    font-family: 'Cairo', sans-serif;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-lesson-item:last-child {
    border-bottom: none;
}

.sidebar-lesson-item-child {
    padding-right: 28px;
    font-size: 13px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bundle-details-header {
        padding-bottom: 16rem;
    }

    .bundle-main-content {
        max-width: 45% !important;
    }

    .bundle-details-container {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .bundle-details-header {
        padding-bottom: 18rem;
        padding-top: 4rem;
    }

    .bundle-main-content {
        max-width: 48% !important;
        padding: 0.875rem !important;
        position: absolute !important;
        left: 0 !important;
    }

    .bundle-details-container {
        width: 48%;
    }

    .bundle-title {
        font-size: 28px;
    }

    .bundle-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .bundle-details-page {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .bundle-details-header {
        padding: 2rem 1rem !important;
        padding-bottom: 1rem !important;
        border-radius: 0.5rem;
        position: relative !important;
    }

    .bundle-details-header .container {
        padding: 0 10px;
    }

    .bundle-main-content {
        position: relative !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        margin-top: 2rem;
        padding: 1rem !important;
        width: 100%;
    }

    .bundle-details-container {
        width: 100% !important;
        margin-top: 1rem;
    }

    .bundle-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .bundle-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }

    .back-link {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .back-link svg {
        width: 20px;
        height: 20px;
    }

    .bundle-price {
        font-size: 20px;
    }

    .bundle-subscribe-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .sidebar-title {
        font-size: 20px;
    }

    .sidebar-section {
        padding: 24px 16px;
        margin-top: 1.5rem;
    }

    .sidebar-description {
        font-size: 14px;
    }

    .lessons-list-title {
        font-size: 18px;
    }

    .lesson-item-main {
        font-size: 14px;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .lessons-accordion .accordion-button {
        padding: 14px 16px;
        font-size: 15px;
    }

    .sidebar-lesson-item {
        font-size: 13px;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .bundle-details-page {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .bundle-details-header {
        padding: 1.5rem 0.75rem !important;
    }

    .bundle-main-content {
        padding: 0.75rem !important;
        margin-top: 1.5rem;
    }

    .bundle-title {
        font-size: 20px;
    }

    .bundle-subtitle {
        font-size: 13px;
    }

    .bundle-price {
        font-size: 18px;
    }

    .sidebar-section {
        padding: 20px 12px;
    }

    .sidebar-title {
        font-size: 18px;
    }

    .lessons-list-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .lesson-item-main {
        font-size: 13px;
    }

    .lesson-item-main .col-12 {
        padding: 0;
    }

    .bundle-subscribe-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .lessons-accordion .accordion-button {
        padding: 12px 14px;
        font-size: 14px;
    }

    .sidebar-lesson-item {
        font-size: 12px;
        gap: 8px;
    }

    .sidebar-lesson-item svg {
        width: 14px;
        height: 14px;
    }
}

/* Dark Theme for Bundle Details */
body.dark-theme .bundle-details-page {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .content-wrapper[style*="background-color: #f3f4f6"] {
    background-color: #1a1a1a !important;
}

body.dark-theme .bundle-details-container {
    color: #ffffff;
}

body.dark-theme .bundle-main-content {
    background-color: #2d2d2d !important;
}

body.dark-theme .bundle-price {
    color: var(--primary-color);
}

body.dark-theme .bundle-lessons-list {
    background: #2d2d2d;
}

body.dark-theme .lesson-item-main {
    border-bottom-color: #404040;
    color: #d1d5db;
}

body.dark-theme .sidebar-section {
    background: #2d2d2d;
}

body.dark-theme .sidebar-title {
    color: #ffffff;
}

body.dark-theme .sidebar-description {
    color: #d1d5db;
}

body.dark-theme .lessons-accordion .accordion-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .lessons-accordion .accordion-collapse {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .lessons-accordion .accordion-body {
    background-color: #2d2d2d;
}

body.dark-theme .sidebar-lesson-item {
    color: #d1d5db;
    border-bottom-color: #404040;
}

body.dark-theme .sidebar-lesson-item-child {
    color: #9ca3af;
}

/* About Teacher Section Styles */
.about-teacher-section {
    padding: 80px 0 0 0;
    background: #ffffff;
    margin-top: 60px;
}

.about-teacher-container {
    position: relative;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
    min-height: 600px;
}

.about-teacher-left-panel {
    flex: 0 0 50%;
    background-color: #ffffff;
    padding: 20px 0px 0px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.about-teacher-right-panel {
    flex: 0 0 50%;
    background-color: var(--primary-color);
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 12px;
}

.about-teacher-description {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.about-teacher-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 35px 0;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

.about-teacher-features {
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-bottom: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-teacher-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex: 0 1 auto;
}

.about-teacher-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
    margin-bottom: 15px;
}

.feature-icon {
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    display: inline-block;
    font-style: normal;
    font-weight: normal;
}

.about-teacher-feature-text {
    font-size: 17px;
    font-weight: 500;
    color: #1f2937;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    white-space: nowrap;
}

.about-teacher-bottom-image-wrapper {
    position: absolute;
    bottom: 0;
    left: -30%;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-teacher-bottom-image {
    position: absolute;
    width: 25%;
    max-height: 65%;
    display: block;
    bottom: 0;
}

/* Responsive Design for About Teacher Section */
@media (max-width: 1200px) {
    .about-teacher-container {
        padding: 0 15px;
    }
    
    .about-teacher-left-panel {
        padding: 20px 0 0 25px;
    }
    
    .about-teacher-right-panel {
        padding: 50px 35px;
    }
    
    .about-teacher-description {
        font-size: 22px;
    }
    
    .about-teacher-title {
        font-size: 32px;
    }
    
    .about-teacher-features {
        gap: 40px;
    }
    
    .about-teacher-bottom-image-wrapper {
        left: 8%;
        width: 45%;
    }
}

@media (max-width: 992px) {
    .about-teacher-section {
        padding: 60px 0 0 0;
    }
    
    .about-teacher-container {
        flex-direction: column-reverse;
        min-height: auto;
        position: relative;
    }
    
    .about-teacher-left-panel {
        flex: 1;
        padding: 40px 30px;
    }
    
    .about-teacher-right-panel {
        flex: 1;
        padding: 40px 30px;
        min-height: 200px;
    }
    
    .about-teacher-features {
        flex-direction: row;
        gap: 30px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .about-teacher-bottom-image-wrapper {
        position: relative;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
        padding: 0;
    }
    
    .about-teacher-bottom-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .about-teacher-section {
        padding: 40px 0 0 0;
        margin-top: 40px;
    }
    
    .about-teacher-container {
        padding: 0 10px;
        min-height: auto;
    }
    
    .about-teacher-left-panel {
        padding: 30px 20px;
    }
    
    .about-teacher-description {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .about-teacher-right-panel {
        padding: 30px 20px;
    }
    
    .about-teacher-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-teacher-features {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .about-teacher-feature-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .about-teacher-feature-icon {
        margin-bottom: 0;
    }
    
    .about-teacher-bottom-image-wrapper {
        position: relative;
        left: auto;
        width: 100%;
        margin-top: 30px;
    }
    
    .about-teacher-bottom-image {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .about-teacher-section {
        padding: 30px 0 0 0;
    }
    
    .about-teacher-container {
        padding: 0 10px;
    }
    
    .about-teacher-left-panel {
        padding: 25px 15px;
    }
    
    .about-teacher-description {
        font-size: 16px;
    }
    
    .about-teacher-right-panel {
        padding: 25px 15px;
    }
    
    .about-teacher-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .about-teacher-features {
        gap: 15px;
    }
    
    .about-teacher-feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon {
        font-size: 20px;
    }
    
    .about-teacher-feature-text {
        font-size: 14px;
        white-space: normal;
    }
    
    .about-teacher-bottom-image-wrapper {
        margin-top: 20px;
    }
}

/* Dark Mode for About Teacher Section */
body.dark-theme .about-teacher-section {
    background: #1f2937;
}

body.dark-theme .about-teacher-left-panel {
    background-color: #1f2937;
}

body.dark-theme .about-teacher-right-panel {
    background-color: var(--primary-color);
}

body.dark-theme .about-teacher-title {
    color: #ffffff;
}

body.dark-theme .about-teacher-description {
    color: #ffffff;
}

body.dark-theme .about-teacher-feature-text {
    color: #d1d5db;
}

body.dark-theme .about-teacher-feature-icon {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

body.dark-theme .feature-icon {
    color: #ffffff;
}

/* Courses by Years Section */
.courses-by-years-section {
    padding: 100px 0;
    background: #ffffff;
}

.courses-by-years-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 40px 0;
    font-family: 'Cairo', sans-serif;
}

.courses-by-years-wrapper {
    position: relative;
}

.courses-by-years-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.courses-by-years-grid.courses-by-years-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 24px;
    padding: 0;
    cursor: grab;
}

.courses-by-years-grid.courses-by-years-slider:active {
    cursor: grabbing;
}

.courses-by-years-grid.courses-by-years-slider::-webkit-scrollbar {
    display: none;
}

.courses-by-years-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #556b2f;
    position: relative;
    min-height: 620px;
    scroll-snap-align: start;
}

.courses-by-years-card.card-all-blue {
    background: var(--secondary-color);
}

.courses-by-years-card-body {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.courses-by-years-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.courses-by-years-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.courses-by-years-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
}

/* .courses-by-years-card.card-all-blue .courses-by-years-card-footer {
    background: transparent;
} */

.courses-by-years-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    z-index: 2;
    pointer-events: none;
}

.courses-by-years-card:hover .courses-by-years-card-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.courses-by-years-card-overlay-content {
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
}

.courses-by-years-card-overlay-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    line-height: 1.4;
}

.courses-by-years-card-overlay-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Cairo', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.courses-by-years-card-overlay-button {
    display: inline-block;
    background: #ffffff;
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.courses-by-years-card-overlay-button:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles for Overlay */
@media (max-width: 1024px) {
    .courses-by-years-card-overlay {
        padding: 25px 15px;
    }
    
    .courses-by-years-card-overlay-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .courses-by-years-card-overlay-description {
        font-size: 13px;
        margin-bottom: 18px;
        -webkit-line-clamp: 2;
    }
    
    .courses-by-years-card-overlay-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .courses-by-years-card-overlay {
        padding: 20px 15px;
    }
    
    .courses-by-years-card-overlay-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .courses-by-years-card-overlay-description {
        font-size: 12px;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
    }
    
    .courses-by-years-card-overlay-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .courses-by-years-card-overlay {
        padding: 15px 10px;
    }
    
    .courses-by-years-card-overlay-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .courses-by-years-card-overlay-description {
        font-size: 11px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    
    .courses-by-years-card-overlay-button {
        padding: 8px 18px;
        font-size: 13px;
    }
}

.courses-by-years-card:hover .courses-by-years-card-image img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.courses-by-years-card-image img {
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .courses-by-years-section {
        padding: 80px 0;
    }
    
    .courses-by-years-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .courses-by-years-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-by-years-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
        min-height: 500px;
    }
    
    .courses-by-years-grid.courses-by-years-slider {
        gap: 16px;
    }
    
    .courses-by-years-card-footer {
        padding: 18px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .courses-by-years-section {
        padding: 60px 0;
    }
    
    .courses-by-years-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .courses-by-years-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .courses-by-years-card {
        flex: 0 0 100%;
        min-width: 100%;
        min-height: 400px;
    }
    
    .courses-by-years-grid.courses-by-years-slider {
        gap: 16px;
    }
    
    .courses-by-years-card-footer {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .courses-by-years-section {
        padding: 50px 0;
    }
    
    .courses-by-years-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .courses-by-years-grid {
        gap: 16px;
    }
    
    .courses-by-years-card {
        min-width: 280px;
        min-height: 350px;
    }
    
    .courses-by-years-card-footer {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .courses-by-years-card {
        min-width: 260px;
        min-height: 320px;
    }
    
    .courses-by-years-card-footer {
        padding: 12px;
        font-size: 14px;
    }
}

body.dark-theme .courses-by-years-section {
    background: #1f2937;
}

body.dark-theme .courses-by-years-title {
    color: #ffffff;
}

body.dark-theme .courses-by-years-card {
    background: #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .courses-by-years-card.card-all-blue {
    background: var(--secondary-color);
}

body.dark-theme .courses-by-years-card-footer {
    background: rgba(55, 65, 81, 0.9);
    color: #ffffff;
}

body.dark-theme .courses-by-years-card.card-all-blue .courses-by-years-card-footer {
    background: rgba(30, 58, 95, 0.8);
}

body.dark-theme .courses-by-years-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
}

body.dark-theme .courses-by-years-card-overlay-button {
    background: #ffffff;
    color: var(--secondary-color);
}

body.dark-theme .courses-by-years-card-overlay-button:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

body.dark-theme .courses-by-years-nav {
    background: #374151;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-theme .courses-by-years-nav:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Dark Theme for Scroll to Top */
body.dark-theme .scroll-to-top {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .scroll-to-top:hover {
    background: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

/* Responsive Design for Scroll to Top */
@media (max-width: 768px) {
    .scroll-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .scroll-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}