/* ===== ROOT VARIABLES ===== */
:root {
    --navy: #133E5D;
    --navy-light: #1a5277;
    --navy-dark: #0d2b40;
    --gold: #D29732;
    --gold-light: #e5ad4a;
    --gold-dark: #b57f28;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --gradient-gold: linear-gradient(135deg, #D29732 0%, #e5ad4a 100%);
    --gradient-navy: linear-gradient(135deg, #133E5D 0%, #1a5277 100%);
    --shadow-sm: 0 2px 8px rgba(19, 62, 93, 0.08);
    --shadow-md: 0 4px 20px rgba(19, 62, 93, 0.12);
    --shadow-lg: 0 8px 40px rgba(19, 62, 93, 0.16);
    --shadow-gold: 0 4px 20px rgba(210, 151, 50, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(210, 151, 50, 0.4);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* ===== NAVBAR ===== */
.glass-nav {
    background: rgba(19, 62, 93, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.glass-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 992px) {
    .glass-nav .navbar-collapse {
        flex-grow: 0;
    }
    
    .glass-nav .mobile-menu-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .glass-nav .navbar-nav {
        flex-direction: row;
        gap: 5px;
    }
}

.glass-nav.scrolled {
    background: rgba(19, 62, 93, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== USER DROPDOWN ===== */
.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 14px 6px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-dropdown-wrapper.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

[dir="rtl"] .user-dropdown-menu {
    left: auto;
    right: 0;
}

.user-dropdown-wrapper.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.user-avatar-lg {
    width: 45px;
    height: 45px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-fullname {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: #f3f4f6;
    color: var(--navy);
}

.user-dropdown-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.user-dropdown-item:hover i {
    color: var(--navy);
}

.user-dropdown-logout {
    margin: 0;
}

.logout-item {
    color: #dc2626 !important;
}

.logout-item:hover {
    background: #fef2f2 !important;
}

.logout-item i {
    color: #dc2626 !important;
}

/* Mobile User Dropdown */
@media (max-width: 991px) {
    .user-dropdown-toggle {
        padding: 6px 12px 6px 6px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .user-dropdown-wrapper.active .user-dropdown-menu {
        transform: translateY(0);
    }
    
    .user-dropdown-header {
        padding: 20px;
    }
    
    .user-avatar-lg {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .user-dropdown-item {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .user-dropdown-item i {
        font-size: 1.2rem;
    }
    
    /* Overlay for mobile */
    .user-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .user-dropdown-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-navy);
    min-height: 100vh;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: -100px;
    right: -100px;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--white);
    bottom: -50px;
    left: -50px;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gold);
    top: 50%;
    left: 30%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(210, 151, 50, 0.2);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(210, 151, 50, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title span {
    display: inline;
}

.text-gold {
    color: var(--gold) !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

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

.hero-main-visual {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(210, 151, 50, 0.3);
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 200px;
    filter: brightness(0) invert(1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
    animation: bounce 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    right: 0;
    animation-delay: 1.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 1.5rem;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== SECTION STYLES ===== */
.section-header {
    /* margin-bottom: 48px; */
}

.section-badge {
    display: inline-block;
    background: rgba(210, 151, 50, 0.1);
    color: var(--gold-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(210, 151, 50, 0.2);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--light-bg);
}

.about-image-wrapper {
    position: relative;
}

.about-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D29732' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-radius: var(--radius-lg);
    top: 20px;
    left: 20px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-card .icon-box {
    width: 80px;
    height: 80px;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.about-card .icon-box i {
    font-size: 2.5rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.about-card > p {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 24px;
}

.about-features {
    text-align: start;
}

.about-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(19, 62, 93, 0.1);
}

.about-features .feature-item:last-child {
    border-bottom: none;
}

.about-features .feature-item i {
    color: var(--gold);
    font-size: 1.2rem;
}

.about-benefits {
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.benefit-item h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--navy);
}

.benefit-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    background: var(--white);
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.course-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(210, 151, 50, 0.05) 0%, var(--white) 100%);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.course-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-navy);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.course-icon span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.course-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.course-card > p {
    margin-bottom: 24px;
}

.course-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
}

.course-features li i {
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ===== AI ASSISTANT SECTION ===== */
.assistant-section {
    background: var(--light-bg);
}

.assistant-visual {
    display: flex;
    justify-content: center;
}

.ai-interface {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.ai-header {
    background: var(--gradient-navy);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-avatar i {
    font-size: 1.5rem;
    color: var(--white);
}

.ai-header h5 {
    color: var(--white);
    margin: 0;
    font-size: 1rem;
}

.status-online {
    color: #4ade80;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}

.ai-messages {
    padding: 20px;
    min-height: 200px;
}

.message {
    margin-bottom: 16px;
    max-width: 85%;
}

.ai-message {
    background: var(--light-bg);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border-top-left-radius: 4px;
}

[dir="rtl"] .ai-message {
    border-radius: var(--radius-md);
    border-top-right-radius: 4px;
}

.user-message {
    background: var(--gradient-navy);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border-top-right-radius: 4px;
    margin-left: auto;
}

[dir="rtl"] .user-message {
    border-radius: var(--radius-md);
    border-top-left-radius: 4px;
    margin-left: 0;
    margin-right: auto;
}

.user-message p {
    color: var(--white);
}

.message p {
    margin: 0;
    font-size: 0.95rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--navy);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.assistant-features {
    margin-top: 32px;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-row .feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(210, 151, 50, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-row .feature-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.feature-row h5 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--navy);
}

.feature-row p {
    margin: 0;
    font-size: 0.9rem;
}

.assistant-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    background: var(--white);
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--gold);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--white);
    padding: 8px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-badge::before {
    content: '\F19A';
    font-family: 'bootstrap-icons';
    font-size: 0.9rem;
}

.pricing-header {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(180deg, rgba(210, 151, 50, 0.1) 0%, var(--white) 100%);
}

.plan-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.pricing-card.featured .plan-icon {
    background: var(--gradient-gold);
}

.plan-icon i {
    font-size: 2rem;
    color: var(--white);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-price {
    margin-top: 16px;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
}

.price-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-body {
    padding: 30px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.plan-features li:hover {
    background: rgba(210, 151, 50, 0.1);
}

.plan-features li i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.plan-features li i.bi-check-circle-fill {
    color: #10b981;
}

.plan-features li i.bi-x-circle {
    color: #d1d5db;
}

.plan-features li.disabled {
    opacity: 0.5;
}

/* ===== FEATURES GRID ===== */
.features-grid-section {
    background: var(--light-bg);
}

.feature-grid-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(210, 151, 50, 0.1) 0%, rgba(19, 62, 93, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.feature-icon-box i {
    font-size: 2rem;
    color: var(--gold);
}

.feature-grid-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-grid-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid rgba(19, 62, 93, 0.1);
}

.stars {
    margin-bottom: 16px;
}

.stars i {
    color: var(--gold);
    font-size: 1rem;
}

.testimonial-card > p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FINAL CTA ===== */
.final-cta-section {
    background: var(--gradient-navy);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    top: -200px;
    right: -100px;
}

.cta-wrapper {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-buttons .btn-light {
    color: var(--navy);
    font-weight: 600;
}

.cta-buttons .btn-light:hover {
    background: var(--light-bg);
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-link i {
    font-size: 1.5rem;
}

.contact-link i.bi-whatsapp {
    color: #25d366;
}

.contact-link i.bi-telegram {
    color: #0088cc;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all 0.3s ease;
}

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

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .hero-subtitle {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .section-header.text-start h2,
[dir="rtl"] .section-header.text-start p {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .about-pattern {
    left: auto;
    right: 20px;
}

/* ===== MOBILE SIDEBAR NAVIGATION - Enhanced Design ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #133E5D 0%, #0d2b40 100%);
        backdrop-filter: blur(20px);
        padding: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        display: flex !important;
        flex-direction: column;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        overflow: hidden;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        flex-shrink: 0;
        background: rgba(0,0,0,0.1);
    }
    
    .mobile-menu-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .mobile-menu-logo i {
        font-size: 1.3rem;
        color: var(--gold);
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .mobile-menu-close:hover {
        background: rgba(239, 68, 68, 0.3);
        color: #f87171;
    }
    
    /* Mobile Menu Scrollable Content */
    .mobile-menu-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* Mobile Nav Links */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 16px;
        gap: 4px;
        margin: 0 !important;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 16px !important;
        border-radius: 10px;
        font-size: 0.95rem;
        display: flex !important;
        align-items: center;
        gap: 12px;
        color: rgba(255,255,255,0.9) !important;
        transition: all 0.3s;
        position: relative;
        background: transparent;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: var(--gold);
        border-radius: 2px;
        transition: height 0.3s;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.08);
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        height: 50%;
    }
    
    .nav-link.active {
        background: rgba(210, 151, 50, 0.15);
        color: white !important;
    }
    
    .nav-link i {
        font-size: 1.1rem;
        color: var(--gold);
        width: 24px;
        text-align: center;
    }
    
    /* Mobile Nav Buttons - Two per row */
    .nav-buttons {
        padding: 16px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
        margin: 0 !important;
        flex-shrink: 0;
    }
    
    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .nav-buttons .btn-lang {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
    }
    
    .nav-buttons .btn-outline-light {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-buttons .btn-gold {
        grid-column: span 2;
    }
    
    /* Mobile Social Links */
    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
        flex-shrink: 0;
    }
    
    .mobile-social-links a {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1rem;
        transition: all 0.3s;
    }
    
    .mobile-social-links a:hover {
        background: var(--gold);
        transform: translateY(-2px);
    }
    
    /* Mobile Footer */
    .mobile-menu-footer {
        text-align: center;
        padding: 12px 16px;
        color: rgba(255,255,255,0.5);
        font-size: 0.8rem;
        border-top: 1px solid rgba(255,255,255,0.05);
        flex-shrink: 0;
    }
    
    /* Navbar Toggler */
    .navbar-toggler {
        z-index: 1060;
        position: relative;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler:hover {
        background: rgba(255,255,255,0.15);
    }
    
    .navbar-toggler[aria-expanded="true"] {
        background: transparent;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        opacity: 0;
    }
    
    /* Overlay when sidebar is open */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 300px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        margin-top: 48px;
    }
    
    .hero-main-visual {
        width: 280px;
        height: 280px;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .nav-buttons {
        margin-top: 24px;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .assistant-cta {
        flex-direction: column;
    }
    
    .assistant-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* CTA Section Mobile - Keep buttons in one row */
    .cta-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
    }
    
    .cta-buttons .btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .cta-buttons .btn i {
        display: inline-block;
    }
    
    /* Contact Options Mobile - Same row with equal width/height */
    .contact-options {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
    }
    
    .contact-link {
        flex: 1;
        justify-content: center;
        padding: 14px 12px;
        min-height: 50px;
        font-size: 0.85rem;
    }
    
    .contact-link i {
        font-size: 1.2rem;
    }
    
    .contact-link span {
        display: inline;
    }
}

/* Extra small screens - below 480px */
@media (max-width: 480px) {
    .cta-buttons {
        gap: 8px;
    }
    
    .cta-buttons .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .contact-options {
        gap: 8px;
    }
    
    .contact-link {
        padding: 12px 10px;
        min-height: 46px;
    }
    
    .contact-link i {
        font-size: 1.1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== AI MODAL STYLES ===== */
.ai-modal,
.subscribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-modal.active,
.subscribe-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.ai-modal-overlay,
.subscribe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.ai-modal-container {
    position: relative;
    width: 95%;
    max-width: 900px;
    height: 85vh;
    max-height: 700px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease;
}

.ai-modal-container.pro-modal {
    border: 3px solid var(--gold);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-modal-header {
    background: var(--gradient-navy);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ai-modal-header.pro-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold-dark) 100%);
}

.ai-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.ai-modal-title i {
    font-size: 1.5rem;
}

.pro-badge {
    background: var(--gold);
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ai-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ai-modal-body {
    flex: 1;
    position: relative;
    background: var(--light-bg);
    overflow: hidden;
}

.ai-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ai-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.ai-loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(19, 62, 93, 0.1);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-loading p {
    color: var(--navy);
    font-weight: 500;
}

.ai-modal-footer {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(210, 151, 50, 0.1) 0%, rgba(19, 62, 93, 0.05) 100%);
    border-top: 1px solid rgba(19, 62, 93, 0.1);
    flex-shrink: 0;
}

.upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upgrade-banner i {
    color: var(--gold);
    font-size: 1.2rem;
}

.upgrade-banner span {
    color: var(--navy);
    font-weight: 500;
}

/* ===== SUBSCRIBE MODAL ===== */
.subscribe-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease;
}

.subscribe-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(19, 62, 93, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

[dir="rtl"] .subscribe-modal-close {
    right: auto;
    left: 16px;
}

.subscribe-modal-close:hover {
    background: rgba(19, 62, 93, 0.2);
    transform: rotate(90deg);
}

.subscribe-modal-content {
    padding: 48px 32px 32px;
    text-align: center;
}

.subscribe-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(210, 151, 50, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(210, 151, 50, 0); }
}

.subscribe-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.subscribe-modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.subscribe-modal-content > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.subscribe-features {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.subscribe-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.subscribe-feature i {
    color: #10b981;
    font-size: 1.2rem;
}

.subscribe-feature span {
    color: var(--text-dark);
    font-weight: 500;
}

.subscribe-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-telegram {
    background: #0088cc;
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-telegram:hover {
    background: #0077b3;
    color: var(--white);
    transform: translateY(-2px);
}

.subscribe-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive for modals */
@media (max-width: 767px) {
    .ai-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .ai-modal-title span {
        font-size: 0.9rem;
    }
    
    .upgrade-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .subscribe-modal-container {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .subscribe-modal-content {
        padding: 40px 20px 24px;
    }
}

/* Body no scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ===== QALAM PLATFORM NEW STYLES ===== */

/* Brand Logo */
.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo i {
    font-size: 1.8rem;
    color: var(--gold);
}

.footer .brand-logo {
    color: var(--gold);
    margin-bottom: 16px;
}

/* Hero Icon Large */
.hero-icon-large {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon-large i {
    font-size: 8rem;
    color: var(--white);
    opacity: 0.9;
}

/* Categories Section */
.categories-section {
    background: var(--light-bg);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.category-card.view-all {
    background: var(--gradient-navy);
}

.category-card.view-all .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-card.view-all .category-icon i {
    color: var(--white);
}

.category-card.view-all h5,
.category-card.view-all .course-count {
    color: var(--white);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(210, 151, 50, 0.1) 0%, rgba(19, 62, 93, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.category-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.category-card h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.course-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* New Course Card */
.course-card-new {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card-new.featured {
    border: 2px solid var(--gold);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card-new:hover .course-image img {
    transform: scale(1.05);
}

.course-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--navy);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

[dir="rtl"] .course-category {
    right: auto;
    left: 12px;
}

.course-price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

[dir="rtl"] .course-price {
    left: auto;
    right: 12px;
}

.course-price.free {
    background: #10b981;
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.course-content > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-meta i {
    color: var(--gold);
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(19, 62, 93, 0.1);
}

.instructor-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.course-instructor span {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 500;
}

/* Why Choose Us Section */
.why-us-section {
    background: var(--white);
}

.why-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    height: 100%;
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.why-icon i {
    font-size: 2rem;
    color: var(--white);
}

.why-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.why-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Styles */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

[dir="rtl"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--gold);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-link-small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-link-small:hover {
    color: var(--gold);
}

/* Page Header */
.page-header {
    background: var(--gradient-navy);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    top: -200px;
    right: -100px;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: var(--gold);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
    float: right;
}

/* Courses Filter */
.courses-filter {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h6 {
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 6px 14px;
    background: var(--light-bg);
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--gold);
    color: var(--white);
}

/* Course Detail Page */
.course-detail-header {
    background: var(--gradient-navy);
    padding: 140px 0 60px;
}

.course-detail-info h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.course-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.course-detail-meta i {
    color: var(--gold);
}

.course-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.course-preview {
    position: relative;
}

.course-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.course-sidebar-content {
    padding: 24px;
}

.course-price-tag {
    text-align: center;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.price-free {
    color: #10b981;
}

/* Curriculum List */
.curriculum-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.curriculum-chapter {
    border-bottom: 1px solid rgba(19, 62, 93, 0.1);
}

.curriculum-chapter:last-child {
    border-bottom: none;
}

.chapter-header {
    padding: 20px;
    background: var(--light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-header h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--navy);
}

.chapter-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chapter-lessons {
    padding: 0;
    list-style: none;
    margin: 0;
}

.lesson-item {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(19, 62, 93, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: rgba(210, 151, 50, 0.05);
}

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

.lesson-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lesson-icon {
    width: 36px;
    height: 36px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lesson-icon i {
    color: var(--gold);
}

.lesson-icon.locked i {
    color: var(--text-muted);
}

.lesson-title {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lesson-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lesson-badge {
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.lesson-badge.free {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.lesson-badge.locked {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--light-bg);
    padding: 40px 0;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.auth-header {
    background: var(--gradient-navy);
    padding: 40px;
    text-align: center;
}

.auth-header .brand-logo {
    justify-content: center;
    margin-bottom: 16px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-body {
    padding: 40px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-bg);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--navy);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    border: 2px solid var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    height: auto;
}

.form-floating > .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(210, 151, 50, 0.1);
}

.form-floating > label {
    padding: 16px;
}

.social-login {
    margin-top: 24px;
    text-align: center;
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-bg);
}

.social-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-google {
    background: var(--white);
    border: 2px solid var(--light-bg);
    color: var(--text-dark);
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-google:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.05);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Forgot Password Icon */
.forgot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(210, 151, 50, 0.1) 0%, rgba(19, 62, 93, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.forgot-icon i {
    font-size: 2.5rem;
    color: var(--gold);
}

/* Text Colors */
.text-navy {
    color: var(--navy) !important;
}

.text-navy:hover {
    color: var(--gold) !important;
}

/* Contact Page */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info-card h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-info-card p {
    margin: 0;
}

.contact-info-card a {
    color: var(--gold);
    text-decoration: none;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

/* About Page */
.about-hero {
    background: var(--gradient-navy);
    padding: 140px 0 80px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.about-stat {
    text-align: center;
}

.about-stat .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
}

.about-stat .label {
    color: rgba(255, 255, 255, 0.8);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 250px;
    background: var(--gradient-navy);
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h5 {
    margin-bottom: 4px;
}

.team-info p {
    color: var(--gold);
    font-weight: 500;
    margin: 0;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--light-bg);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

[dir="rtl"] .search-box input {
    padding: 12px 50px 12px 20px;
}

.search-box input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 151, 50, 0.1);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

[dir="rtl"] .search-box i {
    left: auto;
    right: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-stats {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .about-stat .number {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .course-detail-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-card {
        margin: 0 16px;
    }
    
    .auth-header,
    .auth-body {
        padding: 30px 20px;
    }
}

/* ===== STAT BOX ===== */
.stat-box {
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.text-gold {
    color: var(--gold) !important;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(210, 151, 50, 0.4);
}

[dir="rtl"] .scroll-top-btn {
    left: 30px;
    right: auto;
}

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

.scroll-top-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-5px);
}

/* ===== UPDATED FOOTER LINKS ===== */
.footer-links li a i {
    font-size: 0.7rem;
    margin-left: 6px;
}

[dir="rtl"] .footer-links li a i {
    margin-left: 0;
    margin-right: 6px;
}


/* Profile Page Mobile Styles */
.profile-tabs-mobile {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-tabs-mobile::-webkit-scrollbar {
    display: none;
}

.profile-tabs-mobile button {
    white-space: nowrap;
}

.course-progress-card .course-thumb {
    width: 100%;
    max-width: 120px;
    height: 80px;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .course-progress-card .course-thumb {
        width: 100%;
        max-width: 100%;
        height: 150px;
    }
}
