@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

.archery-news-slider,
.archery-news-slider * {
    box-sizing: border-box;
}

.archery-news-slider {
    --ans-bg: #fbf3e5;
    --ans-paper: #fffaf1;
    --ans-dark: #2d1b10;
    --ans-text: #6d5846;
    --ans-gold: #b78332;
    --ans-gold-light: #d9b66e;
    --ans-green: #10271e;
    --ans-border: #d9bd91;

    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 90px 0 95px;
    background:
        linear-gradient(
            rgba(251, 243, 229, .96),
            rgba(251, 243, 229, .96)
        ),
        repeating-linear-gradient(
            0deg,
            rgba(87, 56, 31, .025) 0,
            rgba(87, 56, 31, .025) 1px,
            transparent 1px,
            transparent 5px
        );
    color: var(--ans-dark);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.archery-news-slider__container {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.archery-news-slider__pattern {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(183, 131, 50, .11);
    border-radius: 50%;
    pointer-events: none;
}

.archery-news-slider__pattern::before,
.archery-news-slider__pattern::after {
    position: absolute;
    border: 1px solid rgba(183, 131, 50, .08);
    border-radius: 50%;
    content: "";
}

.archery-news-slider__pattern::before {
    inset: 34px;
}

.archery-news-slider__pattern::after {
    inset: 70px;
}

.archery-news-slider__pattern--one {
    top: -190px;
    right: -140px;
}

.archery-news-slider__pattern--two {
    bottom: -220px;
    left: -170px;
}

.archery-news-slider__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.archery-news-slider__heading {
    max-width: 760px;
}

.archery-news-slider__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ans-gold);
    font-size: 13px;
    font-weight: 800;
}

.archery-news-slider__eyebrow::before {
    width: 36px;
    height: 1px;
    background: currentColor;
    content: "";
}

.archery-news-slider__heading h2 {
    margin: 12px 0 10px;
    color: var(--ans-dark);
    font-size: clamp(35px, 4.8vw, 52px);
    font-weight: 800;
    line-height: 1.25;
}

.archery-news-slider__divider {
    display: flex;
    max-width: 220px;
    align-items: center;
    gap: 8px;
    color: var(--ans-gold);
}

.archery-news-slider__divider span {
    height: 1px;
    flex: 1;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ans-gold),
            transparent
        );
}

.archery-news-slider__divider b {
    font-size: 11px;
}

.archery-news-slider__controls {
    display: flex;
    gap: 9px;
}

.archery-news-slider__button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(183, 131, 50, .45);
    border-radius: 50%;
    background: rgba(255, 250, 241, .86);
    color: var(--ans-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 20px;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.archery-news-slider__button:hover {
    background: var(--ans-green);
    color: #fff;
    transform: translateY(-2px);
}

.archery-news-slider__viewport {
    overflow: hidden;
    width: 100%;
}

.archery-news-slider__track {
    display: flex;
    gap: 22px;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.archery-news-card {
    min-width: calc((100% - 66px) / 4);
    overflow: hidden;
    border: 1px solid var(--ans-border);
    border-radius: 14px;
    background: var(--ans-paper);
    box-shadow:
        0 15px 38px rgba(78, 50, 29, .08);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.archery-news-card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 24px 56px rgba(78, 50, 29, .14);
}

.archery-news-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 215px;
}

.archery-news-card__image::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(34, 20, 12, .38)
        );
    content: "";
}

.archery-news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.archery-news-card:hover .archery-news-card__image img {
    transform: scale(1.06);
}

.archery-news-card__category {
    position: absolute;
    right: 15px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ans-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.archery-news-card__content {
    padding: 20px 19px 21px;
}

.archery-news-card__content time {
    color: #8a735e;
    font-size: 10px;
    font-weight: 600;
}

.archery-news-card__content h3 {
    min-height: 54px;
    margin: 9px 0 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;
}

.archery-news-card__content h3 a {
    color: var(--ans-dark);
    text-decoration: none;
}

.archery-news-card__content p {
    min-height: 69px;
    margin: 0;
    color: var(--ans-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.85;
}

.archery-news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--ans-gold);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.archery-news-card__link::after {
    content: "←";
}

.archery-news-card__link:hover {
    color: var(--ans-green);
}

.archery-news-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.archery-news-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(45, 27, 16, .24);
    cursor: pointer;
    transition:
        width .22s ease,
        background .22s ease;
}

.archery-news-slider__dot.is-active {
    width: 28px;
    background: var(--ans-green);
}

@media (max-width: 1024px) {
    .archery-news-card {
        min-width: calc((100% - 44px) / 3);
    }
}

@media (max-width: 760px) {
    .archery-news-slider {
        padding: 68px 0 76px;
    }

    .archery-news-slider__container {
        width: min(100% - 24px, 1220px);
    }

    .archery-news-slider__header {
        align-items: center;
    }

    .archery-news-card {
        min-width: calc((100% - 22px) / 2);
    }

    .archery-news-card__image {
        height: 205px;
    }
}

@media (max-width: 520px) {
    .archery-news-slider__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .archery-news-slider__controls {
        align-self: flex-end;
    }

    .archery-news-card {
        min-width: 100%;
    }

    .archery-news-card__content h3,
    .archery-news-card__content p {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .archery-news-slider__track,
    .archery-news-card,
    .archery-news-card__image img {
        transition: none;
    }
}
