:root {
  --theme: #b94a00;
  --theme-dark: #8f3900;
  --theme-deep: #5f2600;
  --theme-light: #fff4ec;
  --theme-soft: #ffe4d2;
  --theme-accent: #e66a18;
  --theme-hover: #a54100;
  --theme-border: rgba(185, 74, 0, .24);
  --header-bg: #6f2b00;
  --header-bg-2: #8b3700;
  --text-main: #442719;
  --text-muted: #73594c;
  --on-theme: #ffffff;
  --on-header: #fff8f3;
  --on-dark: #fff8f3;
  --white: #ffffff;
  --shadow-soft: 0 16px 42px rgba(185, 74, 0, .14);
  --surface-warm: #fffaf6;
  --shadow-button: 0 14px 28px rgba(0, 0, 0, .16);
  --header-line: rgba(255, 255, 255, .26);
  --header-soft: rgba(255, 255, 255, .09);
  --drawer-shadow: 18px 0 42px rgba(0, 0, 0, .22);
  --overlay-bg: rgba(66, 24, 0, .58);
  --section-fade: rgba(255, 255, 255, .50);
  --shadow-card: 0 12px 30px rgba(185, 74, 0, .08);
  --shadow-card-small: 0 10px 24px rgba(185, 74, 0, .07);
  --banner-control-bg: rgba(95, 38, 0, .76);
  --banner-control-border: rgba(255, 255, 255, .60);
  --banner-dot-bg: rgba(255, 255, 255, .58);
  --banner-dot-border: rgba(255, 255, 255, .80);
  --banner-control-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--theme-light); color: var(--text-main); font-family: Arial, Helvetica, sans-serif; line-height: 1.68; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; }
button { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 9999; background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-2) 100%); color: var(--on-header); box-shadow: var(--shadow-soft); border-bottom: 1px solid var(--theme-border); }
.header-inner { width: min(1280px, calc(100% - 80px)); min-height: 84px; margin: 0 auto; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.site-logo { display: flex; align-items: center; min-width: 0; }
.site-logo img { max-width: 190px; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.desktop-nav a { position: relative; padding: 29px 0 25px; color: var(--on-header); white-space: nowrap; font-size: 14px; font-weight: 700; opacity: .9; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 17px; height: 3px; border-radius: 3px; background: var(--theme-accent); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover, .desktop-nav a.is-active { opacity: 1; }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; }
.header-login, .main-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 12px; background: linear-gradient(180deg, var(--theme-accent) 0%, var(--theme) 48%, var(--theme-dark) 100%); color: var(--on-theme); font-weight: 800; box-shadow: var(--shadow-button); transition: transform .2s ease, filter .2s ease; }
.header-login:hover, .main-btn:hover { transform: translateY(-1px); filter: brightness(.96); }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--header-line); border-radius: 12px; background: var(--header-soft); color: var(--on-header); cursor: pointer; }
.mobile-menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; }
.mobile-drawer { position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; transform: translateX(-100%); transition: transform .28s ease; z-index: 10001; background: var(--header-bg); color: var(--on-header); padding: 22px; box-shadow: var(--drawer-shadow); }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; background: var(--overlay-bg); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; z-index: 10000; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--header-line); }
.drawer-logo img { max-width: 150px; max-height: 58px; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--header-line); border-radius: 12px; color: var(--on-header); background: var(--header-soft); font-size: 28px; cursor: pointer; }
.drawer-nav { display: grid; gap: 5px; padding-top: 18px; }
.drawer-nav a { padding: 9px 12px; border-radius: 10px; color: var(--on-header); }
.drawer-nav a:hover { background: var(--header-soft); }
.site-main { min-height: 65vh; }
.section { padding: 64px 0; }
.section.compact { padding: 38px 0; }
.section-inner, .hero-inner { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
.section-head { max-width: 850px; margin: 0 auto 34px; text-align: center; }
.eyebrow, .hero-badge { display: inline-flex; align-items: center; width: fit-content; padding: 7px 12px; border: 1px solid var(--theme-border); border-radius: 999px; background: var(--theme-soft); color: var(--theme-dark); font-weight: 800; font-size: 13px; letter-spacing: .03em; }
h1, h2, h3 { color: var(--theme-dark); line-height: 1.18; }
h1 { margin: 16px 0 22px; font-size: clamp(42px, 4.2vw, 64px); letter-spacing: -0.03em; }
h2 { margin: 0 0 16px; font-size: clamp(28px, 2.6vw, 40px); }
h3 { margin: 0 0 10px; font-size: 20px; }
p { margin: 0 0 16px; }
.hero-section { padding: 56px 0 46px; background: radial-gradient(circle at 14% 20%, var(--theme-soft) 0%, transparent 34%), linear-gradient(145deg, var(--theme-light) 0%, var(--surface-warm) 52%, var(--theme-soft) 150%); }
.hero-inner { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 56px; }
.hero-content p { max-width: 760px; font-size: 18px; line-height: 1.8; color: var(--text-main); }
.hero-tags, .category-pills, .related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tags span, .hero-tags a, .category-pills a, .related-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid var(--theme-border); border-radius: 999px; background: var(--theme-soft); color: var(--theme-dark); font-weight: 700; }
.category-pills a:hover, .related-links a:hover, .hero-tags a:hover { background: var(--theme); color: var(--on-theme); }
.hero-visual, .media-box, .app-visual, .card-media { display: flex; align-items: center; justify-content: center; overflow: visible; }
.hero-media-box { width: min(100%, 540px); min-height: 320px; max-height: 420px; padding: 34px; display: flex; align-items: center; justify-content: center; overflow: visible; border: 1px solid var(--theme-border); border-radius: 28px; background: linear-gradient(145deg, var(--white), var(--theme-soft)); box-shadow: var(--shadow-soft); }
.hero-media-box img { max-width: 68%; max-height: 340px; width: auto; height: auto; object-fit: contain; opacity: 1; }
.info-section { padding: 0 0 38px; background: linear-gradient(180deg, var(--section-fade), transparent); }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.info-card, .topic-card, .service-card, .faq-item, .feedback-card, .content-card { border: 1px solid var(--theme-border); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-card); }
.info-card, .topic-card, .service-card, .feedback-card, .content-card { padding: 24px; }
.info-card .number { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--theme-soft); color: var(--theme-dark); font-weight: 900; }
.category-section { padding: 18px 0 38px; }
.category-pills { justify-content: center; margin-top: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.topic-card { border-top: 4px solid var(--theme); }
.topic-card p, .service-card p, .content-card p, .feedback-card p { color: var(--text-muted); }
.topic-link { display: inline-flex; margin-top: 8px; color: var(--theme-dark); font-weight: 800; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.alt-section { background: var(--theme-soft); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); align-items: center; gap: 48px; }
.split-layout.reverse .media-box { order: -1; }
.media-box { min-height: 300px; padding: 28px; border: 1px solid var(--theme-border); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); }
.media-box img { max-width: 100%; max-height: 310px; width: auto; height: auto; object-fit: contain; }
.check-list { display: grid; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--theme); font-weight: 900; }
.content-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feedback-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feedback-card { font-size: 16px; }
.faq-list { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.faq-item { padding: 22px 24px; }
.faq-item h3 { font-size: 18px; }
.notice { padding: 26px; border: 1px solid var(--theme-border); border-left: 5px solid var(--theme); border-radius: 18px; background: var(--theme-soft); }
.notice-spaced { margin-top: 28px; }
.notice strong { color: var(--theme-dark); }
.inner-hero { padding: 46px 0; background: linear-gradient(145deg, var(--theme-light), var(--theme-soft)); }
.inner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr); gap: 44px; align-items: center; }
.inner-hero h1 { font-size: clamp(38px, 4vw, 58px); }
.inner-hero p { font-size: 17px; line-height: 1.82; }
.inner-media { min-height: 280px; padding: 24px; border: 1px solid var(--theme-border); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center; overflow: visible; }
.inner-media img { max-width: 100%; max-height: 300px; width: auto; height: auto; object-fit: contain; }
.article-copy { max-width: 980px; margin: 0 auto; }
.article-copy p { font-size: 17px; line-height: 1.82; }
.entity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.entity-card { padding: 22px; border: 1px solid var(--theme-border); border-radius: 18px; background: var(--white); }
.entity-card h3 { color: var(--theme-dark); }
.entity-card p { color: var(--text-muted); }
.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tip-card { padding: 22px; border-left: 4px solid var(--theme); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card-small); }
.site-footer { background: var(--theme-deep); color: var(--on-dark); padding: 52px 0 22px; }
.footer-inner { width: min(1280px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.site-footer h2 { color: var(--on-dark); font-size: 18px; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; color: var(--on-dark); opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-brand img { max-width: 180px; max-height: 70px; margin-bottom: 18px; object-fit: contain; }
.footer-inner p { color: var(--on-dark); opacity: .86; }
.footer-bottom { width: min(1280px, calc(100% - 80px)); margin: 34px auto 0; padding-top: 20px; border-top: 1px solid var(--header-line); display: flex; justify-content: space-between; gap: 24px; color: var(--on-dark); font-size: 13px; }
.footer-bottom p { margin: 0; }
@media (max-width: 1180px) {
  .header-inner { width: min(100% - 48px, 1280px); grid-template-columns: 160px minmax(0,1fr) auto; gap: 14px; }
  .desktop-nav { gap: 11px; }
  .desktop-nav a { font-size: 12.5px; }
  .site-logo img { max-width: 160px; }
  .topic-grid, .entity-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .header-inner { width: min(100% - 32px, 1280px); min-height: 72px; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; }
  .mobile-menu-toggle { display: block; }
  .desktop-nav { display: none; }
  .site-logo { justify-content: center; }
  .site-logo img { max-width: min(150px, 30vw); max-height: 54px; }
  .header-login { padding: 9px 14px; font-size: 13px; }
  .section-inner, .hero-inner, .footer-inner, .footer-bottom { width: min(100% - 32px, 1280px); }
  .hero-inner, .inner-hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 30px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero-media-box { min-height: 240px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split-layout, .split-layout.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split-layout.reverse .media-box { order: initial; }
  .content-wall, .service-grid, .feedback-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 640px) {
  .section { padding: 46px 0; }
  .hero-section { padding: 38px 0 36px; }
  h1 { font-size: clamp(34px, 10vw, 46px); }
  h2 { font-size: 28px; }
  .hero-content p, .inner-hero p, .article-copy p { font-size: 16px; }
  .info-grid, .topic-grid, .service-grid, .content-wall, .feedback-grid, .entity-grid, .tip-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-media-box, .inner-media, .media-box { min-height: 220px; padding: 22px; }
  .hero-media-box img { max-height: 250px; }
  .category-pills { justify-content: flex-start; }
  .footer-bottom { font-size: 12px; }
}
@media (max-width: 390px) {
  .header-inner { width: min(100% - 20px, 1280px); grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; }
  .site-logo img { max-width: min(120px, 36vw); max-height: 48px; }
  .header-actions .header-login { padding: 8px 12px; font-size: 12px; }
}


/* Trang chu: banner ngang theo bo chi dan thu nhat. */
.banner-section {
  padding: 34px 0 24px;
  background: radial-gradient(circle at 16% 12%, var(--theme-soft) 0%, transparent 36%), linear-gradient(180deg, var(--theme-light) 0%, var(--surface-warm) 100%);
}
.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 28px;
  background: var(--theme-soft);
  box-shadow: var(--shadow-soft);
}
.banner-slide { display: none; }
.banner-slide.active { display: flex; align-items: center; justify-content: center; }
.banner-slide img { display: block; width: 100%; height: auto; object-fit: contain; }
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid var(--banner-control-border);
  border-radius: 50%;
  background: var(--banner-control-bg);
  color: var(--on-dark);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--banner-control-shadow);
}
.banner-prev { left: 18px; }
.banner-next { right: 18px; }
.banner-arrow:hover { background: var(--theme-deep); }
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 15px;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}
.banner-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--banner-dot-border);
  border-radius: 50%;
  background: var(--banner-dot-bg);
  cursor: pointer;
}
.banner-dots button.active { background: var(--theme-accent); border-color: var(--theme-accent); }
.intro-section { padding: 26px 0 22px; background: linear-gradient(180deg, var(--surface-warm), var(--theme-light)); }
.intro-card {
  padding: 28px 32px;
  border: 1px solid var(--theme-border);
  border-left: 5px solid var(--theme);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.intro-card p { max-width: 1050px; margin-bottom: 18px; font-size: 17px; line-height: 1.8; }
.intro-card .category-pills { justify-content: flex-start; margin-top: 14px; }
.headline-section { padding: 42px 0 50px; background: linear-gradient(180deg, var(--theme-light), var(--white)); }
.headline-box { max-width: 1080px; margin: 0 auto; text-align: center; }
.headline-box h1 { max-width: 980px; margin-left: auto; margin-right: auto; color: var(--theme-dark); }
.headline-box p { max-width: 920px; margin: 0 auto; font-size: 18px; line-height: 1.82; }
@media (max-width: 767px) {
  .banner-section { padding-top: 20px; }
  .banner-carousel { border-radius: 18px; }
  .banner-arrow { width: 38px; height: 38px; font-size: 25px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
  .banner-dots { bottom: 9px; }
  .intro-card { padding: 22px; border-radius: 20px; }
  .intro-card p, .headline-box p { font-size: 16px; }
  .headline-section { padding: 34px 0 42px; }
}
