/* ═══════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════════════════════ */
.blog-breadcrumbs-wrap {
    width: 1400px;
    margin: 0 auto;
    padding-top: 11px;
}

.blog-breadcrumbs { gap: 5px; }

.blog-breadcrumbs__inactive {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 16.57px;
    color: var(--black-30);
    white-space: nowrap;
    gap: 3px;
}

.blog-breadcrumbs__sep {
    width: 6px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.blog-breadcrumbs__sep img {
    width: 10px;
    height: 6px;
    transform: rotate(90deg);
    display: block;
    max-width: none;
    flex-shrink: 0;
}

.blog-breadcrumbs__current {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 16.57px;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG HEADER (title + subtitle + filters)
═══════════════════════════════════════════════════════════════════════════ */

.blog-header {
    width: 1400px;
    margin: 0 auto;
    padding-top: 69px; /* nav=80 + bc~20 + this = ~169px ≈ 160px Figma */
    padding-bottom: 40px;
    gap: 20px;
}

.blog-header__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 61px;
    line-height: 76.86px;
    color: var(--black);
    text-align: center;
    width: 680px;
}

.blog-header__subtitle {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 25.5px;
    color: var(--black-70);
    text-align: center;
    width: 526px;
}

/* filters row */
.blog-header__filters {
    padding-top: 20px;
    gap: 20px;
    width: 100%;
}

/* ─── Filter Button ───────────────────────────────────────────────────────── */

.blog-filter {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 20.4px;
    text-transform: uppercase;
    background: var(--second-bg);
    color: var(--black-70);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.blog-filter--active {
    background: var(--black);
    color: var(--accent);
}

/* yellow left accent bar */
.blog-filter__accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
}

/* cut-corner image at top-right */
.blog-filter__corner {
    position: absolute;
    width: 20px; height: 20px;
    right: 0; top: 0;
}
/* active: push corner above element (clipped → full rectangle shape) */
.blog-filter__corner--active { top: -20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   NEWS GRID SECTION
═══════════════════════════════════════════════════════════════════════════ */

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

/* 3-col Isotope grid */
.blog-grid { position: relative; }

/* ─── News Card ───────────────────────────────────────────────────────────── */

.blog-card {
    width: 440px;
    flex-shrink: 0;
    margin-bottom: 40px;
}

/* image area */
.blog-card__image {
    height: 247px;
    width: 100%;
}

.blog-card__img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}

/* decorative top mask (40px) */
.blog-card__mask {
    left: 0;
    top: -1px;
    width: 100%;
    height: 40px;
    pointer-events: none;
    background: var(--white);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* hover "Learn more" button */
.blog-card__hover-btn {
    left: calc(50% + 40.5px);
    top: calc(50% + 0.5px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
}
.blog-card__image:hover .blog-card__hover-btn { opacity: 1; }

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

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

/* content area */
.blog-card__content {
    background: var(--white);
    border: 1px solid var(--black-30);
    padding: 20px;
    gap: 10px;
}

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

/* ─── Tag component ───────────────────────────────────────────────────────── */

.blog-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;
}
.blog-tag span {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    color: var(--black-70);
    white-space: nowrap;
}
.blog-tag__arrow {
    position: absolute;
    right: -5px; top: 0; bottom: 0;
    width: 5px;
}
.blog-tag__arrow img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }

.blog-card__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 31px;
    line-height: 39.06px;
    color: var(--black);
    height: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card__desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 25.5px;
    color: var(--black-70);
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-card__footer {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 16.57px;
    color: var(--black-70);
    white-space: nowrap;
    padding-top: 10px;
    width: 100%;
}


/* ─── Primary Button (3-piece parallelogram) ──────────────────────────────── */

.btn-primary { align-items: center; }

.btn-primary__left {
    width: 20px; height: 50px;
    flex-shrink: 0;
    position: relative;
}
.btn-primary__left img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

.btn-primary__center {
    background: var(--accent);
    padding: 15px 20px;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 20.16px;
    color: var(--black);
    white-space: nowrap;
    height: 50px;
}

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

/* ─── Blog Actions ───────────────────────────────────────────────────────── */

.blog-actions {
    gap: 20px;
    padding-top: 0;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-accent__left {
    position: relative;
    width: 20px;
    height: 50px;
    flex-shrink: 0;
}

.btn-accent__left img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
}

.btn-accent__center {
    position: relative;
    min-width: 168px;
    height: 50px;
    padding: 15px 20px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font-plus);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.btn-accent__label {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.btn-accent__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.btn-accent__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(51, 54, 57, 0.25);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: blog-spin 0.8s linear infinite;
}

.btn-accent__load-more.btn-accent--loading {
    pointer-events: none;
}

.btn-accent__load-more.btn-accent--loading .btn-accent__label {
    opacity: 0;
}

.btn-accent__load-more.btn-accent--loading .btn-accent__loading {
    opacity: 1;
}

.btn-accent__right-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-accent__rotate {
    flex: none;
    transform: rotate(180deg);
}

.btn-accent__right {
    position: relative;
    width: 20px;
    height: 50px;
}

.btn-accent__right img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
}

.blog-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 225px;
    height: 40px;
}

.blog-pagination__arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    margin-right: 8px;
    background: transparent;
    padding: 0;
    opacity: 0.6;
    text-decoration: none;
    cursor: pointer;
}

.blog-pagination__arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--black);
    transform: skew(-19deg);
}

.blog-pagination__arrow svg {
    position: relative;
    z-index: 1;
}

.blog-pagination__arrow--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.blog-pagination__dash {
    display: block;
    width: 25px;
    height: 20px;
    background: var(--black);
    clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%);
    text-decoration: none;
}

.blog-pagination__dash--active {
    background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════════════════════ */

.section-cta {
    margin-top: 100px;
    padding: 0;
}

.section-cta__wrap {
    background: var(--second-bg);
    width: 100%;
}

/* left: text + form — 680px */
.section-cta__left {
    width: 680px;
    flex-shrink: 0;
    padding: 80px 40px 80px 80px;
    gap: 20px;
}

/* "Get started" tag */
.section-cta__tag {
    background: var(--white);
    border-left: 3px solid var(--black);
    padding: 13px 5px 11px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    position: relative;
}
.section-cta__tag span {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    text-transform: uppercase;
}
.section-cta__tag-arrow {
    position: absolute;
    right: -15px; top: 0; bottom: 0;
    width: 15px;
}
.section-cta__tag-arrow img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }

.section-cta__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 39px;
    line-height: 49.14px;
    color: var(--black);
}

.section-cta__desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 25.5px;
    color: var(--black);
}

.section-cta__form { gap: 20px; width: 100%; }
.section-cta__form-fields { gap: 10px; }
.section-cta__row { gap: 20px; }

.section-cta__input {
    border-bottom: 1px solid var(--black-30);
    padding: 20px 0;
}
.section-cta__row .section-cta__input { flex: 1; }
.section-cta__input-field,
.section-cta__textarea {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: 20.4px;
    color: var(--black-30);
    width: 100%;
}
.section-cta__input-field::placeholder,
.section-cta__textarea::placeholder { color: var(--black-30); }
.section-cta__textarea { resize: none; height: 80px; display: block; }

.section-cta__input.is-invalid {
    border-bottom-color: #d84d4d;
}

.section-cta__input-field.is-invalid {
    color: #d84d4d;
}

.section-cta__notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-onest);
    font-size: 14px;
    line-height: 1.4;
}

.section-cta__notice[hidden] {
    display: none !important;
}

.section-cta__notice--loading {
    color: var(--black-70);
}

.section-cta__notice--success {
    color: var(--black);
}

.section-cta__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(51, 54, 57, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: blog-spin 0.8s linear infinite;
}

.section-cta__privacy {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 16.57px;
    color: var(--black-70);
}
.section-cta__privacy-link {
    color: var(--black);
    text-decoration: underline;
}
.section-cta__privacy-link:hover {
    text-decoration: none;
}


.section-cta__submit .btn-primary:disabled {
    cursor: default;
    opacity: 0.7;
}

/* right: image */
.section-cta__right {
    flex: 1;
    min-height: 500px;
    overflow: hidden;
}
.section-cta__right > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: none;
    object-fit: cover;
}
/* left-edge fade to blend with CTA bg */
.section-cta__fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: var(--second-bg);
    clip-path: polygon(100% 0, 0 0, 0 100%);

}

@keyframes blog-spin {
    to {
        transform: rotate(360deg);
    }
}
