.speaking-library {
    background: linear-gradient(180deg, var(--sl-page-bg), #f7f9fc 46%, var(--sl-page-bg));
    color: var(--sl-text);
    padding-top: 18px;
    --sl-text: #214252;
    --sl-text-strong: #0f766e;
    --sl-text-muted: #526a78;
}

.speaking-library.theme-ielts {
    --sl-accent: #2563eb;
    --sl-accent-dark: #173f8a;
    --sl-accent-soft: #eef4ff;
    --sl-accent-border: #c9d8ef;
    --sl-page-bg: #f4f6fa;
    --sl-surface: #ffffff;
    --sl-surface-strong: #f2f5fa;
    --sl-card-bg: #ffffff;
    --sl-muted-bg: #f4f7fb;
    --sl-text: #344966;
    --sl-text-strong: #2f5f91;
    --sl-text-muted: #64748b;
    --sl-card-title: #285f9e;
    --sl-sidebar-title: #35658f;
    --sl-highlight: #d97706;
    --sl-highlight-soft: #fff7ed;
}

.speaking-library.theme-vstep {
    --sl-accent: #0f766e;
    --sl-accent-dark: #115e59;
    --sl-accent-soft: #ccfbf1;
    --sl-accent-border: #5eead4;
    --sl-page-bg: #f4f6fa;
    --sl-surface: #ffffff;
    --sl-surface-strong: #f5f7fa;
    --sl-card-bg: #ffffff;
    --sl-muted-bg: #f4f7f8;
    --sl-text: #334155;
    --sl-text-strong: #0f766e;
    --sl-text-muted: #64748b;
    --sl-card-title: #216277;
    --sl-sidebar-title: #2b6075;
    --sl-highlight: #d97706;
    --sl-highlight-soft: #fff7ed;
}

.speaking-library.theme-contest {
    --sl-accent: #be123c;
    --sl-accent-dark: #9f1239;
    --sl-accent-soft: #fff1f2;
    --sl-accent-border: #fecdd3;
    --sl-page-bg: #fff1f3;
    --sl-surface: #fff9fa;
    --sl-surface-strong: #fff0f3;
    --sl-card-bg: #fffdf7;
    --sl-muted-bg: #fff5f6;
    --sl-text: #7b3a4d;
    --sl-text-strong: #be123c;
    --sl-text-muted: #8a5f6b;
    --sl-card-title: #9f1239;
    --sl-sidebar-title: #be123c;
}

#test-library.speaking-library {
    --sl-page-bg: #fff;
    background: #f4f6fa;
}

.ielts-library-container {
    margin-inline: auto;
    max-width: none;
    width: min(1480px, calc(100% - 32px));
}

.library-category-sidebar,
.tests-library-left,
.tests-library-right {
    min-width: 0;
}

.library-category-sidebar,
.tests-library-right {
    margin-bottom: 16px;
}

.sl-sticky-categories {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    top: 16px;
    z-index: 10;
}

.theme-ielts .sl-compact-hero {
    background: linear-gradient(120deg, #eef4ff 0%, #ffffff 58%, #fff7ed 100%);
    border-color: #d8e1ee;
    box-shadow: 0 14px 32px rgba(23, 52, 95, .08);
}

.theme-vstep .sl-compact-hero {
    background: linear-gradient(120deg, #ecfdf8 0%, #ffffff 62%, #fff7ed 100%);
    border-color: #99d8ce;
    box-shadow: 0 14px 32px rgba(15, 118, 110, .1);
}

.theme-ielts .sl-compact-hero .sl-kicker {
    background: var(--sl-highlight-soft);
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #9a4f08;
    padding: 5px 9px;
}

.sl-breadcrumb {
    padding-top: 4px;
}

.sl-breadcrumb-list {
    background: transparent;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 0;
}

.speaking-library .breadcrumb-item,
.speaking-library .breadcrumb-item::before,
.speaking-library .breadcrumb-item.active {
    color: var(--sl-text-muted);
}

.speaking-library a:not(.btn):not(.category):not(.skill-entry):not(.rl-library-chip):not(.sl-card-cta) {
    color: var(--sl-accent-dark);
}

.speaking-library a:not(.btn):not(.category):not(.skill-entry):not(.rl-library-chip):not(.sl-card-cta):hover {
    color: var(--sl-accent);
}

.speaking-library :is(.text-primary, .text-primary-emphasis, .text-secondary, .text-secondary-emphasis, .text-muted) {
    color: var(--sl-text-muted) !important;
}

.sl-hero {
    background:
        linear-gradient(135deg, var(--sl-surface), var(--sl-surface-strong));
    border: 1px solid var(--sl-accent-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .1);
    margin-bottom: 16px;
    padding: 20px;
}

.sl-compact-hero {
    padding: 16px 18px;
}

.sl-compact-hero .sl-title {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    margin-bottom: 7px;
}

.sl-compact-hero .sl-intro {
    max-width: none;
}

.sl-kicker {
    align-items: center;
    color: var(--sl-accent-dark);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    gap: 7px;
    letter-spacing: .02em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sl-title {
    color: var(--sl-text-strong);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 10px;
}

.sl-intro {
    color: var(--sl-text);
    font-size: 1rem;
    line-height: 1.58;
    margin-bottom: 0;
    max-width: 900px;
}

.sl-intro + .sl-intro {
    margin-top: 7px;
}

.sl-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sl-chip {
    align-items: center;
    background: var(--sl-card-bg);
    border: 1px solid var(--sl-accent-border);
    border-radius: 999px;
    color: var(--sl-text);
    display: inline-flex;
    font-size: .88rem;
    font-weight: 800;
    gap: 7px;
    padding: 7px 11px;
}

.sl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sl-hero-primary,
.sl-hero-secondary {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    text-decoration: none;
}

.sl-hero-primary {
    background: var(--sl-accent);
    border: 1px solid var(--sl-accent);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--sl-accent) 22%, transparent);
    color: #fff !important;
}

.sl-hero-secondary {
    background: var(--sl-card-bg);
    border: 1px solid var(--sl-accent);
    color: var(--sl-accent-dark) !important;
}

.sl-hero-primary:hover,
.sl-hero-secondary:hover {
    background: var(--sl-accent-dark);
    border-color: var(--sl-accent-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.sl-hero-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 11px;
}

.sl-hero-support-links a {
    color: var(--sl-accent-dark);
    font-size: .92rem;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sl-seo-note,
.ielts-seo-support,
.speech-seo-support,
.seo-support {
    background: var(--sl-surface);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--sl-accent);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    color: var(--sl-text);
    line-height: 1.55;
    margin-bottom: 16px;
    padding: 15px 16px;
}

.sl-seo-note h2,
.ielts-seo-support h2,
.speech-seo-support h2,
.seo-support h2 {
    color: var(--sl-text-strong);
    font-size: 1.12rem;
    font-weight: 850;
    line-height: 1.35;
    margin-bottom: 7px;
}

.ielts-seo-list,
.speech-seo-list,
.seo-support-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 12px 0 0;
    padding: 0;
}

.ielts-seo-list li,
.speech-seo-list li,
.seo-support-item {
    background: var(--sl-muted-bg);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--sl-text);
    line-height: 1.48;
    list-style: none;
    padding: 12px;
}

.ielts-seo-list strong,
.speech-seo-list strong,
.seo-support-item h3 {
    color: var(--sl-accent-dark);
    font-size: .96rem;
    font-weight: 850;
}

.sl-toolbar {
    background: var(--sl-surface);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
    margin-bottom: 14px;
    padding: 12px;
}

.sl-search-toolbar {
    padding-bottom: 0;
}

.sl-test-list-heading {
    align-items: center;
    background: linear-gradient(110deg, var(--sl-accent-soft) 0%, #fff 56%, var(--sl-highlight-soft, #fff) 100%);
    border: 1px solid var(--sl-accent-border);
    border-left: 5px solid var(--sl-accent);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    display: flex;
    gap: 11px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.sl-test-list-heading h2 {
    color: var(--sl-text-strong);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.sl-test-list-icon {
    align-items: center;
    background: #fff;
    border: 1px solid var(--sl-accent-border);
    border-radius: 50%;
    color: var(--sl-accent);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--sl-accent) 14%, transparent);
    width: 38px;
}

.sl-search-toolbar .sl-search-wrap {
    margin-bottom: 0;
}

.sl-filter-label {
    color: var(--sl-text-muted);
    font-size: .82rem;
    font-weight: 850;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.speaking-library .filter-test {
    background: transparent;
    border: 0 !important;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.speaking-library .filter-test .separator {
    display: none;
}

.speaking-library .category,
.speaking-library .skill-filter-nav .btn {
    align-items: center;
    background: var(--sl-muted-bg);
    border: 1px solid #dbe5ef;
    border-radius: 999px !important;
    color: var(--sl-text);
    display: inline-flex;
    font-size: .9rem;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 13px;
    text-decoration: none;
}

.speaking-library .category:hover,
.speaking-library .category.active,
.speaking-library .skill-filter-nav .btn:hover,
.speaking-library .skill-filter-nav .skill-nav-active {
    background: var(--sl-accent);
    border-color: var(--sl-accent);
    color: #fff;
}

.theme-ielts .library-category-sidebar .sl-toolbar {
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
    border: 1px solid #cbd9ee;
    border-top: 4px solid var(--sl-accent);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(23, 52, 95, .1);
    padding: 13px 11px 12px;
}

.theme-ielts .library-category-sidebar .sl-filter-label {
    align-items: center;
    color: var(--sl-text-strong);
    display: flex;
    font-size: .88rem;
    gap: 7px;
    letter-spacing: .02em;
    margin-bottom: 4px;
}

.theme-ielts .library-category-sidebar .sl-filter-label i {
    color: var(--sl-highlight);
    font-size: 1rem;
}

.theme-ielts .library-category-sidebar .sl-filter-helper {
    color: var(--sl-text-muted) !important;
    font-size: .78rem;
    line-height: 1.35;
    margin: 0 0 10px;
}

.theme-ielts .library-category-sidebar .category {
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 !important;
    color: var(--sl-text-muted);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 0;
    padding: 7px 8px 7px 10px;
}

.theme-ielts .library-category-sidebar .category:hover {
    background: #eef4ff;
    border-left-color: #93b4ee;
    color: var(--sl-accent-dark);
}

.theme-ielts .library-category-sidebar .category.active {
    background: linear-gradient(90deg, #e8f0ff, transparent);
    border-left-color: var(--sl-highlight);
    color: var(--sl-text-strong);
    font-weight: 850;
}

.theme-vstep .library-category-sidebar .sl-toolbar {
    background: linear-gradient(180deg, #ffffff, var(--sl-muted-bg));
    border: 1px solid #bfe7dd;
    border-top: 4px solid var(--sl-accent);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .1);
    padding: 13px 11px 12px;
}

.theme-vstep .library-category-sidebar .sl-filter-label {
    align-items: center;
    color: var(--sl-text-strong);
    display: flex;
    font-size: .88rem;
    gap: 7px;
    letter-spacing: .02em;
    margin-bottom: 4px;
}

.theme-vstep .library-category-sidebar .sl-filter-label i {
    color: var(--sl-accent);
    font-size: 1rem;
}

.theme-vstep .library-category-sidebar .sl-filter-helper {
    color: var(--sl-text-muted) !important;
    font-size: .78rem;
    line-height: 1.35;
    margin: 0 0 10px;
}

.theme-vstep .library-category-sidebar .category {
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 !important;
    color: var(--sl-text-muted);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 0;
    padding: 7px 8px 7px 10px;
}

.theme-vstep .library-category-sidebar .category:hover {
    background: #e7f8f3;
    border-left-color: #5eead4;
    color: var(--sl-accent-dark);
}

.theme-vstep .library-category-sidebar .category.active {
    background: linear-gradient(90deg, #dff7f1, transparent);
    border-left-color: var(--sl-accent);
    color: var(--sl-text-strong);
    font-weight: 850;
}

.speaking-library .filter-test-mobile {
    margin-bottom: 12px;
}

.sl-search-wrap {
    margin-bottom: 14px;
}

.speaking-library .search-widget {
    padding-bottom: 0;
}

.speaking-library .search-input .form-control {
    background: var(--sl-card-bg);
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
    font-size: .98rem;
    min-height: 46px;
    padding-left: 14px;
}

.speaking-library .test-display-section {
    background:
        linear-gradient(180deg, var(--sl-surface), var(--sl-muted-bg)),
        var(--sl-accent-soft);
    border: 1px solid var(--sl-accent-border);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .1);
    margin: 0 0 16px;
    overflow: hidden;
    padding: 18px 14px 8px;
    position: relative;
}

.theme-ielts .test-display-section {
    background: #ffffff;
    border-color: #dbe3ee;
    box-shadow: 0 14px 34px rgba(23, 52, 95, .08);
}

.theme-vstep .test-display-section {
    background: #ffffff;
    border-color: #d7e3e1;
    box-shadow: 0 14px 34px rgba(23, 50, 77, .08);
}

.speaking-library.theme-ielts .test-display-section::before {
    background: linear-gradient(180deg, var(--sl-accent), var(--sl-highlight));
}

.speaking-library .test-display-section::before {
    background: var(--sl-accent);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 5px;
}

.speaking-library .test-icon-circle {
    background: var(--sl-accent-soft);
    border: 1px solid var(--sl-accent-border);
    box-shadow: 0 10px 18px rgba(15, 23, 42, .08);
    color: var(--sl-accent-dark);
    min-height: 52px;
    min-width: 52px;
}

.speaking-library .title-category-test {
    color: var(--sl-text-strong);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 6px;
}

.speaking-library .title-category-test > i {
    color: var(--sl-highlight, var(--sl-accent));
    font-size: .9em;
    margin-right: 6px;
}

.speaking-library .title-category-test span {
    color: var(--sl-accent-dark) !important;
}

.speaking-library .test-display-section .text-secondary-emphasis {
    color: var(--sl-text-muted) !important;
    font-size: .94rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.speaking-library article[class*="col-"] {
    margin-bottom: 14px;
}

.speaking-library article > a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.speaking-library .test-display {
    background:
        linear-gradient(135deg, var(--sl-card-bg) 0%, var(--sl-surface) 52%, var(--sl-accent-soft) 100%);
    border: 2px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 13px 28px rgba(15, 23, 42, .08);
    display: flex;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    padding: 16px;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
    width: 100%;
}

.theme-vstep .test-display {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: #e2e8f0;
}

.speaking-library .test-display::before {
    background: var(--sl-accent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.speaking-library .test-display:hover {
    border-color: var(--sl-accent);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
    transform: translateY(-3px);
}

.speaking-library article > a:focus-visible .test-display {
    border-color: var(--sl-accent);
    box-shadow: 0 0 0 4px var(--sl-accent-border), 0 18px 34px rgba(15, 23, 42, .14);
    outline: 0;
}

.speaking-library .test-display-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.35;
    padding-top: 0;
    width: 100%;
}

.speaking-library .test-title {
    color: var(--sl-card-title);
    font-size: 1.13rem;
    font-weight: 900;
    line-height: 1.22;
    margin: 0;
    padding-right: 28px;
}

.sl-test-type {
    align-items: center;
    color: var(--sl-accent-dark);
    display: inline-flex;
    font-size: .73rem;
    font-weight: 850;
    gap: 6px;
    letter-spacing: .045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sl-test-type i {
    color: var(--sl-highlight, var(--sl-accent));
}

.sl-card-meta,
.speaking-library .test-card-meta,
.speaking-library .test-display-info p {
    color: var(--sl-text-muted) !important;
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.38;
    margin: 0;
}

.sl-card-meta i,
.speaking-library .test-card-meta i,
.speaking-library .test-display-info p i {
    color: var(--sl-accent);
}

.sl-card-cta {
    align-items: center;
    align-self: flex-start;
    background: var(--sl-accent);
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .16);
    color: #fff;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 900;
    gap: 6px;
    margin-top: auto;
    min-height: 38px;
    padding: 9px 14px;
    position: relative;
    z-index: 1;
}

.speaking-library .test-display:hover .sl-card-cta {
    background: var(--sl-accent-dark);
}

.speaking-library .show-more-btn {
    background: var(--sl-card-bg);
    border: 1px solid var(--sl-accent-border);
    border-radius: 999px !important;
    color: var(--sl-accent-dark) !important;
    font-weight: 850;
    padding: 8px 14px;
    text-decoration: none;
}

.speaking-library .show-more-btn:hover {
    background: var(--sl-accent);
    color: #fff !important;
}

.sl-sidebar-card,
.speaking-library .tests-library-right .subscribe-widget {
    background: var(--sl-surface);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.theme-ielts .tests-library-right .subscribe-widget {
    background: linear-gradient(180deg, #ffffff, #fffaf3);
    border-color: #f2d4ad;
    box-shadow: 0 14px 32px rgba(118, 72, 16, .08);
}

.theme-ielts .tests-library-right .btn-outline-primary {
    background: #ffffff;
}

.speaking-library .tests-library-right .heading {
    color: var(--sl-sidebar-title);
    font-weight: 900;
}

.speaking-library .tests-library-right p,
.speaking-library .tests-library-right small,
.speaking-library .tests-library-right .sample-answer-helper {
    color: var(--sl-text-muted) !important;
}

.speaking-library .tests-library-right strong {
    color: var(--sl-sidebar-title);
}

.speaking-library .sl-skill-panel {
    background:
        linear-gradient(135deg, var(--sl-surface), var(--sl-surface-strong));
    border-color: var(--sl-accent-border);
    box-shadow: 0 16px 34px rgba(33, 66, 82, .09);
}

.speaking-library.theme-vstep .rl-library-chip.skill-speaking {
    --skill-bg: #ecfdf8;
    --skill-border: #5eead4;
    --skill-color: #0f766e;
    --skill-shadow: rgba(15, 118, 110, .14);
}

.speaking-library .rl-library-eyebrow,
.speaking-library .rl-library-stat {
    background: var(--sl-card-bg);
    border-color: var(--sl-accent-border);
    color: var(--sl-accent-dark);
}

.speaking-library .rl-library-heading {
    color: var(--sl-text-strong);
}

.speaking-library .rl-library-subtitle {
    color: var(--sl-text-muted);
}

.speaking-library .rl-library-search input {
    background: var(--sl-card-bg);
    color: var(--sl-text);
}

.speaking-library .rl-library-search input:focus {
    border-color: var(--sl-accent);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--sl-accent-border) 58%, transparent);
}

.speaking-library .tests-library-right .btn-outline-primary {
    border-color: var(--sl-accent-border);
    color: var(--sl-accent-dark);
    font-weight: 850;
}

.speaking-library .tests-library-right .btn-outline-primary:hover {
    background: var(--sl-accent);
    border-color: var(--sl-accent);
    color: #fff;
}

.speaking-library .tests-library-left,
.speaking-library .tests-library-right {
    padding-top: 0;
}

.speaking-library .video-container {
    margin: 0 auto;
    max-width: 560px;
}

.speaking-library .video-container iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.speaking-library-extra,
.speaking-library-cta {
    --sle-accent: #0f766e;
    --sle-accent-2: #2563eb;
    --sle-heading: #0f766e;
    --sle-copy: #315f66;
    --sle-muted: #5f7581;
    --sle-soft: #effcf8;
    --sle-border: #b7e4d8;
}

.speaking-library-extra.theme-ielts,
.speaking-library-cta.theme-ielts {
    --sle-accent: #2563eb;
    --sle-accent-2: #3730a3;
    --sle-heading: #1d4ed8;
    --sle-copy: #3f5e86;
    --sle-muted: #647894;
    --sle-soft: #f2f7ff;
    --sle-border: #bfdbfe;
}

.speaking-library-extra.theme-vstep,
.speaking-library-cta.theme-vstep {
    --sle-accent: #0f766e;
    --sle-accent-2: #315f82;
    --sle-heading: #2b6075;
    --sle-copy: #334155;
    --sle-muted: #64748b;
    --sle-soft: #f1f5f9;
    --sle-border: #cbd5e1;
}

.speaking-library-extra.theme-contest,
.speaking-library-cta.theme-contest {
    --sle-accent: #be123c;
    --sle-accent-2: #7c3aed;
    --sle-heading: #be123c;
    --sle-copy: #7b3a4d;
    --sle-muted: #8a5f6b;
    --sle-soft: #fff5f6;
    --sle-border: #fecdd3;
}

.speaking-library-extra {
    background: #fff;
    color: var(--sle-copy);
}

.speaking-library-extra.bg-light {
    background-color: #fff !important;
}

.speaking-library-extra :is(h2, h3, h4, .heading, .accordion-button) {
    color: var(--sle-heading) !important;
}

.speaking-library-extra :is(p, small, .accordion-body, .text-primary, .text-primary-emphasis, .text-secondary, .text-muted) {
    color: var(--sle-muted) !important;
}

.speaking-library-extra strong,
.speaking-library-extra a {
    color: var(--sle-heading);
}

.speaking-library-extra a:hover {
    color: var(--sle-accent-2);
}

.speaking-library-extra .accordion {
    border: 1px solid var(--sle-border);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(33, 66, 82, .07);
    overflow: hidden;
}

.speaking-library-extra .accordion-button {
    background: #fff;
    font-weight: 850;
}

.speaking-library-extra .accordion-button:not(.collapsed) {
    background: var(--sle-soft);
    box-shadow: none;
}

.speaking-library-extra .video-container h3 {
    color: var(--sle-heading) !important;
}

.speaking-library-cta {
    background: linear-gradient(135deg, var(--sle-accent), var(--sle-accent-2));
    color: #fff;
}

.speaking-library-cta :is(h2, h3, p, .text-primary, .text-secondary) {
    color: #fff !important;
}

.speaking-library-cta p {
    opacity: .92;
}

.speaking-library-cta a:not(.btn) {
    color: #fff;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.speaking-library-cta .btn-light {
    color: var(--sle-accent) !important;
    font-weight: 900;
}

@media (min-width: 1200px) {
    .speaking-library {
        padding-bottom: 24px;
    }

    .speaking-library .test-display-section {
        padding: 22px 18px 10px;
    }

    .speaking-library .test-display {
        min-height: 166px;
        padding: 18px;
    }

    .speaking-library .test-title {
        font-size: 1.18rem;
    }

    .sl-card-cta {
        justify-content: center;
        min-width: 126px;
    }
}

@media (min-width: 1200px) {
    .ielts-library-workspace > .tests-library-left {
        flex: 0 0 70.4%;
        max-width: 70.4%;
    }

    .ielts-library-workspace > .tests-library-right {
        flex: 0 0 29.6%;
        max-width: 29.6%;
    }

    .library-category-sidebar,
    .tests-library-right {
        margin-bottom: 0;
    }

    .library-category-sidebar .filter-test {
        align-items: stretch;
        flex-direction: column;
    }

    .library-category-sidebar .category {
        justify-content: flex-start;
        width: 100%;
    }

}

@media (max-width: 1199px) {
    .sl-sticky-categories {
        max-height: none;
        overflow: visible;
        position: static !important;
    }

    .library-category-sidebar .filter-test {
        display: none;
    }

    .library-category-sidebar .filter-test-mobile {
        display: block;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .ielts-library-container {
        width: min(100% - 20px, 1480px);
    }

    .speaking-library {
        padding-top: 8px;
    }

    .sl-hero {
        padding: 16px;
    }

    .sl-toolbar {
        padding: 10px;
    }

    .sl-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sl-hero-primary,
    .sl-hero-secondary {
        width: 100%;
    }

    .speaking-library .filter-test {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .speaking-library .category,
    .speaking-library .skill-filter-nav .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .speaking-library .test-display-section {
        padding: 14px 10px 4px;
    }

    .speaking-library .test-display {
        min-height: 140px;
        padding: 14px;
    }
}
