/* =====================================================
   TÂM ĐỨC - Main Stylesheet
   ===================================================== */

:root {
  --red: #C01B2D;
  --red-dark: #8B0012;
  --red-light: #E02040;
  --gold: #F5A623;
  --gold-light: #FFD166;
  --dark: #1a1a1a;
  --gray: #6c757d;
  --gray-light: #f5f5f5;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --radius: 6px;
  --transition: all .25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: #333; background: #fff; }
a { color: #333; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red); text-decoration: none; }
img { max-width: 100%; }
/* Rich-text content from the editor often carries inline width+height on
   <img>; the global max-width caps width, and height:auto keeps the aspect
   ratio so images never stretch (post detail, albums, contact, etc.). */
.content img, .post-content img, .album-body img, .contact-info-html img { height: auto !important; }
/* Sidebar banner images keep their aspect ratio. */
.right-side .widget.banner img { height: auto; }
/* "Bài viết mới nhất" — stacked card: image on top, title + date below. */
.latest-post { display: block; padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px solid var(--border); }
.latest-post:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.latest-post-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .5rem; }
.latest-post-title { display: block; font-size: .85rem; font-weight: 600; color: #333; line-height: 1.35; }
.latest-post:hover .latest-post-title { color: var(--red); }
.latest-post-date { display: block; font-size: .75rem; color: var(--gray); margin-top: .25rem; }
*:focus { outline: none; }

/* Full-width layout — content spans 100% of the screen */
.container-xl {
  max-width: 100% !important;
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
@media (max-width: 991px) {
  .container-xl { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 575px) {
  .container-xl { padding-left: .9rem; padding-right: .9rem; }
}

/* Bản đầy đủ (≥992px): nới lề trái/phải để cụm nút liên hệ nổi
   (.float-contact: position fixed, left 16px + nút 46px = hết ở 62px) không đè lên chữ.
   Bản mobile/tablet giữ nguyên lề cũ — không đổi. */
@media (min-width: 992px) {
  :root { --float-gutter: 72px; }
  .container, .container-xl { padding-left: var(--float-gutter); padding-right: var(--float-gutter); }
  /* Trừ đầu trang: nút nổi neo ở đáy nên không chạm menu; nới rộng chỉ làm menu chật, tràn ngang. */
  header.site-header > .container-xl { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ---- Utilities ---- */
.text-red { color: var(--red) !important; }
.text-gold { color: var(--gold) !important; }
.btn-red {
  background: var(--red); border: none; color: #fff;
  padding: .5rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; transition: var(--transition); display: inline-flex; align-items: center; gap: .4rem;
}
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-gold {
  background: var(--gold); border: none; color: var(--dark);
  padding: .5rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; transition: var(--transition);
}
.btn-gold:hover { background: var(--gold-light); }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.2rem; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: .5rem; margin: 0;
}
.section-title i { color: var(--red); }
.view-all { font-size: .825rem; color: var(--red); font-weight: 600; white-space: nowrap; }
.view-all:hover { color: var(--red-dark); }
[data-line="2"] { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
[data-line="3"] { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ul-reset { list-style: none; margin: 0; padding: 0; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky; top: 0; z-index: 1000;
}

.navbar-brand { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; text-decoration: none; }
.logo-img { height: 52px; width: auto; flex: 0 0 auto; max-width: none; }
.logo-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(192,27,45,.35);
}
.logo-text { line-height: 1.2; display: flex; flex-direction: column; }
.logo-text .logo-name { font-size: 1.45rem; font-weight: 900; color: var(--red); letter-spacing: .5px; line-height: 1; display: block; }
.logo-text .logo-slogan { font-size: .75rem; color: #666; letter-spacing: .05em; display: block; }

.navbar { padding: .2rem 0; }
.navbar-nav .nav-link {
  font-size: .8rem; font-weight: 600; color: var(--dark) !important;
  padding: .55rem .9rem !important; text-transform: uppercase;
  letter-spacing: .02em; white-space: nowrap; transition: var(--transition);
  border-bottom: 2px solid transparent;
}
/* On desktop, let the menu stretch and distribute evenly to fill the width */
@media (min-width: 992px) {
  .navbar-nav.me-auto { flex-grow: 1; justify-content: space-evenly; }
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active-nav { color: var(--red) !important; }
/* Current/clicked menu item — focused in red (text + caret + underline) */
.navbar-nav .nav-item:not(.hssv-item) > .nav-link.active-nav {
  font-weight: 800; border-bottom-color: var(--red);
}
/* Default: looks like a normal menu item (no border, no highlight), just 2 lines */
.navbar-nav .nav-item.hssv-item .nav-link {
  text-align: center; line-height: 1.15; white-space: nowrap;
}
/* Filled highlight only when you are ON the HSSV page */
.navbar-nav .nav-item.hssv-item .nav-link.active-nav {
  background: var(--red); color: #fff !important; border-radius: 5px;
}

.navbar-nav .dropdown-menu {
  border: none; box-shadow: var(--shadow-md); border-radius: var(--radius);
  min-width: 200px; padding: .4rem 0; border-top: 3px solid var(--red);
}
.navbar-nav .dropdown-item { font-size: .8rem; padding: .45rem 1.2rem; color: var(--dark); transition: var(--transition); }
.navbar-nav .dropdown-item:hover { background: #fff5f5; color: var(--red); }

.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Hotline block — red ring phone icon + stacked label/number */
.hotline-block {
  display: flex; align-items: center; gap: .4rem;
  text-decoration: none; white-space: nowrap;
}
.hotline-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  box-shadow: 0 0 0 3px rgba(192,27,45,.15);
}
.hotline-text { display: flex; flex-direction: column; line-height: 1.05; }
.hotline-label { font-size: .75rem; color: #4a4a4a; font-weight: 600; letter-spacing: .01em; }
.hotline-number { font-size: .95rem; font-weight: 800; color: var(--red); letter-spacing: .02em; text-decoration: none; }

.btn-register {
  background: var(--gold); color: var(--dark) !important;
  border: none; border-radius: 6px; padding: .6rem 1.25rem;
  font-size: .82rem; font-weight: 800; white-space: nowrap; text-transform: uppercase;
  display: flex; align-items: center; gap: .45rem; transition: var(--transition);
  box-shadow: 0 2px 6px rgba(245,166,35,.35); letter-spacing: .02em;
}
.btn-register:hover { background: var(--gold-light); color: var(--dark) !important; box-shadow: 0 4px 10px rgba(245,166,35,.5); }

/* Mobile CTA inside collapsed menu */
.header-mobile-cta { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.btn-hotline-mobile {
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff !important; border-radius: 6px;
  padding: .55rem 1rem; font-size: .85rem; font-weight: 700; text-decoration: none;
  transition: var(--transition);
}
.btn-hotline-mobile:hover { background: var(--red-dark); color: #fff !important; }
.navbar-toggler { border: none; padding: .3rem; }
.navbar-toggler:focus { box-shadow: none; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  background: linear-gradient(115deg, #8b0012 0%, #b51422 30%, #c01b2d 50%, #930015 75%, #5a0010 100%);
  position: relative; overflow: hidden; padding: 2.5rem 0 3rem;
  /* Cap the banner at 60% of the viewport height (adapts to device/browser). */
  max-height: 60vh;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: url('/images/bg-top.jpg') left center/cover no-repeat;
  opacity: .16; mix-blend-mode: soft-light;
}
/* Hero background slideshow (banners) */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slideshow .slick-list,
.hero-slideshow .slick-track { height: 100%; }
/* slick wraps each slide in .slick-slide > div; both need height so the
   background image fills the full hero (otherwise it collapses to 0 and the
   red section base shows through — especially on tall mobile layouts). */
.hero-slideshow .slick-slide,
.hero-slideshow .slick-slide > div { height: 100%; }
.hero-slide { display: block; height: 100%; }
.hero-slideshow:not(.slick-initialized) .hero-slide { display: none; }
.hero-slideshow:not(.slick-initialized) .hero-slide:first-child { display: block; }
.hero-slide-bg { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
/* Red wash over the banner images so the hero text stays legible */
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Neutral (not red) scrim — only enough on the left to keep the white title
     readable; fades to clear so the admin banner image shows in its own colors. */
  background: linear-gradient(95deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.20) 45%, rgba(0,0,0,0) 75%);
}
/* subtle radial glow + bottom gold edge like the reference */
.hero-section::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .8;
}
/* On desktop, size the hero to the banner's REAL proportions (banners are
   1672×941) so the whole image shows instead of a cropped centre band. The
   overlay text + search float on top, vertically centred. Mobile keeps the
   content-driven height (a real-height 16:9 banner is too short to fit the
   stacked search there). */
@media (min-width: 768px) {
  .hero-section {
    /* Full-screen WIDTH, height capped at 60% of the viewport. No aspect-ratio
       (it would shrink the width to keep the ratio); the banner image is
       cover-cropped vertically instead so it always spans edge-to-edge. */
    width: 100%;
    height: 60vh;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .hero-section > .container-xl { width: 100%; }
  .hero-slide-bg { background-size: cover; background-position: center; }
}
.hero-content { position: relative; z-index: 1; color: #fff; margin-top: 90px; }
.hero-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900;
  line-height: 1.22; margin-bottom: .65rem; text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.hero-title-accent { color: var(--gold); display: block; }
.hero-bullets { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hero-bullets li {
  font-size: .9rem; padding: .22rem 0;
  display: flex; align-items: center; gap: .55rem; color: #fff;
}
.hero-bullets li::before {
  content: '\2713'; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-size: .75rem; font-weight: 700;
}

/* Unified white search pill */
/* z-index:1 lifts the search + tags above the slideshow/overlay (both z-index:0)
   so they're clickable and not tinted by the red overlay (like .hero-content). */
.hero-search { background: transparent; padding: 0; position: relative; z-index: 1; margin-top: -2px; }
.search-row {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border-radius: 50px;
  padding: .35rem .35rem .35rem .35rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.22); max-width: 960px;
}
.search-input {
  flex: 2; min-width: 0; background: transparent; border: none;
  padding: .65rem 1rem .65rem 2.3rem; font-size: .85rem; color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c01b2d'%3E%3Cpath d='M11.7 10.3a6 6 0 10-1.4 1.4l3 3a1 1 0 001.4-1.4l-3-3zM7 11a4 4 0 110-8 4 4 0 010 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .85rem center; background-size: 15px;
}
.search-input::placeholder { color: #999; }
.search-input:focus { outline: none; }
.search-select {
  flex: 1; min-width: 0; background: transparent; border: none;
  border-left: 1px solid #eee; padding: .65rem 1.6rem .65rem .8rem;
  font-size: .82rem; color: var(--dark); cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center; background-size: 12px;
}
.search-select:focus { outline: none; }
.btn-search {
  background: var(--gold); border: none; color: var(--dark);
  padding: .7rem 1.5rem; border-radius: 50px; margin-left: .35rem;
  font-size: .82rem; font-weight: 800; white-space: nowrap; text-transform: uppercase;
  letter-spacing: .02em;
  display: flex; align-items: center; gap: .4rem; transition: var(--transition); cursor: pointer;
}
.btn-search:hover { background: var(--gold-light); }

/* Mobile top search — sits beside the logo on phones, replacing the hero search */
.mobile-top-search {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
  height: 40px; margin: 0 .5rem; background: #fff;
  border: 1px solid #e0e0e0; border-radius: 999px; overflow: hidden;
}
.mobile-top-search .mts-input {
  flex: 1 1 auto; min-width: 0; width: 100%; border: 0; outline: 0;
  background: transparent; padding: 0 .3rem 0 .95rem; font-size: .9rem; color: #333;
}
.mobile-top-search .mts-input::placeholder { color: #999; }
.mobile-top-search .mts-btn {
  flex: 0 0 auto; width: 44px; height: 100%; border: 0; cursor: pointer;
  background: var(--gold); color: #3a2a00;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.mobile-top-search .mts-btn:hover { background: var(--gold-light); }

.popular-tags { margin-top: .85rem; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.popular-label { font-size: .8rem; color: rgba(255,255,255,.85); font-weight: 600; }
.tag-pill {
  display: inline-block; background: var(--gold); border: none; color: #3d0008;
  border-radius: 20px; padding: .28rem .9rem; font-size: .75rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  box-shadow: 0 2px 8px rgba(245,166,35,.3);
}
.tag-pill:hover { background: #fff; color: var(--red); transform: translateY(-1px); }
/* Search panel reused on the results page (light bg): the label is white in the
   hero, so darken it here, and define the pill against the white page. */
.search-panel .search-row { border: 1px solid var(--border); }
.search-panel .popular-label { color: #555; }
.search-panel .tag-pill:hover { background: var(--red); color: #fff; }

/* Hero right - brand + Vietnam map area */
.hero-right { position: relative; z-index: 1; text-align: center; color: #fff; }
.hero-brand-box { margin-bottom: .75rem; }
.hero-brand-logo { height: 92px; width: auto; filter: brightness(0) invert(1); }
.hero-brand-name { font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; }
.hero-brand-tagline {
  font-size: .75rem; color: rgba(255,235,210,.85); margin-top: .25rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-brand-script {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 1.15rem; color: var(--gold); line-height: 1.1; margin-top: .5rem; font-style: italic;
}
.hero-brand-script strong { display: block; font-size: 1.4rem; letter-spacing: .02em; }
.hero-map-dots { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; align-items: flex-end; }
.map-dot-row { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.9); }
.map-dot-row .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.3); flex-shrink: 0;
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.main-wrapper { padding: 1.75rem 0; }

/* =====================================================
   REGION JOBS
   ===================================================== */
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .875rem; }
.region-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); background: #fff;
}
.region-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.region-card-img { height: 110px; object-fit: cover; width: 100%; display: block; }
.region-card-body { padding: .75rem; }
.region-card-title {
  font-size: .9rem; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem;
}
.region-card-title i { color: var(--red); font-size: .9rem; }
.region-job-list { list-style: none; margin: 0; padding: 0; }
.region-job-list li { font-size: .76rem; padding: .22rem 0; border-bottom: 1px dashed #eee; }
.region-job-list li:last-child { border-bottom: none; }
.region-job-list li a { color: #444; display: flex; align-items: center; gap: .25rem; }
.region-job-list li a::before { content: '\203A'; color: var(--red); font-size: .95rem; line-height: 1; }
.region-job-list li a:hover { color: var(--red); }
.region-card-footer { padding: .45rem .75rem; border-top: 1px solid var(--border); text-align: center; }
.region-card-footer a { font-size: .75rem; color: var(--red); font-weight: 600; }
.region-card-footer a:hover { color: var(--red-dark); }

/* =====================================================
   FEATURED JOBS
   ===================================================== */
.featured-jobs-bg { background: var(--gray-light); padding: 1.75rem 0; }
.job-filter-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.job-tab {
  padding: .35rem .9rem; border-radius: 20px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border); background: #fff; color: var(--gray);
  cursor: pointer; transition: var(--transition);
}
.job-tab:hover { border-color: var(--red); color: var(--red); }
.job-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.job-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: .875rem; display: flex; gap: .7rem; align-items: flex-start;
  transition: var(--transition); margin-bottom: .75rem;
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: #ddd; }
.job-logo-wrap {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.job-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-logo-placeholder { font-size: 1.3rem; color: var(--gray); }
.job-body { flex: 1; min-width: 0; }
.job-title { font-size: .875rem; font-weight: 700; color: var(--dark); margin-bottom: .18rem; }
.job-title a { color: inherit; }
.job-title a:hover { color: var(--red); }
.job-company { font-size: .75rem; color: var(--gray); margin-bottom: .35rem; }
.job-company i { color: var(--red); margin-right: .18rem; font-size: .75rem; }
.job-salary { font-size: .82rem; font-weight: 700; color: var(--red); display: block; margin-bottom: .35rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.job-tag {
  font-size: .75rem; padding: .12rem .45rem;
  border-radius: 3px; font-weight: 600;
}
.tag-salary { background: #fff3e0; color: #e65c00; }
.tag-now { background: #e8f5e9; color: #2e7d32; }
.tag-ktx { background: #e3f2fd; color: #1565c0; }
.tag-meals { background: #f3e5f5; color: #7b1fa2; }
.job-actions {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: .35rem; flex-shrink: 0;
}
.btn-apply {
  background: var(--red); color: #fff; border: none;
  border-radius: var(--radius); padding: .32rem .8rem;
  font-size: .75rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-apply:hover { background: var(--red-dark); }
.btn-heart {
  background: none; border: 1px solid var(--border); color: var(--gray);
  border-radius: var(--radius); padding: .28rem .48rem; cursor: pointer;
  font-size: .85rem; transition: var(--transition); line-height: 1;
}
.btn-heart:hover { color: var(--red); border-color: var(--red); }
/* Đã lưu — tim đỏ đặc */
.btn-heart.saved { color: var(--red); border-color: var(--red); background: #fde9ea; }
.btn-heart.saved i { animation: heart-pop .3s ease; }
@keyframes heart-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* =====================================================
   PARTNERS
   ===================================================== */
.section-partners { padding: 1.75rem 0; }
.partner-slides { margin-top: .75rem; }
.partner-slides .slick-list { margin: 0 -8px; }
.partner-slides .slick-slide { padding: 0 8px; }
.partner-logo { height: 55px; object-fit: contain; width: 100%; filter: grayscale(30%); transition: var(--transition); }
.partner-logo:hover { filter: none; }

/* =====================================================
   WHY CHOOSE US
   ===================================================== */
.section-why { padding: 1.75rem 0; background: var(--gray-light); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.1rem; }
.why-card {
  background: #fff; border-radius: 10px; padding: .85rem .65rem;
  text-align: center; border: 1px solid var(--border); height: 100%;
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: #f0d0d0; }
.why-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff0f0; margin: 0 auto .55rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--red);
}
.why-title { font-size: .82rem; font-weight: 800; color: var(--dark); margin-bottom: .25rem; line-height: 1.25; }
.why-desc { font-size: .75rem; color: var(--gray); line-height: 1.4; }

/* =====================================================
   NEWS + CONNECT
   ===================================================== */
.section-news { padding: 1.75rem 0; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.1rem; }
.news-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-img { height: 170px; object-fit: cover; width: 100%; display: block; }
.news-card-imglink { position: relative; display: block; }
/* Horizontal news card: image left, text right (matches design) */
.news-card-h { flex-direction: row; }
.news-card-h .news-card-imglink { width: 168px; flex-shrink: 0; }
.news-card-h .news-card-img { height: 100%; min-height: 150px; }
.news-card-h .news-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-card-h .news-desc { flex: 1; }
@media (max-width: 575px) {
  .news-card-h { flex-direction: column; }
  .news-card-h .news-card-imglink { width: 100%; }
  .news-card-h .news-card-img { min-height: auto; }
}
.news-date-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--red); color: #fff; border-radius: 6px;
  padding: .3rem .5rem; text-align: center; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.news-date-badge .nd-day { display: block; font-size: 1.05rem; font-weight: 800; }
.news-date-badge .nd-my { display: block; font-size: .75rem; margin-top: .15rem; opacity: .92; }
.news-card-body { padding: .8rem; flex: 1; }
.news-date { font-size: .75rem; color: var(--gray); margin-bottom: .25rem; }
.news-title { font-size: .85rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: .3rem; }
.news-title a { color: inherit; }
.news-title a:hover { color: var(--red); }
.news-desc { font-size: .75rem; color: var(--gray); line-height: 1.5; }

/* Connect widget */
.connect-box {
  background: var(--red); border-radius: var(--radius);
  padding: 1.1rem; color: #fff;
}
.connect-title { font-size: .95rem; font-weight: 700; color: var(--gold); margin-bottom: .875rem; }
.connect-phone { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.connect-phone i { color: var(--gold); margin-right: .3rem; }
.connect-actions { display: flex; flex-direction: column; gap: .5rem; }
.connect-btn {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.18); border-radius: var(--radius);
  padding: .45rem .75rem; font-size: .8rem; color: #fff; cursor: pointer;
  transition: var(--transition); border: 1px solid rgba(255,255,255,.2); text-decoration: none;
}
.connect-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
.connect-btn i { font-size: 1rem; color: var(--gold); width: 20px; }
.connect-qr { margin-top: .75rem; text-align: center; }
.connect-qr img { width: 150px; height: 150px; object-fit: contain; background: #fff; padding: 6px; border-radius: 8px; border: 3px solid rgba(255,255,255,.3); }
.connect-qr-label { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: .3rem; }

/* =====================================================
   FOOTER
   ===================================================== */
footer.site-footer {
  background: var(--red-dark);
  color: rgba(255,255,255,.8);
  /* Lề trái/phải do .container-xl bên trong đảm nhiệm (xem --float-gutter). */
  padding: 2.25rem 0 1rem;
}
.footer-logo-img {
  height: 92px; width: auto; filter: brightness(0) invert(1);
  display: block; margin-left: auto; margin-right: auto;
}
.footer-brand-name { font-size: 1.1rem; font-weight: 900; color: #fff; margin: .3rem 0 .1rem; }
.footer-slogan { font-size: .75rem; color: rgba(255,255,255,.55); }

/* ── Footer layout: brand (left) + Hà Nội pinned + other offices scroll ── */
/* align-items:center — cột VP căn giữa theo chiều dọc so với khối thương hiệu,
   tránh khoảng trống dồn hết xuống dưới khi hai cột lệch chiều cao */
.footer-main { display: flex; gap: 1.75rem; align-items: center; }
.footer-brand { flex: 0 0 220px; text-align: center; }
.footer-brand .footer-addr { text-align: left; display: inline-block; }
.footer-phone-label { color: rgba(255,255,255,.55); }

.footer-offices { flex: 1 1 auto; min-width: 0; display: flex; gap: 1.25rem; align-items: flex-start; }
.footer-office-fixed { flex: 0 0 210px; }
.footer-office-scroll {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-wrap: nowrap; gap: 1.25rem;
  overflow-x: auto; padding-bottom: .5rem;
}
.footer-office-scroll::-webkit-scrollbar { height: 5px; }
.footer-office-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
.footer-office-scroll .footer-office { flex: 0 0 200px; }

@media (max-width: 768px) {
  .footer-main { flex-direction: column; gap: 1.25rem; }
  .footer-brand { flex: 0 0 auto; width: 100%; }
  .footer-offices { width: 100%; }
  .footer-office-fixed { flex: 0 0 60%; }
}
footer h5 {
  font-size: .8rem; font-weight: 700; color: #fff; text-transform: uppercase;
  margin-bottom: .7rem; padding-bottom: .35rem;
  border-bottom: 1.5px solid rgba(255,255,255,.15);
}
.footer-addr { list-style: none; margin: 0; padding: 0; }
.footer-addr li {
  display: flex; align-items: flex-start; gap: .35rem;
  font-size: .75rem; color: rgba(255,255,255,.7); margin-bottom: .28rem;
}
.footer-addr li i { color: var(--gold); flex-shrink: 0; margin-top: .1rem; font-size: .8rem; }
.footer-addr a { color: rgba(255,255,255,.7); }
.footer-addr a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 1.5rem; padding-top: .875rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.55); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--dark) !important; }

/* =====================================================
   FLOATING CONTACTS
   ===================================================== */
/* Luôn nổi trên cùng */
.float-contact { position: fixed; left: 16px; bottom: 80px; z-index: 9999; display: flex; flex-direction: column; gap: .65rem; }
.float-btn {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,.2); transition: transform .18s ease, background .18s ease;
  border: none; padding: 0; cursor: pointer; position: relative;
}
.float-btn:hover { transform: scale(1.12); }
.float-phone-btn { background: var(--red); color: #fff; font-size: 1.2rem; }
.float-phone-btn:hover { background: var(--red-dark); color: #fff; }
.float-zalo-btn { background: #0068FF; color: #fff; }
.float-zalo-btn:hover { background: #0056d6; color: #fff; }
.float-zalo-btn .zalo-wordmark { font-weight: 800; font-style: italic; font-size: .98rem; letter-spacing: -.5px; line-height: 1; }
.float-fb-btn { background: #1877f2; color: #fff; font-size: 1.25rem; }
.float-fb-btn:hover { background: #0e63d6; color: #fff; }

/* Vòng nhấp nháy (pulse) — mỗi kênh 1 màu, lệch pha cho sinh động */
.float-phone-btn { animation: fc-pulse-red 1.8s infinite; }
.float-zalo-btn  { animation: fc-pulse-zalo 1.8s .45s infinite; }
.float-fb-btn    { animation: fc-pulse-fb 1.8s .9s infinite; }
@keyframes fc-pulse-red  { 0% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(192,27,45,.55); } 70% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 15px rgba(192,27,45,0); } 100% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(192,27,45,0); } }
@keyframes fc-pulse-zalo { 0% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(0,104,255,.5); } 70% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 15px rgba(0,104,255,0); } 100% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(0,104,255,0); } }
@keyframes fc-pulse-fb   { 0% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(24,119,242,.5); } 70% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 15px rgba(24,119,242,0); } 100% { box-shadow: 0 3px 12px rgba(0,0,0,.2), 0 0 0 0 rgba(24,119,242,0); } }

/* Chuông điện thoại rung nhẹ */
.float-phone-btn i { animation: fc-ring 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes fc-ring { 0%, 55%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }

@media (prefers-reduced-motion: reduce) {
  .float-phone-btn, .float-zalo-btn, .float-fb-btn, .float-phone-btn i { animation: none; }
}

.float-phone-wrap { position: relative; }
.float-phone-menu {
  position: absolute; left: 56px; bottom: 0; display: none; flex-direction: column; gap: .35rem;
  background: #fff; padding: .5rem; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.18);
  white-space: nowrap;
}
.float-phone-menu::before {
  content: ""; position: absolute; left: -6px; bottom: 16px;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 6px solid #fff;
}
.float-phone-wrap.open .float-phone-menu { display: flex; }
.float-phone-menu a {
  color: var(--red); font-weight: 700; font-size: .9rem; text-decoration: none;
  display: flex; align-items: center; gap: .45rem; padding: .15rem .35rem;
}
.float-phone-menu a:hover { color: var(--red-dark); }

/* =====================================================
   POST LISTING & DETAIL
   ===================================================== */
.breadcrumb { background: none; padding: 0; font-size: .78rem; margin-bottom: 1rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray); }
.category-title { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin-bottom: 1.1rem; }

.card-post-item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
}
.card-post-item:hover { box-shadow: var(--shadow-md); }
.card-post-item img { height: 175px; object-fit: cover; width: 100%; }
.card-post-item h3 { font-size: .9rem; font-weight: 700; }
.card-post-item .card-body { padding: .75rem; }

.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius); padding: .875rem; margin-bottom: 1rem; }
.sidebar-box-title {
  font-size: .875rem; font-weight: 700; color: var(--red);
  margin-bottom: .65rem; padding-bottom: .35rem; border-bottom: 2px solid var(--red);
}

/* =====================================================
   HSSV PAGE
   ===================================================== */
.hssv-hero {
  background: linear-gradient(115deg, #8b0012 0%, #b51422 35%, #c01b2d 55%, #8b0012 100%);
  padding: 2.5rem 0; color: #fff; position: relative; overflow: hidden;
}
.hssv-hero h1 { font-size: 1.7rem; font-weight: 900; color: #fff; margin-bottom: .25rem; }
.hssv-subtitle { color: var(--gold); font-size: 1rem; font-weight: 700; font-style: italic; margin-bottom: .5rem; }
.hssv-desc { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.9); max-width: 760px; }
.hssv-hero-icon {
  width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0;
  background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* Tab bar — full-width white strip with red underline */
.hssv-nav-wrap { background: #fff; border-bottom: 2.5px solid var(--red); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.hssv-nav {
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.hssv-nav::-webkit-scrollbar { display: none; }
.hssv-nav-item {
  padding: .85rem 1.25rem; font-size: .85rem; font-weight: 700;
  color: var(--gray); border-bottom: 3px solid transparent;
  margin-bottom: -2.5px; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: .45rem;
  transition: var(--transition); background: none;
  border-top: none; border-left: none; border-right: none; text-decoration: none;
}
.hssv-nav-item i { color: inherit; }
.hssv-nav-item:hover { color: var(--red); }
.hssv-nav-item.active { color: var(--red); border-bottom-color: var(--red); background: #fff5f5; }

/* ===== HSSV content cards ===== */
.hssv-box {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.hssv-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hssv-box-title {
  font-size: 1rem; font-weight: 800; color: var(--red); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.hssv-box-head .hssv-box-title { margin: 0; }

/* University logos */
.uni-logo {
  height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: .4rem;
}
.uni-logo img { max-height: 64px; max-width: 100%; object-fit: contain; }
.uni-logo i { font-size: 2.2rem; color: #cbd2da; }
.uni-logo-lg { height: 90px; }
.uni-logo-lg img { max-height: 84px; }
.uni-name { font-size: .75rem; font-weight: 700; color: var(--dark); line-height: 1.25; text-transform: uppercase; }

/* Activity items */
.act-item { display: flex; gap: .7rem; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px dashed var(--border); }
.act-item:last-of-type { border-bottom: none; }
.act-item img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.act-title { font-size: .85rem; font-weight: 700; line-height: 1.3; }
.act-title a { color: var(--dark); }
.act-title a:hover { color: var(--red); }
.act-desc { font-size: .76rem; color: var(--gray); line-height: 1.45; margin-top: .15rem; }
.act-date { font-size: .75rem; color: #999; margin-top: .2rem; }

/* HSSV job cards */
.hssv-job-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 1rem .9rem;
  text-align: center; height: 100%; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center;
}
.hssv-job-card:hover { box-shadow: var(--shadow-md); border-color: #ddd; }
.hssv-job-logo { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.hssv-job-logo img { max-width: 100%; max-height: 54px; object-fit: contain; }
.hssv-job-title { font-size: .88rem; font-weight: 700; color: var(--dark); line-height: 1.25; }
.hssv-job-company { font-size: .76rem; color: var(--gray); margin: .2rem 0 .45rem; }
.hssv-job-meta { font-size: .75rem; color: #666; margin-bottom: .2rem; }
.hssv-job-meta i { color: var(--red); margin-right: .25rem; }
.btn-block-sm { display: block; width: 100%; text-align: center; margin-top: .65rem; padding: .45rem .5rem; font-size: .8rem; }

/* Small buttons */
.btn-outline-red-sm {
  display: inline-block; border: 1.5px solid var(--red); color: var(--red);
  border-radius: 22px; padding: .4rem 1.5rem; font-size: .8rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
}
.btn-outline-red-sm:hover { background: var(--red); color: #fff; }

/* Contact box */
.hssv-contact-list { list-style: none; margin: 0; padding: 0; }
.hssv-contact-list li { font-size: .82rem; color: #555; margin-bottom: .55rem; display: flex; gap: .5rem; line-height: 1.5; }
.hssv-contact-list li i { color: var(--red); flex-shrink: 0; margin-top: .15rem; }
.hssv-contact-list a { color: #555; }
.hssv-contact-list a:hover { color: var(--red); }
.hssv-slogan { margin-top: .75rem; font-style: italic; font-weight: 700; color: var(--red); }

.project-card {
  display: flex; gap: .75rem; padding: .875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem; transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow); }
.project-card-img { width: 80px; height: 58px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.project-card-title { font-size: .875rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.project-card-desc { font-size: .76rem; color: var(--gray); line-height: 1.4; }
.project-card-link { font-size: .76rem; color: var(--red); font-weight: 600; }

.school-card {
  text-align: center; padding: .875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition);
}
.school-card:hover { box-shadow: var(--shadow); }
.school-card img { height: 65px; object-fit: contain; margin-bottom: .45rem; }
.school-card-name { font-size: .75rem; font-weight: 700; color: var(--dark); line-height: 1.3; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pager-wrap { display: flex; justify-content: center; }
.pagination { justify-content: center; gap: .5rem; margin: 0; flex-wrap: wrap; }
.pagination .page-item { margin: 0; }
.page-link {
  color: var(--red); background: #fff;
  border: 1.5px solid #f3d3d8; border-radius: 12px !important;
  min-width: 44px; height: 44px; padding: 0 .8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .92rem; font-weight: 800; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.page-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(192,27,45,.38);
}
/* Active page — vibrant gold→red gradient pill */
.page-item.active .page-link {
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--red) 55%, var(--red-dark) 100%);
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(192,27,45,.45);
  transform: translateY(-2px) scale(1.08);
}
.page-item.active .page-link:hover { color: #fff; }
.page-item.disabled .page-link {
  color: #cfcfcf; background: #f7f7f7; border-color: #eee;
  box-shadow: none; transform: none; pointer-events: none;
}

/* Bootstrap 5 removed .form-group — restore its spacing (used by admin forms) */
.form-group { margin-bottom: 1rem; }

/* =====================================================
   GLOBAL FORM CONTROLS
   (Markup uses BS5 .form-select; styled here for a
    consistent custom caret across all forms)
   ===================================================== */
.form-select {
  display: block; width: 100%;
  padding: .5rem 2.25rem .5rem .85rem;
  font-size: .9rem; line-height: 1.6; color: #333;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 14px;
  border: 1px solid #ced4da; border-radius: 6px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.form-select:focus,
.form-control:focus {
  border-color: var(--red); outline: 0;
  box-shadow: 0 0 0 .2rem rgba(192,27,45,.12);
}

/* =====================================================
   ICON ↔ TEXT SPACING (more breathing room)
   ===================================================== */
.section-title { gap: .65rem; }
.section-title i,
.register-card-title i,
.connect-title i,
.sidebar-box-title i,
.hssv-subtitle i,
.btn-red i, .btn-gold i,
.view-all i, .news-read-more i,
.hotline-block i { margin-right: .25rem; }
/* Alert / banner leading icon */
.alert > i:first-child { margin-right: .5rem; }

/* =====================================================
   REGISTER (JOB-SEEKER) FORM — roomy spacing
   ===================================================== */
.register-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 2.25rem 2.25rem 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.register-card-title {
  font-weight: 700; color: var(--red); font-size: 1.05rem;
  margin-bottom: 1.75rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.register-form .form-label {
  font-size: .85rem; font-weight: 600; color: #333;
  margin-bottom: .5rem;
}
.register-form .form-control,
.register-form .form-select {
  display: block; width: 100%;
  padding: .65rem .9rem; font-size: .9rem;
  border-radius: 7px; line-height: 1.6;
}
.register-form .form-select { padding-right: 2.4rem; background-position: right .9rem center; }
.register-form .form-label { display: block; }
.register-form textarea.form-control { line-height: 1.7; padding: .7rem .9rem; }
.register-form .form-control:focus,
.register-form .form-select:focus {
  border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(192,27,45,.12);
}
.register-form input[type="file"].form-control {
  padding: .7rem .9rem 1rem; line-height: 1.9; height: auto;
}
.register-form input[type="file"].form-control::-webkit-file-upload-button {
  margin-right: .75rem;
}
.register-form .form-text { margin-top: .45rem; font-size: .78rem; }
.register-form .row { row-gap: 1.4rem !important; }

.register-submit {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.btn-register-submit {
  padding: .75rem 2.25rem; font-size: .95rem; font-weight: 700;
}

/* Register hero — title with thumbnail icon badge */
.register-hero-title {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1.7rem; font-weight: 800; margin: 0;
}
.register-hero-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 14px;
  background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
@media (max-width: 575px) {
  .register-hero-title { font-size: 1.35rem; gap: .75rem; }
  .register-hero-icon { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 12px; }
}

/* Register sidebar — benefits list (roomy icon→text gap) */
.register-benefits { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #444; }
.register-benefits li {
  display: flex; align-items: flex-start; gap: .65rem;
  margin-bottom: .6rem; line-height: 1.5;
}
.register-benefits li:last-child { margin-bottom: 0; }
.register-benefits li i { color: #28a745; margin-top: .2rem; flex-shrink: 0; font-size: .85rem; }

/* Register form — mobile coverage */
@media (max-width: 767px) {
  .register-card { padding: 1.4rem 1.25rem 1.6rem; }
  .register-card-title { margin-bottom: 1.25rem; padding-bottom: .85rem; font-size: 1rem; }
  .register-form .row { row-gap: 1.1rem !important; }
  .register-submit { margin-top: 1.5rem; padding-top: 1.25rem; }
  .btn-register-submit { width: 100%; text-align: center; }
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
/* Embedded Google map(s) */
.map-embed { border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-office { margin-bottom: 1rem; }
.map-office:last-child { margin-bottom: 0; }
.map-office-label { font-weight: 700; color: var(--red); font-size: .9rem; margin-bottom: .5rem; }
.map-office-label i { color: var(--red); }
.map-office .map-embed iframe { height: 240px; }

/* Contact info HTML block — generous line spacing */
.contact-info-html { font-size: .92rem; color: #333; line-height: 2.2; }
.contact-info-html p { margin: 0; line-height: 2.2; }
.contact-info-html br { line-height: 2.4; }
.contact-info-html strong { display: inline-block; margin-top: .35rem; }
.contact-info-html a { color: var(--red); }
.contact-info-html a:hover { color: var(--red-dark); }

.contact-info-row { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .875rem; }
.contact-info-row i { color: var(--red); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }
.form-label { font-size: .85rem; font-weight: 600; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* Thanh menu 9 mục + hotline + nút đăng ký cần ~1476px ở kích thước gốc.
   Từ 1535px trở xuống (laptop 1280/1366/1440) thu gọn khoảng đệm & khoảng cách
   để header đủ chỗ trên một hàng — cỡ chữ vẫn giữ tối thiểu 12px. */
@media (max-width: 1535px) {
  .navbar-nav .nav-link { padding: .55rem .38rem !important; font-size: .76rem; }
  .navbar-nav.ms-lg-4 { margin-left: .5rem !important; }
}
@media (max-width: 991px) {
  .hero-right { display: none; }
  .hero-title { font-size: 1.35rem; }
  .navbar-collapse {
    background: #fff; border-radius: var(--radius);
    padding: .875rem; box-shadow: var(--shadow-md); margin-top: .5rem;
  }
  .navbar-nav .nav-link { padding: .45rem .75rem !important; }
  .hotline-label { display: none; }
  .hotline-number { font-size: .85rem; }
  .btn-register { font-size: .75rem; padding: .38rem .7rem; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero-section { padding: 1.75rem 0 2.25rem; }
  /* On phones the search moves up beside the logo (header), so hide the big
     hero search box and the Posts/Search refine panel here. */
  .hero-search,
  .search-panel { display: none !important; }
  /* Stack the search controls vertically — full-width fields + button read much
     better on a phone than the cramped 2x2 pill. */
  .search-row {
    flex-direction: column; align-items: stretch; gap: .5rem;
    border-radius: 16px; padding: .6rem;
  }
  .search-input, .search-select {
    flex: none; width: 100%;
    border: 1px solid #e3e3e3; border-radius: 10px;
    background-color: #fafafa; padding-top: .8rem; padding-bottom: .8rem;
  }
  .search-input { padding-left: 2.5rem; }
  .search-select { padding-left: .9rem; background-position: right .85rem center; }
  .btn-search {
    margin-left: 0; width: 100%; justify-content: center;
    padding: .85rem; border-radius: 10px; font-size: .85rem;
  }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .job-card { flex-wrap: wrap; }
  .job-actions { flex-direction: row; width: 100%; justify-content: flex-start; }
  .news-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-box { margin-top: 1.5rem; }
}
@media (max-width: 575px) {
  .region-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .logo-text .logo-name { font-size: 1.2rem; }
}

/* Legacy slider compat */
.slick-arrow { cursor: pointer; }
.card-album img { height: 150px; object-fit: cover; width: 100%; }
.card-album .card-body { padding: .5rem; font-size: .8rem; }

/* =====================================================
   VIETNAM MAP SVG (HERO RIGHT)
   ===================================================== */
.vietnam-map-svg { width: 110px; height: auto; flex-shrink: 0; }
.hero-map-wrap { display: flex; align-items: center; gap: 1.1rem; }
.map-province-labels { display: flex; flex-direction: column; gap: .55rem; }
.map-province-row {
  display: flex; align-items: center; gap: .5rem; position: relative;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(245,200,150,.55);
  border-radius: 22px; padding: .32rem .95rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; text-transform: uppercase; white-space: nowrap;
  transition: var(--transition);
}
.map-province-row:hover { background: rgba(245,166,35,.18); border-color: var(--gold); }
/* dashed connector stub on the left, toward the map */
.map-province-row::before {
  content: ''; position: absolute; left: -1.1rem; top: 50%; width: 1.1rem;
  border-top: 1.5px dashed rgba(245,200,150,.5);
}
.map-dot-red {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.25);
}

/* =====================================================
   HOME PAGE SECTION ROWS
   ===================================================== */
.home-main-row     { background: #fff; }
.home-partners-row { background: var(--gray-light); padding-top: 1.75rem; padding-bottom: 1.75rem; }
.home-news-row     { background: #fff; border-top: 1px solid var(--border); }

/* =====================================================
   REGION COLUMNS — 5-col strip within col-lg-7
   ===================================================== */
.region-cols-5 {
  display: flex; gap: .5rem; align-items: stretch;
  flex: 1 1 auto;            /* fill the left column height (no empty gap) */
  overflow-x: auto; padding-bottom: .25rem;
}
.region-cols-5::-webkit-scrollbar { height: 3px; }
.region-cols-5::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.rcol {
  /* Show exactly 4 columns per view (gap .5rem); extras scroll horizontally */
  flex: 0 0 calc(25% - .375rem); min-width: 120px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.rcol-empty { border: none !important; background: none !important; }

.rcol-header {
  background: #fff; color: var(--red);
  border-bottom: 1.5px solid #f0e3e3;
  padding: .5rem .3rem;
  font-size: .76rem; font-weight: 900; text-align: center; letter-spacing: .01em;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: .3rem;
  min-height: 40px;
}
.rcol-header i { color: var(--red); font-size: 1rem; }

.rcol-jobs {
  list-style: none; margin: 0; padding: .3rem .4rem;
  flex: 1 1 auto;   /* absorb height differences so all photos stay equal height */
}
.rcol-jobs li {
  font-size: .75rem; padding: .16rem 0;
  border-bottom: 1px dashed #f0f0f0;
  overflow: hidden;
}
.rcol-jobs li:last-child { border-bottom: none; }
/* Tên dài được xuống tối đa 2 dòng (thay vì cắt cụt bằng dấu "…"),
   quá 2 dòng mới cắt — thẻ chỉ cao thêm ~18px. */
.rcol-jobs a {
  color: #444; text-decoration: none; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal; line-height: 1.3;
}
.rcol-jobs a::before { content: '\203A'; color: var(--red); margin-right: .2rem; font-size: .85rem; }
.rcol-jobs a:hover { color: var(--red); }

.rcol-photo { width: 100%; flex: 0 0 auto; height: 112px; overflow: hidden; }
.rcol-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcol-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffe0e3, #ffc5cb);
  display: flex; align-items: center; justify-content: center;
  color: rgba(192,27,45,.3); font-size: 1.4rem;
}

.rcol-footer { text-align: center; padding: .3rem .25rem; border-top: 1px solid var(--border); }
.rcol-footer a {
  font-size: .75rem; color: #fff; background: var(--red);
  padding: .16rem .5rem; border-radius: 20px; text-decoration: none;
  display: inline-block; font-weight: 600; transition: var(--transition);
}
.rcol-footer a:hover { background: var(--red-dark); }

/* VIEW ALL JOBS — gold accent button */
.btn-view-all-jobs {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold); color: var(--dark);
  border: none; border-radius: var(--radius);
  padding: .55rem 2.2rem; font-size: .83rem; font-weight: 700;
  text-decoration: none; transition: var(--transition);
  letter-spacing: .03em;
}
.btn-view-all-jobs:hover { background: #e8950d; color: var(--dark); box-shadow: 0 4px 12px rgba(245,166,35,.4); }

/* =====================================================
   FEATURED JOBS PANEL — right col
   ===================================================== */
.featured-jobs-panel { height: 100%; }

/* Salary badge inline with title */
.job-salary-badge {
  flex-shrink: 0; font-size: .78rem; font-weight: 700;
  color: var(--red); white-space: nowrap; padding-top: .05rem;
}

/* Tags+button row */
.job-tags-row {
  display: flex; align-items: center; gap: .25rem;
  flex-wrap: wrap; margin-top: .3rem;
}
.job-tags-row .btn-apply  { margin-left: auto; flex-shrink: 0; }
.job-tags-row .btn-heart  { flex-shrink: 0; }

/* =====================================================
   PARTNER SLIDER WITH ARROWS (homepage left col)
   ===================================================== */
.partner-slider-wrap { display: flex; align-items: center; gap: .5rem; }
.partner-slides-inner { flex: 1; min-width: 0; overflow: hidden; }

.partner-arrow {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow);
}
.partner-arrow:hover { background: var(--red-dark); }

.partner-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  height: 100px; padding: .5rem .6rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: var(--transition); text-decoration: none;
}
.partner-logo-wrap:hover { box-shadow: var(--shadow); border-color: #ccc; }
.partner-logo-wrap img {
  max-height: 72px; width: 100%; object-fit: contain;
  filter: grayscale(25%); transition: var(--transition);
}
.partner-logo-wrap:hover img { filter: none; }
.partner-name-text {
  font-size: .75rem; font-weight: 700;
  color: var(--gray); text-align: center; padding: .25rem;
}

/* =====================================================
   NEWS READ MORE LINK
   ===================================================== */
.news-read-more {
  font-size: .75rem; color: var(--red); font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center;
  gap: .22rem; margin-top: .45rem;
}
.news-read-more:hover { color: var(--red-dark); text-decoration: underline; }

/* =====================================================
   CONNECT BOX — phone link
   ===================================================== */
.connect-phone a { color: #fff; text-decoration: none; }
.connect-phone a:hover { color: var(--gold); }

/* =====================================================
   RESPONSIVE — 2-col layout adjustments
   ===================================================== */
@media (max-width: 991px) {
  .home-partners-row { background: #fff; }
  .region-cols-5 { overflow-x: scroll; }
  .rcol { min-width: 105px; }
  .partner-slider-wrap { gap: .35rem; }
  .partner-arrow { width: 30px; height: 30px; font-size: .78rem; }
}
@media (max-width: 767px) {
  /* Mobile: hiển thị 3 cột/khung (thay vì 4) cho đỡ chật, phần dư vẫn trượt ngang.
     gap .5rem → mỗi cột bớt 2/3 gap = .34rem. */
  .rcol { flex: 0 0 calc(33.333% - .34rem); min-width: 95px; }
  .rcol-header { font-size: .75rem; }
  .rcol-jobs a { font-size: .75rem; }
  .btn-view-all-jobs { padding: .45rem 1.5rem; }
}
@media (max-width: 575px) {
  .rcol { min-width: 85px; }
  .hero-map-wrap { gap: .5rem; }
  .vietnam-map-svg { width: 70px; }
  /* Nút liên hệ nổi: thu nhỏ trên điện thoại để bớt che nội dung,
     vẫn giữ nguyên vị trí góc trái-dưới. */
  .float-contact { gap: .45rem; }
  .float-btn { width: 38px; height: 38px; }
  .float-fb-btn { font-size: 1.05rem; }
  .float-zalo-btn .zalo-wordmark { font-size: .8rem; }
}

/* ============================================================
   MODERN REDESIGN 2026 — job cards, image fallbacks, mobile menu
   ============================================================ */

/* ---- Image fallback: branded placeholder behind, image on top.
        If the <img> 404s, onerror removes it and the placeholder shows. ---- */
.job-logo-wrap {
  position: relative; width: 60px; height: 60px; border-radius: 12px;
  border: 1px solid #f0e3e3; background: #fff; overflow: hidden;
}
.job-logo-wrap .job-logo-placeholder {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fde9ea, #f8d2d6); color: var(--red); font-size: 1.35rem;
}
.job-logo-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 5px; background: #fff;
}

/* News/post grid card image with same fallback */
.card-post-imglink { position: relative; display: block; height: 168px; overflow: hidden;
  border-radius: 12px 12px 0 0; }
.card-post-imgph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f7e9ea, #f1d3d7); color: var(--red); font-size: 2rem; }
.card-post-imglink img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; }
.card-post-item:hover .card-post-imglink img { transform: scale(1.06); }

/* News card (home "Tin tức" + HSSV "Hoạt động") image with branded fallback */
.news-card-imglink { position: relative; overflow: hidden; min-height: 170px; }
.news-img-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f7e9ea, #f1d3d7); color: var(--red); font-size: 2rem;
}
.news-card-imglink .news-card-img { position: absolute; inset: 0; height: 100%; transition: transform .4s ease; }
.news-card:hover .news-card-imglink .news-card-img { transform: scale(1.05); }
.news-card-h .news-card-imglink { min-height: 150px; height: 100%; }

/* ---- Modern job card ---- */
.job-card {
  border-radius: 16px; border: 1px solid #f1e6e6;
  box-shadow: 0 1px 3px rgba(20,0,5,.04); padding: 1rem 1.1rem; gap: .95rem;
  position: relative; overflow: hidden;
}
.job-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold)); opacity: 0; transition: opacity .2s;
}
.job-card:hover {
  transform: translateY(-3px); box-shadow: 0 12px 30px rgba(192,27,45,.13); border-color: #f3c9cd;
}
.job-card:hover::before { opacity: 1; }
.job-title { font-size: .92rem; line-height: 1.32; }
.job-salary {
  display: inline-block; background: #fff3e0; color: #e65c00;
  padding: .12rem .55rem; border-radius: 8px; font-size: .8rem;
}
.job-tag { border-radius: 999px; padding: .16rem .6rem; font-size: .75rem; }

/* Apply button + heart — softer, friendlier */
.btn-apply {
  border-radius: 999px; padding: .42rem .95rem; font-weight: 700; letter-spacing: .2px;
  background: linear-gradient(135deg, var(--red), #e0344a);
  box-shadow: 0 3px 10px rgba(192,27,45,.28); border: none;
}
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(192,27,45,.38); background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.btn-heart {
  border-radius: 50%; width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0; border: 1px solid #ead7d9;
}
.btn-heart:hover { background: #fde9ea; }

/* ---- Mobile menu: modern, aligned, with inline (accordion) dropdowns ---- */
@media (max-width: 991px) {
  .navbar-collapse { border: 1px solid #f1e2e2; padding: .5rem .65rem; }
  .navbar-nav > .nav-item { border-bottom: 1px solid #f6ecec; }
  .navbar-nav > .nav-item:last-child { border-bottom: 0; }
  .navbar-nav .nav-link { font-weight: 600; display: flex; align-items: center; }
  .navbar-nav .dropdown-toggle::after { margin-left: auto; }

  /* HSSV item: align left + drop the desktop "button" look + single line */
  .navbar-nav .nav-item.hssv-item .nav-link {
    text-align: left !important; background: none !important; color: var(--dark) !important;
    border-radius: 0 !important; padding: .45rem .75rem !important;
  }
  .navbar-nav .nav-item.hssv-item .nav-link br { display: none; }

  /* Dropdown submenus expand inline (push content) instead of floating */
  .navbar-nav .dropdown-menu {
    position: static !important; float: none; border: 0; box-shadow: none;
    margin: 0 0 .35rem; padding: .15rem 0 .35rem .85rem;
    background: #fbf6f6; border-radius: 10px;
  }
  .navbar-nav .dropdown-menu .dropdown-item {
    padding: .42rem .7rem; font-size: .85rem; border-radius: 8px; white-space: normal;
  }
  .navbar-nav .dropdown-menu .dropdown-item:hover { background: #fde9ea; color: var(--red); }
}

/* ============================================================
   ABOUT / "Về Tâm Đức" page (/gioi-thieu)
   ============================================================ */
.about-hero {
  background: linear-gradient(120deg, #8b0012 0%, #b51422 35%, #c01b2d 60%, #7d141b 100%);
  color: #fff; padding: 1.4rem 0 2.6rem; position: relative;
}
.about-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.about-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.about-breadcrumb .breadcrumb-item.active { color: #ffd76a; }
.about-hero-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 900; margin: 0 0 1rem; }
.about-hero-intro p { font-size: 1.02rem; line-height: 1.75; color: rgba(255,255,255,.92); margin-bottom: .7rem; }
.about-hero-img { width: 100%; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); object-fit: cover; }

/* Stats band */
.about-stats { background: #fff; }
.about-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: linear-gradient(120deg, #c01b2d, #8b0012);
  border-radius: 16px; padding: 1.6rem 1rem; margin-top: -2rem; position: relative; z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.about-stat { text-align: center; color: #fff; padding: .3rem .6rem; }
.about-stat + .about-stat { border-left: 1px solid rgba(255,255,255,.18); }
.about-stat-num { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: #ffd76a; line-height: 1.1; }
.about-stat-label { font-size: .9rem; color: rgba(255,255,255,.9); margin-top: .35rem; }

/* Content sections */
.about-section { padding: 3rem 0; }
.about-section--alt { background: #f6f8fb; }
.about-section-title {
  text-align: center; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: #1f2430;
  margin: 0 0 1.6rem; position: relative; padding-bottom: .7rem;
}
.about-section-title::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 70px; height: 4px; border-radius: 3px; background: #e6a700;
}
.about-section-body { max-width: 920px; margin: 0 auto; font-size: 1.02rem; line-height: 1.8; color: #333; }
.about-section-body p { margin-bottom: .9rem; }
.about-section-body ul { list-style: none; padding-left: 0; margin: 0; }
.about-section-body ul li {
  position: relative; padding: .55rem .5rem .55rem 2.2rem; margin-bottom: .6rem;
  background: #fff; border: 1px solid #e6eaf0; border-radius: 10px;
}
.about-section--alt .about-section-body ul li { background: #fff; }
.about-section-body ul li::before {
  content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
  position: absolute; left: .8rem; top: .65rem; color: #1f7a3d;
}

/* Partners */
.about-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.about-partner {
  background: #fff; border: 1px solid #e6eaf0; border-radius: 10px; padding: .9rem 1.2rem;
  height: 84px; min-width: 150px; display: flex; align-items: center; justify-content: center;
}
.about-partner img { max-height: 56px; max-width: 140px; object-fit: contain; }
.about-partner span { font-weight: 600; color: #444; }

/* CTA */
.about-cta { background: linear-gradient(120deg, #1f2430, #3a1014 60%, #7d141b); color: #fff; padding: 3rem 0; }
.about-cta-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin: 0 0 .5rem; }
.about-cta-sub { color: rgba(255,255,255,.85); margin-bottom: 1.4rem; }
.about-cta-btn {
  display: inline-flex; align-items: center; background: #e6a700; color: #3a2a00; font-weight: 800;
  padding: .8rem 1.8rem; border-radius: 999px; text-decoration: none; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(230,167,0,.4); transition: transform .15s, background .15s;
}
.about-cta-btn:hover { background: #ffc107; transform: translateY(-2px); color: #3a2a00; }

@media (max-width: 767px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .about-stat:nth-child(3) { border-left: 0; }
  .about-stat + .about-stat:nth-child(odd) { border-left: 0; }
  .about-section { padding: 2rem 0; }
}

/* Contact page — DB-driven info box (offices from BranchOffices) */
.contact-info-office { margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed #f0d0d0; }
.contact-info-office:first-of-type { margin-top: 1rem; }
.contact-office-name { font-weight: 700; color: #1f2430; margin-bottom: .2rem; }

/* Sapo / tóm tắt đầu bài viết — khung viền đỏ nét đứt (tham khảo bản cũ) */
.post-sapo {
  border: 1.5px dashed var(--red);
  border-radius: 8px;
  background: #fffafa;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.5rem;
  color: #222;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  white-space: pre-line;
}
@media (max-width: 575px) {
  .post-sapo { padding: .9rem 1rem; font-size: 1rem; line-height: 1.7; }
}

/* Cột phải bài viết: dính (sticky) khi cuộn để không bị trống khoảng dưới */
@media (min-width: 992px) {
  .post-sidebar-sticky { position: sticky; top: 90px; }
}
