:root {
  --ink: #0f172a;
  --muted: #64748b;
  --soft-bg: #eef1ff; /* page top light lavender */
  --card-radius: 18px;

  --blue: #1557ff;
  --purple: #6d28d9;

  --btn: #1557ff;
}

* {
  box-sizing: border-box;
}
body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #ffffff;
}

/* ===== TOP HEADER ===== */
.ri-hero {
  background: linear-gradient(120deg, #0066ff1a, #7c3aed1a);
  padding: 54px 0px;
}
.ri-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0066ff;
  background: #0066ff33;
  border: 1px solid #cfe0ff;
  padding: 8px 15px;
  border-radius: 999px;
  line-height: 1;
  margin-bottom: 14px;
}
.ri-badge .dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0ff;
  font-size: 11px;
}
.ri-title {
  font-weight: 700;
  font-size: 50px;
  line-height: 60px;
  margin: 0 0 10px;
  color: #101828;
}
.ri-sub {
  max-width: 760px;
  color: #4a5565;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

/* ===== SECTION WRAPPER ===== */
.ri-wrap {
  padding: 28px 0 50px;
}

/* ===== CARD BASE ===== */
.ri-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin: 20px 0;
}
.ri-card .ri-left {
  padding: 26px 26px;
  min-height: 170px;
}

.ri-kicker {
  display: inline-flex; /* KEY FIX */
  align-items: center;
  width: max-content; /* prevents stretching */
  max-width: 100%;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ri-h {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.ri-p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.65;
  max-width: 360px;
}

.ri-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: max-content; /* 🔑 stops full width */
  max-width: 100%;

  background: rgb(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #0066ff;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.18s ease;
}

.ri-btn:hover {
  transform: translateY(-1px);
  color: #0252cb;
  text-decoration: none;
  background: rgb(213, 213, 213);
}
.ri-btn .ic {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.ri-media {
  height: 100%;
  min-height: 170px;
  overflow: hidden;
  background: #e2e8f0;
}

.ri-media img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CARD 1 (blue->purple) ===== */
.ri-card--trend .ri-left {
  background: linear-gradient(to bottom, #0066ff, #7c3aed);
}
.ri-card--trend .ri-right {
  background: #f8fafc;
  /* padding: 18px; */
}

/* ===== CARD 2 (image left + light blue right) ===== */
.ri-card--guide {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.ri-card--guide .ri-left {
  padding: 0;
  background: #0b1220;
}
.ri-card--guide .ri-right {
  padding: 60px 60px;
}
.ri-card--guide:hover {
  background: linear-gradient(to bottom, #ede3ff 0%, #aaf0fd 100%);
}
.ri-card--guide .guide-h {
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
  color: #0066ff;
}
.ri-card--guide .guide-p {
  margin: 0 0 10px;
  color: #364153;
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}
.ri-card--guide .focus {
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
  color: #0066ff;
}
.ri-card--guide .focus-p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #364153;
  line-height: 1.6;
}
.ri-card--guide .btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: max-content; /* 🔑 stop full width */
  max-width: 100%;
  align-self: flex-start; /* 🔑 stop flex stretch */

  background: #0066ff;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(21, 87, 255, 0.28);
  transition: 0.18s ease;
}

.ri-card--guide .btn-blue:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 87, 255, 0.34);
}

/* ===== CARD 3 (white left + image right) ===== */
.ri-card--insight .ri-right {
  background: #ffffff;
}
.ri-card--insight .ri-left {
  padding: 60px 60px;
}
.ri-card--insight:hover {
  background: linear-gradient(to bottom, #ede3ff 0%, #aaf0fd 100%);
}
.insight-h {
  color: #0066ff;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
}
.insight-p {
  margin: 0 0 10px;
  color: #364153;
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
}
.insight-focus {
  color: #0066ff;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
}
.insight-focus-p {
  margin: 0 0 12px;
  color: #364153;
  font-size: 15px;
  line-height: 1.6;
}
.insight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: max-content; /* 🔑 stop full width */
  max-width: 100%;
  align-self: flex-start; /* 🔑 stop flex stretch */

  background: #0066ff;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(21, 87, 255, 0.28);
  transition: 0.18s ease;
}
.insight-btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 87, 255, 0.32);
}

/* Responsive */
@media (max-width: 991.98px) {
  .ri-title {
    font-size: 32px;
  }
  .ri-card .ri-left,
  .ri-card .ri-right {
    min-height: auto;
  }
  .ri-media {
    min-height: 180px;
  }
}
@media (max-width: 575.98px) {
  .ri-title {
    font-size: 28px;
  }
  .ri-card {
    margin: 16px 0;
  }
}

/* ==================================================== */

.ba-section {
  background: #f6f7fb;
  font-family: "Inter", sans-serif;
}

.ba-tabs {
  gap: 10px;
}

.ba-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: 0.2s ease;
  outline: none;
}

.ba-pill:hover {
  background: #f2f4f7;
}

.ba-pill.active {
  background: #0066ff;
  border-color: #0066ff;
  color: #fff;
}

.ba-pill:focus,
.ba-pill:active,
.ba-pill.active {
  outline: none !important;
  box-shadow: none !important;
}

.ba-panel {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
}

.ba-title {
  font-size: 22px;
  font-weight: 700;
  color: #101828;
}

.ba-subtitle {
  font-size: 13px;
  color: #667085;
}

.ba-card {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  display: flex;
  flex-direction: column;
}

.ba-card:hover {
  background: linear-gradient(135deg, #ede3ff, #aaf0fd);
  border-color: #bee7ff;
}

.ba-thumb-wrap {
  position: relative;
}

.ba-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.ba-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.ba-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ba-meta {
  font-size: 12px;
  color: #667085;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 8px;
}

.ba-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #98a2b3;
  display: inline-block;
}

.ba-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.ba-desc {
  font-size: 13px;
  color: #667085;
  line-height: 1.55;
  margin: 0 0 30px 0;
}

.ba-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ba-author {
  font-size: 12px;
  font-weight: 500;
  color: #626a7e;
}

.ba-link {
  font-size: 12px;
  font-weight: 700;
  color: #1570ef;
  text-decoration: none;
}

.ba-link:hover {
  text-decoration: none;
  color: #1570ef;
}

.ba-loadmore {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #0066ff;
  background: #f9faff;
  color: #0066ff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.ba-loadmore:hover {
  background: #0066ff;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.389);
}

/* ======================================================================= */

/* CTA Section */
.erp-cta{
  font-family: "Inter", sans-serif;
  padding: 70px 0;
  background: linear-gradient(to bottom, #0066FF 0%, #7C3AED 100%);
}

/* Title */
.cta-title{
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Subtitle */
.cta-subtitle{
  font-size: 18px;
  color: #FFFFFFE5;
  margin-bottom: 28px;
}

/* Buttons wrapper */
.cta-actions{
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.cta-actions .btn{
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  line-height: 1.2;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Primary button */
.cta-btn-primary{
  background: #ffffff;
  color: #0066FF;
}

.cta-btn-primary:hover{
  background: #e1edff;
  color: #0066FF;
}

/* Secondary button */
.cta-btn-secondary{
  background: #ffffff;
  color: #0066FF;
}

.cta-btn-secondary:hover{
  background: #ddeaff;
  color: #0066FF;
}

/* Remove focus border */
.cta-actions .btn:focus,
.cta-actions .btn:active{
  outline: none;
  box-shadow: none;
}