/*
Theme Name: S5 VGP – Ban Quan Tri
Theme URI: https://s5vgp.com
Author: Ban Quan Tri S5 Vinhomes Grand Park
Author URI: https://s5vgp.com
Description: Theme tùy chỉnh cho website Ban Quản Trị S5 – Vinhomes Grand Park. Giao diện hiện đại, thân thiện mobile, tối ưu truyền tải thông tin đến cư dân.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: s5vgp
Tags: community, news, vietnamese, residential
*/

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #1a7a4a;
  --green-d: #135c38;
  --green-l: #e8f5ee;
  --gold:    #c9a84c;
  --dark:    #1a1f2e;
  --gray:    #6b7280;
  --light:   #f8faf9;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ─────────────────────────────────────────
   TOPBAR
───────────────────────────────────────── */
.topbar {
  background: var(--green-d);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px; margin: auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links .sep { opacity: .4; }

/* ─────────────────────────────────────────
   NOTICE BANNER
───────────────────────────────────────── */
.notice-banner {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  padding: 10px 24px;
}
.notice-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; gap: 12px;
}
.notice-badge {
  background: #ea580c; color: white;
  font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  white-space: nowrap; text-transform: uppercase;
  flex-shrink: 0;
}
.notice-inner p { font-size: .85rem; color: #9a3412; }
.notice-inner a { color: #ea580c; font-weight: 600; }
.notice-inner a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1200px; margin: auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
  gap: 16px; overflow: visible;
}
.site-logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 48px; height: 48px; background: var(--green);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--white);
  letter-spacing: -1px; flex-shrink: 0;
}
.logo-text strong { display: block; font-size: 1rem; font-weight: 700; color: var(--dark); }
.logo-text span   { font-size: .75rem; color: var(--gray); }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.site-nav ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0; flex-wrap: nowrap;
}
.site-nav ul li { position: relative; white-space: nowrap; }

/* Gạch chân animate bên dưới mỗi link */
.site-nav ul li:not(.menu-cta)::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px; border-radius: 2px;
  background: var(--green);
  transition: left .25s ease, right .25s ease;
}
.site-nav ul li:not(.menu-cta):hover::after,
.site-nav .current-menu-item:not(.menu-cta)::after,
.site-nav .current_page_item:not(.menu-cta)::after {
  left: 10px; right: 10px;
}

.site-nav a {
  padding: 7px 10px; border-radius: 8px;
  font-size: .82rem; font-weight: 500; color: var(--gray);
  transition: color .2s, transform .2s; white-space: nowrap;
  display: inline-block;
}
.site-nav ul li:not(.menu-cta) a:hover,
.site-nav .current-menu-item:not(.menu-cta) > a,
.site-nav .current_page_item:not(.menu-cta) > a {
  color: var(--green);
  transform: translateY(-1px);
}

/* ── DROPDOWN SUBMENU ── */
.site-nav ul li:not(.menu-cta) > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 999;
  /* Nếu item nằm gần cạnh phải thì mở về bên trái */
}
.site-nav ul li:not(.menu-cta):hover > ul.sub-menu,
.site-nav ul li:not(.menu-cta):focus-within > ul.sub-menu {
  display: block;
  animation: dropIn .18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-nav ul.sub-menu li { display: block; white-space: nowrap; }
.site-nav ul.sub-menu li::after { display: none !important; }
.site-nav ul.sub-menu a {
  display: block;
  padding: 8px 12px !important;
  border-radius: 7px;
  font-size: .83rem;
  color: var(--dark) !important;
  transform: none !important;
  transition: background .15s, color .15s !important;
}
.site-nav ul.sub-menu a:hover {
  background: var(--green-l) !important;
  color: var(--green) !important;
  transform: none !important;
}
/* Ngăn tràn ra ngoài viewport ở menu gần cạnh phải */
.site-nav ul li:last-child > ul.sub-menu,
.site-nav ul li:nth-last-child(2) > ul.sub-menu {
  left: auto;
  right: 0;
}

/* Nút CTA "Liên Hệ" – hiệu ứng glow + scale */
.site-nav .menu-cta > a {
  margin-left: 4px;
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  transition: all .25s !important;
  box-shadow: 0 2px 8px rgba(26,122,74,.25) !important;
}
.site-nav .menu-cta > a:hover {
  background: var(--green-d) !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 20px rgba(26,122,74,.4) !important;
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: all .3s;
}
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid #e5e7eb;
  padding: 12px 24px 16px;
}
.mobile-nav a {
  display: block; padding: 10px 0;
  font-size: .95rem; font-weight: 500; color: var(--dark);
  border-bottom: 1px solid #f3f4f6;
}
.mobile-nav a:last-child { border: none; }
.mobile-nav.open { display: flex; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-d) 0%, #1a7a4a 50%, #22a86a 100%);
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .12;
}
.hero-inner {
  max-width: 1200px; margin: auto; position: relative;
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 20px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: 2.6rem; font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: .9rem; font-weight: 600; transition: all .2s;
}
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: #f0fdf4; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-d); transform: translateY(-1px); }

.hero-stat-card {
  background: rgba(255,255,255,.12); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 28px;
}
.hero-stat-card h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--green-l); color: var(--green);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 12px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p { color: var(--gray); font-size: 1rem; max-width: 560px; margin: auto; }
.divider { width: 48px; height: 3px; background: var(--green); border-radius: 2px; margin: 16px auto 0; }
.bg-light { background: var(--light); }

/* ─────────────────────────────────────────
   QUICK ACCESS
───────────────────────────────────────── */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qa-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow); transition: all .25s;
  border-bottom: 3px solid transparent;
  display: block;
}
.qa-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--green);
  box-shadow: 0 8px 32px rgba(26,122,74,.12);
}
.qa-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-l); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 14px;
}
.qa-card h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.qa-card p  { font-size: .8rem; color: var(--gray); line-height: 1.5; }

/* ─────────────────────────────────────────
   NEWS
───────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.news-featured {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: block;
  transition: transform .2s, box-shadow .2s;
}
.news-featured:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.news-featured-img {
  width: 100%; height: 260px; overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, #22a86a 100%);
}
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-featured:hover .news-featured-img img { transform: scale(1.04); }
.news-featured-body { padding: 24px; }
.post-tag { font-size: .72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.news-featured-body h2,
.news-featured-body h3 {
  font-size: 1.25rem; font-weight: 700;
  margin: 8px 0 10px; color: var(--dark); line-height: 1.4;
}
.news-featured-body .excerpt { color: var(--gray); font-size: .9rem; }
.news-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: .8rem; color: var(--gray); }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: flex; gap: 14px; padding: 14px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; align-items: flex-start;
}
.news-item:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.news-item-thumb {
  width: 80px; height: 72px; border-radius: 8px; flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, #22a86a 100%);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.news-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3,
.news-item h4 { font-size: .875rem; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 5px; }
.news-item-date { font-size: .75rem; color: var(--gray); }
.news-view-all {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; border-radius: var(--radius);
  border: 1.5px dashed #e5e7eb;
  color: var(--green); font-weight: 600; font-size: .875rem;
  transition: all .2s;
}
.news-view-all:hover { border-color: var(--green); background: var(--green-l); }

/* Archive / Blog */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; display: block;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.post-card-img { height: 200px; overflow: hidden; background: var(--green-l); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px; }
.post-card-body h2 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 8px 0 10px; line-height: 1.4; }
.post-card-body .excerpt { font-size: .85rem; color: var(--gray); }
.post-card-meta { font-size: .78rem; color: var(--gray); margin-top: 12px; }

/* Single post */
.post-content-wrap { max-width: 820px; margin: 48px auto; padding: 0 24px; }
.post-header { margin-bottom: 32px; }
.post-header h1 { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1.3; margin: 12px 0; }
.post-header .post-meta { font-size: .85rem; color: var(--gray); display: flex; gap: 16px; flex-wrap: wrap; }
.post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.post-thumbnail img { width: 100%; }
.post-body { font-size: 1rem; line-height: 1.8; color: #374151; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; color: var(--dark); }
.post-body h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; color: var(--dark); }
.post-body p  { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 24px; }
.post-body li { margin-bottom: 6px; }
.post-body a  { color: var(--green); text-decoration: underline; }
.post-body blockquote {
  border-left: 4px solid var(--green); padding: 16px 20px;
  background: var(--green-l); border-radius: 0 8px 8px 0;
  margin: 24px 0; font-style: italic; color: var(--green-d);
}
.post-body img { border-radius: var(--radius); margin: 20px auto; }

/* ─────────────────────────────────────────
   ANNOUNCEMENTS
───────────────────────────────────────── */
.announce-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.announce-card {
  border-radius: var(--radius); padding: 24px;
  border-left: 4px solid var(--green);
  background: var(--white); box-shadow: var(--shadow);
}
.announce-card.warning { border-left-color: #f59e0b; }
.announce-card.info    { border-left-color: #3b82f6; }
.announce-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.announce-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.announce-dot.warning { background: #f59e0b; }
.announce-dot.info    { background: #3b82f6; }
.announce-card h4 { font-size: .9rem; font-weight: 700; color: var(--dark); }
.announce-card p  { font-size: .825rem; color: var(--gray); margin-bottom: 12px; line-height: 1.6; }
.announce-date { font-size: .75rem; color: var(--gray); font-weight: 500; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-section { background: var(--green-d); padding: 72px 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 1200px; margin: auto; }
.contact-section h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.contact-subtitle { color: rgba(255,255,255,.7); font-size: .95rem; margin-bottom: 32px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h5 { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.contact-item p  { font-size: .9rem; color: var(--white); }
.contact-item a  { color: var(--gold); }
.contact-item a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 32px;
}
.contact-form-wrap h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.wpcf7 .form-group,
.form-group { margin-bottom: 16px; }
.wpcf7 label,
.form-group label {
  display: block; font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.6); margin-bottom: 6px;
  letter-spacing: .04em; text-transform: uppercase;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select,
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: .9rem; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.form-group select option,
.form-group select optgroup {
  background: #fff !important;
  color: #1a1f2e !important;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: rgba(255,255,255,.35); }
.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: rgba(255,255,255,.4); }
.wpcf7 textarea { min-height: 100px; resize: vertical; }
.wpcf7 input[type="submit"],
.btn-submit {
  width: 100%; padding: 13px; border-radius: 10px;
  background: var(--gold); color: var(--dark); font-weight: 700;
  font-size: .95rem; border: none; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.wpcf7 input[type="submit"]:hover,
.btn-submit:hover { background: #b8973f; transform: translateY(-1px); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer { background: var(--dark); padding: 48px 24px 24px; }
.footer-top {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .875rem; line-height: 1.7; max-width: 300px; }
.footer-logo-text strong { color: var(--white) !important; }
.footer-logo-text span   { color: rgba(255,255,255,.45); }
.footer-col h5 {
  color: var(--white); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a,
.footer-col li a {
  display: block; color: rgba(255,255,255,.5);
  font-size: .875rem; margin-bottom: 8px; transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ─────────────────────────────────────────
   WIDGETS / SIDEBAR
───────────────────────────────────────── */
.widget { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.widget-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green-l); }
.widget ul li { border-bottom: 1px solid #f3f4f6; }
.widget ul li a { display: block; padding: 8px 0; font-size: .875rem; color: var(--gray); transition: color .2s; }
.widget ul li a:hover { color: var(--green); }
.widget ul li:last-child { border: none; }

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: .875rem; font-weight: 600; transition: all .2s;
  border: 1.5px solid #e5e7eb; color: var(--gray);
}
.pagination .current, .pagination a:hover {
  background: var(--green); color: var(--white); border-color: var(--green);
}

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.breadcrumb {
  background: var(--light); padding: 12px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.breadcrumb-inner { max-width: 1200px; margin: auto; font-size: .82rem; color: var(--gray); }
.breadcrumb-inner a { color: var(--green); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .sep { margin: 0 6px; opacity: .4; }

/* ─────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: none; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 16px rgba(26,122,74,.4);
  transition: all .2s; cursor: pointer; border: none; z-index: 999;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--green-d); transform: translateY(-2px); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stat-card { display: none; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* ── Header mobile ── */
  .header-inner { height: 56px; padding: 0 16px; }
  .logo-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 8px; }
  .logo-text strong { font-size: .82rem; }
  .logo-text span { display: none; }   /* ẩn tagline "Nơi cuộc sống thăng hoa" */
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .topbar-links { display: none; }

  /* ── Mobile menu ── */
  .mobile-nav { padding: 8px 16px 16px; }
  .mobile-nav a {
    padding: 12px 14px; border-radius: 8px;
    font-size: .92rem; border-bottom: 1px solid #f3f4f6;
    transition: background .15s, color .15s;
  }
  .mobile-nav a:hover { background: var(--green-l); color: var(--green); }
  /* Nút Liên Hệ trong mobile menu */
  .mobile-nav .menu-cta a,
  .mobile-nav a[href*="lien-he"],
  .mobile-nav li:last-child a {
    margin-top: 8px;
    background: var(--green) !important;
    color: #fff !important;
    text-align: center;
    border-radius: 8px !important;
    border-bottom: none !important;
    font-weight: 600;
  }

  /* ── Hero badge ── */
  .hero-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: 90% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .68rem;
    padding: 5px 12px;
  }

  /* ── Hero ── */
  .hero { padding: 52px 18px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-desc { font-size: .95rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; width: 100%; }

  /* ── Layout ── */
  .section { padding: 44px 18px; }
  .section-header h2 { font-size: 1.55rem; }
  .news-grid { grid-template-columns: 1fr; }
  .announce-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .quick-contact-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 44px 16px; }
  .hero h1 { font-size: 1.6rem; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.4rem; }
  .btn { padding: 11px 18px; font-size: .85rem; }
}
