/* Brand: logo-compatible purple/indigo */
:root {
  --home-primary: #667eea;
  --home-secondary: #764ba2;
  --home-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --home-bg: #f8fafc;
  --home-bg-alt: #ffffff;
  --home-card-bg: #fff;
  --home-text: #1e293b;
  --home-text-muted: #64748b;
  --home-tile-bg: #fafafa; /* behind scrolling tiles / bordered content areas */
}

/* Section background alternation: use these classes only; no per-section background */
.home-section-odd {
  background: var(--home-bg);
}
.home-section-even {
  background: var(--home-bg-alt);
}

/* Section titles: rectangular highlight with rounded corners and light 3D shade */
.home-section-title {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Center section titles where needed (FAQ, Reviews etc) */
.home-faq,
.home-reviews {
  text-align: center;
}

.home-page {
  min-height: 100vh;
  background: var(--home-bg);
  scroll-behavior: smooth;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.home-nav a,
.home-nav .nav-link-btn {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

.home-nav a:hover,
.home-nav .nav-link-btn:hover {
  color: #667eea;
}

.home-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 60vh;
  font-size: 1.1rem;
  color: #666;
}

.home-loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(102, 126, 234, 0.25);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: home-loading-spin 0.7s linear infinite;
}

@keyframes home-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Non-dismissible fullscreen popup for Optimal Learning Mode (new session) */
.home-fullscreen-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.home-fullscreen-popup {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.home-fullscreen-popup h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #333;
}
.home-fullscreen-popup p {
  margin: 0 0 1.5rem;
  color: #555;
  line-height: 1.5;
}
.home-fullscreen-popup-continue {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.home-fullscreen-popup-continue:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Hero: light bg + optional carousel overlay; content on top */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 4rem 1.5rem 3rem;
  background: var(--home-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 40%;
  height: 80%;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(40px);
  pointer-events: none;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-carousel .hero-image {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-carousel .hero-image.active {
  opacity: 1;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.home-hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--home-primary);
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 9999px;
}

.home-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--home-text);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-hero-gradient {
  background: var(--home-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-sub {
  font-size: 1.1rem;
  color: var(--home-text-muted);
  max-width: 32rem;
  margin: 0 auto 0.5rem;
  line-height: 1.55;
}

.home-hero-tagline {
  font-size: 0.95rem;
  color: var(--home-text-muted);
  margin: 0 0 1.5rem;
}

.home-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.home-hero-btn {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.home-hero-btn-primary {
  background: #667eea;
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

.home-hero-btn-primary:hover:not(:disabled) {
  background: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.home-hero-btn-secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.home-hero-btn-secondary:hover {
  background: #f8fafc;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  max-width: 36rem;
  margin: 0 auto;
}

.home-hero-stat {
  text-align: center;
}

.home-hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--home-text);
}

.home-hero-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--home-text-muted);
}

/* Philosophy section */
.home-philosophy {
  padding: 4rem 1.5rem;
}

.home-philosophy-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.home-philosophy-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--home-text);
  margin: 0 0 0.75rem;
}

.home-philosophy-sub {
  color: var(--home-text-muted);
  max-width: 32rem;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.home-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: left;
}

.home-philosophy-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: var(--home-card-bg);
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.home-philosophy-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home-philosophy-icon-1 { background: rgba(102, 126, 234, 0.12); }
.home-philosophy-icon-2 { background: rgba(34, 197, 94, 0.12); }
.home-philosophy-icon-3 { background: rgba(249, 115, 22, 0.12); }

.home-philosophy-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 0.5rem;
}

.home-philosophy-card p {
  font-size: 0.9375rem;
  color: var(--home-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Career Paths section */
.home-paths {
  padding: 4rem 1.5rem;
}

.home-paths-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.home-paths-header {
  margin-bottom: 2rem;
  text-align: center;
}

.home-paths-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--home-text);
  margin: 0 0 0.5rem;
  text-align: center;
}

.home-paths-sub {
  color: var(--home-text-muted);
  margin: 0 0 0.75rem;
  text-align: center;
}

.home-paths-badge {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  color: #d97706;
  border-radius: 9999px;
}

.home-path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.home-path-card {
  background: var(--home-card-bg);
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.home-path-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.home-path-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 0.25rem;
}

.home-path-card p {
  font-size: 0.875rem;
  color: var(--home-text-muted);
  margin: 0 0 1rem;
}

.home-path-explore {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--home-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.home-path-explore:hover {
  text-decoration: underline;
}

/* Merged paths + courses: no path cards, categories inside paths section */
.home-paths-merged .home-paths-inner {
  margin-bottom: 1.5rem;
}

.home-categories-in-paths {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.home-categories-in-paths .category-tabs {
  margin-bottom: 1rem;
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.home-categories-in-paths .category-tabs .tab {
  flex: 1;
  min-width: 0;
}

/* Institutions */
.home-institutions {
  padding: 4rem 1.5rem;
}

.home-institutions-inner {
  max-width: 72rem;
  margin: 0 auto;
  background: var(--home-tile-bg);
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.home-institutions-inner::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 16rem;
  height: 16rem;
  background: rgba(102, 126, 234, 0.06);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.home-institutions-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-institutions-slider .home-institutions-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #667eea;
  margin-bottom: 0.75rem;
  display: block;
}

.home-institutions-slider .home-institutions-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1.5rem;
}

.home-institutions-cards-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  padding: 0 0.25rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.home-institutions-cards-scroll::-webkit-scrollbar {
  height: 6px;
}

.home-institutions-cards-scroll::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 3px;
}

.home-institutions-cards-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.home-institution-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 1.5rem 1.25rem;
  margin: 0 0.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
  transition: box-shadow 0.2s ease;
}

.home-institution-card:hover {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(0, 0, 0, 0.06) inset;
}

.home-institution-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.home-institution-card-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.home-institution-card-highlight {
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 600;
  margin: 0;
}

.home-institutions-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.home-institution-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #c7d2fe;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.home-institution-dot:hover {
  background: #c7d2fe;
}

.home-institution-dot.active {
  background: #667eea;
  border-color: #667eea;
}

.home-institutions-cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: #667eea;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.home-institutions-cta:hover {
  background: #5a67d8;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Healthy Learning strip (brochure: no competition, badges) */
.home-healthy-learning {
  padding: 3rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.home-healthy-learning-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.home-healthy-learning-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--home-text);
  margin: 0 0 0.75rem;
}

.home-healthy-learning-desc {
  font-size: 1rem;
  color: var(--home-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.home-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2.5rem 1.5rem 1.5rem;
}

.home-footer-inner {
  max-width: 72rem;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.home-footer-brand {
  max-width: 28rem;
}

.home-footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.home-footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.home-footer-logo {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--home-text);
  letter-spacing: -0.02em;
}

.home-footer-logo span {
  color: var(--home-primary);
}

.home-footer-tagline {
  font-size: 0.875rem;
  color: var(--home-text-muted);
  line-height: 1.5;
  margin: 0;
}

.home-footer-links {
  display: flex;
  gap: 2.5rem;
}

.home-footer-col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 0.75rem;
}

.home-footer-link {
  display: block;
  background: none;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--home-text-muted);
  cursor: pointer;
  text-align: left;
}

.home-footer-link:hover {
  color: var(--home-primary);
}

.home-footer-copy {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image.active {
  opacity: 1;
  z-index: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.carousel-indicators .indicator.active {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

.home-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-tabs .tab {
  padding: 0.6rem 1rem;
  border: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--home-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-tabs .tab:hover {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-tabs .tab.active {
  background: linear-gradient(180deg, #7c3aed 0%, #667eea 50%, #5b21b6 100%);
  color: #fff;
  border-color: #5b21b6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(102, 126, 234, 0.35);
}

.category-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #333;
}

.course-cards-scroll-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--home-tile-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.06);
}

.course-cards-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.course-cards-scroll::-webkit-scrollbar {
  height: 6px;
}

.course-cards-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.course-cards-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.course-card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.course-card-image {
  height: 140px;
  background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 100%);
}

.course-card-body {
  padding: 1rem;
}

.course-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
  line-height: 1.3;
}

.course-badge-in-progress {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1c1917;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #d97706 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(217, 119, 6, 0.3);
  vertical-align: middle;
}

.course-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.btn-preview {
  padding: 0.4rem 0.8rem;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-preview:hover {
  background: #5a67d8;
}

.home-motivation {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #edf2f7;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-motivation p {
  font-size: 1.2rem;
  color: #4a5568;
}

.motivation-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.motivation-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.motivation-image.active {
  opacity: 1;
  z-index: 1;
}

/* Features Section */
.home-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.home-features h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.features-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card ul li {
  padding: 0.4rem 0;
  color: #4b5563;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.feature-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* FAQ Section */
.home-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Reviews carousel (above FAQ) - similar to Institutional Solutions */
.home-reviews {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.home-reviews-inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.10) 0%, rgba(118, 75, 162, 0.06) 100%);
  border: 4px solid rgba(245, 158, 11, 0.5); /* orange-yellow, 50% transparent */
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.home-reviews-title {
  display: block;
  margin: 0 auto 1.5rem;
}

.home-reviews-carousel-wrap {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; /* vertically center arrows to card area */
}

.home-reviews-cards-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 14px;
  padding: 6px 2px 12px;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  scrollbar-width: none; /* firefox */
}

.home-reviews-cards-scroll::-webkit-scrollbar {
  display: none;
}

.home-reviews-cards-scroll::-webkit-scrollbar {
  height: 8px;
}

.home-reviews-cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
}

.home-review-card {
  min-width: 100%;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  padding: 14px;
  position: relative;
}

.home-review-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4c51bf;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.24);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.home-review-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 0;
}

.home-review-preview {
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  padding-right: 12px;
  padding-left: 2px;
}

.home-review-preview-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  cursor: pointer;
  position: relative;
}

.home-review-preview-media img,
.home-review-preview-media video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.home-review-preview-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.22) 100%);
  pointer-events: none;
}

.home-review-preview-empty {
  font-size: 12px;
  color: #94a3b8;
}

.home-review-body {
  padding-left: 12px;
  text-align: left;
}

.home-review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.home-review-card-for {
  font-weight: 700;
  color: #334155;
  font-size: 0.95rem;
}

.home-review-student {
  margin-top: 0;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.home-review-card-text-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.home-review-card-title {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.home-review-card-text {
  margin-top: 8px;
  color: #334155;
  line-height: 1.55;
  font-size: 0.95rem;
}


.home-review-reply {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

.home-review-reply-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
}

.home-review-reply-text {
  color: #064e3b;
  line-height: 1.5;
}

.home-review-reply-media {
  margin-top: 8px;
  width: min(220px, 100%);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  cursor: pointer;
}

.home-review-reply-media img,
.home-review-reply-media video {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  display: block;
}

.home-reviews-slider {
  position: relative;
}

.home-reviews-arrow {
  position: static;
  transform: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-reviews-arrow-left {
  margin-right: 10px;
}

.home-reviews-arrow-right {
  margin-left: 10px;
}

@media (max-width: 768px) {
  .home-review-grid {
    grid-template-columns: 1fr;
  }
  .home-review-preview {
    border-right: none;
    padding-right: 0;
    margin-bottom: 10px;
  }
  .home-review-body {
    padding-left: 0;
  }
  .home-reviews-arrow-left,
  .home-reviews-arrow-right {
    display: none;
  }
}

.home-faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question.active {
  background: #f3f4f6;
  color: #667eea;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  transition: transform 0.3s;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  background: #fff;
  animation: slideDown 0.3s ease-out;
}

.faq-answer p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subscription section */
.home-subscription-section {
  padding: 4rem 1.5rem;
}

.home-subscription {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  color: #1e293b;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.subscription-period-selector {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-period-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.subscription-period-btn:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f5f3ff;
}

.subscription-period-btn.active {
  border: 2px solid #667eea;
  background: #eef2ff;
  color: #667eea;
  font-weight: 600;
}

.home-subscription h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.home-subscription p {
  color: #475569;
  margin-bottom: 1rem;
}

.subscription-learning-paths-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c7d2fe;
  display: inline-block;
}

.subscription-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid #e2e8f0;
}

.subscription-paths {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.subscription-path-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.subscription-path-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.subscription-path-tab:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f5f3ff;
}

.subscription-path-tab.active {
  border: 2px solid #667eea;
  background: #eef2ff;
  color: #667eea;
  font-weight: 600;
}

.subscription-path-courses {
  margin-top: 1rem;
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.subscription-course-row {
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.subscription-course-row-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  color: #1e293b;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  transition: background 0.2s;
}

.subscription-course-row-btn:hover {
  background: #f1f5f9;
}

.subscription-course-chevron {
  font-size: 0.8rem;
  color: #64748b;
}

.subscription-course-row-detail {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #475569;
}

.subscription-course-row-detail p {
  margin: 0 0 0.5rem;
  color: inherit;
}

.subscription-course-row-detail .btn-preview {
  margin-top: 0.5rem;
}

.home-subscription-join-row {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}

.home-subscription-join-row-top {
  margin-bottom: 1.5rem;
}

.home-subscription-join-row .btn-join {
  display: block;
  width: 90%;
  margin: 0 auto;
}

/* CTA: light golden 3D effect */
.btn-join {
  padding: 1.15rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c1917;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #d97706 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 4px 14px rgba(217, 119, 6, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-join:hover:not(:disabled) {
  background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 45%, #f59e0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 6px 20px rgba(217, 119, 6, 0.4);
  transform: translateY(-1px);
}

.btn-join:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.subscribed-msg {
  color: #059669;
  font-weight: 500;
}

/* Big Join Now CTA after FAQs */
.home-join-cta {
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.home-join-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* CTA: light golden 3D effect */
.home-join-cta-btn {
  display: block;
  width: 90%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1917;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #d97706 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(217, 119, 6, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.home-join-cta-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 45%, #f59e0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.home-join-cta-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.home-join-cta-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.home-join-cta-btn-secondary:hover {
  background: #e2e8f0;
  color: #334155;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .home-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .home-philosophy-grid {
    grid-template-columns: 1fr;
  }

  .home-path-cards {
    grid-template-columns: 1fr;
  }

  .home-institutions-inner {
    padding: 2rem 1.5rem;
  }

  .home-healthy-learning {
    padding: 2rem 1rem;
  }

  .home-healthy-learning-title {
    font-size: 1.25rem;
  }

  .home-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-footer-links {
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .home-features h2,
  .home-faq h2 {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }
}
