/* ==========================================================================
   FINWISE INDIA — MODERN FINANCIAL STYLESHEET
   Clean, Fast, Responsive & High-Converting UI
   ========================================================================== */

:root {
  --primary: #1a56db;
  --primary-dark: #0f2b48;
  --primary-hover: #1e429f;
  --accent: #10b981;
  --accent-hover: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #64748b;
  --gray-800: #334155;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--body-bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.4rem;
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.4rem;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Navbar */
.site-navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand span {
  color: var(--accent);
}
.nav-link {
  font-weight: 600;
  color: var(--gray-800) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

/* Top Bar Notice */
.topbar {
  background: var(--primary-dark);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar a {
  color: #cbd5e1;
}
.topbar a:hover {
  color: #fff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0b1e36 0%, #1a56db 100%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-title {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.hero-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.2rem;
}

/* Card Badges & Product Cards */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.card-header-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}
.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}
.product-img-wrap {
  background: #f1f5f9;
  padding: 1.5rem;
  text-align: center;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.product-issuer {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 1rem;
}
.feature-pill {
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

/* Rating Stars */
.rating-badge {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Loan Overview Specs */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  margin: 1rem 0;
}
.spec-item .spec-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  font-weight: 600;
}
.spec-item .spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

/* Calculators Widget */
.calc-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
.calc-result-box {
  background: linear-gradient(135deg, #0b1e36 0%, #1a56db 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}
.calc-result-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #34d399;
}
.calc-slider {
  height: 6px;
  accent-color: var(--primary);
}

/* Category Filter Cards */
.cat-filter-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  display: block;
}
.cat-filter-card:hover, .cat-filter-card.active {
  border-color: var(--primary);
  background: #eff6ff;
  transform: translateY(-2px);
}
.cat-filter-card i {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.cat-filter-card span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.table-compare th, .table-compare td {
  padding: 1.1rem 1.25rem;
  vertical-align: middle;
  border-color: var(--border-color);
}
.table-compare th {
  background: #f8fafc;
  font-weight: 700;
  width: 25%;
}

/* Article Reader */
.article-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
}
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}
.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #eff6ff;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  margin: 1.5rem 0;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
  background: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: #f1f5f9;
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: #0b1e36;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .calc-card {
    padding: 1.25rem;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
}
