@charset "UTF-8";

/* =========================
   RULE PAGE
========================= */

.rule-page,
.youfo-rule-page {
  background: #f7f9fc;
  color: #111827;
}

.rule-page *,
.youfo-rule-page * {
  box-sizing: border-box;
}

.rule-page img,
.youfo-rule-page img {
  max-width: 100%;
  height: auto;
}

.rule-page a,
.youfo-rule-page a {
  text-decoration: none;
}

.rule-page .inner,
.youfo-rule-page .inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.rule-page section,
.youfo-rule-page section {
  position: relative;
}

/* =========================
   COMMON
========================= */

.section-heading {
  text-align: center !important;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e53935;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-align: center;
}

.section-lead {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.9;
  color: #475569;
  text-align: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.28s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  box-shadow: 0 14px 28px rgba(229, 57, 53, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(229, 57, 53, 0.28);
}

.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

/* =========================
   HERO
========================= */

.rule-hero {
  overflow: hidden;
  padding: 120px 0 96px;
  background: linear-gradient(135deg, #081f3a, #0f3a6b);
  color: #fff;
}

.rule-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.rule-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.rule-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}

.rule-lead {
  margin: 22px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.rule-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* =========================
   BASIC
========================= */

.rule-basic {
  padding: 72px 0;
}

.rule-basic__list {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule-basic__list li {
  padding: 22px 20px 22px 56px;
  position: relative;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  color: #0f172a;
}

.rule-basic__list li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e53935, #c62828);
  box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.12);
}

/* =========================
   VIDEO
========================= */

.rule-video {
  padding: 16px 0 72px;
}

.rule-video__embed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  background: #000;
}

.rule-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   STEPS
========================= */

.rule-steps {
  padding: 72px 0;
}

.rule-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 26px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.1);
  color: #e53935;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-card h3 {
  margin: 18px 0 12px;
  font-size: 22px;
  line-height: 1.4;
  color: #0f172a;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #475569;
}

/* =========================
   FAQ
========================= */

.rule-faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #dbe5ef;
  border-radius: 20px;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-question {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 64px 22px 28px;
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.25s ease;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: #eef4fb;
}

.faq-question::before,
.faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 16px;
  height: 2px;
  background: #2b6cb0;
  transform: translateY(-50%);
  transition: all 0.25s ease;
}

.faq-question::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] .faq-question {
  background: #eef4fb;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.faq-item[open] .faq-answer {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  padding: 18px 28px 22px;
  background: #fff;
  border-top: 1px solid #e5edf5;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* =========================
   CTA
========================= */

.rule-cta {
  padding: 24px 0 96px;
}

.rule-cta__box {
  padding: 40px 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
  text-align: center;
  color: #fff;
}

.rule-cta__box h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  color: #fff;
}

.rule-cta__box p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}

.rule-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.rule-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.rule-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
  .rule-hero {
    padding: 108px 0 84px;
  }

  .rule-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .rule-page .inner,
  .youfo-rule-page .inner {
    width: min(100% - 24px, 1120px);
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 15px;
  }

  .rule-hero {
    padding: 92px 0 72px;
  }

  .rule-title {
    font-size: 38px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  .rule-lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .rule-hero__buttons,
  .rule-cta__buttons {
    flex-direction: column;
  }

  .rule-basic,
  .rule-video,
  .rule-steps,
  .rule-faq {
    padding: 56px 0;
  }

  .rule-basic__list,
  .rule-steps__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rule-basic__list li {
    padding: 18px 18px 18px 48px;
    font-size: 15px;
    line-height: 1.8;
  }

  .rule-basic__list li::before {
    top: 21px;
    left: 18px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 5px rgba(229, 57, 53, 0.12);
  }

  .rule-video__embed {
    border-radius: 20px;
  }

  .step-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .step-card h3 {
    font-size: 20px;
  }

  .step-card p {
    font-size: 14px;
    line-height: 1.85;
  }

  .faq-question {
    padding: 18px 54px 18px 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  .faq-question::before,
  .faq-question::after {
    right: 18px;
  }

  .faq-item[open] .faq-answer {
    padding: 16px 18px 18px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.85;
  }

  .rule-cta {
    padding: 8px 0 72px;
  }

  .rule-cta__box {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .rule-cta__box h2 {
    font-size: 28px;
  }

  .rule-cta__box p {
    font-size: 15px;
    line-height: 1.85;
  }
}

/* =========================
   SECTION TITLE CENTER FIX
========================= */

.youfo-rule-page .section-heading,
.rule-page .section-heading {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 40px !important;
  text-align: center !important;
}

.youfo-rule-page .section-heading > *,
.rule-page .section-heading > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  text-align: center !important;
}

.youfo-rule-page .section-eyebrow,
.rule-page .section-eyebrow {
  display: block !important;
  width: 100% !important;
  margin: 0 auto 12px !important;
  text-align: center !important;
}

.youfo-rule-page .section-title,
.rule-page .section-title {
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.youfo-rule-page .section-lead,
.rule-page .section-lead {
  display: block !important;
  max-width: 760px !important;
  width: 100% !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
}