/* ============ KADENCE OVERRIDES ============ */
body.post-type-archive-fund,
body.post-type-archive-fund .site,
body.post-type-archive-fund .site-container,
body.post-type-archive-fund #wrapper,
body.post-type-archive-fund .content-wrap,
body.post-type-archive-fund .site-main,
body.post-type-archive-fund #main,
body.post-type-archive-fund .entry-content-wrap,
body.post-type-archive-fund .entry-content,
body.post-type-archive-fund .content-area,
body.post-type-archive-fund article {
    background: #0B1221 !important;
    color: #FFFFFF !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

body.post-type-archive-fund .site-main .entry-content > *,
body.post-type-archive-fund .site-main > * {
    max-width: none !important;
}

body.post-type-archive-fund .site-main {
    width: 100% !important;
    float: none !important;
}

body.post-type-archive-fund .entry-header,
body.post-type-archive-fund .page-title,
body.post-type-archive-fund .entry-title,
body.post-type-archive-fund .archive-title,
body.post-type-archive-fund .archive-description {
    display: none !important;
}

body.post-type-archive-fund .content-wrap {
    padding: 0 !important;
}

body.post-type-archive-fund .hero-title,
body.post-type-archive-fund .section-title {
    color: #FFFFFF !important;
}

/* ============ BASE ============ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============ HERO ============ */
.archive-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}
.archive-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 50% 30%, rgba(56,189,248,0.04) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 80% 70%, rgba(45,212,168,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.archive-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.archive-hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.15);
    font-size: 12px; font-weight: 600; color: var(--sky-400);
    margin-bottom: 24px; letter-spacing: 0.04em;
}
.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: 52px; line-height: 1.12; margin-bottom: 20px;
    max-width: 700px; color: var(--white);
}
.hero-sub {
    font-size: 17px; color: var(--slate-400); line-height: 1.7;
    max-width: 640px; margin-bottom: 32px;
}

/* ============ SEARCH / FILTER BAR ============ */
.filter-bar {
    padding: 24px 0 0;
}
.filter-inner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.search-box {
    flex: 1; min-width: 260px;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.2s;
}
.search-box:focus-within { border-color: rgba(56,189,248,0.3); }
.search-box svg { flex-shrink: 0; color: var(--slate-500); }
.search-box input {
    flex: 1; background: none; border: none; outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; color: var(--white);
}
.search-box input::placeholder { color: var(--slate-500); }
.filter-pill {
    padding: 10px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: var(--slate-400); font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    appearance: none; -webkit-appearance: none;
}
.filter-pill:hover { border-color: rgba(255,255,255,0.15); color: var(--white); }
.filter-pill option { background: var(--navy-800); color: var(--white); }
.fund-count {
    font-size: 13px; color: var(--slate-500); font-weight: 500;
    margin-left: auto;
}
.fund-count strong { color: var(--teal-400); }

/* ============ FUND GRID ============ */
.fund-grid-section {
    padding: 40px 0 100px;
}
.fund-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.fund-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    transition: all 0.2s;
}
.fund-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}
.fund-logo {
    width: 40px; height: 40px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    font-size: 14px; font-weight: 700; color: var(--slate-400);
}
.fund-logo img {
    width: 100%; height: 100%; object-fit: cover;
}
.fund-info { flex: 1; min-width: 0; }
.fund-name {
    font-size: 14px; font-weight: 600; color: var(--white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fund-meta-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 2px;
}
.fund-type-tag {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.03em; padding: 1px 6px; border-radius: 3px;
}
.tag-hf { background: rgba(45,212,168,0.1); color: var(--teal-400); }
.tag-vc { background: rgba(99,102,241,0.1); color: var(--indigo-500); }
.tag-idx { background: rgba(56,189,248,0.1); color: var(--sky-400); }
.tag-other { background: rgba(148,163,184,0.1); color: var(--slate-400); }
.fund-region {
    font-size: 11px; color: var(--slate-500);
}
.fund-arrow {
    color: var(--slate-600); flex-shrink: 0;
    transition: color 0.2s;
}
.fund-card:hover .fund-arrow { color: var(--teal-400); }

/* ============ PAGINATION ============ */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 4px; margin-top: 48px;
}
.page-btn {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--slate-400);
    background: none; border: 1px solid transparent;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.page-btn:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--white); }
.page-btn.active {
    background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.2);
    color: var(--sky-400);
}
.page-btn-nav {
    width: auto; padding: 0 12px;
    font-size: 12px; font-weight: 600;
}

/* ============ CTA ============ */
.cta-section {
    padding: 40px 0 120px;
    text-align: center;
}
.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 36px; line-height: 1.2; margin-bottom: 14px;
    color: var(--white);
}
.cta-text {
    font-size: 15px; color: var(--slate-400); line-height: 1.65;
    max-width: 500px; margin: 0 auto 28px;
}
.cta-buttons {
    display: flex; gap: 16px; justify-content: center;
}
.btn-primary {
    padding: 12px 28px; background: var(--teal-400); color: var(--navy-950);
    font-size: 14px; font-weight: 700; border-radius: 8px;
    text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover { background: var(--teal-300); }
.btn-secondary {
    padding: 12px 28px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white); font-size: 14px; font-weight: 600;
    border-radius: 8px; text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out forwards; opacity: 0; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .archive-hero { padding: 110px 0 40px; }
    .hero-title { font-size: 36px; }
    .filter-inner { flex-direction: column; align-items: stretch; }
    .fund-count { margin-left: 0; }
    .fund-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .fund-grid { grid-template-columns: repeat(2, 1fr); }
}
