/**
 * StudyFreely - Catalog Frontend
 *
 * File:
 * assets/css/sf-catalog.css
 */


/* =========================================================
   1. BASE
   ========================================================= */

.sf-catalog {
    --sf-cat-primary: #255884;
    --sf-cat-primary-dark: #1d4568;
    --sf-cat-primary-light: #eef4f8;

    --sf-cat-success: #93C63D;
    --sf-cat-success-dark: #79a72f;
    --sf-cat-success-light: #f4f9e9;

    --sf-cat-warning: #d97706;
    --sf-cat-warning-light: #fffbeb;

    --sf-cat-danger: #dc2626;
    --sf-cat-danger-light: #fef2f2;

    --sf-cat-purple: #255884;
    --sf-cat-purple-light: #eef4f8;

    --sf-cat-text: #1f1f1f;
    --sf-cat-muted: #666666;

    --sf-cat-border: #dfe5e9;
    --sf-cat-bg: #f7f9fa;
    --sf-cat-card: #ffffff;

    --sf-cat-radius: 14px;

    --sf-cat-shadow:
        0 5px 20px
        rgba(15, 23, 42, 0.07);

    width: 100%;

    color: var(--sf-cat-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


.sf-catalog *,
.sf-catalog *::before,
.sf-catalog *::after {
    box-sizing: border-box;
}


.sf-catalog__inner {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    padding:
        30px
        20px
        50px;
}


/* =========================================================
   2. BREADCRUMBS
   ========================================================= */

.sf-catalog-breadcrumbs {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;

    color: var(--sf-cat-muted);

    font-size: 12px;

    line-height: 1.5;
}


.sf-catalog-breadcrumbs a {
    color: var(--sf-cat-primary);

    text-decoration: none;
}


.sf-catalog-breadcrumbs a:hover {
    text-decoration: underline;
}


.sf-catalog-breadcrumbs strong {
    color: var(--sf-cat-text);
}


/* =========================================================
   3. HEADER
   ========================================================= */

.sf-catalog-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 22px;

    padding: 28px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius:
        var(--sf-cat-radius);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--sf-cat-primary-light)
        );

    box-shadow:
        var(--sf-cat-shadow);
}


.sf-catalog-header__content {
    min-width: 0;
}


.sf-catalog-eyebrow {
    display: block;

    margin-bottom: 6px;

    color:
        var(--sf-cat-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.sf-catalog-header h1 {
    margin:
        0
        0
        8px;

    font-size: 32px;

    line-height: 1.2;
}


.sf-catalog-header p {
    max-width: 720px;

    margin: 0;

    color:
        var(--sf-cat-muted);

    font-size: 14px;

    line-height: 1.7;
}


.sf-catalog-header__count {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    min-width: 110px;
    min-height: 90px;

    padding: 14px;

    border:
        1px solid
        #d8e4ee;

    border-radius: 12px;

    background:
        #ffffff;
}


.sf-catalog-header__count strong {
    font-size: 29px;

    line-height: 1;

    color:
        var(--sf-cat-primary);
}


.sf-catalog-header__count span {
    margin-top: 6px;

    color:
        var(--sf-cat-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}


/* =========================================================
   4. ACTIVE CONTEXT
   ========================================================= */

.sf-catalog-context {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 18px;

    padding: 12px 14px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius: 10px;

    background:
        var(--sf-cat-bg);

    font-size: 12px;
}


.sf-catalog-context__label {
    color:
        var(--sf-cat-muted);

    font-weight: 700;
}


.sf-catalog-context__item {
    padding:
        5px
        9px;

    border-radius: 999px;

    background:
        #ffffff;

    border:
        1px solid
        var(--sf-cat-border);

    color:
        var(--sf-cat-muted);
}


.sf-catalog-context__item strong {
    color:
        var(--sf-cat-text);
}


.sf-catalog-context__clear {
    margin-left: auto;

    color:
        var(--sf-cat-danger);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}


.sf-catalog-context__clear:hover {
    text-decoration: underline;
}


/* =========================================================
   5. TOOLBAR
   ========================================================= */

.sf-catalog-toolbar {
    margin-bottom: 22px;
}


.sf-catalog-search {
    display: flex;

    align-items: center;

    gap: 9px;

    max-width: 760px;
}


.sf-catalog-search input[type="search"] {
    width: 100%;

    min-height: 44px;

    padding:
        10px
        14px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius: 9px;

    background:
        #ffffff;

    color:
        var(--sf-cat-text);

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.sf-catalog-search input[type="search"]:focus {
    border-color:
        var(--sf-cat-primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 88, 132, 0.13);
}


.sf-catalog-search__button,
.sf-catalog-search__reset {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding:
        10px
        18px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


.sf-catalog-search__button {
    border:
        1px solid
        var(--sf-cat-success);

    background:
        var(--sf-cat-success);

    color: #ffffff;

    cursor: pointer;
}


.sf-catalog-search__button:hover {
    background:
        var(--sf-cat-success-dark);

    border-color:
        var(--sf-cat-success-dark);
}


.sf-catalog-search__reset {
    border:
        1px solid
        var(--sf-cat-border);

    background:
        #ffffff;

    color:
        var(--sf-cat-muted);
}


.sf-catalog-search__reset:hover {
    color:
        var(--sf-cat-primary);

    border-color:
        #b9ccdc;
}


/* =========================================================
   6. GRID
   ========================================================= */

.sf-catalog-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;

    align-items: stretch;
}


/* =========================================================
   7. CARD
   ========================================================= */

.sf-catalog-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius:
        var(--sf-cat-radius);

    background:
        var(--sf-cat-card);

    box-shadow:
        var(--sf-cat-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.sf-catalog-card:hover {
    transform:
        translateY(-4px);

    border-color:
        #cbd5e1;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.11);
}


.sf-catalog-card.is-locked {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fafafa
        );
}


/* =========================================================
   8. CARD TOP
   ========================================================= */

.sf-catalog-card__top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding:
        14px
        16px
        0;
}


.sf-catalog-card__parent {
    display: block;

    min-width: 0;

    overflow: hidden;

    color:
        var(--sf-cat-muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-overflow: ellipsis;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   9. ACCESS BADGES
   ========================================================= */

.sf-catalog-access-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding:
        5px
        9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.sf-catalog-access-badge--free {
    background:
        var(--sf-cat-success-light);

    color:
        var(--sf-cat-success);
}


.sf-catalog-access-badge--registered {
    background:
        var(--sf-cat-primary-light);

    color:
        var(--sf-cat-primary);
}


.sf-catalog-access-badge--unlocked {
    background:
        #ecfdf5;

    color:
        #047857;
}


.sf-catalog-access-badge--premium {
    background:
        var(--sf-cat-purple-light);

    color:
        var(--sf-cat-purple);
}


.sf-catalog-access-badge--login {
    background:
        var(--sf-cat-warning-light);

    color:
        var(--sf-cat-warning);
}


.sf-catalog-access-badge--locked,
.sf-catalog-access-badge--unavailable {
    background:
        var(--sf-cat-danger-light);

    color:
        var(--sf-cat-danger);
}


/* =========================================================
   10. CARD BODY
   ========================================================= */

.sf-catalog-card__body {
    flex: 1;

    padding:
        18px
        16px;
}


.sf-catalog-card__body h2 {
    margin:
        0
        0
        9px;

    font-size: 18px;

    line-height: 1.35;

    color:
        var(--sf-cat-text);
}


.sf-catalog-card__description {
    margin:
        0
        0
        18px;

    color:
        var(--sf-cat-muted);

    font-size: 12px;

    line-height: 1.65;
}


/* =========================================================
   11. CARD META
   ========================================================= */

.sf-catalog-card__meta {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;
}


.sf-catalog-card__meta > div {
    min-width: 0;

    padding:
        10px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius:
        8px;

    background:
        var(--sf-cat-bg);
}


.sf-catalog-card__meta span {
    display: block;

    margin-bottom: 3px;

    color:
        var(--sf-cat-muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.sf-catalog-card__meta strong {
    display: block;

    overflow-wrap: anywhere;

    color:
        var(--sf-cat-text);

    font-size: 13px;
}


/* =========================================================
   12. CARD FOOTER
   ========================================================= */

.sf-catalog-card__footer {
    display: flex;

    align-items: stretch;

    gap: 8px;

    padding:
        0
        16px
        16px;
}


/* =========================================================
   13. BUTTONS
   ========================================================= */

.sf-catalog-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        9px
        14px;

    border-radius: 8px;

    text-align: center;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.2;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.sf-catalog-button:hover {
    transform:
        translateY(-1px);
}


.sf-catalog-button--primary {
    flex: 1;

    border:
        1px solid
        var(--sf-cat-success);

    background:
        var(--sf-cat-success);

    color: #ffffff;
}


.sf-catalog-button--primary:hover {
    background:
        var(--sf-cat-success-dark);

    border-color:
        var(--sf-cat-success-dark);

    color: #ffffff;
}


.sf-catalog-button--secondary {
    border:
        1px solid
        var(--sf-cat-border);

    background:
        #ffffff;

    color:
        var(--sf-cat-text);
}


.sf-catalog-button--secondary:hover {
    border-color:
        #cbd5e1;

    background:
        var(--sf-cat-bg);

    color:
        var(--sf-cat-primary);
}


/* =========================================================
   14. LOCKED CARD SPECIAL STATE
   ========================================================= */

.sf-catalog-card.is-locked
.sf-catalog-card__body {
    position: relative;
}


.sf-catalog-card.is-locked
.sf-catalog-card__body::after {
    content: "";

    position: absolute;

    inset:
        auto
        16px
        0
        16px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--sf-cat-border),
            transparent
        );
}


/* =========================================================
   15. EMPTY STATE
   ========================================================= */

.sf-catalog-empty {
    max-width: 650px;

    margin:
        30px
        auto;

    padding:
        42px
        26px;

    text-align: center;

    border:
        1px dashed
        #cbd5e1;

    border-radius:
        var(--sf-cat-radius);

    background:
        var(--sf-cat-bg);
}


.sf-catalog-empty__icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin:
        0
        auto
        14px;

    border-radius: 50%;

    background:
        var(--sf-cat-primary-light);

    color:
        var(--sf-cat-primary);

    font-size: 22px;
    font-weight: 800;
}


.sf-catalog-empty h2 {
    margin:
        0
        0
        9px;

    font-size: 21px;
}


.sf-catalog-empty p {
    margin:
        0
        0
        18px;

    color:
        var(--sf-cat-muted);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   16. PAGINATION
   ========================================================= */

.sf-catalog-pagination {
    margin-top: 30px;
}


.sf-catalog-pagination ul {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.sf-catalog-pagination li {
    margin: 0;
}


.sf-catalog-pagination a,
.sf-catalog-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 39px;
    min-height: 39px;

    padding:
        7px
        11px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius: 8px;

    background:
        #ffffff;

    color:
        var(--sf-cat-text);

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


.sf-catalog-pagination a:hover {
    border-color:
        var(--sf-cat-primary);

    color:
        var(--sf-cat-primary);
}


.sf-catalog-pagination
.current {
    border-color:
        var(--sf-cat-primary);

    background:
        var(--sf-cat-primary);

    color:
        #ffffff;
}


/* =========================================================
   17. ACCESSIBILITY
   ========================================================= */

.sf-catalog a:focus-visible,
.sf-catalog button:focus-visible,
.sf-catalog input:focus-visible {
    outline:
        3px solid
        rgba(147, 198, 61, 0.24);

    outline-offset: 2px;
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media
(max-width: 980px) {

    .sf-catalog-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .sf-catalog-header h1 {
        font-size: 28px;
    }
}


/* =========================================================
   19. MOBILE
   ========================================================= */

@media
(max-width: 680px) {

    .sf-catalog__inner {
        padding:
            18px
            10px
            35px;
    }


    .sf-catalog-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px;
    }


    .sf-catalog-header h1 {
        font-size: 25px;
    }


    .sf-catalog-header__count {
        width: 100%;

        min-height: auto;

        flex-direction: row;

        gap: 8px;
    }


    .sf-catalog-header__count strong {
        font-size: 22px;
    }


    .sf-catalog-header__count span {
        margin: 0;
    }


    .sf-catalog-context {
        align-items: flex-start;

        flex-direction: column;
    }


    .sf-catalog-context__clear {
        margin-left: 0;
    }


    .sf-catalog-search {
        align-items: stretch;

        flex-direction: column;
    }


    .sf-catalog-search__button,
    .sf-catalog-search__reset {
        width: 100%;
    }


    .sf-catalog-grid {
        grid-template-columns: 1fr;
    }


    .sf-catalog-card__footer {
        flex-direction: column;
    }


    .sf-catalog-button {
        width: 100%;
    }
}


/* =========================================================
   20. SMALL MOBILE
   ========================================================= */

@media
(max-width: 420px) {

    .sf-catalog-header {
        padding: 17px;
    }


    .sf-catalog-card__meta {
        grid-template-columns: 1fr;
    }


    .sf-catalog-card__top {
        align-items: flex-start;

        flex-direction: column;
    }


    .sf-catalog-access-badge {
        align-self: flex-start;
    }
}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

@media
(prefers-reduced-motion: reduce) {

    .sf-catalog *,
    .sf-catalog *::before,
    .sf-catalog *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}



/* =========================================================
   22. LOADING / PROCESSING STATES
   ========================================================= */

.sf-catalog-card.is-processing {
    opacity: 0.72;

    pointer-events: none;
}


.sf-catalog-button.is-processing {
    position: relative;

    color: transparent !important;
}


.sf-catalog-button.is-processing::after {
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    border:
        2px solid
        rgba(255, 255, 255, 0.45);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        sfCatalogSpin
        0.7s linear infinite;
}


.sf-catalog-search.is-loading {
    opacity: 0.75;
}


.sf-catalog-pagination a.is-loading {
    opacity: 0.6;

    pointer-events: none;
}


@keyframes sfCatalogSpin {

    to {
        transform:
            rotate(360deg);
    }
}




/* =========================================================
   23. SINGLE CATALOG PAGE
   Exam / Course / Question Bank
   ========================================================= */

.sf-single-catalog {
    background: #f7f9fa;
}


.sf-single-catalog .sf-catalog__inner {
    padding-top: 28px;
}


/* =========================================================
   24. SINGLE PAGE HERO
   ========================================================= */

.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header {
    position: relative;

    overflow: hidden;

    padding: 34px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #eef4f8 100%
        );
}


.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -90px;
    top: -110px;

    border-radius: 50%;

    background:
        rgba(37, 88, 132, 0.08);

    pointer-events: none;
}


.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header
.sf-catalog-header__content {
    position: relative;

    z-index: 2;

    max-width: 800px;
}


.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header h1 {
    font-size: 38px;

    line-height: 1.15;

    letter-spacing: -0.03em;
}


.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header p {
    max-width: 760px;

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   25. SINGLE ACCESS BOX
   ========================================================= */

.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header
.sf-catalog-header__count {
    position: relative;

    z-index: 2;

    min-width: 150px;

    background:
        rgba(255, 255, 255, 0.92);

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.07);
}


.sf-single-catalog > .sf-catalog__inner >
.sf-catalog-header
.sf-catalog-access-badge {
    font-size: 11px;

    padding:
        8px
        12px;
}


/* =========================================================
   26. SINGLE OVERVIEW AREA
   ========================================================= */

.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    margin-bottom: 34px;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid >
.sf-catalog-card {
    min-height: 100%;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid
.sf-catalog-card__body {
    padding: 24px;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid
.sf-catalog-card__body > h2 {
    margin-bottom: 18px;

    font-size: 21px;
}


/* =========================================================
   27. OVERVIEW META
   ========================================================= */

.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid
.sf-catalog-card__meta {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid
.sf-catalog-card__meta > div {
    padding: 14px;

    background: #f7f9fa;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid
.sf-catalog-card__meta span {
    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 700;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-grid
.sf-catalog-card__meta strong {
    font-size: 15px;

    line-height: 1.4;
}


/* =========================================================
   28. SINGLE PAGE SECTIONS
   ========================================================= */

.sf-single-catalog
.sf-catalog-toolbar {
    margin-top: 34px;

    margin-bottom: 42px;
}


.sf-single-catalog
.sf-catalog-toolbar >
.sf-catalog-header {
    margin-bottom: 20px;

    padding: 22px 24px;

    box-shadow: none;

    background:
        #ffffff;
}


.sf-single-catalog
.sf-catalog-toolbar >
.sf-catalog-header h2 {
    margin:
        0
        0
        6px;

    color:
        var(--sf-cat-text);

    font-size: 24px;

    line-height: 1.25;
}


.sf-single-catalog
.sf-catalog-toolbar >
.sf-catalog-header p {
    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   29. RELATED CONTENT CARDS
   ========================================================= */

.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}


.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-card {
    min-height: 100%;
}


.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-card__body {
    padding-top: 18px;
}


.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-card__body h2 {
    font-size: 17px;
}


.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-card__description {
    min-height: 40px;
}


/* =========================================================
   30. SECTION COUNT BOX
   ========================================================= */

.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-header__count {
    min-width: 90px;
    min-height: 72px;
}


.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-header__count strong {
    font-size: 24px;
}


/* =========================================================
   31. SINGLE PAGE BUTTONS
   ========================================================= */

.sf-single-catalog
.sf-catalog-card__footer
.sf-catalog-button--primary {
    min-height: 44px;
}


.sf-single-catalog
.sf-catalog-card__footer
.sf-catalog-button--primary::after {
    content: " →";

    margin-left: 4px;
}


/* =========================================================
   32. BOTTOM NAVIGATION
   ========================================================= */

.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-context:last-child {
    margin-top: 36px;

    padding: 18px;

    background: #ffffff;
}


.sf-single-catalog >
.sf-catalog__inner >
.sf-catalog-context:last-child
.sf-catalog-button {
    width: auto;

    min-width: 150px;
}


/* =========================================================
   33. EMPTY RELATED CONTENT
   ========================================================= */

.sf-single-catalog
.sf-catalog-toolbar
.sf-catalog-empty {
    max-width: none;

    margin:
        0
        auto;

    background: #ffffff;
}


/* =========================================================
   34. INSTRUCTIONS CARD
   ========================================================= */

.sf-single-catalog
.sf-catalog-card__description br {
    display: block;

    content: "";

    margin-top: 8px;
}


/* =========================================================
   35. SINGLE PAGE TABLET
   ========================================================= */

@media
(max-width: 980px) {

    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-header h1 {
        font-size: 32px;
    }


    .sf-single-catalog
    .sf-catalog-toolbar
    .sf-catalog-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   36. SINGLE PAGE MOBILE
   ========================================================= */

@media
(max-width: 680px) {

    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-header {
        padding: 22px;
    }


    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-header h1 {
        font-size: 27px;
    }


    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-grid {
        grid-template-columns: 1fr;
    }


    .sf-single-catalog
    .sf-catalog-toolbar
    .sf-catalog-grid {
        grid-template-columns: 1fr;
    }


    .sf-single-catalog
    .sf-catalog-toolbar >
    .sf-catalog-header {
        padding: 18px;
    }


    .sf-single-catalog
    .sf-catalog-toolbar >
    .sf-catalog-header h2 {
        font-size: 21px;
    }


    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-context:last-child
    .sf-catalog-button {
        width: 100%;
    }
}


/* =========================================================
   37. VERY SMALL MOBILE
   ========================================================= */

@media
(max-width: 420px) {

    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-header h1 {
        font-size: 24px;
    }


    .sf-single-catalog >
    .sf-catalog__inner >
    .sf-catalog-grid
    .sf-catalog-card__meta {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   38. QUESTION BANK PRIMARY ACTIONS
   ========================================================= */

.sf-bank-actions {
    margin:
        36px
        0
        42px;

    padding: 28px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius:
        var(--sf-cat-radius);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7f9fa
        );

    box-shadow:
        var(--sf-cat-shadow);
}


.sf-bank-actions__heading {
    max-width: 720px;

    margin-bottom: 22px;
}


.sf-bank-actions__heading h2 {
    margin:
        5px
        0
        7px;

    font-size: 26px;

    line-height: 1.25;
}


.sf-bank-actions__heading p {
    margin: 0;

    color:
        var(--sf-cat-muted);

    font-size: 13px;

    line-height: 1.7;
}


.sf-bank-actions__grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.sf-bank-action-card {
    display: flex;

    gap: 16px;

    min-width: 0;

    padding: 22px;

    border:
        1px solid
        var(--sf-cat-border);

    border-radius: 12px;

    background: #ffffff;
}


.sf-bank-action-card__icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    border-radius: 12px;

    background:
        var(--sf-cat-primary-light);

    color:
        var(--sf-cat-primary);

    font-size: 16px;
    font-weight: 800;
}


.sf-bank-action-card__content {
    flex: 1;

    min-width: 0;
}


.sf-bank-action-card__eyebrow {
    display: block;

    margin-bottom: 4px;

    color:
        var(--sf-cat-primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.sf-bank-action-card h3 {
    margin:
        0
        0
        7px;

    font-size: 18px;

    line-height: 1.3;
}


.sf-bank-action-card p {
    margin:
        0
        0
        14px;

    color:
        var(--sf-cat-muted);

    font-size: 12px;

    line-height: 1.65;
}


.sf-bank-action-card__test {
    margin-bottom: 12px;

    padding:
        8px
        10px;

    border-radius: 7px;

    background:
        var(--sf-cat-bg);

    color:
        var(--sf-cat-text);

    font-size: 11px;
    font-weight: 700;
}


.sf-bank-action-card
.sf-catalog-button {
    width: 100%;
}


.sf-bank-action-card__unavailable {
    display: block;

    padding:
        10px
        12px;

    border-radius: 7px;

    background:
        var(--sf-cat-bg);

    color:
        var(--sf-cat-muted);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   QUESTION BANK ACTIONS RESPONSIVE
   ========================================================= */

@media
(max-width: 680px) {

    .sf-bank-actions {
        padding: 20px;
    }


    .sf-bank-actions__grid {
        grid-template-columns: 1fr;
    }


    .sf-bank-action-card {
        padding: 18px;
    }
}


@media
(max-width: 420px) {

    .sf-bank-action-card {
        flex-direction: column;
    }
}