/*
Theme Name: 7BALL Việt Nam
Description: Independent Flatsome child theme for 7ballvnnet.com
Author: 7BALL Việt Nam
Template: flatsome
Version: 1.0.1
Text Domain: sevenball-vn
*/

:root {
  --sb-ink: #18251c;
  --sb-muted: #5d6b62;
  --sb-green: #2f9f4a;
  --sb-lime: #68d85e;
  --sb-deep: #07543b;
  --sb-gold: #d6a620;
  --sb-paper: #f7f9f8;
  --sb-white: #fff;
  --sb-line: #dce6df;
  --sb-shadow: 0 18px 50px rgba(13, 58, 34, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sb-paper); color: var(--sb-ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
body, button, input { font-family: inherit; }
a { color: var(--sb-deep); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.sb-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sb-section { padding: 82px 0; }
.sb-section-white { background: var(--sb-white); }
.sb-section-dark { color: #fff; background: linear-gradient(135deg, #043d2d, #087a4e); }
.sb-kicker { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #b9dfc0; border-radius: 6px; background: #edf8ef; color: #2a8842; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sb-section-dark .sb-kicker { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #caffcf; }
.sb-title { max-width: 780px; margin: 15px 0 18px; font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.sb-title-small { font-size: clamp(28px, 4vw, 42px); }
.sb-lead { max-width: 760px; margin: 0; color: var(--sb-muted); font-size: 18px; }
.sb-section-dark .sb-lead { color: #d6e9dc; }

.sb-site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(28,62,40,.09); background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(0,0,0,.05); backdrop-filter: blur(12px); }
.sb-header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.sb-brand { display: inline-flex; align-items: center; gap: 10px; color: #13723b; font-size: 30px; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.sb-brand img { width: 42px; height: 42px; border-radius: 10px; }
.sb-brand em { color: #0d2919; font-style: italic; }
.sb-nav { margin-left: auto; }
.sb-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sb-nav a { display: block; padding: 9px 12px; border-radius: 999px; color: #536058; font-size: 14px; font-weight: 700; }
.sb-nav a:hover, .sb-nav .current-menu-item > a { background: #e8f6eb; color: #277f3d; }
.sb-header-actions { display: flex; gap: 8px; }
.sb-mobile-menu { display: none; margin-left: auto; }
.sb-mobile-menu summary { width: 44px; height: 40px; display: grid; place-items: center; border: 1px solid var(--sb-line); border-radius: 8px; cursor: pointer; font-size: 22px; list-style: none; }
.sb-mobile-menu[open] nav { position: absolute; top: 72px; right: 20px; left: 20px; padding: 16px; border: 1px solid var(--sb-line); border-radius: 14px; background: #fff; box-shadow: var(--sb-shadow); }
.sb-mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.sb-mobile-menu a { display: block; padding: 10px 8px; border-bottom: 1px solid #edf2ee; font-weight: 700; }

.sb-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--sb-line); border-radius: 7px; background: #fff; color: #247b3a; font-size: 15px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(18,91,43,.08); }
.sb-btn-primary { border-color: transparent; background: linear-gradient(135deg, #2b9647, #68dd5f); color: #102315; box-shadow: 0 14px 28px rgba(47,159,74,.24); }
.sb-btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.sb-hero { padding: 68px 0 46px; overflow: hidden; }
.sb-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.sb-hero h1 { margin: 17px 0; color: #48ad55; font-size: clamp(44px, 6.2vw, 70px); line-height: .98; letter-spacing: -.055em; }
.sb-hero-copy > p { max-width: 650px; margin: 0; padding-left: 16px; border-left: 3px solid #9fd8ad; color: #5d6a62; font-size: 18px; }
.sb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.sb-pill { padding: 4px 9px; border: 1px solid #d8e1db; border-radius: 5px; background: #fff; color: #26352b; font-size: 12px; font-weight: 750; }
.sb-hero-card { overflow: hidden; border: 1px solid var(--sb-line); border-radius: 26px; background: #fff; box-shadow: var(--sb-shadow); }
.sb-hero-card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.sb-hero-meta { padding: 18px 20px 21px; }
.sb-hero-meta-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; color: #65736a; font-size: 13px; }
.sb-badge { padding: 4px 9px; border-radius: 6px; background: #2a8f40; color: #fff; font-weight: 800; }
.sb-feature-lines { display: grid; gap: 9px; }
.sb-feature-lines span { padding: 13px 15px; border: 1px solid #dce7df; border-radius: 13px; background: #f4f8f5; font-weight: 800; }

.sb-toc { position: relative; border-block: 1px solid #e3ebe5; background: rgba(255,255,255,.75); }
.sb-toc-inner { min-height: 64px; display: flex; align-items: center; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.sb-toc strong { color: #2d8f43; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sb-toc a { color: #7b8c80; font-size: 13px; }

.sb-grid { display: grid; gap: 20px; margin-top: 36px; }
.sb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-card { padding: 26px; border: 1px solid var(--sb-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(17,65,37,.06); }
.sb-card h3 { margin: 13px 0 7px; font-size: 20px; line-height: 1.25; }
.sb-card p { margin: 0; color: var(--sb-muted); }
.sb-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #e9f8ed; color: #2d9144; font-size: 22px; font-weight: 900; }

.sb-app-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 58px; align-items: center; }
.sb-app-image { overflow: hidden; border-radius: 28px; box-shadow: var(--sb-shadow); }
.sb-app-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sb-steps { display: grid; gap: 13px; margin: 28px 0; }
.sb-step { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.sb-step span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #2f9f4a; color: #fff; font-weight: 900; }
.sb-step p { margin: 4px 0 0; color: var(--sb-muted); }

.sb-category-card { position: relative; min-height: 360px; overflow: hidden; display: flex; align-items: end; border-radius: 22px; box-shadow: var(--sb-shadow); }
.sb-category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sb-category-card:hover img { transform: scale(1.035); }
.sb-category-card:after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,29,17,.9)); }
.sb-category-card div { position: relative; z-index: 1; width: 100%; padding: 26px; color: #fff; }
.sb-category-card h3 { margin: 0 0 4px; font-size: 23px; }
.sb-category-card p { margin: 0; color: #d8eee0; }

.sb-info-table { width: 100%; margin-top: 30px; border-collapse: collapse; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--sb-shadow); }
.sb-info-table th, .sb-info-table td { padding: 18px 20px; border-bottom: 1px solid var(--sb-line); text-align: left; vertical-align: top; }
.sb-info-table th { width: 190px; color: #267f3c; }
.sb-number-card { position: relative; padding-top: 58px; }
.sb-number-card > span { position: absolute; top: 18px; left: 22px; color: #d7e5da; font-size: 52px; font-weight: 900; line-height: 1; }
.sb-number-card h3, .sb-number-card p { position: relative; }

.sb-faq { display: grid; gap: 12px; margin-top: 34px; }
.sb-faq details { border: 1px solid var(--sb-line); border-radius: 14px; background: #fff; }
.sb-faq summary { padding: 18px 22px; cursor: pointer; font-weight: 800; }
.sb-faq p { margin: 0; padding: 0 22px 20px; color: var(--sb-muted); }
.sb-note { margin-top: 32px; padding: 22px 25px; border-left: 4px solid var(--sb-gold); border-radius: 12px; background: #fff9e7; color: #5f5124; }

.sb-page-main { min-height: 60vh; padding: 72px 0; }
.sb-page-article { max-width: 850px; margin: 0 auto; padding: 42px; border: 1px solid var(--sb-line); border-radius: 22px; background: #fff; box-shadow: var(--sb-shadow); }
.sb-page-article h1 { margin-top: 0; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; }
.sb-page-article h2 { margin-top: 38px; color: #247b3a; }
.sb-page-article p, .sb-page-article li { color: #536158; }

.sb-footer { padding: 54px 0 100px; background: #062f23; color: #dbeadf; }
.sb-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.sb-footer h3 { margin: 0 0 12px; color: #fff; }
.sb-footer p { color: #bcd2c3; }
.sb-footer a { color: #d9efdf; }
.sb-footer ul { margin: 0; padding: 0; list-style: none; }
.sb-footer li { margin: 7px 0; }
.sb-copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9db7a6; font-size: 13px; }
.sb-bottom-nav { display: none; }

@media (max-width: 980px) {
  .sb-header-inner { gap: 12px; }
  .sb-nav { display: none; }
  .sb-header-actions { order: 3; display: flex; margin-left: 0; }
  .sb-header-actions .sb-btn { display: none; }
  .sb-header-actions .sb-btn-primary { min-height: 40px; display: inline-flex; padding: 0 12px; font-size: 12px; white-space: nowrap; }
  .sb-mobile-menu { order: 2; display: block; margin-left: auto; }
  .sb-hero-grid, .sb-app-grid { grid-template-columns: 1fr; }
  .sb-hero-card { max-width: 720px; }
  .sb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sb-shell { width: min(100% - 24px, 1180px); }
  .sb-section { padding: 58px 0; }
  .sb-header-inner { min-height: 66px; gap: 8px; }
  .sb-brand { font-size: 25px; }
  .sb-brand img { width: 38px; height: 38px; }
  .sb-header-actions .sb-btn-primary { padding: 0 10px; font-size: 11px; }
  .sb-mobile-menu[open] nav { top: 66px; }
  .sb-hero { padding-top: 48px; }
  .sb-hero h1 { font-size: 42px; }
  .sb-hero-copy > p { font-size: 17px; }
  .sb-grid-4 { grid-template-columns: 1fr; }
  .sb-category-card { min-height: 310px; }
  .sb-info-table, .sb-info-table tbody, .sb-info-table tr, .sb-info-table th, .sb-info-table td { display: block; width: 100%; }
  .sb-info-table th { padding-bottom: 3px; }
  .sb-info-table td { padding-top: 3px; }
  .sb-page-article { padding: 28px 22px; }
  .sb-footer-grid { grid-template-columns: 1fr; }
  .sb-bottom-nav { position: fixed; z-index: 110; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dce7df; background: rgba(255,255,255,.97); box-shadow: 0 -8px 25px rgba(0,0,0,.08); }
  .sb-bottom-nav a { min-height: 64px; display: grid; place-items: center; color: #2e8c43; font-size: 11px; font-weight: 800; }
}
