/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:         #3145D0;
  --teal-dk:      #2538b0;
  --teal-light:   #eef0fa;
  --orange:       #3145D0;
  --orange-dk:    #2538b0;
  --blue:         #006FF0;
  --blue-dk:      #005acc;
  --yellow:       #f9c846;
  --green:        #28a745;
  --color-text:   #2d2d2d;
  --color-muted:  #6b7280;
  --color-border: #e5e7eb;
  --color-bg:     #ffffff;
  --color-bg-alt: #f8f6f3;
  --color-dark:   #1a1a2e;

  --font-heading: 'Nunito', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.12);

  --max-width:   1160px;
  --section-gap: 5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 800;
}

ul { padding-left: 1.25rem; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header .section-title { margin-bottom: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 2px 12px rgba(49,69,208,.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem;
  gap: 1rem;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  line-height: 1.1;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-img--footer { width: 72px; height: 72px; }

.logo-text { display: flex; flex-direction: column; }

.logo-mina { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--orange); }
.logo-tean { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--blue); }
.logo small {
  font-size: .68rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===== Nav ===== */
.main-nav { display: flex; gap: .2rem; flex-wrap: wrap; }

.nav-link {
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-text);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .7rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(49,69,208,.35);
}
.btn-primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); box-shadow: 0 6px 20px rgba(49,69,208,.45); }
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(49,69,208,.3);
}
.btn-teal:hover { background: var(--teal-dk); border-color: var(--teal-dk); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.8);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-dark:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: .4rem 1.1rem; font-size: .85rem; }
.btn-block { display: block; text-align: center; margin-bottom: .5rem; }

/* ===== Animations ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Elements that animate on load */
.anim-slide-up   { animation: fadeSlideUp   .7s cubic-bezier(.22,.61,.36,1) both; }
.anim-slide-right{ animation: fadeSlideRight .7s cubic-bezier(.22,.61,.36,1) both; }
.anim-slide-left { animation: fadeSlideLeft  .7s cubic-bezier(.22,.61,.36,1) both; }
.anim-pop        { animation: popIn          .6s cubic-bezier(.22,.61,.36,1) both; }
.anim-float      { animation: floatY 4s ease-in-out infinite; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .35s; }
.delay-4 { animation-delay: .5s; }
.delay-5 { animation-delay: .65s; }

/* Scroll-reveal (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* ===== Hero ===== */
.hero {
  background: var(--teal);
  min-height: 560px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

/* Decorative bubbles */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; top: -120px; left: -100px; }
.hero::after  { width: 280px; height: 280px; bottom: -80px; left: 36%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { color: #fff; }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Hero image side */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-wrap {
  position: relative;
  width: 420px;
  max-width: 100%;
}

.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.4);
  box-shadow: 0 16px 56px rgba(0,0,0,.25);
}

/* Floating badge on image */
.hero-badge-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: .75rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero-badge-float .num  { font-size: 1.6rem; color: var(--teal); }
.hero-badge-float .lbl  { font-size: .75rem; color: var(--color-muted); }

.badge-tl { top: 6%;  left: -5%; animation: floatY 3.5s ease-in-out infinite; }
.badge-br { bottom: 8%; right: -4%; animation: floatY 4.2s ease-in-out .8s infinite; }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1.5px solid var(--color-border);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(49,69,208,.1);
  transform: translateY(-3px);
}
.feature-icon { font-size: 2.25rem; margin-bottom: .85rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--color-text); }
.feature-card p  { font-size: .9rem; color: var(--color-muted); }

/* ===== Programs ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.program-card {
  display: block;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s, box-shadow .2s, transform .18s;
  text-decoration: none;
  color: var(--color-text);
}
.program-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--color-text);
}
.program-card h3 { font-size: 1.25rem; color: var(--teal); margin-bottom: .5rem; }
.program-card p  { font-size: .9rem; color: var(--color-muted); margin-bottom: 1rem; }
.program-card ul { font-size: .9rem; margin-bottom: 1.25rem; }
.program-card ul li { margin-bottom: .3rem; }
.card-link { font-family: var(--font-heading); font-weight: 700; color: var(--teal); font-size: .9rem; }

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.news-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .18s, border-color .2s;
  text-decoration: none;
  color: var(--color-text);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal);
  text-decoration: none;
  color: var(--color-text);
}
.news-meta { font-size: .78rem; color: var(--teal); margin-bottom: .5rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.news-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-card p  { font-size: .9rem; color: var(--color-muted); margin-bottom: 1rem; }

.news-list { display: flex; flex-direction: column; gap: 1.75rem; max-width: 760px; }
.news-list-item {
  padding: 2rem;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}
.news-list-meta { font-size: .78rem; color: var(--teal); margin-bottom: .4rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.news-list-item h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.news-list-item h2 a { color: var(--color-text); }
.news-list-item h2 a:hover { color: var(--teal); }
.news-list-item p { color: var(--color-muted); margin-bottom: 1rem; }

/* ===== Contact strip ===== */
.contact-strip { background: var(--teal); }
.contact-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: var(--section-gap) 0;
}
.contact-strip h2 { font-size: 1.85rem; margin-bottom: .5rem; color: #fff; }
.contact-strip > .container > div > p { color: rgba(255,255,255,.85); }
.contact-strip-details { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.contact-strip-details a { color: #fff; font-weight: 600; }
.contact-strip-details a:hover { text-decoration: underline; }

/* ===== Page hero ===== */
.page-hero {
  background: var(--teal);
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1  { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: .5rem; color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.breadcrumb { display: inline-block; margin-bottom: 1rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.breadcrumb:hover { color: #fff; text-decoration: none; }
.post-date { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: .5rem; display: block; }

/* ===== Content layout ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.content-main h2 { font-size: 1.55rem; margin: 2rem 0 1rem; color: var(--color-text); }
.content-main h2:first-child { margin-top: 0; }
.content-main p  { margin-bottom: 1rem; }
.content-main ul { margin-bottom: 1rem; }
.content-main ul li { margin-bottom: .35rem; }
.content-main a  { color: #fff; }
.content-main .btn-outline  { color: #006FF0; }

.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.post-content ul { margin-bottom: 1.25rem; }

/* ===== Info Cards ===== */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
}
.info-card .btn { margin-top: auto; padding-top: .6rem; }
.info-card.accent-blue  { background: #eff6ff; border-color: var(--blue); }
.info-card.accent-green { background: #f0fdf4; border-color: var(--green); }
.info-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.info-card ul { font-size: .9rem; }

/* ===== Subjects grid ===== */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}
.subject {
  padding: .75rem 1rem;
  background: var(--teal-light);
  border: 1.5px solid rgba(49,69,208,.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  color: var(--teal-dk);
}

/* ===== Price table ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}
.price-table th, .price-table td {
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.price-table th { background: var(--teal-light); font-family: var(--font-heading); color: var(--teal-dk); }

/* ===== Highlight box ===== */
.highlight-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  background: var(--teal-light);
  border: 1.5px solid rgba(49,69,208,.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.highlight-item { display: flex; flex-direction: column; gap: .25rem; }
.highlight-item strong { font-size: .85rem; color: var(--color-muted); }
.highlight-item span   { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--teal-dk); }

/* ===== Callout ===== */
.callout {
  background: #fffbeb;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ===== Styled list ===== */
.styled-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.styled-list li {
  padding: .55rem 0 .55rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ===== Curriculum grid ===== */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.curriculum-card {
  padding: 1.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.curriculum-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(49,69,208,.08); }
.curriculum-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.curriculum-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.curriculum-card p  { font-size: .9rem; color: var(--color-muted); }

/* ===== Sidebar ===== */
.sidebar-box {
  background: #fff;
  border: 1.5px solid rgba(49,69,208,.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(49,69,208,.1);
}
.sidebar-box h3 { font-size: 1rem; margin-bottom: 1rem; color: #3145D0; font-weight: 800; }
.sidebar-box p  { font-size: .9rem; color: #58585A; margin-bottom: .75rem; }
.sidebar-box a:not(.btn) { font-size: .9rem; color: var(--teal); }
.sidebar-box a:not(.btn):hover { color: var(--teal-dk); text-decoration: underline; }

.sidebar-news-link {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(49,69,208,.1);
  text-decoration: none;
  color: var(--color-text);
  font-size: .9rem;
}
.sidebar-news-link:last-child { border-bottom: none; }
.sidebar-news-link small { color: #9ca3af; }
.sidebar-news-link:hover { color: var(--teal); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  background: #060B2A;
  color: #BFBFC0;
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer .logo-mina { font-size: 1.3rem; color: var(--orange); }
.site-footer .logo-tean { font-size: 1.3rem; color: var(--blue); }
.site-footer .logo-tean { font-size: 1.3rem; color: var(--orange); }
.footer-brand p { font-size: .85rem; color: #9ca3af; margin-top: .5rem; }

.footer-contact h4, .footer-links h4, .footer-social h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: .95rem;
  margin-bottom: .75rem;
}
.footer-contact p { font-size: .85rem; margin-bottom: .3rem; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--teal); }

.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { color: #BFBFC0; font-size: .85rem; }
.footer-links a:hover { color: var(--teal); text-decoration: none; }

.footer-social a {
  display: flex; align-items: center; gap: .5rem;
  color: #9ca3af; font-size: .9rem;
}
.footer-social a:hover { color: var(--teal); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: #6b7280;
}
.footer-dev { margin-top: .35rem; }
.footer-dev a { color: #BFBFC0; transition: color .15s; }
.footer-dev a:hover { color: #fff; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner         { grid-template-columns: 1fr; text-align: center; }
  .hero-visual        { order: -1; }
  .hero-img-wrap      { width: 300px; margin: 0 auto; }
  .hero-lead          { max-width: 100%; }
  .hero-actions       { justify-content: center; }
  .contact-strip-inner{ grid-template-columns: 1fr; }
  .content-layout     { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr 1fr; }
  .info-cards         { grid-template-columns: 1fr; }
  .badge-tl, .badge-br { display: none; }
}

@media (max-width: 640px) {
  :root { --section-gap: 3rem; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--teal);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }

  .hero { min-height: auto; padding: 2.5rem 0; }
  .hero-img-wrap { width: 240px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .contact-strip-inner { padding: 3rem 0; }
}

/* =====================================================
   ===== REGISTRATION MODAL (shared by all forms) =====
   ===================================================== */

.reg-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 20, 50, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.reg-backdrop.open { opacity: 1; pointer-events: all; }

.reg-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(15,20,50,.25);
  transform: translateY(24px) scale(.97);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
.reg-backdrop.open .reg-modal { transform: translateY(0) scale(1); }

.reg-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.75rem 2rem 0;
}
.reg-header h2 {
  font-size: 1.35rem; font-weight: 800;
  font-family: 'Nunito', sans-serif; color: #1e2d3d; margin: 0;
}
.reg-header p { font-size: .82rem; color: #6b7280; margin: .2rem 0 0; }

.reg-close {
  background: #f3f4f6; border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: .85rem; cursor: pointer;
  color: #6b7280; flex-shrink: 0; margin-top: .15rem;
  transition: background .15s, color .15s;
}
.reg-close:hover { background: #fee2e2; color: #dc2626; }

.reg-steps {
  display: flex; align-items: center;
  padding: 1.25rem 2rem .5rem;
}
.reg-step {
  display: flex; align-items: center; gap: .4rem;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .8rem;
  color: #9ca3af; white-space: nowrap;
}
.reg-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #e5e7eb; color: #9ca3af;
  font-size: .75rem; font-weight: 800;
  transition: background .2s, color .2s;
}
.reg-step.active      { color: #3145D0; }
.reg-step.active span { background: #3145D0; color: #fff; }
.reg-step.done        { color: #006FF0; }
.reg-step.done span   { background: #006FF0; color: #fff; }

.reg-step-divider {
  flex: 1; height: 2px; background: #e5e7eb;
  margin: 0 .5rem; border-radius: 2px; transition: background .3s;
}
.reg-step-divider.done { background: #006FF0; }

.reg-form { padding: 1.25rem 2rem 0; }
.reg-page { display: none; }
.reg-page.active { display: block; animation: pageFadeIn .25s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reg-field { margin-bottom: 1.1rem; }
.reg-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.reg-field label {
  display: block; margin-bottom: .4rem;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .82rem;
  color: #374151;
}
.req { color: #e85d2e; }

.reg-field input,
.reg-field textarea,
.reg-field select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif; font-size: .95rem;
  color: #1e2d3d; background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none; appearance: none;
}
.reg-field input:focus,
.reg-field textarea:focus,
.reg-field select:focus {
  border-color: #3145D0;
  box-shadow: 0 0 0 3px rgba(49,69,208,.12);
}
.reg-field input.invalid,
.reg-field select.invalid,
.reg-field textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.reg-field textarea { resize: vertical; min-height: 80px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾'; position: absolute; right: .9rem; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  color: #6b7280; font-size: .85rem;
}

.field-error {
  display: block; min-height: 1rem;
  font-size: .75rem; color: #ef4444;
  margin-top: .25rem; font-family: 'Nunito', sans-serif;
}

.field-hint {
  display: block; font-size: .72rem; color: #9ca3af;
  margin-top: .25rem; font-family: 'Nunito', sans-serif;
}

.review-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem; margin-bottom: .5rem;
}
.review-item {
  background: #f8f9ff; border-radius: 10px; padding: .75rem 1rem;
}
.review-item .rlabel {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: #6b7280; font-weight: 700; font-family: 'Nunito', sans-serif;
  margin-bottom: .2rem;
}
.review-item .rvalue {
  font-size: .92rem; font-weight: 700; color: #1e2d3d;
  font-family: 'Nunito', sans-serif;
}
.review-item.full { grid-column: 1 / -1; }

.reg-footer {
  display: flex; justify-content: flex-end; align-items: center; gap: .75rem;
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid #f3f4f6; margin-top: 1rem;
}

.btn-ghost {
  background: transparent; border: 1.5px solid #e5e7eb;
  color: #6b7280; padding: .65rem 1.25rem; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: #3145D0; color: #3145D0; }

.btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading .btn-label   { display: none; }
.btn-loading .btn-spinner { display: inline-block; }

.reg-success {
  text-align: center; padding: 3rem 2rem 2.5rem;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.reg-success h3 {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 1.35rem; color: #1e2d3d; margin-bottom: .6rem;
}
.reg-success p { color: #6b7280; margin-bottom: 1.75rem; }

.reg-error-banner {
  margin: 0 2rem 1rem;
  background: #fef2f2; border: 1px solid #fecaca;
  color: #dc2626; border-radius: 10px;
  padding: .75rem 1rem; font-size: .88rem;
  font-family: 'Nunito', sans-serif;
}

@media (max-width: 540px) {
  .reg-modal    { border-radius: 16px 16px 0 0; align-self: flex-end; max-height: 96vh; }
  .reg-backdrop { align-items: flex-end; padding: 0; }
  .reg-row      { grid-template-columns: 1fr; }
  .review-grid  { grid-template-columns: 1fr; }
  .reg-header, .reg-form, .reg-footer, .reg-steps {
    padding-left: 1.25rem; padding-right: 1.25rem;
  }
}

/* ===== About (Meist) page ===== */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-row--reverse .about-img { order: 2; }
.about-row--reverse .about-text { order: 1; }

.about-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.about-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dk);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1.5px solid rgba(49,69,208,.15);
}

.about-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-text p {
  color: var(--color-muted);
  margin-bottom: .85rem;
  font-size: .97rem;
}

.about-quote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--teal);
  letter-spacing: .02em;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.value-pill {
  background: var(--teal-light);
  border: 1.5px solid rgba(49,69,208,.15);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem 1rem;
  border-radius: 50px;
}

@media (max-width: 860px) {
  .about-row              { grid-template-columns: 1fr; gap: 2rem; }
  .about-row--reverse .about-img  { order: 0; }
  .about-row--reverse .about-text { order: 0; }
}

/* ===== Hero Slideshow ===== */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255,255,255,.4);
  box-shadow: 0 16px 56px rgba(0,0,0,.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
  /* Ken Burns applied via data attribute */
  will-change: transform;
}

/* Active slide triggers Ken Burns on its image */
.hero-slide.active img {
  animation: kb-zoom-tl 6s ease-out forwards;
}
.hero-slide.active[data-kb="kb-zoom-tl"] img { animation-name: kb-zoom-tl; }
.hero-slide.active[data-kb="kb-zoom-tr"] img { animation-name: kb-zoom-tr; }
.hero-slide.active[data-kb="kb-zoom-bl"] img { animation-name: kb-zoom-bl; }
.hero-slide.active[data-kb="kb-zoom-br"] img { animation-name: kb-zoom-br; }
.hero-slide.active[data-kb="kb-zoom-c"]  img { animation-name: kb-zoom-c;  }

@keyframes kb-zoom-tl {
  from { transform: scale(1)    translate(0, 0); }
  to   { transform: scale(1.12) translate(-3%, -2%); }
}
@keyframes kb-zoom-tr {
  from { transform: scale(1)    translate(0, 0); }
  to   { transform: scale(1.12) translate(3%, -2%); }
}
@keyframes kb-zoom-bl {
  from { transform: scale(1.1)  translate(-2%, 2%); }
  to   { transform: scale(1)    translate(0, 0); }
}
@keyframes kb-zoom-br {
  from { transform: scale(1.1)  translate(2%, 2%); }
  to   { transform: scale(1)    translate(0, 0); }
}
@keyframes kb-zoom-c {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

/* Remove old single-img styles that conflict */
.hero-img-wrap img {
  border-radius: unset;
  border: unset;
  box-shadow: unset;
}
