/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(75,139,59,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(58,124,165,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 10%, rgba(200,168,75,0.10) 0%, transparent 50%),
    var(--cream);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: repeating-linear-gradient(
    45deg,
    var(--forest) 0, var(--forest) 1px,
    transparent 0, transparent 50%
  );
  background-size: 20px 20px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: 80px 24px 64px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rice); flex-shrink: 0;
}
.hero-eyebrow-text {
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--rice);
}
.hero-title {
  font-family: 'Fraunces', serif; font-size: clamp(38px, 5vw, 58px);
  font-weight: 700; line-height: 1.08; letter-spacing: -1px;
  color: var(--soil); margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--rice); }
.hero-desc {
  font-size: 16px; line-height: 1.75; color: var(--text-soft);
  max-width: 480px; margin-bottom: 36px;
}
.hero-stats {
  display: flex; gap: 32px; margin-bottom: 36px;
}
.hero-stat-num {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700;
  color: var(--forest); line-height: 1;
}
.hero-stat-lbl { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-card-stack { position: relative; width: 100%; max-width: 420px; }
.hero-main-card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 28px; position: relative; z-index: 3;
  border: 1px solid var(--border);
}
.hero-card-float {
  position: absolute; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  padding: 14px 18px; z-index: 4;
}
.hero-card-float-1 { top: -28px; right: -24px; min-width: 160px; }
.hero-card-float-2 { bottom: -24px; left: -20px; min-width: 180px; }
.float-icon { font-size: 20px; margin-bottom: 4px; }
.float-label { font-size: 11px; color: var(--text-soft); }
.float-val { font-size: 15px; font-weight: 600; color: var(--forest); }
.course-thumb {
  width: 100%; height: 140px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #1A4731 0%, #4B8B3B 60%, #C8A84B 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.course-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px
  );
}
.course-thumb-label {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.5); color: white; border-radius: 6px;
  font-size: 10px; padding: 3px 8px; backdrop-filter: blur(4px);
}
.progress-wrap { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); margin-bottom: 5px; }
.progress-bar-bg { height: 5px; background: var(--mist); border-radius: 99px; }
.progress-bar-fill { height: 5px; background: linear-gradient(90deg, var(--rice), var(--palay)); border-radius: 99px; transition: width 1.5s ease; }

/* ─── Scrolling ticker ─── */
.ticker-wrap {
  background: var(--forest); color: white; overflow: hidden;
  padding: 10px 0; position: relative; z-index: 1;
}
.ticker-inner { display: flex; gap: 0; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.3px;
  padding: 0 32px; opacity: 0.9; flex-shrink: 0;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--palay); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════
   PARTNERS / TRUST STRIP
═══════════════════════════════════════════════════ */
.trust-strip {
  background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.trust-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.trust-logo {
  font-size: 12px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.5px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════ */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--rice); margin-bottom: 12px;
}
.section-title {
  font-family: 'Fraunces', serif; font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; color: var(--soil);
}
.section-title em { font-style: italic; color: var(--rice); }
.section-desc { font-size: 16px; line-height: 1.7; color: var(--text-soft); max-width: 560px; margin-top: 12px; }
.section-header.center .section-desc { margin: 12px auto 0; }

/* ═══════════════════════════════════════════════════
   COURSE CARDS
═══════════════════════════════════════════════════ */
.courses-section { background: var(--cream); }
.courses-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid); cursor: pointer; transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--forest); color: white; border-color: var(--forest);
}
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.25s ease;
  cursor: pointer; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(75,139,59,0.3); }
.card-thumb {
  height: 170px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.card-thumb-meta {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-thumb-duration {
  font-size: 11px; color: white; background: rgba(0,0,0,0.5);
  padding: 3px 8px; border-radius: 5px; backdrop-filter: blur(4px);
}
.card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.card-title {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600;
  line-height: 1.35; color: var(--soil); margin-bottom: 8px;
}
.card-desc { font-size: 13px; line-height: 1.6; color: var(--text-soft); flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--border); background: var(--cloud);
}
.card-instructor { display: flex; align-items: center; gap: 8px; }
.card-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: white; flex-shrink: 0;
}
.card-instructor-name { font-size: 12px; color: var(--text-mid); font-weight: 500; }
.card-level { font-size: 11px; color: var(--text-soft); }

/* ═══════════════════════════════════════════════════
   LEARNING PATHS
═══════════════════════════════════════════════════ */
.paths-section { background: var(--white); }
.paths-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.path-card {
  border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden;
  cursor: pointer; transition: all 0.25s; border: 1px solid transparent;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.path-icon { font-size: 36px; margin-bottom: 14px; }
.path-title { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; margin-bottom: 8px; line-height: 1.2; }
.path-desc { font-size: 13px; line-height: 1.6; opacity: 0.8; margin-bottom: 16px; }
.path-meta { display: flex; gap: 12px; font-size: 12px; opacity: 0.7; }
.path-arrow { position: absolute; top: 20px; right: 20px; font-size: 20px; opacity: 0.5; }

/* ═══════════════════════════════════════════════════
   FEATURED — HERO COURSE
═══════════════════════════════════════════════════ */
.featured-section {
  background: linear-gradient(135deg, var(--forest) 0%, #0F2E1F 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.featured-bg-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(
    0deg, white 0, white 1px, transparent 0, transparent 40px
  ), repeating-linear-gradient(
    90deg, white 0, white 1px, transparent 0, transparent 40px
  );
}
.featured-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.featured-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--palay); margin-bottom: 16px;
}
.featured-title {
  font-family: 'Fraunces', serif; font-size: clamp(26px,3.5vw,42px);
  font-weight: 700; color: white; line-height: 1.15; margin-bottom: 16px;
}
.featured-desc { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.featured-includes { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.featured-includes li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.fi-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(200,168,75,0.2); border: 1px solid var(--palay);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--palay); flex-shrink: 0;
}
.featured-visual {
  position: relative;
}
.featured-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-lg);
  padding: 24px; color: white;
}
.module-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.module-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08); font-size: 13px;
  transition: background 0.15s;
}
.module-item:hover { background: rgba(255,255,255,0.14); }
.module-item.active { background: rgba(200,168,75,0.2); border: 1px solid rgba(200,168,75,0.3); }
.module-num {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,0.12); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.module-item.active .module-num { background: var(--palay); color: var(--soil); }
.module-title { flex: 1; font-size: 13px; }
.module-dur { font-size: 11px; opacity: 0.6; }

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════ */
.hiw-section { background: var(--cloud); }
.hiw-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.hiw-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--leaf-lt), var(--rice), var(--leaf-lt));
  z-index: 0;
}
.hiw-step { text-align: center; position: relative; z-index: 1; }
.hiw-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--forest); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700;
  margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(26,71,49,0.25);
}
.hiw-step-title { font-weight: 700; font-size: 15px; color: var(--soil); margin-bottom: 8px; }
.hiw-step-desc { font-size: 13px; color: var(--text-soft); line-height: 1.6; }



/* ═══════════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #0A2918 0%, var(--forest) 50%, #1A4731 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '🌾'; position: absolute; left: 5%; top: 50%; transform: translateY(-50%);
  font-size: 120px; opacity: 0.06;
}
.cta-section::after {
  content: '🌾'; position: absolute; right: 5%; top: 50%; transform: translateY(-50%) scaleX(-1);
  font-size: 120px; opacity: 0.06;
}
.cta-title {
  font-family: 'Fraunces', serif; font-size: clamp(28px,4vw,44px);
  font-weight: 700; color: white; margin-bottom: 14px;
}
.cta-desc { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.float-anim { animation: float 4s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .hero-visual { order: -1; }
  .hero-card-stack { max-width: 360px; margin: 0 auto; }
  .featured-inner { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .hiw-steps { grid-template-columns: repeat(2,1fr); }
  .hiw-steps::before { display: none; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Initial state: show only first 3 */
.courses-grid.is-truncated .course-card:nth-child(n+4) {
    display: none;
}

/* Animation for filtering */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Container spacing */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; /* Space between cards */
    padding: 20px 0;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

/* Internal Card Padding */
.course-body {
    padding: 25px; /* Internal padding for the whole body */
    display: flex;
    flex-direction: column;
    flex: 1; /* Allows the body to grow to match row height */
}

/* Spacing after Description */
.course-description {
    font-size: 0.95rem;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 30px; /* Padding/Margin after description as requested */
    flex: 1; /* Pushes the footer down */
}

.course-title {
    margin: 15px 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #202124;
}

/* Footer & Button Styling */
.course-footer {
    margin-top: auto; /* Final push to keep button at bottom */
    padding-top: 10px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-outline {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline:hover {
    background: #28a745;
    color: #fff;
}