﻿/* =======================================================================
   EP Samples Theme CSS
   - Tokens in :root
   - Reset and base
   - Layout primitives
   - Components (buttons, forms, header, hero, cards, footer, cookie)
   - Utilities
   ======================================================================= */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/poppins-600.woff2') format('woff2');
}

/* -----------------------------------------------------------------------
   1. Design tokens
   ----------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg-page: #ffffff;
    --color-bg-surface: #ffffff;
    --color-bg-soft: #f5f7fd;

    --color-primary: #4763d1;
    --color-primary-strong: #546dd4;
    --color-primary-soft: rgba(71, 99, 209, 0.1);

    --color-accent: #f57b0a;
    --color-accent-soft: rgba(245, 123, 10, 0.12);

    --color-border-subtle: #e6e9f5;
    --color-border-strong: #cfd7f4;

    --color-text-main: #42445a;
    --color-text-muted: #5b6075;
    --color-text-soft: #8a8fa4;
    --color-text-inverted: #ffffff;

    --color-footer-bg: #020617;
    --color-footer-text: #e5e7eb;

    --color-success: #16a34a;
    --color-danger: #ef4444;

    /* Shadows */
    --shadow-subtle: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 12px 32px rgba(15, 23, 42, 0.14);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 999px;

    /* Spacing (4px base) */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem;  /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem;    /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem;  /* 24px */
    --space-7: 1.75rem; /* 28px */
    --space-8: 2rem;    /* 32px */
    --space-9: 2.5rem;  /* 40px */
    --space-10: 3rem;   /* 48px */

    /* Typography */
    --font-size-xs: 0.75rem;  /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-md: 1rem;     /* 16px */
    --font-size-lg: 1.125rem; /* 18px */

    --font-size-h1: clamp(2.4rem, 2rem + 1.2vw, 3.4rem);
    --font-size-h2: clamp(1.8rem, 1.4rem + 0.8vw, 2.4rem);
    --font-size-h3: 1.25rem;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Layout */
    --container-width: 1300px;
    --container-padding-inline: 1.25rem;

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 200ms ease-out;
}

:focus-visible {
    outline: none;
}

@media (min-width: 1024px) {
    :root {
        --container-padding-inline: 1.5rem;
    }
}

/* -----------------------------------------------------------------------
   2. Reset and base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text-main);
    background: var(--color-bg-page);
    -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover:not([class*='btn']) {
    color: var(--color-primary-strong);
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -----------------------------------------------------------------------
   3. Layout primitives
   ----------------------------------------------------------------------- */
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
}

.section {
    padding-block: var(--space-8);
}

.grid {
    display: grid;
    gap: var(--space-5);
}

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

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

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

@media (max-width: 1023.98px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1399.98px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 767.98px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }
        .container {
         padding: 0 16px;
        }
}

/* Typography helpers */
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }
.text-center { text-align: center; }
.text-strong { font-weight: var(--font-weight-semibold); }

/* -----------------------------------------------------------------------
   4. Buttons
   ----------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--color-bg-surface);
    --btn-border: transparent;
    --btn-color: var(--color-text-main);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding-inline: var(--space-4);
    padding-block: 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-fast);
}

.btn--sm {
    padding-inline: var(--space-3);
    padding-block: 0.45rem;
    font-size: var(--font-size-xs);
    border-radius: 10px;
}

.btn--primary {
    --btn-bg: var(--color-primary);
    --btn-border: var(--color-primary);
    --btn-color: var(--color-text-inverted);
    box-shadow: var(--shadow-subtle);
}

.btn--primary:hover {
    --btn-bg: var(--color-primary-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn--ghost {
    --btn-bg: #e8ecf9;
    --btn-border: #e8ecf9;
    --btn-color: #546dd4;
}

.btn--ghost:hover {
    filter: brightness(0.98);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* -----------------------------------------------------------------------
   5. Form controls
   ----------------------------------------------------------------------- */
.input,
.select {
    width: 100%;
    padding-inline: var(--space-3);
    padding-block: 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    background: #f9fafb;
    font-size: var(--font-size-sm);
    color: var(--color-text-main);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.input::placeholder {
    color: var(--color-text-soft);
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(71, 99, 209, 0.12);
}

/* -----------------------------------------------------------------------
   6. Header
   ----------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 2vw, 6rem);
    padding-block: 1.25rem;
    position: relative;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.site-header__logo-mark {
    width: 180px;
    height: auto;
}

.site-header__logo-mark--mobile {
    display: none;
    width: 60px;
}

.site-header__logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-text-main);
    white-space: nowrap;
}

.site-header__nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.primary-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.35rem;
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-block: 0.25rem;
    color: inherit;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.primary-nav a:hover {
    color: var(--color-primary);
}

.primary-nav .menu-item-has-children > a::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    display: block;
    margin-top: 0;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
}

.primary-nav .current-menu-item > a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.primary-nav > .menu-item {
    position: relative;
    list-style: none;
}

.primary-nav > .menu-item.menu-item-has-children > a {
    gap: 0.5rem;
}

.primary-nav > .menu-item.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: -18px;
    right: -18px;
    top: 100%;
    height: 18px;
}

.primary-nav > .menu-item > a {
    position: relative;
    z-index: 1;
}

.primary-nav .menu-item-has-children > a::after {
    transition: transform var(--transition-fast);
    transform-origin: center;
}

.primary-nav > .menu-item > .sub-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 312px;
    max-height: min(90vh, 42rem);
    margin: 0;
    padding: 22px 34px;
    border-radius: 28px;
    background: #f5f5f7;
    box-shadow: 0 10px 28px rgba(84, 109, 212, 0.22);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        visibility var(--transition-fast);
}

.primary-nav > .menu-item.menu-item-has-children:hover > .sub-menu,
.primary-nav > .menu-item.menu-item-has-children:focus-within > .sub-menu,
.primary-nav > .menu-item.menu-item-has-children.is-dropdown-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav .menu-item-has-children:hover > a,
.primary-nav .menu-item-has-children:focus-within > a,
.primary-nav .menu-item-has-children.is-dropdown-open > a {
    color: var(--color-primary);
}

.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .menu-item-has-children:focus-within > a::after,
.primary-nav .menu-item-has-children.is-dropdown-open > a::after {
    transform: translateY(2px) rotate(-135deg);
}

.primary-nav .sub-menu > li {
    width: 100%;
}

.primary-nav .sub-menu a {
    display: block;
    width: 100%;
    padding: 8px 0;
    color: #42445a;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 400;
    white-space: nowrap;
}

.primary-nav .sub-menu a:hover {
    color: #546dd4;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-header__btn {
    min-width: 150px;
    height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.site-header__btn--ghost {
    background: #e8ecf9;
    color: #546dd4;
    border: none;
}

.site-header__btn--primary {
    background: var(--color-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-header__btn--primary:hover {
    background: var(--color-primary-strong);
}

.site-header__menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.site-header__menu-icon {
    width: 18px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 999px;
    position: relative;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.site-header__menu-icon::before,
.site-header__menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 999px;
    transition: transform var(--transition-fast), top var(--transition-fast), opacity var(--transition-fast);
}

.site-header__menu-icon::before { top: -6px; }
.site-header__menu-icon::after  { top: 6px; }

.is-menu-open .site-header__menu-icon {
    background: transparent;
}

.is-menu-open .site-header__menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.is-menu-open .site-header__menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 1199.98px) {
    .site-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border-subtle);
        box-shadow: var(--shadow-subtle);
        padding: var(--space-4) var(--space-5);
    }

    .is-menu-open .site-header__nav {
        display: block;
    }

    .primary-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .primary-nav > .menu-item {
        width: 100%;
    }

    .primary-nav > .menu-item.menu-item-has-children::after {
        content: none;
    }

    .primary-nav > .menu-item > a {
        width: 100%;
        justify-content: space-between;
    }

    .primary-nav > .menu-item > .sub-menu {
        position: static;
        top: auto;
        left: auto;
        display: none;
        min-width: 0;
        max-height: none;
        margin-top: 0.55rem;
        padding: 1.1rem 2rem 1.2rem;
        border-radius: 28px;
        background: #f5f5f7;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        overflow: visible;
    }

    .primary-nav > .menu-item.menu-item-has-children.is-dropdown-open > .sub-menu {
        display: flex;
    }

    .primary-nav .sub-menu a {
        padding: 0.55rem 0;
        font-size: 0.95rem;
        white-space: normal;
    }

    .primary-nav .menu-item-has-children:hover > a::after,
    .primary-nav .menu-item-has-children:focus-within > a::after {
        transform: translateY(-1px) rotate(45deg);
    }

    .primary-nav .menu-item-has-children.is-dropdown-open > a::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .site-header__menu-toggle {
        display: inline-flex;
    }

    .site-header__logo-mark {
        width: 140px;
    }

    .site-header__logo-mark--desktop {
        display: none;
    }

    .site-header__logo-mark--mobile {
        display: block;
        width: 40px;
        height: auto;
    }
}

/* -----------------------------------------------------------------------
   7. Hero sections
   ----------------------------------------------------------------------- */
.page-hero {
    padding: .25rem 0 3.45rem;
    background: linear-gradient(180deg, rgba(232, 236, 249, 0) 0%, #e8ecf9 100%);
}

.page-hero.page-hero--large {
    padding: 3.7rem 0 4rem;
}

.page-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

.page-hero__text {
    display: grid;
    gap: var(--space-3);
}

.page-hero__title {
    font-size: 54px;
    line-height: 70px;
    font-weight: 600;
    color: var(--color-text-main);
}

.page-hero__subtitle {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: #747477;
}

.page-hero__search {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-3);
}

.page-hero__search-field {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    width: 625px;
    max-width: 100%;
    flex: 0 0 625px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dedee3;
}

.page-hero__search-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.page-hero__search input[type="search"] {
    border: none;
    outline: none;
    flex: 1 1 auto;
    font-size: 1rem;
    color: var(--color-text-main);
    background: transparent;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
}

.page-hero__search input[type="search"]::placeholder {
    color: var(--color-text-soft);
}

.page-hero__search input[type="search"]:-webkit-autofill,
.page-hero__search input[type="search"]:-webkit-autofill:hover,
.page-hero__search input[type="search"]:-webkit-autofill:focus,
.page-hero__search input[type="search"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--color-text-main);
    caret-color: var(--color-text-main);
}

.page-hero__search-submit {
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.page-hero__search-submit:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.page-hero__search-submit:active {
    transform: translateY(0);
}

.category-page .page-hero__inner,
.search-page .page-hero__inner {
    align-items: flex-start;
    text-align: left;
    gap: var(--space-10);
}

.category-page .category-hero__header,
.search-page .category-hero__header,
.sample-page .category-hero__header {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: nowrap;
}

.sample-page .page-hero__inner {
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
}

.sample-page .page-hero__inner.page-hero__inner--sample {
    align-items: flex-start;
    text-align: left;
    gap: var(--space-10);
}

.sample-hero__header {
    display: grid;
    gap: var(--space-3);
    width: 100%;
}

.sample-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0 0 16px ;
    /* border-top: 1px solid #eef0f6; */
    border-bottom: 1px solid #eef0f6;
}

.sample-hero__meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.sample-page .category-hero__title {
    font-size: 42px;
    line-height: 46px;
    font-weight: 400;
    max-width: calc(100% - 360px);
    min-width: 0;
}

.category-hero__title--mobile {
    display: none;
    margin: 0 0 var(--space-4);
}

@media (max-width: 767.98px) {
    .sample-page .category-hero__header {
        flex-wrap: wrap;
    }

    .sample-page .category-hero__search {
        order: 1;
        width: 100%;
    }

    .sample-page .category-hero__title--desktop {
        display: none;
    }

    .sample-page .category-hero__title--mobile {
        display: block;
        max-width: 100%;
    }

    .sample-page .category-hero__title {
font-size: 30px;
        max-width: 100%;
    }
}

.sample-hero__meta .meta-pill {
    background: #f2f3f7;
    color: var(--color-text-main);
    font-size: 12px;
    line-height: 20px;
}

.sample-download {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    background: #e8ecf9;
    color: var(--color-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    border: 1px solid #d9def2;
    margin-left: auto;
    gap: 8px;
}

.sample-download__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}



.sample-heading {

    display: grid;
    gap: 1rem;
}

.sample-title {
    margin: 0;
    font-size: 42px;
    line-height: 52px;
    font-weight: 400;
    color: var(--color-text-main);
}

@media (max-width: 767.98px) {
    .page-hero.page-hero--large,
    .page-hero {
        padding: 10px 0 30px;
    }

        .page-hero__inner,
    .category-page .page-hero__inner,
    .search-page .page-hero__inner {
        gap: 30px;
    }

    .page-hero__text {
        gap: 12px;

    }

    .page-hero__title {
        font-size: 27px;
        line-height: 40px;
        font-weight: 600;
    }

    .page-hero__search {
        width: 100%;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 12px;
        max-width: 100%;
   
    }

    .page-hero__search-field {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        height: 48px;
        padding: 12px;
    }

    .page-hero__search-submit {
        width: auto;
        flex: 0 0 auto;
        height: 48px;
        padding: 12px 20px;
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    .page-hero__search {
        flex-wrap: nowrap;
    }

    .page-hero__search-submit {
        flex: 0 0 auto;
    }
}

.page-hero__search-field {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .site-header__inner {
        padding-inline: 16px;
        padding-block: 10px;
        gap: var(--space-3);
    }

    .site-header__actions {
        gap: 16px;
    }

    .site-header__btn {
        min-width: 80px;
        width: 80px;
        height: 33px;
        border-radius: 12px;
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
        padding: 8px 12px;
    }

    .site-header__menu-toggle {
        width: 32px;
        height: 32px;
    }

    .site-header__menu-icon,
    .site-header__menu-icon::before,
    .site-header__menu-icon::after {
        width: 20px;
        height: 2px;
    }

    .site-header__menu-icon::before { top: -6px; }
    .site-header__menu-icon::after  { top: 6px; }
}

/* Samples page header */
.samples-page-header {
    margin-bottom: var(--space-6);
}

.samples-page-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-main);
    margin-bottom: var(--space-2);
}

.samples-page-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------------
   8. Search bars
   ----------------------------------------------------------------------- */
.samples-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.samples-search-input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    background: #ffffff;
    font-size: var(--font-size-sm);
    color: var(--color-text-main);
    box-shadow: var(--shadow-subtle);
}

.samples-search-input::placeholder {
    color: var(--color-text-soft);
}

.samples-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(71, 99, 209, 0.12);
}

/* -----------------------------------------------------------------------
   9. Cards (samples, writer)
   ----------------------------------------------------------------------- */
.samples-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.samples-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .samples-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sample-card {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-4);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.sample-card-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-main);
}

.sample-card-title a:hover {
    color: var(--color-primary);
}

.sample-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-soft);
}

.ep-pill {
    display: inline-flex;
    align-items: center;
    padding-inline: 0.6rem;
    padding-block: 0.2rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    background: #eef2ff;
    color: #4f46e5;
}

.sample-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.sample-writer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    background: var(--color-primary-soft);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-full);
}

.ep-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.ep-sample-content {
    margin-top: var(--space-4);
    line-height: 1.7;
    color: var(--color-text-main);
}

.ep-sample-references {
    margin-top: var(--space-6);
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--space-4);
}

/* -----------------------------------------------------------------------
   10. Categories list (for empty states, taxonomy pages)
   ----------------------------------------------------------------------- */
.categories-section {
    padding-block: 3.75rem;
    background: #ffffff;
    position: relative;
}

.categories-header {
    text-align: center;
    margin-bottom: 3.75rem;
}

.categories-header .samples-page-title {
    font-size: 2.625rem;
    line-height: 52px;
    font-weight: 400;
    color: var(--color-text-main);
}

.categories-layout {
    display: grid;
    row-gap: 2rem;
    column-gap: 1.25rem;
}

.categories-layout--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    .categories-layout--4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.category-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-column__title {

    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
    margin-top: 1.5rem;
}

.category-column__item {
    font-size: 1rem;
    color: var(--color-text-main);
    display: block;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .category-column__title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 400;
    }
}

.category-column__item::before {
    content: "\2022";
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-primary);
    display: inline-block;
    margin-right: 0.35rem;
}

.category-column__count {
    color: var(--color-text-main);
    margin-left: 0.25rem;
    white-space: nowrap;
}


/* 
.category-column__count {
    color: var(--color-text-main);
} */

.categories-footer {
    margin-top: var(--space-4);
    display: flex;
    justify-content: center;
}

.categories-footer .btn {
    min-width: 200px;
}

.categories-shell {
    position: relative;
    padding-bottom: 120px;
    max-height: 608px;
    overflow: hidden;
    transition: max-height 320ms ease, padding-bottom var(--transition-base);
}

.categories-shell--collapsed {
    overflow: hidden;
}

.categories-shell--expanded {
    overflow: visible;
    padding-bottom: 24px;
}

.categories-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 24px 24px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    transition: opacity var(--transition-base), visibility var(--transition-base), background var(--transition-base), padding var(--transition-base);
    visibility: visible;
    opacity: 1;
    z-index: 2;
}

.categories-overlay__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    line-height: 24px;
    box-shadow: var(--shadow-subtle);
    border: none;
    transition:  var(--transition-fast);
}
.categories-overlay__btn:hover {
    background: #5f7ffd;
    transform: translateY(-1px);
}


.categories-shell--expanded .categories-overlay {
    position: static;
    background: transparent;
    padding: 0;
    margin-top: var(--space-4);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.categories-shell--expanded .categories-overlay__btn {
    background: #e8ecf9;
    color: var(--color-primary);
}

.cta-section {
    padding-block: var(--space-8);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 20px;
    row-gap: var(--space-5);
    position: relative;
}

.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 32px 28px;
    background: linear-gradient(160deg, #4763d1 0%, #3b59ce 100%);
    color: #ffffff;
    isolation: isolate;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.9;
    z-index: -1;
}

.cta-card--left::before {
    background-image: url('img/sample-cta-left.svg');
}

.cta-card--right::before {
    background-image: url('img/sample-cta-right.svg');
}

.cta-card__content {
    display: grid;
    gap: var(--space-3);
    text-align: center;
    justify-items: center;
}

.cta-card__title {
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 400;
    color: #ffffff;
}

.cta-card__subtitle {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: #f5f5f7;
    max-width: 520px;
}

.cta-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-width: 160px;
    border-radius: 10px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.5;
    border: none;
    transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-card__btn:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.cta-card__btn:active {
    transform: translateY(0);
}

.cta-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    pointer-events: none;
    z-index: 3;
}

.cta-divider img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1023.98px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .cta-divider {     
        width: 60px;   
        margin: var(--space-3) auto;
    }
}

@media (max-width: 767.98px) {
    .cta-card {
        padding: 24px 20px;
    }

    .cta-card__title {
        font-size: 1.25rem;
    }

    .cta-card__subtitle {
        font-size: var(--font-size-xs);
    }
}

.filters-section {
    padding-block: 3.75rem;
    background: #ffffff;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: var(--space-5);
}

.filters-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.filters-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: var(--font-weight-regular);
    color: var(--color-text-main);
}

.filters-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 12px;
}

.filters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filters-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

.filters-list a::before {
    content: "\2022";
    color: var(--color-primary);
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-columns {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------
   Mobile tweaks
   ---------------------------------------------- */
@media (max-width: 767.98px) {
    .site-header__inner {
        padding-block: 0.9rem;
        gap: var(--space-3);
    }



    .categories-section {
        padding-top: 6px;
        padding-bottom: 16px;
    }

    .categories-header {
        margin-top: 40px;
        margin-bottom: 15px;
    }

    .categories-header .samples-page-title {
        font-size: 24px;
        line-height: 32px;
        font-weight: 400;
    }

    .categories-shell {
        padding-bottom: 72px;
    }

    .categories-shell--expanded {
        padding-bottom: 16px;
    }

    .cta-section {
        padding-block: .25rem;
    }

    .filters-section {
        padding-block: 1.25rem;
    }

    .footer-top,
    .footer-middle {
        gap: var(--space-4);
    }

    .footer-social {
        gap: var(--space-2);
    }

    .footer-store {
        justify-content: flex-start;
    }

    .footer-payments {
        gap: 0.65rem 0.85rem;
    }
}

/* -----------------------------------------------------------------------
   11. Pagination
   ----------------------------------------------------------------------- */
.ep-pagination {
    margin-top: var(--space-5);
    display: flex;
    justify-content: center;
}

.ep-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 4px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-main);
    font-size: var(--font-size-sm);
}

.ep-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.ep-pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* -----------------------------------------------------------------------
   12. Footer
   ----------------------------------------------------------------------- */
.site-footer {
    background: #181f35;
    color: #e5e7eb;
    padding: 3.5rem 0 3rem;
    font-size: var(--font-size-sm);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1fr;
    gap: var(--space-6);
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo img {
    width: 210px;
    height: auto;
}

.footer-locale {
    position: relative;
    width: 180px;
}

.footer-locale__toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.footer-locale__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: #1f2640;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    padding: 0.35rem 0;
    display: none;
    z-index: 3;
}

.footer-locale:hover .footer-locale__menu,
.footer-locale:focus-within .footer-locale__menu {
    display: block;
}

.footer-locale__menu a {
    display: block;
    padding: 0.55rem 0.9rem;
    color: #e5e7eb;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-info__title {
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
}

.footer-info__text {
    color: #c7ccdf;
    line-height: 1.6;
}

.footer-info__dmca img {
    display: inline-block;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    justify-content: flex-end;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 2.25rem auto;
    max-width: var(--container-width);
    width: calc(100% - 2 * var(--container-padding-inline));
}

.footer-middle {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.footer-store {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.footer-store__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-store__link > img {
    height: 46px;
    width: auto;
}

.footer-store__link--qr {
    outline: none;
}

.footer-store__qr-popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    width: 300px;
    max-width: min(300px, 80vw);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        visibility 220ms ease;
    z-index: 30;
}

.footer-store__qr-popup img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.footer-store__link--qr:hover .footer-store__qr-popup,
.footer-store__link--qr:focus .footer-store__qr-popup,
.footer-store__link--qr:focus-visible .footer-store__qr-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.footer-store__link--qr:focus-visible {
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-top: var(--space-4);
}

.footer-payments img {
    height: 28px;
    width: auto;
}

.footer-guarantee {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #c7ccdf;
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

.footer-guarantee img {
    height: 56px;
    width: auto;
}

.footer-guarantee span {
    max-width: 290px;
}

.footer-subscribe {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    align-self: center;
}

.footer-subscribe__title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.footer-subscribe__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-subscribe__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #f5b04a;
}

.footer-subscribe__form {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-subscribe__form input {
    flex: 1 1 auto;
    min-height: 62px;
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
}

.footer-subscribe__form input::placeholder {
    color: #a8adb8;
}

.footer-subscribe__form button {
    min-height: 62px;
    min-width: 96px;
    padding: 0.75rem 1.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer-subscribe__form button:hover {
    background: #ffffff;
    color: #1b1f33;
}

.footer-subscribe__note {
    font-size: 13px;
    line-height: 1.35;
    color: #f5b04a;
}

.footer-subscribe__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.footer-subscribe__consent input {
    width: 21px;
    height: 21px;
    margin: 2px 0 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    accent-color: #4763d1;
    flex: 0 0 auto;
}

.footer-subscribe__consent-text {
    color: #ffffff;
}

.footer-subscribe__consent a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.footer-subscribe__consent a:hover,
.footer-subscribe__consent a:focus-visible,
.footer-subscribe__consent a:visited {
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: 2.75rem;
    color: #e5e7eb;
}

.footer-links__toggle {
    width: 100%;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
}

.footer-links__chevron {
    position: relative;
    width: 12px;
    height: 12px;
    display: none;
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
}

.footer-links__chevron::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.footer-links__panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-links__panel a {
    display: block;
    color: #c7ccdf;
    transition: color var(--transition-fast);
}

.footer-links__panel a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 2.5rem;
    text-align: center;
    color: #c7ccdf;
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.footer-bottom p {
    margin: 0.15rem 0;
}

.page-shell #CookieBannerNotice{
    background:transparent;
    border: none;
    box-shadow: none;
}

@media (max-width: 1023.98px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

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

@media (max-width: 767.98px) {
    .footer-store__link > img {
        height: 40px;
    }

    .footer-store__qr-popup {
        width: min(260px, calc(100vw - 32px));
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .footer-links__chevron {
        display: inline-block;
    }

    .footer-links__panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .footer-links__column.is-open .footer-links__panel {
        max-height: 500px;
    }

    .footer-links__column.is-open .footer-links__chevron {
        transform: rotate(-135deg);
    }

    .footer-subscribe__form {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-subscribe__form button {
        width: 100%;
        text-align: center;
        min-width: 0;
        min-height: 52px;
        font-size: 16px;
    }

    .footer-subscribe__meta {
        gap: 8px;
    }

    .footer-subscribe__hint,
    .footer-subscribe__note {
        font-size: 12px;
        line-height: 18px;
    }

    .footer-subscribe__title {
        font-size: 24px;
        line-height: 32px;
    }

    .footer-subscribe__form input {
        min-height: 52px;
        font-size: 16px;
    }

    .footer-subscribe__consent {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (hover: none) {
    .footer-store__qr-popup {
        display: none;
    }
}

/* -----------------------------------------------------------------------
   13. Cookie banner
   ----------------------------------------------------------------------- */
.custom-btn#cookieBtnElement{
    border-radius: 16px;
}


.ep-cookie {
    margin-top: var(--space-4);
    background: #ffffff;
    border-top: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-subtle);
    padding: var(--space-4) 0;
}

.ep-cookie__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    justify-content: space-between;
}

.ep-cookie__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.ep-cookie__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.ep-cookie__actions {
    display: flex;
    gap: var(--space-2);
}

.cookiebanner {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: transparent;
    z-index: 11000;
}

.cookiebanner.is-open {
    display: flex;
}

.cookiebanner__overlay {
    position: absolute;
    inset: 0;
}

.cookiebanner__panel {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    max-height: 85vh;
    background: #ffffff;
    border: 1px solid #9aa8ff;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(52, 64, 108, 0.18);
    overflow: auto;
    padding: 24px 32px 28px;
    z-index: 1;
}

.cookiebanner__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #747477;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cookiebanner__close img {
    width: 14px;
    height: 14px;
    opacity: 0.72;
}

.cookiebanner__close:hover,
.cookiebanner__close:focus-visible {
    background: #f3f5fd;
    color: #42445a;
}

.cookiebanner__main__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #42445a;
    text-align: center;
}

.cookiebanner__main__description {
    font-size: 14px;
    color: #747477;
    line-height: 1.6;
    text-align: center;
}

.cookiebanner__buttons ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
}

.cookiebanner__buttons button,
.cookiebanner__accept-selection {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    min-width: 180px;
    font-weight: 600;
    cursor: pointer;
}

.cookiebanner__buttons__details {
    background: #3f4c88;
    color: #ffffff;
}

.cookiebanner__buttons__deny {
    background: #4c5fd1;
    color: #ffffff;
}

.cookiebanner__buttons__accept,
.cookiebanner__accept-selection {
    background: #4c5fd1;
    color: #ffffff;
}

.cookiebanner__main__additional {
    margin-top: 12px;
    font-size: 12px;
    color: #747477;
    text-align: center;
}

.cookiebanner__main__additional-link {
    color: #4763d1;
    text-decoration: underline;
}

.cookiebanner__details {
    margin-top: 16px;
    border-top: 1px solid #e3e6f5;
    padding-top: 16px;
}

.cookiebanner__preference {
    background: #f4f6ff;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.cookiebanner__preference__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookiebanner__preference__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cookiebanner__preference__ui {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #c7cbe1;
    position: relative;
    flex: 0 0 auto;
}

.cookiebanner__preference__ui__handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}

.cookiebanner__preference input[type="checkbox"]:checked + .cookiebanner__preference__label .cookiebanner__preference__ui {
    background: #4c5fd1;
}

.cookiebanner__preference input[type="checkbox"]:checked + .cookiebanner__preference__label .cookiebanner__preference__ui__handle {
    transform: translateX(20px);
}

.cookiebanner__preference__title {
    margin: 0;
    font-size: 14px;
    color: #42445a;
}

.cookiebanner__preference__toggle {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #4c5fd1;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.cookiebanner__preference__more {
    margin-top: 8px;
    font-size: 12px;
    color: #747477;
}

.cookiebanner__details__preferences__buttons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.cookiebanner__accept-selection {
    background: transparent;
    color: #4c5fd1;
    border: 1px solid #9aa8ff;
}

@media (max-width: 767.98px) {
    .cookiebanner__panel {
        padding: 20px;
        border-radius: 18px;
    }

    .cookiebanner__buttons button,
    .cookiebanner__accept-selection {
        width: 100%;
        min-width: 0;
    }
}

/* -----------------------------------------------------------------------
   15. Category archive (samples)
   ----------------------------------------------------------------------- */
.category-page .category-hero {
    padding: 3.75rem 0;
    background: linear-gradient(180deg, rgba(232, 236, 249, 0) 0%, #e8ecf9 100%);
}

.category-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    line-height: 22px;
    text-transform: capitalize;
    color: #747477;
}

.category-breadcrumbs a {
    color: #546dd4;
    font-weight: 400;
    line-height: 14px;
}

.category-breadcrumbs__home img {
    width: 16px;
    height: auto;
}

.category-breadcrumbs span {
    color: #dedee3;
}

.category-breadcrumbs span:last-child {
    color: #747477;
}

.category-hero__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.category-hero__title {
    font-size: 42px;
    line-height: 46px;
    font-weight: 400;
    color: var(--color-text-main);
}

.category-hero__search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-hero__search-field {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    min-width: 385px;
    background: #ffffff;
    border: 1px solid #dedee3;
    border-radius: 10px;
}

.category-hero__search-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.category-hero__search input {
    border: none;
    outline: none;
    min-width: 0;
    font-size: 0.95rem;
    color: var(--color-text-main);
    background: #ffffff;
        width: 100%;
}

.category-hero__search input:-webkit-autofill,
.category-hero__search input:-webkit-autofill:hover,
.category-hero__search input:-webkit-autofill:focus,
.category-hero__search input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--color-text-main);
    caret-color: var(--color-text-main);
}

.category-hero__search-submit {
    border: none;
    padding: 0.75rem 2.3rem;
    border-radius: 10px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 400;
}

.category-content {
    padding: 2.5rem 0 3.25rem;
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: 362px minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.left-sidebar {
    display: grid;
    gap: 20px;
}

.left-sidebar {
    align-self: start;
}

.filter-card {
    background: #f6f7fc;
    border: 1px solid #e6e9f5;
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.filter-card__label {
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-weight: var(--font-weight-medium);
}

.filter-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-card__chips [hidden] {
    display: none !important;
}

.filters-panel {
    background: #E8ECF9;
    border: 1px solid #e6e9f5;
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
}

.filters-panel__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    border-radius: 12px;
    background: #4763d1;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
    cursor: pointer;
}

.filters-panel__toggle-count {
    font-weight: 500;
}

.filters-panel__toggle img {
    width: 18px;
    height: 18px;
}

.filters-panel__modal {
    position: static;
}

.filters-panel__backdrop {
    display: none;
}

.filters-panel__close {
    display: none;
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.filters-panel__close img {
    width: 20px;
    height: 20px;
    display: block;
}

/* @media (min-width: 1024px) {
    .left-sidebar {
        position: sticky;
        top: 80px;
    }
} */

.filters-panel__title {
 
    color: var(--color-text-main);
    font-weight: var(--font-weight-regular);
}

.filters-panel__subtitle {
    color: #747477;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    padding: 0.25rem 0 0;
}

.filters-panel__list {
    display: grid;
    gap: 0;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    /* border-top: 1px solid #DEDEE3;
    border-bottom: 1px solid #e6e9f5; */
    padding: 0.25rem 0;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: #6d6d6d #ebebeb;
}

.filters-panel__list::-webkit-scrollbar {
    width: 4px;
}

.filters-panel__list::-webkit-scrollbar-track {
    background: #ebebeb;
    border-radius: 10px;
}

.filters-panel__list::-webkit-scrollbar-thumb {
    background: #6d6d6d;
    border-radius: 10px;
}

.filters-panel__item:last-child{
    border-bottom: 1px solid #DEDEE3;
}

.filters-panel__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-top: 1px solid #DEDEE3;
    color: var(--color-text-main);
    font-size: 0.88rem;
    cursor: pointer;
}

.filters-panel__text {
    flex: 1 1 auto;
}

.filters-panel__checkbox:checked + .filters-panel__text,
.filters-panel__item.is-active .filters-panel__text {
    color: #4763d1;
}

.filters-panel__item.is-active {
    border-top: 1px solid #4763d1;
}

.filters-panel__item:last-child {
    border-bottom: 0;
}

.filters-panel__item:hover {
    background: rgba(71, 99, 209, 0.06);
}

.filters-panel__checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #c7d0f0;
    border-radius: 5px;
    display: grid;
    place-items: center;
    margin: 0;
    flex: 0 0 auto;
}

.filters-panel__checkbox::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    opacity: 0;
}

.filters-panel__checkbox:checked {
    background: #4763d1;
    border-color: #4763d1;
}

.filters-panel__checkbox:checked::after {
    opacity: 1;
}

.filters-panel__checkbox:focus-visible {
    outline: 2px solid #4763d1;
    outline-offset: 2px;
}

.filters-panel__apply {
    border: none;
    border-radius: 12px;
    background: #4763d1;
    color: #ffffff;
    font-weight: 600;
    min-height: 48px;
    width: 100%;
    cursor: pointer;
}

.filters-panel__empty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 0.25rem;
}

@media (max-width: 1199.98px) {

    .site-header {
        z-index: 9000;
    }

    .site-header__nav {
        z-index: 9001;
    }

    .is-menu-open .site-header__nav {
        z-index: 9001;
    }

    .filters-panel__toggle {
        display: inline-flex;
        margin-bottom: 1rem;
    }

    .filters-panel__modal {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        z-index: 10000;
    }

    .filters-panel__modal.is-open {
        display: flex;
    }

    .filters-panel__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(20, 24, 44, 0.55);
        display: block;
    }

    .filters-panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 360px;
        max-height: 78vh;
        overflow: auto;
        padding: 1.25rem;
        box-sizing: border-box;
        background: #ffffff;
    }

    .filters-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .filters-panel__close {
        display: inline-flex;
    }
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e0e7ff;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.filter-chip--toggle {
    border: 0;
    background: #e8ecf9;
    color: #4763d1;
    cursor: pointer;
}

.filter-chip--toggle:hover {
    background: #dde3f7;
}

.category-seo-intro {
    margin: 0;
    padding: 0 0.25rem;
}

.category-seo-intro p {
    margin: 0;
    color: #747477;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.category-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #dedee3;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.category-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.category-card__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #42445a;
    margin: 0;
}


.sample-related-card:hover,
.category-card:hover,
.category-card:focus-within {
    background: rgba(71, 99, 209, 0.02);
    border-color: var(--color-primary-strong);
}

.category-card:hover .category-card__title,
.category-card:focus-within .category-card__title {
    color: var(--color-primary);
}

.category-card__excerpt {
    margin: 0;
    color: #747477;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 44px;
}

.category-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1 1 auto;
    align-content: center;
}

.sample-related-card .meta-pill,
.sample-hero__meta .meta-pill,
.category-card__meta .meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 119px;
    background: #f5f5f7;
    color: #42445a;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
}

.category-card__btn {
    align-self: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #e8ecf9;
    color: #4763d1;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(120deg, #4763d1 0%, #3b59ce 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.category-cta__content--inline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-cta__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-cta--with-art {
    background: url('img/sample-cta-top.svg') center/cover no-repeat, linear-gradient(120deg, #4763d1 0%, #3b59ce 100%);
}

.category-cta__content h3 {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.category-cta__content p {
    margin: 0.25rem 0 0;
    color: #f5f5f7;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.category-cta__rating img {
    height: 26px;
    width: auto;
    margin-top: 0.35rem;
}

.category-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 48px;
    border-radius: 8px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border: none;
}

.category-cta--secondary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(160deg, #4763d1 0%, #3b59ce 100%);
    margin-top: 0.75rem;
}

.category-cta__avatars {
    margin-top: 0.6rem;
    width: 200px;
    height: auto;
}

.category-cta__art {
    flex: 0 0 auto;
    width: 82px;
    height: auto;
    opacity: 0.9;
}

.category-cta--secondary .category-cta__content {
    flex: 1 1 0;
}

.category-cta--secondary .category-cta__content h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.category-cta--secondary .category-cta__content p {
    font-size: 14px;
    line-height: 22px;
    margin-top: 0.35rem;
    font-weight: 400;
}

.category-cta__row .category-cta__avatars {
    margin-top: 0;
    width: 180px;
}

.search-results {
    padding: 2.5rem 0 3rem;
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.5rem 16px 0;
}

.search-empty__image {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.search-empty__image img {
    width: 200px;
    height: auto;
}

.search-empty__title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-main);
}

.search-empty__text {
    /* max-width: 520px; */
    color: #747477;

    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .search-empty__text {
        max-width: 100%;
        width: 100%;
    }
}

.search-empty__divider {
    width: 100%;
    margin-top: 2.5rem;
    border-top: 1px solid #D9D9D9;
}

.search-grid {
    display: grid;
    grid-template-columns: 362px minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.search-sidebar {
    display: grid;
    gap: 20px;
}

.search-cta {
    background: url('img/search-cta-bg.svg') center/cover no-repeat, linear-gradient(160deg, #4763d1 0%, #3b59ce 100%);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    color: #ffffff;
}

.search-cta__heading {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.search-cta__text {
    margin: 0;
    font-size: 1rem;
}

.search-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    min-width: 140px;
    border-radius: 10px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 400;
    border: none;
    width: 100%;
}

.search-cta__avatars img {
    width: 140px;
    height: auto;
}

.sample-layout {
    padding: 3.75rem 0 3.5rem;
    background: #ffffff;
}

.sample-layout__grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.sample-writer-card {
    background: #ffffff;
    border: 1px solid #dedee3;
    border-radius: 20px;
    padding: 0;
    display: grid;
    gap: 0;
    box-shadow: none;
}

.sample-writer-card--mobile {
    display: none;
}

.sample-writer__inner {
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.sample-writer__header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sample-writer__avatar-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
}

.sample-writer__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.sample-writer__online {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 16px;
    background: #34a180;
    border: 3px solid #ffffff;
    right: -2px;
    bottom: -2px;
    cursor: default;
}

.sample-writer__online--offline {
    background: #c9ced8;
}

.sample-writer__online::after,
.sample-writer__online::before {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sample-writer__online::after {
    content: attr(data-status);
    right: -6px;
    bottom: 26px;
    background: #42445a;
    color: #ffffff;
    font-size: 11px;
    line-height: 16px;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: nowrap;
    transform: translateY(4px);
}

.sample-writer__online::before {
    content: "";
    right: 6px;
    bottom: 20px;
    border: 5px solid transparent;
    border-top-color: #42445a;
    transform: translateY(4px);
}

.sample-writer__online:hover::after,
.sample-writer__online:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.sample-writer__name {
    font-weight: 600;
    color: var(--color-text-main);
}

.sample-writer__role {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.sample-writer__highlights {
    display: grid;
    gap: 0.75rem;
}

.sample-writer__highlights-title {
    font-size: 12px;
    color: #747477;
    font-weight: 400;
}

.sample-writer__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.sample-writer__pills .pill {
    padding: 5px 8px;
    background: #f5f5f7;
    border-radius: 999px;
    font-size: 12px;
    color: #42445a;
}

.sample-writer__highlights-toggle {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-self: flex-start;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    border: 0;
    background: #f5f5f7;
    color: #42445a;
    font-size: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    cursor: pointer;
}

.sample-writer__highlights-toggle:hover {
    background: #ececf0;
}

.sample-writer__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: center;
}



.sample-writer__stat-value {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    color: #42445a;
}

.sample-writer__stat-value img {
    width: 16px;
    height: 16px;
}

.sample-writer__stat-label {
    color: #747477;
    font-size: 12px;
    line-height: 1.4;
}

.sample-writer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 400;
    border: none;
    width: 100%;
    font-size: 16px;
}

.sample-writer__btn--ghost {
    background: #e8ecf9;
    color: #546dd4;
}

.sample-writer__benefits-box {
    background: #f5f5f7;
    border-radius: 0 0 20px 20px;
    padding: 1.5rem;
    margin-top: 0;
}

.sample-writer__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 14px;
}

.sample-writer__benefits li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sample-writer__benefits li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url('img/icon-check.svg') center/contain no-repeat;
    flex: 0 0 auto;
}

.sample-content {
    display: grid;
    gap: 1.75rem;
    min-width: 0;
}

.sample-content__heading {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 400;
    color: #0e101a;
}

.sample-content__subheading {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 32px 0 16px;
}

.sample-content p {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 32px 0 16px;
}

.sample-content__body {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sample-content__body table {
    width: fit-content !important;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    display: block;
    overflow-x: auto;
    margin: 24px auto;
    background: #ffffff;
    border: 1px solid black;
    border-radius: 2px;
}

.sample-content__body table td,
.sample-content__body table th {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border-subtle);
    border-right: 1px solid var(--color-border-subtle);
}

.sample-content__body table tr:last-child td,
.sample-content__body table tr:last-child th {
    border-bottom: 0;
}

.sample-content__body table td:last-child,
.sample-content__body table th:last-child {
    border-right: 0;
}

.sample-content__body table p {
    margin: 0;
    color: var(--color-text-muted);
}

.sample-content__body table .sample-content__subheading {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-main);
}

.sample-content__body pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.sample-content__body img,
.sample-content__body iframe {
    max-width: 100%;
    height: auto;
}

.sample-inline-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    align-items: center;
    margin-top: 32px;
    padding: 1.75rem 2rem;
    border-radius: 24px;
    background:
        url('img/single-cta-bg.svg') center/cover no-repeat,
        linear-gradient(160deg, #4763d1 0%, #3b59ce 100%);
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
    min-height: 283px;
}

.sample-inline-cta::before {
    content: none;
}

.sample-inline-cta__content {
    display: grid;
    gap: 0.5rem;
    z-index: 1;
    margin-left: auto;
    max-width: 520px;
}

.sample-inline-cta__content h4 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
    color: #ffffff;
}

.sample-inline-cta__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.sample-inline-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 400;
    border: none;
    width: fit-content;
}

.sample-inline-cta__art {
    display: none;
}

.sample-offload-cta {
    position: relative;
    margin: 32px 0;
    padding: 1.5rem;
    border-radius: 20px;
    background:
        url('img/single-expert-bg.webp') 85% center / cover no-repeat,
        linear-gradient(150deg, #4763d1 0%, #3b59ce 100%);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    min-height: 283px;
    overflow: hidden;
}

.sample-offload-cta__text {
    max-width: 520px;
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) and (max-width: 999.98px) {
    .sample-offload-cta__text {
        max-width: min(520px, 56%);
    }
}

.sample-offload-cta__text h4 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 400;
}

.sample-offload-cta__text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    line-height: 1.375rem;
    font-weight: 400;
}

.sample-offload-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    border: none;
    width: fit-content;
}

.sample-offload-cta__note {
    color: #dedee3;
    font-size: 0.75rem;
    line-height: 1.25rem;
    font-weight: 400;
        padding-top: 0.3rem;
}

body.modal-open {
    overflow: hidden;
}

body.filters-modal-open {
    overflow: hidden;
}

.plagiarism-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

.plagiarism-modal.is-open {
    display: flex;
}

.plagiarism-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 44, 0.55);
}

.plagiarism-modal__panel {
    position: relative;
    z-index: 1;
    width: min(448px, 92vw);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 20, 40, 0.3);
}

.plagiarism-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #1f2233;
    cursor: pointer;
    font-weight: 400;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plagiarism-modal__close img {
    width: 24px;
    height: 24px;
    display: block;
}

.plagiarism-modal__top {
    background: #e5eaff;
    height: 136px;
    overflow: hidden;
    padding: 0;
}

.plagiarism-modal__art {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.plagiarism-modal__art-img {
    width: auto;
    height: 80%;
    max-width: none;
    object-fit: contain;
    display: block;
}

.plagiarism-modal__percent {
    position: absolute;
    right: 24px;
    bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: #e50f16;
}

.plagiarism-modal__body {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.plagiarism-modal__body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #42445a;
}

.plagiarism-modal__body p {
    margin: 0;
    color: #747477;
    font-size: 14px;
    line-height: 22px;
}

.plagiarism-modal__cta {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f57b0a;
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
}

.plagiarism-modal__divider {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888fab;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    width: 100%;
}

.plagiarism-modal__divider::before,
.plagiarism-modal__divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #EFEFEF;
}

.plagiarism-modal__benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #9aa0b5;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

.plagiarism-modal__download {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    padding: 8px 12px;
    min-height: 40px;
    border-radius: 8px;
    background: #e8ecf9;
    color: #4763d1;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.plagiarism-modal__download:disabled {
    opacity: 0.7;
    cursor: default;
}

.plagiarism-modal__download-icon {
    width: 20px;
    height: 20px;
}

.plagiarism-modal__error {
    color: #e4504f;
    font-size: 0.95rem;
}

@media (min-width: 1024px) {
    .sample-offload-cta {
        padding-right: 22rem;
        padding-left: 3rem;
    }
}

.sample-expert__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.sample-expert__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sample-expert__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #f57b0a;
    padding: 0.25rem 0.6rem;
    background: #fff4e0;
    border-radius: 10px;
    font-size: 0.95rem;
}

.sample-expert__rating img {
    width: 14px;
    height: 14px;
}

.sample-expert__tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.sample-references {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sample-references__title {
    margin: 0;
    color: #22273a;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.sample-references__list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    /* list-style: decimal; */
    list-style-position: outside;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sample-related {
    padding: 3.75rem 0 4.25rem;
    background: #ffffff;
}

.sample-related__header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.sample-related__title {
    font-size: 2.625rem;
    line-height: 1.25;
    font-weight: 400;
    color: var(--color-text-main);
}

.sample-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.sample-related-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid #dedee3;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
}

.sample-related-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sample-related-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-text-main);
}

.sample-related-card__excerpt {
    margin: 0;
    color: #747477;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sample-related-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sample-related-card .meta-pill {
    padding: 0.35rem 0.75rem;
    background: #f5f5f7;
    color: var(--color-text-main);
    font-size: var(--font-size-xs);
    line-height: 1.25rem;
}

.sample-related__footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.sample-related__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    border-radius: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: var(--font-size-md);
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sample-related__btn:hover {
    transform: none;
    box-shadow: none;
}




@media (max-width: 1123.98px) {
    .sample-layout__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sample-inline-cta,
    .sample-offload-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .sample-related__grid {
        grid-template-columns: 1fr;
    }    .sample-writer-card {
        border-radius: 16px;
    }

    .sample-writer-card--mobile {
        display: block;
        margin-top: 1.5rem;
        border: none;
    
  
    }

    .sample-writer-card--mobile .sample-writer__details-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .sample-writer-card--mobile .sample-writer__details {
        display: none;
        gap: 1rem;
        padding-top: 0.25rem;
    }

    .sample-writer-card--mobile .sample-writer__details-toggle:checked ~ .sample-writer__details {
        display: grid;
    }

    .sample-writer-card--mobile .sample-writer__benefits-box {
        border-radius: 16px;
        padding: 1.25rem;
    }

    .sample-writer-card--mobile .sample-writer__actions--mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: center;
    }

    .sample-writer-card--mobile .sample-writer__details-btn-expanded {
        display: none;
    }

    .sample-writer-card--mobile .sample-writer__details-toggle:checked ~ .sample-writer__actions--mobile .sample-writer__details-btn-collapsed {
        display: none;
    }

    .sample-writer-card--mobile .sample-writer__details-toggle:checked ~ .sample-writer__actions--mobile .sample-writer__details-btn-expanded {
        display: inline;
    }

    .sample-writer-card--mobile .sample-writer__details-toggle:checked ~ .sample-writer__actions--mobile .sample-writer__details-btn {
        background: #7a8ef5;
        color: #ffffff;
    }

    .sample-writer-card:not(.sample-writer-card--mobile) {
        display: none;
    }

    .sample-writer__inner {
        padding: 0;
        gap: 1rem;
    }

    .sample-writer__header {
        gap: 0.75rem;
    }

    .sample-writer__avatar-wrap {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .sample-writer__avatar {
        width: 50px;
        height: 50px;
    }

    .sample-writer__online {
        width: 16px;
        height: 16px;
        border-width: 3px;
        right: -4px;
        bottom: -2px;
    }

    .sample-writer__name {
        font-size: 16px;
        line-height: 24px;
    }

    .sample-writer__role {
        font-size: 14px;
        line-height: 22px;
    }

}

@media (max-width: 949.98px) and (min-width: 768px) {
    .sample-inline-cta {
        min-height: 240px;
        padding: 1.25rem 1.5rem;
        background:
            url('img/single-cta-bg.svg') left center / auto 100% no-repeat,
            linear-gradient(160deg, #4763d1 0%, #3b59ce 100%);
    }

    .sample-inline-cta__content {
        max-width: 360px;
        gap: 0.4rem;
    }

    .sample-inline-cta__content h4 {
        font-size: 1.35rem;
    }

    .sample-inline-cta__content p {
        font-size: 0.95rem;
    }

    .sample-inline-cta__btn {
        padding: 0.75rem 1.4rem;
    }
}

@media (max-width: 767.98px) {

.search-results {
        padding: 2.5rem 0 1rem;
    }

    .search-empty {
            padding: 0 16px;
    }

    .sample-breadcrumbs {
        display: flex;
        padding: 0 1rem;
    }

    .plagiarism-modal__panel {
        border-radius: 12px;
    }

    .plagiarism-modal__top {
        height: 120px;
    }

    .plagiarism-modal__art {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    .plagiarism-modal__art-img {
        height: 70%;
        width: auto;
        max-width: 100%;
    }

    .plagiarism-modal__percent {
        right: 36px;
        bottom: auto;
        transform: translateY(-50%);
        font-size: 18px;
        line-height: 26px;
    }

    .plagiarism-modal__body {
        padding: 20px;
    }

    .plagiarism-modal__body h3 {
        font-size: 15px;
        line-height: 22px;
    }

    .sample-page .category-breadcrumbs {
        width: 100%;
        gap: 0.45rem;
        font-size: 12px;
        line-height: 22px;
        color: #747477;
        text-transform: capitalize;
        white-space: nowrap;
    }

    .sample-page .category-breadcrumbs a {
        font-size: 12px;
        line-height: 14px;
        font-weight: 400;
        color: #546dd4;
    }

    .sample-page .category-breadcrumbs__home img {
        width: 16px;
        height: 16px;
    }

    .sample-page .category-breadcrumbs span {
        color: #d5d8e3;
    }

    .sample-page .category-breadcrumbs span:last-child {
        color: #747477;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sample-title {
        font-size: 1.75rem;
        line-height: 2.2rem;
        margin: 0 0 1.25rem;
    }

    .sample-content {
        gap: 1.25rem;
    }

    .sample-content__heading {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .sample-content__subheading {
        font-size: 1.05rem;
        line-height: 1.5;
        margin: 24px 0 12px;
    }

    .sample-content p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .sample-hero__meta {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #eef0f6;
        border-bottom: 1px solid #eef0f6;
    }

    .sample-hero__meta-list {
        gap: 0.5rem;
    }

    .sample-hero__meta .meta-pill,
    .sample-download {
        font-size: var(--font-size-xs);
    }

    .sample-download {
        margin-left: 0;
        width: auto;
        align-self: flex-start;
        justify-content: center;
    }

    .sample-download--block {
        width: 100%;
        min-height: 0;
        padding: 16px 12px;
        border-radius: 16px;
        background: #e8ecf9;
        border: none;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        color: #4763d1;
        justify-content: center;
    }

    .sample-download--block .sample-download__icon {
        width: 20px;
        height: 20px;
    }


    .sample-writer__highlights,
    .sample-writer__benefits-box {
        /* display: none; */
    }

    .sample-writer__stats {
        /* display: none; */
    }



    .sample-writer__btn {
        min-height: 46px;
        padding: 12px 12px;
        border-radius: 16px;
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }

    .sample-layout {
        padding: 2.25rem 0 2.75rem;
    }

    .sample-inline-cta {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        text-align: center;
        padding: 24px;
        min-height: 510px;
        gap: 1rem;
        background:
            url('img/single-cta-bg-img.svg') top center / 100% auto no-repeat,
            linear-gradient(160deg, #4763d1 0%, #3b59ce 100%);
        border-radius: 22px;
        box-shadow: 0 12px 34px rgba(71, 99, 209, 0.22);
    }

    .sample-inline-cta::before {
        content: none;
    }

    .sample-inline-cta__content {
        width: 100%;
        margin: 0;
        justify-items: center;
        text-align: center;
        gap: 0.9rem;
        padding-top: 5.5rem;
    }

    .sample-inline-cta__btn,
    .sample-offload-cta__btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
        border-radius: 16px;
        font-size: 16px;
        line-height: 24px;
    }

    .sample-inline-cta__art {
        display: none;
    }

    .sample-offload-cta {
        padding: 24px;
        min-height: 510px;
        text-align: center;
        justify-content: flex-end;
        gap: 1rem;
        background:
            url('img/single-expert-bg-img.webp') top center / 100% auto no-repeat,
            linear-gradient(150deg, #4763d1 0%, #3b59ce 100%);
        border-radius: 22px;
    }

    .sample-offload-cta__text {
        justify-items: center;
        text-align: center;
        gap: 16px;
        margin-top: auto;
    }

    .sample-offload-cta__text h4 {
        font-size: 24px;
        line-height: 32px;
        font-weight: 400;
    }

    .sample-offload-cta__text p {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }

    .sample-offload-cta__btn {
        min-height: 48px;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }

    .sample-related {
        padding: 3rem 0 3.5rem;
    }

    .sample-related__header {
        margin-bottom: 1.5rem;
    }

    .sample-related__title {
        font-size: 2.25rem;
    }

    .sample-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}





@media (max-width: 767.98px) {
    .sample-related {
        padding: 2.5rem 0 3rem;
    }

    .sample-related__header {
        margin-bottom: 1.25rem;
    }

    .sample-related__title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .sample-related__grid {
        grid-template-columns: 1fr;
    }

    .sample-related-card {
        padding: 1.25rem;
    }

    .sample-related__footer {
        margin-top: 1.5rem;
    }

    .sample-related__btn {
        width: 100%;
    }
}
.category-bottom-cta {
    padding: 3rem 16px;
 
}

.category-bottom-cta__inner {
    background: url('img/sample-footer-bg.svg') center/cover no-repeat;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-bottom-cta__content h3 {
    margin: 0.35rem 0 0.25rem;
    font-size: 2rem;
    font-weight: 400;
}

.category-bottom-cta__content p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.category-bottom-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 400;
    min-width: 200px;
}

.category-bottom-cta__rating img {
    height: 28px;
    width: auto;
    margin-top: 0.5rem;
}

.category-bottom-cta__badge {
    width: 218px;
    height: auto;
    margin-bottom: 0.25rem;
}

.category-seo-long {
    background: #ece7fe;
    padding: 3.75rem 0;
}

.category-seo-long__inner {
    position: relative;
    padding: 0 12px;
}

.category-seo-long__inner::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(236, 231, 254, 0) 0%, #ece7fe 100%);
    pointer-events: none;
    z-index: 2;
}

.category-seo-long__scroller {
    position: relative;
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 68, 90, 0.45) transparent;
}

.category-seo-long__scroller::-webkit-scrollbar {
    width: 3px;
}

.category-seo-long__scroller::-webkit-scrollbar-track {
    background: transparent;
}

.category-seo-long__scroller::-webkit-scrollbar-thumb {
    background: rgba(66, 68, 90, 0.45);
    border-radius: 18px;
}

.category-seo-long__content {
    position: relative;
    z-index: 1;
    padding-bottom: 52px;
    color: #747477;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
}

.category-seo-long__content h1,
.category-seo-long__content h2,
.category-seo-long__content h3,
.category-seo-long__content h4,
.category-seo-long__content h5,
.category-seo-long__content h6 {
    margin: 0 0 0.75rem;
    color: #42445a;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.category-seo-long__content p {
    margin: 0 0 0.95rem;
}

.category-seo-long__content p:last-child {
    margin-bottom: 0;
}

.category-seo-long__content ul,
.category-seo-long__content ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.category-seo-long__content li + li {
    margin-top: 0.45rem;
}

@media (max-width: 1199.98px) {


    .category-bottom-cta__rating img{
    height: 48px;
}

    .category-seo-long {
        padding: 3rem 0;
    }

    .category-seo-long__scroller {
        max-height: 320px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .category-hero__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-hero__search {
        width: 100%;
    }

    .sample-body__grid {
        grid-template-columns: 1fr;
    }

    .sample-cta__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .category-hero__title {
    font-size: 30px;       
        line-height: 38px;
    }

    .category-hero__search {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
    }

    .category-hero__search-field {
        flex: 1 1 auto;
        min-width: 0;
    }

    .category-cta {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    .category-cta--secondary {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .category-cta__art {
        width: 82px;
    }

    .search-cta {
        padding: 1.25rem 1rem;

    }

    .search-cta__btn {
        width: 100%;
    }

    .category-bottom-cta__inner {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
    }

    .category-seo-intro {
        margin: 0;
        padding: 0;
    }

    .category-seo-long {
        padding: 2.25rem 0;
    }

    .category-seo-long__inner {
        padding: 0;
    }

    .category-seo-long__inner::after {
        left: 0;
        right: 0;
    }

    .category-seo-long__scroller {
        max-height: 360px;
        padding: 0.75rem 0 0.75rem;
    }

    .category-card {
        padding: 16px;
        gap: 16px;
    }

    .category-card__title {
        font-size: 16px;
        line-height: 24px;
    }

    .category-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .category-cta--secondary,
        .category-cta__row {
        justify-content: center;
    }

    .category-cta__content h3 {
        font-size: 20px;
        line-height: 28px;
        font-weight: 400;
                text-align: center;
    }

    .category-cta__content p {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
                text-align: center;
    }

    .category-cta__btn {
        width: 100%;
        justify-content: center;
    }

    .category-bottom-cta__content h3 {
        font-size: 1.6rem;
    }

    .category-bottom-cta__content p {
        font-size: 1rem;
    }

    .category-bottom-cta__btn {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }


    .category-card__btn {
        width: 100%;
        justify-content: center;
    }

    .sample-body__grid {
        gap: 1.5rem;
    }

    .sample-cta__btn {
        width: 100%;
        justify-content: center;
    }

    .sample-cta__art img {
        width: 200px;
    }

    .sample-expert {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .ep-cookie__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ep-cookie__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* -----------------------------------------------------------------------
   14. Utilities
   ----------------------------------------------------------------------- */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.hide { display: none !important; }
