/*
Theme Name: TMD Review
Theme URI: https://tinhocmyduc.com/
Description: Child theme của GeneratePress cho Tin Học Mỹ Đức — chuyên review công nghệ, AI tools, SEO tools, so sánh. Tông trắng-xanh, tối giản chuyên nghiệp, đổ bóng mềm.
Author: CuLi
Template: generatepress
Version: 1.0.0
Text Domain: tmd-review
*/

/* ============================================================
   DESIGN TOKENS — white / blue, professional, soft shadows
   ============================================================ */
:root{
  --tmd-primary:#1E3A8A;      /* deep blue */
  --tmd-primary-2:#3B82F6;    /* bright blue */
  --tmd-cta:#2563EB;          /* CTA blue */
  --tmd-cta-hover:#1D4ED8;
  --tmd-bg:#F8FAFC;           /* app background */
  --tmd-surface:#FFFFFF;      /* cards */
  --tmd-surface-2:#F1F5F9;
  --tmd-text:#0F172A;         /* body text */
  --tmd-heading:#0B1220;
  --tmd-muted:#64748B;        /* secondary */
  --tmd-border:#E2E8F0;
  --tmd-gold:#F59E0B;         /* ratings */
  --tmd-success:#10B981;      /* verified */
  --tmd-danger:#EF4444;

  --tmd-radius:14px;
  --tmd-radius-sm:10px;
  --tmd-shadow-sm:0 1px 3px rgba(15,23,42,.08),0 1px 2px rgba(15,23,42,.04);
  --tmd-shadow:0 4px 14px rgba(15,23,42,.08);
  --tmd-shadow-lg:0 12px 32px rgba(30,58,138,.14);
  --tmd-ring:0 0 0 3px rgba(59,130,246,.35);

  --tmd-maxw:1200px;
  --tmd-gap:24px;

  --tmd-font-head:'Lexend',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --tmd-font-body:'Source Sans 3',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
body{
  font-family:var(--tmd-font-body);
  color:var(--tmd-text);
  background:var(--tmd-bg);
  font-size:16px;
  line-height:1.6;
}
h1,h2,h3,h4,h5,h6,.tmd-h{font-family:var(--tmd-font-head);color:var(--tmd-heading);line-height:1.2;letter-spacing:-.01em;}
a{color:var(--tmd-cta);}
a:hover{color:var(--tmd-cta-hover);}
img{max-width:100%;height:auto;}
:focus-visible{outline:none;box-shadow:var(--tmd-ring);border-radius:6px;}

.tmd-container{max-width:var(--tmd-maxw);margin:0 auto;padding:0 20px;}

/* ============================================================
   BUTTONS
   ============================================================ */
.tmd-btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--tmd-font-head);font-weight:600;font-size:15px;
  padding:12px 22px;border-radius:var(--tmd-radius-sm);
  text-decoration:none;cursor:pointer;border:1px solid transparent;
  transition:background .2s ease,box-shadow .2s ease,transform .15s ease,color .2s ease;
  line-height:1;min-height:44px;
}
.tmd-btn svg{width:18px;height:18px;}
.tmd-btn-primary{background:var(--tmd-cta);color:#fff;box-shadow:0 6px 16px rgba(37,99,235,.28);}
.tmd-btn-primary:hover{background:var(--tmd-cta-hover);color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.34);transform:translateY(-1px);}
.tmd-btn-ghost{background:#fff;color:var(--tmd-primary);border-color:var(--tmd-border);box-shadow:var(--tmd-shadow-sm);}
.tmd-btn-ghost:hover{border-color:var(--tmd-primary-2);color:var(--tmd-primary);transform:translateY(-1px);box-shadow:var(--tmd-shadow);}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.tmd-section{padding:64px 0;}
.tmd-section-head{max-width:720px;margin:0 auto 40px;text-align:center;}
.tmd-eyebrow{display:inline-block;font-family:var(--tmd-font-head);font-weight:600;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--tmd-primary-2);background:#EFF6FF;padding:6px 14px;border-radius:999px;margin-bottom:14px;}
.tmd-section-head h2{font-size:34px;margin:0 0 12px;}
.tmd-section-head p{color:var(--tmd-muted);font-size:17px;margin:0;}

/* ============================================================
   HERO
   ============================================================ */
.tmd-hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1100px 460px at 80% -10%,rgba(59,130,246,.14),transparent 60%),
    linear-gradient(180deg,#FFFFFF 0%,#F1F6FF 100%);
  border-bottom:1px solid var(--tmd-border);
  padding:76px 0 64px;
}
.tmd-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;}
.tmd-hero h1{font-size:46px;margin:0 0 18px;}
.tmd-hero h1 .g{background:linear-gradient(90deg,var(--tmd-primary),var(--tmd-primary-2));-webkit-background-clip:text;background-clip:text;color:transparent;}
.tmd-hero p.lead{font-size:19px;color:var(--tmd-muted);margin:0 0 28px;max-width:560px;}
.tmd-hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.tmd-hero-trust{display:flex;gap:26px;margin-top:30px;flex-wrap:wrap;}
.tmd-hero-trust .t{display:flex;flex-direction:column;}
.tmd-hero-trust .t b{font-family:var(--tmd-font-head);font-size:24px;color:var(--tmd-primary);}
.tmd-hero-trust .t span{font-size:13px;color:var(--tmd-muted);}
.tmd-hero-card{
  background:var(--tmd-surface);border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);
  box-shadow:var(--tmd-shadow-lg);padding:22px;
}
.tmd-hero-card .row{display:flex;align-items:center;gap:14px;padding:12px;border-radius:var(--tmd-radius-sm);}
.tmd-hero-card .row+.row{margin-top:6px;}
.tmd-hero-card .row:hover{background:var(--tmd-surface-2);}
.tmd-hero-card .ico{width:44px;height:44px;flex:0 0 44px;border-radius:12px;display:grid;place-items:center;background:#EFF6FF;color:var(--tmd-primary-2);}
.tmd-hero-card .ico svg{width:24px;height:24px;}
.tmd-hero-card .m{flex:1;}
.tmd-hero-card .m b{display:block;font-family:var(--tmd-font-head);font-size:15px;color:var(--tmd-heading);}
.tmd-hero-card .m span{font-size:13px;color:var(--tmd-muted);}
.tmd-stars{color:var(--tmd-gold);font-size:14px;letter-spacing:1px;white-space:nowrap;}

/* ============================================================
   CARD GRID (tools / reviews)
   ============================================================ */
.tmd-grid{display:grid;gap:var(--tmd-gap);}
.tmd-grid.cols-3{grid-template-columns:repeat(3,1fr);}
.tmd-grid.cols-4{grid-template-columns:repeat(4,1fr);}
.tmd-grid.cols-2{grid-template-columns:repeat(2,1fr);}

.tmd-card{
  background:var(--tmd-surface);border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);
  box-shadow:var(--tmd-shadow-sm);padding:22px;display:flex;flex-direction:column;
  transition:box-shadow .25s ease,transform .2s ease,border-color .2s ease;
}
.tmd-card:hover{box-shadow:var(--tmd-shadow-lg);transform:translateY(-4px);border-color:#DBEAFE;}
.tmd-card .badge{align-self:flex-start;font-family:var(--tmd-font-head);font-size:12px;font-weight:600;color:var(--tmd-primary-2);background:#EFF6FF;padding:5px 11px;border-radius:999px;margin-bottom:14px;}
.tmd-card .ico{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#EFF6FF,#DBEAFE);color:var(--tmd-primary);margin-bottom:16px;}
.tmd-card .ico svg{width:28px;height:28px;}
.tmd-card h3{font-size:19px;margin:0 0 8px;}
.tmd-card p{color:var(--tmd-muted);font-size:15px;margin:0 0 16px;flex:1;}
.tmd-card .meta{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;border-top:1px solid var(--tmd-border);}
.tmd-card .meta .score{font-family:var(--tmd-font-head);font-weight:700;color:var(--tmd-primary);}
.tmd-card .link{font-family:var(--tmd-font-head);font-weight:600;font-size:14px;color:var(--tmd-cta);display:inline-flex;align-items:center;gap:6px;text-decoration:none;}
.tmd-card .link svg{width:16px;height:16px;transition:transform .2s ease;}
.tmd-card:hover .link svg{transform:translateX(3px);}

/* ============================================================
   COMPARE STRIP
   ============================================================ */
.tmd-compare{background:linear-gradient(135deg,var(--tmd-primary) 0%,#2749B8 55%,var(--tmd-primary-2) 100%);border-radius:20px;padding:44px;color:#fff;box-shadow:var(--tmd-shadow-lg);}
.tmd-compare-grid{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;}
.tmd-compare h2{color:#fff;font-size:30px;margin:0 0 10px;}
.tmd-compare p{color:rgba(255,255,255,.85);font-size:17px;margin:0;max-width:560px;}
.tmd-compare .tmd-btn-primary{background:#fff;color:var(--tmd-primary);box-shadow:0 8px 20px rgba(0,0,0,.18);}
.tmd-compare .tmd-btn-primary:hover{background:#EFF6FF;color:var(--tmd-primary);}

/* ============================================================
   FEATURE ROW (why trust)
   ============================================================ */
.tmd-feat{display:flex;gap:16px;align-items:flex-start;}
.tmd-feat .ico{width:48px;height:48px;flex:0 0 48px;border-radius:12px;display:grid;place-items:center;background:#EFF6FF;color:var(--tmd-primary-2);box-shadow:var(--tmd-shadow-sm);}
.tmd-feat .ico svg{width:24px;height:24px;}
.tmd-feat h3{font-size:17px;margin:0 0 6px;}
.tmd-feat p{color:var(--tmd-muted);font-size:15px;margin:0;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .tmd-grid.cols-4{grid-template-columns:repeat(2,1fr);}
  .tmd-grid.cols-3{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:860px){
  .tmd-hero-grid{grid-template-columns:1fr;}
  .tmd-hero-card{order:-1;}
  .tmd-hero h1{font-size:36px;}
  .tmd-compare-grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .tmd-section{padding:44px 0;}
  .tmd-hero{padding:52px 0 40px;}
  .tmd-hero h1{font-size:30px;}
  .tmd-section-head h2{font-size:26px;}
  .tmd-grid.cols-4,.tmd-grid.cols-3,.tmd-grid.cols-2{grid-template-columns:1fr;}
  .tmd-compare{padding:28px;}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important;}
}

/* ============================================================
   HEADER LOGO — gioi han kich thuoc, menu ben phai
   ============================================================ */
.site-logo img,
.site-header .header-image.is-logo-image,
img.is-logo-image{
  width:210px !important;
  max-width:210px !important;
  height:auto !important;
}
.site-header .site-logo{ display:flex; align-items:center; }
.site-header .site-branding-container .main-title,
.site-header .site-title,
.site-header p.site-description{ display:none !important; }

/* ============================================================
   FOOTER EXTRA — menu + social
   ============================================================ */
.tmd-footer-extra{
  background:var(--tmd-primary);
  color:#DBEAFE;
  padding:34px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.tmd-footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.tmd-footer-nav .tmd-fnav-list{
  list-style:none;
  margin:0;padding:0;
  display:flex;flex-wrap:wrap;
  gap:8px 26px;
}
.tmd-footer-nav .tmd-fnav-list li{margin:0;}
.tmd-footer-nav .tmd-fnav-list a{
  color:#DBEAFE;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  transition:color .15s ease;
}
.tmd-footer-nav .tmd-fnav-list a:hover{color:#fff;text-decoration:underline;}
.tmd-social{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.tmd-social-label{font-size:14px;font-weight:600;color:#BFDBFE;}
.tmd-social-icons{display:flex;gap:10px;}
.tmd-social-icons a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;
  border-radius:10px;
  background:rgba(255,255,255,.12);
  color:#fff;
  transition:background .15s ease,transform .15s ease;
}
.tmd-social-icons a:hover{background:var(--tmd-cta);transform:translateY(-2px);}
.tmd-social-icons svg{width:19px;height:19px;}
@media (max-width:640px){
  .tmd-footer-grid{flex-direction:column;align-items:flex-start;}
}
