/* =========================================================
   INSTAWORKS COURSES PAGE
   Palette matches the About page (violet / purple brand)
   MOBILE-FIRST RESPONSIVE DESIGN
========================================================= */

:root {
    --iw-purple: #6d28d9;
    --iw-purple-dark: #5b21b6;
    --iw-purple-strong: #7e22ce;
    --iw-purple-mid: #7c3aed;
    --iw-lavender: #c4b5fd;

    --iw-purple-light: #f3e8ff;
    --iw-purple-soft: #faf9ff;

    --iw-navy-1: #140a29;
    --iw-navy-2: #241148;
    --iw-navy-3: #3a1a68;

    --iw-text: #111827;
    --iw-muted: #6b7280;

    --iw-border: #e5e7eb;

    --iw-white: #ffffff;

    --iw-green: #008f5a;
    --iw-yellow: #f7c600;

    --iw-radius: 18px;
}


/* =========================================================
   PAGE
========================================================= */

.courses-page {
    width: 100%;
    background: #f8f9fc;
    color: var(--iw-text);
    overflow-x: hidden;
}


/* =========================================================
   ENTRANCE ANIMATIONS (pure CSS, no JS)
========================================================= */

@keyframes iwFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iwFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes iwPopIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iwOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.06); }
    66% { transform: translate(-18px, 14px) scale(0.96); }
}


/* =========================================================
   HERO (icon-free, animated, search bar built in)
========================================================= */

.courses-hero {
    position: relative;
    overflow: hidden;

    padding: 60px 7% 75px;

    background:
        radial-gradient(circle at 85% 10%, rgba(168, 85, 247, 0.28), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.2), transparent 40%),
        linear-gradient(135deg, var(--iw-navy-1) 0%, var(--iw-navy-2) 45%, var(--iw-navy-3) 100%);
}

.courses-hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
    animation: iwOrbDrift 10s ease-in-out infinite;
}

.hero-orb-1 {
    top: -60px;
    right: 12%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.55), transparent 70%);
}

.hero-orb-2 {
    bottom: -80px;
    left: 6%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
    animation-delay: 2.5s;
    animation-duration: 12s;
}

.hero-orb-3 {
    top: 30%;
    left: 45%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(126, 34, 206, 0.45), transparent 70%);
    animation-delay: 1.2s;
    animation-duration: 9s;
}

.courses-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    margin: 0 auto;
}

.courses-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 400px;
    gap: 40px;
    align-items: start;
}

.courses-hero-search-card {
    justify-self: end;
    width: 100%;
}

.courses-hero-content {
    animation: iwFadeUp 0.8s ease both;
}

.courses-hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 9px 18px;
    margin-bottom: 20px;

    border-radius: 999px;

    background: rgba(196, 181, 253, 0.14);
    border: 1px solid rgba(196, 181, 253, 0.32);

    color: #e9defc;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.courses-hero h1 {
    margin: 0;
    max-width: 650px;

    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 850;

    color: #ffffff;
}

.courses-hero h1 span {
    display: block;
    color: var(--iw-lavender);
}

.courses-hero p {
    max-width: 520px;

    margin-top: 18px;
    margin-bottom: 0;

    font-size: 17px;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   SEARCH — right-aligned card at the top of the hero
   3 filters: course name, category, level
========================================================= */

.courses-hero-search-card {
    animation: iwFadeUp 0.9s ease 0.15s both;
}

.course-search-form {
    padding: 22px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;

    box-shadow: 0 25px 60px rgba(10, 5, 25, 0.35);
}

.course-search-field {
    position: relative;
    width: 100%;
}

.course-search-field i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    color: var(--iw-purple);
    font-size: 21px;
}

.course-search-field input {
    width: 100%;
    height: 58px;

    padding: 0 20px 0 55px;

    border: 1px solid #dfe3eb;
    border-radius: 14px;

    outline: none;

    font-size: 16px;
    color: var(--iw-text);

    background: #ffffff;

    transition: 0.2s ease;
}

.course-search-field input:focus {
    border-color: var(--iw-purple);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
}

.course-search-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.course-category-field,
.course-level-field {
    position: relative;
}

.course-category-field i,
.course-level-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    color: var(--iw-purple);
    font-size: 15px;
    z-index: 2;
}

.course-category-field select,
.course-level-field select {
    width: 100%;
    height: 50px;

    padding-left: 40px;
    padding-right: 12px;

    border: 1px solid #dfe3eb;
    border-radius: 12px;

    background: white;
    color: #374151;

    font-size: 13.5px;
    outline: none;

    transition: border-color 0.2s ease;
}

.course-category-field select:focus,
.course-level-field select:focus {
    border-color: var(--iw-purple);
}

.course-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    margin-top: 14px;

    border: none;
    border-radius: 13px;

    background: linear-gradient(135deg, var(--iw-purple-mid), var(--iw-purple));
    color: white;

    font-weight: 700;
    font-size: 15px;

    padding: 15px 0;

    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.28);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.36);
}

.course-clear-wrapper {
    text-align: right;
    margin-top: 10px;
}

.course-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--iw-purple);
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CATEGORY
========================================================= */

.course-category-section {
    max-width: 1200px;
    margin: 55px auto 0;
    padding: 0 20px;
}

.course-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;

    animation: iwFadeUp 0.7s ease both;
}

.section-eyebrow {
    display: block;
    margin-bottom: 5px;

    color: var(--iw-purple);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.course-category-header h2,
.available-courses-header h2 {
    margin: 0;
    color: var(--iw-text);

    font-size: 27px;
    font-weight: 800;
}

.category-total {
    color: var(--iw-purple);
    font-size: 14px;
    font-weight: 700;
}

.course-category-tabs {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    padding: 5px 2px 12px;

    scrollbar-width: none;
}

.course-category-tabs::-webkit-scrollbar {
    display: none;
}

.course-category-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 72px;
    padding: 10px 14px;

    border: 1px solid #e1e5ec;
    border-radius: 16px;

    background: white;
    color: var(--iw-text);
    text-decoration: none;

    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;

    opacity: 0;
    animation: iwPopIn 0.5s ease forwards;
}

.course-category-tab:nth-child(1) { animation-delay: 0.05s; }
.course-category-tab:nth-child(2) { animation-delay: 0.11s; }
.course-category-tab:nth-child(3) { animation-delay: 0.17s; }
.course-category-tab:nth-child(4) { animation-delay: 0.23s; }
.course-category-tab:nth-child(5) { animation-delay: 0.29s; }
.course-category-tab:nth-child(6) { animation-delay: 0.35s; }
.course-category-tab:nth-child(n+7) { animation-delay: 0.4s; }

.course-category-tab:hover {
    border-color: #b889df;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(109, 40, 217, 0.14);
}

.course-category-tab.active {
    border: 1.5px solid var(--iw-purple);
    background: #faf6ff;
    color: var(--iw-purple);
}

.category-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--iw-purple-light);
    color: var(--iw-purple);

    font-size: 19px;
}

.category-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category-name {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.category-count {
    width: fit-content;
    padding: 2px 8px;

    border-radius: 999px;

    background: #f0e7f9;
    color: var(--iw-purple);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   AVAILABLE COURSES
========================================================= */

.available-courses-section {
    max-width: 1200px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.available-courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;

    animation: iwFadeUp 0.7s ease both;
}

.available-courses-header p {
    margin: 4px 0 0;
    color: var(--iw-muted);
    font-size: 14px;
}

.course-sort-button {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;

    min-width: 145px;

    padding: 12px 15px;

    border: 1px solid #dfe3eb;
    border-radius: 12px;

    background: white;
    color: #374151;

    font-size: 14px;
    font-weight: 600;

    transition: border-color 0.2s ease;
}

.course-sort-button:hover {
    border-color: var(--iw-purple);
}

.course-sort-button i {
    color: var(--iw-purple);
}


/* =========================================================
   COURSE GRID — 4 per row on desktop
========================================================= */

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

.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: white;
    border: 1px solid #e6e8ed;
    border-radius: 18px;

    box-shadow: 0 7px 25px rgba(15, 23, 42, 0.05);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

    opacity: 0;
    animation: iwFadeUp 0.6s ease forwards;
    animation-delay: calc(0.05s * var(--card-index, 0));
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(109, 40, 217, 0.25);
    box-shadow: 0 20px 42px rgba(109, 40, 217, 0.14);
}

.course-card-image-link {
    text-decoration: none;
    color: inherit;
}

.course-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: #f1eef8;
}

/* EXACT-FIT THUMBNAILS — fills the frame, no letterboxing */
.course-card-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;

    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image {
    transform: scale(1.06);
}

.course-card-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #ede4f8, #f8f5fc);

    color: var(--iw-purple);
    font-size: 50px;
}

.course-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 7px 10px;

    border-radius: 999px;

    background: #ffd83d;
    color: #3b2b00;

    font-size: 11px;
    font-weight: 800;
}

.course-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 18px;
}

.course-card-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;

    margin-bottom: 10px;
}

.course-category-badge,
.course-level-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.course-category-badge {
    background: var(--iw-purple-light);
    color: var(--iw-purple);
}

.course-level-badge {
    background: #f3f4f6;
    color: #5f6672;
}

.course-card-title {
    margin: 0 0 8px;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.course-card-title a {
    color: var(--iw-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-card-title a:hover {
    color: var(--iw-purple);
}

.course-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 42px;
    margin: 0 0 14px;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.6;
}

.course-card-information {
    display: flex;
    gap: 15px;

    margin-bottom: 13px;

    color: #687182;

    font-size: 12px;
    font-weight: 600;
}

.course-card-information span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-card-information i {
    color: var(--iw-purple);
}

.course-card-trainer {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-top: 10px;
    border-top: 1px solid #f0f1f3;

    color: #4b5563;

    font-size: 12px;
    font-weight: 600;
}

.trainer-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--iw-purple-light);
    color: var(--iw-purple);
}

.trainer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   COURSE FOOTER
========================================================= */

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding-top: 16px;
}

.course-price {
    display: flex;
    flex-direction: column;
}

.course-old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 11px;
}

.course-current-price {
    color: var(--iw-purple);
    font-size: 20px;
    font-weight: 800;
}

.course-current-price.free {
    color: var(--iw-green);
}

.course-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 9px 13px;

    border: 1px solid var(--iw-purple);
    border-radius: 10px;

    color: var(--iw-purple);
    background: white;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;

    transition: 0.2s ease;
}

.course-view-button:hover {
    background: var(--iw-purple);
    color: white;
    box-shadow: 0 10px 22px rgba(109, 40, 217, 0.28);
}


/* =========================================================
   EMPTY
========================================================= */

.course-empty-state {
    grid-column: 1 / -1;

    padding: 60px 20px;
    text-align: center;

    background: white;
    border-radius: 18px;
    border: 1px solid #e5e7eb;

    animation: iwFadeIn 0.5s ease both;
}

.course-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--iw-purple-light);
    color: var(--iw-purple);

    font-size: 25px;
}

.course-empty-state h3 {
    margin-bottom: 8px;
    font-weight: 800;
}

.course-empty-state p {
    color: var(--iw-muted);
    margin-bottom: 20px;
}

.course-empty-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;

    padding: 11px 18px;

    border-radius: 10px;

    background: var(--iw-purple);
    color: white;
    text-decoration: none;
    font-weight: 700;

    transition: transform 0.2s ease;
}

.course-empty-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

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

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px) {

    .courses-hero {
        padding: 50px 5% 60px;
    }

    .courses-hero h1 {
        font-size: 44px;
    }

    .courses-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .courses-hero-search-card {
        justify-self: stretch;
        max-width: 480px;
    }

    .course-category-section {
        margin-top: 55px;
    }

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

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    body {
        overflow-x: hidden;
    }

    .courses-page {
        background: #f8f9fc;
        padding-bottom: 75px;
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .courses-hero {
        padding: 34px 20px 55px;
    }

    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 {
        opacity: 0.4;
    }

    .courses-hero-badge {
        padding: 8px 13px;
        margin-bottom: 16px;
        font-size: 12px;
    }

    .courses-hero h1 {
        max-width: 100%;
        font-size: 34px;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .courses-hero p {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.55;
    }


    /* -----------------------------------------
       SEARCH
    ----------------------------------------- */

    .courses-hero-search-card {
        max-width: 100%;
    }

    .course-search-form {
        padding: 16px;
        border-radius: 18px;
    }

    .course-search-field input {
        height: 52px;
        padding-left: 48px;
        font-size: 14px;
    }

    .course-search-field i {
        left: 17px;
        font-size: 18px;
    }

    .course-search-filter-row {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 10px;
    }

    .course-category-field select,
    .course-level-field select {
        height: 46px;
        padding-left: 36px;
        font-size: 12px;
    }

    .course-category-field i,
    .course-level-field i {
        left: 12px;
        font-size: 13px;
    }

    .course-search-button {
        height: 48px;
        padding: 0;
        font-size: 14px;
    }

    .course-search-button i {
        font-size: 16px;
    }


    /* -----------------------------------------
       CATEGORY
    ----------------------------------------- */

    .course-category-section {
        margin-top: 32px;
        padding: 0 15px;
    }

    .course-category-header {
        align-items: flex-end;
        margin-bottom: 12px;
    }

    .course-category-header h2,
    .available-courses-header h2 {
        font-size: 22px;
    }

    .section-eyebrow {
        font-size: 10px;
        letter-spacing: 1.1px;
    }

    .category-total {
        display: none;
    }

    .course-category-tabs {
        margin-right: -15px;
        padding-right: 15px;
        gap: 9px;
    }

    .course-category-tab {
        min-width: 125px;
        min-height: 62px;
        padding: 8px 10px;
        border-radius: 14px;
        gap: 8px;
    }

    .category-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        border-radius: 10px;
        font-size: 16px;
    }

    .category-name {
        font-size: 12px;
    }

    .category-count {
        font-size: 10px;
    }


    /* -----------------------------------------
       AVAILABLE COURSES
    ----------------------------------------- */

    .available-courses-section {
        margin-top: 32px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .available-courses-header {
        align-items: flex-end;
        margin-bottom: 15px;
    }

    .available-courses-header p {
        font-size: 12px;
    }

    .course-sort-button {
        min-width: auto;
        padding: 9px 10px;
        font-size: 11px;
        gap: 6px;
    }


    /* -----------------------------------------
       MOBILE COURSE LIST
    ----------------------------------------- */

    .course-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .course-card {
        width: 100%;
        border-radius: 17px;
    }

    .course-card-body {
        padding: 15px;
    }

    .course-featured-badge {
        top: 10px;
        left: 10px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .course-card-meta {
        margin-bottom: 8px;
    }

    .course-category-badge,
    .course-level-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .course-card-title {
        margin-bottom: 7px;
        font-size: 19px;
    }

    .course-card-description {
        min-height: auto;
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.5;
    }

    .course-card-information {
        gap: 18px;
        margin-bottom: 11px;
        font-size: 11px;
    }

    .course-card-trainer {
        padding-top: 9px;
        font-size: 11px;
    }

    .trainer-icon {
        width: 25px;
        height: 25px;
    }

    .course-card-footer {
        padding-top: 13px;
    }

    .course-current-price {
        font-size: 19px;
    }

    .course-old-price {
        font-size: 10px;
    }

    .course-view-button {
        padding: 9px 12px;
        font-size: 11px;
        border-radius: 9px;
    }


    /* -----------------------------------------
       EMPTY
    ----------------------------------------- */

    .course-empty-state {
        padding: 45px 15px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .courses-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .courses-hero h1 {
        font-size: 30px;
    }

    .courses-hero p {
        font-size: 14px;
    }

    .course-category-section,
    .available-courses-section {
        padding-left: 12px;
        padding-right: 12px;
    }

}


/* =========================================================
   MOBILE COURSE CATEGORIES
   TEXT ONLY + HORIZONTAL SCROLL
========================================================= */

@media (max-width: 767px) {

    .course-category-section {
        width: 100%;
        overflow: hidden;
    }

    /* Horizontal category row */
    .course-category-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: calc(100vw - 15px) !important;
        max-width: none !important;

        gap: 10px !important;

        margin-right: -15px !important;

        padding: 5px 15px 15px 2px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scrollbar-width: none !important;

        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;

        white-space: nowrap !important;
    }

    .course-category-tabs::-webkit-scrollbar {
        display: none !important;
    }


    /* Category card */
    .course-category-tab {
        flex: 0 0 auto !important;

        width: auto !important;
        min-width: 125px !important;
        max-width: none !important;

        height: 58px !important;
        min-height: 58px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 8px 18px !important;

        border: 1px solid #e1e5ec !important;
        border-radius: 30px !important;

        background: #ffffff !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;
    }


    /* Active category */
    .course-category-tab.active {
        background: var(--iw-purple-light) !important;

        border: 2px solid var(--iw-purple) !important;

        color: var(--iw-purple) !important;

        box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1) !important;
    }


    /* HIDE CATEGORY ICONS */
    .course-category-tab .category-icon {
        display: none !important;
    }


    /* Category content */
    .course-category-tab .category-content {
        display: flex !important;
        flex-direction: row !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 8px !important;

        min-width: auto !important;

        overflow: visible !important;
    }


    /* Category name */
    .course-category-tab .category-name {
        display: block !important;

        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: nowrap !important;

        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;

        color: #172033 !important;
    }


    /* Category count */
    .course-category-tab .category-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-width: 22px !important;
        height: 22px !important;

        padding: 2px 7px !important;

        border-radius: 50% !important;

        background: #f0e7f9 !important;
        color: var(--iw-purple) !important;

        font-size: 11px !important;
        font-weight: 700 !important;
    }


    /* Active text */
    .course-category-tab.active .category-name {
        color: var(--iw-purple) !important;
    }


    /* Active count */
    .course-category-tab.active .category-count {
        background: #ffffff !important;
        color: var(--iw-purple) !important;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .courses-hero-content,
    .courses-hero-search-card,
    .course-category-header,
    .available-courses-header,
    .course-category-tab,
    .course-card,
    .course-empty-state,
    .hero-orb {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

} 

/* =========================================================
   AFFILIATED COLLEGE COURSE INFORMATION
   ========================================================= */

.college-course-info {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(108, 45, 170, 0.18);
    border-radius: 12px;
    background: rgba(108, 45, 170, 0.04);
}

.college-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.college-course-seats {
    margin-bottom: 10px;
}

.college-course-seats strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.college-course-seats span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #666;
}

.college-course-note {
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

.college-course-additional-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.college-course-additional-price span {
    font-size: 12px;
    color: #666;
}

.college-course-additional-price strong {
    font-size: 15px;
}

.college-course-additional-price small {
    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   AFFILIATED COLLEGE COURSE DETAIL
   ========================================================= */

.college-course-detail-info {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(108, 45, 170, 0.18);
    border-radius: 14px;
    background: rgba(108, 45, 170, 0.04);
}

.college-course-detail-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 12px;
}

.college-course-detail-seats strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.college-course-detail-seats span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.college-course-detail-info p {
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #666;
}

.college-course-detail-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.college-course-detail-price span {
    font-size: 13px;
    color: #666;
}

.college-course-detail-price strong {
    font-size: 17px;
}

.college-course-detail-price small {
    font-size: 11px;
    font-weight: 400;
}