/* ================================================================
   AIF Funds — Shared Stylesheet
   AltWealth | India's Alternative Investment Platform
   Font: Inter (matches main site) | Icons: Font Awesome 6.5
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #162435;
  --navy-light: #1e3448;
  --gold:       #C9A84C;
  --gold-lt:    #e8c96a;
  --gold-bg:    rgba(201,168,76,0.09);
  --teal:       #0A9396;
  --teal-bg:    rgba(10,147,150,0.08);
  --green:      #16A34A;
  --green-bg:   #DCFCE7;
  --red:        #DC2626;
  --red-bg:     #FEE2E2;
  --amber:      #D97706;
  --amber-bg:   #FEF3C7;
  --blue:       #2563EB;
  --blue-bg:    #DBEAFE;
  --purple:     #7C3AED;
  --purple-bg:  #F3E8FF;
  --white:      #FFFFFF;
  --bg:         #F5F7FA;
  --s50:        #F8FAFC;
  --s100:       #F1F5F9;
  --s200:       #E2E8F0;
  --s300:       #CBD5E1;
  --s400:       #94A3B8;
  --s500:       #64748B;
  --s600:       #475569;
  --s700:       #334155;
  --s800:       #1E293B;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--s800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════════════
   NAVIGATION BAR (matches main site header)
   ════════════════════════════════════════ */
.site-nav {
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 300;
  gap: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img { height: 28px; filter: brightness(0) invert(1); }
.nav-logo-text {
  font-size: .85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255,255,255,0.45);
}
.nav-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .18s;
}
.nav-breadcrumb a:hover { color: var(--gold); }
.nav-breadcrumb .sep { font-size: .7rem; }
.nav-breadcrumb .current { color: rgba(255,255,255,0.85); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  padding: 7px 16px;
  color: rgba(255,255,255,0.7);
  font-size: .78rem;
  font-weight: 600;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-back-btn:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.nav-back-btn i { font-size: .72rem; }

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.fund-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 12px 40px;
  min-height: 64px;
}
.fund-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 5% 120%, rgba(201,168,76,.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 98% -10%, rgba(10,147,150,.10) 0%, transparent 55%);
  pointer-events: none;
}
.fund-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,.5) 40%, rgba(201,168,76,.5) 60%, transparent 100%);
}
/* decorative large icon in hero bg */
.hero-bg-icon {
  position: absolute;
  right: -20px;
  top: -30px;
  font-size: 16rem;
  opacity: .025;
  color: #fff;
  pointer-events: none;
  line-height: 1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-start;
}
.hero-left {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 22px;
  padding: 5px 14px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-badge i { font-size: .75rem; }
.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .73rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.hero-tag i { color: var(--gold); font-size: .68rem; }
/* hero right: stats */
.hero-stats-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r16);
  padding: 24px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
}
.hstat { text-align: center; }
.hstat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hstat-label {
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-top: 3px;
}
.hstat-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* ════════════════════════════════════════
   KEY INFO STRIP (SEBI / AIF Category / Min Invest)
   ════════════════════════════════════════ */
.key-info-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.key-info-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.kinfo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.kinfo-item:first-child { padding-left: 0; }
.kinfo-item:last-child { border-right: none; }
.kinfo-icon {
  width: 30px; height: 30px;
  background: var(--gold-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .8rem;
  flex-shrink: 0;
}
.kinfo-label { font-size: .64rem; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .07em; display: block; }
.kinfo-val   { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.85); display: block; }

/* ════════════════════════════════════════
   FILTERS / SORT BAR
   ════════════════════════════════════════ */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--s200);
  position: sticky;
  top: 64px;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.filters-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-group-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--s400);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-right: 4px;
  white-space: nowrap;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 22px;
  border: 1.5px solid var(--s200);
  background: transparent;
  color: var(--s500);
  font-size: .78rem;
  font-weight: 600;
  transition: all .16s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-sep { width: 1px; height: 18px; background: var(--s200); margin: 0 2px; }
/* sort select */
.sort-select {
  padding: 6px 30px 6px 12px;
  border: 1.5px solid var(--s200);
  border-radius: 22px;
  background: var(--s50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E") right 12px center no-repeat;
  color: var(--s600);
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .16s;
}
.sort-select:hover { border-color: var(--navy); }
/* search */
.filter-spacer { flex: 1; }
.search-wrap { position: relative; }
.search-wrap i {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--s400); font-size: .76rem;
  pointer-events: none;
}
.search-input {
  padding: 7px 14px 7px 30px;
  border: 1.5px solid var(--s200);
  border-radius: 22px;
  background: var(--s50);
  font-size: .8rem;
  font-family: inherit;
  color: var(--s800);
  outline: none;
  transition: all .18s;
  width: 230px;
}
.search-input:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13,27,42,.06);
}
.result-count {
  font-size: .75rem;
  color: var(--s400);
  white-space: nowrap;
  margin-left: 4px;
}

/* ════════════════════════════════════════
   MAIN BODY
   ════════════════════════════════════════ */
.page-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 40px 80px;
}
.page-body-extras {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 40px 80px;
}

/* ════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.section-header p {
  font-size: .8rem;
  color: var(--s500);
  margin-top: 2px;
}
.count-badge {
  background: var(--s100);
  color: var(--s500);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
}

/* ════════════════════════════════════════
   FUND CARD GRID
   ════════════════════════════════════════ */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

/* ════════════════════════════════════════
   FUND CARD
   ════════════════════════════════════════ */
.fund-card {
  background: var(--white);
  border: 1px solid var(--s200);
  border-radius: var(--r16);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.fund-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,27,42,.12), 0 2px 8px rgba(13,27,42,.06);
  border-color: var(--s300);
}
/* featured ribbon */
.fund-card.featured { border-color: rgba(201,168,76,.45); }
.fund-card.featured::after {
  content: '★ Top Pick';
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* new badge */
.fund-card.new-fund::before {
  content: 'New';
  position: absolute;
  top: 14px; left: 14px;
  background: var(--teal);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 1;
}

/* — Card Header — */
.card-header {
  padding: 18px 18px 14px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.card-logo-wrap {
  width: 50px; height: 50px;
  border-radius: var(--r12);
  background: var(--s50);
  border: 1px solid var(--s200);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
  letter-spacing: -.02em;
}
.card-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-title-block { flex: 1; min-width: 0; }
.card-fund-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-manager-name {
  font-size: .73rem;
  color: var(--s500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  background: var(--teal-bg);
  border: 1px solid rgba(10,147,150,.18);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .62rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* — Metrics Row — */
.card-divider { height: 1px; background: var(--s100); margin: 0 18px; }
.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 18px;
  gap: 0;
}
.c-metric { text-align: center; }
.c-metric:not(:last-child) {
  border-right: 1px solid var(--s100);
  padding-right: 8px;
}
.c-metric:not(:first-child) { padding-left: 8px; }
.cm-value {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.cm-value.pos { color: var(--green); }
.cm-value.neg { color: var(--red); }
.cm-label {
  font-size: .62rem;
  font-weight: 600;
  color: var(--s400);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  margin-top: 2px;
}

/* — Footer Row — */
.card-divider2 { height: 1px; background: var(--s100); }
.card-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.ctag {
  font-size: .64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ctag-neutral { background: var(--s100); color: var(--s600); }
.ctag-green   { background: var(--green-bg); color: var(--green); }
.ctag-amber   { background: var(--amber-bg); color: var(--amber); }
.ctag-blue    { background: var(--blue-bg);  color: var(--blue);  }
.ctag-red     { background: var(--red-bg);   color: var(--red);   }
.ctag-purple  { background: var(--purple-bg);color: var(--purple);}
.ctag-teal    { background: var(--teal-bg);  color: var(--teal);  }

.invest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 700;
  transition: background .18s, transform .14s;
  flex-shrink: 0;
  white-space: nowrap;
}
.invest-btn:hover { background: var(--navy-light); transform: scale(1.03); }
.invest-btn i { font-size: .68rem; }

/* — Risk bar — */
.risk-bar-wrap { padding: 10px 18px 0; }
.risk-bar-label {
  font-size: .62rem;
  font-weight: 600;
  color: var(--s400);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 5px;
}
.risk-bar {
  height: 4px;
  background: var(--s100);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}
.risk-bar-fill { height: 100%; border-radius: 99px; }
.risk-low    .risk-bar-fill { background: var(--green); width: 25%; }
.risk-medium .risk-bar-fill { background: var(--amber); width: 50%; }
.risk-high   .risk-bar-fill { background: #f97316;      width: 75%; }
.risk-very-high .risk-bar-fill { background: var(--red); width: 100%; }

/* ════════════════════════════════════════
   ABOUT SECTION (below grid)
   ════════════════════════════════════════ */
.about-section {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--s200);
  border-radius: var(--r16);
  padding: 28px;
}
.about-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r12);
  background: var(--gold-bg);
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.about-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.about-card p, .about-card li {
  font-size: .82rem;
  color: var(--s500);
  line-height: 1.7;
}
.about-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-card ul li {
  display: flex; align-items: flex-start; gap: 8px;
}
.about-card ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   DISCLAIMER
   ════════════════════════════════════════ */
.disclaimer-box {
  margin-top: 40px;
  background: var(--s50);
  border: 1px solid var(--s200);
  border-radius: var(--r12);
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.disclaimer-box i { color: var(--s400); font-size: .88rem; margin-top: 2px; flex-shrink: 0; }
.disclaimer-box p { font-size: .73rem; color: var(--s500); line-height: 1.65; }

/* ════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--s400);
}
.empty-state i { font-size: 2.8rem; display: block; margin-bottom: 14px; color: var(--s300); }
.empty-state p { font-size: .88rem; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats-box { display: grid; grid-template-columns: repeat(3, 1fr); min-width: unset; }
  .hstat-divider { display: none; }
}
@media (max-width: 860px) {
  .site-nav, .filters-inner, .page-body { padding-left: 20px; padding-right: 20px; }
  .fund-hero { padding: 10px 20px; }
  .key-info-inner { padding: 12px 20px; }
  .fund-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .about-section { grid-template-columns: 1fr; }
  .key-info-bar { display: none; }
}
@media (max-width: 600px) {
  .search-wrap { order: 10; width: 100%; }
  .search-input { width: 100%; }
  .filter-spacer { display: none; }
  .fund-grid { grid-template-columns: 1fr; }
  .hero-stats-box { grid-template-columns: 1fr 1fr; }
}
/* ========================================================= */
/* GLOBAL OVERRIDE: List Layout for Fund Cards (Image Match) */
/* ========================================================= */
.fund-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: var(--white) !important;
  border: 1px solid var(--s200) !important;
  border-radius: var(--r16) !important;
  padding: 0 !important;
}
.fund-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 24px 32px !important;
  border: none !important;
  border-bottom: 1px dashed var(--s200) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  transition: background .2s !important;
}
.fund-card:last-child { border-bottom: none !important; }
.fund-card:hover {
  background: var(--s50) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Hide unwanted elements */
.risk-bar-wrap, .card-divider, .card-divider2, .card-manager-name, .card-sub-badge,
.fund-card.featured::after, .fund-card.new-fund::before {
  display: none !important;
}

/* Order elements */
.card-header { order: 1 !important; padding: 0 !important; }
.card-footer { order: 2 !important; padding: 8px 0 0 68px !important; justify-content: flex-start !important; border: none !important; }
.card-metrics { order: 3 !important; padding: 24px 0 0 68px !important; }

/* Header Layout */
.card-header { display: flex !important; align-items: center !important; gap: 20px !important; }
.card-logo-wrap {
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  background: #0D1B2A !important;
  color: white !important;
  font-size: 1.1rem !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.card-title-block { flex: 1 !important; }
.card-fund-name { font-size: 1.15rem !important; font-weight: 500 !important; color: #222 !important; }

/* Card Tags */
.card-tags { display: flex !important; gap: 8px !important; }
.ctag {
  background: #fff !important; color: var(--s500) !important;
  border: 1px solid var(--s200) !important; border-radius: 4px !important;
  padding: 3px 8px !important; font-size: 0.72rem !important; font-weight: 500 !important;
  text-transform: capitalize !important;
}

/* Arrow / Invest button */
.card-footer .invest-btn {
  position: absolute !important; top: 38px !important; right: 32px !important;
  background: transparent !important; color: var(--s400) !important;
  font-size: 0 !important; padding: 0 !important; border: none !important;
}
.card-footer .invest-btn:hover { background: transparent !important; color: var(--s800) !important; transform: none !important; }
.card-footer .invest-btn i::before {
  content: "\f054" !important; font-size: 1.3rem !important; color: var(--s400) !important;
  font-family: 'Font Awesome 6 Free' !important; font-weight: 900 !important;
}

/* Metrics Row */
.card-metrics {
  display: grid !important; grid-template-columns: 1fr 1fr 1fr !important; gap: 16px !important; border: none !important;
}
.c-metric {
  display: flex !important; flex-direction: column-reverse !important; align-items: flex-start !important;
  text-align: left !important; border: none !important; padding: 0 !important;
}
.c-metric:nth-child(1) { order: 3 !important; }
.c-metric:nth-child(2) { order: 2 !important; }
.c-metric:nth-child(3) { order: 1 !important; }

.cm-label {
  font-size: 0.8rem !important; font-weight: 400 !important; color: var(--s400) !important;
  text-transform: capitalize !important; margin-bottom: 6px !important; margin-top: 0 !important;
}
.cm-value { font-size: 1.05rem !important; font-weight: 500 !important; color: #333 !important; }
.cm-value.pos { color: var(--green) !important; }

@media (max-width: 768px) {
  .card-footer, .card-metrics { padding-left: 0 !important; }
  .card-metrics { grid-template-columns: 1fr !important; gap: 12px !important; }
  .card-footer .invest-btn { top: 20px !important; right: 20px !important; }
}


/* Explorer Layout */
.fund-explorer-layout {
  display: flex !important;
  gap: 32px !important;
  max-width: 1300px !important;
  margin: 40px auto !important;
  padding: 0 40px !important;
  align-items: flex-start !important;
}

/* Sidebar */
.sidebar-filters {
  width: 280px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  position: sticky !important;
  top: 80px !important;
}
.sf-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: -10px !important;
}
.sf-header h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #111 !important;
}
.sf-clear {
  background: transparent !important;
  color: var(--green) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border: none !important;
}
.sf-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  border-bottom: 1px solid var(--s200) !important;
  padding-bottom: 24px !important;
}
.sf-group:last-child { border-bottom: none !important; }
.sf-title {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin-bottom: 4px !important;
}
.sf-lbl {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.85rem !important;
  color: var(--s600) !important;
  cursor: pointer !important;
}
.sf-lbl input { accent-color: var(--blue) !important; }
.sf-more {
  background: transparent !important;
  color: var(--green) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 4px !important;
}
.sf-btn-group {
  display: flex !important;
  border: 1px solid var(--s200) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
.sf-btn-group button {
  flex: 1 !important;
  background: #fff !important;
  border: none !important;
  border-right: 1px solid var(--s200) !important;
  font-size: 0.7rem !important;
  padding: 8px 4px !important;
  color: var(--s600) !important;
}
.sf-btn-group button:last-child { border-right: none !important; }
.sf-btn-group button:hover { background: var(--s50) !important; }
.sf-search {
  border: 1px solid var(--s200) !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  margin-bottom: 4px !important;
}

/* Main Content Wrapper */
.explorer-content {
  flex: 1 !important;
  min-width: 0 !important;
}
.section-header h2 {
  font-size: 1.5rem !important;
  padding: 12px 24px !important;
  background: #fff !important;
  border: 1px solid var(--s200) !important;
  border-radius: 8px 8px 0 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.explorer-sorting-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #fff !important;
  padding: 10px 20px !important;
  border: 1px solid var(--s200) !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  flex-wrap: nowrap !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
}
.es-pills-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
}
.es-pill-sep {
  display: inline-block !important;
  width: 1px !important;
  height: 20px !important;
  background: #d1d5db !important;
  margin: 0 4px !important;
  flex-shrink: 0 !important;
}
.es-count {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #555 !important;
  white-space: nowrap !important;
}
.es-controls {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.es-pill-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.es-pill-label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #555 !important;
  white-space: nowrap !important;
  margin-right: 4px !important;
}
.es-pill, .es-period-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 13px !important;
  border-radius: 20px !important;
  border: 1.5px solid #d1d5db !important;
  background: #fff !important;
  color: #555 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  line-height: 1 !important;
}
.es-pill:hover, .es-period-pill:hover {
  border-color: #0D1B2A !important;
  color: #0D1B2A !important;
  background: #f4f6f9 !important;
}
.es-pill.active {
  background: #0D1B2A !important;
  border-color: #0D1B2A !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.es-period-pill.active {
  background: #1a7a4a !important;
  border-color: #1a7a4a !important;
  color: #fff !important;
  font-weight: 600 !important;
}
/* Search — natural flex item in the middle */
.es-search-wrap {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  max-width: 320px !important;
  position: relative !important;
}
.es-search-icon {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-size: 0.75rem !important;
  pointer-events: none !important;
}
.es-search-input {
  padding: 7px 14px 7px 30px !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-family: inherit !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  outline: none !important;
  transition: all 0.18s !important;
  width: 100% !important;
}
.es-search-input:focus {
  border-color: #0D1B2A !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(13,27,42,0.07) !important;
}
.sf-filter-btn.active {
  background: #0D1B2A !important;
  color: #fff !important;
}

@media (max-width: 1024px) {
  .fund-explorer-layout { flex-direction: column !important; }
  .sidebar-filters { width: 100% !important; position: relative !important; top: 0 !important; }
}


/* React fund widget styles */
@import url('../assets/css/fund-widget.css');
