/* =====================================================================
   EduHub Academy — Step page styles (AI for Business, steps 1–5)
   Shared layout for step-1.html … step-5.html. Ukrainian-flag palette,
   matched to ai-for-business.html (navy #0E2A5C, gold #F4C430, sky #0057B7).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:        #0E2A5C;
  --navy-deep:   #0A1F45;
  --navy-deeper: #081A3C;
  --purple-mid:  #F4C430;
  --purple-lt:   #F7D873;
  --gold-hover:  #D6A91E;
  --sky:         #0057B7;
  --indigo-lt:   #F5F5F6;
  --text-body:   #1F1F1F;
  --text-muted:  #6B6B6B;
  --white:       #FFFFFF;
  --gray-50:     #FFFFFF;
  --border:      rgba(244,196,48,0.15);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--navy); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3, h4, h5, h6,
.section-title, .step-hero h1, .cta-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  letter-spacing: -0.3px;
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ── BG BLOBS ── */
.blob { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.blob-tl { width:600px;height:600px;background:rgba(244,196,48,0.05);top:-200px;left:-200px; }
.blob-tr { width:500px;height:500px;background:rgba(0,87,183,0.05);top:-100px;right:-150px; }
.blob-br { width:500px;height:500px;background:rgba(244,196,48,0.05);bottom:-100px;right:-100px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 0 6%; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.25rem; font-weight: 900; color: var(--navy); letter-spacing: -0.4px; text-decoration: none; }
.logo span { color: var(--purple-mid); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-body); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-right-group { display: flex; align-items: center; gap: 10px; }
.nav-login { color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 600; padding: 9px 20px; border-radius: 50px; border: 1.5px solid var(--border); transition: border-color .2s, background .2s; }
.nav-login:hover { border-color: var(--purple-mid); background: var(--indigo-lt); }
.nav-cta {
  background: #F4C430; color: #0E2A5C;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 800; font-size: 0.88rem; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(244,196,48,.35);
}
.nav-cta:hover { background: #D6A91E; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,196,48,.5); }
.nav-mobile-controls { display: none; align-items: center; gap: 4px; }
.hamburger {
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; padding: 8px; z-index: 200; border-radius: 8px; transition: background .2s;
}
.hamburger:hover { background: var(--indigo-lt); }
.hamburger span { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 3px; transition: all .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; width: 100%;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 99;
  flex-direction: column; padding: 16px 6% 24px; gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--navy); text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 12px 0; border-bottom: 1px solid var(--border); display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--purple-mid); }
.mobile-menu .m-cta {
  margin-top: 12px; background: var(--navy); color: #fff !important;
  padding: 14px 24px; border-radius: 50px; text-align: center; font-weight: 700;
}

/* ── STEP HERO ── */
.step-hero { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 122px 6% 8px; text-align: center; }
.step-back { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text-muted); font-size: .82rem; font-weight: 600; margin-bottom: 22px; transition: color .2s; }
.step-back:hover { color: var(--sky); }
.step-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,87,183,0.08); color: var(--sky);
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.4px; padding: 7px 16px; border-radius: 50px; margin-bottom: 20px;
}
.step-eyebrow .num { font-family: 'Space Grotesk','Inter',sans-serif; }
.step-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 900; color: var(--navy); line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px; }
.step-hero .lead { color: var(--text-body); font-size: 1.08rem; line-height: 1.75; max-width: 640px; margin: 0 auto; }

/* ── VIDEO ── */
.video-wrap { position: relative; z-index: 1; max-width: 1140px; margin: 40px auto 0; padding: 0 6%; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deeper) 100%); box-shadow: var(--shadow-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; border: none; width: 100%; background: transparent; }
.video-poster::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(0,87,183,.30), transparent 62%); pointer-events: none; }
.video-badge { position: relative; z-index: 1; background: rgba(244,196,48,0.16); color: var(--purple-lt); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; padding: 6px 16px; border-radius: 50px; }
.video-play { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; border: none; background: var(--purple-mid); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(244,196,48,.5); transition: transform .2s; }
.video-poster:hover .video-play { transform: scale(1.07); }
.video-play svg { margin-left: 5px; }
.video-note { position: relative; z-index: 1; color: rgba(255,255,255,.72); font-size: .8rem; font-weight: 600; letter-spacing: .3px; }

/* ── OUTCOMES ── */
.learn-section { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 56px 6% 6px; }
.learn-section .section-badge {
  display: inline-block; background: var(--sky); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
.learn-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--navy); letter-spacing: -.5px; margin-bottom: 20px; }
.step-outcomes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.step-outcomes li { position: relative; padding-left: 30px; font-size: 0.96rem; color: var(--text-body); line-height: 1.6; }
.step-outcomes li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--purple-mid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E2A5C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ── EXERCISES ── */
.ex-section { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 56px 6% 10px; }
.ex-head { text-align: center; margin-bottom: 32px; }
.ex-head .section-badge {
  display: inline-block; background: var(--purple-mid); color: var(--navy);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px;
}
.ex-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.ex-head p { color: var(--text-muted); font-size: .98rem; margin-top: 8px; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ex-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,87,183,.30); }
.ex-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: #fff; font-family: 'Space Grotesk','Inter',sans-serif; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px; }
.ex-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.55rem; color: var(--navy); margin-bottom: 10px; line-height: 1.15; }
.ex-card p { color: var(--text-body); font-size: 0.95rem; line-height: 1.7; }
.ex-tag { display: inline-block; margin-top: 16px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--sky); background: rgba(0,87,183,.08); padding: 5px 12px; border-radius: 50px; }

/* ── RESOURCES BAND (download + request support) ── */
.res-band { position: relative; z-index: 1; max-width: 920px; margin: 34px auto 0; padding: 0 6%; }
.res-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: linear-gradient(150deg, #FFFDF6 0%, #F4F8FF 100%); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 28px 32px; }
.res-copy h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 4px; }
.res-copy p { color: var(--text-muted); font-size: .9rem; max-width: 360px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.res-download { display: inline-flex; align-items: center; gap: 9px; background: #F4C430; color: #0E2A5C; text-decoration: none; padding: 13px 24px; border-radius: 50px; font-weight: 800; font-size: .9rem; box-shadow: 0 5px 18px rgba(244,196,48,.4); transition: background .2s, transform .2s; }
.res-download:hover { background: var(--gold-hover); transform: translateY(-2px); }
.res-support { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border: none; cursor: pointer; padding: 13px 24px; border-radius: 50px; font-weight: 800; font-size: .9rem; font-family: inherit; transition: background .2s, transform .2s; }
.res-support:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ── PREV / NEXT ── */
.step-nav { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 50px 6% 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.step-nav a { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 22px; transition: border-color .2s, transform .2s; min-width: 170px; }
.step-nav a:hover { border-color: var(--sky); transform: translateY(-2px); }
.step-nav .lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.step-nav .ttl { font-size: .92rem; font-weight: 700; color: var(--navy); }
.step-nav a.next { text-align: right; margin-left: auto; }
.step-nav a.disabled { opacity: .4; pointer-events: none; }

/* ── CTA ── */
.cta-section { position: relative; z-index: 1; padding: 90px 6% 100px; }
.cta-box {
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-deeper) 100%);
  border-radius: var(--radius-2xl); padding: 64px 56px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; width: 400px; height: 400px; background: rgba(244,196,48,0.3); border-radius: 50%; filter: blur(80px); top: -100px; right: -100px; pointer-events: none; }
.cta-box::after { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(0,87,183,0.35); border-radius: 50%; filter: blur(80px); bottom: -80px; left: -80px; pointer-events: none; }
.cta-box .cta-eyebrow { display: inline-block; position: relative; z-index: 1; background: rgba(244,196,48,0.16); color: var(--purple-lt); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; padding: 6px 16px; border-radius: 50px; margin-bottom: 18px; }
.cta-box h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,0.78); font-size: 1.02rem; max-width: 540px; margin: 0 auto 32px; position: relative; z-index: 1; line-height: 1.75; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white { background: #fff; color: var(--navy); padding: 15px 34px; border-radius: 50px; font-weight: 800; font-size: 0.95rem; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: #fff; padding: 15px 34px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background .2s, border-color .2s; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ── FOOTER ── */
footer { background: var(--gray-50); border-top: 1px solid var(--border); padding: 60px 6% 36px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 48px; }
.footer-brand p { color: var(--text-body); font-size: 0.87rem; line-height: 1.7; margin-top: 10px; max-width: 260px; }
.footer-col h5 { font-weight: 700; font-size: 0.87rem; color: var(--navy); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-body); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ── REQUEST SUPPORT MODAL ── */
.rsup-overlay { position: fixed; inset: 0; z-index: 1001; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,31,69,.55); backdrop-filter: blur(4px); }
.rsup-overlay.open { display: flex; }
.rsup-modal { background: #fff; width: 100%; max-width: 460px; border-radius: 22px; padding: 34px 30px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.3); position: relative; animation: rsupIn .25s ease; }
@keyframes rsupIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rsup-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none; background: #F4F4F5; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--navy); line-height: 1; }
.rsup-close:hover { background: #E9E9EC; }
.rsup-eyebrow { display: inline-block; background: var(--purple-mid); color: var(--navy); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; padding: 5px 13px; border-radius: 50px; margin-bottom: 12px; }
.rsup-modal h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75rem; color: var(--navy); margin-bottom: 6px; line-height: 1.15; }
.rsup-modal p.rsup-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; line-height: 1.55; }
.rsup-field { margin-bottom: 14px; text-align: left; }
.rsup-field label { display: block; font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.rsup-field input, .rsup-field textarea { width: 100%; border: 1.5px solid rgba(14,42,92,.16); border-radius: 12px; padding: 11px 14px; font-size: .92rem; font-family: inherit; color: var(--text-body); outline: none; transition: border-color .2s; background: #fff; }
.rsup-field input:focus, .rsup-field textarea:focus { border-color: var(--sky); }
.rsup-field textarea { resize: vertical; min-height: 96px; }
.rsup-submit { width: 100%; background: #F4C430; color: #0E2A5C; border: none; cursor: pointer; padding: 14px; border-radius: 50px; font-weight: 800; font-size: .95rem; font-family: inherit; box-shadow: 0 6px 18px rgba(244,196,48,.4); transition: background .2s, transform .2s; margin-top: 4px; }
.rsup-submit:hover { background: var(--gold-hover); transform: translateY(-1px); }
.rsup-submit:disabled { opacity: .6; cursor: default; transform: none; }
.rsup-success { display: none; text-align: center; padding: 10px 0 4px; }
.rsup-success.show { display: block; }
.rsup-success .rsup-check { width: 54px; height: 54px; border-radius: 50%; background: var(--sky); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ── RESPONSIVE ── */
@media(max-width:860px){
  .step-outcomes { grid-template-columns: 1fr; }
  .ex-grid { grid-template-columns: 1fr; }
  .res-inner { flex-direction: column; align-items: flex-start; }
}
@media(max-width:768px){
  .hamburger { display: flex !important; }
  nav .nav-right-group, nav .nav-links, nav ul,
  nav .nav-login, nav .nav-cta, nav a:not(.logo) { display: none !important; }
  nav .nav-mobile-controls { display: flex !important; }
  nav .logo { font-size: 0.95rem !important; max-width: calc(100% - 60px); }
  nav { padding: 0 4% !important; }
}
@media(max-width:600px){
  .step-hero { padding-top: 110px; }
  .cta-box { padding: 52px 26px; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .step-nav a.next { margin-left: 0; }
  .res-actions { width: 100%; }
  .res-download, .res-support { flex: 1; justify-content: center; }
  /* Prevent iOS Safari auto-zoom on input focus (needs >=16px) */
  .rsup-field input, .rsup-field textarea { font-size: 16px; }
}
@media(max-width:760px) and (min-width:601px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
