/* ================================================================
   home.css — Front page (platte-home)
   Scoped to article.homePage. Linked only from template/pages/platte-home.php.
   Tokens match the compiled theme:
     $red        #921219
     $darkBlue   #0c3c7f
     $navy       #12314F
     $textColor1 #414141
   ================================================================ */

article.articlePost.homePage {
    margin-top: 0;
}

article.articlePost.homePage > .body {
    width: 100%;
    max-width: none;
    padding: 0 0 48px;
    overflow: visible;
    box-sizing: border-box;
}

.homePage-title {
    color: transparent;
    height: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Theme header.hero is the page-title banner. The editable cover is the hero. */
html.home header.hero {
    display: none;
}

.homePage .pi-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none !important;
    min-height: 520px;
    margin: 0 0 28px;
    padding: 48px 24px;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #12314F;
}

.homePage .pi-hero .wp-block-cover__image-background,
.homePage .pi-hero .wp-block-cover__gradient-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
}

article.articlePost.homePage > .body .pi-hero img.wp-block-cover__image-background {
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.homePage .pi-hero .has-background-dim {
    opacity: 0.6;
}

.homePage .pi-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.homePage .pi-hero h1 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    color: #ffffff !important;
    text-shadow: none;
    margin: 0 auto;
}

.homePage .pi-hero .wp-block-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

article.articlePost.homePage > .body .pi-hero .wp-block-button__link {
    display: inline-block;
    border-bottom: none;
    border-radius: 3px;
    padding: 12px 28px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #c12d2d;
    color: #ffffff;
}

article.articlePost.homePage > .body .pi-hero .wp-block-button__link:hover {
    border-bottom: none;
    color: #ffffff;
    background-color: #921219;
}

@media (max-width: 767px) {
    .homePage .pi-hero {
        min-height: 420px;
        padding: 36px 18px;
    }

    .homePage .pi-hero h1 {
        font-size: 1.8rem !important;
    }
}

article.articlePost.homePage > .body .pi-top-issues,
article.articlePost.homePage > .body .pi-full-platter,
article.articlePost.homePage > .body .pi-why-here,
article.articlePost.homePage > .body .pi-newsletter {
    max-width: 1000px;
    margin: 0 auto;
    padding: 36px 28px 20px;
    box-sizing: border-box;
}

.homePage .pi-section-heading,
.homePage .pi-nl-text-col h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 38px;
    font-weight: 300 !important;
    line-height: 1.1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #0c3c7f;
}

/* ----------------------------------------------------------------
   Top issues — centered hex icons, titles, and the existing copy
   ---------------------------------------------------------------- */
.homePage .pi-top-issues .pi-section-heading {
    text-align: center;
    margin: 8px 0 32px;
}

.homePage .pi-issues-cols {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin: 0;
}

.homePage .pi-issue-col {
    flex: 1 1 0 !important;
    margin-left: 0 !important;
    min-width: 0;
}

.homePage .pi-issue-card {
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: center;
}

.homePage .pi-issue-icon {
    margin: 0 0 14px;
    text-align: center;
}

.homePage .pi-issue-icon img {
    width: 52px;
    height: auto;
    margin: 0 auto;
}

.homePage .pi-issue-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #2b2a2b;
    margin: 0 0 8px;
}

article.articlePost.homePage > .body .pi-issue-card p {
    font-size: 15px;
    line-height: 1.4;
    color: #555;
    margin: 0 auto;
    max-width: 220px;
}

/* ----------------------------------------------------------------
   Recent posts
   ---------------------------------------------------------------- */
.homePage .pi-full-platter .pi-section-heading {
    text-align: center;
    margin: 36px 0 28px;
}

.homePage .pi-posts:not(:has(> .wp-block-group__inner-container)),
.homePage .pi-posts > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.homePage .pi-post-card {
    min-width: 0;
}

.homePage .pi-post-img,
.homePage figure.pi-post-img {
    display: block;
    background: #12314f;
    overflow: hidden;
    margin: 0;
}

article.articlePost.homePage > .body .pi-post-card p,
article.articlePost.homePage > .body .pi-policy-card p,
article.articlePost.homePage > .body p.pi-policy-img-empty,
article.articlePost.homePage > .body p.pi-post-img-empty {
    margin-top: 0;
    margin-bottom: 0;
}

article.articlePost.homePage > .body .pi-post-img img {
    display: block;
    width: 100%;
    height: 168px !important;
    max-height: 168px !important;
    object-fit: cover;
}

.homePage .pi-post-img-empty {
    height: 168px;
}

.homePage .pi-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
}

.homePage .pi-post-cat,
.homePage .pi-post-meta time {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    text-decoration: none;
}

.homePage .pi-post-cat {
    color: #c12d2d;
}

.homePage .pi-post-cat:hover {
    color: #921219;
}

.homePage .pi-post-meta time {
    color: #8a8a8a;
    font-weight: 500;
    white-space: nowrap;
}

.homePage .pi-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 8px 0 10px;
}

article.articlePost.homePage > .body .pi-post-title a {
    color: #2b2a2b;
    text-decoration: none;
    border-bottom: none;
}

article.articlePost.homePage > .body .pi-post-title a:hover {
    color: #0c3c7f;
    border-bottom: none;
}

article.articlePost.homePage > .body .pi-post-more {
    color: #0c3c7f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none;
}

article.articlePost.homePage > .body .pi-post-cat {
    border-bottom: none;
}

.homePage .pi-post-more:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------
   Why we're here
   ---------------------------------------------------------------- */
.homePage .pi-why-here .pi-section-heading {
    margin: 12px 0 22px;
    text-align: left;
}

.homePage .pi-why-cols {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 36px;
    margin: 0;
}

.homePage .pi-why-text-col {
    flex: 1 1 55%;
    margin-left: 0 !important;
    min-width: 0;
}

.homePage .pi-why-video-col {
    flex: 1 1 40%;
    margin-left: 0 !important;
    min-width: 0;
}

.homePage .pi-why-text-col p {
    font-size: 16px;
    line-height: 1.45;
    color: #414141;
    margin: 0 0 14px;
}

.homePage .pi-why-here .wp-block-buttons {
    margin-top: 18px;
}

article.articlePost.homePage > .body .pi-why-here .wp-block-button__link {
    background-color: #12314f;
    color: #fff;
    border: none;
    border-bottom: none;
    border-radius: 2px;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-decoration: none;
    display: inline-block;
}

.homePage .pi-why-here .wp-block-button__link:hover {
    background-color: #0c3c7f;
    color: #fff;
}

.homePage .pi-why-video-col .wp-block-image {
    margin: 0;
}

.homePage .pi-why-video-col img {
    display: block;
    width: 100%;
    height: auto;
}

/* ----------------------------------------------------------------
   Policy studies carousel
   ---------------------------------------------------------------- */
.homePage .pi-events {
    background-color: #12314f;
    color: #fff;
    margin: 36px 0 10px;
    padding: 32px 28px 40px;
    box-sizing: border-box;
}

article.articlePost.homePage > .body .pi-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 22px;
}

.homePage .pi-events .pi-section-heading {
    color: #fff !important;
    margin: 0;
}

.homePage .pi-view-all-btn .wp-block-button__link {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-decoration: none;
}

.homePage .pi-view-all-btn .wp-block-button__link:hover {
    color: #fff;
    text-decoration: underline;
}

article.articlePost.homePage > .body .pi-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.homePage .pi-carousel-viewport {
    overflow: hidden;
}

.homePage .pi-carousel-track {
    display: block;
}

.homePage .pi-carousel-track > .wp-block-group__inner-container,
.homePage .pi-carousel-track:not(:has(> .wp-block-group__inner-container)) {
    display: flex;
    gap: 18px;
    transition: transform 0.35s ease;
}

.homePage .pi-policy-card {
    flex: 0 0 calc((100% - 36px) / 3);
    width: calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
    min-width: 0;
}

.homePage .pi-policy-img,
.homePage figure.pi-policy-img {
    display: block;
    background: #0c3c7f;
    overflow: hidden;
    margin: 0;
}

article.articlePost.homePage > .body .pi-policy-img img {
    display: block;
    width: 100%;
    height: 150px !important;
    max-height: 150px !important;
    object-fit: cover;
}

.homePage .pi-policy-img-empty,
.homePage p.pi-policy-img-empty,
.homePage .pi-post-img-empty,
.homePage p.pi-post-img-empty {
    display: block;
    height: 150px;
    margin: 0;
    background: #0c3c7f;
}

.homePage .pi-post-img-empty,
.homePage p.pi-post-img-empty {
    height: 168px;
    background: #12314f;
}

.homePage .pi-policy-card time {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.homePage .pi-policy-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    margin: 6px 0 8px;
}

article.articlePost.homePage > .body .pi-policy-card {
    border: none;
}

article.articlePost.homePage > .body .pi-policy-card h3 a {
    color: #fff;
    text-decoration: none;
    border-bottom: none;
}

article.articlePost.homePage > .body .pi-policy-card h3 a:hover {
    text-decoration: underline;
    border-bottom: none;
}

article.articlePost.homePage > .body .pi-policy-more {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    border-bottom: none;
}

.homePage .pi-policy-more:hover {
    text-decoration: underline;
}

.homePage .pi-carousel-btn {
    display: none;
    position: absolute;
    top: 58px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(18, 49, 79, 0.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    padding: 0 0 3px;
    cursor: pointer;
}

.homePage .pi-carousel.is-ready .pi-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homePage .pi-carousel-prev {
    left: -18px;
}

.homePage .pi-carousel-next {
    right: -18px;
}

.homePage .pi-carousel-btn:hover {
    background: #fff;
    color: #12314f;
}

.homePage .pi-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.homePage .pi-carousel-btn:disabled:hover {
    background: rgba(18, 49, 79, 0.55);
    color: #fff;
}

.homePage .pi-policy-empty,
.homePage .pi-posts-empty {
    text-align: center;
    color: inherit;
}

/* ----------------------------------------------------------------
   Newsletter
   ---------------------------------------------------------------- */
.homePage .pi-newsletter {
    padding-top: 48px;
    padding-bottom: 20px;
}

.homePage .pi-nl-cols {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 48px;
    margin: 0;
}

.homePage .pi-nl-text-col {
    flex: 1 1 42%;
    margin-left: 0 !important;
    min-width: 0;
}

.homePage .pi-nl-form-col {
    flex: 1 1 50%;
    margin-left: 0 !important;
    min-width: 0;
}

.homePage .pi-nl-text-col h2 {
    margin: 0 0 16px;
}

article.articlePost.homePage > .body .pi-nl-text-col p {
    font-size: 16px;
    line-height: 1.45;
    color: #555;
    margin: 0;
    max-width: 360px;
}

.homePage .pi-nl-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homePage .pi-nl-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.homePage .pi-nl-field input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #414141;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 2px;
}

.homePage .pi-nl-field input:focus {
    outline: 2px solid #0c3c7f;
    outline-offset: 1px;
    border-color: #0c3c7f;
}

.homePage .pi-nl-msg {
    min-height: 0;
    color: #921219;
    font-size: 15px;
    margin-top: 8px;
}

.homePage .pi-nl-msg:empty {
    display: none;
}

.homePage .pi-nl-submit {
    display: block;
    width: 100%;
    margin-top: 14px;
    border: none;
    background: #c12d2d;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 2px;
}

.homePage .pi-nl-submit:hover {
    background: #a82424;
}

.homePage .pi-nl-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.homePage .pi-nl-thanks {
    display: none;
    margin: 12px 0 0;
    color: #0c3c7f;
    font-size: 18px;
}

.homePage .pi-nl-form.success .pi-nl-row,
.homePage .pi-nl-form.success .pi-nl-submit,
.homePage .pi-nl-form.success .pi-nl-msg {
    display: none;
}

.homePage .pi-nl-form.success .pi-nl-thanks {
    display: block;
}

@media (max-width: 767px) {
    .homePage .pi-section-heading,
    .homePage .pi-nl-text-col h2 {
        font-size: 26px;
    }

    .homePage .pi-issues-cols,
    .homePage .pi-why-cols,
    .homePage .pi-nl-cols {
        flex-wrap: wrap !important;
    }

    .homePage .pi-issue-col,
    .homePage .pi-why-text-col,
    .homePage .pi-why-video-col,
    .homePage .pi-nl-text-col,
    .homePage .pi-nl-form-col {
        flex: 1 1 100%;
    }

    .homePage .pi-posts:not(:has(> .wp-block-group__inner-container)),
    .homePage .pi-posts > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }

    .homePage .pi-policy-card {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }

    .homePage .pi-carousel-prev {
        left: 0;
    }

    .homePage .pi-carousel-next {
        right: 0;
    }
}
