/* 
  Source PHP tuluyenlythuyet.com - giao diện responsive.
  Sửa màu chính tại :root nếu muốn đổi nhận diện.
*/
:root{
  --primary:#075dd7;
  --primary-2:#0087ff;
  --navy:#06265d;
  --text:#18345b;
  --muted:#607792;
  --soft:#eef6ff;
  --card:#ffffff;
  --line:#dbe8f7;
  --accent:#f59e0b;
  --radius:24px;
  --shadow:0 18px 50px rgba(8,54,117,.12);
  --shadow-sm:0 10px 28px rgba(8,54,117,.10);
  --container:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#fff 0%,#f6fbff 42%,#fff 100%);
  line-height:1.6;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--container),calc(100% - 40px));margin-inline:auto}
.section-pad{padding:76px 0}
.skip-link{position:absolute;left:-999px;top:0;background:#fff;padding:10px 16px;z-index:99}
.skip-link:focus{left:10px}

.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(219,232,247,.9);
}
.header-inner{
  min-height:108px;
  display:flex;align-items:center;gap:24px;
}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{width:310px !important;max-height:96px !important;object-fit:contain}
.main-nav{
  margin-left:auto;
  display:flex;align-items:center;gap:10px;
}
.main-nav a{
  padding:12px 16px;border-radius:999px;
  color:var(--navy);font-weight:750;
}
.main-nav a:hover,.main-nav a.active{
  background:var(--soft);color:var(--primary);
}
.phone-pill{
  display:inline-flex;align-items:center;gap:9px;
  border:1px solid var(--line);border-radius:999px;
  padding:12px 18px;font-weight:900;color:var(--navy);
  box-shadow:0 8px 20px rgba(8,54,117,.06);
  background:#fff;
}
.phone-pill span{color:var(--primary)}
.menu-toggle{
  display:none;margin-left:auto;border:0;background:#fff;
  width:46px;height:46px;border-radius:15px;
  box-shadow:var(--shadow-sm);align-items:center;justify-content:center;gap:4px;flex-direction:column;
}
.menu-toggle span{width:24px;height:3px;background:var(--navy);border-radius:10px}
.menu-toggle b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.hero{
  position:relative;overflow:hidden;
  padding-top:70px;
}
.hero:before{
  content:"";position:absolute;inset:-120px -200px auto auto;
  width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(0,135,255,.18),rgba(0,135,255,0) 70%);
}
.hero-grid{
  display:grid;grid-template-columns:1.02fr .98fr;gap:46px;align-items:center;
}
.eyebrow{
  display:inline-flex;align-items:center;width:max-content;
  color:var(--primary);font-weight:900;
  background:#edf6ff;border:1px solid #cfe5ff;border-radius:999px;
  padding:7px 14px;margin-bottom:18px;
}
.hero h1{
  margin:0;
  font-size:clamp(42px,6vw,76px);
  line-height:.98;
  letter-spacing:-.055em;
  color:var(--navy);
}
.hero h1 span{display:block;color:var(--primary)}
.hero-desc{
  font-size:19px;max-width:600px;color:#405977;margin:24px 0 0;
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin:34px 0 22px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:56px;padding:15px 22px;border-radius:16px;
  font-weight:900;letter-spacing:.01em;border:1px solid transparent;
  transition:.2s transform,.2s box-shadow,.2s background;
  text-align:center;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(7,93,215,.16)}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.btn-outline{background:#fff;color:var(--primary);border-color:#9fc6ff}
.trust-row{
  display:flex;flex-wrap:wrap;gap:12px 22px;
  color:var(--navy);font-weight:700;font-size:15px;
}
.trust-row span{display:inline-flex;align-items:center;gap:6px}
.hero-media{
  position:relative;
}
.hero-media img{
  border-radius:36px;
  filter:drop-shadow(0 28px 48px rgba(7,55,125,.16));
}

.features{margin-top:-18px;position:relative;z-index:2}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.feature-card,.course-card,.contact-card,.mobile-box{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  border-radius:var(--radius);
}
.feature-card{
  padding:28px;
  display:grid;grid-template-columns:72px 1fr;gap:18px;align-items:center;
}
.feature-icon{
  width:64px;height:64px;border-radius:20px;
  display:grid;place-items:center;font-size:30px;
  color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-2));
}
.feature-card h3{margin:0 0 4px;color:var(--navy);font-size:22px}
.feature-card p{margin:0;color:var(--muted)}

.section-title{text-align:center;max-width:760px;margin:0 auto 34px}
.section-title span{
  color:var(--primary);font-weight:900;text-transform:uppercase;
  letter-spacing:.08em;font-size:13px;
}
.section-title h1,.section-title h2{
  margin:8px 0 10px;color:var(--navy);
  font-size:clamp(34px,4.6vw,52px);line-height:1.05;
  letter-spacing:-.035em;
}
.section-title p{margin:0;color:var(--muted);font-size:18px}
.course-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
}
.course-card{
  padding:26px;min-height:230px;
  display:flex;flex-direction:column;align-items:flex-start;
  transition:.2s transform,.2s box-shadow,.2s border-color;
}
.course-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#b5d5ff}
.course-icon{
  width:58px;height:58px;border-radius:18px;background:var(--soft);
  display:grid;place-items:center;font-size:30px;margin-bottom:18px;
}
.course-card h3{margin:0 0 8px;color:var(--navy);font-size:22px}
.course-card p{margin:0 0 18px;color:var(--muted);font-size:15.5px}
.course-card b{margin-top:auto;color:var(--primary)}

.mobile-first{padding:44px 0 82px}
.mobile-box{
  padding:38px;
  display:grid;grid-template-columns:1fr 360px;gap:36px;align-items:center;
  background:
    radial-gradient(circle at 85% 20%,rgba(0,135,255,.15),transparent 30%),
    linear-gradient(135deg,#fff,#eef7ff);
}
.mobile-box h2{margin:0 0 12px;color:var(--navy);font-size:clamp(32px,4vw,48px);line-height:1.05}
.mobile-box p{margin:0;color:var(--muted);font-size:18px}
.phone-preview{
  width:280px;min-height:420px;margin-left:auto;background:#fff;border-radius:34px;
  border:10px solid #06265d;box-shadow:0 24px 60px rgba(6,38,93,.20);
  padding:28px 20px;
}
.phone-top{width:86px;height:8px;border-radius:99px;background:#dbe8f7;margin:0 auto 28px}
.phone-line{height:16px;border-radius:99px;background:#dbe8f7;margin:12px 0;width:72%}
.phone-line.wide{width:100%;height:24px;background:#b6dcff}
.phone-button{margin-top:22px;border-radius:16px;background:var(--primary);color:#fff;font-weight:900;padding:14px;text-align:center}
.phone-button.light{background:#eaf4ff;color:var(--primary);margin-top:12px}
.phone-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.phone-cards i{height:82px;border-radius:18px;background:#f2f8ff;border:1px solid var(--line)}

.contact-card{
  padding:36px;display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:linear-gradient(135deg,#06265d,#075dd7);
  color:#fff;border:0;box-shadow:var(--shadow);
}
.contact-card .eyebrow{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}
.contact-card h2{margin:0 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.05}
.contact-card p{margin:0;color:rgba(255,255,255,.82)}
.contact-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.contact-card .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}

.site-footer{
  background:#041f4d;color:#d9e9ff;margin-top:28px;padding:56px 0 20px;
}
.footer-grid{
  display:grid;grid-template-columns:1.3fr .8fr 1fr;gap:44px;
  padding-bottom:30px;border-bottom:1px solid rgba(255,255,255,.14);
}
.footer-grid img{width:190px;background:#fff;border-radius:18px;padding:8px;margin-bottom:16px}
.footer-grid h3{margin:0 0 12px;color:#fff}
.footer-grid p{margin:0 0 10px;color:#c7dcf4}
.footer-grid a{display:block;color:#e9f4ff;margin:8px 0}
.footer-grid a:hover{color:#fff;text-decoration:underline}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding-top:18px;color:#b8cdea;font-size:14px;
}
.floating-actions{
  position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:10px;z-index:80;
}
.floating-actions a{
  width:56px;height:56px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;font-weight:900;box-shadow:0 14px 30px rgba(7,93,215,.28);
}
.floating-actions a:last-child{font-size:13px}

@media (max-width:1024px){
  .phone-pill{display:none}
  .hero-grid{grid-template-columns:1fr;gap:30px}
  .hero-media{max-width:720px;margin-inline:auto}
  .course-grid{grid-template-columns:repeat(2,1fr)}
  .mobile-box{grid-template-columns:1fr}
  .phone-preview{margin:auto}
}
@media (max-width:820px){
  .header-inner{min-height:74px}
  .brand img{width:245px !important;max-height:82px !important}
  .menu-toggle{display:flex}
  .main-nav{
    position:absolute;left:20px;right:20px;top:82px;margin:0;
    flex-direction:column;align-items:stretch;
    background:#fff;border:1px solid var(--line);border-radius:22px;
    padding:12px;box-shadow:var(--shadow);
    opacity:0;visibility:hidden;transform:translateY(-10px);pointer-events:none;
  }
  .main-nav.is-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .main-nav a{padding:14px 16px}
  .section-pad{padding:54px 0}
  .hero{padding-top:46px;text-align:center}
  .eyebrow{margin-inline:auto}
  .hero-desc{margin-inline:auto;font-size:17px}
  .hero-actions{justify-content:center}
  .trust-row{justify-content:center}
  .feature-grid{grid-template-columns:1fr}
  .feature-card{grid-template-columns:64px 1fr}
  .contact-card{flex-direction:column;align-items:flex-start}
  .contact-actions{justify-content:flex-start;width:100%}
  .contact-actions .btn{width:100%}
  .footer-grid{grid-template-columns:1fr;gap:26px}
}
@media (max-width:560px){
  .feature-card h3{
    grid-column:2;
  }
  .feature-card p{
    grid-column:1 / -1;
    margin-top:6px;
  }

  .container{width:min(100% - 28px,var(--container))}
  .site-header{border-bottom-color:#eaf2fb}
  .brand img{width:215px !important;max-height:72px !important}
  .menu-toggle{width:44px;height:44px;border-radius:14px}
  .hero h1{font-size:42px;letter-spacing:-.045em}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:12px}
  .btn{width:100%;min-height:58px;border-radius:17px}
  .trust-row{display:grid;grid-template-columns:1fr;gap:7px;text-align:left;width:max-content;max-width:100%;margin-inline:auto}
  .hero-media img{border-radius:24px}
  .feature-card{padding:20px;grid-template-columns:56px 1fr}
  .feature-icon{width:54px;height:54px;font-size:25px;border-radius:17px}
  .course-grid{grid-template-columns:1fr}
  .course-card{min-height:auto}
  .mobile-box{padding:24px}
  .phone-preview{width:100%;max-width:285px}
  .contact-card{padding:26px}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .floating-actions{right:12px;bottom:12px}
  .floating-actions a{width:50px;height:50px;border-radius:16px}
}




/* Header logo size override */
.site-header .brand img{
  width:310px !important;
  max-height:96px !important;
  object-fit:contain;
}
@media (max-width:820px){
  .site-header .brand img{
    width:245px !important;
    max-height:82px !important;
  }
}
@media (max-width:560px){
  .feature-card h3{
    grid-column:2;
  }
  .feature-card p{
    grid-column:1 / -1;
    margin-top:6px;
  }

  .site-header .brand img{
    width:215px !important;
    max-height:72px !important;
  }
}


/* Gọn lại 3 ô ưu điểm trên trang chủ */
.feature-card{
  grid-template-columns:72px 1fr;
  align-items:start;
}
.feature-card h3{
  grid-column:2;
  margin-top:4px;
  margin-bottom:8px;
}
.feature-card p{
  grid-column:2;
  margin:0;
  max-width:none;
  line-height:1.6;
}


/* Footer gọn hơn */
.footer-contact p{
  margin:0 0 10px;
  line-height:1.55;
}
.footer-contact strong{
  color:#ffffff;
}


/* Cập nhật v6: không để chữ trong 3 ô ưu điểm bị xuống dòng từng chữ */
.features .feature-card{
  display:grid !important;
  grid-template-columns:72px minmax(0,1fr) !important;
  grid-template-rows:auto auto !important;
  column-gap:18px !important;
  row-gap:8px !important;
  align-items:center !important;
  padding:28px !important;
}

.features .feature-card .feature-icon{
  grid-column:1 !important;
  grid-row:1 / span 2 !important;
}

.features .feature-card h3{
  grid-column:2 !important;
  grid-row:1 !important;
  margin:0 !important;
  white-space:nowrap !important;
  line-height:1.25 !important;
}

.features .feature-card p{
  grid-column:2 !important;
  grid-row:2 !important;
  margin:0 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  line-height:1.55 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  color:var(--muted) !important;
}

/* Footer liên hệ hiển thị 1 dòng gọn */
.footer-contact p{
  display:flex !important;
  align-items:baseline !important;
  gap:8px !important;
  margin:0 0 10px !important;
  line-height:1.45 !important;
  white-space:nowrap !important;
}

.footer-contact p strong{
  flex:0 0 auto !important;
  color:#ffffff !important;
}

.footer-contact p a,
.footer-contact p span{
  white-space:nowrap !important;
}

@media (max-width:820px){
  .features .feature-card h3{
    white-space:normal !important;
  }
}

@media (max-width:560px){
  .features .feature-card{
    grid-template-columns:58px minmax(0,1fr) !important;
    padding:22px !important;
  }
  .features .feature-card .feature-icon{
    width:56px !important;
    height:56px !important;
    grid-row:1 !important;
  }
  .features .feature-card h3{
    grid-column:2 !important;
    grid-row:1 !important;
  }
  .features .feature-card p{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    margin-top:8px !important;
  }
  .footer-contact p{
    white-space:normal !important;
    flex-wrap:wrap !important;
  }
}


/* Cập nhật v7: sửa triệt để chữ bị xuống dòng trong 3 ô ưu điểm */
.features .feature-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:24px !important;
}
.features .feature-card{
  display:flex !important;
  align-items:flex-start !important;
  gap:20px !important;
  padding:28px !important;
  min-height:170px !important;
}
.features .feature-card .feature-icon{
  flex:0 0 64px !important;
  width:64px !important;
  height:64px !important;
}
.features .feature-card .feature-copy{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.features .feature-card h3{
  margin:4px 0 8px !important;
  line-height:1.25 !important;
  white-space:normal !important;
}
.features .feature-card p{
  margin:0 !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  line-height:1.55 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}
.footer-contact p{
  display:flex !important;
  align-items:baseline !important;
  gap:8px !important;
  margin:0 0 10px !important;
  line-height:1.45 !important;
  white-space:nowrap !important;
}
.footer-contact strong{
  flex:0 0 auto !important;
}
.footer-contact a,
.footer-contact span{
  white-space:nowrap !important;
}
@media (max-width:1024px){
  .features .feature-grid{
    grid-template-columns:1fr !important;
  }
}
@media (max-width:560px){
  .features .feature-card{
    padding:22px !important;
    gap:16px !important;
  }
  .features .feature-card .feature-icon{
    flex-basis:56px !important;
    width:56px !important;
    height:56px !important;
  }
  .footer-contact p{
    white-space:normal !important;
    flex-wrap:wrap !important;
  }
}


/* Cập nhật v8: Trang chủ sinh động hơn với hình ảnh minh họa */
.hero-photo-card{
  position:relative;
  border-radius:36px;
  overflow:hidden;
  box-shadow:0 28px 60px rgba(7,55,125,.18);
  border:1px solid var(--line);
  background:#fff;
}
.hero-photo-card > img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:0;
  filter:none;
}
.hero-badge{
  position:absolute;
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border:1px solid rgba(219,232,247,.95);
  border-radius:18px;
  padding:12px 16px;
  box-shadow:0 14px 30px rgba(6,38,93,.14);
}
.hero-badge b{
  color:var(--primary);
  font-size:28px;
  line-height:1;
}
.hero-badge span{
  color:var(--navy);
  font-weight:850;
  font-size:14px;
}
.hero-badge-top{top:18px;left:18px}
.hero-badge-bottom{right:18px;bottom:18px}

.home-visuals{
  background:
    radial-gradient(circle at 10% 10%,rgba(0,135,255,.08),transparent 28%),
    linear-gradient(180deg,#fff,#f4f9ff);
}
.visual-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:22px;
}
.visual-card{
  position:relative;
  min-height:330px;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  transition:.22s transform,.22s box-shadow;
}
.visual-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}
.visual-card-large{
  grid-row:span 2;
  min-height:690px;
}
.visual-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}
.visual-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(4,31,77,0) 34%,rgba(4,31,77,.86) 100%);
}
.visual-copy{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:24px;
  color:#fff;
}
.visual-copy span{
  display:inline-flex;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.32);
  font-size:13px;
  font-weight:900;
  margin-bottom:10px;
}
.visual-copy h3{
  margin:0 0 8px;
  font-size:clamp(22px,2.5vw,32px);
  line-height:1.1;
}
.visual-copy p{
  margin:0;
  color:rgba(255,255,255,.88);
  line-height:1.55;
}

.practice-showcase{
  padding-top:24px;
}
.practice-box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  align-items:center;
  background:
    radial-gradient(circle at 20% 10%,rgba(255,255,255,.16),transparent 25%),
    linear-gradient(135deg,#06265d,#075dd7);
  color:#fff;
  border-radius:32px;
  padding:34px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.practice-copy h2{
  margin:0 0 12px;
  font-size:clamp(32px,4vw,50px);
  line-height:1.05;
}
.practice-copy p{
  margin:0;
  color:rgba(255,255,255,.84);
  font-size:18px;
}
.practice-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}
.practice-box .btn-outline{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.55);
}
.practice-image{
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 25px 45px rgba(0,0,0,.18);
}
.practice-image img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

@media (max-width:1024px){
  .visual-grid{
    grid-template-columns:1fr 1fr;
  }
  .visual-card-large{
    grid-row:auto;
    min-height:360px;
  }
  .practice-box{
    grid-template-columns:1fr;
  }
}
@media (max-width:680px){
  .hero-badge{
    position:static;
    margin:10px;
    display:inline-flex;
  }
  .hero-photo-card{
    display:flex;
    flex-direction:column;
    padding-bottom:8px;
  }
  .hero-photo-card > img{
    aspect-ratio:4/3;
  }
  .visual-grid{
    grid-template-columns:1fr;
  }
  .visual-card,
  .visual-card-large{
    min-height:330px;
  }
  .visual-copy{
    padding:20px;
  }
  .practice-box{
    padding:24px;
    border-radius:26px;
  }
  .practice-actions .btn{
    width:100%;
  }
}


/* Cập nhật v9: thêm menu Hướng dẫn học lý thuyết */
.main-nav{
  gap:6px;
}
.main-nav a{
  padding:11px 13px;
}
@media (max-width:1180px){
  .main-nav a{
    padding:10px 10px;
    font-size:14px;
  }
  .phone-pill{
    padding:11px 14px;
  }
}
@media (max-width:960px){
  .phone-pill{
    display:none;
  }
}
