/* ============================================================
   RESCUER EDUSKILLS — HOME PAGE CSS
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(155,114,239,.28) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(72,187,120,.20) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
  font-size: .80rem; font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.24);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  color: var(--white);
  line-height: 1.1; font-weight: 900;
  margin-bottom: 18px;
  max-width: 10ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: #A3E4B4; }

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.07rem; line-height: 1.75;
  margin-bottom: 34px;
  max-width: 480px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: .93rem;
  border: 2px solid rgba(255,255,255,.28);
  transition: var(--ease);
}
.hero-btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* Hero Visual Panel */
.hero-visual { display: flex; flex-direction: column; gap: 14px; }

.hero-logo {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 18px 44px rgba(26,20,51,.22);
}

/* Hero banner placeholder */
.hero-banner-ph {
  width: 100%;
  aspect-ratio: 4/3;
  border: 2px dashed rgba(255,255,255,.28);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.09);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,.70);
  font-size: .87rem; font-weight: 500;
  /* ↑ Replace with <img src="images/hero.jpg" alt="..." style="border-radius:20px;width:100%;"> */
}
.hero-banner-ph .ph-icon { font-size: 2.5rem; opacity: .55; }

/* Stats */
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

.stat-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 16px 12px; text-align: center;
}
.stat-box .num {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.stat-box .lbl { font-size: .73rem; color: rgba(255,255,255,.68); margin-top: 4px; }

/* ── FEATURES STRIP ─────────────────────────────────────────── */
.features-strip { background: var(--off-white); padding: 52px 0; border-bottom: 1px solid var(--light-gray); }

.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.f-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--grad-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.feature-item h4 { font-size: .90rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.feature-item p  { font-size: .80rem; color: var(--text-light); line-height: 1.55; }

/* ── ABOUT MINI ─────────────────────────────────────────────── */
.about-mini { padding: 80px 0; }

.about-mini-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.about-img-wrap { position: relative; }

.about-img-wrap img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-img-ph {
  width: 100%; aspect-ratio: 4/3;
  border: 2px dashed rgba(108,63,197,.25); border-radius: var(--radius-lg);
  background: linear-gradient(135deg,rgba(108,63,197,.07),rgba(49,151,149,.07));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--purple); font-size: .87rem; font-weight: 500;
  /* ↑ Replace with <img src="images/about.jpg" ...> */
}
.about-img-ph .ph-icon { font-size: 3rem; opacity: .35; }

.float-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--grad-green); color: var(--white);
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .80rem; font-weight: 600;
  box-shadow: var(--shadow-md); text-align: center;
}
.float-badge strong { display: block; font-size: 1.45rem; font-family: var(--font-display); }

.about-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

.about-point {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--off-white); border-radius: 10px;
  border-left: 3px solid var(--purple);
}
.about-point .dot {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad-card);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.about-point p { font-size: .91rem; color: var(--text); font-weight: 500; }

/* ── COURSE PREVIEW ─────────────────────────────────────────── */
.courses-preview { padding: 80px 0; background: var(--off-white); }

.course-cards-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 38px; }

.course-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(43,108,176,.10);
  transition: var(--ease); overflow: hidden;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.cc-head {
  height: 106px; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.cc-purple { background: linear-gradient(135deg,#4B28A0,#6C3FC5); }
.cc-blue   { background: linear-gradient(135deg,#2B6CB0,#4299E1); }
.cc-green  { background: linear-gradient(135deg,#2F855A,#319795); }

.cc-body { padding: 20px 22px; flex: 1; }
.cc-body h3 { font-family: var(--font-display); font-size: 1.08rem; color: var(--dark); margin-bottom: 8px; }
.cc-body p  { font-size: .87rem; color: var(--text-light); line-height: 1.6; }

.cc-foot {
  padding: 14px 22px; border-top: 1px solid var(--light-gray);
  display: flex; justify-content: space-between; align-items: center;
}
.cc-tag { font-size: .77rem; font-weight: 600; color: var(--purple); background: rgba(108,63,197,.09); padding: 4px 10px; border-radius: 100px; }
.cc-link { font-size: .84rem; font-weight: 600; color: var(--blue); transition: var(--ease); }
.cc-link:hover { color: var(--purple); }

.preview-cta { text-align: center; margin-top: 38px; }

/* ── APP TEASER ─────────────────────────────────────────────── */
.app-teaser {
  padding: 80px 0;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.app-teaser::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(155,114,239,.25) 0%, transparent 55%);
}

.app-teaser-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}

.app-teaser-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white); line-height: 1.2; margin-bottom: 14px;
}
.app-teaser-content > p { color: rgba(255,255,255,.80); margin-bottom: 26px; line-height: 1.75; }

.app-feat-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 30px; }
.app-feat-list li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.90); font-size: .91rem; font-weight: 500;
}
.app-feat-list li::before {
  content: '✓';
  width: 20px; height: 20px; background: var(--green-light); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .70rem; font-weight: 700; flex-shrink: 0;
}

/* App mockup placeholder */
.app-mock-ph {
  aspect-ratio: 9/16; max-height: 400px; margin: 0 auto;
  border: 2px dashed rgba(255,255,255,.28); border-radius: 28px;
  background: rgba(255,255,255,.11);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,.68); font-size: .87rem; font-weight: 500;
  /* ↑ Replace with <img src="images/app-mockup.png" ...> */
}
.app-mock-ph .ph-icon { font-size: 2.8rem; opacity: .55; }

/* ── WHY US ─────────────────────────────────────────────────── */
.why-us { padding: 80px 0; }

.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 38px; }

.why-card {
  padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  transition: var(--ease);
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: rgba(108,63,197,.20); transform: translateY(-3px); }
.why-card .w-icon { font-size: 1.9rem; margin-bottom: 12px; }
.why-card h3 { font-size: .97rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.why-card p  { font-size: .87rem; color: var(--text-light); line-height: 1.6; }

/* ── CTA STRIP ──────────────────────────────────────────────── */
.cta-strip { padding: 56px 0; background: var(--off-white); border-top: 1px solid var(--light-gray); }

.cta-strip-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-strip h2 { font-family: var(--font-display); font-size: clamp(1.45rem,3vw,2.1rem); color: var(--dark); max-width: 480px; }
.cta-strip h2 span { color: var(--purple); }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── RESPONSIVE HOME ────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero              { min-height: auto; padding: 72px 0 48px; }
  .hero-inner         { grid-template-columns: 1fr; gap: 32px; }
  .hero-content       { max-width: 100%; }
  .hero-visual        { max-width: 540px; width: 100%; margin: 0 auto; }
  .about-mini-inner   { grid-template-columns: 1fr; gap: 32px; }
  .about-img-wrap     { max-width: 640px; width: 100%; margin: 0 auto; }
  .float-badge        { right: 18px; bottom: 18px; }
  .features-grid      { grid-template-columns: 1fr 1fr; }
  .course-cards-row   { grid-template-columns: 1fr 1fr; }
  .why-grid           { grid-template-columns: 1fr 1fr; }
  .app-teaser-inner   { grid-template-columns: 1fr; }
  .app-mock-ph        { display: none; }
}

@media (max-width: 600px) {
  .hero              { padding: 64px 0 40px; }
  .hero-inner        { padding: 0 18px; }
  .hero h1           { font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.12; max-width: 12ch; }
  .hero-sub          { font-size: .97rem; line-height: 1.65; margin-bottom: 24px; }
  .hero-actions      { flex-direction: column; align-items: stretch; }
  .hero-actions a    { width: 100%; justify-content: center; text-align: center; }
  .hero-stats        { grid-template-columns: 1fr; }
  .stat-box          { padding: 14px 12px; }
  .about-mini        { padding: 64px 0; }
  .about-img-wrap img { min-height: 340px; }
  .section-title     { line-height: 1.18; }
  .float-badge       { position: static; margin-top: 16px; display: inline-block; }
  .features-grid    { grid-template-columns: 1fr; }
  .course-cards-row { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .cta-strip-inner  { flex-direction: column; text-align: center; }
}
