/* Variables & Reset */
:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary: #1e293b;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;

    /* Neutral */
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--surface-alt);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.py-small {
    padding: 60px 0;
}

.bg-light {
    background-color: #f1f5f9;
}

.text-white {
    color: #fff !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--surface-alt);
}

.btn-outline {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

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

.btn-outline.bg-white {
    border-color: white;
    color: white;
}

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

/* Glassmorphism */
.glassmorphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
}

/* Typography styles */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.badge-center {
    margin: 0 auto 16px auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.section-subtitle.align-left {
    margin: 0 0 40px 0;
    text-align: left;
}

/* Navigation */
.new-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 42px;
    background: var(--secondary);
    color: #ffffff;
    z-index: 1001;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
}

.new-topbar-container {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.new-topbar-spacer {
    flex: 1;
}

.new-topbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 42px;
}

.new-topbar-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    color: #ffffff;
    white-space: nowrap;
}

.new-topbar-links a:hover,
.new-topbar-links a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.new-topbar-cart {
    background: var(--primary);
    min-width: 84px;
    justify-content: center;
}

.new-topbar-cart:hover,
.new-topbar-cart:focus {
    background: var(--primary-hover) !important;
}

.navbar {
    position: fixed;
    top: 42px;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

.new-site-logo-img {
    display: block;
    width: 136px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon.light {
    background: white;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.1) 0%, transparent 40%);
}

.hero-bg-shapes .shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 100px;
    left: -50px;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.avatar-initial:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -12px;
}

/* Hero Image & Cards */
.hero-image {
    position: relative;
    padding: 20px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 16px;
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) translateY(-10px);
}

.image-wrapper img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.floating-card {
    position: absolute;
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card.top-left {
    top: -20px;
    left: -40px;
    animation-delay: 0s;
}

.floating-card.bottom-right {
    bottom: 20px;
    right: -30px;
    animation-delay: 3s;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.icon-box.blue {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
}

.card-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.card-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

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

/* Courses Section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 48px;
}

.glass-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.course-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.glass-card:hover .course-img-wrapper img {
    transform: scale(1.05);
}

.course-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: white;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.blue-cat {
    color: var(--accent);
}

.purple-cat {
    color: var(--primary);
}

.green-cat {
    color: var(--success);
}

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

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    flex-grow: 0;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
}

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

.instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

.instructor-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.course-link:hover {
    gap: 10px;
}

.center-btn {
    text-align: center;
}

/* Services & Certificates */
.service-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.service-image {
    padding: 16px;
    border-radius: var(--radius-lg);
    transform: rotate(-1deg);
    transition: var(--transition);
}

.service-image:hover {
    transform: rotate(0deg) translateY(-8px);
}

.service-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: block;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-item {
    padding: 28px;
    flex-direction: row;
}

.certificate-showcase {
    max-width: 760px;
    margin: 0 auto;
}

.certificate-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.certificate-card .course-img-wrapper {
    height: auto;
    min-height: 360px;
}

.certificate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.certificate-tags span {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}

/* CV Service Landing Page */
.cv-service-hero .hero-title {
    max-width: 680px;
}

.cv-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 520px;
}

.cv-proof-grid div {
    padding: 18px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.cv-proof-grid strong,
.cv-proof-grid span {
    display: block;
}

.cv-proof-grid strong {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

.cv-proof-grid span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cv-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.cv-split-section .service-image {
    max-width: 620px;
}

.cv-reverse {
    direction: ltr;
}

html[dir="rtl"] .cv-reverse {
    direction: rtl;
}

.cv-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.cv-process-card {
    padding: 28px;
}

.cv-process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 20px;
}

.cv-process-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cv-process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features Section */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

.grid-images {
    position: relative;
    height: 500px;
}

.rounded-corner {
    border-radius: var(--radius-lg);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.img-1 {
    position: absolute;
    width: 70%;
    top: 0;
    right: 0;
    z-index: 1;
}

.img-2 {
    position: absolute;
    width: 60%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 8px solid white;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    padding: 80px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: white;
    border: none;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

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

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Footer Section */
.footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-desc {
    color: #94a3b8;
    margin: 20px 0;
    max-width: 300px;
}

.footer-logo {
    display: inline-flex;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container,
    .features-container,
    .service-showcase {
        gap: 40px;
    }

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

    .cv-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .new-topbar {
        height: auto;
        min-height: 42px;
    }

    .new-topbar-container {
        min-height: 42px;
        padding: 0 12px;
    }

    .new-topbar-spacer {
        display: none;
    }

    .new-topbar-links {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .new-topbar-links::-webkit-scrollbar {
        display: none;
    }

    .new-topbar-links a {
        padding: 0 12px;
        font-size: 0.74rem;
    }

    .new-topbar-cart {
        min-width: 66px;
    }

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container,
    .features-container,
    .service-showcase,
    .certificate-card {
        grid-template-columns: 1fr;
    }

    .certificate-card .course-img-wrapper {
        min-height: 260px;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .cv-benefit-grid,
    .cv-process-grid,
    .cv-proof-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .img-1 {
        position: relative;
        width: 100%;
    }

    .img-2 {
        display: none;
    }

    .grid-images {
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-btn:hover {
    background: var(--surface-alt);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 1001;
    margin-top: 8px;
    flex-direction: column;
}

.dropdown-content.show {
    display: flex;
}

.dropdown-content a {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-content a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: 'Cairo', var(--font-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .logo {
    font-family: 'Cairo', var(--font-heading);
}

html[dir="rtl"] .avatar-initial {
    margin-left: 0;
    margin-right: -12px;
}

html[dir="rtl"] .avatar-initial:first-child {
    margin-right: 0;
}

html[dir="rtl"] .avatar-more {
    margin-left: 0;
    margin-right: -12px;
}

html[dir="rtl"] .hero-bg-shapes .shape-1 {
    right: auto;
    left: -100px;
}

html[dir="rtl"] .hero-bg-shapes .shape-2 {
    left: auto;
    right: -50px;
}

html[dir="rtl"] .section-subtitle.align-left {
    text-align: right;
}

html[dir="rtl"] .floating-card.top-left {
    left: auto;
    right: -40px;
}

html[dir="rtl"] .floating-card.bottom-right {
    right: auto;
    left: -30px;
}

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

html[dir="rtl"] .img-1 {
    right: auto;
    left: 0;
}

html[dir="rtl"] .img-2 {
    left: auto;
    right: 0;
}

html[dir="rtl"] .hero-image .image-wrapper {
    transform: rotate(-2deg);
}

html[dir="rtl"] .hero-image .image-wrapper:hover {
    transform: rotate(0deg) translateY(-10px);
}

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

html[dir="rtl"] .feature-icon {
    transform: scaleX(-1);
}

/* Utilities */
.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.font-sm {
    font-size: 0.875rem;
}

/* Category Tags Extra */
.warning-cat {
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-alt);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.page-num:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.page-dots {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 4px;
}

/* Authentication Page Styles */
body.auth-page {
    background: white;
    margin: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: white;
    max-width: 550px;
    overflow-y: auto;
}

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

.auth-lang {
    margin-right: 0;
}

html[dir="rtl"] .auth-lang {
    margin-left: 0;
    margin-right: auto;
}

.auth-form-container {
    margin: auto 0;
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
}

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

.input-wrapper svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

html[dir="rtl"] .input-wrapper svg {
    left: auto;
    right: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

html[dir="rtl"] .input-wrapper input {
    padding: 12px 42px 12px 14px;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-top: -4px;
    margin-bottom: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary);
    font-weight: 500;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Right Side Graphic */
.auth-right {
    flex: 1.5;
    background: url('../images/service-career-profile.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 60px;
}

@media (max-width: 900px) {
    .auth-right {
        display: none;
    }

    .auth-left {
        max-width: 100%;
        padding: 30px 24px;
        align-items: center;
    }

    .auth-header {
        width: 100%;
        max-width: 400px;
        margin-bottom: 60px;
    }
}

.auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(14, 165, 233, 0.7));
}

.auth-glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    position: relative;
    z-index: 10;
    color: white;
}

.auth-glass-panel h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 12px;
}

.auth-glass-panel p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Dashboard Styles */
.dashboard-navbar {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.profile-btn {
    padding: 6px;
    gap: 8px;
}

.dashboard-main {
    padding-top: 120px;
    padding-bottom: 60px;
}

.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.dash-title {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.dash-subtitle {
    color: var(--text-muted);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

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

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dash-section-header {
    margin-bottom: 24px;
}

.dash-section-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.dash-course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-course-card {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 30px;
}

.dash-course-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.dash-course-info {
    flex: 1;
}

.dash-course-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.dash-module {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.progress-bar-container {
    height: 8px;
    background: var(--surface-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}

.dash-side-col .glass-card {
    padding: 24px;
}

.activity-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.activity-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.activity-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.activity-content p {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--secondary);
}

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

.upcoming-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
}

.upcoming-item:last-child {
    margin-bottom: 0;
}

.upcoming-date {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.date-month {
    font-size: 0.85rem;
    font-weight: 700;
}

.date-day {
    font-size: 1.25rem;
    font-weight: 800;
}

.upcoming-info h4 {
    margin-bottom: 4px;
}

.upcoming-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-stat-card {
        padding: 16px;
        gap: 12px;
    }

    .dash-course-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dash-course-img {
        width: 100%;
        height: 160px;
    }

    .dash-course-action {
        width: 100%;
    }

    .dash-course-action .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* RTL Dashboard Handling */
html[dir="rtl"] .dash-course-card {
    text-align: right;
}

html[dir="rtl"] .progress-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .activity-item {
    text-align: right;
}

html[dir="rtl"] .upcoming-item {
    text-align: right;
}

html[dir="rtl"] .logo-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Profile Page */
.profile-page .dashboard-main {
    padding-top: 100px;
}

.profile-header {
    margin-bottom: 30px;
    padding: 0 10px;
}

.profile-layout {
    display: flex;
    gap: 30px;
}

.profile-sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 20px 0;
    height: fit-content;
}

.profile-nav {
    display: flex;
    flex-direction: column;
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

html[dir="rtl"] .profile-nav a {
    border-left: none;
    border-right: 3px solid transparent;
}

.profile-nav a:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.profile-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

html[dir="rtl"] .profile-nav a.active {
    border-left-color: transparent;
    border-right-color: var(--primary);
}

.profile-content {
    flex: 1;
}

.profile-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.avatar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-text {
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.text-warning {
    color: var(--warning);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.border-top {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 20px;
    }

    .profile-nav a {
        border-left: none !important;
        border-bottom: 3px solid transparent;
        padding: 12px 16px;
    }

    html[dir="rtl"] .profile-nav a {
        border-right: none !important;
    }

    .profile-nav a.active {
        border-bottom-color: var(--primary);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
