/*
Theme Name: KZ - Astra Child Theme
Description: This is a child theme for Astra
Author: jromano
Template: astra
Version: 0.1
*/

/* ===== Testimonials Archive ===== */

.kz-testimonial-list {
    max-width: 900px;
    margin: 0 auto;
}

.kz-testimonial-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.kz-testimonial-avatar img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.kz-testimonial-body {
    flex: 1;
}

/* Stars line */
.kz-testimonial-stars {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.kz-testimonial-stars .kz-star {
    margin-right: 2px;
}

/* Filled stars in orange, empties in light gray */
.kz-testimonial-stars .kz-star-filled {
    color: #e67c3c;
}

.kz-testimonial-stars .kz-star-empty {
    color: #ddd;
}

/* Testimonial text */
.kz-testimonial-text p {
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

/* Author line */
.kz-testimonial-author {
    margin-top: 0.3rem;
    font-size: 0.95rem;
}

.kz-testimonial-name {
    font-weight: 600;
}

.kz-testimonial-slash {
    margin: 0 0.25rem;
}

.kz-testimonial-source {
    font-style: normal;
}

/* Separator between testimonials */
.kz-testimonial-separator {
    text-align: center;
    margin: 2rem 0;
}

.kz-testimonial-separator .kz-separator-line {
    display: inline-block;
    width: 60px;
    height: 2px;
    background-color: #e0e0e0;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
    .kz-testimonial-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kz-testimonial-avatar img {
        width: 90px;
        height: 90px;
    }
}


/* =========================================================
   Neighborhood Landing Page Styles (scoped to the <article>)
   Matches: <article class="... neighborhood-landing ... category-neighborhood ...">
   ========================================================= */

/* Section wrappers */
article.neighborhood-landing.category-neighborhood .ne-blog-block,
article.neighborhood-landing.category-neighborhood .ne-testimonial-block,
article.neighborhood-landing.category-neighborhood .ne-press-block {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,.08);
}

article.neighborhood-landing.category-neighborhood .ne-blog-block > h3,
article.neighborhood-landing.category-neighborhood .ne-testimonial-block > h3,
article.neighborhood-landing.category-neighborhood .ne-press-block > h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

/* =========================================================
   TESTIMONIAL ROWS (grid)
   ========================================================= */
article.neighborhood-landing.category-neighborhood .ne-testimonial {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    align-items: start;
}

article.neighborhood-landing.category-neighborhood
.ne-testimonial-block .ne-testimonial:last-of-type {
    border-bottom: 0;
}

article.neighborhood-landing.category-neighborhood .ne-testimonial__photo img {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    object-fit: cover;
}

article.neighborhood-landing.category-neighborhood .ne-testimonial__body {
    min-width: 0;
}

article.neighborhood-landing.category-neighborhood .ne-testimonial__body h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

article.neighborhood-landing.category-neighborhood .ne-testimonial__source {
    margin-top: .35rem;
    font-size: .9rem;
    opacity: .72;
}

article.neighborhood-landing.category-neighborhood .ne-testimonial__excerpt {
    margin-top: .6rem;
    font-size: 1rem;
    line-height: 1.55;
}

/* =========================================================
   PRESS ROWS (grid)
   ========================================================= */
article.neighborhood-landing.category-neighborhood .ne-press {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    align-items: start;
}

article.neighborhood-landing.category-neighborhood
.ne-press-block .ne-press:last-of-type {
    border-bottom: 0;
}

article.neighborhood-landing.category-neighborhood .ne-press__image img {
    display: block;
    width: 90px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

article.neighborhood-landing.category-neighborhood .ne-press__body {
    min-width: 0;
}

article.neighborhood-landing.category-neighborhood .ne-press__body h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

article.neighborhood-landing.category-neighborhood .ne-press__meta {
    margin-top: .35rem;
    font-size: .9rem;
    opacity: .72;
}

article.neighborhood-landing.category-neighborhood .ne-press__excerpt {
    margin-top: .6rem;
    font-size: 1rem;
    line-height: 1.55;
}

/* =========================================================
   BLOG ROWS (single column)
   ========================================================= */
article.neighborhood-landing.category-neighborhood .ne-blog {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

article.neighborhood-landing.category-neighborhood
.ne-blog-block .ne-blog:last-of-type {
    border-bottom: 0;
}

article.neighborhood-landing.category-neighborhood .ne-blog h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

article.neighborhood-landing.category-neighborhood .ne-blog__meta {
    margin-top: .35rem;
    font-size: .9rem;
    opacity: .72;
}

article.neighborhood-landing.category-neighborhood .ne-blog__excerpt {
    margin-top: .6rem;
    font-size: 1rem;
    line-height: 1.55;
}

/* Clean up <p> margins inside excerpts */
article.neighborhood-landing.category-neighborhood .ne-testimonial__excerpt p,
article.neighborhood-landing.category-neighborhood .ne-press__excerpt p,
article.neighborhood-landing.category-neighborhood .ne-blog__excerpt p {
    margin: 0;
}

/* Link behavior */
article.neighborhood-landing.category-neighborhood a { text-decoration: none; }
article.neighborhood-landing.category-neighborhood a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 520px) {
    article.neighborhood-landing.category-neighborhood .ne-testimonial,
    article.neighborhood-landing.category-neighborhood .ne-press {
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 12px;
        padding: 18px 0;
    }

    article.neighborhood-landing.category-neighborhood .ne-testimonial__photo img {
        width: 72px;
        height: 72px;
    }

    article.neighborhood-landing.category-neighborhood .ne-press__image img {
        width: 72px;
        height: 56px;
    }
}

/* Container for the hero */
.neighborhood-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 250px; /* Reduced height for that "long and skinny" look */
    width: 100%;       /* Respects the parent container width */
    margin-bottom: 1.5rem;
    border-radius: 4px; /* Optional: matches modern block styles */
    overflow: hidden;
}

/* Darken the image for text legibility */
.hero-overlay {
    background: rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* The Title inside the image */
.hero-title {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0 !important;
    text-align: center;
    font-size: 2.5rem; /* Adjust as needed */
}

.kz-cta-wrapper {
    margin: 3rem 0;
    padding: 2.5rem;
    background-color: var(--ast-global-color-5); /* Very light slate/grey */
    border-radius: 8px;
    text-align: center;
    clear: both;
}

/******************/
/* Market Summary */
/******************/

.kz-snapshot-container {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
}

.snapshot-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.snapshot-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.snapshot-table th {
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #777;
    border-bottom: 2px solid #eee;
    padding: 10px 5px;
}

.snapshot-table td {
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
}

.trend-up { color: #2e7d32; font-weight: 600; }   /* Green */
.trend-down { color: #d32f2f; font-weight: 600; } /* Red */

.kates-take-box {
    background: #fdf8f0; /* Soft highlight color */
    padding: 15px;
    border-left: 4px solid #d4a373; /* Brand accent color */
    margin-top: 20px;
    border-radius: 4px;
}
