/* ==========================================================================
   Blog listing + single post
   Colors follow the site: forest green and gold.
   ========================================================================== */

.gp-blog-grid {
    background-color: #f4f6f8;
    padding: 72px 0 96px;
}

.gp-blog-grid__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    color: #b8922a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gp-blog-grid__mark {
    width: 26px;
    height: 2px;
    background-color: #c6a035;
    flex: 0 0 auto;
}

.gp-blog-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(16, 32, 28, 0.06);
}

.gp-blog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e7eeea;
}

.gp-blog-card__media--empty {
    background: linear-gradient(145deg, #0d5741 0%, #063b27 70%);
}

.gp-blog-card__cover,
.gp-blog-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
}

.gp-blog-card__cover img {
    object-fit: cover;
}

.gp-blog-card__cat {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    background: #e4c15a;
    color: #1c2430;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    padding: 7px 12px;
    border-radius: 999px;
    text-transform: lowercase;
}

.gp-blog-card__cat:hover {
    color: #1c2430;
    background: var(--accent-yellow);
}

.gp-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 16px;
}

.gp-blog-card__title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.gp-blog-card__title a {
    color: #12382c;
}

.gp-blog-card__title a:hover {
    color: var(--primary-green);
}

.gp-blog-card__excerpt {
    margin: 0;
    color: #8b9390;
    font-size: 0.84rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    color: #9aa3a8;
    font-size: 0.8rem;
}

.gp-blog-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6d7672;
    min-width: 0;
}

.gp-blog-card__avatar,
.gp-blog-hero__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.gp-blog-empty {
    margin: 0;
    color: var(--text-muted);
}

.gp-blog-grid__more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.gp-blog-grid__more[hidden] {
    display: none;
}

.gp-blog-grid__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(7, 78, 56, 0.16);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: gp-blog-spin 0.7s linear infinite;
}

.gp-blog-grid__sentinel {
    height: 1px;
}

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

.gp-blog-paging {
    margin-top: 36px;
}

.gp-blog-paging .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-blog-paging .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--primary-green);
    font-weight: 600;
}

.gp-blog-paging .page-numbers.current,
.gp-blog-paging a.page-numbers:hover {
    background: var(--primary-green);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Single
   -------------------------------------------------------------------------- */
.gp-blog-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    background-color: #063b27;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.gp-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 28, 20, 0.72) 0%, rgba(6, 48, 34, 0.48) 55%, rgba(6, 48, 34, 0.32) 100%);
}

.gp-blog-hero__inner {
    position: relative;
    z-index: 1;
    padding: 72px 0 68px;
}

.gp-blog-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #e7c56a;
    font-size: 13px;
    font-weight: 500;
}

.gp-blog-crumb a,
.gp-blog-crumb span {
    color: #e7c56a;
}

.gp-blog-crumb a:hover {
    color: var(--accent-yellow);
}

.gp-blog-hero__title {
    margin: 0 0 16px;
    max-width: 18em;
    color: #fff;
    font-size: clamp(2.4rem, 4.4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.gp-blog-hero__by {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.gp-blog-single {
    background: #fff;
    padding: 56px 0 88px;
}

.gp-blog-content {
    color: #7a847f;
    font-size: 0.98rem;
    line-height: 1.75;
}

.gp-blog-content > :first-child {
    margin-top: 0;
}

.gp-blog-content h2,
.gp-blog-content h3 {
    color: #14382c;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    scroll-margin-top: calc(var(--nav-h) + 18px);
}

.gp-blog-content h2 {
    margin: 34px 0 12px;
    font-size: 1.7rem;
}

.gp-blog-content h3 {
    margin: 26px 0 10px;
    font-size: 1.25rem;
}

.gp-blog-content p {
    margin: 0 0 16px;
}

.gp-blog-content img,
.gp-blog-content figure {
    border-radius: 16px;
}

.gp-blog-content img {
    width: 100%;
    height: auto;
    margin: 8px 0 4px;
}

.gp-blog-content figure {
    margin: 22px 0;
    overflow: hidden;
}

.gp-blog-content ul,
.gp-blog-content ol {
    margin: 0 0 16px;
    padding-left: 1.2rem;
}

.gp-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gp-blog-toc,
.gp-blog-quote {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.gp-blog-toc__title,
.gp-blog-quote__head {
    margin: 0;
    background: #07281c;
    color: #fff;
}

.gp-blog-toc__title {
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gp-blog-toc__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.gp-blog-toc__item a {
    display: block;
    padding: 12px 18px;
    color: #3e4944;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.4;
}

.gp-blog-toc__item.is-sub a {
    padding-left: 32px;
    font-size: 0.88rem;
}

.gp-blog-toc__item a:hover,
.gp-blog-toc__item a.is-active {
    background: #f3f4f6;
    color: #14221c;
}

.gp-blog-quote__head {
    padding: 20px 22px 18px;
}

.gp-blog-quote__kicker {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gp-blog-quote__title {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gp-blog-quote__form {
    padding: 18px 18px 20px;
}

.gp-blog-quote__form .gp-field label {
    color: #8b9390;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gp-blog-quote__form .form-control {
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 12px 14px;
    color: #1f2933;
    background: #fff;
}

.gp-blog-quote__form textarea.form-control {
    min-height: 104px;
    resize: vertical;
}

.gp-blog-quote__btn {
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f3d78a 0%, #d4ae45 100%);
    color: #1a1a1a;
    font-weight: 700;
    padding: 13px 18px;
}

.gp-blog-quote__btn:hover {
    background: linear-gradient(180deg, #ffe08a 0%, #c6a035 100%);
    color: #1a1a1a;
}

@media (min-width: 992px) {
    .gp-blog-sidebar {
        position: sticky;
        top: calc(var(--nav-h) + 20px);
    }
}

@media (max-width: 991.98px) {
    .gp-blog-hero {
        min-height: 0;
    }

    .gp-blog-hero__inner {
        padding: 56px 0 48px;
    }

    .gp-blog-hero__title {
        max-width: none;
        font-size: 2.3rem;
    }

    .gp-blog-single {
        padding: 40px 0 64px;
    }
}

@media (max-width: 767.98px) {
    .gp-blog-grid {
        padding: 48px 0 64px;
    }

    .gp-blog-hero__title {
        font-size: 2rem;
    }

    .gp-blog-content h2 {
        font-size: 1.4rem;
    }
}
