/* Home Page template (templates/page-home.php) */

/* The template bypasses Kadence's content wrapper, so the white content
   sheet behind the page body is drawn here. */
.kop-home {
    max-width: 900px;
    margin: 1.5rem auto 3rem;
    padding: 2rem 2.5rem 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 4, 53, 0.08);
}

/* Header banner (the page's featured image) */
.kop-home-banner {
    margin-bottom: 1.75rem;
}

.kop-home-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Site search bar */
.kop-home-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
}

.kop-home-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid var(--kop-navy-blue, #000080);
    border-radius: 6px;
    font-size: 1rem;
}

.kop-home-search input[type="search"]:focus {
    outline: 2px solid var(--kop-teal, #33A7B5);
    outline-offset: 1px;
}

.kop-home-search button {
    background-color: var(--kop-navy-blue, #000080);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.kop-home-search button:hover,
.kop-home-search button:focus {
    background-color: var(--kop-teal, #33A7B5);
    color: #fff;
}

/* Ongoing Stories (shortcode) sits at the same width as the other
   home sections instead of spanning the full sheet. */
.kop-home .ongoing-stories {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.kop-home section {
    margin-bottom: 2.5rem;
}

/* Hero + audience buttons */
.kop-home-hero {
    text-align: center;
}

.kop-home-hero h2 {
    color: var(--kop-midnight-blue, #000435);
    margin-bottom: 0.5rem;
}

.kop-home-audience {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 1.25rem 0;
}

.kop-home-btn {
    background-color: var(--kop-teal, #33A7B5);
    color: #fff;
    padding: 8px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.kop-home-btn:hover {
    background-color: var(--kop-navy-blue, #000080);
    color: #fff;
}

/* Mission */
.kop-home-mission p {
    max-width: 860px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

/* Inspection reports box (matches the original navy callout) */
.kop-home-reports {
    background-color: #00004d;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 640px;
    margin: 20px auto 2.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kop-home-reports h2 {
    margin: 0 0 15px;
    color: #fff;
}

.kop-home-reports p {
    margin: 0 0 25px;
    color: #fff;
    text-align: left;
}

.kop-home-reports-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.kop-home-report-btn {
    background-color: var(--kop-teal, #33A7B5);
    color: #fff;
    padding: 12px 24px;
    border: 2px solid #fff;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.kop-home-report-btn:hover {
    background-color: #fff;
    color: var(--kop-navy-blue, #000080);
}

/* Map + directory text */
.kop-home-map p {
    max-width: 860px;
    margin: 1.25rem auto 0;
}

/* Help / share */
.kop-home-help p {
    max-width: 860px;
    margin: 0 auto;
}

.kop-home-share {
    max-width: 860px;
    margin: 0 auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .kop-home {
        margin: 1rem auto 2rem;
        padding: 1.5rem 1.25rem 2rem;
    }
    .kop-home-reports {
        max-width: 580px;
    }
}

/* Phones */
@media (max-width: 640px) {
    .kop-home {
        margin: 0 auto 1.5rem;
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 0;
    }
    .kop-home section {
        margin-bottom: 1.75rem;
    }
    .kop-home-hero h2 {
        font-size: 1.35rem;
    }
    .kop-home-audience {
        gap: 8px;
        padding: 1rem 0;
    }
    .kop-home-btn {
        flex: 1 1 45%;
        text-align: center;
        padding: 10px 12px;
    }
    .kop-home-reports {
        padding: 20px 16px;
        margin: 16px auto 1.75rem;
    }
    .kop-home-reports-buttons {
        gap: 8px;
    }
    .kop-home-report-btn {
        flex: 1 1 40%;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Small phones: stack the audience buttons */
@media (max-width: 400px) {
    .kop-home-audience {
        flex-direction: column;
        align-items: stretch;
    }
    .kop-home-btn {
        flex: none;
    }
}
