/*
Theme Name: Mint Academy
Description: Free course directory and career pathway theme for Mint Academy — built to pair with the Mint Academy Content Manager plugin.
Author: Mint Academy
Version: 1.0.0
Text Domain: mint-academy
*/

  :root{
    --bg:#F2FBF6;
    --surface:#FFFFFF;
    --ink:#0E1F17;
    --ink-soft:#3F5A4C;
    --mint:#17B978;
    --mint-deep:#0B7A4C;
    --mint-pale:#DFF6EA;
    --lime:#D6FF3F;
    --pink:#FF6FA5;
    --line:#D7ECE1;
    --shadow: 0 8px 30px rgba(14,31,23,0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.16,1,.3,1);
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
  }
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
  }

  h1,h2,h3,.display{
    font-family:'Bricolage Grotesque', sans-serif;
    letter-spacing:-0.02em;
    line-height:1.02;
    color:var(--ink);
  }
  .mono{font-family:'Space Mono', monospace; letter-spacing:0.02em;}

  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  img{max-width:100%; display:block;}

  .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
  @media (max-width:640px){ .wrap{padding:0 20px;} }

  /* ===== NAV ===== */
  header{
    position:sticky; top:0; z-index:100;
    background:rgba(242,251,246,0.75);
    backdrop-filter:blur(14px);
    border-bottom:1px solid transparent;
    transition:border-color .4s var(--ease), padding .3s var(--ease);
  }
  header.scrolled{ border-bottom-color:var(--line); }
  nav.wrap{
    display:flex; align-items:center; justify-content:space-between;
    padding-top:20px; padding-bottom:20px;
    transition:padding .3s var(--ease);
  }
  header.scrolled nav.wrap{ padding-top:14px; padding-bottom:14px; }

  .logo{
    display:flex; align-items:center; gap:10px;
    font-family:'Bricolage Grotesque', sans-serif;
    font-weight:700; font-size:20px;
  }
  .logo .dot{
    width:12px; height:12px; border-radius:50%;
    background:var(--mint);
    box-shadow:0 0 0 4px var(--mint-pale);
  }

  .nav-links{ display:flex; gap:36px; align-items:center; }
  .nav-links a{
    font-size:14.5px; font-weight:600; color:var(--ink-soft);
    position:relative; padding:4px 0;
    transition:color .25s;
  }
  .nav-links a::after{
    content:''; position:absolute; left:0; bottom:-2px;
    width:0; height:2px; background:var(--mint);
    transition:width .3s var(--ease);
  }
  .nav-links a:hover{ color:var(--ink); }
  .nav-links a:hover::after{ width:100%; }
  .mobile-only-cta{ display:none; }

  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 22px; border-radius:100px;
    font-weight:700; font-size:14.5px;
    border:none; cursor:pointer;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .btn-primary{ background:var(--ink); color:var(--bg); }
  .btn-primary:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(14,31,23,0.25); }
  .btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
  .btn-ghost:hover{ background:var(--surface); transform:translateY(-3px); box-shadow:var(--shadow); }
  .btn-lime{ background:var(--lime); color:var(--ink); }
  .btn-lime:hover{ transform:translateY(-3px) rotate(-1deg); box-shadow:0 10px 24px rgba(214,255,63,0.5); }

  .mobile-toggle{
    display:none; background:none; border:none; cursor:pointer;
    padding:8px; margin:-8px; z-index:200; position:relative;
  }

  @media (max-width:860px){
    .desktop-cta{ display:none; }
    .mobile-toggle{ display:flex; align-items:center; justify-content:center; }
    .nav-links{
      position:fixed; top:0; right:0; height:100vh; width:min(78vw, 320px);
      background:var(--surface); flex-direction:column; align-items:flex-start;
      gap:6px; padding:88px 28px 32px; z-index:150;
      box-shadow:-14px 0 40px rgba(14,31,23,0.12);
      transform:translateX(100%); transition:transform .45s var(--ease);
    }
    .nav-links.open{ transform:translateX(0); }
    .nav-links li{ width:100%; }
    .nav-links a{
      display:block; width:100%; padding:14px 4px; font-size:16.5px;
      border-bottom:1px solid var(--line);
    }
    .nav-links a::after{ display:none; }
    .mobile-only-cta{ display:block; margin-top:14px; }
    .mobile-only-cta a{ border-bottom:none; padding:0; }
    .nav-scrim{
      position:fixed; inset:0; background:rgba(14,31,23,0.35); z-index:140;
      opacity:0; pointer-events:none; transition:opacity .4s var(--ease);
    }
    .nav-scrim.open{ opacity:1; pointer-events:auto; }
  }

  /* ===== HERO ===== */
  .hero{ padding:72px 0 40px; position:relative; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    background:var(--surface); border:1px solid var(--line);
    padding:7px 14px; border-radius:100px;
    font-size:12.5px; font-weight:700; color:var(--mint-deep);
    margin-bottom:24px;
    opacity:0; transform:translateY(14px);
    animation:rise .7s var(--ease) forwards;
  }
  .eyebrow .pulse{ width:7px; height:7px; border-radius:50%; background:var(--mint); animation:pulse 1.8s infinite; }
  @keyframes pulse{ 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(1.5);} }

  .hero-grid{
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;
  }
  @media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }

  .hero h1{
    font-size:clamp(38px, 5.4vw, 68px);
    opacity:0; transform:translateY(24px);
    animation:rise .8s .1s var(--ease) forwards;
  }
  .hero h1 .accent{ color:var(--mint); }
  .hero h1 .strike{ position:relative; color:var(--ink-soft); }
  .hero h1 .strike::after{
    content:''; position:absolute; left:-2%; right:-2%; top:48%; height:5px;
    background:var(--pink); border-radius:4px; transform:scaleX(0); transform-origin:left;
    animation:strike .5s .9s var(--ease) forwards;
  }
  @keyframes strike{ to{ transform:scaleX(1); } }

  .hero p.lead{
    margin-top:22px; font-size:17.5px; line-height:1.6; color:var(--ink-soft); max-width:480px;
    opacity:0; transform:translateY(20px);
    animation:rise .8s .25s var(--ease) forwards;
  }
  .hero-cta{
    display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;
    opacity:0; transform:translateY(20px);
    animation:rise .8s .4s var(--ease) forwards;
  }
  .hero-proof{
    display:flex; align-items:center; gap:14px; margin-top:34px;
    opacity:0; animation:fade .8s .6s var(--ease) forwards;
  }
  .avatars{ display:flex; }
  .avatars span{
    width:34px; height:34px; border-radius:50%; border:2.5px solid var(--bg);
    margin-left:-10px; display:flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:700; color:#fff;
  }
  .avatars span:first-child{ margin-left:0; }
  .hero-proof small{ color:var(--ink-soft); font-size:13.5px; font-weight:600; }

  @keyframes rise{ to{ opacity:1; transform:translateY(0); } }
  @keyframes fade{ to{ opacity:1; } }

  /* ===== PATH VISUAL (signature element) ===== */
  .path-card{
    background:var(--surface); border-radius:var(--radius-lg);
    border:1px solid var(--line); box-shadow:var(--shadow);
    padding:28px 24px 20px;
    opacity:0; transform:translateY(30px) scale(.97);
    animation:rise .9s .3s var(--ease) forwards;
    position:relative; overflow:hidden;
  }
  .path-card-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
  .path-card-head .tag{
    background:var(--mint-pale); color:var(--mint-deep); font-weight:700; font-size:11.5px;
    padding:5px 10px; border-radius:100px;
  }
  .path-card-head .goal{ font-size:12.5px; color:var(--ink-soft); font-weight:600; }

  svg#pathSvg{ width:100%; height:auto; display:block; }
  #pathLine{
    stroke:var(--mint); stroke-width:3; fill:none; stroke-linecap:round;
    stroke-dasharray:640; stroke-dashoffset:640;
  }
  .path-node{ opacity:0; transform:scale(0); transform-box:fill-box; transform-origin:center; }
  .path-node.pop{ animation:pop .55s var(--ease) forwards; }
  @keyframes pop{ to{ opacity:1; transform:scale(1); } }
  .node-label{ font-family:'Inter',sans-serif; font-weight:700; font-size:11.5px; fill:var(--ink); }
  .node-sub{ font-family:'Space Mono',monospace; font-size:9.5px; fill:var(--ink-soft); }
  .badge-final{ opacity:0; transform:scale(0); transform-box:fill-box; transform-origin:center; }
  .badge-final.pop{ animation:popBounce .6s var(--ease) forwards; }
  @keyframes popBounce{ 0%{opacity:0; transform:scale(0);} 70%{opacity:1; transform:scale(1.15);} 100%{opacity:1; transform:scale(1);} }

  /* ===== SECTION SHARED ===== */
  section{ padding:96px 0; }
  .section-head{ max-width:640px; margin-bottom:56px; }
  .section-head .kicker{
    font-size:12.5px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--mint-deep); margin-bottom:14px; display:block;
  }
  .section-head h2{ font-size:clamp(30px,3.6vw,44px); }
  .section-head p{ margin-top:16px; color:var(--ink-soft); font-size:16.5px; line-height:1.6; }

  .reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in{ opacity:1; transform:translateY(0); }

  /* ===== STATS STRIP ===== */
  .stats{ background:var(--ink); }
  .stats .wrap{
    display:grid; grid-template-columns:repeat(4,1fr); gap:32px; padding:44px 32px;
  }
  @media (max-width:760px){ .stats .wrap{ grid-template-columns:repeat(2,1fr); } }
  .stat{ text-align:left; }
  .stat .num{ font-family:'Bricolage Grotesque'; font-size:clamp(28px,3.2vw,40px); color:var(--lime); }
  .stat .label{ color:#B9CFC3; font-size:13px; font-weight:600; margin-top:6px; }

  /* ===== PATHWAYS GRID ===== */
  .pathway-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
  @media (max-width:760px){ .pathway-grid{ grid-template-columns:1fr; } }
  .pathway-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:26px; transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
    cursor:pointer;
  }
  .pathway-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:var(--mint); }
  .pathway-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; }
  .pathway-icon{
    width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
    font-size:20px;
  }
  .pathway-card h3{ font-size:20px; margin-top:14px; margin-bottom:8px; }
  .pathway-card p{ color:var(--ink-soft); font-size:14.5px; line-height:1.55; margin-bottom:18px; }
  .pathway-meta{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
  .chip{
    font-size:12px; font-weight:700; padding:5px 11px; border-radius:100px;
    background:var(--mint-pale); color:var(--mint-deep);
  }
  .chip.alt{ background:#FFE9F1; color:#C23566; }
  .track-dots{ display:flex; gap:6px; align-items:center; }
  .track-dots span{ width:8px; height:8px; border-radius:50%; background:var(--line); }
  .track-dots span.on{ background:var(--mint); }
  .track-count{ font-size:12px; color:var(--ink-soft); font-weight:600; margin-left:6px; }
  .pathway-foot{ display:flex; justify-content:space-between; align-items:center; }
  .arrow-link{ font-weight:700; font-size:14px; display:flex; align-items:center; gap:6px; color:var(--ink); }
  .arrow-link svg{ transition:transform .3s var(--ease); }
  .pathway-card:hover .arrow-link svg{ transform:translateX(5px); }

  /* ===== HOW IT WORKS ===== */
  .steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  @media (max-width:820px){ .steps{ grid-template-columns:1fr; } }
  .step{ position:relative; padding-top:8px; }
  .step .step-num{
    font-family:'Space Mono'; font-size:13px; color:var(--mint-deep); font-weight:700;
    display:block; margin-bottom:16px;
  }
  .step h3{ font-size:21px; margin-bottom:10px; }
  .step p{ color:var(--ink-soft); font-size:14.5px; line-height:1.6; }
  .step-line{ height:2px; background:var(--line); position:relative; margin:20px 0 0; overflow:hidden; border-radius:2px; }
  .step-line span{ position:absolute; left:0; top:0; height:100%; width:0; background:var(--mint); transition:width 1s var(--ease); }
  .step.in .step-line span{ width:100%; }

  /* ===== DIRECTORY MOCK ===== */
  .directory{ background:var(--surface); border-radius:var(--radius-lg); border:1px solid var(--line); padding:36px; box-shadow:var(--shadow); }
  .search-row{ display:flex; gap:12px; margin-bottom:22px; flex-wrap:wrap; }
  .search-box{
    flex:1; min-width:220px; display:flex; align-items:center; gap:10px;
    background:var(--bg); border:1.5px solid var(--line); border-radius:100px; padding:12px 18px;
    transition:border-color .3s, box-shadow .3s;
  }
  .search-box:focus-within{ border-color:var(--mint); box-shadow:0 0 0 4px var(--mint-pale); }
  .search-box input{ border:none; background:none; outline:none; font-family:'Inter'; font-size:14.5px; width:100%; color:var(--ink); }
  .filter-chips{ display:flex; gap:8px; flex-wrap:wrap; }
  .fchip{
    padding:10px 16px; border-radius:100px; border:1.5px solid var(--line); background:var(--surface);
    font-size:13.5px; font-weight:600; cursor:pointer; transition:all .25s var(--ease); color:var(--ink-soft);
  }
  .fchip.active, .fchip:hover{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

  .course-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
  @media (max-width:900px){ .course-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:620px){ .course-grid{ grid-template-columns:1fr; } }
  .course-card{
    border:1px solid var(--line); border-radius:var(--radius-md); padding:18px;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .course-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
  .course-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
  .provider{ font-size:11.5px; font-weight:700; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.03em; }
  .free-pill{ background:var(--lime); color:var(--ink); font-size:11px; font-weight:800; padding:4px 10px; border-radius:100px; }
  .course-card h4{ font-size:16.5px; margin-bottom:8px; line-height:1.3; }
  .course-rating{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-soft); margin-bottom:14px; }
  .stars{ color:#F5B301; letter-spacing:1px; }
  .course-meta{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--ink-soft); }

  /* ===== TESTIMONIALS ===== */
  .test-track{ display:flex; gap:20px; overflow-x:auto; padding-bottom:12px; scroll-snap-type:x mandatory; }
  .test-track::-webkit-scrollbar{ height:6px; }
  .test-track::-webkit-scrollbar-thumb{ background:var(--line); border-radius:10px; }
  .test-card{
    scroll-snap-align:start; min-width:300px; background:var(--surface); border:1px solid var(--line);
    border-radius:var(--radius-md); padding:24px; flex-shrink:0;
  }
  .test-stars{ color:#F5B301; font-size:14px; margin-bottom:14px; }
  .test-card p.quote{ font-size:15px; line-height:1.6; color:var(--ink); margin-bottom:18px; }
  .test-who{ display:flex; align-items:center; gap:10px; }
  .test-who .av{ width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; }
  .test-who .name{ font-weight:700; font-size:13.5px; }
  .test-who .role{ font-size:12px; color:var(--ink-soft); }

  /* ===== CTA / FOOTER ===== */
  .cta-band{
    background:var(--ink); border-radius:var(--radius-lg); padding:64px 48px; position:relative; overflow:hidden;
    text-align:center;
  }
  .cta-band h2{ color:var(--bg); font-size:clamp(28px,4vw,44px); position:relative; z-index:2; }
  .cta-band p{ color:#B9CFC3; margin:16px auto 32px; max-width:460px; font-size:15.5px; position:relative; z-index:2; }
  .cta-band .btn-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; position:relative; z-index:2; }
  .blob{ position:absolute; border-radius:50%; filter:blur(60px); opacity:.35; }
  .blob1{ width:280px; height:280px; background:var(--mint); top:-100px; left:-60px; }
  .blob2{ width:260px; height:260px; background:var(--lime); bottom:-120px; right:-40px; opacity:.25; }

  footer{ padding:56px 0 40px; }
  .foot-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:40px; }
  .foot-col h4{ font-size:13px; font-weight:700; margin-bottom:16px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.05em; }
  .foot-col a{ display:block; font-size:14.5px; margin-bottom:10px; color:var(--ink); font-weight:500; transition:color .2s; }
  .foot-col a:hover{ color:var(--mint-deep); }
  .foot-bottom{ display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding-top:24px; flex-wrap:wrap; gap:14px; }
  .foot-bottom small{ color:var(--ink-soft); font-size:13px; }

  ::selection{ background:var(--lime); color:var(--ink); }

  /* ===== MOBILE REFINEMENTS ===== */
  @media (max-width:760px){
    section{ padding:64px 0; }
    .hero{ padding:36px 0 8px; }
    .section-head{ margin-bottom:36px; }
    .hero-cta{ width:100%; }
    .hero-cta .btn{ flex:1 1 auto; justify-content:center; text-align:center; }
    .path-card{ padding:22px 18px 16px; }
    .path-card-head{ flex-wrap:wrap; gap:8px; }
    .cta-band{ padding:44px 24px; border-radius:22px; }
    .stats .wrap{ padding:36px 20px; gap:24px; }
    .directory{ padding:22px 16px; border-radius:20px; }
    .search-row{ flex-direction:column; }
    .filter-chips{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
    .filter-chips::-webkit-scrollbar{ display:none; }
    .fchip{ flex-shrink:0; }
    .test-card{ min-width:82vw; }
    .foot-grid{ flex-direction:column; gap:28px; }
    .foot-bottom{ flex-direction:column; align-items:flex-start; }
    .stat .num{ font-size:26px; }
    svg#pathSvg{ min-height:220px; }
  }

  @media (max-width:420px){
    .hero h1{ font-size:32px; }
    .btn{ padding:12px 18px; font-size:14px; }
    .logo{ font-size:17px; }
  }

/* ===== INNER PAGE ADDITIONS (single course / single pathway / archives) ===== */

.page-hero{ padding:56px 0 40px; }
.breadcrumb{ font-size:13px; color:var(--ink-soft); font-weight:600; margin-bottom:18px; }
.breadcrumb a{ color:var(--mint-deep); }
.breadcrumb a:hover{ text-decoration:underline; }

.entity-header{ display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; }
.entity-thumb{
  width:96px; height:96px; border-radius:20px; overflow:hidden; flex-shrink:0;
  background:var(--mint-pale); display:flex; align-items:center; justify-content:center; font-size:40px;
}
.entity-thumb img{ width:100%; height:100%; object-fit:cover; }
.entity-title-block h1{ font-size:clamp(28px,4vw,44px); margin-bottom:10px; }
.entity-title-block p.desc{ color:var(--ink-soft); font-size:16px; line-height:1.6; max-width:640px; }

.meta-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }

.single-course-cta{
  margin-top:28px; display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}

.related-heading{ margin:56px 0 24px; font-size:24px; }

.directory-toolbar{ margin-bottom:32px; }

.empty-state{
  text-align:center; padding:60px 20px; color:var(--ink-soft);
  background:var(--surface); border:1px dashed var(--line); border-radius:var(--radius-md);
}

.pathway-progress-track{ margin-top:32px; }
.pathway-step-list{ list-style:none; counter-reset:step; display:flex; flex-direction:column; gap:14px; margin-top:24px; }
.pathway-step{
  display:flex; gap:16px; align-items:flex-start; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-md); padding:18px 20px; transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pathway-step:hover{ transform:translateX(4px); box-shadow:var(--shadow); }
.pathway-step .step-index{
  width:34px; height:34px; border-radius:50%; background:var(--mint); color:#fff; font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.pathway-step .step-body h4{ font-size:16.5px; margin-bottom:4px; }
.pathway-step .step-body .step-meta{ font-size:13px; color:var(--ink-soft); }
.pathway-step .step-link{ margin-left:auto; font-weight:700; font-size:13.5px; color:var(--mint-deep); flex-shrink:0; }

.pagination-row{ display:flex; justify-content:center; gap:8px; margin-top:48px; }
.pagination-row a, .pagination-row span{
  padding:10px 16px; border-radius:100px; border:1px solid var(--line); font-weight:600; font-size:14px;
  background:var(--surface); color:var(--ink);
}
.pagination-row .current{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

@media (max-width:600px){
  .entity-header{ flex-direction:column; align-items:flex-start; }
  .pathway-step{ flex-wrap:wrap; }
  .pathway-step .step-link{ margin-left:0; }
}
