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

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

.riv-premium-content,
.riv-premium-content * {
  box-sizing: border-box;
}

.riv-premium-content {
  --riv-ink: #241715;
  --riv-muted: #6f5f5b;
  --riv-line: rgba(190, 105, 72, 0.18);
  --riv-primary: #ff4500;
  --riv-secondary: #d93b67;
  --riv-gold: #f0a23c;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--riv-ink);
  background: #fff;
  line-height: 1.5;
}

.riv-premium-content .riv-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.riv-premium-content .riv-section-white {
  background: #fff;
}

.riv-premium-content .riv-section-warm {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 69, 0, 0.09), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(217, 59, 103, 0.08), transparent 30%),
    linear-gradient(180deg, #fff7f1 0%, #fffaf7 100%);
}

.riv-premium-content .riv-container {
  width: min(1320px, calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  padding: 92px 0;
}

.riv-premium-content .riv-section-head {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.riv-premium-content .riv-section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2.2rem) !important;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 850;
  color: var(--riv-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-premium-content .riv-section-head h2 span {
  background: linear-gradient(135deg, var(--riv-primary), var(--riv-secondary) 55%, var(--riv-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.riv-premium-content .riv-section-head p {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--riv-muted);
  font-size: 1.03rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-premium-content .riv-card-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.riv-premium-content .riv-card {
  --fg-mx: 50%;
  --fg-my: 50%;
  --fg-tilt-x: 0deg;
  --fg-tilt-y: 0deg;
  --riv-card-accent: #ff4500;
  --riv-card-soft: rgba(255, 69, 0, 0.12);
  --riv-card-soft-2: rgba(217, 59, 103, 0.08);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 254px;
  padding: 26px;
  border: 1px solid var(--riv-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--fg-mx) var(--fg-my), rgba(255, 255, 255, 0.88), transparent 0 23%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 244, 0.82)),
    linear-gradient(135deg, var(--riv-card-soft), transparent 45%, var(--riv-card-soft-2));
  box-shadow: 0 18px 45px rgba(94, 52, 36, 0.08);
  isolation: isolate;
  overflow: hidden;
  transform: translateY(26px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y));
  opacity: 0;
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
  will-change: transform, opacity;
}

.riv-premium-content .riv-card:nth-child(2) { --riv-card-accent: #d93b67; --riv-card-soft: rgba(217, 59, 103, 0.13); --riv-card-soft-2: rgba(255, 69, 0, 0.08); }
.riv-premium-content .riv-card:nth-child(3) { --riv-card-accent: #f0a23c; --riv-card-soft: rgba(240, 162, 60, 0.16); --riv-card-soft-2: rgba(255, 69, 0, 0.07); }
.riv-premium-content .riv-card:nth-child(4) { --riv-card-accent: #a748ff; --riv-card-soft: rgba(167, 72, 255, 0.12); --riv-card-soft-2: rgba(217, 59, 103, 0.07); }
.riv-premium-content .riv-card:nth-child(5) { --riv-card-accent: #0f9f8f; --riv-card-soft: rgba(15, 159, 143, 0.12); --riv-card-soft-2: rgba(240, 162, 60, 0.09); }
.riv-premium-content .riv-card:nth-child(6) { --riv-card-accent: #e05233; --riv-card-soft: rgba(224, 82, 51, 0.13); --riv-card-soft-2: rgba(15, 159, 143, 0.07); }
.riv-premium-content .riv-card:nth-child(7) { --riv-card-accent: #3d7bf2; --riv-card-soft: rgba(61, 123, 242, 0.11); --riv-card-soft-2: rgba(255, 69, 0, 0.08); }
.riv-premium-content .riv-card:nth-child(8) { --riv-card-accent: #b96b18; --riv-card-soft: rgba(185, 107, 24, 0.13); --riv-card-soft-2: rgba(217, 59, 103, 0.08); }

.riv-premium-content .riv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--fg-mx) var(--fg-my), color-mix(in srgb, var(--riv-card-accent) 22%, transparent), transparent 34%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: -1;
}

.riv-premium-content .riv-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--riv-card-accent), transparent);
  opacity: 0.55;
}

.riv-premium-content .riv-card.riv-visible {
  opacity: 1;
  transform: translateY(0) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y));
}

.riv-premium-content .riv-card:hover {
  border-color: color-mix(in srgb, var(--riv-card-accent) 42%, transparent);
  box-shadow: 0 26px 70px rgba(94, 52, 36, 0.16);
  transform: translateY(-7px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y));
}

.riv-premium-content .riv-card:hover::before {
  opacity: 1;
}

.riv-premium-content .riv-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--riv-card-accent) 13%, #ffffff);
  color: var(--riv-card-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--riv-card-accent) 16%, transparent);
  transition: transform 260ms ease, background 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.riv-premium-content .riv-icon i {
  font-size: 1.2rem;
  line-height: 1;
}

.riv-premium-content .riv-card:hover .riv-icon {
  transform: translateY(-3px) scale(1.06) rotate(-3deg);
  background: var(--riv-card-accent);
  color: #fff;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--riv-card-accent) 28%, transparent);
}

.riv-premium-content .riv-card h3 {
  position: relative;
  display: inline;
  margin: 0;
  color: var(--riv-ink);
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  background-image: linear-gradient(var(--riv-card-accent), var(--riv-card-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 260ms ease;
}

.riv-premium-content .riv-card:hover h3 {
  background-size: 100% 2px;
}

.riv-premium-content .riv-card p {
  margin: 14px 0 0;
  color: var(--riv-muted);
  font-size: 0.96rem;
  line-height: 1.66;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-premium-content .riv-cta {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 20px;
  color: var(--riv-card-accent);
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0.2;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-premium-content .riv-card:hover .riv-cta {
  opacity: 1;
  transform: translateY(0);
}

.riv-premium-content .riv-tilt {
  transform-style: preserve-3d;
  perspective: 900px;
}

.riv-premium-content .riv-process {
  min-height: 270px;
}

.riv-premium-content .riv-step {
  position: absolute;
  top: 18px;
  right: 20px;
  max-width: calc(100% - 40px);
  color: color-mix(in srgb, var(--riv-card-accent) 22%, transparent);
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
  transition: transform 260ms ease, color 260ms ease;
  overflow: hidden;
}

.riv-premium-content .riv-process:hover .riv-step {
  transform: translateY(-4px) scale(1.05);
  color: color-mix(in srgb, var(--riv-card-accent) 34%, transparent);
}

@media (min-width: 1200px) {
  .riv-premium-content .riv-container {
    width: min(1320px, calc(100% - 64px));
    padding: 96px 0;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .riv-premium-content .riv-container {
    width: min(1080px, calc(100% - 48px));
    padding: 82px 0;
  }

  .riv-premium-content .riv-section-head {
    margin-bottom: 36px;
  }

  .riv-premium-content .riv-section-head p {
    font-size: 0.99rem;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px;
  }

  .riv-premium-content .riv-card {
    padding: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .riv-premium-content .riv-container {
    width: min(880px, calc(100% - 40px));
    padding: 68px 0;
  }

  .riv-premium-content .riv-section-head {
    margin-bottom: 30px;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px;
  }

  .riv-premium-content .riv-card {
    padding: 22px;
    min-height: 232px;
  }

  .riv-premium-content .riv-card h3 {
    font-size: 1.02rem;
  }

  .riv-premium-content .riv-card p {
    font-size: 0.93rem;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .riv-premium-content .riv-container {
    width: min(100%, calc(100% - 28px));
    padding: 54px 0;
  }

  .riv-premium-content .riv-section-head {
    margin-bottom: 24px;
  }

  .riv-premium-content .riv-section-head p {
    font-size: 0.93rem;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .riv-premium-content .riv-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 21px;
  }

  .riv-premium-content .riv-cta {
    opacity: 0.9;
    transform: none;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .riv-premium-content .riv-container {
    width: min(100%, calc(100% - 24px));
    padding: 46px 0;
  }

  .riv-premium-content .riv-section-head {
    margin-bottom: 22px;
  }

  .riv-premium-content .riv-section-head p {
    font-size: 0.9rem;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .riv-premium-content .riv-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 19px;
    border-radius: 16px;
  }

  .riv-premium-content .riv-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .riv-premium-content .riv-card h3 {
    font-size: 0.98rem;
  }

  .riv-premium-content .riv-card p {
    font-size: 0.9rem;
  }

  .riv-premium-content .riv-step {
    font-size: 3.1rem;
    top: 16px;
    right: 16px;
  }

  .riv-premium-content .riv-cta {
    opacity: 0.9;
    transform: none;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .riv-premium-content .riv-container {
    width: min(100%, calc(100% - 20px));
    padding: 38px 0;
  }

  .riv-premium-content .riv-section-head {
    margin-bottom: 20px;
  }

  .riv-premium-content .riv-section-head p {
    font-size: 0.86rem;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .riv-premium-content .riv-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 16px;
    border-radius: 15px;
  }

  .riv-premium-content .riv-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    margin-bottom: 14px;
  }

  .riv-premium-content .riv-icon i {
    font-size: 1rem;
  }

  .riv-premium-content .riv-card h3 {
    font-size: 0.94rem;
  }

  .riv-premium-content .riv-card p {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .riv-premium-content .riv-step {
    font-size: 2.6rem;
    top: 14px;
    right: 14px;
  }

  .riv-premium-content .riv-cta {
    margin-top: 16px;
    font-size: 0.82rem;
    opacity: 0.9;
    transform: none;
  }
}

@media (max-width: 319px) {
  .riv-premium-content .riv-container {
    width: min(100%, calc(100% - 18px));
    padding: 34px 0;
  }

  .riv-premium-content .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .riv-premium-content .riv-card {
    padding: 15px;
    min-width: 0;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .riv-premium-content .riv-card,
  .riv-premium-content .riv-card::before,
  .riv-premium-content .riv-icon,
  .riv-premium-content .riv-cta,
  .riv-premium-content .riv-step,
  .riv-premium-content .riv-card h3 {
    transition: none !important;
    animation: none !important;
  }

  .riv-premium-content .riv-card,
  .riv-premium-content .riv-card.riv-visible,
  .riv-premium-content .riv-card:hover {
    opacity: 1;
    transform: none !important;
  }
}