/* =========================================
   READ SECTION
   Scoped component styles only
========================================= */

.read-section {
    --read-purple: #8B5CF6;
    --read-purple-light: #A855F7;
    --read-background: #050505;
    --read-text: #ffffff;
    --read-muted: #a9a9b2;
    --read-border: rgba(255,255,255,0.09);

    width: 100%;
    padding: 100px 24px;
    background: var(--read-background);
    color: var(--read-text);
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.read-section *,
.read-section *::before,
.read-section *::after {
    box-sizing: border-box;
}

.read-section__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Header */

.read-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 48px;
}

.read-section__eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--read-purple-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.read-section__header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.read-section__intro {
    max-width: 390px;
    margin: 0 0 5px;
    color: var(--read-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Slide layout */

.read-section__slider {
    position: relative;
    width: 100%;
}

.read-section__slide {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 58px;
    width: 100%;
    animation: readSectionFadeIn 0.45s ease both;
}

.read-section__slide[hidden] {
    display: none;
}

/* Image */

.read-section__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: #111111;
    border: 1px solid var(--read-border);
}

.read-section__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.read-section__slide:hover .read-section__image img {
    transform: scale(1.025);
}

/* Article content */

.read-section__content {
    min-width: 0;
    padding-top: 8px;
}

.read-section__category {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--read-purple-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.read-section__content h3 {
    margin: 0 0 25px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

/* Long description */

.read-section__description {
    color: #b8b8c0;
    font-size: 14px;
    line-height: 1.95;
}

.read-section__description p {
    margin: 0 0 18px;
}

.read-section__description p:last-child {
    margin-bottom: 0;
}

/* Navigation controls */

.read-section__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 35px;
    padding-top: 22px;

    border-top: 1px solid var(--read-border);
}

.read-section__counter {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.read-section__counter-divider {
    color: #65616e;
}

.read-section__navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-section__button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;
    border: 1px solid rgba(139,92,246,0.45);
    border-radius: 50%;

    background: rgba(139,92,246,0.08);
    color: #ffffff;

    font: inherit;
    font-size: 22px;
    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.read-section__button:hover {
    background: var(--read-purple);
    border-color: var(--read-purple);
    transform: translateY(-2px);
}

.read-section__button:focus-visible {
    outline: 2px solid var(--read-purple-light);
    outline-offset: 4px;
}

/* Slide entrance */

@keyframes readSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


*/optimize*/


/* =========================================
   READ SECTION - RESPONSIVE OPTIMIZATION
========================================= */

/* Tablet */

@media (max-width: 900px) {
    .read-section {
        padding: 80px 24px;
    }

    .read-section__header {
        margin-bottom: 35px;
    }

    .read-section__slide {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 32px;
    }

    .read-section__image {
        aspect-ratio: 3 / 4;
        border-radius: 15px;
    }

    .read-section__content h3 {
        font-size: clamp(25px, 3.5vw, 32px);
    }

    .read-section__description {
        font-size: 13px;
        line-height: 1.85;
    }

    .read-section__description p {
        margin-bottom: 15px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .read-section {
        padding: 65px 18px;
    }

    .read-section__header {
        display: block;
        margin-bottom: 30px;
    }

    .read-section__header h2 {
        font-size: 38px;
    }

    .read-section__intro {
        max-width: 100%;
        margin-top: 14px;
        font-size: 13px;
    }

    .read-section__slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .read-section__image {
        aspect-ratio: 16 / 10;
        border-radius: 13px;
    }

    .read-section__content {
        padding-top: 0;
    }

    .read-section__category {
        margin-bottom: 13px;
    }

    .read-section__content h3 {
        margin-bottom: 18px;
        font-size: 27px;
        line-height: 1.3;
    }

    .read-section__description {
        font-size: 14px;
        line-height: 1.85;
    }

    .read-section__description p {
        margin-bottom: 16px;
    }

    .read-section__controls {
        margin-top: 25px;
        padding-top: 18px;
    }

    .read-section__button {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

/* Small mobile */

@media (max-width: 380px) {
    .read-section {
        padding: 55px 14px;
    }

    .read-section__content h3 {
        font-size: 24px;
    }

    .read-section__description {
        font-size: 13px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .read-section__slide {
        animation: none;
    }

    .read-section__image img,
    .read-section__button {
        transition: none;
    }
}