/*
Theme Name: Dichvu Blog
Theme URI: https://dichvu.blog
Author: dichvu.blog
Description: Giao diện tạp chí tối giản dành riêng cho các bài viết về dịch vụ.
Version: 1.0.0
Text Domain: dichvu-blog
*/

:root{--ink:#17211b;--muted:#68736c;--paper:#f5f4ef;--card:#fff;--line:#dcded8;--green:#0b6b4b;--lime:#d9f75f;--orange:#ff7a45;--blue:#bfe7ed;--radius:22px;--shadow:0 18px 50px rgba(20,40,30,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(245,244,239,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{height:76px;display:flex;align-items:center;gap:34px}.logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:23px;letter-spacing:-1px}.logo-mark{width:34px;height:34px;border-radius:11px;background:var(--green);display:grid;place-items:center;color:var(--lime);font-size:17px}.logo span:last-child{color:var(--green)}.main-nav{display:flex;gap:26px;margin-left:auto;font-size:14px;font-weight:700}.main-nav a:hover{color:var(--green)}.search-toggle{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;font-size:18px}.hero{padding:70px 0 38px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--green);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:1.4px}.eyebrow:before{content:"";width:28px;height:2px;background:var(--green)}h1,h2,h3,p{margin-top:0}.hero h1{max-width:850px;margin:16px 0 20px;font-size:clamp(48px,7vw,86px);line-height:.98;letter-spacing:-5px}.hero h1 em{font-style:normal;color:var(--green)}.hero-copy{max-width:620px;color:var(--muted);font-size:19px}.topic-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}.topic{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:13px;font-weight:700;transition:.2s}.topic:hover{background:var(--ink);color:#fff;border-color:var(--ink)}.featured-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:20px;margin:10px 0 68px}.post-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .25s,box-shadow .25s}.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.visual{min-height:250px;position:relative;overflow:hidden;background:var(--blue)}.visual:before,.visual:after{content:"";position:absolute;border-radius:999px}.visual:before{width:280px;height:280px;right:-55px;top:-90px;background:var(--lime)}.visual:after{width:170px;height:170px;left:35px;bottom:-70px;background:var(--orange)}.visual-icon{position:absolute;inset:0;display:grid;place-items:center;font-size:70px;z-index:1}.post-card.has-image .visual{background:#dfe4df}.post-card.has-image .visual img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.card-body{padding:25px}.meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.meta .category{color:var(--green)}.post-card h2,.post-card h3{margin:13px 0 11px;letter-spacing:-1.1px;line-height:1.18}.post-card h2{font-size:31px}.post-card h3{font-size:22px}.excerpt{color:var(--muted);margin-bottom:0}.featured-main .visual{min-height:400px}.featured-side{display:grid;gap:20px}.featured-side .visual{min-height:145px}.featured-side .card-body{padding:21px}.featured-side h3{font-size:19px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px;padding-bottom:18px;border-bottom:1px solid var(--line)}.section-head h2{font-size:34px;letter-spacing:-1.5px;margin:0}.section-head a{color:var(--green);font-size:13px;font-weight:800}.posts-layout{display:grid;grid-template-columns:1fr 300px;gap:48px}.post-list{display:grid;gap:18px}.list-card{display:grid;grid-template-columns:210px 1fr;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.list-card .visual{min-height:190px}.list-body{padding:24px}.list-body h3{font-size:23px;margin:10px 0 8px;line-height:1.2;letter-spacing:-.7px}.sidebar-box{position:sticky;top:100px;background:var(--ink);color:#fff;padding:28px;border-radius:var(--radius)}.sidebar-box .kicker{color:var(--lime);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:1px}.sidebar-box h3{font-size:27px;line-height:1.15;margin:12px 0}.sidebar-box p{color:#bdc6c0;font-size:14px}.search-form{display:flex;background:#fff;border-radius:12px;overflow:hidden;margin-top:20px}.search-form input{width:100%;border:0;padding:13px;font:inherit;outline:none}.search-form button{border:0;background:var(--lime);padding:0 15px;font-weight:900;cursor:pointer}.pagination{margin:35px 0 70px;display:flex;gap:8px}.pagination .page-numbers{padding:9px 14px;border-radius:9px;background:#fff;border:1px solid var(--line);font-weight:700}.pagination .current{background:var(--green);color:#fff;border-color:var(--green)}.site-footer{margin-top:80px;background:var(--ink);color:#fff;padding:50px 0}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-inner p{margin:0;color:#aab6af;font-size:14px}.article{width:min(780px,calc(100% - 40px));margin:70px auto}.article-head{text-align:center}.article h1{font-size:clamp(40px,6vw,68px);line-height:1.04;letter-spacing:-3px;margin:18px 0}.article .lead{color:var(--muted);font-size:19px}.article-cover{height:430px;border-radius:26px;margin:38px 0;background:var(--blue);overflow:hidden}.article-cover img{width:100%;height:100%;object-fit:cover}.article-content{font-family:Georgia,serif;font-size:19px;line-height:1.8}.article-content h2,.article-content h3{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px;margin-top:1.8em}.article-content a{color:var(--green);text-decoration:underline}.empty-state{text-align:center;padding:80px 20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.empty-state h2{font-size:34px}.menu-button{display:none}.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:850px){.main-nav{display:none}.menu-button{display:block;margin-left:auto}.featured-grid,.posts-layout{grid-template-columns:1fr}.featured-side{grid-template-columns:1fr 1fr}.sidebar-box{position:static}.hero{padding-top:48px}.hero h1{letter-spacing:-3px}.featured-main .visual{min-height:320px}}
@media(max-width:600px){.wrap{width:min(100% - 24px,1180px)}.header-inner{height:66px}.hero h1{font-size:47px;letter-spacing:-2.5px}.hero-copy{font-size:17px}.featured-side{grid-template-columns:1fr}.list-card{grid-template-columns:120px 1fr}.list-card .visual{min-height:180px}.list-body{padding:18px}.list-body .excerpt{display:none}.list-body h3{font-size:19px}.featured-main .visual{min-height:260px}.footer-inner{align-items:flex-start;flex-direction:column}.article-cover{height:270px}.article{margin-top:45px}}

/* Featured-image corrections */
.main-nav li{list-style:none}
.visual.has-image:before,.visual.has-image:after,.post-card.has-image .visual:before,.post-card.has-image .visual:after{display:none}
.visual.has-image img,.post-card.has-image .visual img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover}

/* More compact desktop hero */
.featured-grid{margin-right:auto;margin-left:auto}
@media(min-width:851px){
  .hero{padding:48px 0 30px}
  .hero h1{max-width:760px;margin:13px 0 16px;font-size:clamp(52px,5.6vw,72px);line-height:1;letter-spacing:-4px}
  .hero-copy{max-width:590px;font-size:18px;line-height:1.55}
  .topic-row{margin-top:24px}
  .featured-grid{margin-top:4px}
}

/* Image watermark */
.article-cover{position:relative}
.visual.has-image:after,.post-card.has-image .visual:after,.article-cover:after{
  content:"dichvu.blog";
  display:block;
  position:absolute;
  right:14px;
  bottom:12px;
  left:auto;
  top:auto;
  width:auto;
  height:auto;
  z-index:3;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.38);
  border-radius:999px;
  background:rgba(12,34,24,.68);
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  letter-spacing:.2px;
  backdrop-filter:blur(5px);
  pointer-events:none;
}
@media(max-width:600px){.visual.has-image:after,.post-card.has-image .visual:after,.article-cover:after{right:9px;bottom:9px;padding:5px 8px;font-size:10px}}

/* Professional article data tables */
.article-content table{
  width:100%;
  min-width:760px;
  margin:26px 0 36px;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(11,107,75,.16);
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 36px rgba(20,40,30,.07);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.55;
}
.article-content thead th{
  padding:16px 18px;
  background:#0b6b4b;
  color:#fff;
  font-size:13px;
  font-weight:850;
  line-height:1.3;
  text-align:left;
  letter-spacing:.2px;
  vertical-align:middle;
}
.article-content th,.article-content td{border:0}
.article-content tbody td{
  padding:18px;
  color:#26332b;
  vertical-align:top;
  border-top:1px solid #e7e9e4;
}
.article-content tbody tr:nth-child(even) td{background:#f8faf6}
.article-content tbody tr:hover td{background:#f1f7ef}
.article-content tbody td:first-child{
  width:23%;
  color:#0b6b4b;
  font-weight:800;
}
.article-content tbody td:nth-child(2){width:57%}
.article-content tbody td:last-child{
  width:20%;
  font-weight:750;
}
.article-content table a{
  color:#0b6b4b;
  text-decoration:none;
  border-bottom:1px solid rgba(11,107,75,.35);
}
.article-content table a:hover{border-bottom-color:#0b6b4b}
@media(max-width:850px){
  .article-content table{
    display:block;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}
