/* Homepage — Mock-Quiz-Expert landing */

@keyframes cftHomeFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cftHomeGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

body.home .entry-header,
body.home .entry-title,
body.home #post-title {
  display: none !important;
}

body.home #header.header-inner {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 18px !important;
  background-image: none !important;
  background: linear-gradient(180deg, #053941 0%, #0a5560 100%) !important;
}

body.home #header.header-inner::after {
  display: none !important;
}

body.home .site_content.content-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home #content,
body.home .entry-content,
body.home article {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.cft-home {
  --cft-navy: #053941;
  --cft-teal: #064852;
  --cft-teal-mid: #0e636f;
  --cft-cyan: #3feee6;
  --cft-cyan-soft: #7af0ea;
  --cft-coral: #ff85a5;
  --cft-ink: #e8fffc;
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--cft-ink);
  margin: 0 0 40px;
}

body.home .wrapper {
  background: linear-gradient(180deg, #053941 0%, #064852 42%, #0a5560 100%) !important;
}

/* —— Hero (one composition) —— */
.cft-home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 68vh, 620px);
  border-radius: 20px;
  margin: 0 0 28px;
  isolation: isolate;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.cft-home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--cft-hero-image);
  background-size: cover;
  background-position: 62% center;
  transform: scale(1.06);
  filter: contrast(1.2) saturate(1.28);
  z-index: 0;
}

.cft-home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(63, 238, 230, 0.5) 0%, transparent 48%),
    linear-gradient(210deg, rgba(255, 133, 165, 0.55) 0%, transparent 62%);
  mix-blend-mode: color;
  pointer-events: none;
}

.cft-home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(5, 57, 65, 0.9) 0%,
      rgba(6, 72, 82, 0.72) 34%,
      rgba(6, 72, 82, 0.28) 58%,
      rgba(6, 72, 82, 0.08) 100%);
}

.cft-home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(36px, 7vw, 72px) clamp(22px, 5vw, 56px);
  animation: cftHomeFadeUp 0.7s ease both;
}

.cft-home-brand {
  margin: 0 0 16px !important;
  font-family: ethnocentric, sans-serif !important;
  font-size: clamp(22px, 4vw, 36px) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3feee6 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.cft-home-brand span {
  display: block;
  margin: 8px 0 0;
  color: rgba(232, 255, 252, 0.88);
  font-family: Montserrat, "Segoe UI", sans-serif !important;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: baseline;
}

.cft-home-title {
  margin: 0 0 14px !important;
  max-width: 16ch;
  font-family: ethnocentric, sans-serif !important;
  font-size: clamp(24px, 3.8vw, 38px) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3feee6 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: cftHomeFadeUp 0.75s ease 0.08s both;
}

.cft-home-lead {
  margin: 0 0 26px !important;
  max-width: 38em;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: rgba(232, 255, 252, 0.9) !important;
  text-align: left !important;
  animation: cftHomeFadeUp 0.75s ease 0.16s both;
}

.cft-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: cftHomeFadeUp 0.75s ease 0.24s both;
}

.cft-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cft-home-btn-primary {
  background: linear-gradient(90deg, #3feee6, #7af0ea 55%, #ff85a5) !important;
  color: #064852 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.cft-home-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  color: #04353c !important;
}

.cft-home-btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(63, 238, 230, 0.45) !important;
  color: #3feee6 !important;
  backdrop-filter: blur(8px);
}

.cft-home-btn-ghost:hover {
  background: rgba(63, 238, 230, 0.14) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* —— Shared sections —— */
.cft-home-section {
  margin: 0 0 28px;
}

.cft-home-section-head {
  margin: 0 0 18px;
}

.cft-home-section-head h2 {
  margin: 0 0 8px !important;
  font-family: ethnocentric, sans-serif !important;
  font-size: clamp(20px, 2.8vw, 26px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3feee6 !important;
  text-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.cft-home-section-head p {
  margin: 0 !important;
  color: rgba(232, 255, 252, 0.85) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

/* —— Qualification paths (interactive cards OK) —— */
.cft-home-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cft-home-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit !important;
  background: linear-gradient(165deg, #075864 0%, #064852 100%);
  border: 1px solid rgba(63, 238, 230, 0.42);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(63, 238, 230, 0.16);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.cft-home-path::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3feee6, #7af0ea);
}

.cft-home-path-cerer::before {
  background: linear-gradient(90deg, #ff85a5, #ffb0c4);
}

.cft-home-path-dipfa::before {
  background: linear-gradient(90deg, #3feee6, #ff85a5);
}

.cft-home-path:hover {
  transform: translateY(-6px);
  border-color: rgba(63, 238, 230, 0.75);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(63, 238, 230, 0.22);
}

.cft-home-path-cerer {
  border-color: rgba(255, 133, 165, 0.5);
}

.cft-home-path-cerer:hover {
  border-color: rgba(255, 133, 165, 0.8);
}

.cft-home-path-tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(63, 238, 230, 0.16);
  border: 1px solid rgba(63, 238, 230, 0.4);
  color: #3feee6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cft-home-path-cerer .cft-home-path-tag {
  background: rgba(255, 133, 165, 0.16);
  border-color: rgba(255, 133, 165, 0.45);
  color: #ff85a5;
}

.cft-home-path-dipfa .cft-home-path-tag {
  background: rgba(63, 238, 230, 0.1);
  border-color: rgba(255, 133, 165, 0.4);
  color: #7af0ea;
}

.cft-home-path h3 {
  margin: 4px 0 0 !important;
  font-family: ethnocentric, sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3feee6 !important;
  text-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.cft-home-path p {
  margin: 0 !important;
  flex: 1 1 auto;
  color: rgba(232, 255, 252, 0.88) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

.cft-home-path-cta {
  margin-top: 8px;
  color: #ff85a5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cft-home-path:hover .cft-home-path-cta {
  color: #3feee6;
}

/* —— Features —— */
.cft-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cft-home-feature {
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 88, 100, 0.92) 0%, rgba(6, 72, 82, 0.92) 100%);
  border: 1px solid rgba(63, 238, 230, 0.32);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cft-home-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 238, 230, 0.6);
}

.cft-home-feature:nth-child(even) {
  border-color: rgba(255, 133, 165, 0.38);
}

.cft-home-feature:nth-child(even):hover {
  border-color: rgba(255, 133, 165, 0.7);
}

.cft-home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(63, 238, 230, 0.16);
  border: 1px solid rgba(63, 238, 230, 0.4);
  color: #3feee6;
  font-size: 18px;
}

.cft-home-feature:nth-child(even) .cft-home-feature-icon {
  background: rgba(255, 133, 165, 0.16);
  border-color: rgba(255, 133, 165, 0.42);
  color: #ff85a5;
}

.cft-home-feature h3 {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  color: #fff !important;
  text-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.cft-home-feature p {
  margin: 0 !important;
  color: rgba(232, 255, 252, 0.82) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

/* —— Coverage band —— */
.cft-home-coverage-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  padding: 28px 26px;
  border-radius: 20px;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(63, 238, 230, 0.22), transparent 55%),
    radial-gradient(420px 200px at 100% 100%, rgba(255, 133, 165, 0.2), transparent 50%),
    linear-gradient(135deg, #064852, #0e636f);
  border: 1px solid rgba(63, 238, 230, 0.38);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.cft-home-coverage-copy h2 {
  margin: 0 0 10px !important;
  font-family: ethnocentric, sans-serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3feee6 !important;
  text-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.cft-home-coverage-copy p {
  margin: 0 0 18px !important;
  color: rgba(232, 255, 252, 0.9) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.cft-home-coverage-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cft-home-coverage-list li {
  position: relative;
  margin: 0 0 10px !important;
  padding: 12px 14px 12px 16px !important;
  border-radius: 12px;
  background: rgba(5, 57, 65, 0.45);
  border: 1px solid rgba(63, 238, 230, 0.28);
  border-left: 3px solid #3feee6;
  color: rgba(232, 255, 252, 0.92) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-indent: 0 !important;
  list-style: none !important;
}

.cft-home-coverage-list li:nth-child(even) {
  border-left-color: #ff85a5;
}

.cft-home-coverage-list li:before {
  content: none !important;
}

.cft-home-coverage-list strong {
  color: #3feee6;
}

/* —— Trust / closing CTA —— */
.cft-home-trust-inner {
  padding: 34px 28px;
  border-radius: 20px;
  text-align: left;
  background:
    linear-gradient(120deg, rgba(255, 133, 165, 0.12), transparent 40%),
    linear-gradient(160deg, #064852, #0e636f 60%, #0a4f59);
  border: 1px solid rgba(63, 238, 230, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.cft-home-trust-eyebrow {
  margin: 0 0 10px !important;
  color: #ff85a5 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cft-home-trust-inner h2 {
  margin: 0 0 12px !important;
  font-family: ethnocentric, sans-serif !important;
  font-size: clamp(20px, 2.8vw, 28px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3feee6 !important;
  text-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.cft-home-trust-inner > p {
  margin: 0 0 22px !important;
  max-width: 48em;
  color: rgba(232, 255, 252, 0.9) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

@media (max-width: 991px) {
  .cft-home-path-grid {
    grid-template-columns: 1fr;
  }

  .cft-home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cft-home-coverage-panel {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

@media (max-width: 650px) {
  .cft-home-hero {
    min-height: 460px;
    border-radius: 16px;
  }

  .cft-home-brand span {
    display: block;
    margin: 8px 0 0;
  }

  .cft-home-feature-grid {
    grid-template-columns: 1fr;
  }

  .cft-home-btn {
    width: 100%;
  }

  .cft-home-trust-inner {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cft-home-hero-inner,
  .cft-home-title,
  .cft-home-lead,
  .cft-home-actions {
    animation: none !important;
  }
}
