:root {
    --accent: #22c55e;
    /* change this to your brand color */
    --line-h: 3px;
    --main-color: #b1935b;
    --secondary-color: #323232;
    --header-height: 80px;
    /* Define header height for reuse */
}

/* 1. Set the width of the entire scrollbar */
::-webkit-scrollbar {
    width: 10px;
    /* for vertical scrollbars */
    height: 10px;
    /* for horizontal scrollbars */
}

/* 2. Style the track (the background) */
::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 7px;
}

/* 3. Style the thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* 4. Style the thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

html,
body {
    overflow-x: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
}


.tabs-shell {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    position: relative;
    top: -75px;
}



.auth {
    background-image: linear-gradient(to bottom, #fffaf1, white);
}

/* Scrollable on small screens */
.tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs-scroll .nav {
    flex-wrap: nowrap;
    gap: 0.25rem;
    position: relative;
}

/* Clean, borderless links */
.nav-underline-clean .nav-link {
    border: 0 !important;
    background: transparent;
    border-radius: 5px 5px 0 0;
    color: var(--secondary-color);
    font-weight: 600;
    white-space: nowrap;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-underline-clean .nav-link:hover {
    color: white !important;
    background: var(--main-color);
    transform: translateY(-1px);
}

.nav-underline-clean .nav-link.active {
    color: white !important;
    background: var(--main-color);
}

/* Animated underline bar */
.active-line {
    position: absolute;
    left: 0;
    bottom: 0;
    height: var(--line-h);
    width: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg,
            var(--accent),
            color-mix(in srgb, var(--accent) 55%, #ffffff));
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

/* Subtle baseline */
.nav-baseline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--line-h);
    background: rgba(0, 0, 0, 0.06);
    border-radius: 9999px;
}

/* Content entrance */
.tab-pane {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.tab-pane.active.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background-color: #000000;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.rich-popover.popover {
    max-width: 250px;
    /* Constrain the size */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 2. Popover Header Styling (from data-bs-title) */
.rich-popover .popover-header {
    background-color: #f8f9fa;
    /* Light grey header */
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 15px;
}

/* 3. Popover Body Content Styling */
.rich-popover .popover-body {
    padding: 15px;
}

.rich-popover .popover-img {
    width: 100%;

    height: auto;
    border-radius: 4px;
    display: block;
}

.rich-popover .popover-title-override {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.rich-popover .popover-description {
    font-size: 0.85rem;
    color: #6c757d;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 0;
}

.card-popover-trigger {
    cursor: pointer;
    height: 480px;
}

.btn-details {
    position: absolute;
    bottom: 15px;
    right: 0;
    left: 0;
    /*width: 50% !important;*/
    margin: 5px 10px;
}

.nav-tabs .nav-link {
    color: var(--secondary-color);
}

.btn-profile:hover {
    text-decoration: underline !important;
    color: #a47d49
}

.fs-sm {
    font-size: 14px;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease;
}

.bg-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -ms-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
}

.course-catalog-section {
    background-color: #ffffff;
    /* White background for the section */
}

.section-title {
    color: var(--main-color);
    font-weight: 700;
}

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

a.text-white-50:hover {
    color: var(--main-color) !important;
}

.shadow-md {
    box-shadow: 1px 1px 9px rgb(231, 231, 231);
}

.page-title {
    position: absolute;
    padding-top: 120px;
    padding-bottom: 120px;
}

.profile-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.profile-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.upload-btn {
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
    right: 0;
    bottom: 2px;
}

.upload-btn:hover {
    background-color: #f0f0f0;
}

.section-details-course {
    position: relative !important;

}

.footer-logo {
    width: 50%;
}

@media (max-width: 991px) {
    .section-details-course {
        top: -3rem;
    }

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

    .footer-logo {
        width: 30%;
    }
}

@media (min-width: 992px) {

    .w-md-25,
    .w-lg-25 {
        width: 25% !important;
    }

    .order-lg-1 {
        order: 1 !important;
    }

    .order-lg-2 {
        order: 2 !important;
    }

    .w-lg-auto {
        width: auto !important;
    }

    .section-details-course {
        top: -20rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        top: calc(100% - 380px) !important;
        left: 50%;
        transform: translateX(-50%);
    }

    /* REMOVED .navbar-collapse and .navbar-nav styles from here */
}

.hero-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 10%;
    overflow: hidden;
}

.course-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.course-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}

.course-old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
    margin-left: 4px;
}

.course-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.enroll-btn {
    background-color: #b89461;
    color: white;
    border: none;
    width: 100%;
    padding: 6px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    background-color: #a47d49;
    color: white;
}

input {
    outline: none !important;
}

/* === Hero Content === */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.badge-premium {
    background-color: #17120c;
    color: var(--main-color);
    font-weight: 600;
    padding: 0.4rem 1rem;
    box-shadow: 2px 2px 5px var(--main-color);
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-title span {
    font-size: 2.5rem;
    color: var(--main-color);
}

.hero-description {
    font-size: 1.1rem;
    color: #ddd;
    margin: 1.5rem 0;
    line-height: 1.6;
}

/* === Buttons === */
.btn-gold {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #e7bb69;
    color: #fff;
}

.btn-outline-light {
    border: 1px solid var(--main-color) !important;
    color: var(--main-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

body {
    overflow-x: hidden;
}

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-section {
        padding: 0 5%;
    }

    .Course-img {
        width: 100% !important;
    }
}

.page-title h2 {
    color: #fff;
    text-transform: uppercase;
    font-size: 45px;
    font-weight: 700;
    line-height: 34px;
    z-index: 3;
    padding-top: 31px;
    padding-bottom: 31px;
    margin-bottom: 0;
}

.page-title.title-3 h2 {
    margin-bottom: 18px;
    padding-top: 0;
    padding-bottom: 0;
}

.page-title.title-3 .breadcrumb {
    padding-top: 0;
}

html[dir='rtl'] .breadcrumb-item+.breadcrumb-item::before {
    float: right;
    padding-right: unset;
    padding-left: var(--bs-breadcrumb-item-padding-x);
}

html[dir='rtl'] .breadcrumb-item+.breadcrumb-item {
    padding-right: 0.5rem;
}

/* === Navbar Styles === */
.navbar {
    z-index: 1030;
    /* Higher than most elements */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: #000;
    /* Transparent by default */
    padding: 0.5rem 0;
    min-height: var(--header-height);
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    /* REMOVED color: var(--main-color) !important; */
}

/* REMOVED .navbar.scrolled .nav-link */
/* REMOVED .navbar.scrolled .dropdown-menu */
/* REMOVED .navbar.scrolled .dropdown-item */
/* REMOVED .navbar.scrolled .dropdown-item:hover */


/* SVG icons in nav */
.nav-icon-svg-path {
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.navbar.scrolled .nav-icon-svg-path {
    fill: var(--main-color);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.social-icons a {
    background-color: #0e0e0e;
    border: 1px solid var(--main-color);
    transition: all ease-in-out 0.5s;
    border-radius: 5px;
    padding: 4px;
    text-decoration: none;
    display: inline-flex;
}

.social-icons a:hover {
    box-shadow: 1px 1px 7px var(--main-color);
}

.navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #c5a66b;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--secondary-color);
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--main-color);
}

.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--main-color) !important;
}

.btn-purchase {
    background-color: var(--main-color);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    /* Increased padding */
    transition: all ease-in-out 0.3s;
}

.btn-purchase:hover {
    background-color: #e2b96b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(177, 147, 91, 0.3);
}

/* === New Desktop Dropdown === */
.dropdown-menu {
    background-color: #000;
    /* Match unscrolled navbar */
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /*margin-top: 10px !important; !* Spacing from nav item *!*/
    padding: 0.75rem;
    min-width: 250px;
    /* Wider dropdown */
    transition: background-color 0.4s ease;
}

.dropdown-menu li a {
    text-align: left;
}

html[dir='rtl'] .dropdown-menu li a {
    text-align: right;
}

.navbar.scrolled .dropdown-menu {
    background-color: white;
}

.dropdown-item {
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar.scrolled .dropdown-item {
    color: var(--secondary-color);
}

.dropdown-item:hover {
    background-color: var(--main-color);
    color: white !important;
    /* Ensure text is white on hover */
}

.navbar.scrolled .dropdown-item:hover {
    color: white !important;
}

.dropdown-item-logout {
    color: #dc3545 !important;
    /* Red for logout */
}

.dropdown-item-logout:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

.dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .dropdown-divider {
    border-top-color: rgba(0, 0, 0, 0.1);
}


/* === Second Level Dropdown === */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

html[dir="rtl"] .dropdown-submenu .dropdown-menu {
    left: auto;
    right: 100%;
}


/* === Custom Burger Icon === */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent;
    z-index: 1050;
    /* Above fullpage menu */
}

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

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    transition: all 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}

.burger-line.line1 {
    top: 0;
}

.burger-line.line2 {
    top: 50%;
    transform: translateY(-50%);
}

.burger-line.line3 {
    bottom: 0;
}

/* Scrolled Burger Color */
.navbar.scrolled .burger-line {
    background-color: var(--secondary-color);
}

/* Active/Close State */
.navbar-toggler.active .burger-line {
    background-color: var(--secondary-color);
    /* Always dark when active */
}

.navbar-toggler.active .line1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler.active .line2 {
    opacity: 0;
}

.navbar-toggler.active .line3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.navbar-nav-mobile {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.navbar-nav-mobile .nav-item {
    width: 100%;
}

.navbar-nav-mobile .nav-link {
    font-size: 1.5rem;
    /* Larger text */
    font-weight: 600;
    color: var(--secondary-color) !important;
    padding: 1rem 0;
    display: block;
}

.navbar-nav-mobile .nav-link.active {
    color: var(--main-color) !important;
}

.badge-disc {
    display: inline-block;
    background-color: rgb(15 163 15);
    font-weight: 600;
    border: 1px solid rgb(15 163 15);
    font-size: 13px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.course-hero .breadcrumb .breadcrumb-item a {
    color: rgb(197, 197, 197);
    text-decoration: none;
}

.active {
    color: var(--main-color) !important;
}

.course-hero .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgb(197, 197, 197);
}

.badge-udemy {
    background: #ffe799;
    /* close to Udemy "Bestseller" */
    color: #1c1d1f;
    font-weight: 600;
}

.course-hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

.li-check {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    color: #343a40;
    /* text color close to screenshot */
}

.li-check::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.95rem;
    line-height: 1;
    color: #2b2f33;
    /* subtle dark tick */
    opacity: 0.9;
}

/* Nice box look */
.learn-box {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    background-color: #fff;
}

/* Optional: better readability on smaller screens */
@media (max-width: 575.98px) {
    .li-check {
        margin-bottom: 0.85rem;
    }
}

/* RTL support */
[dir="rtl"] .li-check {
    padding-left: 0;
    padding-right: 1.25rem;
}

[dir="rtl"] .li-check::before {
    left: auto;
    right: 0;
}

.table-wrap {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
    overflow: hidden;
}

.table thead th {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.accordion-button {
    background: transparent !important;
    font-weight: 600;
    color: #0f172a;
    box-shadow: none !important;
    padding: 0.5rem 0.75rem;
    border-radius: 5px !important;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.accordion-button:hover {
    background: rgba(13, 110, 253, 0.06);
    transform: translateY(-1px);
}

.accordion-button:not(.collapsed) {
    color: var(--main-color);
    background: #f8f9fa !important;
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px !important;
    overflow: hidden;
    background: #fff;
}

.accordion-body {
    background: white;
    color: #475569;
}

.badge-soft {
    background: var(--main-color);
    color: var(--main-color);
    border: 1px solid rgba(13, 110, 253, 0.18);
}

/* Make details cell breathe on narrow screens */
@media (max-width: 576px) {
    td[data-label] {
        display: block;
        padding-top: 0.25rem;
    }

    tr td:first-child {
        padding-top: 1rem;
    }

    tr td:last-child {
        padding-bottom: 1rem;
    }
}

.Course-img {
    width: 450px;
}

/* moving highlight */
.card-popover-trigger .card {
    background-image: linear-gradient(to bottom right, white, #ebebeb);
}

.move-loop {
    position: relative;
    overflow: hidden;
}

.move-loop::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 15%,
            transparent 30%);
    transform: translateX(-130%) skewX(-18deg);
    animation: badge-sheen 3.2s ease-in-out infinite;
    pointer-events: none;
}

.move-loop:hover::after {
    animation-play-state: paused;
}

@keyframes badge-sheen {
    0% {
        transform: translateX(-130%) skewX(-18deg);
        opacity: 0;
    }

    12% {
        opacity: 0.9;
    }

    55% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }

    100% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .badge-disc,
    .badge-disc::after {
        animation: none !important;
    }
}

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: 24px;
}

.promo {
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

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

.img-cover {
    height: 95vh;
}

.promo .content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promo small {
    opacity: 0.9;
    font-weight: 500;
}

.promo h2 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.2px;
    margin-top: 0.5rem;
}

/* Right form */
.brand-asterisk {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: #eee;
    color: var(--brand);
    font-weight: 700;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: #dee2e6;
    flex: 1;
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.provider-btn {
    border: 1px solid #e3e6ec;
    background: #fff;
    color: #111;
    font-weight: 600;
}

.provider-btn img {
    width: 18px;
    height: 18px;
}

.password-toggle {
    cursor: pointer;
    color: #6c757d;
}

@media (max-width: 1200px) {
    .promo {
        min-height: 320px;
        margin-bottom: 1.25rem;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .w-75 {
        width: 100%;
    }
}

.text-gold {
    color: var(--main-color) !important;
    font-weight: 600;
}

.ball1,
.ball2,
.ball3 {
    position: absolute;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    will-change: transform, filter;
    animation: bob 2s ease-in-out infinite, drift 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(177, 147, 91, 0.12));
}

/* original positions */
.ball1 {
    left: -48px;
    top: -8px;
    animation-delay: 0s, -3s;
}

.ball2 {
    right: 30%;
    bottom: -8px;
    animation-delay: 0.5s, -6s;
}

.ball3 {
    right: -48px;
    bottom: 40%;
    animation-delay: 1s, -9s;
}

/* vertical bob */
@keyframes bob {

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

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

/* subtle multi-axis wander */
@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(8px, -6px) rotate(1deg) scale(1.02);
    }

    50% {
        transform: translate(0, -10px) rotate(0deg) scale(1.01);
    }

    75% {
        transform: translate(-10px, 4px) rotate(-1deg) scale(1.02);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .ball1,
    .ball2,
    .ball3 {
        animation: none;
    }
}

.w-50 {
    width: 50%;
}

@media (max-width: 1200px) {
    .w-50 {
        width: 100%;
    }
}

@media (min-width: 767px) {
    .w-md-25 {
        width: 25%;
    }

    .phone-row {
        flex-direction: row !important;
    }
}

.contact-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.phone-row {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    gap: 8px;
    flex-direction: column;
}

.remove-btn {
    background-color: #ffe8e8;
    color: red;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.add-btn {
    background-color: #035523;
    color: white !important;
    border-radius: 8px;
    font-weight: 400;
    transition: all ease-in-out 1.5s;
}

.add-btn:hover {
    background-color: #068336;
}

.social-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.social-group input {
    flex: 1;
}

.supporting-documents {
    background-color: #fffde7;
    border-left: 4px solid #f1c40f;
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
}

.work-experience {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.certificate-card {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.certificate-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.certificate-body {
    padding: 1rem 2rem;
}

.download-btn {
    background-color: var(--main-color);
    color: #fff;
    font-weight: 500;
    border: none;
}

.download-btn:hover {
    background-color: #a27926;
    color: #fff;
}

.certificate-preview {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    overflow: hidden;
    margin-top: 1.5rem;
    background-color: #f9f9f9;
}

.certificate-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.video-container {
    height: 30rem;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.right-section {
    overflow: hidden;
    height: 95vh;
    right: 0;
    top: 10vh;
    bottom: 0;
    width: 33.4%;
}

.left-section {
    overflow: hidden;
    height: 95vh;
    left: 0;
    top: 9vh;
    bottom: 0;
    width: 33.4%;
}

.cursor-pointer {
    cursor: pointer;
}

.lesson-title:hover {
    background-color: rgb(240, 240, 240);
}

.rating-value {
    font-size: 4rem;
    margin-top: -45px;
    font-weight: bold;
}

.rating-text {
    font-weight: 600;
}

.progress {
    background-color: #d1d2e0;

    height: 10px;
}

.text-10px {
    font-size: 12px;
}

.progress-bar {
    background-color: #9194ac;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #212529;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-divider {
    border-top: 1px solid #d7d8da;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eee;
}

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

.lesson-title {
    display: flex;
    padding: 8px 12px;
    align-items: start;
    gap: 8px;
    transition: all ease-in-out 0.5s;
}

.-mt-2 {
    margin-top: -4px;
}

.lesson-time {
    color: #6c757d;
    font-size: 0.9rem;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.section-header {
    font-weight: 600;
}

.accordion-course .accordion-item {
    border: none;
    border-radius: 0 !important;
    border-bottom: 1px solid rgb(243, 243, 243);
    margin: 0 2px;
}

.accordion-course .accordion-button {
    padding: 1.5rem;
}

.list-group-item.active {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff !important;
}

html[dir="rtl"] .accordion-button::after {
    margin-left: unset;
    margin-right: auto;
}

.header-box {
    margin-top: 100px;
}

/* Fix for mobile accordion color */
.header .accordion-button:not(.collapsed) {
    background-color: unset !important;
}

.header .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.header .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

html[dir="rtl"] .footer-links {
    padding: unset;
}

/* ---------------------------------- */
/* New Mobile Sidebar Styles          */
/* ---------------------------------- */

/* 1. Main Menu Container */
.fullpage-menu {
    display: flex;
    /* Use flexbox to structure header, nav, footer */
    flex-direction: column;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic viewport height */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    /* White background */
    color: var(--secondary-color);
    /* Dark text */
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1040;
    /* Below navbar toggler, but above content */
    padding: 0;
    overflow: hidden;
    /* Prevent parent scroll */
}

/* FIX: Remove the "weird dotted border" on focus */
.fullpage-menu:focus {
    outline: none !important;
}

/* This is the class your JS will add to show the menu */
.fullpage-menu.open {
    transform: translateX(0);
}

/* 2. Sidebar Header (User Info) */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

.sidebar-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    /* Use accent color for border */
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
    overflow: hidden;
    /* Prevent long names from breaking layout */
}

.sidebar-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    /* Dark text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-handle {
    font-size: 0.9rem;
    color: #a0a0b8;
    /* Lighter text for handle */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Sidebar Navigation (Main List) */
.sidebar-nav {
    flex-grow: 1;
    /* This makes the nav fill available space */
    /*overflow-y: auto; !* Adds scrolling ONLY to the nav list *!*/
    padding: 30px 0;
}

/* Optional: Add a light border between items */
.navbar-nav-mobile .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar-nav-mobile .nav-item:last-child {
    border-bottom: none;
}


/* Divider for "Language" title */
.navbar-nav-mobile .nav-item-divider {
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a0a0b8;
    /* This matches the "LANGUAGES" text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    border-bottom: none;
    /* Dividers shouldn't have a border */
}

.nav-item-divider .nav-icon {
    margin-right: 15px;
    opacity: 0.7;
}

/* Styling for each link */
.navbar-nav-mobile .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--secondary-color);
    /* Dark text */
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 15px;
}

.navbar-nav-mobile .nav-link .nav-icon {
    flex-shrink: 0;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a0a0b8;
    /* Icon color */
    transition: color 0.2s ease;
}

/* SVG path inside the icon */
.nav-icon-svg-path-mobile {
    fill: #a0a0b8;
    /* Target the SVG path from your original code */
    transition: fill 0.2s ease;
}

.navbar-nav-mobile .nav-link .nav-text {
    flex-grow: 1;
    /* Text takes remaining space */
    font-size: 1rem;
    font-weight: 500;
}

.navbar-nav-mobile .nav-link .nav-arrow {
    font-size: 1.5rem;
    font-weight: 300;
    color: #a0a0b8;
    /* Arrow color */
    transition: transform 0.2s ease;
}

/* Active & Hover States */
.navbar-nav-mobile .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    /* Very light grey for hover */
    color: var(--main-color);
    /* Accent color on hover */
}

/* Active link style from your image */
.navbar-nav-mobile .nav-link.active {
    color: var(--main-color) !important;
    /* Accent color for active */
    background-color: transparent;
    /* No background */
}

.navbar-nav-mobile .nav-link.active .nav-icon,
.navbar-nav-mobile .nav-link:hover .nav-icon {
    color: var(--main-color);
}

.navbar-nav-mobile .nav-link.active .nav-icon .nav-icon-svg-path-mobile,
.navbar-nav-mobile .nav-link:hover .nav-icon .nav-icon-svg-path-mobile {
    fill: var(--main-color);
}

.navbar-nav-mobile .nav-link:hover .nav-arrow {
    transform: translateX(5px);
}

html[dir="rtl"] .navbar-nav-mobile .nav-link:hover .nav-arrow {
    transform: translateX(-5px);
}

/* 4. Sidebar Footer (Logout/Login) */
.sidebar-footer {
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Light top border */
    flex-shrink: 0;
    /* Prevent footer from shrinking */
}

.sidebar-footer .nav-link {
    font-weight: 500;
    /* Inherits all other styles from .navbar-nav-mobile .nav-link */
}

.badge-lock {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Top Left to avoid clashing with discount badge */
    z-index: 30;
    background-color: #B89461;
    /* Bootstrap danger color for "Locked" */
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.badge-lock:hover {
    transform: scale(1.1);
    background-color: #B89461;
}

html[dir="rtl"] .badge-lock {
    left: auto;
    right: 10px;
    /* Flip for Arabic if desired, or keep left */
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Default for LTR */
    background-color: #25D366;
    color: #FFF;
    width: 64px;
    height: 64px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b857;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 45px;
    height: 45px;
    fill: white;
}

/* Tooltip Label (Hidden by default, shown on hover) */
.whatsapp-label {
    position: absolute;
    right: 70px;
    /* LTR Position */
    background-color: #fff;
    color: #333;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    visibility: visible;
}

/* --- RTL Support --- */
/* Automatically flips position when <html dir="rtl"> is present */
html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .whatsapp-label {
    right: auto;
    left: 70px;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    html[dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-label {
        display: none;
        /* Hide label on mobile to save space */
    }
}

/* --- Floating Buy Now Button (Mobile Only) --- */
.mobile-buy-float {
    display: none;
    /* Hidden by default (desktop) */
}

@media (max-width: 991px) {
    .mobile-buy-float {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 20px;
        background-color: #0e0e0e;
        /* Solid dark/black background */
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-buy-float-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 600px;
        gap: 16px;
    }

    .mobile-buy-price-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .mobile-buy-price-current {
        font-family: serif;
        /* Using serif to match the '50' style */
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        line-height: 1;
        letter-spacing: -0.5px;
        text-shadow: 0 2px 10px rgba(197, 166, 107, 0.4);
    }

    .mobile-buy-price-old {
        font-size: 1rem;
        color: #888;
        text-decoration: line-through;
        opacity: 0.7;
    }

    .mobile-buy-lifetime {
        font-size: 0.85rem;
        color: #888;
        margin-top: 2px;
    }

    .mobile-buy-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex: 1;
        /* Take remaining space */
        max-width: 60%;
        /* Prevent it from squashing the price too much */
        padding: 14px 20px;
        background-color: #E3B151;
        /* Matching the mustard gold color */
        color: #000;
        /* Black text */
        font-size: 1rem;
        font-weight: 600;
        border: none;
        border-radius: 12px;
        /* Smooth rounded corners */
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .mobile-buy-btn:hover {
        background-color: #d4a342;
        transform: translateY(-1px);
        color: #000;
    }

    .mobile-buy-btn:active {
        transform: translateY(0);
    }

    .mobile-buy-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .mobile-buy-btn.disabled {
        background-color: #4a4a4a;
        color: #aaa;
        cursor: not-allowed;
        opacity: 1;
        pointer-events: none;
    }

    /* Add padding to page bottom to prevent content being hidden */
    body.has-mobile-buy-float {
        padding-bottom: 90px;
    }
}

/* SweetAlert Toast Mobile Overflow Fix */
@media (max-width: 576px) {
    div:where(.swal2-container) div:where(.swal2-popup) {
        max-width: 90vw !important;
        width: auto !important;
        font-size: 0.9rem !important;
        padding: 0.5em !important;
    }

    div:where(.swal2-container) {
        padding: 10px !important;
    }
}