/* =========================================================
   Red-Cherry Training Academy — main stylesheet
   Mobile-first, responsive, no external CSS framework needed.
   ========================================================= */

:root {
  /* Brand colours sampled directly from the Red-Cherry logo */
  --rc-green: #06887F;
  --rc-green-dark: #04544F;
  --rc-green-darker: #033935;
  --rc-green-light: #EBF5F5;
  --rc-red: #ED3237;
  --rc-red-dark: #AB2428;
  --rc-red-light: #FEEFEF;
  --rc-dark: #17201f;
  --rc-grey: #5b6260;
  --rc-grey-light: #f4f6f5;
  --rc-border: #e3e7e6;
  --rc-white: #ffffff;
  --rc-radius: 12px;
  --rc-shadow: 0 4px 18px rgba(6, 40, 37, 0.08);
  --rc-shadow-hover: 0 14px 32px rgba(6, 40, 37, 0.16);
  --rc-max: 1200px;
  --rc-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rc-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

:focus-visible { outline: 2px solid var(--rc-green); outline-offset: 2px; }

body {
  margin: 0;
  font-family: var(--rc-font);
  color: var(--rc-dark);
  background: var(--rc-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--rc-max);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--rc-grey); }

.eyebrow {
  display: inline-block;
  color: var(--rc-red);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .5rem;
}

.section { padding: 64px 0; }
.section-alt { background: var(--rc-grey-light); }
.section-header { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-header p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s var(--rc-ease), box-shadow .25s var(--rc-ease), background .25s var(--rc-ease), color .25s var(--rc-ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-red { background: var(--rc-red); color: #fff; }
.btn-red:hover { background: var(--rc-red-dark); box-shadow: var(--rc-shadow-hover); }
.btn-green { background: var(--rc-green); color: #fff; }
.btn-green:hover { background: var(--rc-green-dark); box-shadow: var(--rc-shadow-hover); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--rc-green); }
.btn-outline:hover { background: var(--rc-green); color: #fff; }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--rc-green); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--rc-dark);
  color: #cfd3d1;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #cfd3d1; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links .icon { width: 14px; height: 14px; }
.topbar-social { align-items: center; gap: 10px; }
.topbar-social .label { color: #cfd3d1; }
.topbar-social a {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; letter-spacing: -.02em;
  color: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.topbar-social a .icon { width: 13px; height: 13px; }
.topbar-social a:hover { background: var(--rc-red); border-color: var(--rc-red); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rc-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 70px; width: auto; }
.brand-text { line-height: 1.2; }
.brand-text .name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--rc-dark);
  letter-spacing: .02em;
}
.brand-text .tagline {
  font-size: .72rem;
  color: var(--rc-grey);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--rc-dark);
  border-radius: 4px;
  transition: color .2s var(--rc-ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--rc-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--rc-ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--rc-green); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-red { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--rc-dark); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--rc-green) 0%, var(--rc-green-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  z-index: 2;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4em; }
.hero h1 .accent { color: #ffd3d3; }
.hero p.lead { color: #dfe9e1; font-size: 1.05rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-badges div { font-size: .82rem; color: #dfe9e1; display: flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 18px; height: 18px; color: #7fd9c9; }

.hero-photo {
  position: relative;
  border-radius: var(--rc-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Image placeholders (swap for real photos any time) ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--rc-radius);
  border: 1.5px dashed rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  min-height: 320px;
  text-align: center;
  padding: 30px;
  overflow: hidden;
}
.img-placeholder.on-light {
  border-color: var(--rc-border);
  background: var(--rc-green-light);
  color: var(--rc-green-dark);
}
.img-placeholder .icon { width: 40px; height: 40px; opacity: .85; }
.img-placeholder .ph-label { font-weight: 700; font-size: .95rem; }
.img-placeholder .ph-sub { font-size: .78rem; opacity: .8; max-width: 220px; }
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.img-placeholder.on-light::before {
  background: repeating-linear-gradient(135deg, rgba(6,136,127,.04) 0 12px, transparent 12px 24px);
}

/* Small placeholder used inside course cards / admin thumbnails */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--rc-green-light);
  color: var(--rc-green);
}
.thumb-placeholder .icon { width: 30px; height: 30px; opacity: .7; }
.thumb-placeholder span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; opacity: .75; }

/* ---------- News & Events ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  overflow: hidden;
  transition: box-shadow .3s var(--rc-ease), transform .3s var(--rc-ease);
}
.news-card:hover { box-shadow: var(--rc-shadow-hover); transform: translateY(-3px); }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 20px; }
.news-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--rc-green); margin-bottom: 10px;
}
.news-date .icon { width: 14px; height: 14px; }
.news-card-body h3 { font-size: 1.02rem; margin: 0 0 8px; }
.news-card-body p { font-size: .88rem; color: var(--rc-grey); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--rc-radius);
  background: var(--rc-green-light);
  color: var(--rc-green);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--rc-ease);
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item .icon { width: 28px; height: 28px; opacity: .5; }
.gallery-item.has-image { background: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
}

/* ---------- Feature / icon cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 26px 22px;
  transition: box-shadow .3s var(--rc-ease), transform .3s var(--rc-ease), border-color .3s var(--rc-ease);
}
.feature-card:hover {
  box-shadow: var(--rc-shadow-hover);
  transform: translateY(-5px);
  border-color: transparent;
}
.feature-card:hover .icon-circle { transform: scale(1.08) rotate(-4deg); }

/* ---------- Unified icon system (SVG, one visual language site-wide) ---------- */
.icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
  transition: transform .3s var(--rc-ease);
  flex-shrink: 0;
}
.icon-circle .icon { width: 24px; height: 24px; }
.icon-circle .icon-lg { width: 34px; height: 34px; }
.icon-circle.green { background: var(--rc-green); }
.icon-circle.red { background: var(--rc-red); }
.icon-circle.soft-green { background: var(--rc-green-light); color: var(--rc-green); }
.icon-circle.soft-red { background: var(--rc-red-light); color: var(--rc-red); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: .92rem; margin: 0; }

/* ---------- Strip of small stat badges (bottom of hero section like reference) ---------- */
.strip {
  background: #fff;
  border-top: 1px solid var(--rc-border);
  border-bottom: 1px solid var(--rc-border);
}
.strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item .icon-circle { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }
.strip-item .icon-circle .icon { width: 20px; height: 20px; }
.resource-card .icon-circle { margin-bottom: 0; }
.strip-item h4 { margin: 0 0 4px; font-size: .95rem; }
.strip-item p { margin: 0; font-size: .85rem; }

/* ---------- Course cards ---------- */
.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.course-search {
  position: relative;
  width: 100%;
  max-width: 260px;
  flex-shrink: 0;
}
.course-search .icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--rc-grey);
  opacity: .7;
}
.course-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid transparent;
  background: var(--rc-grey-light);
  border-radius: 999px;
  font-size: .85rem;
  font-family: inherit;
  color: var(--rc-dark);
  transition: border-color .2s var(--rc-ease), background .2s var(--rc-ease);
}
.course-search input::placeholder { color: var(--rc-grey); }
.course-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--rc-green);
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.course-filters a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--rc-border);
  font-size: .88rem;
  font-weight: 600;
  color: var(--rc-dark);
}
.course-filters a:hover,
.course-filters a.active {
  background: var(--rc-green);
  border-color: var(--rc-green);
  color: #fff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--rc-ease), transform .3s var(--rc-ease), border-color .3s var(--rc-ease);
}
.course-card:hover { box-shadow: var(--rc-shadow-hover); transform: translateY(-6px); border-color: transparent; }
.course-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--rc-green-light);
}
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--rc-ease); }
.course-card:hover .thumb img { transform: scale(1.07); }
.course-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rc-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.course-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card .category { color: var(--rc-red); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.course-card h3 { font-size: 1.08rem; margin: 0; }
.course-card p { font-size: .88rem; margin: 0; flex: 1; }
.course-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--rc-grey);
  border-top: 1px solid var(--rc-border);
  padding-top: 12px;
  margin-top: 6px;
}
.course-card .price { font-weight: 800; color: var(--rc-green); }

/* ---------- Testimonials / CTA banner ---------- */
.cta-banner {
  background: var(--rc-red);
  color: #fff;
  border-radius: var(--rc-radius);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 6px; }
.cta-banner p { color: #ffe0e0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rc-dark); color: #c8cbc9; }
.site-footer .container { padding-left: 44px; padding-right: 44px; }
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 56px 0 36px;
}
.site-footer .footer-top > div { min-width: 0; }
.footer-contact li { overflow-wrap: anywhere; }
.site-footer .brand-text .name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #a7aba9; font-size: .9rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.footer-contact li .icon { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #3a3d3b;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: #fff;
}
.social-row a .icon { width: 17px; height: 17px; }
.social-row a:hover { background: var(--rc-red); border-color: var(--rc-red); color: #fff; }

.footer-bottom {
  background: var(--rc-green);
  text-align: center;
  padding: 16px 0;
  font-size: .85rem;
  color: #e7f0e9;
}
.footer-bottom a { font-weight: 700; color: #fff; }

/* ---------- Generic page header banner (About/Courses/Contact etc.) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--rc-green) 0%, var(--rc-green-dark) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-banner h1 { margin-bottom: 8px; }
.breadcrumb { font-size: .85rem; color: #d9e6dc; }
.breadcrumb a { color: #fff; font-weight: 600; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rc-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--rc-green); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; position: relative; }
.alert-success { background: var(--rc-green-light); color: var(--rc-green-dark); border: 1px solid #bfe0c7; }
.alert-error { background: var(--rc-red-light); color: var(--rc-red-dark); border: 1px solid #f2c1c5; }
.alert-info { background: #e7f1fc; color: #1d4ed8; border: 1px solid #bcd6f7; display: flex; align-items: center; gap: 8px; padding-right: 44px; }
.alert-info .icon { width: 18px; height: 18px; flex-shrink: 0; }
.alert-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: inherit; opacity: .6; display: flex;
}
.alert-close:hover { opacity: 1; }
.alert-close .icon { width: 16px; height: 16px; }

/* ---------- Apply Now wizard ---------- */
.apply-card {
  background: #fff;
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  overflow: hidden;
}
.apply-card-head {
  background: var(--rc-dark);
  color: #fff;
  padding: 26px 30px;
}
.apply-card-head h2 { margin: 0 0 6px; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.apply-card-head p { margin: 0; color: #cfd9d6; font-size: .9rem; }

.apply-progress { padding: 26px 30px 6px; }
.apply-progress-track {
  position: relative;
  height: 4px;
  background: var(--rc-border);
  border-radius: 2px;
  margin: 0 18px 18px;
}
.apply-progress-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--rc-red);
  border-radius: 2px;
  width: 0%;
  transition: width .35s var(--rc-ease);
}
.apply-steps-row { display: flex; justify-content: space-between; }
.apply-step-indicator { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.apply-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  background: #fff; border: 2px solid var(--rc-border); color: var(--rc-grey);
  transition: background .25s var(--rc-ease), border-color .25s var(--rc-ease), color .25s var(--rc-ease);
}
.apply-step-label { font-size: .78rem; color: var(--rc-grey); font-weight: 600; text-align: center; }
.apply-step-indicator.active .apply-step-circle { background: var(--rc-red); border-color: var(--rc-red); color: #fff; }
.apply-step-indicator.active .apply-step-label { color: var(--rc-dark); }
.apply-step-indicator.done .apply-step-circle { background: var(--rc-green); border-color: var(--rc-green); color: #fff; }
.apply-step-indicator.done .apply-step-label { color: var(--rc-green-dark); }

.apply-step { padding: 8px 30px 10px; }
.apply-step[hidden] { display: none; }
.apply-step-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; margin: 6px 0 20px; color: var(--rc-dark);
}
.apply-step-title .icon { width: 22px; height: 22px; color: var(--rc-red); }

.apply-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 30px 30px;
  border-top: 1px solid var(--rc-border);
  margin-top: 10px;
}
.apply-nav-spacer { flex: 1; }

@media (max-width: 640px) {
  .apply-card-head, .apply-progress, .apply-step, .apply-nav { padding-left: 18px; padding-right: 18px; }
  .apply-step-label { display: none; }
  .apply-nav { flex-wrap: wrap; }
}

/* ---------- Two column content blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split img { border-radius: var(--rc-radius); box-shadow: var(--rc-shadow); width: 100%; }
.split-photo { border-radius: var(--rc-radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--rc-shadow); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb { aspect-ratio: 4/3; box-shadow: var(--rc-shadow); min-height: 0; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rc-radius); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .95rem; color: var(--rc-dark); }
.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rc-green);
  color: #fff;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- Contact info cards ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

/* ---------- Contact — Google Map embed ---------- */
.map-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 280px;
  border-radius: var(--rc-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6,40,37,.1);
}
.map-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 640px) {
  .map-embed-wrap { aspect-ratio: 4 / 5; }
}

/* ---------- Resources ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.resource-grid .resource-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.resource-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 22px;
}
.resource-card .icon-circle { flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card.placeholder {
  background: #fff;
  border: 1.5px dashed var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 30px 24px;
  text-align: center;
  color: var(--rc-grey);
}
.testimonial-card.placeholder .icon { width: 30px; height: 30px; color: var(--rc-green); opacity: .5; margin: 0 auto 14px; }
.testimonial-card.placeholder .ph-label { font-weight: 700; color: var(--rc-dark); margin: 0 0 6px; }
.testimonial-card.placeholder .ph-sub { font-size: .82rem; }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 30px 26px;
  transition: box-shadow .3s var(--rc-ease), transform .3s var(--rc-ease);
}
.testimonial-card:hover { box-shadow: var(--rc-shadow-hover); transform: translateY(-3px); }
.testimonial-card > .icon { width: 26px; height: 26px; color: var(--rc-red); opacity: .35; margin-bottom: 10px; }
.testimonial-card .quote-text { color: var(--rc-dark); font-size: .95rem; line-height: 1.65; margin: 0 0 16px; }
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .8rem; color: var(--rc-grey); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  overflow: hidden;
  transition: box-shadow .25s var(--rc-ease);
}
.faq-item.open { box-shadow: var(--rc-shadow); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  color: var(--rc-dark);
  cursor: pointer;
}
.faq-question .icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--rc-green); transition: transform .3s var(--rc-ease); }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--rc-ease);
}
.faq-answer p { margin: 0; padding: 0 22px 20px; color: var(--rc-grey); line-height: 1.6; }
.faq-item.open .faq-answer { max-height: 260px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge-soft {
  display: inline-block;
  background: var(--rc-green-light);
  color: var(--rc-green-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* =========================================================
   Motion — subtle scroll reveal + micro-interactions.
   Respects prefers-reduced-motion.
   ========================================================= */
@keyframes rc-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rc-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(237, 50, 55, .35); }
  100% { box-shadow: 0 0 0 10px rgba(237, 50, 55, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--rc-ease), transform .7s var(--rc-ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-visible > * {
  animation: rc-fade-up .6s var(--rc-ease) both;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: .02s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .20s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: .32s; }

body { animation: rc-fade-in .4s ease both; }

.btn-red.pulse { animation: rc-pulse-ring 2.2s ease-in-out infinite; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rc-red), var(--rc-green));
  transition: width .1s linear;
}

/* ---- Hero on-load entrance (independent of scroll) ---- */
@keyframes rc-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { opacity: 0; animation: rc-hero-in .7s var(--rc-ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }

/* ---- Button ripple micro-interaction ---- */
.btn, .a-btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  pointer-events: none;
  transform: scale(0);
  animation: rc-ripple .6s ease-out;
}
.a-btn-outline .btn-ripple { background: rgba(6,136,127,.18); }
@keyframes rc-ripple {
  to { transform: scale(1); opacity: 0; }
}

/* ---- Placeholder shimmer sweep ---- */
.img-placeholder, .thumb-placeholder, .detail-thumb.detail-thumb-placeholder, .gallery-item {
  position: relative;
  overflow: hidden;
}
.img-placeholder::after, .thumb-placeholder::after, .gallery-item:not(.has-image)::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: rc-shimmer 3.4s ease-in-out infinite;
}
@keyframes rc-shimmer {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* ---- Animated stat counters ---- */
.counter-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.counter-item .counter {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--rc-green);
  line-height: 1.1;
}
.counter-item .counter-label {
  font-size: .85rem;
  color: var(--rc-grey);
  margin-top: 4px;
}

/* ---- Icon-circle hover pop (strip items too) ---- */
.strip-item:hover .icon-circle { transform: scale(1.08) rotate(-4deg); }
.icon-circle { transition: transform .3s var(--rc-ease); }

/* ---- Floating quick-contact buttons ---- */
.quick-contact-fab {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(6,40,37,.28);
  transition: transform .25s var(--rc-ease), box-shadow .25s var(--rc-ease);
}
.fab-btn .icon { width: 24px; height: 24px; }
.fab-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 28px rgba(6,40,37,.35); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--rc-red); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rc-dark);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--rc-ease), transform .25s var(--rc-ease), visibility .25s;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top .icon { width: 18px; height: 18px; }
.back-to-top:hover { background: var(--rc-green); }

/* ---- Mobile sticky CTA bar ---- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid var(--rc-border);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-cta-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  background: var(--rc-red);
  color: #fff;
}
.mobile-cta-btn .icon { width: 16px; height: 16px; }
.mobile-cta-btn.outline { background: #fff; border: 1.5px solid var(--rc-border); color: var(--rc-dark); }

@media (max-width: 640px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 68px; }
  .quick-contact-fab { bottom: 168px; right: 16px; }
  .back-to-top { bottom: 96px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero-copy > * { opacity: 1 !important; }
  .img-placeholder::after, .thumb-placeholder::after, .gallery-item::after { display: none; }
}

@media (max-width: 640px) {
  .counter-strip { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .strip .container { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-red { display: inline-flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rc-border);
    padding: 10px 20px 18px;
    box-shadow: var(--rc-shadow);
  }
  .main-nav.open a { padding: 12px 6px; border-bottom: 1px solid var(--rc-grey-light); }
  .main-nav.open .btn { margin-top: 10px; }

  .topbar .container { justify-content: center; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .resource-grid .resource-card:last-child:nth-child(odd) { grid-column: auto; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .strip .container { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .site-footer .footer-top { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; text-align: left; }
  .site-footer .container { padding-left: 20px; padding-right: 20px; }
  .footer-bottom { padding: 16px 20px; font-size: .8rem; line-height: 1.6; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .hero-art-grid { grid-template-columns: 1fr 1fr; }
  .brand img { height: 42px; }
  .brand-text .name { font-size: 1rem; }
  .course-toolbar { flex-direction: column; align-items: stretch; }
  .course-search { max-width: none; }
}