/* =========================================
   BOSS BLOG + BLOG DETAIL
   Loads after style.css
========================================= */

.blog-hero,
.blog-detail-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 15%, rgba(238,232,248,.72), transparent 27%),
        radial-gradient(circle at 92% 18%, rgba(223,244,232,.86), transparent 29%),
        #fff;
}

.blog-hero {
    padding: 105px 0 95px;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.blog-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(52px,5.6vw,80px);
    line-height: 1;
    letter-spacing: -4px;
}

.blog-hero-copy h1 span {
    display: block;
    color: var(--mintStrong);
}

.blog-hero-copy > p {
    max-width: 650px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 18px;
}

.blog-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}

.blog-hero-pills span {
    padding: 7px 11px;
    border: 1px solid #e1e5e6;
    border-radius: 999px;
    color: #646d74;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.blog-hero-pills span:nth-child(1) { background: var(--mint); }
.blog-hero-pills span:nth-child(2) { background: var(--blue); }
.blog-hero-pills span:nth-child(3) { background: var(--lav); }
.blog-hero-pills span:nth-child(4) { background: var(--pink); }

.blog-hero-card {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow);
}

.blog-hero-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 17px;
    background: var(--mint);
    color: var(--mintStrong);
}

.blog-hero-icon svg {
    width: 24px;
    height: 24px;
}

.blog-hero-card > span {
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 900;
    color: #78817b;
}

.blog-hero-card h2 {
    margin-top: 8px;
    font-size: 35px;
    line-height: 1.06;
    letter-spacing: -1.7px;
}

.blog-hero-card p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
}


/* LIST */

.blog-section {
    padding: 105px 0 120px;
    background: #fff;
}

.blog-section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-section-top h2 {
    margin-top: 5px;
    font-size: clamp(37px,4vw,52px);
    line-height: 1.05;
    letter-spacing: -2.3px;
}

.blog-search {
    position: relative;
    width: min(360px,100%);
}

.blog-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8b9399;
}

.blog-search input {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 46px;
    border: 1px solid #dfe4e6;
    border-radius: 14px;
    outline: none;
    background: #fafcfc;
    font: inherit;
    font-size: 12px;
}

.blog-search input:focus {
    border-color: var(--mintStrong);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95,174,131,.09);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(37,45,52,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(37,45,52,.09);
}

.blog-card-image {
    width: 100%;
    height: 235px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--mint);
    cursor: pointer;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.025);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 13px;
    color: #899096;
    font-size: 9px;
    font-weight: 750;
}

.blog-card h3 {
    min-height: 55px;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.8px;
}

.blog-card p {
    min-height: 75px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 17px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.blog-read-more svg {
    width: 14px;
    height: 14px;
}

.blog-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 150px;
    color: var(--muted);
    font-size: 11px;
}

.blog-spinner {
    width: 27px;
    height: 27px;
    border: 3px solid #edf0f0;
    border-top-color: var(--mintStrong);
    border-radius: 50%;
    animation: blogSpin .8s linear infinite;
}

@keyframes blogSpin {
    to { transform: rotate(360deg); }
}

.blog-empty {
    flex-direction: column;
}

.blog-empty svg {
    width: 24px;
    color: var(--mintStrong);
}

.blog-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fbfcfc;
    text-align: center;
}

.blog-error span {
    color: var(--muted);
    font-size: 11px;
}


/* BLOG CTA */

.blog-cta {
    padding: 110px 20px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 100%, rgba(223,244,232,.72), transparent 32%),
        #fff;
}

.blog-cta h2 {
    max-width: 820px;
    margin: auto;
    font-size: clamp(43px,5vw,66px);
    line-height: 1.03;
    letter-spacing: -3px;
}

.blog-cta p {
    max-width: 580px;
    margin: 18px auto 27px;
    color: var(--muted);
    font-size: 15px;
}

.blog-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* DETAIL PAGE */

.blog-detail-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 55px;
    color: #6d767d;
    font-size: 10px;
    font-weight: 850;
}

.blog-back-link svg {
    width: 15px;
    height: 15px;
}

.blog-detail-heading {
    max-width: 930px;
    margin: auto;
}

.blog-detail-heading h1 {
    margin-top: 9px;
    font-size: clamp(45px,5.2vw,72px);
    line-height: 1.04;
    letter-spacing: -3.5px;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 23px;
    color: #7e878d;
    font-size: 10px;
    font-weight: 750;
}

.blog-detail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-meta svg {
    width: 15px;
    height: 15px;
    color: var(--mintStrong);
}

.blog-detail-section {
    padding: 30px 0 110px;
    background: #fff;
}

.blog-article {
    max-width: 990px;
    margin: auto;
}

.blog-detail-image {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #f6f8f8;
    box-shadow: var(--shadow);
}

.blog-detail-image img {
    width: 100%;
    max-height: 590px;
    display: block;
    object-fit: contain;
    margin: auto;
}

.blog-article-body {
    max-width: 820px;
    margin: 54px auto 0;
    color: #505960;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-line;
}

.blog-article-body p {
    margin: 0 0 24px;
}

.comments-wrap {
    max-width: 820px;
    margin: 90px auto 0;
    padding-top: 50px;
    border-top: 1px solid var(--line);
}

.comments-heading h2 {
    margin-top: 5px;
    font-size: 35px;
    letter-spacing: -1.5px;
}

.comments-list,
.subcomment-list {
    padding: 0;
    list-style: none;
}

.comments-list {
    display: grid;
    gap: 14px;
    margin-top: 27px;
}

.comment-item {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfc;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.comment-initial {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--mint);
    color: var(--mintStrong);
    font-size: 11px;
    font-weight: 900;
}

.comment-head strong {
    display: block;
    font-size: 11px;
}

.comment-head span {
    display: block;
    margin-top: 2px;
    color: #899096;
    font-size: 9px;
}

.comment-text {
    margin: 14px 0 0 49px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 12px 0 0 49px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mintStrong);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.comment-reply svg {
    width: 13px;
}

.subcomment-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 0 49px;
}

.subcomment-item {
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--pink);
}

.subcomment-item strong {
    display: block;
    font-size: 9px;
}

.subcomment-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.no-comments {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
}

.no-comments svg {
    width: 17px;
    color: var(--mintStrong);
}


/* COMMENT FORM */

.comment-form {
    margin-top: 42px;
    padding: 31px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg,#fff,#f5fbf8);
}

.comment-form h3,
.reply-modal-card h3 {
    margin-top: 6px;
    font-size: 27px;
    letter-spacing: -1px;
}

.comment-form > p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 22px;
}

.comment-field.field-full {
    grid-column: 1 / -1;
}

.comment-field label {
    display: block;
    margin-bottom: 6px;
    color: #5d666d;
    font-size: 9px;
    font-weight: 850;
}

.comment-field input,
.comment-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #dde3e5;
    border-radius: 11px;
    outline: none;
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.comment-field textarea {
    min-height: 125px;
    resize: vertical;
}

.comment-field input:focus,
.comment-field textarea:focus {
    border-color: var(--mintStrong);
    box-shadow: 0 0 0 4px rgba(95,174,131,.08);
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    margin-top: 16px;
    padding: 0 19px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.comment-submit svg {
    width: 14px;
}

.comment-success {
    display: none;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--mint);
    color: #496858;
    font-size: 10px;
    font-weight: 800;
}

.comment-success svg {
    width: 16px;
}

.blog-detail-cta {
    padding: 100px 20px 115px;
    text-align: center;
    background: #fbfcfc;
}

.blog-detail-cta h2 {
    max-width: 760px;
    margin: auto;
    font-size: clamp(40px,4.8vw,62px);
    line-height: 1.04;
    letter-spacing: -2.7px;
}

.blog-detail-cta .button {
    margin-top: 25px;
}


/* REPLY MODAL */

.reply-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(23,29,34,.58);
    backdrop-filter: blur(7px);
}

.reply-modal.open {
    display: flex;
}

.reply-modal-card {
    position: relative;
    width: min(580px,100%);
    padding: 32px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(23,29,34,.25);
}

.reply-close {
    position: absolute;
    right: 19px;
    top: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f5;
    color: var(--ink);
    font-size: 21px;
    cursor: pointer;
}


@media(max-width: 980px) {
    .blog-hero-grid {
        grid-template-columns: 1fr;
    }

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

@media(max-width: 650px) {
    .blog-hero {
        padding: 75px 0 80px;
    }

    .blog-hero-copy h1 {
        font-size: 48px;
        letter-spacing: -2.8px;
    }

    .blog-section-top {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-search {
        width: 100%;
    }

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

    .blog-card-image {
        height: 225px;
    }

    .blog-detail-hero {
        padding: 65px 0 45px;
    }

    .blog-back-link {
        margin-bottom: 38px;
    }

    .blog-detail-heading h1 {
        font-size: 43px;
        letter-spacing: -2.4px;
    }

    .blog-detail-image {
        border-radius: 22px;
    }

    .blog-article-body {
        margin-top: 38px;
        font-size: 14px;
    }

    .comment-form-grid {
        grid-template-columns: 1fr;
    }

    .comment-field.field-full {
        grid-column: auto;
    }

    .comment-text,
    .comment-reply,
    .subcomment-list {
        margin-left: 0;
    }
}
