/* Financial Calculator Hub — matches Gujarati Financial Calculator Hub.png */

.page-calculators .site-main {
  background: #f4f8fb;
}

.calc-hub {
  --ch-navy: #0c2144;
  --ch-green: #00a85a;
  --ch-orange: #f48734;
  --ch-line: #e2eaf0;
  --ch-shadow: 0 8px 22px rgba(12, 33, 68, 0.08);
  color: var(--ch-navy);
}

.calc-hub .ch-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

.calc-hub .ch-hero {
  background: linear-gradient(105deg, #eef8ff, #f8fcfa 50%, #e8f7ef);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #b9e4ff, var(--ch-green), var(--ch-orange)) 1;
}

.calc-hub .ch-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
  min-height: 280px;
  padding: 24px 0;
}

.calc-hub .ch-eyebrow {
  color: var(--ch-green);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 6px;
}

.calc-hub .ch-crumb {
  font-size: 13px;
  color: #5f6f86;
  margin: 0 0 10px;
}

.calc-hub .ch-crumb a {
  color: var(--ch-green);
  font-weight: 700;
  text-decoration: none;
}

.calc-hub .ch-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.calc-hub .ch-tag {
  margin: 0 0 8px;
  color: var(--ch-green);
  font-weight: 800;
  font-size: 1.1rem;
}

.calc-hub .ch-lead {
  margin: 0;
  line-height: 1.7;
  color: #3d4f68;
  font-size: 15px;
  max-width: 520px;
}

.calc-hub .ch-hero-side {
  position: relative;
}

.calc-hub .ch-hero-photo {
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  height: 230px;
  box-shadow: var(--ch-shadow);
}

.calc-hub .ch-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calc-hub .ch-benefits {
  position: absolute;
  right: 8px;
  bottom: -16px;
  width: min(260px, 90%);
  background: #fff;
  border: 1px solid var(--ch-line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--ch-shadow);
}

.calc-hub .ch-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.calc-hub .ch-benefits li {
  font-size: 11px;
  padding-left: 1.2rem;
  position: relative;
  color: #334155;
}

.calc-hub .ch-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ch-green);
  font-weight: 800;
}

.calc-hub .ch-tabs-bar {
  background: linear-gradient(90deg, #0a3d2e, #0f5c42);
  padding: 10px 0;
}

.calc-hub .ch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.calc-hub .ch-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #e8f5ec;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.calc-hub .ch-tabs button.is-active {
  background: var(--ch-green);
  border-color: var(--ch-green);
  color: #fff;
}

.calc-hub .ch-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin: 24px auto 36px;
  align-items: start;
}

.calc-hub .ch-main {
  display: grid;
  gap: 22px;
}

.calc-hub .ch-section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ch-navy);
}

.calc-hub .ch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calc-hub .ch-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-hub .ch-card {
  background: #fff;
  border: 1px solid var(--ch-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ch-shadow);
}

.calc-hub .ch-card__thumb {
  height: 72px;
  overflow: hidden;
}

.calc-hub .ch-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calc-hub .ch-card h3 {
  margin: 0;
  padding: 8px 12px 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.calc-hub .ch-card .home-calc-flip {
  padding: 10px 12px 12px;
}

.calc-hub .ch-calc-form {
  display: grid;
  gap: 8px;
}

.calc-hub .ch-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #3d4f68;
}

.calc-hub .ch-field input,
.calc-hub .ch-field select {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}

.calc-hub .ch-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.calc-hub .ch-submit {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--ch-green);
  color: #fff;
  font-weight: 800;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
}

.calc-hub .ch-card .home-calc-flip__inner {
  min-height: 220px;
}

.calc-hub .ch-card .home-calc-flip__face--back {
  background: #eef6ff;
  border-radius: 10px;
  padding: 8px;
}

.calc-hub .ch-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 1rem;
}

.calc-hub .ch-panel {
  background: #fff;
  border: 1px solid var(--ch-line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--ch-shadow);
}

.calc-hub .ch-panel--cta {
  background: linear-gradient(160deg, #0c2144, #153b78);
  color: #fff;
}

.calc-hub .ch-panel--cta h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1rem;
}

.calc-hub .ch-panel--cta p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #d6e7f4;
}

.calc-hub .ch-cta-btn {
  display: block;
  text-align: center;
  background: var(--ch-orange);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.calc-hub .ch-formula {
  font-size: 12px;
  line-height: 1.6;
  color: #3d4f68;
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
}

.calc-hub .ch-notes {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 12px;
  color: #3d4f68;
  line-height: 1.55;
}

.calc-hub .ch-notes li {
  margin-bottom: 6px;
}

@media (max-width: 1024px) {
  .calc-hub .ch-layout {
    grid-template-columns: 1fr;
  }

  .calc-hub .ch-aside {
    position: static;
  }

  .calc-hub .ch-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .calc-hub .ch-hero-grid {
    grid-template-columns: 1fr;
  }

  .calc-hub .ch-hero-photo {
    border-radius: 14px;
    height: 180px;
  }

  .calc-hub .ch-benefits {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .calc-hub .ch-grid,
  .calc-hub .ch-grid--3 {
    grid-template-columns: 1fr;
  }
}
