/* Nice Homes Realtors — blog listing & detail (hero: nhr-page-hero.css) */

.nhr-blog-intro {
    max-width: 820px;
    margin-bottom: 2rem;
}
.nhr-blog-intro .sec-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-color, #c62828);
    margin-bottom: 8px;
}
.nhr-blog-intro .sec-title {
    margin-bottom: 12px;
}
.nhr-blog-intro p {
    line-height: 1.75;
    margin-bottom: 0;
}

.nhr-blog-search-bar {
    max-width: 520px;
    margin-bottom: 2rem;
}
.nhr-blog-search-bar .search-form {
    display: flex;
    gap: 0;
}
.nhr-blog-search-bar input[type="search"] {
    flex: 1;
    border-radius: 999px 0 0 999px;
}
.nhr-blog-search-bar button {
    border-radius: 0 999px 999px 0;
}

.nhr-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebebeb;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nhr-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}
.nhr-blog-card .blog-img {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    height: auto !important;
    aspect-ratio: 16 / 10;
}
.nhr-blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.nhr-blog-card:hover .blog-img img {
    transform: scale(1.04);
}
.nhr-blog-card .blog-img .date {
    left: 16px;
    bottom: 16px;
    top: auto;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.nhr-blog-card .blog-img .date span {
    display: block;
}
.nhr-blog-card .blog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 28px 28px;
}
.nhr-blog-card .box-title {
    margin-bottom: 12px;
    line-height: 1.45;
    font-size: 20px;
}
.nhr-blog-card .box-title a {
    color: #141414;
    transition: color 0.2s ease;
}
.nhr-blog-card .box-title a:hover {
    color: var(--theme-color, #c62828);
}
.nhr-blog-excerpt {
    flex: 1;
    line-height: 1.75;
    margin-bottom: 20px;
    color: #444;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nhr-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #666;
}
.nhr-blog-meta span,
.nhr-blog-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nhr-blog-meta span > i,
.nhr-blog-meta a > i {
    color: var(--theme-color, #c62828);
    font-size: 12px;
}
.nhr-blog-meta a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}
.nhr-blog-meta a:hover {
    color: var(--theme-color, #c62828);
}
.nhr-blog-card .blog-content .th-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #ddd;
    background: #fff;
    color: #141414;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.nhr-blog-card .blog-content .th-btn:hover {
    background: var(--theme-color, #c62828);
    border-color: var(--theme-color, #c62828);
    color: #fff;
}

.nhr-blog-cat-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.nhr-blog-cat-menu li.active > a {
    color: var(--theme-color, #c62828);
    font-weight: 600;
}
.nhr-blog-cat-menu span {
    font-size: 13px;
    opacity: 0.75;
}

.nhr-blog-recent .media-img {
    flex: 0 0 72px;
    max-width: 72px;
    border-radius: 8px;
    overflow: hidden;
}
.nhr-blog-recent .media-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.nhr-blog-detail .blog-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
}
.nhr-blog-detail .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nhr-blog-detail .blog-content {
    line-height: 1.85;
}
.nhr-blog-detail .blog-content p {
    margin-bottom: 1.25rem;
}
.nhr-blog-detail .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 16px;
}
.nhr-blog-detail .blog-title {
    margin-bottom: 20px;
    line-height: 1.35;
}

.nhr-related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--th-border-color, #e5e5e5);
}
.nhr-related-posts .sec-title {
    margin-bottom: 24px;
}

.nhr-blog-detail .tagcloud .tag-item {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px 6px 4px 0;
    border-radius: 999px;
    background: var(--smoke-color, #f8f8f8);
    font-size: 13px;
    border: 1px solid var(--th-border-color, #e5e5e5);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.nhr-form-notice.success {
    color: #1b7f3a;
    font-weight: 600;
    margin-bottom: 12px;
}

.nhr-results-count {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .nhr-blog-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .nhr-blog-card .blog-content {
        padding: 20px 22px 24px;
    }
    .nhr-blog-card .box-title {
        font-size: 18px;
    }
}
