/* ─────────────────────────────────────────────
   FRONT PAGE SECTIONS
   front-page.css
───────────────────────────────────────────── */

/* ── Hero ── */
.hero-section {
  position: relative;
  padding: 40px 0 calc(var(--space-8) + 10px);
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-blob--1 {
  width: 560px;
  height: 560px;
  position: absolute;
  top: -220px;
  right: -160px;
  min-height: 500px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(37,99,235,0.16) 0%, transparent 68%);
}
.hero-bg-blob--1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/1.png') center center / cover no-repeat;
  opacity: 0.05;
  z-index: -1;
}

.hero-bg-blob--2 {
  width: 460px;
  height: 460px;
  position: absolute;
  bottom: -210px;
  left: -140px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 68%);
}
.hero-bg-blob--2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/2.png') center center / cover no-repeat;
  opacity: 0.05;
  z-index: -1;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-content { display: flex; flex-direction: column; gap: 18px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.16);
  color: var(--c-primary);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  position: relative;
  flex-shrink: 0;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,0.35);
  animation: dot-ping 2s ease-out infinite;
}
@keyframes dot-ping {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  font-weight: 800;
  color: var(--c-title);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
}
.hero-title .accent {
  color: var(--c-primary);
  position: relative;
}

.hero-subtitle {
  color: var(--c-muted);
  font-size: 1.04rem;
  max-width: 520px;
  margin: 0;
}

.hero-actions      { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-social-proof { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hero-avatars      { display: flex; }

.avatar-stack-item {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--c-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #fff;
  margin-left: -10px;
  box-shadow: var(--shadow-xs);
}
.avatar-stack-item:first-child { margin-left: 0; }

.hero-social-text        { font-size: 0.86rem; color: var(--c-muted); }
.hero-social-text strong { color: var(--c-title); }

/* Hero visual */
.hero-visual { position: relative; }

.hero-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,23,42,0.09);
  box-shadow: var(--shadow-lg);
}
.hero-card--main { padding: 26px 26px 22px; }

.hero-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.16);
  color: var(--c-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-card--float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  z-index: 2;
  animation: float-card 4.8s ease-in-out infinite;
}
.hero-card--float-a { bottom: -18px; left: -34px; }
.hero-card--float-b { top: -14px; right: -28px; animation-delay: 2.2s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.fcard-title { font-size: 0.82rem; font-weight: 700; color: var(--c-title); line-height: 1.25; }
.fcard-sub   { font-size: 0.74rem; color: var(--c-muted); }

.hero-video-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-sm);
  min-height: 200px;
  background: #eef2ff;
}

.hero-preview-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.hero-video-wrapper:hover .hero-preview-img { transform: scale(1.03); }

/* Play button — now a <button> element */
.hero-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.play-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37,99,235,0.22);
  animation: vibe-ripple 2.2s ease-out infinite;
}
.play-ripple--1 { width: 82px; height: 82px; }
.play-ripple--2 { width: 112px; height: 112px; animation-delay: .65s; background: rgba(37,99,235,0.14); }

@keyframes vibe-ripple {
  0%   { transform: scale(.75); opacity: 1; }
  100% { transform: scale(1.36); opacity: 0; }
}

.play-icon {
  position: relative;
  z-index: 2;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(37,99,235,0.92);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 14px 38px rgba(37,99,235,0.40);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hero-play-btn:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 18px 46px rgba(37,99,235,0.48);
  background: rgba(29,78,216,0.95);
}
.play-icon svg { margin-left: 3px; }

/* ── Search Strip ── */
.search-strip {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 40px 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  padding: 5px;
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form:focus-within {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.search-form label { flex: 1; }

.search-form .search-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 0;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--c-title);
}
.search-form .search-field::placeholder { color: var(--c-muted); }

.search-form .search-submit {
  flex-shrink: 0;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.search-form .search-submit:hover {
  background: var(--c-primary-dark);
  transform: scale(1.06);
}

/* ── Stats Strip ── */
.stats-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 10px 18px;
  border-right: 1px solid var(--c-border);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}
.stat-item.animate-on-scroll          { opacity: 0; transform: translateY(14px); }
.stat-item.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.stat-item:last-child { border-right: none; }

.stat-item h2 {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 850;
  color: var(--c-primary);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.stat-item p { color: var(--c-muted); font-size: 0.88rem; margin: 0; }


/* ======================================
   LANGUAGE ELEMENTS
====================================== */

.language-elements{
    padding: var(--space-8) 0;
}

.language-elements-wrapper{

    background: var(--c-surface);
    border: 1px solid var(--c-border);


    padding: 56px;

    display: grid;
    grid-template-columns: 440px 1fr;
    gap: var(--space-7);

}

.elements-eyebrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 18px;

    border-radius:var(--radius-full);

    background:var(--c-primary-soft);

    color:var(--c-primary);

    font-size:.75rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.elements-intro h2{
    font-family:var(--font-display);
    font-size:30px;
    line-height:1.1;
    font-weight:700;
    color:var(--c-title);

    margin:var(--space-5) 0 var(--space-4);
}

.elements-intro p{
    font-family:var(--font-body);
    color:var(--c-muted);
    font-size:1rem;
    line-height:1.8;
}

.elements-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.element-item{
    text-align:center;
    padding:0 28px;
    position:relative;
}

.element-item:not(:last-child){
    border-right:1px solid var(--c-border);
}

.element-icon{
    width:60px;
    height:60px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 auto var(--space-4);
}

.element-icon span{
    font-size:1.5rem;
    font-weight:700;
}

.element-icon svg{
    width:28px;
    height:28px;
    stroke-width:2;
}

.blue{
    background:rgba(37,99,235,.08);
    color:var(--c-primary);
}

.purple{
    background:rgba(139,92,246,.10);
    color: #8b5cf6;
}

.green{
    background:rgba(16,185,129,.10);
    color:var(--success);
}

.orange{
    background:var(--c-accent-soft);
    color:var(--c-accent);
}

.element-item h3{
    font-family:var(--font-display);
    font-size:0.9rem;
    font-weight:700;

    margin-bottom:var(--space-2);
}
.element-icon.blue + h3 {
    color:var(--c-primary);
}

.element-icon.purple + h3 {
    color:#8b5cf6;
}

.element-icon.green + h3 {
    color:var(--success);
}

.element-icon.orange + h3 {
    color:var(--c-accent);
}
.element-item p{
    font-family:var(--font-body);
    font-size:.92rem;
    line-height:1.7;
    color:var(--c-muted);
}

/* ======================================
   TABLET
====================================== */

@media (max-width: 1024px){

    .language-elements-wrapper{
        grid-template-columns:1fr;
        padding:40px;
    }

    .elements-intro{
        text-align:center;
    }

    .elements-intro p{
        max-width:650px;
        margin:auto;
    }

    .elements-grid{
        grid-template-columns:repeat(2,1fr);
        gap:40px;
    }

    .element-item{
        border:none !important;
    }
}

/* ======================================
   MOBILE
====================================== */

@media (max-width:768px){

    .language-elements-wrapper{
        padding:30px;
    }

    .elements-grid{
        grid-template-columns:1fr;
        gap:32px;
    }

    .elements-intro h2{
        font-size:2rem;
    }
}


.language-elements{
    padding: var(--space-8) 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(37,99,235,.02) 100%
    );
}

/* ── Categories ── */
.categories-section {
  padding: 60px 0;
  background: #ffffff;
}

.categories-section .section-header {
  margin-bottom: 36px;
  text-align: center;
}

/* ── Categories Section ─────────────────────────── */

/* ── Grid ─────────────────────────── */
.course-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ── Card ─────────────────────────── */
.category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  border-color: #ccc;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* ── Image area ─────────────────────────── */
.category-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.category-image-wrapper .category-image {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image {
  transform: scale(1.04);
}

.category-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

/* ── Content ─────────────────────────── */
.category-content {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.category-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.category-description {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.category-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #888;
}

.category-count svg {
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 600px) {
  .course-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .course-categories {
    grid-template-columns: 1fr;
  }
}

/* ── Language Skills ── */
.language-skills {
  background: #fff;
  padding: 48px 0;
}

.language-skills .skills-header {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 0 24px;
  text-align: center;
}

.language-skills .skills-header .section-header {
  max-width: 100%;
  margin-bottom: 0;
}

.language-skills .skills-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  border-radius: 14px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--skill-accent, var(--c-primary));
  opacity: 0;
  transition: opacity .22s ease;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover { transform: translateY(-3px); }

.skill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  position: relative; z-index: 1;
}

.skill-card svg,
.skill-card .skill-icon-wrap svg {
  width: 32px; height: 32px;
  flex-shrink: 0;
  position: relative; z-index: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}
.skill-card:hover svg,
.skill-card:hover .skill-icon-wrap svg { transform: scale(1.12); }

.skill-card span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative; z-index: 1;
  transition: color .18s ease;
}

.skill-card p,
.skill-card .skill-desc {
  font-size: 0.76rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.45;
  position: relative; z-index: 1;
}

.skill-card:nth-child(1) { --skill-accent: #0ea5e9; background: #f0faff; border-color: rgba(14,165,233,0.12); }
.skill-card:nth-child(2) { --skill-accent: #8b5cf6; background: #faf5ff; border-color: rgba(139,92,246,0.12); }
.skill-card:nth-child(3) { --skill-accent: #10b981; background: #f0fdf9; border-color: rgba(16,185,129,0.12); }
.skill-card:nth-child(4) { --skill-accent: #f97316; background: #fff8f0; border-color: rgba(249,115,22,0.12); }

.skill-card:nth-child(1) svg, .skill-card:nth-child(1) span { stroke: #0ea5e9; color: #0ea5e9; }
.skill-card:nth-child(2) svg, .skill-card:nth-child(2) span { stroke: #8b5cf6; color: #8b5cf6; }
.skill-card:nth-child(3) svg, .skill-card:nth-child(3) span { stroke: #10b981; color: #10b981; }
.skill-card:nth-child(4) svg, .skill-card:nth-child(4) span { stroke: #f97316; color: #f97316; }

.skill-card:nth-child(1):hover { background: #e0f4ff; border-color: rgba(14,165,233,0.25);  box-shadow: 0 10px 28px rgba(14,165,233,0.12); }
.skill-card:nth-child(2):hover { background: #f3e8ff; border-color: rgba(139,92,246,0.25); box-shadow: 0 10px 28px rgba(139,92,246,0.12); }
.skill-card:nth-child(3):hover { background: #dcfff5; border-color: rgba(16,185,129,0.25);  box-shadow: 0 10px 28px rgba(16,185,129,0.12); }
.skill-card:nth-child(4):hover { background: #fff0e0; border-color: rgba(249,115,22,0.25);  box-shadow: 0 10px 28px rgba(249,115,22,0.12); }

.skill-card:nth-child(1):hover svg { stroke: #0284c7; }
.skill-card:nth-child(2):hover svg { stroke: #7c3aed; }
.skill-card:nth-child(3):hover svg { stroke: #059669; }
.skill-card:nth-child(4):hover svg { stroke: #ea6c00; }



/* ════════════════════════════════
   COURSES SECTION
════════════════════════════════ */
.courses-section { background: var(--c-surface); }

/* ── Grid ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 18px;
}

@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Card shell ── */
.course-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.course-card.animate-on-scroll            { opacity: 0; transform: translateY(16px); }
.course-card.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0);
  transition: opacity .38s ease, transform .38s ease, box-shadow .22s ease; }

/* ── Thumbnail ── */
.course-thumb {
  display: block;
  height: 185px;
  overflow: hidden;
  background: #eef2ff;
  flex-shrink: 0;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .38s ease;
}

/* ── Body ── */
.course-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

/* ── Category badge ── */
.course-category {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

/* ── Title ── */
.course-title {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 750;
  color: var(--c-title);
  line-height: 1.38;
  /* clamp to 2 lines so all cards stay the same height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-title a { color: inherit; }
.course-title a:hover { color: var(--c-primary); }

/* ── Instructor / level meta ── */
.course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  color: var(--c-muted);
  font-size: 0.78rem;
}
.course-instructor { display: flex; align-items: center; gap: 5px; }

.course-divider-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(15,23,42,0.20);
  flex-shrink: 0;
}

/* ── Spacer line — pushed to bottom of body ── */
.course-divider-line {
  height: 1px;
  background: var(--c-border);
  margin-top: auto; 
  margin-bottom: 0;
}

/* ════════════════════════════
   FOOTER  (column layout — fixes the price/rating clash)
════════════════════════════ */
.course-footer {
  display: flex;
  flex-direction: column; 
  gap: 6px;
}

/* ── Rating row ── */
.course-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.79rem;
  min-height: 20px;
}
.course-rating .stars      { display: inline-flex; gap: 1px; color: #f59e0b; font-size: 0.80rem; line-height: 1; }
.course-rating .star       { opacity: .22; }
.course-rating .star.is-filled { opacity: 1; }
.course-rating .rating-value   { font-weight: 800; color: var(--c-title); font-size: 0.80rem; }
.course-rating .rating-count   { color: var(--c-muted); font-size: 0.74rem; }
.course-rating .rating-empty   { color: var(--c-muted); font-size: 0.74rem; font-style: italic; }

/* ── Price row ── */
.course-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}

/* Sale / current price */
.course-price .amount,
.course-price .woocommerce-Price-amount {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--c-primary);  
}

/* "Free" plain text */
.course-price:not(:has(.woocommerce-Price-amount)) {
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--c-primary);
}


.course-price del {
  text-decoration: line-through;
  opacity: 0.5;
  font-weight: 600;
  font-size: 0.80rem;
  color: var(--c-muted);
}
.course-price del .woocommerce-Price-amount {
  font-weight: 600;
  font-size: 0.80rem;
  color: var(--c-muted);    
}

.course-price ins {
  text-decoration: none;  
}
.course-price ins .woocommerce-Price-amount {
  color: #16a34a;          
  font-weight: 900;
  font-size: 0.95rem;
}

.course-discount-badge {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22,163,74,0.20);
  white-space: nowrap;
}

/* ── Enroll button ── */
.course-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.83rem;
  font-weight: 800;
  margin-top: 4px;
  width: 100%;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.course-btn:hover {
  transform: translateY(-1px);
  background: rgba(37,99,235,0.13);
  box-shadow: 0 8px 20px rgba(37,99,235,0.13);
  color: var(--c-primary);
}

/* ── Tablet (2 columns) ── */
@media (max-width: 1100px) {
  .course-thumb { height: 175px; }
}

/* ── Mobile (1 column) ── */
@media (max-width: 600px) {
  .course-thumb { height: 200px; }
  .course-body  { padding: 12px 14px 14px; }
  .course-title { -webkit-line-clamp: 3; }
}

/* ── Lessons ── */
.lessons-section { background: var(--c-bg); }

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lesson-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, box-shadow .2s ease, border-color .2s ease;
}
.lesson-card.animate-on-scroll            { opacity: 0; transform: translateY(14px); }
.lesson-card.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.lesson-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(15,23,42,0.14); }

.lesson-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.lesson-card--online .lesson-card-icon {
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.14);
}
.lesson-card--private .lesson-card-icon {
  background: var(--c-accent-soft);
  border: 1px solid rgba(249,115,22,0.18);
  color: var(--c-accent);
}

.lesson-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lesson-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--c-title);
  margin: 0;
}
.lesson-card-body p { color: var(--c-muted); font-size: 0.92rem; margin: 0; }

.lesson-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
}
.lesson-features li {
  font-size: 0.90rem;
  color: var(--c-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lesson-features li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 12px no-repeat,
    rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.14);
  flex-shrink: 0;
}

/* ── Process ── */
.process-section { background: var(--c-bg); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-step {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.process-step:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(37,99,235,0.18);
  background: #fff;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px; right: 14px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(37,99,235,0.10);
  line-height: 1;
  pointer-events: none;
}

.process-num {
  display: inline-flex;
  width: 34px; height: 34px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.14);
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--c-title);
  margin: 0 0 6px;
}
.process-step p { color: var(--c-muted); font-size: 0.90rem; margin: 0; }

/* ── CTA Band ── */
.cta-section {
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary) 100%);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 20px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw + 0.6rem, 2.1rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.cta-text p   { color: rgba(255,255,255,0.68); font-size: 0.98rem; margin: 0; }
.cta-actions  { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Digital Products ── */
.digital-products-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-8) 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.digital-products-header .section-header {
  margin-bottom: 0;
  flex-shrink: 0;
  max-width: 480px;
}

.digital-products-header > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 420px;
}

.digital-products-description {
  color: var(--c-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
}

.digital-products-header > div:last-child > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary) 100%);
  color: #fff;
  border: 1px solid rgba(37,99,235,0.55);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37,99,235,0.25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.digital-products-header > div:last-child > button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2a6cff 0%, var(--c-primary-dark) 100%);
  box-shadow: 0 14px 34px rgba(37,99,235,0.30);
}

/* ═══════════════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════════════ */

/* Prevent body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* ── Outer shell (invisible until .is-open) ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  /* Hidden state */
  visibility: hidden;
  pointer-events: none;
}

.video-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* ── Backdrop ── */
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background:rgb(5 10 30 / 49%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  transition: opacity 0.32s ease;
}
.video-modal.is-open .video-modal__backdrop {
  opacity: 1;
}

/* ── Dialog box ── */
.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07);

  /* Hidden / enter animation */
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-modal.is-open .video-modal__dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Close button ── */
.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: scale(1.10) rotate(90deg);
}
.video-modal__close:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.7);
  outline-offset: 2px;
}

/* ── Frame wrapper — forces 16:9 aspect ratio ── */
.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; 
  background: #000;
}

/* ── iframe ── */
.video-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── <video> element (direct .mp4 links) ── */
.video-modal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* ── Responsive: shrink padding on small screens ── */
@media (max-width: 600px) {
  .video-modal { padding: 12px; }
  .video-modal__dialog { border-radius: 10px; }
}




































