/* ===========================
   Insights Archive — Styles
   Rapid Property Transfers — Premium Classical Design
   =========================== */

/* ── Container ─────────────────────────────────────────── */

.ins-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   HERO
   ============================================================ */

.ins-hero {
    background-color: var(--color-navy);
    background-image:
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(197, 160, 73, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 60%);
    padding: 80px 0 72px;
    text-align: center;
}

.ins-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ins-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    background: rgba(197, 160, 73, 0.15);
    border: 1px solid rgba(197, 160, 73, 0.4);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.ins-hero-eyebrow svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ins-hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
}

.ins-hero-subheadline {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 580px;
    margin: 0;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */

.ins-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(12, 30, 74, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0;
}

.ins-filter-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 14px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ins-filter-pills::-webkit-scrollbar {
    display: none;
}

.ins-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    background: transparent;
    border: 1px solid rgba(12, 30, 74, 0.12);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ins-pill:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
    background: rgba(12, 30, 74, 0.04);
}

.ins-pill.is-active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
}

.ins-pill-count {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 1px 7px;
    line-height: 1.4;
}

.ins-pill:not(.is-active) .ins-pill-count {
    background: rgba(12, 30, 74, 0.08);
    color: #6b7280;
}

/* ============================================================
   POST GRID
   ============================================================ */

.ins-grid-section {
    padding: 64px 0 96px;
    background-color: #f8f9fb;
}

.ins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.ins-grid--3 {
    margin-bottom: 0;
}

/* ── Card ───────────────────────────────────────────────── */

.ins-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(12, 30, 74, 0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ins-card:hover {
    box-shadow: 0 8px 32px rgba(12, 30, 74, 0.1);
    transform: translateY(-3px);
    border-color: rgba(197, 160, 73, 0.25);
}

/* Card image */

.ins-card-img-link {
    display: block;
    text-decoration: none;
}

.ins-card-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(12, 30, 74, 0.06);
}

.ins-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ins-card:hover .ins-card-img {
    transform: scale(1.04);
}

.ins-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 30, 74, 0.04);
}

/* Card body */

.ins-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ins-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ins-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(197, 160, 73, 0.12);
    color: #8a6a1e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.ins-cat-badge:hover {
    background: rgba(197, 160, 73, 0.22);
}

.ins-card-read-time {
    font-size: 0.8125rem;
    color: #9ca3af;
    white-space: nowrap;
}

.ins-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.35;
}

.ins-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.ins-card-title a:hover {
    color: var(--color-gold);
}

.ins-card-excerpt {
    font-size: 0.9375rem;
    color: #5a6373;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.ins-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(12, 30, 74, 0.07);
    margin-top: auto;
}

.ins-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.ins-card-date svg {
    flex-shrink: 0;
    color: #d1d5db;
}

.ins-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.15s, gap 0.15s;
}

.ins-card-link:hover {
    color: var(--color-gold);
    gap: 8px;
}

/* ── Empty state ────────────────────────────────────────── */

.ins-empty {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ins-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(12, 30, 74, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(12, 30, 74, 0.3);
}

.ins-empty-text {
    font-size: 1.0625rem;
    color: #6b7280;
    margin: 0;
}

/* ── Pagination ─────────────────────────────────────────── */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-navy);
    background: #ffffff;
    border: 1px solid rgba(12, 30, 74, 0.12);
    text-decoration: none;
    transition: all 0.15s;
}

.page-numbers:hover {
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: #ffffff;
}

.page-numbers.current {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
    pointer-events: none;
}

.page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .ins-hero {
        padding: 64px 0 56px;
    }

    .ins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ============================================================ */

@media (max-width: 640px) {

    .ins-hero {
        padding: 48px 0 40px;
    }

    .ins-grid-section {
        padding: 48px 0 72px;
    }

    .ins-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}
