/* ---------------------------------------------------------------------------
   5. Hero — sits below the sticky header in normal document flow
   --------------------------------------------------------------------------- */
.pp-hero {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 2.88 / 1;
    max-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    font-family: "Neue Montreal", sans-serif;
}

.pp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pp-hero__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pp-hero__bg--fallback {
    background: linear-gradient(135deg, #0D1F3C 0%, #1B5E4A 100%);
}

.pp-hero__content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.pp-hero__container {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .pp-hero__container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .pp-hero__container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .pp-hero__container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .pp-hero__container {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    .pp-hero__container {
        max-width: 1320px;
    }
}

.pp-hero__row {
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y, 0));
    margin-right: calc(-.5 * var(--bs-gutter-x, 1.5rem));
    margin-left: calc(-.5 * var(--bs-gutter-x, 1.5rem));
    justify-content: center;
    text-align: center;
}

.pp-hero__col {
    flex: 0 0 auto;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    margin-top: var(--bs-gutter-y, 0);
}

@media (min-width: 768px) {
    .pp-hero__col {
        width: 83.33333333%;
    }
}

@media (min-width: 992px) {
    .pp-hero__col {
        width: 66.66666667%;
    }
}

.pp-hero__title {
    font-size: clamp(2rem, 5vw, 48px);
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: -.5px;
    line-height: 1.15;
}

.pp-hero__subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    color: var(--color-white);
    max-width: 500px;
    margin: .75rem auto 0;
}

/* Search form */
.pp-hero__search-form {
    margin-top: 1.5rem;
}

.pp-hero__search-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    margin: 0 auto;
}

.pp-hero__search-input[class] {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    display: block;
    padding: .5rem 1rem;
    padding-left: 12px;
    font-family: inherit;
    border-radius: 8px !important;
    border: 1px solid rgba(9, 51, 49, 0.20);
    background: #FFF;
    color: var(--pp-text);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.pp-hero__search-input::placeholder {
    color: rgba(9, 51, 49, 0.40);
}

.pp-hero__search-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.pp-hero__search-btn[class] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .375rem .75rem;
    border-radius: 8px;
    border: 1px solid #FFF;
    background: #093331;
    color: #FFF;
    cursor: pointer;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
    z-index: 2;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.pp-hero__search-btn:hover {
    background-color: var(--pp-green-dark);
    border-color: var(--pp-green-dark);
    color: var(--color-white);
}

.pp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Article hero */
.pp-article-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.pp-article-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}


/* ---------------------------------------------------------------------------
   7. Blog listing elements
   --------------------------------------------------------------------------- */

/* Tags on cards — styles live in style.css (global) */

/* Section label above featured card */
.pp-section-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--pp-text-muted);
}

/* ---------------------------------------------------------------------------
   8. Sort dropdown
   --------------------------------------------------------------------------- */
.pp-sort-form {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pp-sort-form__label {
    color: var(--color-dark-mint);
    font-family: var(--pp-neue-font), sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.32px;
}

.pp-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    font-size: .875rem;
    font-family: inherit;
    color: var(--pp-text);
    background: var(--color-white);
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, box-shadow .15s;
}

.pp-sort-btn:hover,
.pp-sort-btn:focus-visible {
    border-color: var(--pp-green);
    box-shadow: 0 0 0 .2rem var(--color-mint);
    outline: none;
}

.pp-sort-menu {
    min-width: 160px;
    font-size: .875rem;
}

.pp-sort-menu .dropdown-item.active,
.pp-sort-menu .dropdown-item:active {
    background-color: var(--color-mint);
    color: var(--pp-green-dark);
}

/* ---------------------------------------------------------------------------
   9. Article grid
   --------------------------------------------------------------------------- */
.pp-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pp-article-grid__featured {
    grid-column: 1 / -1;
}

.pp-article-grid__item {
    min-width: 0;
}

.pp-article-grid__empty {
    grid-column: 1 / -1;
    padding: 3rem 0;
    text-align: center;
}

.pp-article-grid__empty-text {
    color: var(--pp-text-muted);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.pp-btn-outline {
    display: inline-block;
    padding: .5rem 1.25rem;
    font-size: .9rem;
    background: var(--color-white);
    color: var(--color-dark-mint);
    border: 1px solid var(--pp-btn-border);
    border-radius: var(--radius-base);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.pp-btn-outline:hover {
    background: var(--pp-btn-hover);
    border-color: var(--pp-btn-hover);
    color: var(--color-white);
}

@media (max-width: 991px) {
    .pp-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .pp-article-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------------
   10. Featured card
   --------------------------------------------------------------------------- */
.pp-featured-card {
    border-radius: var(--pp-radius);
    overflow: hidden;
    border: 1px solid var(--pp-border);
    box-shadow: var(--shadow-md);
    background: var(--color-white);
}

.pp-featured-card__img-link {
    display: block;
    height: 100%;
}

.pp-featured-card__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.pp-featured-card__img-placeholder {
    min-height: 320px;
    height: 100%;
    background: linear-gradient(135deg, #0D1F3C, #1B5E4A);
}

.pp-featured-card__inner {
    display: flex;
    align-items: stretch;
}

.pp-featured-card__img-col {
    flex: 0 0 50%;
    width: 50%;
}

.pp-featured-card__content-col {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
}

.pp-featured-card__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
    border-left: 1px solid var(--pp-border);
}

@media (min-width: 1200px) {
    .pp-featured-card__body {
        padding: 2rem;
    }
}

/* Top row */
.pp-featured-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.pp-featured-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.pp-featured-tag {
    display: inline-flex;
    padding: 6px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 64px;
    border: 1px solid rgba(9, 51, 49, 0.10);
    background: #FFF;
    color: var(--color-dark-mint);
    font-family: var(--pp-neue-font), sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 1.4px;

}

.pp-featured-card__reading-time {
    color: rgba(9, 51, 49, 0.60);
    font-family: var(--pp-neue-font), sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* Title */
.pp-featured-card__title {
    padding-top: 80px;
    align-self: stretch;
    color: var(--color-dark-mint);
    font-family: var(--pp-neue-font), sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.64px;

    @media (width < 900px) {
        padding-top: 40px;
    }
}

.pp-featured-card__title-link {
    color: var(--pp-text);
    text-decoration: none;
}

.pp-featured-card__title-link:hover {
    color: var(--pp-green);
}

/* Excerpt */
.pp-featured-card__excerpt {
    padding-top: 12px;
    align-self: stretch;
    color: rgba(9, 51, 49, 0.80);
    font-family: var(--pp-neue-font), sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.pp-featured-card__cta-wrap {
    margin-bottom: auto;
}

/* CTA button — dark filled pill */
.pp-featured-card__cta {
    width: fit-content;
    display: flex;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: var(--color-dark-mint);
    transition: background .2s, color .2s;
    color: var(--color-accent-mint);
    font-family: var(--pp-mont-font), sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    text-transform: capitalize;
    text-decoration: none;
}

.pp-featured-card__cta:hover {
    background: var(--pp-btn-hover);
    color: var(--color-white);
}

/* Footer: author + date */
.pp-featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-top: 80px;
}

.pp-featured-card__author,
.pp-featured-card__date {
    color: rgba(9, 51, 49, 0.60);
    font-family: "Neue Montreal", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* ---------------------------------------------------------------------------
   10. Blog cards — styles live in style.css (global)
   --------------------------------------------------------------------------- */

/* Load More button — uses shared .pp-btn.btn-dark-mint */

/* ---------------------------------------------------------------------------
   11. Author avatar
   --------------------------------------------------------------------------- */
.pp-author-avatar {
    object-fit: cover;
    border: 2px solid var(--pp-border);
}

/* ---------------------------------------------------------------------------
   15. Article page
   --------------------------------------------------------------------------- */

/* Title */
.pp-article__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
    color: var(--pp-text);
}

/* Share buttons */
.pp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--pp-border);
    color: var(--pp-text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}

.pp-share-btn:hover {
    border-color: var(--pp-green);
    color: var(--pp-green);
    background: var(--pp-green-light);
}

/* Hero image inside content column */
.pp-article__hero-img-wrap {
    border-radius: var(--pp-radius-lg);
    overflow: hidden;
}

.pp-article__hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

/* Excerpt / short description below title */
.pp-article__excerpt {
    font-size: 1.0625rem;
    color: var(--pp-text-muted);
    line-height: 1.7;
    max-width: 680px;
}

/* Below-image byline bar */
.pp-article__byline {
    padding: .875rem 0;
    border-bottom: 1px solid var(--pp-border);
}

.pp-article__byline-item {
    font-size: .875rem;
    color: var(--pp-text);
}

.pp-article__byline-label {
    color: var(--pp-text-muted);
    margin-right: .3em;
}

/* Body */
.pp-article__body {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--pp-text);
}

.pp-article__body h2 {
    margin-top: 2.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.pp-article__body h3 {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.pp-article__body p {
    margin-bottom: 1.25rem;
}

.pp-article__body img {
    border-radius: var(--pp-radius);
    max-width: 100%;
}

.pp-article__body a {
    color: var(--pp-green);
}

/* Responsive fixes for hero and titles */
@media (max-width: 768px) {
    .pp-hero {
        aspect-ratio: auto;
        max-height: none;
        min-height: 280px;
        padding-top: 72px;
    }

    .pp-hero__title {
        font-size: 1.75rem;
    }

}

@media (max-width: 991px) {
    .pp-featured-card__inner {
        flex-direction: column;
    }

    .pp-featured-card__img-col,
    .pp-featured-card__content-col {
        flex: none;
        width: 100%;
    }

    .pp-featured-card__body {
        border-left: none;
        border-top: 1px solid var(--pp-border);
    }
}

@media (max-width: 576px) {
    .pp-hero {
        min-height: 260px;
    }

    .pp-hero__content {
        padding: 32px 0;
    }
}
