@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800;900;950&display=swap");

h1, h2, h3, .brand strong, .hero h1, .hero-label, .section h2, .stats h2, .newsletter h2, .blog-hero h1 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

:root{
  --green:#079345;
  --green-2:#16b866;
  --green-soft:#edf9f2;
  --ink:#111827;
  --muted:#667085;
  --line:#e7edf0;
  --bg:#ffffff;
  --shadow:0 18px 50px rgba(20,54,38,.10);
  --radius:8px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.55}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.shell{width:min(1320px,calc(100% - 64px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.nav-shell{height:86px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;min-width:max-content}
.brand-logo{height:40px;width:auto;object-fit:contain}
.brand-mark{width:40px;height:40px;color:var(--green);display:grid;place-items:center}
.brand-mark svg{width:100%;height:100%}
.brand strong{display:block;font-size:20px;line-height:1;font-weight:900;letter-spacing:0}
.brand small{display:block;margin-top:3px;color:#667085;font-size:12px;font-weight:800;letter-spacing:1.3px}
.main-nav{display:flex;align-items:center;gap:34px;margin-left:24px;font-weight:800;font-size:14px}
.main-nav a{position:relative;padding:31px 0;color:#1f2937}
.main-nav a.active,.main-nav a:hover{color:var(--green)}
.main-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:18px;height:3px;border-radius:99px;background:var(--green)}
.nav-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.search-box{width:250px;height:46px;display:flex;align-items:center;gap:10px;padding:0 15px;border:1px solid var(--line);border-radius:999px;background:#f8fafb;color:#98a2b3}
.search-box svg{width:18px;height:18px;flex:0 0 auto}
.search-box input{width:100%;border:0;background:transparent;outline:0;color:var(--ink);font:inherit;font-size:13px}
.icon-btn{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;color:#111827}
.icon-btn:hover{background:#f3f7f5;color:var(--green)}
.icon-btn svg{width:22px;height:22px}
.auth-area{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border-radius:8px;border:1px solid transparent;font-weight:900;font-size:13px;white-space:nowrap;transition:.18s ease}
.btn.solid{background:var(--green);color:#fff;box-shadow:0 12px 24px rgba(7,147,69,.18)}
.btn.solid:hover{background:#047b39;transform:translateY(-1px)}
.btn.ghost{background:#fff;color:#344054;border-color:var(--line)}
.btn.ghost:hover{border-color:#b7d9c5;color:var(--green)}
.btn.large{height:48px;padding:0 22px;font-size:14px}
.user-chip{display:flex;align-items:center;gap:10px;padding:5px 6px 5px 5px;border:1px solid var(--line);border-radius:999px;background:#fff}
.user-chip img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.user-chip strong{font-size:13px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-btn{display:none;margin-left:auto;width:42px;height:42px;border:0;background:#f3f7f5;border-radius:8px;padding:10px}
.menu-btn span{display:block;height:2px;background:#111827;margin:5px 0;border-radius:999px}
.hero {
  margin-top: 26px;
  min-height: 440px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0a1f13 0%, #143622 50%, #1f4f33 100%);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 30px;
  padding: 56px 60px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 80px rgba(10, 31, 19, 0.25);
}
.hero::before {
  content: "";
  position: absolute;
  left: -100px;
  top: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(22, 184, 102, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-label {
  text-transform: uppercase;
  color: #52B788;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 16px;
  font-size: 12px;
  background: rgba(82, 183, 136, 0.1);
  padding: 6px 16px;
  border-radius: 99px;
  width: max-content;
  border: 1px solid rgba(82, 183, 136, 0.15);
  font-family: "Space Grotesk", sans-serif;
}
.hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
}
.hero h1 span {
  color: #52B788;
  text-shadow: 0 0 20px rgba(82, 183, 136, 0.35);
}
.hero-copy>p:not(.hero-label) {
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero .btn.ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}
.hero-art {
  position: relative;
  z-index: 2;
  min-height: 330px;
}
.learner-card{position:absolute;right:20px;bottom:-26px;width:72%;max-width:520px;border-radius:22px;overflow:hidden}
.learner-card img{width:100%;height:330px;object-fit:cover;object-position:center}
.floating-card{position:absolute;background:rgba(255,255,255,.92);border:1px solid rgba(225,237,231,.9);box-shadow:var(--shadow);border-radius:8px;color:var(--green);font-weight:900}
.checklist{left:2%;top:34%;display:grid;gap:10px;padding:20px 22px;color:#344054;font-weight:800}
.checklist span{display:block}
.checklist span::first-letter{color:var(--green)}
.code-card{left:27%;top:6%;width:74px;height:74px;display:grid;place-items:center;font-size:28px}
.growth-card{right:5%;top:8%;width:120px;height:106px;display:grid;place-items:center}
.growth-card svg{width:62px;height:62px}
.feature-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:28px}
.feature-strip article{display:flex;align-items:center;gap:13px;min-height:72px;padding:14px 18px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(16,24,40,.05)}
.mini-icon{width:38px;height:38px;border-radius:8px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-weight:900}
.feature-strip strong{display:block;font-size:14px}
.feature-strip small{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.section{padding-top:46px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:22px}
.section-head.compact{align-items:center}
.section h2,.stats h2,.newsletter h2{margin:0;color:#101828;font-size:28px;line-height:1.2;letter-spacing:0;font-weight:900}
.section-head p{margin:8px 0 0;color:var(--muted)}
.text-link{height:42px;display:inline-flex;align-items:center;gap:8px;padding:0 18px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:900;color:#667085}
.text-link:hover{color:var(--green);border-color:#bde5cc}
.featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.course-card{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 12px 32px rgba(16,24,40,.06);display:flex;flex-direction:column;min-width:0;text-decoration:none;color:inherit;cursor:pointer}
.course-card:hover{transform:translateY(-3px);box-shadow:0 18px 50px rgba(16,24,40,.09);transition:.18s ease}
.course-media{position:relative;aspect-ratio:16/9;background:#071122;overflow:hidden}
.course-media img{width:100%;height:100%;object-fit:cover}
.course-badge{position:absolute;top:14px;left:14px;background:rgba(255,255,255,.92);color:#0f172a;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:900}
.course-body{padding:18px 18px 16px;display:flex;flex-direction:column;gap:12px;flex:1}
.course-body h3{margin:0;font-size:17px;line-height:1.25;font-weight:900;color:#101828}
.course-body p{margin:0;color:#667085;font-size:13px;min-height:42px}
.course-meta{display:flex;gap:16px;color:#475467;font-size:12px;font-weight:800}
.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.price-group{display:flex;align-items:baseline;gap:8px}
.price-group .sale-price{font-size:17px;font-weight:950;color:var(--green)}
.price-group .original-price{color:#98a2b3;text-decoration:line-through;font-size:13px;font-weight:600;margin-left:4px}
.course-badge.trial{background:#ff9f1c;color:#fff;box-shadow:0 4px 12px rgba(255,159,28,.3);font-weight:900}
.card-link{height:38px;width:38px;border-radius:8px;background:#eaf8ef;color:var(--green);display:grid;place-items:center;font-weight:950}
.all-courses{padding-top:42px}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.filters button,.section select{height:38px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#475467;font-weight:850;font-size:13px}
.filters button.active,.filters button:hover{background:var(--green);border-color:var(--green);color:#fff}
.section select{border-radius:8px;outline:0}
.course-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.course-grid .course-body h3{font-size:15px}
.course-grid .course-body p{min-height:50px}
.course-grid .course-body{padding:14px}
.course-grid .course-meta{font-size:11px}
.center-row{display:flex;justify-content:center;margin-top:24px}
.path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.path-card{min-height:150px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(135deg,#fff,#f4fff7);padding:20px;position:relative;overflow:hidden;box-shadow:0 10px 28px rgba(16,24,40,.05)}
.path-card:nth-child(2){background:linear-gradient(135deg,#fff,#f0fbff)}
.path-card:nth-child(3){background:linear-gradient(135deg,#fff,#fff8ed)}
.path-card:nth-child(4){background:linear-gradient(135deg,#fff,#effaf3)}
.path-card:nth-child(5){background:linear-gradient(135deg,#fff,#fff0fa)}
.path-card:nth-child(6){background:linear-gradient(135deg,#fff,#fcf6ff)}
.path-num{font-size:36px;font-weight:950;color:var(--green);line-height:1}
.path-card small{display:block;color:#667085;font-weight:800;margin:8px 0 4px}
.path-card h3{margin:0;font-size:16px;line-height:1.25}
.path-card p{margin:12px 0 0;color:#475467;font-size:12px;font-weight:800}
.path-card img{position:absolute;right:0;bottom:0;width:42%;height:72%;object-fit:cover;border-radius:8px 0 0 0;opacity:.95}
.stats{padding-top:52px}
.stats h2{margin-bottom:18px}
.stats-row{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 12px 32px rgba(16,24,40,.05)}
.stats-row article{padding:24px;text-align:center;border-right:1px solid var(--line)}
.stats-row article:last-child{border-right:0}
.stats-row strong{display:block;color:var(--green);font-size:24px;font-weight:950}
.stats-row span{display:block;color:#475467;font-size:13px;font-weight:800}
.newsletter{margin-top:44px;border:1px solid #d8efe2;border-radius:18px;background:linear-gradient(100deg,#f6fffa,#e9f8f1);padding:34px 40px;display:flex;align-items:center;justify-content:space-between;gap:30px;overflow:hidden}
.newsletter p{margin:8px 0 0;color:#475467}
.newsletter form{display:flex;gap:10px;width:min(460px,100%)}
.newsletter input{height:48px;flex:1;border:1px solid var(--line);border-radius:8px;padding:0 16px;font:inherit;outline:0}
.footer{margin-top:54px;border-top:1px solid var(--line);background:#fff}
.footer-grid{padding:38px 0;display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:54px}
.footer p,.footer a{display:block;color:#667085;font-size:13px;margin:0 0 10px}
.footer h3{margin:0 0 14px;font-size:15px}
.footer-brand p{margin-top:16px;max-width:310px}
.copyright{border-top:1px solid var(--line);padding:18px 0;color:#98a2b3;font-size:12px}
.empty-state{grid-column:1/-1;border:1px dashed #cfd8dc;border-radius:8px;padding:28px;text-align:center;color:#667085;background:#fafafa}
.blog-hero{margin-top:26px;border:1px solid #d8efe2;border-radius:18px;background:linear-gradient(110deg,#f7fffb,#edf9f2);padding:52px 56px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.blog-hero h1{margin:0;color:#101828;font-size:54px;line-height:1.05;font-weight:950;letter-spacing:0}
.blog-hero p:not(.hero-label){max-width:720px;margin:16px 0 0;color:#475467;font-size:17px}
.blog-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}
.blog-toolbar button{height:38px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#475467;font-weight:850;font-size:13px}
.blog-toolbar button.active,.blog-toolbar button:hover{background:var(--green);border-color:var(--green);color:#fff}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.blog-card{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 12px 32px rgba(16,24,40,.06);display:flex;flex-direction:column;min-width:0}
.blog-card:hover{transform:translateY(-3px);box-shadow:0 18px 50px rgba(16,24,40,.09);transition:.18s ease}
.blog-media{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;background:#071122;overflow:hidden;cursor:pointer;text-align:left}
.blog-media img{width:100%;height:100%;object-fit:cover}
.blog-media span{position:absolute;left:14px;top:14px;border-radius:999px;background:rgba(255,255,255,.92);padding:5px 10px;color:#0f172a;font-size:11px;font-weight:900}
.blog-card-body{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1}
.blog-card-body small{color:#667085;font-weight:800}
.blog-card-body h3{margin:0;color:#101828;font-size:20px;line-height:1.25;font-weight:950}
.blog-card-body p{margin:0;color:#667085;min-height:70px}
.read-link{align-self:flex-start;margin-top:auto;border:0;background:#eaf8ef;color:var(--green);height:40px;padding:0 14px;border-radius:8px;font-weight:900;cursor:pointer}
.read-link:hover{background:var(--green);color:#fff}
.blog-dialog{width:min(860px,calc(100% - 32px));max-height:88vh;border:1px solid var(--line);border-radius:12px;padding:0;box-shadow:0 24px 80px rgba(16,24,40,.2)}
.blog-dialog::backdrop{background:rgba(15,23,42,.42)}
.dialog-close{position:absolute;right:14px;top:14px;z-index:2;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#101828;font-weight:900;cursor:pointer}
#postDetail{padding:38px}
.post-detail-head{padding-right:42px}
.post-detail-head small{color:#667085;font-weight:800}
.post-detail-head h2{margin:8px 0 12px;font-size:36px;line-height:1.15;font-weight:950;color:#101828}
.post-detail-head p{margin:0 0 22px;color:#475467;font-size:17px}
.post-detail-image{width:100%;max-height:360px;object-fit:cover;border-radius:8px;margin:18px 0 24px}
.post-content{white-space:pre-wrap;color:#344054;font-size:16px;line-height:1.8}
@media (max-width:1120px){
  .main-nav{display:none}
  .menu-btn{display:block}
  .nav-actions{display:none}
  .nav-shell.menu-open{height:auto;min-height:86px;align-items:flex-start;padding:22px 0;flex-wrap:wrap}
  .nav-shell.menu-open .main-nav,.nav-shell.menu-open .nav-actions{display:flex;width:100%;margin:0;flex-wrap:wrap}
  .nav-shell.menu-open .search-box{width:100%}
  .hero{grid-template-columns:1fr;padding:42px 34px}
  .hero-art{min-height:300px}
  .feature-strip,.course-grid,.path-grid,.stats-row{grid-template-columns:repeat(2,1fr)}
  .featured-grid,.blog-grid{grid-template-columns:1fr}
  .blog-hero{align-items:flex-start;flex-direction:column;padding:42px 34px}
}
@media (max-width:720px){
  .shell{width:min(100% - 28px,1320px)}
  .nav-shell{height:74px}
  .brand strong{font-size:17px}
  .hero{margin-top:14px;padding:30px 20px;border-radius:16px}
  .hero h1{font-size:38px}
  .hero-copy>p:not(.hero-label){font-size:15px}
  .hero-actions,.newsletter form{flex-direction:column;align-items:stretch}
  .btn.large,.newsletter .btn{width:100%}
  .hero-art{min-height:250px}
  .learner-card{right:-22px;width:86%}
  .learner-card img{height:245px}
  .checklist{left:0;top:28%;padding:14px;font-size:12px}
  .code-card{left:8%;top:2%;width:54px;height:54px;font-size:20px}
  .growth-card{right:0;top:5%;width:78px;height:70px}
  .feature-strip,.course-grid,.path-grid,.stats-row,.footer-grid{grid-template-columns:1fr}
  .stats-row article{border-right:0;border-bottom:1px solid var(--line)}
  .stats-row article:last-child{border-bottom:0}
  .section-head{align-items:flex-start;flex-direction:column}
  .newsletter{padding:26px 20px;align-items:stretch;flex-direction:column}
  .blog-hero{margin-top:14px;padding:30px 20px;border-radius:16px}
  .blog-hero h1{font-size:38px}
  #postDetail{padding:26px 18px}
  .post-detail-head h2{font-size:28px}
}

/* Free trial CTA button for 24h trial courses */
.btn-free-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 18px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 2px 12px rgba(22, 163, 74, 0.35);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-free-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}
.btn-free-trial:active {
  transform: translateY(0);
}

/* "Sắp ra mắt" badge for courses with no price yet */
.no-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: .02em;
}


