/* ══════════════════════════════════════
   PHAOCHI AI THEME — theme.css
   WordPress-specific styles & extra pages
══════════════════════════════════════ */

/* ── Reset WordPress defaults ── */
body { margin:0 !important; }
body.admin-bar .header { top: 32px; }
@media (max-width:782px) { body.admin-bar .header { top:46px; } }
a { color: var(--g); }
img { max-width:100%; height:auto; }
.wp-caption { max-width:100%; }

/* ── WordPress Page / Post content ── */
.wp-page-wrap {
  padding-top: 100px;
  min-height: 80vh;
  background: var(--dark);
}
.wp-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.wp-single-inner { max-width: 760px; }

.wp-page-title {
  font-size: clamp(26px,4vw,44px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text);
}
.wp-post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.wp-post-thumb {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
}
.wp-post-thumb img { width:100%; display:block; }

.wp-page-content {
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}
.wp-page-content h2 { font-size:24px; font-weight:800; margin:36px 0 12px; }
.wp-page-content h3 { font-size:19px; font-weight:700; margin:28px 0 10px; }
.wp-page-content p  { margin-bottom: 18px; }
.wp-page-content ul,
.wp-page-content ol { padding-left:24px; margin-bottom:18px; }
.wp-page-content li { margin-bottom:6px; }
.wp-page-content blockquote {
  border-left: 3px solid var(--g);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(212,175,55,.04);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-style: italic;
}
.wp-page-content img {
  border-radius: 8px;
  margin: 16px 0;
}
.wp-page-content a { color:var(--g); text-decoration:none; }
.wp-page-content a:hover { text-decoration:underline; }
.wp-page-content strong { color: var(--text); }
.wp-page-content code {
  background: rgba(212,175,55,.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--g);
}

.wp-post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.wp-post-nav a { color:var(--muted); text-decoration:none; transition:color .2s; }
.wp-post-nav a:hover { color:var(--g); }

.wp-pagination { margin-top:40px; text-align:center; }
.wp-pagination .nav-links { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.wp-pagination a,
.wp-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: all .2s;
}
.wp-pagination a:hover { border-color:var(--g-border); color:var(--g); }
.wp-pagination .current { border-color:var(--g); color:var(--g); background:rgba(212,175,55,.08); }

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  margin-top: 8px;
}
.blog-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s;
}
.blog-card:hover { border-color:var(--g-border); transform:translateY(-3px); }
.blog-card-img { display:block; aspect-ratio:16/9; overflow:hidden; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.blog-card:hover .blog-card-img img { transform:scale(1.04); }
.blog-card-body { padding:20px; }
.blog-card-meta { font-size:11px; color:var(--muted); margin-bottom:8px; }
.blog-card-title { font-size:17px; font-weight:700; margin-bottom:10px; line-height:1.3; }
.blog-card-title a { color:var(--text); text-decoration:none; }
.blog-card-title a:hover { color:var(--g); }
.blog-card-excerpt { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:16px; }
.blog-card-btn {
  display:inline-block; font-size:12px; font-weight:700;
  color:var(--g); text-decoration:none; letter-spacing:.05em;
}
.blog-card-btn:hover { color:#E8C547; }

/* ── Widget ── */
.widget { margin-bottom:28px; }
.widget-title { font-size:13px; font-weight:700; letter-spacing:.12em; color:var(--g); margin-bottom:12px; }

/* ── Footer extended ── */
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display:flex; flex-direction:column; gap:6px; }
.footer-logo { font-size:22px; font-weight:900; }
.footer-tag  { font-size:9px; letter-spacing:.2em; color:var(--muted); }
.footer-contact { font-size:13px; color:var(--muted); margin-top:4px; }
.footer-nav-cols { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col-title { font-size:11px; font-weight:700; letter-spacing:.15em; color:var(--g); margin-bottom:4px; }
.footer-col a { font-size:13px; color:var(--muted); text-decoration:none; transition:color .2s; }
.footer-col a:hover { color:var(--text); }
.footer-bottom {
  display: flex; justify-content:space-between; align-items:center;
  padding: 20px 40px;
}
.footer-copy  { font-size:12px; color:var(--muted); opacity:.6; }
.footer-links { display:flex; gap:16px; }
.footer-links a { font-size:12px; color:var(--muted); text-decoration:none; }
.footer-links a:hover { color:var(--g); }

/* ── Admin CSS (inline for WP admin) ── */
/* (full admin.css is separate) */

@media (max-width:900px) {
  .footer-top { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; gap:10px; text-align:center; }
  .footer-top, .footer-bottom { padding-left:24px; padding-right:24px; }
  .blog-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .wp-page-inner { padding:28px 18px 60px; }
  .footer-nav-cols { grid-template-columns:1fr 1fr; }
}

/* ── Result download button ── */
.result-dl-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(6,15,8,.88);
  border: 1px solid var(--g-border);
  border-radius: 50%;
  color: var(--g); font-size: 14px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: all .2s; opacity: 0;
}
.result-card:hover .result-dl-btn { opacity: 1; }
.result-dl-btn:hover { background: var(--g); color: var(--dark); }

/* ════════════════════════════════════════
   TRANG GIỚI THIỆU (page-gioi-thieu.php)
════════════════════════════════════════ */

/* Hero */
.gt-hero {
  padding-top: 120px; padding-bottom: 80px;
  text-align: center; position: relative;
  background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.gt-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,175,55,.07) 0%, transparent 70%);
  pointer-events: none;
}
.gt-hero-inner { position: relative; max-width: 860px; margin: 0 auto; padding: 0 32px; }
.gt-hero-badge {
  display: inline-block; padding: 5px 16px;
  border: 1px solid var(--g-border); border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--g); margin-bottom: 24px;
}
.gt-hero-title {
  font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.05;
  margin-bottom: 20px; color: var(--text);
}
.gt-hero-em { color: var(--g); font-style: normal; }
.gt-hero-desc {
  font-size: 16px; color: var(--muted); max-width: 620px;
  margin: 0 auto 40px; line-height: 1.7;
}
.gt-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: rgba(212,175,55,.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; max-width: 680px; margin: 0 auto;
}
.gt-stat { text-align: center; padding: 0 28px; }
.gt-stat-num { font-size: 32px; font-weight: 900; color: var(--g); line-height: 1; }
.gt-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.gt-stat-sep { width: 1px; height: 40px; background: var(--border); }

/* Sections */
.gt-section { padding: 80px 0; }
.gt-section-dark { background: var(--dark2); }
.gt-section-inner { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.gt-section-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .22em; color: var(--g); margin-bottom: 12px;
}
.gt-section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.1;
  color: var(--text); margin-bottom: 20px;
}
.gt-section-text { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.gt-values { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.gt-value-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.gt-value-icon { color: var(--g); font-size: 12px; }

/* Two col layout */
.gt-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.gt-visual-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.gt-visual-card {
  background: rgba(212,175,55,.05); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 16px; text-align: center;
  transition: all .3s;
}
.gt-visual-card:hover { border-color: var(--g-border); background: rgba(212,175,55,.09); transform: translateY(-3px); }
.gt-visual-offset { margin-top: 20px; }
.gt-visual-icon { font-size: 28px; margin-bottom: 8px; }
.gt-visual-label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Products grid */
.gt-products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gt-product-card {
  background: rgba(212,175,55,.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 22px; transition: all .3s;
}
.gt-product-card:hover { border-color: var(--g-border); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.gt-product-icon { font-size: 30px; margin-bottom: 12px; }
.gt-product-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.gt-product-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.gt-product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 20px;
  background: rgba(212,175,55,.08); border: 1px solid var(--g-border); color: var(--g);
}

/* Why grid */
.gt-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.gt-why-item {
  border-left: 2px solid var(--border); padding-left: 20px; transition: border-color .2s;
}
.gt-why-item:hover { border-color: var(--g); }
.gt-why-num { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--g); margin-bottom: 8px; }
.gt-why-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.gt-why-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* CTA section */
.gt-cta-section {
  padding: 80px 40px; text-align: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  border-top: 1px solid var(--border);
}
.gt-cta-inner { max-width: 600px; margin: 0 auto; }
.gt-cta-icon { font-size: 32px; color: var(--g); margin-bottom: 16px; }
.gt-cta-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; color: var(--text); }
.gt-cta-desc { font-size: 15px; color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.gt-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gt-btn-primary {
  padding: 14px 32px; background: var(--g); color: var(--dark);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 800;
  text-decoration: none; letter-spacing: .06em; transition: all .2s;
}
.gt-btn-primary:hover { background: #E8C547; transform: translateY(-2px); }
.gt-btn-secondary {
  padding: 14px 32px; border: 1px solid var(--g-border);
  background: transparent; color: var(--g);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  text-decoration: none; letter-spacing: .06em; transition: all .2s;
}
.gt-btn-secondary:hover { background: var(--g-glow); }

/* ════════════════════════════════════════
   TRANG LIÊN HỆ (page-lien-he.php)
════════════════════════════════════════ */
.lh-wrap {
  padding-top: 100px; min-height: 80vh;
  background: var(--dark);
}
.lh-inner { max-width: 1100px; margin: 0 auto; padding: 60px 40px 100px; }
.lh-header { text-align: center; margin-bottom: 60px; }
.lh-badge {
  display: inline-block; padding: 5px 16px; border: 1px solid var(--g-border);
  border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--g); margin-bottom: 16px;
}
.lh-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; color: var(--text); margin-bottom: 12px; }
.lh-title em { color: var(--g); font-style: normal; }
.lh-desc { font-size: 15px; color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.lh-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }

/* Contact form */
.lh-form-card {
  background: rgba(212,175,55,.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 32px;
}
.lh-form-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 24px; }
.lh-field { margin-bottom: 16px; }
.lh-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.lh-input,
.lh-select,
.lh-textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(212,175,55,.04); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font); font-size: 14px;
  transition: border-color .2s; outline: none;
}
.lh-input:focus, .lh-select:focus, .lh-textarea:focus { border-color: var(--g-border); }
.lh-input::placeholder, .lh-textarea::placeholder { color: var(--muted); }
.lh-select option { background: var(--dark2); }
.lh-textarea { resize: vertical; min-height: 120px; }
.lh-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lh-btn-submit {
  width: 100%; padding: 14px; background: var(--g); color: var(--dark);
  border: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 800;
  font-family: var(--font); letter-spacing: .06em; cursor: pointer; transition: all .2s;
  margin-top: 8px;
}
.lh-btn-submit:hover { background: #E8C547; transform: translateY(-1px); }
.lh-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Info panel */
.lh-info-col { display: flex; flex-direction: column; gap: 16px; }
.lh-info-card {
  background: rgba(212,175,55,.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 22px; transition: border-color .2s;
}
.lh-info-card:hover { border-color: var(--g-border); }
.lh-info-icon { font-size: 22px; margin-bottom: 8px; }
.lh-info-label { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--g); margin-bottom: 6px; }
.lh-info-value { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; }
.lh-info-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.lh-zalo-card {
  background: linear-gradient(135deg, rgba(0,104,255,.08) 0%, rgba(0,104,255,.02) 100%);
  border: 1px solid rgba(0,104,255,.2); border-radius: var(--r);
  padding: 24px 22px; text-align: center;
}
.lh-zalo-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.lh-zalo-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.lh-btn-zalo {
  display: inline-block; padding: 12px 28px; background: #0068FF;
  color: #fff; border-radius: var(--r-sm); font-size: 13px; font-weight: 800;
  text-decoration: none; transition: all .2s;
}
.lh-btn-zalo:hover { background: #0055cc; }

/* Blog archive enhanced */
.blog-archive-wrap {
  padding-top: 100px; background: var(--dark); min-height: 80vh;
}
.blog-archive-inner {
  max-width: 1160px; margin: 0 auto; padding: 48px 40px 100px;
}
.blog-archive-header { margin-bottom: 40px; }
.blog-archive-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--text);
  margin-bottom: 8px; line-height: 1.1;
}
.blog-archive-sub { font-size: 14px; color: var(--muted); }
.blog-archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 48px;
}
.blog-card-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.blog-card-featured:hover { border-color: var(--g-border); }
.blog-card-featured .blog-card-img { aspect-ratio: 4/3; height: 100%; }
.blog-card-featured .blog-card-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-featured .blog-card-title { font-size: 24px; }
.blog-cat-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  background: rgba(212,175,55,.1); border: 1px solid var(--g-border);
  color: var(--g); margin-bottom: 12px;
}

/* Blog single enhanced */
.blog-single-wrap {
  padding-top: 100px; background: var(--dark); min-height: 80vh;
}
.blog-single-inner {
  max-width: 800px; margin: 0 auto; padding: 48px 40px 100px;
}
.blog-single-header { margin-bottom: 32px; }
.blog-single-cats { margin-bottom: 12px; }
.blog-single-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.blog-single-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.blog-single-author { display: flex; align-items: center; gap: 8px; }
.blog-single-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--g); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--dark); flex-shrink: 0;
}
.blog-single-thumb {
  margin-bottom: 32px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border);
}
.blog-single-thumb img { width: 100%; display: block; }

/* Related posts */
.blog-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.blog-related-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 24px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-related-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden; transition: all .3s;
}
.blog-related-card:hover { border-color: var(--g-border); transform: translateY(-3px); }
.blog-related-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-related-card:hover .blog-related-img img { transform: scale(1.05); }
.blog-related-body { padding: 14px; }
.blog-related-ttl { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.blog-related-ttl a { color: inherit; text-decoration: none; }
.blog-related-ttl a:hover { color: var(--g); }
.blog-related-date { font-size: 11px; color: var(--muted); }

/* Share bar */
.blog-share { margin-top: 32px; padding: 20px; background: rgba(212,175,55,.04); border: 1px solid var(--border); border-radius: var(--r); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.blog-share-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.blog-share-btn {
  padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.blog-share-fb   { background: #1877F2; color: #fff; }
.blog-share-zalo { background: #0068FF; color: #fff; }
.blog-share-copy { background: rgba(212,175,55,.12); border: 1px solid var(--g-border); color: var(--g); cursor: pointer; border: 1px solid var(--g-border); }
.blog-share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1024px) {
  .gt-two-col { grid-template-columns: 1fr; gap: 40px; }
  .gt-products-grid { grid-template-columns: repeat(2, 1fr); }
  .gt-why-grid { grid-template-columns: repeat(2, 1fr); }
  .lh-grid { grid-template-columns: 1fr; }
  .blog-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-img { height: 240px; }
}
@media (max-width: 768px) {
  .gt-section-inner { padding: 0 20px; }
  .gt-products-grid { grid-template-columns: 1fr; }
  .gt-why-grid { grid-template-columns: 1fr; }
  .gt-hero-stats { gap: 0; }
  .gt-stat { padding: 10px 16px; }
  .gt-stat-sep { display: none; }
  .gt-cta-section { padding: 60px 20px; }
  .lh-inner { padding: 40px 20px 80px; }
  .lh-row-2 { grid-template-columns: 1fr; }
  .blog-archive-inner { padding: 32px 20px 80px; }
  .blog-archive-grid { grid-template-columns: 1fr; }
  .blog-single-inner { padding: 32px 20px 80px; }
  .blog-related-grid { grid-template-columns: 1fr 1fr; }
}
