/*
Theme Name: Riconnexia Academy
Template: eduacademy
Version: 1.2.0
Text Domain: riconnexia-academy
*/

:root {
  --rx-ink: #3e5162;
  --rx-navy: #123e73;
  --rx-orange: #ff5b16;
  --rx-orange-soft: #fff1e9;
  --rx-pearl: #f4f7fb;
  --rx-surface: rgba(255, 255, 255, 0.94);
  --rx-border: #dbe4ee;
  --rx-text: #203040;
  --rx-muted: #64778a;
  --rx-shadow: 0 28px 60px rgba(18, 42, 70, 0.12);
  --rx-shadow-soft: 0 14px 32px rgba(18, 42, 70, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--rx-text);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 22, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(18, 62, 115, 0.09), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

body,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body a,
body button,
body input,
body select,
body textarea {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.wp-site-blocks {
  min-height: 100vh;
}

.wp-site-blocks a {
  text-decoration: none;
}

.rx-header-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 238, 0.8);
  backdrop-filter: blur(16px);
}

.rx-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.rx-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}

.rx-nav a {
  color: var(--rx-text);
  font-weight: 700;
}

.rx-nav a:hover,
.rx-nav a:focus {
  color: var(--rx-orange);
}

.rx-hero,
.rx-page-layout,
.rx-grid-2,
.rx-grid-3,
.rx-grid-4 {
  display: grid;
  gap: 22px;
}

.rx-hero {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 42px;
  align-items: center;
  padding: 54px 0 28px;
}

.rx-page-layout {
  gap: 24px;
}

.rx-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.rx-kicker {
  margin: 0 0 10px;
  color: var(--rx-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rx-hero-copy h1,
.rx-page-hero h1,
.rx-section-head h2 {
  margin: 0 0 14px;
  color: var(--rx-ink);
  letter-spacing: -0.04em;
}

.rx-hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.9;
}

.rx-page-hero h1,
.rx-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.rx-hero-copy p,
.rx-page-hero p,
.rx-section-head p,
.rx-panel p,
.rx-card p,
.rx-contact-card p,
.rx-footer p,
.rx-footer li {
  color: var(--rx-muted);
  line-height: 1.7;
}

.rx-hero-copy p {
  max-width: 620px;
  font-size: 1.08rem;
}

.rx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.rx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rx-button:hover,
.rx-button:focus {
  transform: translateY(-1px);
}

.rx-button-primary {
  background: var(--rx-orange);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 91, 22, 0.24);
}

.rx-button-primary:hover,
.rx-button-primary:focus {
  color: #ffffff;
  background: #ef4d0b;
}

.rx-button-secondary {
  border: 1px solid var(--rx-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--rx-navy);
}

.rx-button-secondary:hover,
.rx-button-secondary:focus {
  color: var(--rx-navy);
  border-color: rgba(18, 62, 115, 0.22);
  background: #ffffff;
}

.rx-mini-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rx-mini-note span,
.rx-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(18, 62, 115, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--rx-navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.rx-hero-visual,
.rx-panel,
.rx-card,
.rx-faq,
.rx-contact-card {
  background: var(--rx-surface);
  border: 1px solid var(--rx-border);
  border-radius: 28px;
  box-shadow: var(--rx-shadow);
}

.rx-panel,
.rx-card,
.rx-contact-card {
  padding: 26px;
}

.rx-page-hero {
  padding: 36px;
  background: linear-gradient(145deg, rgba(255, 91, 22, 0.08), transparent 42%), linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.96));
}

.rx-hero-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 28px;
  background: radial-gradient(circle at top left, rgba(255, 91, 22, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(18, 62, 115, 0.18), transparent 32%), linear-gradient(135deg, #ffffff 0%, #eff5fb 100%);
}

.rx-hero-canvas {
  position: relative;
  z-index: 2;
  height: 100%;
}

.rx-hero-card h3,
.rx-card h3,
.rx-panel h3,
.rx-contact-card h3 {
  margin: 0 0 10px;
  color: var(--rx-ink);
}

.rx-hero-poster,
.rx-hero-note {
  position: absolute;
  border-radius: 30px;
  border: 1px solid rgba(62, 81, 98, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--rx-shadow-soft);
}

.rx-hero-poster {
  overflow: hidden;
}

.rx-hero-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rx-hero-poster-main {
  inset: 0 92px 160px 0;
}

.rx-hero-poster-side {
  top: 74px;
  right: 0;
  width: 210px;
  height: 280px;
}

.rx-hero-note {
  right: 24px;
  bottom: 24px;
  left: 64px;
  padding: 24px;
}

.rx-hero-note h3 {
  margin: 0 0 6px;
  color: var(--rx-ink);
  font-size: 1.35rem;
}

.rx-hero-note p {
  margin: 0 0 18px;
}

.rx-hero-steps {
  display: grid;
  gap: 12px;
}

.rx-hero-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.rx-hero-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--rx-orange-soft);
  color: var(--rx-orange);
  font-weight: 800;
}

.rx-hero-step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rx-ink);
  font-size: 0.96rem;
}

.rx-hero-step p {
  margin: 0;
  font-size: 0.92rem;
}

.rx-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.rx-eyebrow {
  margin: 0 0 10px;
  color: var(--rx-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rx-course-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
}

.rx-course-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rx-pearl);
  color: var(--rx-navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.rx-list,
.rx-inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rx-list li,
.rx-inline-list li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--rx-muted);
}

.rx-list li::before,
.rx-inline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rx-orange);
}

.rx-feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(18, 62, 115, 0.08);
  color: var(--rx-navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.rx-split-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.rx-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rx-step {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--rx-border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--rx-shadow-soft);
}

.rx-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--rx-navy);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.rx-step h3 {
  margin: 18px 0 10px;
  color: var(--rx-ink);
}

.rx-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rx-metric {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--rx-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rx-shadow-soft);
}

.rx-metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rx-ink);
  font-size: 1.6rem;
  line-height: 1;
}

.rx-note-box {
  border-radius: 24px;
  border: 1px solid rgba(255, 91, 22, 0.18);
  background: linear-gradient(135deg, rgba(255, 91, 22, 0.08), rgba(255, 255, 255, 0.96));
}

.rx-faq {
  padding: 12px 24px;
}

.rx-faq details {
  border-bottom: 1px solid var(--rx-border);
  padding: 16px 0;
}

.rx-faq details:last-child {
  border-bottom: 0;
}

.rx-faq summary {
  cursor: pointer;
  color: var(--rx-ink);
  font-weight: 700;
}

.rx-faq p {
  margin: 12px 0 0;
}

.rx-cta-band {
  padding: 40px 28px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #17324c 0%, #123e73 100%);
}

.rx-cta-band h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.rx-cta-band p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
}

.rx-footer {
  margin-top: 56px;
  background: linear-gradient(135deg, #17324c 0%, #0f2340 100%);
  color: #ffffff;
}

.rx-footer a {
  color: #d8ebff;
}

.rx-footer h4 {
  color: #ffffff;
}

.rx-footer p,
.rx-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.rx-page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rx-page-link {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--rx-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rx-shadow-soft);
}

.rx-page-link h3 {
  margin: 0 0 8px;
}

@media (max-width: 1080px) {
  .rx-hero,
  .rx-split-panel {
    grid-template-columns: 1fr;
  }

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

  .rx-steps,
  .rx-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .rx-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .rx-actions {
    width: 100%;
  }

  .rx-grid-3,
  .rx-grid-2,
  .rx-page-links {
    grid-template-columns: 1fr;
  }

  .rx-hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .rx-grid-4,
  .rx-steps,
  .rx-metrics {
    grid-template-columns: 1fr;
  }

  .rx-panel,
  .rx-card,
  .rx-contact-card,
  .rx-page-hero,
  .rx-hero-visual {
    padding: 22px;
  }

  .rx-hero {
    gap: 24px;
    padding-top: 34px;
  }

  .rx-hero-visual {
    min-height: 500px;
  }

  .rx-hero-poster-main {
    inset: 0 36px 172px 0;
  }

  .rx-hero-poster-side {
    top: 54px;
    right: 0;
    width: 150px;
    height: 220px;
  }

  .rx-hero-note {
    right: 16px;
    bottom: 16px;
    left: 24px;
    padding: 20px;
  }

  .rx-header-shell .custom-logo {
    max-width: 190px;
    height: auto;
  }
}
