/* =========================================================
   LEARNIFY — ALL COURSES
   Premium Teal Responsive Design
   Matches the supplied all-courses.html exactly
========================================================= */


/* =========================================================
   01. ROOT VARIABLES
========================================================= */

:root {

    --primary: #0F766E;
    --primary-dark: #115E59;
    --primary-light: #14B8A6;
    --primary-soft: #CCFBF1;

    --navy: #0F172A;

    --text: #334155;
    --muted: #64748B;
    --light-text: #94A3B8;

    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-soft: #F1F5F9;

    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    --shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 20px 50px rgba(15, 23, 42, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.25s ease;

    --header-height: 76px;

    font-family:
        "Inter",
        Arial,
        sans-serif;
}


/* =========================================================
   02. DARK MODE
========================================================= */

body.dark-mode {

    --background: #0B1120;
    --surface: #111827;
    --surface-soft: #1E293B;

    --navy: #F8FAFC;

    --text: #CBD5E1;
    --muted: #94A3B8;
    --light-text: #64748B;

    --border: #263244;
    --border-light: #1E293B;

    --primary-soft:
        rgba(20, 184, 166, 0.12);

    --shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.20);

    --shadow-md:
        0 10px 30px rgba(0, 0, 0, 0.28);

    --shadow-lg:
        0 20px 50px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   03. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    background:
        var(--background);

    color:
        var(--text);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;

    transition:
        background var(--transition),
        color var(--transition);
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   04. PAGE LOADER
========================================================= */

.page-loader {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 18px;

    background:
        var(--background);

    opacity: 1;

    visibility: visible;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.page-loader.hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}

.page-loader p {

    color:
        var(--muted);

    font-size: 14px;

    font-weight: 600;
}

.loader-spinner {

    width: 42px;

    height: 42px;

    border: 4px solid
        var(--primary-soft);

    border-top-color:
        var(--primary);

    border-radius: 50%;

    animation:
        loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   05. HEADER
========================================================= */

.courses-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    min-height:
        var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        12px 5%;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid var(--border);

    box-shadow:
        var(--shadow-sm);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);
}

body.dark-mode .courses-header {

    background:
        rgba(17, 24, 39, 0.94);
}


/* =========================================================
   06. HEADER LEFT
========================================================= */

.header-left {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


/* =========================================================
   07. BACK BUTTON
========================================================= */

.back-button {

    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--text);

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-sm);

    transition:
        all var(--transition);
}

.back-button:hover {

    color:
        #FFFFFF;

    background:
        var(--primary);

    border-color:
        var(--primary);

    transform:
        translateX(-2px);
}


/* =========================================================
   08. BRAND
========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;
}

.brand-icon {

    width: 43px;

    height: 43px;

    flex: 0 0 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius:
        var(--radius-md);

    box-shadow:
        0 8px 20px
        rgba(15, 118, 110, 0.20);
}

.brand-icon i {
    font-size: 19px;
}

.brand-text {

    display: flex;

    flex-direction: column;

    min-width: 0;
}

.brand-text strong {

    color:
        var(--navy);

    font-size: 18px;

    font-weight: 800;

    line-height: 1.1;
}

.brand-text span {

    margin-top: 3px;

    color:
        var(--light-text);

    font-size: 10px;

    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   09. HEADER RIGHT
========================================================= */

.header-right {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    min-width: 0;
}


/* =========================================================
   10. COURSE SEARCH
========================================================= */

.course-search {

    width: min(280px, 25vw);

    height: 42px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        0 13px;

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-sm);

    transition:
        all var(--transition);
}

.course-search:focus-within {

    background:
        var(--surface);

    border-color:
        var(--primary-light);

    box-shadow:
        0 0 0 3px
        var(--primary-soft);
}

.course-search > i {

    flex: 0 0 auto;

    color:
        var(--muted);

    font-size: 14px;
}

.course-search input {

    width: 100%;

    min-width: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color:
        var(--text);

    font-size: 13px;
}

.course-search input::placeholder {
    color: var(--light-text);
}


/* =========================================================
   11. MY COURSES BUTTON
========================================================= */

.my-courses-button {

    min-height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        0 15px;

    color:
        var(--primary);

    background:
        var(--primary-soft);

    border:
        1px solid transparent;

    border-radius:
        var(--radius-sm);

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        all var(--transition);
}

.my-courses-button:hover {

    color: #FFFFFF;

    background:
        var(--primary);

    transform:
        translateY(-1px);
}


/* =========================================================
   12. PROFILE BUTTON
========================================================= */

.profile-button {

    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;
}

.profile-avatar {

cursor: pointer;
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    border-radius: 50%;

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 5px 15px
        rgba(15, 118, 110, 0.18);
}


/* =========================================================
   13. MAIN
========================================================= */

.courses-main {
    width: 100%;
}


/* =========================================================
   14. HERO
========================================================= */

.courses-hero {

    position: relative;

    min-height: 300px;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding:
        55px 5%;

    background:
        linear-gradient(
            135deg,
            #0F766E 0%,
            #115E59 48%,
            #0F172A 100%
        );
}

.courses-hero::before {

    content: "";

    position: absolute;

    width: 320px;

    height: 320px;

    right: -100px;

    top: -150px;

    background:
        rgba(20, 184, 166, 0.16);

    border-radius: 50%;
}

.courses-hero::after {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    left: -90px;

    bottom: -130px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}


/* =========================================================
   15. HERO CONTENT
========================================================= */

.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    padding:
        7px 13px;

    color:
        #CCFBF1;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.3px;
}

.hero-content h1 {

    color: #FFFFFF;

    font-size:
        clamp(32px, 4.5vw, 52px);

    font-weight: 800;

    line-height: 1.12;

    letter-spacing: -1.5px;
}

.hero-content h1 span {

    display: block;

    color:
        #5EEAD4;
}

.hero-content p {

    max-width: 580px;

    margin:
        17px auto 0;

    color:
        rgba(255, 255, 255, 0.78);

    font-size:
        clamp(14px, 2vw, 16px);

    line-height: 1.7;
}


/* =========================================================
   16. COURSES SECTION
========================================================= */

.courses-section {

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding:
        55px 5% 70px;
}


/* =========================================================
   17. SECTION HEADING
========================================================= */

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.section-heading > div:first-child > span {

    display: block;

    margin-bottom: 5px;

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-heading h2 {

    color:
        var(--navy);

    font-size:
        clamp(25px, 3vw, 34px);

    font-weight: 800;

    line-height: 1.2;
}

.course-count {

    display: flex;

    align-items: baseline;

    gap: 6px;

    color:
        var(--muted);

    white-space: nowrap;
}

.course-count strong {

    color:
        var(--primary);

    font-size: 25px;

    font-weight: 800;
}

.course-count span {

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   18. COURSES GRID
========================================================= */

.courses-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    width: 100%;
}


/* =========================================================
   19. COURSE CARD
========================================================= */

.all-course-card {

    min-width: 0;

    overflow: hidden;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.all-course-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(20, 184, 166, 0.35);

    box-shadow:
        var(--shadow-lg);
}


/* =========================================================
   20. COURSE IMAGE
========================================================= */

.course-card-image {

    position: relative;

    height: 205px;

    overflow: hidden;

    background:
        var(--surface-soft);
}

.course-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.all-course-card:hover
.course-card-image img {

    transform:
        scale(1.05);
}


/* =========================================================
   21. COURSE IMAGE THEMES
========================================================= */

.course-card-image.ebay-course {

    background:
        linear-gradient(
            135deg,
            #E0F2FE,
            #CCFBF1
        );
}

.course-card-image.etsy-course {

    background:
        linear-gradient(
            135deg,
            #FCE7F3,
            #FDE68A
        );
}

.course-card-image.etsy-advanced-course {

    background:
        linear-gradient(
            135deg,
            #EDE9FE,
            #CCFBF1
        );
}


/* =========================================================
   22. COURSE BADGE
========================================================= */

.course-badge {

    position: absolute;

    top: 14px;

    left: 14px;

    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding:
        0 10px;

    color:
        #FFFFFF;

    background:
        rgba(15, 23, 42, 0.78);

    border-radius:
        999px;

    font-size: 10px;

    font-weight: 700;

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   23. WISHLIST
========================================================= */

.course-wishlist {

    position: absolute;

    top: 12px;

    right: 12px;

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--text);

    background:
        rgba(255, 255, 255, 0.94);

    border:
        1px solid
        rgba(255, 255, 255, 0.6);

    border-radius: 50%;

    box-shadow:
        0 5px 15px
        rgba(15, 23, 42, 0.10);

    transition:
        all var(--transition);

    z-index: 2;
}

.course-wishlist:hover {

    color:
        var(--danger);

    transform:
        scale(1.06);
}

.course-wishlist.active {

    color:
        var(--danger);
}

.course-wishlist i {
    font-size: 15px;
}


/* =========================================================
   24. COURSE BODY
========================================================= */

.all-course-body {

    padding:
        21px;
}


/* =========================================================
   25. COURSE PROVIDER
========================================================= */

.course-provider {

    display: inline-block;

    margin-bottom: 8px;

    color:
        var(--primary);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* =========================================================
   26. COURSE TITLE
========================================================= */

.course-title {

    min-height: 48px;

    color:
        var(--navy);

    font-size: 17px;

    font-weight: 800;

    line-height: 1.4;
}


/* =========================================================
   27. COURSE DESCRIPTION
========================================================= */

.course-description {

    display: -webkit-box;

    min-height: 44px;

    margin-top: 9px;

    overflow: hidden;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.75;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;
}


/* =========================================================
   28. COURSE RATING
========================================================= */

.course-rating {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 15px;
}

.rating-stars {

    color:
        #F59E0B;

    font-size: 13px;

    letter-spacing: 1px;
}

.rating-number {

    color:
        var(--navy);

    font-size: 12px;

    font-weight: 800;
}

.rating-count {

    color:
        var(--light-text);

    font-size: 11px;
}


/* =========================================================
   29. COURSE META
========================================================= */

.course-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 15px;

    padding-top: 14px;

    border-top:
        1px solid var(--border-light);
}

.course-meta-item {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        var(--muted);

    font-size: 11px;

    font-weight: 600;
}

.course-meta-item i {

    color:
        var(--primary);

    font-size: 12px;
}


/* =========================================================
   30. COURSE CARD FOOTER
========================================================= */

.course-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 19px;
}


/* =========================================================
   31. COURSE PRICE
========================================================= */

.course-price {

    color:
        var(--navy);

    font-size: 18px;

    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   32. VIEW COURSE BUTTON
========================================================= */

.view-course-button {

    min-height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        0 12px;

    color:
        #FFFFFF;

    background:
        var(--primary);

    border-radius:
        var(--radius-sm);

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        all var(--transition);
}

.view-course-button:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-1px);
}

.view-course-button i {
    font-size: 10px;
}


/* =========================================================
   33. NO RESULTS
========================================================= */

.no-results {

    padding:
        60px 20px;

    text-align: center;
}

.no-results[hidden] {
    display: none;
}

.no-results-icon {

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 17px;

    color:
        var(--primary);

    background:
        var(--primary-soft);

    border-radius: 50%;

    font-size: 24px;
}

.no-results h3 {

    color:
        var(--navy);

    font-size: 19px;

    font-weight: 800;
}

.no-results p {

    margin-top: 7px;

    color:
        var(--muted);

    font-size: 13px;
}


/* =========================================================
   34. COURSE DETAILS MODAL
========================================================= */

.course-modal {

    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(15, 23, 42, 0.72);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);

    animation:
        modalFadeIn 0.2s ease;
}

.course-modal[hidden] {
    display: none;
}

@keyframes modalFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   35. MODAL BOX
========================================================= */

.course-modal-box {

    position: relative;

    width: 100%;

    max-width: 900px;

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        0 30px 80px
        rgba(15, 23, 42, 0.28);

    animation:
        modalSlideUp 0.25s ease;
}

@keyframes modalSlideUp {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(0.98);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   36. MODAL CLOSE
========================================================= */

.modal-close {

    position: absolute;

    top: 15px;

    right: 15px;

    z-index: 10;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--text);

    background:
        rgba(255, 255, 255, 0.94);

    border:
        1px solid var(--border);

    border-radius: 50%;

    box-shadow:
        var(--shadow-sm);

    transition:
        all var(--transition);
}

.modal-close:hover {

    color: #FFFFFF;

    background:
        var(--danger);

    border-color:
        var(--danger);

    transform:
        rotate(5deg);
}


/* =========================================================
   37. MODAL COURSE IMAGE
========================================================= */

.modal-course-image {

    position: relative;

    height: 250px;

    overflow: hidden;

    background:
        var(--surface-soft);
}

.modal-course-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.modal-course-category {

    position: absolute;

    left: 22px;

    bottom: 18px;

    padding:
        7px 12px;

    color: #FFFFFF;

    background:
        rgba(15, 23, 42, 0.78);

    border-radius:
        999px;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   38. MODAL COURSE CONTENT
========================================================= */

.modal-course-content {

    padding:
        28px;
}

.modal-course-content h2 {

    padding-right: 45px;

    color:
        var(--navy);

    font-size:
        clamp(23px, 3vw, 31px);

    font-weight: 800;

    line-height: 1.25;
}

.modal-course-description {

    max-width: 760px;

    margin-top: 10px;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   39. MODAL COURSE META
========================================================= */

.modal-course-meta {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 24px;
}

.modal-course-meta > div {

    display: grid;

    grid-template-columns:
        auto 1fr;

    align-items: center;

    column-gap: 9px;

    row-gap: 2px;

    padding:
        13px;

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);
}

.modal-course-meta i {

    grid-row:
        span 2;

    color:
        var(--primary);

    font-size: 16px;
}

.modal-course-meta span {

    color:
        var(--light-text);

    font-size: 10px;

    font-weight: 600;
}

.modal-course-meta strong {

    color:
        var(--navy);

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   40. FEEDBACK SECTION
========================================================= */

.feedback-section {

    margin-top: 30px;

    padding-top: 27px;

    border-top:
        1px solid var(--border);
}


/* =========================================================
   41. FEEDBACK HEADING
========================================================= */

.feedback-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.feedback-heading > div:first-child > span {

    display: block;

    margin-bottom: 4px;

    color:
        var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}

.feedback-heading h3 {

    color:
        var(--navy);

    font-size: 20px;

    font-weight: 800;
}

.average-rating {

    min-width: 75px;

    padding:
        8px 12px;

    text-align: center;

    background:
        var(--primary-soft);

    border-radius:
        var(--radius-sm);
}

.average-rating strong {

    display: block;

    color:
        var(--primary);

    font-size: 20px;

    font-weight: 800;
}

.average-rating .rating-stars {

    font-size: 11px;

    line-height: 1;
}


/* =========================================================
   42. FEEDBACK LIST
========================================================= */

.feedback-list {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================================
   43. FEEDBACK CARD
========================================================= */

.feedback-card {

    padding:
        16px;

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);
}

.feedback-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;
}

.feedback-user {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.feedback-avatar {

    width: 36px;

    height: 36px;

    flex: 0 0 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #FFFFFF;

    background:
        var(--primary);

    border-radius: 50%;

    font-size: 12px;

    font-weight: 800;
}

.feedback-user strong {

    display: block;

    overflow: hidden;

    color:
        var(--navy);

    font-size: 12px;

    font-weight: 800;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.feedback-stars {

    margin-top: 2px;

    color:
        #F59E0B;

    font-size: 10px;

    letter-spacing: 1px;
}

.feedback-rating {

    color:
        var(--primary);

    font-size: 12px;

    font-weight: 800;
}

.feedback-comment {

    margin-top: 11px;

    color:
        var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   44. NO FEEDBACK
========================================================= */

.no-feedback {

    padding:
        28px 15px;

    text-align: center;

    background:
        var(--surface-soft);

    border:
        1px dashed var(--border);

    border-radius:
        var(--radius-md);
}

.no-feedback[hidden] {
    display: none;
}

.no-feedback i {

    color:
        var(--light-text);

    font-size: 25px;
}

.no-feedback p {

    margin-top: 8px;

    color:
        var(--muted);

    font-size: 12px;
}


/* =========================================================
   45. PURCHASE AREA
========================================================= */

.purchase-area {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 28px;

    padding:
        17px;

    background:
        linear-gradient(
            135deg,
            var(--primary-soft),
            var(--surface-soft)
        );

    border:
        1px solid
        rgba(20, 184, 166, 0.18);

    border-radius:
        var(--radius-md);
}

.feedback-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
/* =========================================================
   46. PURCHASE PRICE
========================================================= */

.purchase-price {

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.purchase-price span {

    color:
        var(--muted);

    font-size: 10px;

    font-weight: 600;
}

.purchase-price strong {

    color:
        var(--primary-dark);

    font-size: 25px;

    font-weight: 800;
}


/* =========================================================
   47. BUY NOW BUTTON
========================================================= */

.buy-now-button {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 22px;

    padding:
        0 20px;

    color:
        #FFFFFF;

    background:
        var(--primary);

    border-radius:
        var(--radius-sm);

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(15, 118, 110, 0.20);

    transition:
        all var(--transition);
}

.buy-now-button span {

    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.buy-now-button:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(15, 118, 110, 0.25);
}


/* =========================================================
   48. LOGIN REQUIRED MODAL
========================================================= */

.login-required-modal {

    position: fixed;

    inset: 0;

    z-index: 6000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(15, 23, 42, 0.72);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}

.login-required-modal[hidden] {
    display: none;
}

.login-required-box {

    position: relative;

    width: 100%;

    max-width: 430px;

    padding:
        34px;

    text-align: center;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow-lg);
}


/* =========================================================
   49. LOGIN REQUIRED ICON
========================================================= */

.login-required-icon {

    width: 64px;

    height: 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 17px;

    color:
        var(--primary);

    background:
        var(--primary-soft);

    border-radius: 50%;

    font-size: 23px;
}

.login-required-box h2 {

    color:
        var(--navy);

    font-size: 23px;

    font-weight: 800;
}

.login-required-box p {

    margin-top: 9px;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   50. LOGIN ACTIONS
========================================================= */

.login-required-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    margin-top: 24px;
}

.secondary-button,
.primary-button {

    min-height: 44px;

    padding:
        0 16px;

    border-radius:
        var(--radius-sm);

    font-size: 12px;

    font-weight: 800;

    transition:
        all var(--transition);
}

.secondary-button {

    color:
        var(--text);

    background:
        var(--surface-soft);

    border:
        1px solid var(--border);
}

.secondary-button:hover {

    background:
        var(--border);
}

.primary-button {

    color:
        #FFFFFF;

    background:
        var(--primary);
}

.primary-button:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-1px);
}


/* =========================================================
   51. TOAST
========================================================= */

.toast {

    position: fixed;

    left: 50%;

    bottom: 25px;

    z-index: 10000;

    max-width:
        calc(100% - 30px);

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        12px 17px;

    color:
        #FFFFFF;

    background:
        var(--navy);

    border-radius:
        var(--radius-sm);

    box-shadow:
        var(--shadow-lg);

    font-size: 12px;

    font-weight: 600;

    opacity: 0;

    visibility: hidden;

    transform:
        translate(-50%, 15px);

    transition:
        all 0.25s ease;
}

.toast.show {

    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%, 0);
}

.toast.success i {
    color:
        var(--success);
}

.toast.error i {
    color:
        var(--danger);
}


/* =========================================================
   52. SCROLLBAR
========================================================= */

.course-modal-box::-webkit-scrollbar {

    width: 7px;
}

.course-modal-box::-webkit-scrollbar-track {

    background:
        transparent;
}

.course-modal-box::-webkit-scrollbar-thumb {

    background:
        var(--border);

    border-radius:
        999px;
}


/* =========================================================
   53. TABLET — 1050px
========================================================= */

@media (max-width: 1050px) {

    .courses-header {

        padding:
            12px 3%;
    }

    .courses-section {

        padding-left: 3%;

        padding-right: 3%;
    }

    .courses-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .course-search {

        width: 220px;
    }

}


/* =========================================================
   54. TABLET — 850px
========================================================= */

@media (max-width: 850px) {

    .courses-header {

        gap: 12px;
    }

    .header-right {

        gap: 7px;
    }

    .course-search {

        width: 190px;
    }

    .my-courses-button {

        padding:
            0 11px;
    }

    .my-courses-button span {

        display: none;
    }

    .hero-content h1 {

        font-size: 38px;
    }

    .course-modal-box {

        max-width: 760px;
    }

}


/* =========================================================
   55. MOBILE — 700px
========================================================= */

@media (max-width: 700px) {

    :root {
        --header-height: auto;
    }

    .courses-header {

        position: relative;

        min-height: auto;

        display: grid;

        grid-template-columns: 1fr auto;

        gap: 12px;

        padding:
            11px 16px;
    }

    .header-left {

        min-width: 0;
    }

    .brand-text span {

        display: none;
    }

    .brand-text strong {

        font-size: 17px;
    }

    .brand-icon {

        width: 40px;

        height: 40px;

        flex-basis: 40px;
    }

    .back-button {

        width: 39px;

        height: 39px;

        flex-basis: 39px;
    }

    .header-right {

        min-width: auto;
    }

    .course-search {

        position: absolute;

        left: 16px;

        right: 16px;

        top: 68px;

        width: auto;

        height: 42px;

        background:
            var(--surface);

        z-index: 5;
    }

    .courses-header {

        padding-bottom: 65px;
    }

    .courses-hero {

        min-height: 265px;

        padding:
            45px 18px;
    }

    .hero-content h1 {

        font-size: 34px;

        letter-spacing: -1px;
    }

    .hero-content p {

        font-size: 13px;
    }

    .courses-section {

        padding:
            40px 16px 55px;
    }

    .section-heading {

        align-items: center;

        margin-bottom: 22px;
    }

    .courses-grid {

        grid-template-columns:
            1fr;

        gap: 18px;
    }

    .course-card-image {

        height: 220px;
    }

    .all-course-body {

        padding: 19px;
    }

    .course-title {

        min-height: auto;
    }

    .course-description {

        min-height: auto;
    }

    .course-modal {

        align-items: flex-end;

        padding: 0;
    }

    .course-modal-box {

        width: 100%;

        max-width: none;

        max-height:
            94vh;

        border-radius:
            24px 24px 0 0;
    }

    .modal-course-image {

        height: 190px;
    }

    .modal-course-content {

        padding:
            22px 18px 25px;
    }

    .modal-course-meta {

        grid-template-columns:
            1fr;

        gap: 8px;
    }

    .feedback-list {

        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   56. MOBILE — 550px
========================================================= */

@media (max-width: 550px) {

    .brand {

        gap: 8px;
    }

    .brand-icon {

        width: 38px;

        height: 38px;

        flex-basis: 38px;

        border-radius:
            var(--radius-sm);
    }

    .brand-text strong {

        font-size: 16px;
    }

    .my-courses-button {

        width: 39px;

        height: 39px;

        min-height: 39px;

        padding: 0;
    }

    .my-courses-button i {

        font-size: 14px;
    }

    .profile-button {

        width: 39px;

        height: 39px;
    }

    .profile-avatar {

        width: 35px;

        height: 35px;
    }

    .hero-content h1 {

        font-size: 30px;
    }

    .hero-content h1 span {

        display: inline;
    }

    .hero-badge {

        font-size: 10px;
    }

    .section-heading {

        align-items: flex-end;
    }

    .section-heading h2 {

        font-size: 25px;
    }

    .course-count strong {

        font-size: 21px;
    }

    .course-count span {

        font-size: 11px;
    }

    .course-card-image {

        height: 200px;
    }

    .course-card-footer {

        align-items: stretch;
    }

    .view-course-button {

        flex: 1;

        max-width: 150px;
    }

    .modal-course-image {

        height: 170px;
    }

    .modal-course-content h2 {

        font-size: 22px;
    }

    .feedback-heading {

        align-items: flex-end;
    }

    .feedback-heading h3 {

        font-size: 18px;
    }

    .purchase-area {

        align-items: stretch;

        flex-direction: column;

        gap: 14px;
    }

    .purchase-price {

        flex-direction: row;

        align-items: center;

        justify-content: space-between;
    }

    .purchase-price strong {

        font-size: 22px;
    }

    .buy-now-button {

        width: 100%;
    }

}


/* =========================================================
   57. SMALL MOBILE — 400px
========================================================= */

@media (max-width: 400px) {

    .courses-header {

        padding-left: 11px;

        padding-right: 11px;
    }

    .header-left {

        gap: 7px;
    }

    .brand-text strong {

        font-size: 15px;
    }

    .brand-icon {

        display: none;
    }

    .back-button {

        width: 36px;

        height: 36px;

        flex-basis: 36px;
    }

    .my-courses-button {

        width: 36px;

        height: 36px;
    }

    .profile-button {

        width: 36px;

        height: 36px;
    }

    .profile-avatar {

        width: 33px;

        height: 33px;
    }

    .course-search {

        left: 11px;

        right: 11px;
    }

    .courses-header {

        padding-bottom: 64px;
    }

    .courses-hero {

        padding:
            40px 14px;
    }

    .hero-content h1 {

        font-size: 27px;
    }

    .courses-section {

        padding-left: 12px;

        padding-right: 12px;
    }

    .section-heading {

        gap: 10px;
    }

    .section-heading h2 {

        font-size: 23px;
    }

    .course-count {

        gap: 3px;
    }

    .course-count strong {

        font-size: 19px;
    }

    .course-count span {

        font-size: 10px;
    }

    .all-course-body {

        padding: 16px;
    }

    .course-card-footer {

        flex-direction: column;

        align-items: stretch;
    }

    .view-course-button {

        width: 100%;

        max-width: none;
    }

    .course-modal {

        padding: 0;
    }

    .course-modal-box {

        max-height:
            96vh;

        border-radius:
            20px 20px 0 0;
    }

    .modal-course-content {

        padding:
            19px 14px 22px;
    }

    .modal-course-image {

        height: 150px;
    }

    .modal-close {

        width: 36px;

        height: 36px;

        top: 10px;

        right: 10px;
    }

    .login-required-box {

        padding:
            28px 18px;
    }

    .login-required-actions {

        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   58. ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {

    outline:
        3px solid
        rgba(20, 184, 166, 0.35);

    outline-offset: 2px;
}


/* =========================================================
   59. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}

/* =========================================================
   4. PAGE LOADER
   ========================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    background: var(--background);
    color: var(--text);

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color: #FFFFFF;
    font-size: 25px;
    font-weight: 800;

    box-shadow:
        0 12px 30px rgba(15, 118, 110, 0.25);
}

.loader-spinner {
    width: 28px;
    height: 28px;

    border: 3px solid var(--border);
    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

.page-loader p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


