/* ═══════════════════════════════════════════════════════════════════════════
   NEWS / BLOG  (Swiper slider)
   Figma: 1400px inner, 3 cards × 440px, gap-40px
   Card content: full box border rgba(51,54,57,0.3)
   Nav: image-based 50×40px buttons + image-based dots 25×20px
═══════════════════════════════════════════════════════════════════════════ */

.section-news {
    padding: 100px 0;
    background: var(--white);
}

.section-news__inner {
    width: 1400px;
    margin: 0 auto;
}

.section-news__head {
    gap: 20px;
    margin-bottom: 50px;
}

.section-news__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 49px;
    line-height: 1;
    color: var(--black);
}

/* ─── Swiper overrides ──────────────────────────────────────────────────── */

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

.news-swiper .swiper-wrapper {
    align-items: stretch;
}

.news-swiper .swiper-slide {
    height: auto;
}

/* news card */
.news-card {
    width: 440px;
    flex-shrink: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.news-card__image {
    height: 247px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.news-card__image img.absolute { object-position: center; }

/* decorative top mask */
.news-card__mask {
    left: 0;
    right: 0;
    top: -1px;
    height: 41px;
    pointer-events: none;
    background-color: var(--white);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
    transition: all 0.3s ease-in-out;
}
.news-card:hover .news-card__mask {
    transform: translateY(-100%);
}
.news-card__mask img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }

/* hover "Learn more" button (accent center + right piece) */
.news-card__hover-btn {
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}
.news-card__image:hover .news-card__hover-btn {
    left: 50%;
    opacity: 1;
}

.news-card__btn-center {
    background: var(--accent);
    padding: 10px 10px 10px 20px;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
    white-space: nowrap;
    height: 40px;
}

.news-card__btn-right {
    position: relative;
    left: -1px;
    width: 20px;
    height: 40px;
    flex-shrink: 0;
}
.news-card__btn-right img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; max-width: none;
}

/* card content: FULL BOX border */
.news-card__content {
    background: var(--white);
    border: 1px solid var(--black-30);
    padding: 20px;
    gap: 10px;
    flex: 1;
    transition: all 0.3s ease-in-out;
}
.news-card:hover .news-card__content {
    border-color: var(--black);
}

.news-card__tags { gap: 10px; flex-wrap: wrap; }

/* ─── News tag (5px arrow, image-based) ─────────────────────────────────── */

.news-tag {
    background: var(--second-bg);
    border-left: 2px solid var(--accent);
    height: 21px;
    padding: 2px 2px 2px 5px;
    display: inline-flex;
    align-items: flex-start;
    flex-shrink: 0;
    position: relative;
    margin-right: 5px;
}
.news-tag span {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    color: var(--black-70);
    white-space: nowrap;
}
.news-tag__arrow {
    position: absolute;
    right: -5px; top: 0; bottom: 0;
    width: 5px;
}
.news-tag__arrow img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; max-width: none;
}

.news-card__title {
    margin-bottom: 8px;
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 31px;
    line-height: 115%;
    text-transform: capitalize;
    color: var(--black);
    height: 76px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-card__title a {
    text-decoration: none;
}
.news-card__title a:hover {
    text-decoration: underline;
}

.news-card__excerpt {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: normal;
    color: var(--black-70);
    height: 82px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.news-card__meta {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    padding-top: 10px;
    width: 100%;
}

/* ─── Slider controls ───────────────────────────────────────────────────── */

.news-slider__controls {
    position: relative;
    z-index: 5;
    gap: 0;
    margin-top: 40px;
}
body.home .news-slider__controls {
    margin-top: 20px;
}
body.home .section-news__btn-wrap {
    margin-top: 20px;
}

/* nav buttons: image bg 50×40px, icon 30×30px */
.news-slider__nav {
    width: 50px; height: 40px;
    background: none;
    border: none;
    flex-shrink: 0;
    opacity: 0.6;
}
.news-slider__nav > img.absolute {
    inset: 0; width: 100%; height: 100%;
    display: block; max-width: none;
}
.news-slider__nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.news-slider__nav-icon img {
    position: static;
    inset: 0;
    width: auto;
    height: auto;
    display: block;
    max-width: none;
}

/* image-based dots: 25×20px each */
.news-slider__dots {
    position: relative;
    z-index: 6;
    gap: 0;
    margin: 0 10px;
    pointer-events: auto;
}

.news-slider__dot {
    width: 25px; height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 7;
    pointer-events: auto;
}
.news-slider__dot img { width: 25px; height: 20px; display: block; }

.section-news__btn-wrap { margin-top: 50px; }

.btn-accent__left {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}
.btn-accent__left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
}
.btn-accent__right-wrap {
    flex-shrink: 0;
}
.btn-accent__rotate {
    flex: none;
    transform: rotate(180deg);
}
.btn-accent__right {
    width: 20px;
    height: 50px;
    position: relative;
}
.btn-accent__right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
}

.btn-all-news-link {
    text-decoration: none;
    border: none;
    padding: 0;
    background: none;
}
.btn-all-news {
    background: var(--accent);
    height: 50px;
    padding: 15px 20px;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
    white-space: nowrap;
}
