/* =====================================================
   CONTENT PAGES — news, about, faq, reviews
   ===================================================== */

/* --- News listing --- */
.news-page .article-card {
    border-radius: 16px;
    overflow: hidden;
}

.news-page .article-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.45;
}

.news-page .article-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page .news-category-bar .btn {
    min-height: 44px;
}

.news-page .featured-article {
    border-radius: 16px;
}

.news-page .featured-article .card-body {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.news-page .sidebar-card {
    border-radius: 16px;
}

.news-page .sidebar-card .list-group-item {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.news-page .article-card .card-title a:hover,
.news-page .popular-content h6 a:hover {
    color: var(--color-primary) !important;
}

.news-page .popular-article:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* --- News detail / reading --- */
.article-detail-page .article-reading {
    max-width: 42rem;
}

.article-detail-page .article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #1f2f46;
}

.article-detail-page .article-content h2,
.article-detail-page .article-content h3,
.article-detail-page .article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.article-detail-page .article-content p {
    margin-bottom: 1.35rem;
}

.article-detail-page .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.article-detail-page .article-content ul,
.article-detail-page .article-content ol {
    margin-bottom: 1.35rem;
    padding-left: 1.5rem;
}

.article-detail-page .article-content li {
    margin-bottom: 0.45rem;
}

.article-detail-page .article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #f8f9fb;
    border-radius: 12px;
    font-style: italic;
}

.article-detail-page .article-excerpt {
    max-width: 42rem;
}

.article-detail-page .related-articles .card {
    border-radius: 16px;
}

.article-detail-page .related-articles .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.45;
}

.article-detail-page .article-share .btn {
    min-height: 44px;
}

/* --- About team grid --- */
.about-team-grid .team-card {
    border-radius: 16px;
    border: 1px solid #e6ebf3;
    background: #fff;
    box-shadow: 0 12px 28px rgba(9, 31, 66, 0.06);
    padding: 1.35rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-team-grid .team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(9, 31, 66, 0.1);
}

.about-team-grid .team-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #0d2e63, #1a4a8a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.about-team-grid .team-name {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #132741;
}

/* --- FAQ --- */
.faq-page .faq-search-input {
    min-height: 52px;
    font-size: 1rem;
}

.faq-page .faq-sidebar-card {
    border-radius: 16px;
    overflow: hidden;
}

.faq-page .faq-sidebar-card .list-group-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.faq-page .accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0.65rem;
    border: 1px solid #e8edf5 !important;
}

.faq-page .accordion-button {
    min-height: 52px;
    font-weight: 600;
    line-height: 1.45;
    padding: 0.85rem 1.1rem;
}

.faq-page .accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: #fff;
}

.faq-page .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-page .accordion-button:focus {
    box-shadow: none;
}

.faq-page .accordion-body {
    line-height: 1.7;
    color: #3c4f69;
}

.faq-page .faq-category {
    scroll-margin-top: 88px;
}

.faq-page .faq-item.highlight {
    border: 2px solid var(--color-primary) !important;
}

.faq-page .faq-sidebar-card .list-group-item.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.faq-page .faq-help-card {
    border-radius: 16px;
}

.faq-page .faq-help-card .btn {
    min-height: 52px;
}

/* --- Reviews --- */
.reviews-page .review-card {
    border-radius: 16px;
}

.reviews-page .review-card .card-body {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.reviews-page .review-actions .btn {
    min-height: 44px;
    min-width: 44px;
}

.reviews-page .reviews-sidebar-card {
    border-radius: 16px;
}

.reviews-page .reviews-sidebar-card .list-group-item {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.reviews-page .reviews-write-btn {
    min-height: 52px;
}

/* Shared hover lift */
.content-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 991.98px) {
    .faq-page .faq-sidebar-card {
        position: static !important;
        top: auto !important;
    }

    .faq-page .faq-sidebar-card .list-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .faq-page .faq-sidebar-card .list-group::-webkit-scrollbar {
        display: none;
    }

    .faq-page .faq-sidebar-card .list-group-item {
        flex: 0 0 auto;
        border-radius: 999px !important;
        border: 1px solid #dee5f0;
        white-space: nowrap;
        padding-inline: 1rem;
    }

    .faq-page .faq-sidebar-card .list-group-item.active {
        border-color: var(--color-primary);
    }

    .reviews-page .reviews-page-row {
        display: flex;
        flex-direction: column;
    }

    .reviews-page .reviews-sidebar-col {
        order: 1;
    }

    .reviews-page .reviews-main-col {
        order: 2;
    }

    .article-detail-page .article-nav .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: start !important;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .news-page .featured-article .featured-image {
        min-height: 220px !important;
    }

    .news-page .featured-article .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .news-page .featured-article .btn {
        width: 100%;
        min-height: 52px;
    }
}

/* =====================================================
   SYSTEM STATES — empty, loading, error pages
   ===================================================== */
.empty-state {
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
    border-radius: 16px;
    border: 1px solid #e6ebf3;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.empty-state--search-hint {
    background: #fff;
}

.empty-state-visual {
    margin-bottom: 1.25rem;
}

.empty-state-image {
    max-width: min(220px, 70vw);
    height: auto;
    opacity: 0.92;
}

.empty-state-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 46, 99, 0.08), rgba(13, 46, 99, 0.03));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.empty-state-title {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 700;
    color: #132741;
    margin-bottom: 0.65rem;
}

.empty-state-message {
    color: #5a6b82;
    max-width: 32rem;
    margin: 0 auto 1.35rem;
    line-height: 1.65;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.empty-state-btn {
    min-height: 52px;
    min-width: 160px;
    padding-inline: 1.25rem;
}

/* Property grid loading skeleton */
.property-grid-shell.is-loading #propertyGrid,
.property-grid-shell.is-loading #resultsGrid {
    display: none !important;
}

.property-grid-shell.is-loading #propertyGridSkeleton,
.property-grid-shell.is-loading #searchGridSkeleton {
    display: block !important;
}

.property-skeleton-grid {
    display: flex;
    flex-wrap: wrap;
}

.property-skeleton-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    background: #fff;
    height: 100%;
}

.property-skeleton-image {
    aspect-ratio: 4 / 3;
    background: #e9eef5;
}

.property-skeleton-body {
    padding: 1rem 1.1rem 1.15rem;
}

.property-skeleton-line {
    height: 14px;
    border-radius: 8px;
    background: #e9eef5;
    margin-bottom: 0.65rem;
}

.property-skeleton-features {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f8;
}

.property-skeleton-pill {
    width: 56px;
    height: 12px;
    border-radius: 999px;
    background: #e9eef5;
}

.skeleton-shimmer {
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer::after {
        animation: none;
        opacity: 0.35;
    }
}

/* Error pages */
.system-error-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 8vw, 4rem) 0;
    background: linear-gradient(180deg, #f4f7fc 0%, #fff 55%);
}

.system-error-card {
    border-radius: 16px;
    border: 1px solid #e6ebf3;
    background: #fff;
    box-shadow: 0 16px 40px rgba(9, 31, 66, 0.08);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
}

.system-error-code {
    font-size: clamp(3.5rem, 14vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.system-error-title {
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #132741;
}

.system-error-message {
    color: #5a6b82;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.system-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.system-error-actions .btn {
    min-height: 52px;
    min-width: 160px;
}

.system-error-search .form-control {
    min-height: 52px;
}

.system-error-search .btn {
    min-height: 52px;
    min-width: 52px;
}

@media (max-width: 575.98px) {
    .system-error-actions {
        flex-direction: column;
    }

    .system-error-actions .btn,
    .empty-state-actions .btn {
        width: 100%;
    }

    .system-error-search {
        flex-direction: column;
    }

    .system-error-search .form-control {
        max-width: none !important;
    }

    .system-error-search .btn {
        width: 100%;
    }
}
