/* =========================================================
   SKILLUP CENTER SPRINT 2 UI
   ========================================================= */

:root {
  --s2-blue: #2F3E93;
  --s2-navy: #10194A;
  --s2-coral: #F56B6D;
  --s2-teal: #55C7C4;
  --s2-bg: #F6F8FF;
  --s2-ink: #172052;
  --s2-muted: #667085;
  --s2-line: rgba(47, 62, 147, .13);
  --s2-shadow: 0 24px 80px rgba(23, 32, 82, .13);
}

body {
  background:
    radial-gradient(circle at 5% 10%, rgba(85, 199, 196, .18), transparent 26rem),
    radial-gradient(circle at 95% 5%, rgba(245, 107, 109, .15), transparent 26rem),
    linear-gradient(180deg, #FAFBFF 0%, #F6F8FF 52%, #FFFFFF 100%);
}

.header {
  box-shadow: 0 8px 30px rgba(16, 25, 74, .05);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand span {
  line-height: 1.05;
}

.brand small {
  color: #606A8B;
}

.s2-hero {
  padding: 78px 0 52px;
  position: relative;
  overflow: hidden;
}

.s2-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: center;
}

.s2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(85, 199, 196, .15);
  color: var(--s2-blue);
  border: 1px solid rgba(85, 199, 196, .25);
  font-weight: 900;
  margin-bottom: 18px;
}

.s2-title {
  font-family: "Baloo 2", "Nunito Sans", sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -1px;
  color: var(--s2-navy);
  margin: 0;
}

.s2-title span {
  color: var(--s2-coral);
}

.s2-lead {
  color: var(--s2-muted);
  font-size: 19px;
  line-height: 1.75;
  max-width: 760px;
}

.s2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.s2-hero-card {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--s2-line);
  border-radius: 38px;
  padding: 20px;
  box-shadow: var(--s2-shadow);
  backdrop-filter: blur(18px);
}

.s2-logo-box {
  background: linear-gradient(135deg, #243397, #111B64);
  border-radius: 32px;
  padding: 32px;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.s2-logo-box img {
  width: min(360px, 100%);
  border-radius: 28px;
}

.s2-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.s2-mini-stat {
  background: #fff;
  border: 1px solid var(--s2-line);
  border-radius: 22px;
  padding: 16px;
  text-align: center;
}

.s2-mini-stat strong {
  color: var(--s2-blue);
  font-size: 26px;
  display: block;
}

.s2-section {
  padding: 74px 0;
}

.s2-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.s2-section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  color: var(--s2-navy);
}

.s2-section-head p {
  color: var(--s2-muted);
  max-width: 680px;
  line-height: 1.75;
}

.s2-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--s2-line);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 18px 55px rgba(23, 32, 82, .08);
}

.s2-course-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  transition: .25s ease;
}

.s2-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--s2-shadow);
}

.s2-course-card:after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -32px;
  bottom: -32px;
  border-radius: 50%;
  background: rgba(245, 107, 109, .12);
}

.s2-course-icon {
  width: 66px;
  height: 66px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, #FFF0F0, #EFFFFE);
  margin-bottom: 16px;
}

.s2-course-card h3,
.s2-card h3 {
  color: var(--s2-blue);
}

.s2-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.s2-chip {
  border: 1px solid var(--s2-line);
  background: white;
  border-radius: 999px;
  color: var(--s2-blue);
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
}

.s2-chip.active {
  background: var(--s2-blue);
  color: white;
}

.s2-filter-panel {
  margin-bottom: 28px;
}

.s2-article-card {
  overflow: hidden;
  padding: 0;
}

.s2-article-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #2F3E93, #172052);
  display: block;
}

.s2-article-body {
  padding: 22px;
}

.s2-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--s2-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.s2-featured-news {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  margin-bottom: 26px;
}

.s2-featured-news .s2-article-card:first-child .s2-article-img {
  aspect-ratio: 16 / 8;
}

.s2-frame-shell {
  background: white;
  border: 1px solid var(--s2-line);
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--s2-shadow);
}

.s2-frame-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 6px 4px 16px;
}

.s2-newsletter-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  display: block;
}

.s2-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 25, 74, .72);
  backdrop-filter: blur(8px);
  padding: 18px;
}

.s2-modal.open {
  display: grid;
  place-items: center;
}

.s2-modal-card {
  width: min(1180px, 100%);
  height: min(92vh, 920px);
  background: white;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.s2-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--s2-line);
}

.s2-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.s2-toolbar {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr .7fr auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.s2-input,
.s2-select,
.s2-textarea {
  width: 100%;
  border: 1px solid var(--s2-line);
  border-radius: 16px;
  padding: 12px 13px;
  background: white;
  outline: none;
}

.s2-textarea {
  min-height: 96px;
  resize: vertical;
}

.s2-input:focus,
.s2-select:focus,
.s2-textarea:focus {
  border-color: var(--s2-teal);
  box-shadow: 0 0 0 4px rgba(85,199,196,.16);
}

.s2-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 22px 0;
}

.s2-chart-row {
  display: grid;
  grid-template-columns: 150px 1fr 44px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.s2-bar {
  height: 12px;
  border-radius: 999px;
  background: #EEF2FF;
  overflow: hidden;
}

.s2-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--s2-coral), var(--s2-teal));
}

.s2-admin-grid {
  display: grid;
  gap: 20px;
}

.s2-details {
  border: 1px solid var(--s2-line);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
}

.s2-details summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--s2-blue);
  padding: 8px;
}

.s2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.s2-full {
  grid-column: 1 / -1;
}

.s2-notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ECFFF9;
  color: #047857;
  border: 1px solid rgba(85,199,196,.28);
  font-weight: 800;
}

.s2-notice.warn {
  background: #FFF7ED;
  color: #9A3412;
  border-color: #FED7AA;
}

.s2-empty {
  padding: 28px;
  text-align: center;
  color: var(--s2-muted);
}

@media (max-width: 980px) {
  .s2-hero-grid,
  .s2-featured-news,
  .s2-chart-grid,
  .s2-form-grid {
    grid-template-columns: 1fr;
  }

  .s2-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .s2-toolbar {
    grid-template-columns: 1fr;
  }

  .s2-mini-stats {
    grid-template-columns: 1fr;
  }

  .s2-newsletter-frame {
    min-height: 620px;
  }
}

/* ===== BOOT SCREEN PRO ===== */
.boot-screen{
  position:fixed; inset:0; z-index:9999;
  display:grid; place-items:center;
  background:
    radial-gradient(circle at 20% 20%, rgba(85,199,196,.25), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(245,107,109,.22), transparent 40%),
    linear-gradient(180deg,#FAFBFF,#F6F8FF);
  transition:opacity .5s ease, visibility .5s ease;
}
.boot-screen.hide{ opacity:0; visibility:hidden; }
.boot-inner{ text-align:center; animation:bootPop .6s ease both; }
.boot-inner img{
  width:104px; height:104px; object-fit:contain;
  border-radius:50%; box-shadow:0 20px 60px rgba(47,62,147,.28);
  animation:bootFloat 2.4s ease-in-out infinite; background:#fff;
}
.boot-title{
  margin-top:16px; font-family:"Baloo 2",sans-serif;
  font-weight:800; font-size:26px; color:var(--s2-blue); letter-spacing:.5px;
}
.boot-spinner{
  width:34px; height:34px; margin:18px auto 10px;
  border:3px solid rgba(47,62,147,.15); border-top-color:var(--s2-coral);
  border-radius:50%; animation:bootSpin .8s linear infinite;
}
.boot-screen p{ color:var(--s2-muted); font-weight:700; margin:0; }
@keyframes bootSpin{ to{ transform:rotate(360deg); } }
@keyframes bootFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
@keyframes bootPop{ from{ opacity:0; transform:scale(.9); } to{ opacity:1; transform:scale(1); } }

/* ===== NEWSLETTER GALLERY + READER ===== */
.s2-filter-top{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.s2-view-switch{ display:flex; gap:6px; background:#EEF2FF; padding:4px; border-radius:14px; }
.s2-view-btn{ border:0; background:transparent; padding:8px 14px; border-radius:10px; font-weight:800; color:var(--s2-blue); cursor:pointer; }
.s2-view-btn.active{ background:#fff; box-shadow:0 4px 12px rgba(47,62,147,.15); }

.s2-hover-title{ transition:color .2s ease; }
a:hover .s2-hover-title{ color:var(--s2-coral); }

/* Gallery masonry */
.s2-masonry{ columns:3 300px; column-gap:20px; margin-top:22px; }
.s2-mason-card{ display:block; break-inside:avoid; margin-bottom:20px; background:#fff; border:1px solid var(--s2-line); border-radius:24px; overflow:hidden; box-shadow:0 10px 30px rgba(23,32,82,.07); transition:transform .25s ease, box-shadow .25s ease; }
.s2-mason-card:hover{ transform:translateY(-6px); box-shadow:var(--s2-shadow); }
.s2-mason-card img{ width:100%; display:block; }
.s2-mason-body{ padding:16px 18px; }
.s2-mason-body h3{ margin:6px 0; font-size:20px; color:var(--s2-navy); }
.s2-mason-body p{ color:var(--s2-muted); font-size:14px; line-height:1.6; }

/* Grid hàng ngang */
.s2-news-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; margin-top:22px; }
.s2-grid-card{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--s2-line); border-radius:24px; overflow:hidden; box-shadow:0 10px 30px rgba(23,32,82,.07); transition:transform .25s ease, box-shadow .25s ease; }
.s2-grid-card:hover{ transform:translateY(-6px); box-shadow:var(--s2-shadow); }
.s2-grid-card img{ width:100%; height:180px; object-fit:cover; }
.s2-grid-body{ padding:16px 18px; }
.s2-grid-body h3{ margin:6px 0; font-size:19px; color:var(--s2-navy); }
.s2-grid-body p{ color:var(--s2-muted); font-size:14px; line-height:1.6; }
.s2-article-meta{ display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--s2-muted); }

/* Featured */
.s2-featured-card{ position:relative; display:block; border-radius:28px; overflow:hidden; min-height:320px; box-shadow:var(--s2-shadow); }
.s2-featured-card img{ width:100%; height:100%; min-height:320px; object-fit:cover; }
.s2-featured-overlay{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding:26px; color:#fff; background:linear-gradient(180deg, transparent 30%, rgba(16,25,74,.85)); }
.s2-featured-overlay h3{ color:#fff; font-size:28px; margin:8px 0; }
.s2-featured-overlay p{ color:rgba(255,255,255,.9); }
a.s2-featured-card:hover .s2-hover-title{ color:var(--s2-teal); }
.s2-featured-side{ display:flex; flex-direction:column; justify-content:center; }

/* Reader */
.s2-reader-wrap{ padding:28px 0 74px; }
.s2-reader-crumb{ display:flex; gap:8px; align-items:center; color:var(--s2-muted); font-weight:700; margin-bottom:16px; }
.s2-crumb-link{ color:var(--s2-blue); font-weight:800; }
.s2-reader-grid{ display:grid; grid-template-columns:1fr 320px; gap:22px; align-items:start; }
.s2-reader-main{ background:#fff; border:1px solid var(--s2-line); border-radius:24px; overflow:hidden; box-shadow:var(--s2-shadow); }
.s2-reader-bar{ display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--s2-line); background:#F8FAFF; }
.s2-reader-nav{ display:flex; gap:6px; }
.s2-rbtn{ width:38px; height:38px; border-radius:12px; border:1px solid var(--s2-line); background:#fff; color:var(--s2-blue); font-weight:900; cursor:pointer; transition:.2s; }
.s2-rbtn:hover:not([disabled]){ background:var(--s2-blue); color:#fff; }
.s2-rbtn[disabled]{ opacity:.35; cursor:not-allowed; }
.s2-reader-title{ flex:1; color:var(--s2-navy); font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.s2-reader-frame-box{ background:#F6F8FF; }
.s2-reader-side{ position:sticky; top:92px; background:#fff; border:1px solid var(--s2-line); border-radius:24px; padding:18px; box-shadow:0 10px 30px rgba(23,32,82,.07); }
.s2-reader-side h3{ color:var(--s2-navy); margin:0 0 12px; }
.s2-side-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.s2-side-item{ display:flex; gap:12px; align-items:center; padding:8px; border-radius:16px; transition:background .2s; }
.s2-side-item:hover{ background:#F4F7FF; }
.s2-side-item img{ width:64px; height:64px; border-radius:14px; object-fit:cover; flex:none; }
.s2-side-cat{ display:block; font-size:11px; color:var(--s2-coral); font-weight:800; text-transform:uppercase; }
.s2-side-item strong{ font-size:14px; color:var(--s2-navy); line-height:1.35; }

@media (max-width: 980px){
  .s2-masonry{ columns:1; }
  .s2-reader-grid{ grid-template-columns:1fr; }
  .s2-reader-side{ position:static; }
}

/* ===== THƯ VIỆN ẢNH/VIDEO ===== */
.s2-gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:22px; }
.s2-gal-card{ background:#fff; border:1px solid var(--s2-line); border-radius:24px; overflow:hidden; box-shadow:0 10px 30px rgba(23,32,82,.07); transition:transform .25s ease, box-shadow .25s ease; }
.s2-gal-card:hover{ transform:translateY(-6px); box-shadow:var(--s2-shadow); }
.s2-gal-video{ position:relative; padding-top:56.25%; background:#000; }
.s2-gal-video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.s2-gal-img{ display:block; overflow:hidden; }
.s2-gal-img img{ width:100%; height:210px; object-fit:cover; display:block; transition:transform .4s ease; }
.s2-gal-card:hover .s2-gal-img img{ transform:scale(1.06); }
.s2-gal-body{ padding:16px 18px; }
.s2-gal-body h3{ margin:6px 0; font-size:19px; color:var(--s2-navy); }
.s2-gal-body p{ color:var(--s2-muted); font-size:14px; line-height:1.6; }

/* ===== FOOTER MAP ===== */
.s2-footer-map{ margin-top:28px; }
.s2-map-head{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  flex-wrap:wrap; margin-bottom:14px;
}
.s2-map-head strong{ display:block; color:#fff; font-size:17px; }
.s2-map-head span{ color:rgba(255,255,255,.75); font-size:14px; }
.s2-footer-map iframe{
  width:100%; height:300px; border:0; border-radius:24px;
  box-shadow:0 16px 44px rgba(0,0,0,.25);
}

/* ===== ẢNH BÌA HERO ===== */
.s2-hero-cover{
  width:100% !important; height:100% !important;
  min-height:300px; object-fit:cover !important;
  border-radius:28px;
}

/* ===== GRID DẠNG HÀNG NGANG ===== */
.s2-row-list{ display:flex; flex-direction:column; gap:16px; margin-top:22px; }
.s2-row-card{
  display:grid; grid-template-columns:200px 1fr; gap:20px; align-items:center;
  background:#fff; border:1px solid var(--s2-line); border-radius:22px; overflow:hidden;
  box-shadow:0 8px 26px rgba(23,32,82,.07); transition:transform .22s ease, box-shadow .22s ease;
}
.s2-row-card:hover{ transform:translateX(6px); box-shadow:var(--s2-shadow); }
.s2-row-thumb{ height:130px; }
.s2-row-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.s2-row-body{ padding:14px 20px 14px 0; }
.s2-row-body h3{ margin:6px 0; font-size:21px; color:var(--s2-navy); }
.s2-row-body p{ color:var(--s2-muted); font-size:14px; line-height:1.6; margin:0; }
@media (max-width:640px){
  .s2-row-card{ grid-template-columns:110px 1fr; gap:12px; }
  .s2-row-thumb{ height:100px; }
  .s2-row-body{ padding:12px 14px 12px 0; }
  .s2-row-body h3{ font-size:17px; }
}


/* ===== SLIDESHOW ẢNH BÌA HERO ===== */
.s2-hero-slideshow{ position:relative; overflow:hidden; min-height:300px; }
.s2-hero-slideshow .s2-hero-cover{
  position:absolute; inset:0; width:100% !important; height:100% !important;
  object-fit:cover !important; border-radius:28px;
  opacity:0; transition:opacity 1s ease;
}
.s2-hero-slideshow .s2-hero-cover.active{ opacity:1; }

/* ===== SOCIAL + COPYRIGHT ===== */
.s2-footer-map{ margin-bottom:40px; }
.s2-social{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.s2-social-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 16px; border-radius:999px; font-weight:800; font-size:14px; color:#fff;
  transition:transform .2s ease, opacity .2s ease;
}
.s2-social-btn:hover{ transform:translateY(-2px); opacity:.92; }
.s2-social-btn.fb{ background:#1877F2; }
.s2-social-btn.tt{ background:#111; }
.s2-copyright{
  margin-top:36px; padding:20px 16px 6px; text-align:center;
  color:rgba(255,255,255,.7); font-size:14px; border-top:1px solid rgba(255,255,255,.12);
}

/* ===== NÚT ĐÓNG CHAT (đã sửa che khuất) ===== */
#chatbox{ position:relative; }
.s2-chat-close{
  position:absolute; top:10px; right:10px; z-index:9999;
  width:34px; height:34px; border-radius:50%; border:0; cursor:pointer;
  background:#fff; color:var(--s2-navy); font-size:16px; font-weight:900;
  display:grid; place-items:center; line-height:1;
  box-shadow:0 4px 14px rgba(23,32,82,.25);
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.s2-chat-close:hover{ background:var(--s2-coral); color:#fff; transform:rotate(90deg); }

/* ===== HIỆU ỨNG ĐANG NHẬP CỦA CHATBOT ===== */
.msg.typing{ display:inline-flex; gap:5px; align-items:center; }
.msg.typing span{
  width:8px; height:8px; border-radius:50%; background:var(--s2-muted);
  display:inline-block; animation:typingDot 1.2s infinite ease-in-out;
}
.msg.typing span:nth-child(2){ animation-delay:.2s; }
.msg.typing span:nth-child(3){ animation-delay:.4s; }
@keyframes typingDot{
  0%,60%,100%{ transform:translateY(0); opacity:.4; }
  30%{ transform:translateY(-5px); opacity:1; }
}

/* ===== NÚT NỔI + KHUNG CHAT (bản chuyên nghiệp) ===== */
.float-actions{
  position:fixed; right:20px; bottom:24px; z-index:120;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.float-stack{
  display:flex; flex-direction:column; gap:12px; align-items:center;
  transition:opacity .3s ease, transform .3s ease, max-height .3s ease;
  overflow:hidden; max-height:300px;
}
.float-actions .call,
.float-actions .zalo,
.float-actions [data-chat-toggle]{
  width:56px; height:56px; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center; font-weight:800; font-size:13px;
  color:#fff; text-decoration:none; position:relative;
  box-shadow:0 8px 22px rgba(23,32,82,.28);
  transition:transform .2s ease, box-shadow .2s ease;
}
.float-actions .call{ background:linear-gradient(135deg,#F56B6D,#ff8b65); font-size:0; }
.float-actions .call::before{ content:"📞"; font-size:24px; }
.float-actions .zalo{ background:#0068FF; color:#fff; font-size:13px; font-weight:900; }
.float-actions [data-chat-toggle]{ background:linear-gradient(135deg,#2F3E93,#55C7C4); color:#fff; font-size:0; }
.float-actions [data-chat-toggle]::before{ content:"💬"; font-size:24px; }
.float-actions .call:hover,
.float-actions .zalo:hover,
.float-actions [data-chat-toggle]:hover{ transform:scale(1.1); box-shadow:0 12px 28px rgba(23,32,82,.35); }
.float-fold{
  width:40px; height:40px; border-radius:50%; border:0; cursor:pointer;
  background:#fff; color:var(--s2-blue); font-size:18px; font-weight:900;
  box-shadow:0 6px 16px rgba(23,32,82,.2); transition:transform .3s ease;
  display:grid; place-items:center;
}
.float-actions.folded .float-stack{ max-height:0; opacity:0; transform:translateY(12px); }
.float-actions.folded .float-fold{ transform:rotate(180deg); }

/* Chỉ pulse nhẹ ở nút gọi để thu hút, không làm mờ */
.float-actions .call{ animation:floatPulse 2.4s ease-in-out infinite; }
@keyframes floatPulse{
  0%,100%{ box-shadow:0 8px 22px rgba(23,32,82,.28), 0 0 0 0 rgba(245,107,109,.5); }
  50%{ box-shadow:0 8px 22px rgba(23,32,82,.28), 0 0 0 10px rgba(245,107,109,0); }
}

/* Khung chat: cố định góc phải dưới, ngay trên cụm nút */
.chatbox{
  position:fixed; right:20px; bottom:96px; z-index:130;
  width:min(360px, calc(100vw - 40px)); max-height:min(560px, calc(100vh - 140px));
  background:#fff; border:1px solid var(--s2-line); border-radius:22px;
  box-shadow:0 24px 70px rgba(16,25,74,.35); overflow:hidden;
  display:flex; flex-direction:column;
  opacity:0; visibility:hidden; transform:translateY(20px) scale(.96);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.chatbox.open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.chat-head{
  background:linear-gradient(135deg,#2F3E93,#172052); color:#fff;
  font-weight:800; padding:16px 46px 16px 18px; font-size:16px;
}
.chat-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:#F6F8FF; }
.chat-body .msg{ max-width:85%; padding:10px 14px; border-radius:16px; font-size:14px; line-height:1.5; }
.chat-body .msg.bot{ background:#fff; color:var(--s2-ink); border:1px solid var(--s2-line); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-body .msg.user{ background:var(--s2-blue); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.quick-row{ display:flex; flex-wrap:wrap; gap:8px; padding:10px 14px; border-top:1px solid var(--s2-line); background:#fff; }
.quick-row button{ border:1px solid var(--s2-line); background:#F6F8FF; color:var(--s2-blue); border-radius:999px; padding:7px 12px; font-size:13px; font-weight:700; cursor:pointer; }
.quick-row button:hover{ background:var(--s2-blue); color:#fff; }
.chat-input{ display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--s2-line); background:#fff; }
.chat-input input{ flex:1; border:1px solid var(--s2-line); border-radius:14px; padding:10px 12px; outline:none; }
.chat-input input:focus{ border-color:var(--s2-teal); box-shadow:0 0 0 3px rgba(85,199,196,.18); }
.chat-input button{ background:var(--s2-blue); color:#fff; border:0; border-radius:14px; padding:0 18px; font-weight:800; cursor:pointer; }

@media (max-width:640px){
  .chatbox{ right:12px; left:12px; width:auto; bottom:88px; }
  .float-actions{ right:14px; bottom:74px; } /* tránh đè thanh mobile-bottom */
}

/* ===== FOOTER (bố cục mới, gọn & cân đối) ===== */
.s2-footer-top{ padding-top:8px; }
.s2-footer-info{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr 1.4fr;
  gap:28px; align-items:start;
}
.s2-footer-col h3{ color:#fff; font-size:17px; margin:0 0 12px; }
.s2-footer-col p{ margin:6px 0; color:rgba(255,255,255,.8); font-size:14px; line-height:1.6; }
.s2-footer-col a{ color:rgba(255,255,255,.85); }
.s2-footer-col a:hover{ color:var(--s2-teal); }
.s2-footer-brand p{ max-width:340px; }
.s2-map-frame{ border-radius:18px; overflow:hidden; box-shadow:0 12px 30px rgba(0,0,0,.28); }
.s2-map-frame iframe{ width:100%; height:220px; border:0; display:block; }
@media (max-width:1100px){
  .s2-footer-info{ grid-template-columns:1fr 1fr; }
  .s2-footer-mapcol{ grid-column:1 / -1; }
  .s2-map-frame iframe{ height:260px; }
}
@media (max-width:640px){
  .s2-footer-info{ grid-template-columns:1fr; }
}

/* ===== FIX CHAT + FLOAT (ĐỢT 2 - ghi đè) ===== */
#chatbox, .chatbox{
  position:fixed !important; right:20px; bottom:96px; left:auto; top:auto;
  z-index:1300;
  width:min(360px, calc(100vw - 40px));
  max-height:min(560px, calc(100vh - 130px));
  background:#fff; border:1px solid var(--s2-line); border-radius:22px;
  box-shadow:0 24px 70px rgba(16,25,74,.35); overflow:hidden;
  display:flex; flex-direction:column;
  opacity:0; visibility:hidden; transform:translateY(20px) scale(.96);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
}
#chatbox.open, .chatbox.open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }

#floatActions, .float-actions{
  position:fixed !important; right:20px; bottom:24px; left:auto; top:auto;
  z-index:1200; display:flex; flex-direction:column; align-items:center; gap:12px;
}
#floatActions a, #floatActions button.call, #floatActions .call, #floatActions .zalo,
#floatActions [data-chat-toggle]{
  width:56px; height:56px; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center; color:#fff; font-weight:900; font-size:13px;
  text-decoration:none; box-shadow:0 8px 22px rgba(23,32,82,.30);
  transition:transform .2s ease, box-shadow .2s ease;
}
#floatActions .call{ background:linear-gradient(135deg,#F56B6D,#ff8b65); }
#floatActions .zalo{ background:#0068FF; }
#floatActions [data-chat-toggle]{ background:linear-gradient(135deg,#2F3E93,#55C7C4); }
#floatActions .call:hover, #floatActions .zalo:hover, #floatActions [data-chat-toggle]:hover{
  transform:scale(1.1); box-shadow:0 12px 28px rgba(23,32,82,.38);
}
#floatActions [data-float-toggle], #floatActions .float-fold{
  width:38px; height:38px; border-radius:50%; border:0; cursor:pointer;
  background:#fff; color:var(--s2-blue); font-size:16px; font-weight:900;
  box-shadow:0 6px 16px rgba(23,32,82,.2); display:grid; place-items:center;
  transition:transform .3s ease;
}
#floatActions.folded [data-chat-toggle], #floatActions.folded .call, #floatActions.folded .zalo{
  display:none;
}

.s2-chat-close{
  position:absolute; top:12px; right:12px; z-index:5;
  width:30px; height:30px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.9); color:var(--s2-navy); font-size:16px; font-weight:900;
  display:grid; place-items:center; line-height:1;
}
.s2-chat-close:hover{ background:var(--s2-coral); color:#fff; }

@media (max-width:640px){
  #chatbox, .chatbox{ right:12px; left:12px; width:auto; bottom:150px; }
  #floatActions, .float-actions{ right:14px; bottom:78px; }
}

/* ===== 3 NÚT NỔI: icon nhỏ + toát vòng lan tỏa cho cả 3 ===== */
#floatActions .call,
#floatActions .zalo,
#floatActions [data-chat-toggle]{
  width:52px; height:52px; font-size:12px; position:relative; overflow:visible;
}
/* Icon nhỏ lại, để lộ nền tạo vòng lan tỏa rõ */
#floatActions .call{ font-size:0; }
#floatActions .call::after{ content:"📞"; font-size:20px; }
#floatActions [data-chat-toggle]{ font-size:0; }
#floatActions [data-chat-toggle]::after{ content:"💬"; font-size:20px; }
#floatActions .zalo{ font-size:12px; font-weight:900; }

/* Vòng lan tỏa (ripple) dùng ::before, mỗi nút 1 màu, lệch nhịp */
#floatActions .call::before,
#floatActions .zalo::before,
#floatActions [data-chat-toggle]::before{
  content:""; position:absolute; inset:0; border-radius:50%; z-index:-1;
  animation:s2Ripple 2.2s ease-out infinite;
}
#floatActions .call::before{ box-shadow:0 0 0 0 rgba(245,107,109,.55); }
#floatActions .zalo::before{ box-shadow:0 0 0 0 rgba(0,104,255,.5); animation-delay:.7s; }
#floatActions [data-chat-toggle]::before{ box-shadow:0 0 0 0 rgba(85,199,196,.55); animation-delay:1.4s; }
@keyframes s2Ripple{
  0%{ box-shadow:0 0 0 0 currentColor; opacity:.6; }
  70%{ opacity:0; }
  100%{ box-shadow:0 0 0 16px currentColor; opacity:0; }
}
/* Đặt currentColor theo từng nút để vòng đúng màu */
#floatActions .call{ color:rgba(245,107,109,.55); }
#floatActions .zalo{ color:#fff; }
#floatActions [data-chat-toggle]{ color:#fff; }

/* ===== Ô TÌM KIẾM ===== */
.s2-search-box{ position:relative; display:flex; align-items:center; }
.s2-search-ico{ position:absolute; left:16px; font-size:16px; opacity:.6; }
.s2-search-input{
  width:100%; padding:13px 44px 13px 44px; border:1px solid var(--s2-line);
  border-radius:14px; font-size:15px; outline:none; background:#fff;
}
.s2-search-input:focus{ border-color:var(--s2-teal); box-shadow:0 0 0 3px rgba(85,199,196,.18); }
.s2-search-clear{
  position:absolute; right:12px; width:26px; height:26px; border:0; border-radius:50%;
  background:#EEF1FB; color:var(--s2-navy); cursor:pointer; font-weight:900;
}
.s2-search-clear:hover{ background:var(--s2-coral); color:#fff; }
.s2-result-count{ color:var(--s2-muted); margin:16px 0 8px; }

/* ===== PHÂN TRANG ===== */
.s2-pager{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:34px; }
.s2-page-btn{
  min-width:42px; height:42px; padding:0 12px; border-radius:12px;
  border:1px solid var(--s2-line); background:#fff; color:var(--s2-blue);
  font-weight:800; cursor:pointer; transition:.15s ease;
}
.s2-page-btn:hover:not([disabled]):not(.active){ background:#EEF1FB; transform:translateY(-1px); }
.s2-page-btn.active{ background:var(--s2-blue); color:#fff; border-color:var(--s2-blue); }
.s2-page-btn[disabled]{ opacity:.4; cursor:not-allowed; }
.s2-page-btn.dots{ border:0; background:transparent; cursor:default; }

/* ===== HUY HIỆU GHIM NỔI BẬT ===== */
.s2-gal-card{ position:relative; }
.s2-pin-badge{
  position:absolute; top:12px; left:12px; z-index:3;
  background:linear-gradient(135deg,#F56B6D,#ff8b65); color:#fff;
  font-size:12px; font-weight:900; padding:5px 12px; border-radius:999px;
  box-shadow:0 6px 16px rgba(245,107,109,.4);
}
.s2-gal-card.is-featured{ box-shadow:0 0 0 2px var(--s2-coral), var(--s2-shadow); }

/* ===== BADGE SỐ LƯỢNG TRÊN CHIP ===== */
.s2-chip{ display:inline-flex; align-items:center; gap:7px; }
.s2-chip-badge{
  display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px;
  border-radius:999px; font-size:12px; font-weight:900; line-height:1;
  background:rgba(47,62,147,.12); color:var(--s2-blue);
}
.s2-chip.active .s2-chip-badge{ background:rgba(255,255,255,.28); color:#fff; }

/* ===== NÚT XÓA BỘ LỌC ===== */
.s2-chip-reset{
  background:#FFF0F0 !important; color:#C0392B !important;
  border:1px dashed #F5A9A9 !important; font-weight:800;
}
.s2-chip-reset:hover{ background:var(--s2-coral) !important; color:#fff !important; border-style:solid !important; }
