/**
* Template Name: UpConstruction - v1.3.0
* Template URL: https://bootstrapmade.com/upconstruction-bootstrap-construction-website-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Set main reusable colors and fonts using CSS variables
# Learn more about CSS variables at https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
--------------------------------------------------------------*/
/* Fonts */
:root {
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Work Sans", sans-serif;
}

/* Colors */
:root {
  --color-default: #364d59;
  --color-primary: #154D7C;
  --color-secondary: #52565e;
  --header-height: 60px;
}

/* Smooth scroll behavior */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--font-default);
  color: var(--color-default);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: #2A7BC4;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-bg {
  background-color: #f5f6f7;
}

.section-header {
  text-align: center;
  padding-bottom: 70px;
}

.section-header-compact {
  padding-bottom: 20px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  color: #2e3135;
}

.section-header h2:before,
.section-header h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.section-header h2:before {
  margin: 0 15px 10px 0;
}

.section-header h2:after {
  margin: 0 0 10px 15px;
}

.section-header p {
  margin: 0 auto 0 auto;
}

@media (min-width: 1199px) {
  .section-header p {
    max-width: 60%;
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 140px 0 60px 0;
  min-height: 30vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.breadcrumbs:before {
  content: "";
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
}

.breadcrumbs h1,
.breadcrumbs h2 {
  font-size: 56px;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-secondary);
}

@media (max-width: 767px) {
  .breadcrumbs h1,
  .breadcrumbs h2 {
    font-size: 34px;
    line-height: 1.25;
  }
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #86c3e6;
}

.breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

.breadcrumbs ol a:hover {
  text-decoration: underline;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #fff;
  content: "/";
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  background: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(21, 77, 124, 0.3);
  transition: all 0.3s ease;
  color: #fff;
}

.scroll-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: #2A7BC4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 77, 124, 0.4);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader (chữ B logo BIMLab, nước dâng dần dạng 2 gợn sóng,
# tải xong thì mở dần vào trang trong 0.5s)
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Chữ B rộng khoảng 50px */
#preloader .bl-mark {
  width: 53px;
  height: auto;
  aspect-ratio: 415 / 435;
  overflow: visible;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#preloader .bl-base path {
  fill: #e9edf1;
}

/* Tải xong: chữ B phóng nhẹ ra và mờ đi, trang mở dần */
#preloader.bl-done {
  opacity: 0;
  visibility: hidden;
}

#preloader.bl-done .bl-mark {
  transform: scale(1.6);
  opacity: 0;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  z-index: 997;
  position: fixed;
  padding: 0;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

/* Header centered logo layout - Desktop/tablet lg+ (992px+, giống panel laptop) */
@media (min-width: 992px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  /* Logo: chính giữa màn hình */
  .header-container .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  /* Left: 50% width, nav items distributed evenly */
  .header-container .navbar-left {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 120px; /* space for logo */
  }

  .header-container .navbar-left ul {
    justify-content: flex-end;
    gap: 28px;
    padding: 0;
  }

  .header-container .navbar-left ul li {
    padding: 10px 0;
  }

  /* Right: 50% width, nav items left, language sát mé phải */
  .header-container .header-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 120px; /* space for logo */
  }

  .header-right .navbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-right: 20px; /* space before language switcher */
  }

  .header-right .navbar-right ul {
    justify-content: flex-start;
    gap: 28px;
    padding: 0;
  }

  .header-right .navbar-right ul li {
    padding: 10px 0;
  }

  .header-right .language-switcher-desktop {
    margin-left: auto;
    flex-shrink: 0;
  }

  .navbar-left,
  .navbar-right {
    display: flex;
    align-items: center;
  }
}

/* Thu gọn menu trên tablet (992px–1199px) để vừa khung */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-container .navbar-left ul {
    gap: 14px;
  }

  .header-right .navbar-right ul {
    gap: 14px;
  }

  .header-container .navbar-left > ul > li,
  .header-right .navbar-right > ul > li {
    padding-left: 8px;
  }

  .header-container .navbar-left a,
  .header-right .navbar-right a {
    font-size: 12px;
    padding: 0 2px;
  }

  .header-container .navbar-left {
    padding-right: 100px;
  }

  .header-container .header-right {
    padding-left: 100px;
  }
}

/* Mobile & narrow tablet: logo trái, nút menu */
@media (max-width: 991.98px) {
  .header-container {
    justify-content: space-between;
  }
}

.header .logo {
  padding: 8px 8px 8px 0;
}

/* Logo bubble effect - white rounded shape, đều các góc */
.header .logo.logo-bubble {
  padding: 20px 28px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chỉ trên màn hình nhỏ: bỏ khung quanh logo */
@media (max-width: 991.98px) {
  .header .logo.logo-bubble {
    padding: 8px 8px 8px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

.header .logo.logo-bubble img {
  margin-right: 0;
  padding-top: 6px;
}

.header .logo img {
  max-height: 50px;
  width: auto;
  height: auto;
  margin-right: 6px;
  object-fit: contain;
}

.header .logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #364d59;
  margin-bottom: 0;
  font-family: var(--font-primary);
}

.header .logo h1 span {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Language Switcher
--------------------------------------------------------------*/
.language-switcher {
  margin-left: 20px;
  position: relative;
}

.language-switcher .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  border: none;
  background: transparent;
  cursor: pointer;
}

.language-switcher .dropdown-toggle:hover {
  color: var(--color-primary);
  background-color: rgba(21, 77, 124, 0.1);
}

.language-switcher .dropdown-toggle .lang-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.language-switcher .dropdown-toggle .lang-text {
  font-weight: 500;
}

.language-switcher .dropdown-toggle i {
  font-size: 12px;
  margin-left: 2px;
  transition: transform 0.3s;
}

.language-switcher .dropdown-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Hide Bootstrap's default dropdown arrow if it exists */
.language-switcher .dropdown-toggle::after {
  display: none !important;
}

.language-switcher .dropdown-menu {
  min-width: 160px;
  padding: 8px 0;
  margin-top: 8px;
  border: none;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  border-radius: 4px;
}

/* Ensure dropdown closes when item is selected */
.language-switcher .dropdown-menu:not(.show) {
  display: none !important;
}

.language-switcher .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--color-default);
  font-size: 14px;
  transition: all 0.3s;
}

.language-switcher .dropdown-item:hover {
  color: var(--color-primary);
  background-color: rgba(21, 77, 124, 0.05);
}

.language-switcher .dropdown-item.active {
  color: var(--color-primary);
  font-weight: 600;
  background-color: rgba(21, 77, 124, 0.1);
}

.language-switcher .dropdown-item .lang-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

/* Language Switcher in Mobile Menu */
.language-switcher-mobile {
  margin-top: 10px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switcher-mobile .language-switcher {
  margin-left: 0;
}

.language-switcher-mobile .dropdown-toggle {
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 0;
}

.language-switcher-mobile .dropdown-toggle:hover {
  color: #fff;
  background-color: transparent;
}

.language-switcher-mobile .dropdown-menu {
  position: static !important;
  transform: none !important;
  margin-top: 5px;
  margin-left: 0;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switcher-mobile .dropdown-item {
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
}

.language-switcher-mobile .dropdown-item:hover,
.language-switcher-mobile .dropdown-item.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
  /* Hide desktop language switcher on mobile/narrow */
  .language-switcher-desktop {
    display: none !important;
  }
  
  /* Show mobile language switcher */
  .language-switcher-mobile {
    display: block;
  }
}

@media (min-width: 992px) {
  /* Hide mobile language switcher on desktop/tablet panel */
  .language-switcher-mobile {
    display: none !important;
  }
  
  /* Show desktop language switcher */
  .language-switcher-desktop {
    display: block;
  }
}

/* Giới hạn text menu dropdown Dịch vụ & Đào tạo - tránh tràn khi tên dài */
.navbar .dropdown ul a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navbar .dropdown ul {
  max-width: 320px;
}
.navbar .dropdown ul li {
  max-width: 320px;
}

/*--------------------------------------------------------------
# Desktop Navigation (tablet lg+ cùng kiểu laptop)
--------------------------------------------------------------*/
@media (min-width: 992px) {
  .navbar {
    padding: 0;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navbar li {
    position: relative;
  }

  .navbar>ul>li {
    white-space: nowrap;
    padding: 10px 0 10px 20px;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: #52565e;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--color-primary);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navbar a:hover:before,
  .navbar li:hover>a:before,
  .navbar .active:before {
    visibility: visible;
    width: 100%;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: var(--color-primary);
  }

  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 30px);
    margin: 0;
    padding: 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
  }

  .navbar .dropdown ul li {
    min-width: 200px;
  }

  .navbar .dropdown ul a {
    padding: 0px 10px;
    font-size: 15px;
    text-transform: none;
    color: var(--color-default);
    font-weight: 400;
    display: block;
  }

  .navbar .dropdown ul a i {
    font-size: 12px;
  }

  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover>a {
    color: var(--color-primary);
  }

  .navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
  }

  .navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

@media (min-width: 992px) and (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

@media (min-width: 992px) {

  .mobile-nav-show,
  .mobile-nav-hide {
    display: none;
  }
}

/*--------------------------------------------------------------
# Mobile Navigation (màn hình < lg)
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    bottom: 0;
    transition: 0.3s;
    z-index: 9997;
  }

  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 50px 0 10px 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    text-transform: uppercase;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: #fff;
  }

  .navbar .dropdown ul,
  .navbar .dropdown .dropdown ul {
    position: static;
    display: none;
    padding: 0;
    margin: 10px 20px;
    transition: all 0.5s ease-in-out;
    border: 1px solid #222428;
  }

  .navbar .dropdown>.dropdown-active,
  .navbar .dropdown .dropdown>.dropdown-active {
    display: block;
  }

  .mobile-nav-show {
    position: relative;
    color: #364d59;
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    z-index: 9999;
    padding-right: 10px;
  }

  .mobile-nav-hide {
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 9999;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navbar {
    right: 0;
  }

  .mobile-nav-active .navbar:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9996;
  }
}

/*--------------------------------------------------------------
# Get Started Section
--------------------------------------------------------------*/
.get-started .content {
  padding: 30px 0;
}

.get-started .content h3 {
  font-size: 36px;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 25px;
  position: relative;
}

.get-started .content h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.get-started .content p {
  font-size: 14px;
  text-align: justify;
}

.get-started .php-email-form {
  background: #fff;
  padding: 30px;
  height: 100%;
}

@media (max-width: 575px) {
  .get-started .php-email-form {
    padding: 20px;
  }
}

.get-started .php-email-form h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.get-started .php-email-form p {
  font-size: 14px;
  margin-bottom: 20px;
}

.get-started .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #df1529;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.get-started .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.get-started .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.get-started .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #059652;
  border-top-color: #fff;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.get-started .php-email-form input,
.get-started .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.get-started .php-email-form input:focus,
.get-started .php-email-form textarea:focus {
  border-color: var(--color-primary);
}

.get-started .php-email-form input {
  padding: 12px 15px;
}

.get-started .php-email-form textarea {
  padding: 12px 15px;
}

.get-started .php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.get-started .php-email-form button[type=submit]:hover {
  background: rgba(21, 77, 124, 0.8);
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Constructions Section
--------------------------------------------------------------*/
.constructions .card-item {
  border: 1px solid rgba(82, 86, 94, 0.2);
  background: #fff;
  position: relative;
  border-radius: 0;
}

.constructions .card-item .card-bg {
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.constructions .card-item .card-body {
  padding: 30px;
}

.constructions .card-item h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.constructions .card-item p {
  color: var(--color-secondary);
  margin: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  padding: 40px;
  background: #fff;
  height: 100%;
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 50px;
}

.services .service-item .icon i {
  color: var(--color-secondary);
  font-size: 40px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
  line-height: 1.8;
}

.services .service-item .icon:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: #f0f1f2;
  border-radius: 50px;
  z-index: 1;
  top: 10px;
  right: -15px;
  transition: 0.3s;
}

.services .service-item h3 {
  color: var(--color-default);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid #ebebed;
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item .readmore {
  margin-top: 15px;
  display: inline-block;
  color: var(--color-primary);
}

.services .service-item:hover .icon:before {
  background: #86c3e6;
}

.services .service-item:hover h3 {
  border-color: #86c3e6;
}

/*--------------------------------------------------------------
# Services Card - Home page (hover overlay style)
--------------------------------------------------------------*/
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d5d7da;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #86c3e6;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.service-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon i {
  font-size: 28px;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.service-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-default);
  padding-bottom: 6px;
  border-bottom: 3px solid #ebebed;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon i,
.service-card:hover .service-card-header h3 {
  color: #86c3e6;
}

.service-card:hover .service-card-header h3 {
  border-bottom-color: #86c3e6;
}

.service-card-image {
  position: relative;
  flex: 1;
  height: 220px;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(134, 195, 230, 0.9);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-overlay {
  opacity: 1;
  visibility: visible;
}

.service-card-overlay p {
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  padding: 15px 0;
  transition: 0.3s;
  color: var(--color-secondary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 4px solid #e2e4e6;
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 575px) {
  .features .nav-link h4 {
    font-size: 16px;
  }
}

.features .nav-link:hover {
  color: var(--color-primary);
}

.features .nav-link.active {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--color-primary);
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Our Projects Section
--------------------------------------------------------------*/
.projects .portfolio-flters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.projects .portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.projects .portfolio-flters li:hover,
.projects .portfolio-flters li.filter-active {
  color: var(--color-primary);
}

.projects .portfolio-flters li:first-child {
  margin-left: 0;
}

.projects .portfolio-flters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .projects .portfolio-flters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.projects .portfolio-content {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}

.projects .portfolio-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.projects .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.projects .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #fff;
  display: inline-block;
  background-color: var(--color-primary);
}

.projects .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.projects .portfolio-content .portfolio-info .preview-link,
.projects .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.projects .portfolio-content .portfolio-info .preview-link:hover,
.projects .portfolio-content .portfolio-info .details-link:hover {
  color: var(--color-primary);
}

.projects .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.projects .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.projects .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial-wrap {
  padding-left: 50px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px 30px 30px 60px;
  margin: 0 15px 30px 0;
  min-height: 200px;
  box-shadow: 0px 2px 20px rgba(82, 86, 94, 0.1);
  position: relative;
  background: #fff;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 10px;
  border: 6px solid #fff;
  position: absolute;
  left: -45px;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #000;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #ffd565;
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px auto 15px auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #d5d7da;
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

@media (max-width: 767px) {
  .testimonials .testimonial-wrap {
    padding-left: 0;
  }

  .testimonials .testimonials-carousel,
  .testimonials .testimonials-slider {
    overflow: hidden;
  }

  .testimonials .testimonial-item {
    padding: 30px;
    margin: 15px;
  }

  .testimonials .testimonial-item .testimonial-img {
    position: static;
    left: auto;
  }
}

/*--------------------------------------------------------------
# Alt Services Section
--------------------------------------------------------------*/
.alt-services .img-bg {
  background-size: cover;
  background-position: center center;
  min-height: 400px;
}

.alt-services h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.alt-services h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.alt-services .icon-box {
  margin-top: 50px;
}

.alt-services .icon-box i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: 0.3s;
}

.alt-services .icon-box:hover i {
  background-color: var(--color-primary);
  color: #fff;
}

.alt-services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services .icon-box h4 a {
  color: #000;
  transition: 0.3s;
}

.alt-services .icon-box h4 a:hover {
  color: var(--color-primary);
}

.alt-services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Technology Cards Section
--------------------------------------------------------------*/
.technology-cards .tech-cards-container {
  position: relative;
}

.technology-cards .tech-cards-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 50px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.technology-cards .tech-cards-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.technology-cards .tech-cards-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.technology-cards .tech-cards-arrow:hover:not(.disabled) {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.technology-cards .tech-cards-arrow:active:not(.disabled) {
  transform: translateY(-50%) scale(0.98);
}

.technology-cards .tech-cards-arrow.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.technology-cards .tech-cards-arrow-prev {
  left: -12px;
}

.technology-cards .tech-cards-arrow-next {
  right: -12px;
}

@media (max-width: 767px) {
  .technology-cards .tech-cards-scroll-wrapper {
    padding: 0 42px;
  }

  .technology-cards .tech-cards-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .technology-cards .tech-cards-arrow-prev {
    left: 0;
  }

  .technology-cards .tech-cards-arrow-next {
    right: 0;
  }

  /* Equal height cards on mobile: fixed content height */
  .technology-cards .tech-cards-row {
    align-items: stretch;
  }

  .technology-cards .tech-card {
    align-self: stretch;
  }

  .technology-cards .tech-card-content {
    height: 200px;
    min-height: 200px;
    overflow: hidden;
  }

  .technology-cards .tech-card-image {
    flex-shrink: 0;
    aspect-ratio: 4/3;
    min-height: 135px;
  }
}

.technology-cards .tech-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.technology-cards .tech-card {
  flex: 0 0 calc(20% - 3px);
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.technology-cards .tech-card-content {
  background: var(--color-primary);
  color: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
}

.technology-cards .tech-card-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3px 8px;
  margin-bottom: 10px;
  width: fit-content;
}

.technology-cards .tech-card-number {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.technology-cards .tech-card-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.technology-cards .tech-card-content p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.technology-cards .tech-card-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  min-height: 140px;
}

@media (min-width: 768px) {
  .technology-cards .tech-card {
    flex: 0 0 calc(20% - 4px);
    min-width: 220px;
  }

  .technology-cards .tech-card-content {
    height: 220px;
    min-height: 220px;
    padding: 22px 18px;
  }

  .technology-cards .tech-card-content h4 {
    font-size: 16px;
  }

  .technology-cards .tech-card-content p {
    font-size: 13px;
  }

  .technology-cards .tech-card-image {
    min-height: 160px;
  }
}

@media (min-width: 1200px) {
  .technology-cards .tech-card {
    flex: 0 0 calc(20% - 4px);
    min-width: 0;
  }

  .technology-cards .tech-card-content {
    min-height: 200px;
    padding: 24px 20px;
  }

  .technology-cards .tech-card-content h4 {
    font-size: 16px;
  }

  .technology-cards .tech-card-image {
    min-height: 180px;
  }
}

/*--------------------------------------------------------------
# About Us Section (Home - Về chúng tôi)
--------------------------------------------------------------*/
#about-us .content {
  text-align: justify;
}

/*--------------------------------------------------------------
# Căn lề hai bên - Projects, News, Section headers (Trang chủ)
--------------------------------------------------------------*/
.projects .portfolio-content .portfolio-info {
  text-align: justify;
}

.recent-blog-posts .post-item .post-content,
.blog .posts-list .post-content,
.blog .blog-details .content {
  text-align: justify;
}

.section-header p {
  text-align: center;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about h2 {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-secondary);
  margin: 30px 0;
}

@media (min-width: 991px) {
  .about h2 {
    max-width: 65%;
    margin: 0 0 80px 0;
  }
}

.about .our-story {
  padding: 40px;
  background-color: #f5f6f7;
}

@media (min-width: 991px) {
  .about .our-story {
    padding-right: 35%;
  }
}

.about .our-story h4 {
  text-transform: uppercase;
  font-size: 18px;
  color: #838893;
}

.about .our-story h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.about .our-story p:last-child {
  margin-bottom: 0;
}

.about ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.about ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: 20px;
  margin-right: 4px;
  color: var(--color-primary);
}

.about .watch-video i {
  font-size: 32px;
  transition: 0.3s;
  color: var(--color-primary);
}

.about .watch-video a {
  font-weight: 600;
  color: var(--color-secondary);
  margin-left: 8px;
  transition: 0.3s;
}

.about .watch-video:hover a {
  color: var(--color-primary);
}

.about .about-img {
  min-height: 600px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px) {
  .about .about-img {
    position: absolute;
    top: 0;
    right: 0;
  }
}

/* Override for section-header h2 in about section to ensure center alignment */
.about .section-header h2 {
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/*--------------------------------------------------------------
# Overview Section (Tổng quan)
--------------------------------------------------------------*/
.overview-section {
  padding: 60px 0 40px;
}
.overview-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overview-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #144f7b;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}
.overview-list {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
}
.overview-row {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}
.overview-row:last-child {
  border-bottom: none;
}
.overview-row-alt {
  background: #f5f5f5;
}
.overview-label {
  flex: 0 0 200px;
  padding: 12px 16px;
  font-weight: 700;
  color: #364d59;
  font-size: 14px;
  border-right: 1px solid #e8e8e8;
}
.overview-value {
  flex: 1;
  padding: 12px 16px;
  color: #364d59;
  font-size: 14px;
}
@media (max-width: 576px) {
  .overview-row {
    flex-direction: column;
    min-height: 0;
  }
  .overview-label {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
  }
}

/* Section header titles - smaller on mobile (đồng bộ toàn site) */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 22px;
  }
}

/*--------------------------------------------------------------
# Stats Counter Section
--------------------------------------------------------------*/
.stats-counter .stats-item {
  background: #fff;
  box-shadow: 0px 0 30px rgba(82, 86, 94, 0.05);
  padding: 30px;
}

.stats-counter .stats-item i {
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
  color: var(--color-primary);
}

.stats-counter .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: var(--color-secondary);
}

.stats-counter .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Our Team Section
--------------------------------------------------------------*/
.team .member {
  position: relative;
}

.team .member .member-img {
  margin: 0 80px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

@media (max-width: 1024px) {
  .team .member .member-img {
    margin: 0 60px;
  }
}

.team .member .member-img img {
  position: relative;
  z-index: 1;
}

/* Avatar chữ cái đầu khi chưa có ảnh chân dung thật */
.team .member .member-avatar {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6eef6, #cfdeee);
  color: #1e4f80;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 1px;
}

.team .member .member-img .social {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding-bottom: 20px;
  transition: 0.3s;
  visibility: hidden;
  opacity: 0;
}

.team .member .member-img .social a {
  transition: 0.3s;
  color: #fff;
  font-size: 20px;
  margin: 0 8px;
}

.team .member .member-img .social a:hover {
  color: var(--color-primary);
}

.team .member .member-info {
  margin-top: 30px;
}

.team .member .member-info h4 {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--color-secondary);
}

.team .member .member-info span {
  font-style: italic;
  display: block;
  font-size: 15px;
  color: #838893;
  margin-bottom: 10px;
}

.team .member .member-info p {
  margin-bottom: 0;
  font-size: 14px;
}

.team .member:hover .member-img .social {
  padding-bottom: 0;
  visibility: visible;
  opacity: 1;
}

.team .member-profile-link {
  display: block;
  color: inherit;
}

.team .member-profile-link .member-img img {
  transition: transform 0.35s ease;
}

.team .member-profile-link:hover .member-img img {
  transform: scale(1.05);
}

.team .team-board-group .member .member-profile-link:hover .member-info h4 {
  color: #2a7bc4;
}

.team .member-profile-link:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(42, 123, 196, 0.45);
  outline-offset: 6px;
}

/* Board / Executive group blocks - one block per group (title + chairman + row) */
.team .team-board-group {
  margin-bottom: 4rem;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}
.team .team-board-group:last-of-type {
  margin-bottom: 2rem;
}
.team .team-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #144f7b;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.team .team-board-group .member .member-info h4 {
  color: #144f7b;
  font-size: 1rem;
  font-weight: 600;
}
.team .team-board-group .member .member-info .member-role {
  color: #838893;
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}
.team .team-board-group .chairman-row {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.team .team-board-group .chairman-row .member {
  max-width: 220px;
}
.team .team-board-group .chairman-row .member .member-img {
  margin: 0 auto;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.team .team-board-group .chairman-row .member .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team .team-board-group .members-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}
.team .team-board-group .members-row .member {
  flex: 0 1 200px;
  max-width: 220px;
}
.team .team-board-group .members-row .member .member-img {
  margin: 0 auto;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.team .team-board-group .members-row .member .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .team .team-board-group {
    padding: 1.5rem 1rem;
  }
  .team .team-board-group .chairman-row .member .member-img,
  .team .team-board-group .members-row .member .member-img {
    width: 120px;
    height: 120px;
  }
  .team .team-board-group .members-row .member {
    flex: 0 1 140px;
  }
  .team .team-board-group .members-row {
    gap: 1.5rem;
  }
}

/*--------------------------------------------------------------
# Leadership Profile
--------------------------------------------------------------*/
.leadership-profile,
.profile-responsibilities,
.profile-cta {
  --profile-navy: #0c3556;
  --profile-blue: #154d7c;
  --profile-sky: #dceef8;
  --profile-ink: #183343;
}

.leadership-profile {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(42, 123, 196, 0.13), transparent 32%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.leadership-profile::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(21, 77, 124, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(21, 77, 124, 0.025), 0 0 0 112px rgba(21, 77, 124, 0.018);
  pointer-events: none;
}

.profile-portrait-wrap {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 28px 32px 0;
}

.profile-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 42px 0 0 42px;
  border-radius: 24px;
  background: var(--profile-blue);
}

.profile-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(12, 53, 86, 0.2);
}

.profile-photo-caption {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 0;
  max-width: 230px;
  padding: 18px 22px;
  border: 1px solid rgba(21, 77, 124, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 35px rgba(12, 53, 86, 0.16);
  color: var(--profile-ink);
  font-weight: 700;
  line-height: 1.35;
}

.profile-photo-caption i {
  display: block;
  margin-bottom: 8px;
  color: var(--profile-blue);
  font-size: 24px;
}

.profile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--profile-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--profile-blue);
}

.profile-heading {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--profile-navy);
  font-family: var(--font-secondary);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.profile-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(21, 77, 124, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--profile-blue);
  font-size: 14px;
  font-weight: 700;
}

.profile-role i {
  font-size: 15px;
}

.profile-intro {
  max-width: 680px;
  margin-bottom: 34px;
  color: #516875;
  font-size: 18px;
  line-height: 1.8;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.profile-fact {
  padding: 20px;
  border-left: 3px solid var(--profile-blue);
  border-radius: 0 12px 12px 0;
  background: rgba(220, 238, 248, 0.55);
}

.profile-fact-label {
  display: block;
  margin-bottom: 5px;
  color: #6b7f8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-fact strong {
  color: var(--profile-navy);
  font-size: 16px;
}

.profile-responsibilities {
  padding: 88px 0;
  background: #fff;
}

.profile-section-heading {
  max-width: 680px;
  margin-bottom: 40px;
}

.profile-section-heading h2 {
  margin-bottom: 14px;
  color: var(--profile-navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.profile-section-heading p {
  margin: 0;
  color: #6b7f8a;
  font-size: 17px;
  line-height: 1.7;
}

.profile-responsibility-card {
  height: 100%;
  padding: 32px;
  border: 1px solid #e4edf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(12, 53, 86, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-responsibility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(12, 53, 86, 0.12);
}

.profile-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--profile-sky);
  color: var(--profile-blue);
  font-size: 25px;
}

.profile-responsibility-card h3 {
  margin-bottom: 12px;
  color: var(--profile-navy);
  font-size: 21px;
  font-weight: 700;
}

.profile-responsibility-card p {
  margin: 0;
  color: #617784;
  line-height: 1.75;
}

.profile-cta {
  padding: 72px 0;
  background: var(--profile-navy);
  color: #fff;
}

.profile-cta h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
}

.profile-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.profile-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.profile-cta .btn-profile-primary,
.profile-cta .btn-profile-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.profile-cta .btn-profile-primary {
  background: #fff;
  color: var(--profile-navy);
}

.profile-cta .btn-profile-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

.profile-cta .btn-profile-primary:hover,
.profile-cta .btn-profile-secondary:hover {
  transform: translateY(-2px);
}

.profile-cta .btn-profile-primary:hover {
  background: var(--profile-sky);
  color: var(--profile-navy);
}

.profile-cta .btn-profile-secondary:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 991px) {
  .leadership-profile {
    padding: 72px 0;
  }

  .profile-copy {
    margin-top: 54px;
  }

  .profile-cta-actions {
    justify-content: flex-start;
    margin-top: 26px;
  }
}

@media (max-width: 575px) {
  .leadership-profile,
  .profile-responsibilities {
    padding: 58px 0;
  }

  .profile-portrait-wrap {
    padding: 0 16px 22px 0;
  }

  .profile-portrait-wrap::before {
    inset: 24px 0 0 24px;
  }

  .profile-photo-caption {
    right: -2px;
    max-width: 190px;
    padding: 14px 16px;
    font-size: 14px;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-responsibility-card {
    padding: 26px;
  }

  .profile-cta-actions a {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Servie Cards Section
--------------------------------------------------------------*/
.services-cards h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
}

.services-cards p {
  font-size: 15px;
}

.services-cards ul li {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding-top: 10px;
}

.services-cards ul li i {
  font-size: 16px;
  color: var(--color-primary);
  margin-right: 6px;
}

/*--------------------------------------------------------------
# Projet Details Section
--------------------------------------------------------------*/
.project-details .portfolio-details-slider img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
}

.project-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.project-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

.project-details .swiper-button-prev,
.project-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.project-details .swiper-button-prev:after,
.project-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.project-details .swiper-button-prev:hover:after,
.project-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 575px) {

  .project-details .swiper-button-prev,
  .project-details .swiper-button-next {
    display: none;
  }
}

.project-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.project-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.project-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.project-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.project-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: #838893;
  font-size: 14px;
}

.project-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  transition: 0.3s;
}

.project-details .portfolio-info .btn-visit:hover {
  background: #2A7BC4;
}

.project-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.project-details .portfolio-description p {
  padding: 0;
  text-align: justify;
}

.project-details .portfolio-description .content,
.project-details .portfolio-description .content p,
.project-details .portfolio-description .content li {
  text-align: justify;
}

/* Giới hạn kích thước hình ảnh trong project-details */
.project-details .position-relative.h-100 > img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
}
.project-details .portfolio-description .content img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
}

.project-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: #f5f6f7;
  height: 100%;
  margin-bottom: 50px;
}

.project-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid #fff;
  float: left;
  margin: 0 10px 0 0;
}

.project-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.project-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.project-details .portfolio-description .testimonial-item .quote-icon-left,
.project-details .portfolio-description .testimonial-item .quote-icon-right {
  color: #ffd565;
  font-size: 26px;
  line-height: 0;
}

.project-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.project-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.project-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
/* Sidebar scrolls with page - ensure all elements scroll together */
.service-details .col-lg-4 {
  position: relative !important;
  align-self: flex-start;
  top: 0 !important;
  z-index: 1;
}

.service-details .services-list {
  position: relative !important;
  padding: 10px 30px;
  border: 1px solid #d5d7da;
  margin-bottom: 20px;
  background-color: #ffffff;
  top: 0 !important;
  transform: none !important;
}

.service-details .service-box {
  position: relative !important;
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #d5d7da;
  top: 0 !important;
  transform: none !important;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid #d9e3e8;
  margin: 20px 0;
  color: var(--color-secondary);
  transition: 0.3s;
}

.service-details .services-list a.active {
  font-weight: 700;
  border-color: var(--color-primary);
}

.service-details .services-list a:hover {
  border-color: var(--color-primary);
}

.service-details .services-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .service-details .services-img {
    height: 240px;
  }
}

.service-details h3 {
  font-size: 28px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

/* Căn đều 2 bên cho toàn bộ nội dung chi tiết (Dịch vụ, Tuyển dụng, Đào tạo) */
.service-details .col-lg-8 p,
.service-details .service-content,
.service-details .service-content p,
.service-details .service-content li,
.service-details .service-content div,
.service-details .job-content,
.service-details .job-content p,
.service-details .job-content li,
.service-details .job-content div,
.service-details .course-content,
.service-details .course-content p,
.service-details .course-content li,
.service-details .course-content div {
  text-align: justify;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--color-primary);
}

/* Chi tiết Tuyển dụng: dùng màu chủ đạo #154D7C thay cho Bootstrap primary #0d6efd */
.service-details .text-primary {
  color: #154D7C !important;
}
.service-details .btn-primary {
  background-color: #154D7C;
  border-color: #154D7C;
}
.service-details .btn-primary:hover {
  background-color: #0f3a5c;
  border-color: #0f3a5c;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 20px 24px 30px;
}

.contact .info-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
  line-height: 0;
  color: var(--color-primary);
  border-radius: 50%;
  border: 2px dotted #ffd565;
}

.contact .info-item h3 {
  font-size: 20px;
  color: #6c757d;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0 1rem;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  text-align: center;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact .php-email-form .row {
  margin: 0;
  --bs-gutter-x: 0;
  --bs-gutter-y: 20px;
}

.contact .php-email-form .row > [class*="col-"] {
  margin-bottom: 0;
}

/* Align name+email row edges with subject field below */
.contact .php-email-form .row > .col-lg-6:first-child {
  padding-left: 0;
  padding-right: 12px;
}
.contact .php-email-form .row > .col-lg-6:last-child {
  padding-left: 12px;
  padding-right: 0;
}

.contact .php-email-form .form-group {
  padding-bottom: 0;
  margin-bottom: 0;
}

.contact .php-email-form .my-3 {
  margin-top: 0;
  margin-bottom: 0;
}

.contact .php-email-form .text-center {
  margin-top: 0;
}

/* Contact form - uniform width on tablet (col-lg-6 stacks below 992px) */
@media (max-width: 991px) {
  .contact .php-email-form .row {
    width: 100%;
  }
  .contact .php-email-form .row > [class*="col-"],
  .contact .php-email-form .row > .col-lg-6:first-child,
  .contact .php-email-form .row > .col-lg-6:last-child {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .contact .php-email-form .form-group {
    width: 100%;
  }
}

/* Contact form - mobile spacing */
@media (max-width: 768px) {
  .contact .php-email-form .row {
    --bs-gutter-y: 16px;
  }
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #df1529;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #059652;
  border-top-color: #fff;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-primary);
}

.contact .php-email-form input {
  height: 44px;
  width: 100%;
  box-sizing: border-box;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.contact .php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 5px;
}

.contact .php-email-form button[type=submit]:hover {
  background: rgba(21, 77, 124, 0.8);
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Recent Blog Posts Section
--------------------------------------------------------------*/
.recent-blog-posts .post-item {
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.recent-blog-posts .post-item .post-img {
  height: 220px;
}

.recent-blog-posts .post-item .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.recent-blog-posts .post-item .post-date {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.recent-blog-posts .post-item .post-content {
  padding: 30px;
}

.recent-blog-posts .post-item .post-title {
  font-size: 24px;
  color: var(--color-secondary);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.recent-blog-posts .post-item .meta i {
  font-size: 16px;
  color: var(--color-primary);
}

.recent-blog-posts .post-item .meta span {
  font-size: 15px;
  color: #838893;
}

.recent-blog-posts .post-item hr {
  color: #888;
  margin: 20px 0;
}

.recent-blog-posts .post-item .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: #838893;
}

.recent-blog-posts .post-item .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.recent-blog-posts .post-item:hover .post-title,
.recent-blog-posts .post-item:hover .readmore {
  color: var(--color-primary);
}

.recent-blog-posts .post-item:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  overflow: hidden;
  padding: 0;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.hero .carousel {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  padding: 0;
  margin: 0;
  position: relative;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-height));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
  transition-duration: 0.4s;
}

/* Hero responsive cho mobile - co giãn theo màn hình */
@media (max-width: 991px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
  }
  .hero .carousel {
    min-height: calc(100svh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    height: calc(100svh - var(--header-height));
  }
  .hero .carousel-item {
    min-height: 100%;
    background-size: cover;
    background-position: center;
  }
}

.hero .info {
  position: absolute;
  inset: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero .info {
    padding: 0 50px;
  }
}

.hero .info h2 {
  color: #fff;
  margin-bottom: 30px;
  padding-bottom: 30px;
  font-size: 56px;
  font-weight: 700;
  position: relative;
}

.hero .info h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

@media (max-width: 768px) {
  .hero .info h2 {
    font-size: 36px;
  }
}

.hero .info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.hero .info .btn-get-started {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
  border: 2px solid var(--color-primary);
}

.hero .info .btn-get-started:hover {
  background: var(--color-primary);
}

.hero .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}

.hero .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
  transition: 0.3s;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.blog .blog-pagination {
  margin-top: 30px;
  color: #838893;
}

.blog .blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog .blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog .blog-pagination li a {
  color: var(--color-secondary);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog .blog-pagination li.active,
.blog .blog-pagination li:hover {
  background: var(--color-primary);
  color: #fff;
}

.blog .blog-pagination li.active a,
.blog .blog-pagination li:hover a {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Blog Posts List
--------------------------------------------------------------*/
.blog .posts-list .post-item {
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.blog .posts-list .post-img {
  height: 220px;
}

.blog .posts-list .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog .posts-list .post-date {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog .posts-list .post-content {
  padding: 30px;
}

.blog .posts-list .post-title {
  font-size: 24px;
  color: var(--color-secondary);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.blog .posts-list .meta i {
  font-size: 16px;
  color: var(--color-primary);
}

.blog .posts-list .meta span {
  font-size: 15px;
  color: #838893;
}

.blog .posts-list p {
  margin-top: 20px;
}

.blog .posts-list hr {
  color: #888;
  margin-bottom: 20px;
}

.blog .posts-list .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: #838893;
}

.blog .posts-list .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog .posts-list .post-item:hover .post-title,
.blog .posts-list .post-item:hover .readmore {
  color: var(--color-primary);
}

.blog .posts-list .post-item:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Details
--------------------------------------------------------------*/
.blog .blog-details {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.blog .blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
  height: 400px;
}

.blog .blog-details .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog .blog-details .title {
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 20px 0 0 0;
  color: var(--color-secondary);
}

.blog .blog-details .content {
  margin-top: 20px;
}

.blog .blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog .blog-details .content blockquote {
  overflow: hidden;
  background-color: rgba(82, 86, 94, 0.06);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog .blog-details .content blockquote p {
  color: var(--color-default);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog .blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-primary);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog .blog-details .meta-top {
  margin-top: 20px;
  color: #6c757d;
}

.blog .blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog .blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog .blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: var(--color-primary);
}

.blog .blog-details .meta-top a {
  color: #6c757d;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
  transition: 0.3s;
}

.blog .blog-details .meta-top a:hover {
  color: var(--color-primary);
}

.blog .blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid rgba(82, 86, 94, 0.15);
}

.blog .blog-details .meta-bottom i {
  color: #838893;
  display: inline;
}

.blog .blog-details .meta-bottom a {
  color: rgba(82, 86, 94, 0.8);
  transition: 0.3s;
}

.blog .blog-details .meta-bottom a:hover {
  color: var(--color-primary);
}

.blog .blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog .blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog .blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog .blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog .blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--color-default);
  content: ",";
}

.blog .blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog .blog-details .meta-bottom .share i {
  padding-left: 5px;
}

.blog .post-author {
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .post-author img {
  max-width: 120px;
  margin-right: 20px;
}

.blog .post-author h4 {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0px;
  padding: 0;
  color: var(--color-secondary);
}

.blog .post-author .social-links {
  margin: 0 10px 10px 0;
}

.blog .post-author .social-links a {
  color: rgba(82, 86, 94, 0.5);
  margin-right: 5px;
}

.blog .post-author p {
  font-style: italic;
  color: rgba(108, 117, 125, 0.8);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Sidebar
--------------------------------------------------------------*/
.blog .sidebar {
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  color: var(--color-secondary);
}

.blog .sidebar .sidebar-item+.sidebar-item {
  margin-top: 40px;
}

.blog .sidebar .search-form form {
  background: #fff;
  border: 1px solid rgba(82, 86, 94, 0.3);
  padding: 3px 10px;
  position: relative;
}

.blog .sidebar .search-form form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
}

.blog .sidebar .search-form form input[type=text]:focus {
  outline: none;
}

.blog .sidebar .search-form form button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  background: var(--color-primary);
  color: #fff;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.blog .sidebar .search-form form button i {
  color: #fff;
  line-height: 0;
}

.blog .sidebar .search-form form button:hover {
  background: rgba(21, 77, 124, 0.8);
}

.blog .sidebar .categories ul {
  list-style: none;
  padding: 0;
}

.blog .sidebar .categories ul li+li {
  padding-top: 10px;
}

.blog .sidebar .categories ul a {
  color: var(--color-secondary);
  transition: 0.3s;
}

.blog .sidebar .categories ul a:hover {
  color: var(--color-default);
}

.blog .sidebar .categories ul a span {
  padding-left: 5px;
  color: rgba(54, 77, 89, 0.4);
  font-size: 14px;
}

.blog .sidebar .recent-posts .post-item {
  display: flex;
}

.blog .sidebar .recent-posts .post-item+.post-item {
  margin-top: 15px;
}

.blog .sidebar .recent-posts img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  object-fit: cover;
  margin-right: 15px;
}

.blog .sidebar .recent-posts h4 {
  font-size: 15px;
  font-weight: bold;
}

.blog .sidebar .recent-posts h4 a {
  color: var(--color-secondary);
  transition: 0.3s;
}

.blog .sidebar .recent-posts h4 a:hover {
  color: var(--color-primary);
}

.blog .sidebar .recent-posts time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: rgba(54, 77, 89, 0.4);
}

.blog .sidebar .tags {
  margin-bottom: -10px;
}

.blog .sidebar .tags ul {
  list-style: none;
  padding: 0;
}

.blog .sidebar .tags ul li {
  display: inline-block;
}

.blog .sidebar .tags ul a {
  color: #838893;
  font-size: 14px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border: 1px solid rgba(131, 136, 147, 0.4);
  display: inline-block;
  transition: 0.3s;
}

.blog .sidebar .tags ul a:hover {
  color: var(--color-secondary);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
}

.blog .sidebar .tags ul a span {
  padding-left: 5px;
  color: rgba(131, 136, 147, 0.8);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Blog Comments
--------------------------------------------------------------*/
.blog .comments {
  margin-top: 30px;
}

.blog .comments .comments-count {
  font-weight: bold;
}

.blog .comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog .comments .comment .comment-img {
  margin-right: 14px;
}

.blog .comments .comment .comment-img img {
  width: 60px;
}

.blog .comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog .comments .comment h5 a {
  font-weight: bold;
  color: var(--color-default);
  transition: 0.3s;
}

.blog .comments .comment h5 a:hover {
  color: var(--color-primary);
}

.blog .comments .comment h5 .reply {
  padding-left: 10px;
  color: var(--color-secondary);
}

.blog .comments .comment h5 .reply i {
  font-size: 20px;
}

.blog .comments .comment time {
  display: block;
  font-size: 14px;
  color: rgba(82, 86, 94, 0.8);
  margin-bottom: 5px;
}

.blog .comments .comment.comment-reply {
  padding-left: 40px;
}

.blog .comments .reply-form {
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog .comments .reply-form h4 {
  font-weight: bold;
  font-size: 22px;
}

.blog .comments .reply-form p {
  font-size: 14px;
}

.blog .comments .reply-form input {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}

.blog .comments .reply-form input:focus {
  box-shadow: none;
  border-color: rgba(21, 77, 124, 0.8);
}

.blog .comments .reply-form textarea {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}

.blog .comments .reply-form textarea:focus {
  box-shadow: none;
  border-color: rgba(21, 77, 124, 0.8);
}

.blog .comments .reply-form .form-group {
  margin-bottom: 25px;
}

.blog .comments .reply-form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--color-secondary);
}

.blog .comments .reply-form .btn-primary:hover {
  color: var(--color-secondary);
  background-color: var(--color-primary);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: #fff;
  background: url("../img/footer-bg.jpg") top center no-repeat;
  background-size: cover;
  font-size: 14px;
  padding: 80px 0 60px 0;
  position: relative;
}

.footer:before {
  content: "";
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  inset: 0;
}

.footer .footer-content .footer-info {
  margin-bottom: 30px;
}

.footer .footer-content .footer-info h3 {
  font-size: 28px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.footer .footer-content .footer-info h3 span {
  color: var(--color-primary);
}

.footer .footer-content .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: var(--font-primary);
  color: #fff;
}

.footer .footer-content .footer-info p a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .footer-content .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  margin-right: 8px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .footer-content .social-links a:hover {
  background: var(--color-primary);
  text-decoration: none;
}

.footer .footer-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-content .footer-links {
  margin-bottom: 30px;
}

.footer .footer-content .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-content .footer-links ul li {
  padding: 8px 0;
}

.footer .footer-content .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-content .footer-links ul a {
  color: rgba(255, 255, 255, 0.6);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-content .footer-links ul a:hover {
  color: #fff;
}

.footer .footer-contact-form {
  margin-bottom: 30px;
}

.footer .footer-contact-form h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer .footer-contact-form-inner .form-group {
  margin-bottom: 16px;
}

/* Align name+email row edges with subject field below */
.footer .footer-contact-form-inner .row {
  --bs-gutter-x: 0;
}
.footer .footer-contact-form-inner .row > .col-md-6:first-child {
  padding-left: 0;
  padding-right: 12px;
}
.footer .footer-contact-form-inner .row > .col-md-6:last-child {
  padding-left: 12px;
  padding-right: 0;
}

.footer .footer-contact-form-inner input,
.footer .footer-contact-form-inner textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #364d59;
}

.footer .footer-contact-form-inner input::placeholder,
.footer .footer-contact-form-inner textarea::placeholder {
  color: #6c757d;
}

.footer .footer-contact-form-inner input:focus,
.footer .footer-contact-form-inner textarea:focus {
  border-color: var(--color-primary);
  outline: 0;
}

.footer .footer-contact-form-inner input {
  height: 44px;
  width: 100%;
  box-sizing: border-box;
}

.footer .footer-contact-form-inner textarea {
  padding: 10px 12px;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
}

.footer .footer-contact-form-inner button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.3s;
  border-radius: 4px;
}

.footer .footer-contact-form-inner button[type=submit]:hover {
  background: #154d7a;
}

.footer .footer-contact-form-inner .loading,
.footer .footer-contact-form-inner .error-message,
.footer .footer-contact-form-inner .sent-message {
  display: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.footer .footer-contact-form-inner .error-message {
  color: #fff;
  background: #df1529;
}

.footer .footer-contact-form-inner .sent-message {
  color: #fff;
  background: #059652;
}

/* Footer contact form - even spacing and uniform width on mobile */
@media (max-width: 768px) {
  .footer .footer-contact-form h4 {
    margin-bottom: 16px;
  }
  .footer .footer-contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .footer .footer-contact-form-inner .row {
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 16px;
    width: 100%;
  }
  .footer .footer-contact-form-inner .row > [class*="col-"],
  .footer .footer-contact-form-inner .row > .col-md-6:first-child,
  .footer .footer-contact-form-inner .row > .col-md-6:last-child {
    margin-bottom: 0;
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .footer .footer-contact-form-inner .form-group {
    margin-bottom: 0;
    width: 100%;
  }
  .footer .footer-contact-form-inner .my-2 {
    margin-top: 0;
    margin-bottom: 0;
  }
  .footer .footer-contact-form-inner .text-center {
    margin-top: 0;
  }
}

.footer .footer-legal .copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer .footer-legal .credits {
  padding-top: 4px;
  font-size: 13px;
  color: #fff;
}

.footer .footer-legal .credits a {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination-wrapper {
  margin-top: 3rem;
}

.pagination {
  gap: 0.5rem;
}

.pagination .page-item {
  margin: 0 0.25rem;
}

.pagination .page-link {
  color: var(--color-default);
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  color: var(--color-primary);
  background-color: #f8f9fa;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
.partners {
  padding: 60px 0;
}

/* Logo đối tác: lưới full chiều ngang màn hình, chia ô bằng đường kẻ mảnh, không khung quanh logo,
   cả lưới trôi ngang liên tục nên chiều cao block cố định dù có bao nhiêu logo */
.partner-marquee {
  --marquee-rows: 3;
  --partner-line: #dfe6ee;
  display: flex;
  overflow: hidden;
  margin-top: 10px;
  border-top: 1px solid var(--partner-line);
  /* Mờ dần ở hai mép để logo trôi vào/ra mềm mại */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.partner-track {
  display: grid;
  grid-template-rows: repeat(var(--marquee-rows), auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: partner-scroll var(--marquee-duration, 40s) linear infinite;
}

/* Rê chuột vào lưới thì dừng lại để xem kỹ logo */
.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Ô logo: các ô bằng nhau, ngăn cách bằng đường kẻ mảnh bên phải và bên dưới */
.partners .partner-item {
  width: 240px;
  height: 120px;
  padding: 22px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--partner-line);
  border-bottom: 1px solid var(--partner-line);
  transition: background-color 0.3s ease;
}

.partners .partner-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.partners .partner-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners .partner-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .partner-marquee {
    --marquee-rows: 2;
  }

  .partners .partner-item {
    width: 150px;
    height: 84px;
    padding: 14px 20px;
  }
}

/*--------------------------------------------------------------
# Giới hạn chiều rộng NỘI DUNG trên màn hình lớn
# Nền, header, footer vẫn full màn hình; chỉ phần nội dung bên trong bị giới hạn
--------------------------------------------------------------*/
:root {
  --content-max-width: 1320px;
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: var(--content-max-width);
  }
}

/* Hero tràn ngang toàn màn hình, tỉ lệ 21:9 (máy tính, từ 992px) */
@media (min-width: 992px) {
  .hero,
  .hero .carousel,
  .hero .carousel-item {
    min-height: 0;
    height: clamp(420px, 42.857vw, calc(100vh - var(--header-height)));
  }
}

/* Nút chuyển ảnh hero: đậm hơn để dễ thấy trên mọi ảnh */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  opacity: 1;
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon {
  background: var(--color-primary);
}

/*--------------------------------------------------------------
# Hero carousel: chuyển ảnh vừa trượt nhẹ vừa mờ dần
--------------------------------------------------------------*/
.hero .carousel-item {
  display: block;
  opacity: 0;
  transform: translateX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease-out;
  will-change: transform, opacity;
}

.hero .carousel {
  overflow: hidden;
}

/* Ảnh đang hiện, và ảnh mới khi đã trượt vào vị trí */
.hero .carousel-item.active,
.hero .carousel-item-next.carousel-item-start,
.hero .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* Ảnh đang ẩn và vị trí xuất phát của ảnh mới: đặt ngay, không chạy transition */
.hero .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev),
.hero .carousel-item-next:not(.carousel-item-start),
.hero .carousel-item-prev:not(.carousel-item-end) {
  transition: none;
}

/* Vị trí xuất phát của ảnh mới (lệch nhẹ, đang trong suốt) */
.hero .carousel-item-next:not(.carousel-item-start) {
  opacity: 0;
  transform: translateX(12%);
}

.hero .carousel-item-prev:not(.carousel-item-end) {
  opacity: 0;
  transform: translateX(-12%);
}

/* Ảnh cũ trượt ra và mờ dần */
.hero .carousel-item.active.carousel-item-start {
  opacity: 0;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease-in;
  transform: translateX(-12%);
  z-index: 1;
}

.hero .carousel-item.active.carousel-item-end {
  opacity: 0;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease-in;
  transform: translateX(12%);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero .carousel-item {
    transform: none !important;
    transition: opacity 0.6s ease;
  }
}

/* Thông điệp chính trên hero: chữ trắng trên lớp tối, 2 nút hành động */
.hero .hero-message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(32px, 7vh, 72px);
  background:
    linear-gradient(90deg, rgba(8, 25, 45, 0.9) 0%, rgba(8, 25, 45, 0.72) 50%, rgba(8, 25, 45, 0.1) 80%),
    linear-gradient(180deg, rgba(8, 25, 45, 0) 45%, rgba(8, 25, 45, 0.6) 100%);
  pointer-events: none;
}

.hero .hero-message .container {
  pointer-events: auto;
}

.hero .hero-message h1 {
  color: #fff;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero .hero-message p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.3vw, 19px);
  max-width: 640px;
  margin-bottom: 22px;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .hero-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.hero .hero-btn-primary {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
}

.hero .hero-btn-primary:hover {
  background: #0f3b60;
  border-color: #0f3b60;
  color: #fff;
}

.hero .hero-btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.hero .hero-btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* Nút chuyển ảnh nằm trên lớp thông điệp */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
}

@media (max-width: 991px) {
  .hero,
  .hero .carousel {
    min-height: 0;
    max-height: none;
    height: 72svh;
  }

  .hero .hero-message .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero .hero-btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero .hero-message {
    background: linear-gradient(180deg, rgba(8, 25, 45, 0.15) 0%, rgba(8, 25, 45, 0.85) 60%);
  }

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    display: none;
  }
}

/* Ảnh tập thể trên trang Con người */
.team .team-photo {
  margin: 0 0 48px;
  text-align: center;
}

.team .team-photo img {
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.team .team-photo figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #5b6670;
}

/* Danh mục chương trình đào tạo doanh nghiệp (trang Đào tạo) */
.training-programs .program-group {
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  padding: 24px 22px;
}

.training-programs .program-group i {
  font-size: 28px;
  color: var(--color-primary);
}

.training-programs .program-group h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 12px;
  color: #1f2d3a;
}

.training-programs .program-group ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  color: #3d4954;
}

.training-programs .program-group li {
  margin-bottom: 6px;
}

.training-programs .program-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.training-programs .program-cta:hover {
  background: #0f3b60;
  color: #fff;
}

/* Chấm chuyển ảnh hero (5 ảnh) */
.hero .carousel-indicators {
  z-index: 3;
  margin-bottom: 14px;
}

.hero .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background-color: #fff;
  opacity: 0.5;
}

.hero .carousel-indicators .active {
  opacity: 1;
}

/*--------------------------------------------------------------
# Trang chủ (màn hình lớn): header 3 trạng thái và cuộn từng block
# - đầu trang: header đầy đủ
# - header-docked: đang cuộn xuống, ẩn header, logo thu về góc trái
# - mặc định: đang cuộn lên, header đầy đủ như các trang khác
--------------------------------------------------------------*/
@media (min-width: 992px) {
  body.page-home .header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }

  body.page-home .header .navbar-left,
  body.page-home .header .header-right {
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  body.page-home .header-container .logo {
    transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    transform-origin: left top;
  }

  body.page-home.header-minimal .header,
  body.page-home.header-docked .header {
    background-color: transparent;
    box-shadow: none;
  }

  body.page-home.header-minimal .header .navbar-left,
  body.page-home.header-minimal .header .header-right,
  body.page-home.header-docked .header .navbar-left,
  body.page-home.header-docked .header .header-right {
    opacity: 0;
    visibility: hidden;
  }

  /* Logo thu nhỏ về góc trái trên */
  body.page-home.header-docked .header-container .logo {
    left: 12px;
    transform: translateX(0) scale(0.72);
    padding: 14px 20px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  /* Hero (dưới header) và mỗi block nội dung chiếm trọn một màn hình */
  body.page-home .hero,
  body.page-home .hero .carousel,
  body.page-home .hero .carousel-item {
    height: calc(100vh - var(--header-height));
    min-height: 540px;
  }

  body.page-home #main > section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  body.page-home #main > section > .container {
    width: 100%;
  }
}

/* Trang Dịch vụ: thẻ dịch vụ dùng ảnh thay icon */
.service-photo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(21, 77, 124, 0.15);
}

.service-photo-card .service-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-photo-card .service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-photo-card:hover .service-photo img {
  transform: scale(1.06);
}

.service-photo-card .service-photo-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-photo-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2d3a;
  margin-bottom: 10px;
}

.service-photo-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5662;
  flex: 1;
}

.service-photo-card .readmore {
  color: var(--color-primary);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Trang chi tiết khóa học
--------------------------------------------------------------*/
.course-detail {
  padding: 60px 0 80px;
  background: #f6f8fb;
}

.course-detail .course-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #33414e;
  margin-bottom: 24px;
}

.course-detail .course-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.course-detail .course-facts .fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  padding: 14px 16px;
}

.course-detail .course-facts i {
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1;
  margin-top: 2px;
}

.course-detail .course-facts span {
  display: block;
  font-size: 13px;
  color: #5b6672;
}

.course-detail .course-facts strong {
  font-size: 15px;
  color: #1f2d3a;
}

.course-detail .course-block {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(16, 42, 67, 0.05);
}

.course-detail .course-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2d3a;
  margin-bottom: 18px;
}

.course-detail .course-roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.course-detail .course-roadmap li {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  position: relative;
}

.course-detail .course-roadmap li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: #dbe5ef;
}

.course-detail .course-roadmap .step {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-detail .course-roadmap h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2d3a;
  margin: 6px 0 4px;
}

.course-detail .course-roadmap h3 em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: #e8f0f8;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}

.course-detail .course-roadmap p {
  margin: 0;
  color: #52606d;
  font-size: 15px;
}

.course-detail .course-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #1f2d3a;
}

.course-detail .course-content ul,
.course-detail .check-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 20px;
}

.course-detail .course-content li,
.course-detail .check-list li {
  color: #33414e;
  font-size: 15px;
  position: relative;
  padding-left: 26px;
}

.course-detail .course-content li i {
  display: none;
}

.course-detail .course-content li::before,
.course-detail .check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f9d55;
}

.course-detail .course-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.course-detail .info-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(16, 42, 67, 0.05);
}

.course-detail .info-card i {
  font-size: 24px;
  color: var(--color-primary);
}

.course-detail .info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 6px;
}

.course-detail .info-card p {
  font-size: 15px;
  color: #52606d;
  margin: 0;
}

.course-detail .course-register {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(16, 42, 67, 0.1);
  border-top: 4px solid var(--color-primary);
}

.course-detail .course-register .price span {
  display: block;
  font-size: 13px;
  color: #5b6672;
}

.course-detail .course-register .price strong {
  font-size: 28px;
  color: var(--color-primary);
}

.course-detail .course-register .price del {
  margin-left: 8px;
  color: #6b7682;
}

.course-detail .course-register h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.course-detail .course-register .note {
  font-size: 14px;
  color: #52606d;
}

.course-detail .course-register label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #33414e;
  margin: 10px 0 4px;
}

.course-detail .course-register button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
  font-size: 16px;
}

.course-detail .course-register button[type="submit"]:hover {
  background: #0f3b60;
}

.course-detail .course-register .loading,
.course-detail .course-register .error-message,
.course-detail .course-register .sent-message {
  display: none;
  font-size: 14px;
  padding: 8px;
  border-radius: 6px;
}

.course-detail .course-register .error-message {
  background: #fde8e8;
  color: #b42318;
}

.course-detail .course-register .sent-message {
  background: #e7f6ec;
  color: #1f7a3d;
}

.course-detail .course-register .or-call {
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
}

.course-detail .course-register .or-call a {
  font-weight: 700;
  color: var(--color-primary);
}

.course-detail .course-related {
  margin-top: 48px;
}

.course-detail .course-related > h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.course-detail .related-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(16, 42, 67, 0.06);
  transition: transform 0.3s ease;
  color: inherit;
}

.course-detail .related-card:hover {
  transform: translateY(-4px);
}

.course-detail .related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-detail .related-card div {
  padding: 14px 16px;
}

.course-detail .related-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2d3a;
  margin-bottom: 4px;
}

.course-detail .related-card span {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
}

.course-mobile-cta {
  display: none;
}

@media (max-width: 991px) {
  .course-detail .course-register {
    position: static;
  }

  .course-detail .course-block {
    padding: 22px 18px;
  }

  .course-mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 996;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  }

  .course-mobile-cta span {
    display: block;
    font-size: 12px;
    color: #5b6672;
  }

  .course-mobile-cta strong {
    color: var(--color-primary);
    font-size: 17px;
  }

  .course-mobile-cta a {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
  }

  body:has(.course-mobile-cta) .scroll-top {
    bottom: 80px;
  }

  body:has(.course-mobile-cta) #footer {
    padding-bottom: 64px;
  }
}

/* Trang chủ (màn hình lớn): block Dự án gọn trong một màn hình */
@media (min-width: 992px) {
  body.page-home #projects .section-header {
    padding-bottom: 28px;
  }

  body.page-home #projects .portfolio-container {
    --bs-gutter-y: 1rem;
  }

  body.page-home #projects .pm-card .pm-media {
    aspect-ratio: 16 / 7;
  }

  body.page-home #projects .pm-card .pm-body {
    padding: 12px 16px 14px;
    gap: 4px;
  }

  body.page-home #projects .pm-card .pm-title {
    font-size: 15px;
    min-height: 0;
    -webkit-line-clamp: 1;
  }

  body.page-home #projects .pm-card .pm-location {
    font-size: 13px;
  }
}

/* Trang chủ: thẻ dịch vụ cùng kiểu thẻ ảnh gọn với block Dự án */
.home-service-card {
  color: inherit;
  border-radius: 14px;
}

.home-service-card .service-photo-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

@media (min-width: 992px) {
  body.page-home #services .section-header {
    padding-bottom: 28px;
  }

  body.page-home #services .service-cards-row {
    --bs-gutter-y: 1rem;
  }

  body.page-home .home-service-card .service-photo {
    aspect-ratio: 16 / 7;
  }

  body.page-home .home-service-card .service-photo-body {
    padding: 12px 16px 14px;
  }

  body.page-home .home-service-card h3 {
    font-size: 15px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.page-home .home-service-card p {
    font-size: 13.5px;
    line-height: 1.5;
  }
}

/* Trang chủ: mục Công nghệ dạng lưới thẻ trắng, cùng kiểu Dịch vụ / Dự án */
.tech-grid .tech-tile {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tech-grid .tech-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(21, 77, 124, 0.15);
}

.tech-grid .tech-tile-img {
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.tech-grid .tech-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-grid .tech-tile:hover .tech-tile-img img {
  transform: scale(1.06);
}

.tech-grid .tech-tile-body {
  padding: 12px 16px 14px;
}

.tech-grid .tech-tile h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2d3a;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
}

.tech-grid .tech-tile p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5662;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Điện thoại: vuốt ngang từng thẻ, thấy một phần thẻ kế tiếp */
@media (max-width: 767px) {
  .tech-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tech-grid > div {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
}

/* Trang chủ màn hình lớn: tiêu đề block gọn để lưới vừa một màn hình */
@media (min-width: 992px) {
  body.page-home #technology .section-header,
  body.page-home #services .section-header {
    padding-bottom: 24px;
  }

  body.page-home .home-service-card .service-photo {
    aspect-ratio: 16 / 8;
  }
}

/* Tên dịch vụ dài (4 cột) được xuống 2 dòng thay vì bị cắt */
@media (min-width: 992px) {
  body.page-home .home-service-card h3 {
    -webkit-line-clamp: 2;
    min-height: 2.7em;
    line-height: 1.35;
  }
}

/*--------------------------------------------------------------
# Tin tức (trang chủ + trang danh sách): thẻ gọn cùng kiểu Dịch vụ / Dự án
--------------------------------------------------------------*/
.recent-blog-posts .post-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.recent-blog-posts .post-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(21, 77, 124, 0.15);
}

.recent-blog-posts .post-item .post-img {
  height: auto;
  aspect-ratio: 16 / 9;
  background: #e9eef2;
}

.recent-blog-posts .post-item .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 0;
}

.recent-blog-posts .post-item:hover .post-img img {
  transform: scale(1.05);
}

.recent-blog-posts .post-item .post-date {
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.recent-blog-posts .post-item .post-content,
.news-page .posts-list .post-content {
  padding: 14px 18px 16px;
  text-align: left;
  flex: 1;
  gap: 6px;
}

.recent-blog-posts .post-item .post-title,
.news-page .posts-list .post-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2d3a;
  letter-spacing: 0;
  text-align: left;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-blog-posts .post-item:hover .post-title {
  color: var(--color-primary);
}

.recent-blog-posts .post-item .meta {
  gap: 4px 14px;
}

.recent-blog-posts .post-item .meta i {
  font-size: 13px;
}

.recent-blog-posts .post-item .meta span {
  font-size: 13px;
  color: #5b6672;
}

.recent-blog-posts .post-item .meta .px-3 {
  display: none;
}

.recent-blog-posts .post-item hr {
  display: none;
}

.recent-blog-posts .post-item .post-excerpt,
.news-page .posts-list .post-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #4a5662;
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-blog-posts .post-item .readmore {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  color: var(--color-primary);
}

.recent-blog-posts .post-item .readmore i {
  margin-left: 6px;
}

/* Trang chủ màn hình lớn: ảnh thấp hơn để block vừa một màn hình */
@media (min-width: 992px) {
  body.page-home .recent-blog-posts .post-item .post-img {
    aspect-ratio: 16 / 8;
  }

  body.page-home #recent-blog-posts .section-header {
    padding-bottom: 24px;
  }
}

/*--------------------------------------------------------------
# Trang chủ: 4 block nội dung, 4 kiểu layout riêng
--------------------------------------------------------------*/
.block-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.block-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  vertical-align: middle;
  margin-right: 10px;
}

.block-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  color: #1f2d3a;
  line-height: 1.25;
  margin: 0 0 22px;
}

/* 1. Dịch vụ: danh sách đánh số + khung xem trước ----------------------- */
.svc-showcase {
  background: #fff;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e3e9ef;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 6px;
  border-bottom: 1px solid #e3e9ef;
  color: #33414e;
  position: relative;
  transition: color 0.25s ease, padding 0.25s ease;
}

.svc-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.35s ease;
}

.svc-item .svc-num {
  font-size: 13px;
  font-weight: 700;
  color: #8a96a3;
  width: 24px;
  flex: 0 0 auto;
  transition: color 0.25s ease;
}

.svc-item .svc-thumb {
  display: none;
}

.svc-item .svc-name {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.svc-item i {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: var(--color-primary);
}

.svc-item:hover,
.svc-item:focus-visible,
.svc-item.is-active {
  color: var(--color-primary);
  padding-left: 12px;
}

.svc-item:hover::before,
.svc-item:focus-visible::before,
.svc-item.is-active::before {
  width: 100%;
}

.svc-item:hover .svc-num,
.svc-item.is-active .svc-num {
  color: var(--color-primary);
}

.svc-item:hover i,
.svc-item:focus-visible i,
.svc-item.is-active i {
  opacity: 1;
  transform: translateX(0);
}

.svc-preview {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 220px);
  width: 100%;
  box-shadow: 0 20px 50px rgba(16, 42, 67, 0.18);
}

.svc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.18s ease, transform 0.6s ease;
}

.svc-preview:hover img {
  transform: scale(1.04);
}

.svc-preview.is-changing img,
.svc-preview.is-changing .svc-preview-body {
  opacity: 0;
}

.svc-preview-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 32px 28px;
  background: linear-gradient(180deg, rgba(8, 25, 45, 0) 0%, rgba(8, 25, 45, 0.88) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.18s ease;
}

.svc-preview-title {
  font-size: 24px;
  font-weight: 700;
}

.svc-preview-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.svc-preview-cta {
  margin-top: 6px;
  font-weight: 600;
  color: #9fd0ff;
}

@media (max-width: 991px) {
  .svc-item .svc-thumb {
    display: block;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
  }

  .svc-item .svc-name {
    font-size: 15px;
  }

  .svc-item i {
    opacity: 1;
    transform: none;
  }

  .svc-item.is-active {
    color: #33414e;
    padding-left: 6px;
  }

  .svc-item.is-active::before {
    width: 0;
  }
}

/* 2. Công nghệ: lưới bento bất đối xứng trên nền tối ------------------- */
.tech-bento-section {
  background: #0d2236;
}

.tech-bento-section .section-header h2 {
  color: #fff;
}

.tech-bento-section .section-header h2::before,
.tech-bento-section .section-header h2::after {
  background: #5aa9e6;
}

.tech-bento-section .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

.tech-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(200px, 28vh, 270px);
  gap: 16px;
}

.tech-bento .bento-1 { grid-column: span 2; }
.tech-bento .bento-6 { grid-column: span 2; }

.bento-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 45, 0.05) 20%, rgba(8, 25, 45, 0.9) 100%);
  z-index: -1;
  transition: background 0.35s ease;
}

.bento-tile:hover::before {
  background: linear-gradient(180deg, rgba(21, 77, 124, 0.45) 0%, rgba(8, 25, 45, 0.95) 100%);
}

.bento-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  color: #fff;
}

.bento-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.bento-1 .bento-body h3 {
  font-size: 24px;
}

.bento-body p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.bento-1 .bento-body p,
.bento-tile:hover .bento-body p {
  max-height: 120px;
  opacity: 1;
}

@media (max-width: 991px) {
  .tech-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .bento-body p {
    max-height: 120px;
    opacity: 1;
  }
}

@media (max-width: 575px) {
  .tech-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .tech-bento .bento-1,
  .tech-bento .bento-6 {
    grid-column: auto;
  }
}

/* 3. Dự án: dải ảnh dọc cuộn ngang (filmstrip) ------------------------- */
.project-strip-section {
  background: #f6f8fb;
  overflow: hidden;
}

.strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.strip-head .block-title {
  margin: 0;
}

.strip-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #c9d6e2;
  background: #fff;
  color: var(--color-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.strip-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.strip-all {
  font-weight: 600;
  color: var(--color-primary);
  margin-left: 8px;
  white-space: nowrap;
}

.project-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(12px, calc((100vw - 1320px) / 2 + 12px));
  padding: 0 max(12px, calc((100vw - 1320px) / 2 + 12px)) 10px;
  scrollbar-width: none;
}

.project-strip::-webkit-scrollbar {
  display: none;
}

.strip-card {
  position: relative;
  flex: 0 0 clamp(240px, 22vw, 320px);
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - 260px);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
}

.strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.strip-card:hover img {
  transform: scale(1.06);
}

.strip-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 20px 20px;
  background: linear-gradient(180deg, rgba(8, 25, 45, 0) 0%, rgba(8, 25, 45, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-year {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.strip-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.strip-loc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
  .strip-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip-btn {
    display: none;
  }

  .strip-all {
    margin-left: 0;
  }

  .strip-card {
    flex-basis: 72%;
  }
}

/* 4. Tin tức: bố cục tạp chí (1 tin nổi bật + 2 tin phụ) ---------------- */
.news-editorial {
  background: #fff;
}

.news-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.news-lead {
  display: block;
  color: inherit;
  height: 100%;
}

.news-lead-img {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 420px);
  min-height: 220px;
  width: 100%;
  background: #e9eef2;
}

.news-lead-img img,
.news-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-lead:hover img,
.news-side:hover img {
  transform: scale(1.05);
}

.news-lead-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}

.news-lead-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2d3a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}

.news-lead-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5662;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-side {
  display: flex;
  gap: 18px;
  color: inherit;
  padding-bottom: 22px;
  border-bottom: 1px solid #e3e9ef;
}

.news-side:last-child {
  border-bottom: 0;
}

.news-side-img {
  flex: 0 0 42%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #e9eef2;
}

.news-side-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.news-side-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2d3a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}

.news-side-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.news-lead:hover .news-lead-title,
.news-side:hover .news-side-title {
  color: var(--color-primary);
}

@media (max-width: 575px) {
  .news-lead-title {
    font-size: 20px;
  }

  .news-side-title {
    font-size: 15px;
  }
}

/* Màn hình lớn: các block trang chủ căn giữa theo chiều dọc trong một màn hình */
@media (min-width: 992px) {
  body.page-home #projects.project-strip-section > .container {
    width: 100%;
  }
}

/* Dải dự án: kéo bằng chuột, thanh tiến trình, gợi ý kéo khi rê chuột */
.project-strip {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.project-strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.project-strip.is-dragging .strip-card {
  pointer-events: none;
}

.project-strip.is-gliding {
  scroll-snap-type: none;
}

.project-strip .strip-card img {
  -webkit-user-drag: none;
}

.strip-progress {
  position: relative;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: #dbe4ed;
  overflow: hidden;
  transition: height 0.2s ease;
}

.strip-progress span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: var(--color-primary);
}

.strip-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #5b6672;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-strip-section:hover .strip-hint {
  opacity: 1;
  transform: none;
}

.project-strip-section:hover .strip-progress {
  height: 6px;
}

.strip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.strip-btn:disabled:hover {
  background: #fff;
  color: var(--color-primary);
}

@media (hover: none) {
  .strip-hint {
    opacity: 1;
    transform: none;
  }
}

/* Giữ chữ trắng khi rê chuột lên thẻ dự án */
.strip-card:hover,
.strip-card:focus {
  color: #fff;
}

.strip-card:hover .strip-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Nút lên đầu trang: mũi tên bật lên khi bấm */
.scroll-top i {
  transition: transform 0.3s ease;
}

.scroll-top:hover i {
  transform: translateY(-3px);
}

.scroll-top.is-launching i {
  animation: scroll-top-launch 0.6s ease-in-out infinite;
}

@keyframes scroll-top-launch {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Logo: hai bản (nền sáng / nền tối) chồng lên nhau, chuyển mờ dần khi đi qua vùng nền tối */
#header-logo-link {
  display: grid !important;
  place-items: center;
}

#header-logo-link > img {
  grid-area: 1 / 1;
  transition: opacity 0.45s ease;
}

#header-logo-link > .logo-on-dark {
  opacity: 0;
}

/* Chỉ đổi logo trên màn hình lớn (nơi logo nằm trên nền trong suốt); điện thoại luôn có header trắng */
@media (min-width: 992px) {
  body.logo-dark #header-logo-link > #header-logo-img {
    opacity: 0;
  }

  body.logo-dark #header-logo-link > .logo-on-dark {
    opacity: 1;
  }
}

/*==============================================================
# ĐỒNG BỘ GIAO DIỆN TRANG CON THEO TRANG CHỦ
# Ngôn ngữ chung: nền xanh đậm #08192d cho vùng tối, thẻ trắng bo 14px,
# bóng nhẹ, nổi lên khi rê chuột, nút bo 8px màu chủ đạo.
==============================================================*/
:root {
  --bl-radius: 14px;
  --bl-shadow: 0 4px 18px rgba(16, 42, 67, 0.07);
  --bl-shadow-hover: 0 14px 32px rgba(21, 77, 124, 0.15);
  --bl-ink: #1f2d3a;
  --bl-muted: #4a5662;
  --bl-line: #e3e9ef;
  --bl-soft: #f6f8fb;
}

/* 1. Banner đầu trang con: cùng lớp phủ xanh đậm như banner trang chủ, chữ căn trái */
.breadcrumbs {
  min-height: 300px;
  background-position: center 40%;
}

.breadcrumbs:before {
  background: linear-gradient(90deg, rgba(8, 25, 45, 0.9) 0%, rgba(8, 25, 45, 0.65) 55%, rgba(8, 25, 45, 0.35) 100%);
}

.breadcrumbs > .container {
  align-items: flex-start !important;
  flex-direction: column-reverse !important;
  padding-top: 48px;
  padding-bottom: 48px;
}

.breadcrumbs h1,
.breadcrumbs h2 {
  font-family: var(--font-secondary);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  max-width: 900px;
  margin: 8px 0 0;
}

.breadcrumbs ol {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9fd0ff;
}

.breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 767px) {
  .breadcrumbs {
    min-height: 210px;
  }

  .breadcrumbs > .container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .breadcrumbs h1,
  .breadcrumbs h2 {
    font-size: 28px;
  }
}

/* 2. Thanh bên trang chi tiết dịch vụ: danh sách đánh số như trang chủ */
.service-details .services-list {
  border: 0;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
  padding: 10px;
  counter-reset: svc;
}

.service-details .services-list a {
  counter-increment: svc;
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.4;
  padding: 11px 12px;
  margin: 0;
  border-left: 0;
  border-radius: 8px;
  color: #33414e;
  font-weight: 500;
}

.service-details .services-list a::before {
  content: counter(svc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: #8a96a3;
  flex: 0 0 22px;
}

.service-details .services-list a:hover,
.service-details .services-list a.active {
  background: #eef4fa;
  color: var(--color-primary);
}

.service-details .services-list a.active {
  font-weight: 700;
}

.service-details .services-list a.active::before,
.service-details .services-list a:hover::before {
  color: var(--color-primary);
}

.service-details .service-box {
  border: 0;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
  padding: 22px;
}

.service-details .service-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bl-ink);
}

.service-details .help-box {
  background: #0d2236;
  color: #fff;
  border-radius: 12px;
  padding: 22px 16px;
  margin-top: 14px;
}

.service-details .help-box h4,
.service-details .help-box a,
.service-details .help-box i {
  color: #fff;
}

.service-details .services-img,
.service-details .project-gallery {
  border-radius: var(--bl-radius);
  overflow: hidden;
}

/* 3. Nội dung bài viết / chi tiết: chữ dễ đọc, tiêu đề phụ rõ ràng */
.service-details h3,
.service-details .content h3 {
  color: var(--bl-ink);
  font-weight: 700;
}

.service-details p,
.service-details li {
  color: var(--bl-muted);
  line-height: 1.7;
}

/* 4. Thẻ dự án (trang Dự án, Dự án khác): chữ đè trên ảnh như dải dự án trang chủ (a.pm-card để thắng project-card.css nạp sau) */
a.pm-card {
  position: relative;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
}

a.pm-card:hover {
  box-shadow: var(--bl-shadow-hover);
}

a.pm-card .pm-media {
  aspect-ratio: 4 / 3;
}

a.pm-card .pm-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 18px 16px;
  background: linear-gradient(180deg, rgba(8, 25, 45, 0) 0%, rgba(8, 25, 45, 0.9) 100%);
  pointer-events: none;
}

a.pm-card .pm-title,
a.pm-card:hover .pm-title {
  color: #fff;
  min-height: 0;
  font-size: 16px;
}

a.pm-card .pm-location,
a.pm-card .pm-location i {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0;
}

a.pm-card .pm-year {
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  border-radius: 999px;
}

a.pm-card .pm-arrow {
  top: 12px;
  right: 12px;
  bottom: auto;
}

/* 5. Tuyển dụng: thẻ trắng bo góc cùng kiểu */
.services .service-item {
  border: 0;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--bl-shadow-hover);
}

.services .service-item .icon {
  border-radius: 12px;
}

/* 6. Tin tức chi tiết: thanh bên dạng thẻ */
.blog .sidebar {
  border: 0;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
  background: #fff;
}

.blog .sidebar .sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--bl-ink);
}

/* 7. Giới thiệu: ảnh thật bo góc, thông tin công ty dạng thẻ */
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(16, 42, 67, 0.18);
}

.overview-section .overview-list {
  border: 0;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
  overflow: hidden;
  background: #fff;
}

.overview-section .overview-row {
  border-color: var(--bl-line);
}

.overview-section .overview-label {
  color: var(--bl-ink);
  font-weight: 700;
}

/* 8. Nút chung: bo 8px, màu chủ đạo, đậm khi rê chuột */
.btn-primary,
.php-email-form button[type="submit"],
.contact .php-email-form button[type="submit"] {
  border-radius: 8px;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover,
.php-email-form button[type="submit"]:hover {
  background: #0f3b60;
  border-color: #0f3b60;
}

/* 9. Thống kê (trang Con người): thẻ trắng bo góc */
.stats-counter .stats-item {
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
  border: 0;
}

/* 10. Phân trang: nút bo 8px giống trang Tin tức */
.projects .pagination .page-link,
.blog-pagination li a {
  border-radius: 8px;
}

/*==============================================================
# ĐỒNG BỘ SÂU TRANG CON (đợt 2)
==============================================================*/
/* Nền xám nhạt chung như trang chủ */
.section-bg {
  background-color: #f6f8fb;
}

/* Tiêu đề block ở trang con: căn trái, vạch nhấn ngắn phía trên, giống block Dịch vụ / Dự án / Tin tức trang chủ */
body:not(.page-home) .section-header {
  text-align: left;
  padding-bottom: 32px;
}

body:not(.page-home) .section-header h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  color: #1f2d3a;
  line-height: 1.25;
  margin-bottom: 8px;
}

body:not(.page-home) .section-header h2:before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 0 0 14px;
  background: var(--color-primary);
}

body:not(.page-home) .section-header h2:after {
  display: none;
}

body:not(.page-home) .section-header p {
  margin: 0;
  max-width: 680px;
  color: #4a5662;
}

/* Khoảng cách các block trang con đều nhau */
body:not(.page-home) #main > section:not(.breadcrumbs) {
  padding-top: 64px;
  padding-bottom: 72px;
}

/* Đào tạo: "Tại sao chọn chúng tôi" thành dải nền xanh đậm như block Công nghệ trang chủ */
.why-band {
  background: #0d2236;
  border-radius: 18px;
  margin-left: 0;
  margin-right: 0;
  padding: 40px 28px 28px;
}

.why-band .section-header {
  padding-bottom: 20px;
}

.why-band .section-header h2 {
  color: #fff;
}

.why-band .section-header h2:before {
  background: #5aa9e6;
}

.why-band .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.why-band .icon-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px 18px;
  height: 100%;
  text-align: left !important;
  transition: background 0.3s ease, transform 0.3s ease;
}

.why-band .icon-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.why-band .icon-box i {
  color: #9fd0ff !important;
  font-size: 2.2rem !important;
}

.why-band .icon-box h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.why-band .icon-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0;
}

/* Tuyển dụng: hộp "Không tìm thấy vị trí phù hợp" thành dải kêu gọi nền xanh đậm */
.cta-band-row .service-item {
  background: linear-gradient(120deg, #0d2236 0%, #154d7c 100%);
  border-radius: 18px;
  padding: 40px 32px;
  color: #fff;
}

.cta-band-row .service-item h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.cta-band-row .service-item p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-band-row .service-item a {
  display: inline-block;
  margin-top: 8px;
  background: #fff;
  color: var(--color-primary) !important;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 700;
}

.cta-band-row .service-item:hover {
  transform: none;
}

/* Đợt 2 (bổ sung): tiêu đề trên dải tối giữ màu trắng; tiêu đề trang Sơ đồ tổ chức căn trái đồng bộ */
body:not(.page-home) .why-band .section-header h2 {
  color: #fff;
}

body:not(.page-home) .why-band .section-header h2:before {
  background: #5aa9e6;
}

body:not(.page-home) .why-band .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

body:not(.page-home) #organizational-chart .section-header,
body:not(.page-home) #organizational-chart .section-header h2,
body:not(.page-home) #organizational-chart .section-header p {
  text-align: left;
}

.overview-section .overview-title {
  text-align: left;
  color: #1f2d3a;
  font-size: clamp(22px, 2vw, 28px);
}

.overview-section .overview-title:before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 0 0 14px;
  background: var(--color-primary);
}

body:not(.page-home) #organizational-chart .section-header h2 {
  text-align: left !important;
  margin: 0 0 8px !important;
}

body:not(.page-home) .why-band .section-header p,
body:not(.page-home) #organizational-chart .section-header p {
  text-align: left !important;
  margin-left: 0 !important;
  max-width: 680px;
}

/* Block Công nghệ v2: tiêu đề kiểu nhãn trên nền tối, ô là link, chữ luôn hiện */
.tech-bento-section .tech-head .block-eyebrow {
  color: #9fd0ff;
}

.tech-bento-section .tech-head .block-eyebrow::before {
  background: #9fd0ff;
}

.tech-bento-section .tech-head .block-title {
  color: #fff;
}

.tech-bento-section .tech-head .strip-all {
  color: #9fd0ff;
}

.tech-bento .bento-tile {
  display: block;
  color: #fff;
  background-color: #1a3550;
}

.tech-bento .bento-tile::before {
  background: linear-gradient(180deg, rgba(8, 25, 45, 0.1) 0%, rgba(8, 25, 45, 0.55) 45%, rgba(8, 25, 45, 0.95) 100%);
}

.tech-bento .bento-tile:hover::before {
  background: linear-gradient(180deg, rgba(21, 77, 124, 0.35) 0%, rgba(8, 25, 45, 0.7) 45%, rgba(8, 25, 45, 0.97) 100%);
}

.tech-bento .bento-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
}

.tech-bento .bento-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.tech-bento .bento-1 .bento-title,
.tech-bento .bento-6 .bento-title {
  font-size: 22px;
}

.tech-bento .bento-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-bento .bento-proof {
  font-size: 12.5px;
  font-weight: 600;
  color: #9fd0ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-bento .bento-go {
  transition: transform 0.25s ease;
}

.tech-bento .bento-tile:hover .bento-go {
  transform: translateX(4px);
}

.tech-bento .bento-tile:hover .bento-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 991px) {
  .tech-bento .bento-desc {
    -webkit-line-clamp: 3;
  }
}

/* Block Công nghệ v3: ít chữ hơn — tên + nhãn dự án; mô tả và nút hiện khi rê chuột */
.tech-bento .bento-tile::before {
  background: linear-gradient(180deg, rgba(8, 25, 45, 0) 55%, rgba(8, 25, 45, 0.92) 100%);
}

.tech-bento .bento-tile:hover::before,
.tech-bento .bento-tile:focus-visible::before {
  background: linear-gradient(180deg, rgba(8, 25, 45, 0.25) 0%, rgba(8, 25, 45, 0.95) 100%);
}

.tech-bento .bento-body {
  gap: 4px;
}

.tech-bento .bento-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  color: #fff;
  margin-bottom: 4px;
}

.tech-bento .bento-proof {
  display: none;
}

.tech-bento .bento-desc,
.tech-bento .bento-cta {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.tech-bento .bento-cta {
  font-size: 13px;
  font-weight: 700;
  color: #9fd0ff;
}

/* Ô lớn: luôn có 1 dòng mô tả */
.tech-bento .bento-1 .bento-desc,
.tech-bento .bento-6 .bento-desc {
  max-height: 24px;
  opacity: 1;
  -webkit-line-clamp: 1;
}

/* Rê chuột / focus: hiện mô tả đầy đủ và nút */
.tech-bento .bento-tile:hover .bento-desc,
.tech-bento .bento-tile:focus-visible .bento-desc {
  max-height: 60px;
  opacity: 1;
  -webkit-line-clamp: 2;
}

.tech-bento .bento-tile:hover .bento-cta,
.tech-bento .bento-tile:focus-visible .bento-cta {
  max-height: 24px;
  opacity: 1;
  margin-top: 4px;
}

.tech-bento .bento-tile:hover .bento-title {
  text-decoration: none;
}

/* Điện thoại / màn hình cảm ứng: hiện sẵn mô tả vì không rê chuột được */
@media (max-width: 991px), (hover: none) {
  .tech-bento .bento-desc {
    max-height: 70px;
    opacity: 1;
    -webkit-line-clamp: 2;
  }

  .tech-bento .bento-cta {
    max-height: 24px;
    opacity: 1;
    margin-top: 4px;
  }

  .tech-bento .bento-tile::before {
    background: linear-gradient(180deg, rgba(8, 25, 45, 0.1) 30%, rgba(8, 25, 45, 0.92) 100%);
  }
}

/*--------------------------------------------------------------
# Trang chủ: block "Về chúng tôi" (nội dung theo hồ sơ năng lực)
--------------------------------------------------------------*/
.about-v2 .about-visual {
  position: relative;
  margin: 0;
  padding-bottom: 48px;
}

.about-v2 .about-visual > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 260px);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(16, 42, 67, 0.18);
}

.about-v2 .about-quote {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.16);
  border-left: 4px solid var(--color-primary);
}

.about-v2 .about-quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.about-v2 .about-quote p {
  font-size: 14.5px;
  line-height: 1.55;
  font-style: italic;
  color: #33414e;
  margin: 0 0 6px;
}

.about-v2 .about-quote cite {
  font-style: normal;
  font-size: 13px;
  color: #5b6672;
}

.about-v2 .about-quote cite strong {
  color: var(--color-primary);
}

.about-v2 .about-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #4a5662;
  margin-bottom: 20px;
}

.about-v2 .about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  margin-bottom: 22px;
}

.about-v2 .about-pillar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-v2 .about-pillar i {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f0f8;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.about-v2 .about-pillar h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #1f2d3a;
  margin: 0 0 2px;
}

.about-v2 .about-pillar p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #5b6672;
  margin: 0;
}

.about-v2 .about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid #e3e9ef;
  border-bottom: 1px solid #e3e9ef;
}

.about-v2 .about-stats dt {
  font-family: var(--font-secondary);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.about-v2 .about-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: #5b6672;
}

.about-v2 .about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.about-v2 .about-actions .hero-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
}

.about-v2 .about-actions .hero-btn:hover {
  background: #0f3b60;
  color: #fff;
}

.about-v2 .about-link {
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 575px) {
  .about-v2 .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-v2 .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-v2 .about-quote {
    position: static;
    margin-top: -36px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .about-v2 .about-visual {
    padding-bottom: 0;
  }
}

/* Thẻ dự án: nửa trên để kéo dải, nửa dưới (tên dự án) bấm để xem chi tiết */
.strip-card-body {
  min-height: 50%;
  justify-content: flex-end;
  color: #fff;
  cursor: pointer;
}

.strip-card-body:hover,
.strip-card-body:focus {
  color: #fff;
}

.strip-card:hover .strip-title {
  text-decoration: none;
}

.strip-card-body:hover .strip-title,
.strip-card-body:focus-visible .strip-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.strip-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.strip-card-body:hover .strip-more,
.strip-card-body:focus-visible .strip-more {
  max-height: 24px;
  opacity: 1;
}

.strip-more i {
  transition: transform 0.3s ease;
}

.strip-card-body:hover .strip-more i {
  transform: translateX(4px);
}

@media (hover: none) {
  .strip-more {
    max-height: 24px;
    opacity: 1;
  }
}

/* SEO 07/11/2026: H1 trang chủ chứa thương hiệu + từ khóa, khẩu hiệu giữ cỡ chữ lớn như cũ */
.hero .hero-message h1.hero-brand {
  font-family: var(--font-primary);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero .hero-message p.hero-title {
  color: #fff;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ======= Trang giải pháp BIM ngách (07/11/2026) ======= */
.landing-page .landing-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2d3a;
  margin: 36px 0 14px;
}
.landing-page .landing-body ul { padding-left: 1.2rem; }
.landing-page .landing-body li { margin-bottom: 8px; }
.landing-page .landing-body .lead { font-size: 1.12rem; color: #33414e; }
.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
  transition: background-color 0.25s, border-color 0.25s;
}
.landing-btn:hover { background: #0f3b60; border-color: #0f3b60; color: #fff; }
.landing-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0 8px; }
.landing-phone { font-weight: 600; color: var(--color-primary); }
.landing-page ol.landing-steps { list-style: none; padding: 0; counter-reset: lstep; }
.landing-page ol.landing-steps li {
  counter-increment: lstep;
  position: relative;
  padding: 12px 14px 12px 58px;
  margin-bottom: 10px;
  background: #f5f8fb;
  border-radius: 10px;
}
.landing-page ol.landing-steps li::before {
  content: counter(lstep);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-page ol.landing-steps strong { display: block; color: #1f2d3a; }
.landing-page ol.landing-steps span { color: #52565e; }
.landing-page ul.landing-checks { list-style: none; padding-left: 0; }
.landing-page ul.landing-checks i { color: var(--color-primary); margin-right: 6px; }
.landing-page .related-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(16, 42, 67, 0.08);
  color: inherit;
  transition: transform 0.3s ease;
}
.landing-page .related-card:hover { transform: translateY(-4px); }
.landing-page .related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.landing-page .related-card div { padding: 12px 14px; }
.landing-page .related-card h3 { font-size: 16px; font-weight: 700; color: #1f2d3a; margin: 0; }
.landing-faq details {
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.landing-faq summary { font-weight: 600; cursor: pointer; color: #1f2d3a; }
.landing-faq details p { margin: 10px 0 0; color: #52565e; }
.landing-links { display: flex; flex-direction: column; gap: 6px; }
.landing-links a { color: var(--color-primary); font-weight: 600; }
.landing-cta-box {
  margin-top: 40px;
  padding: 28px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
}
.landing-page .landing-cta-box h2 { color: #fff; margin-top: 0; }
.landing-cta-box p { color: rgba(255, 255, 255, 0.9); }
.landing-cta-box .landing-btn { background: #fff; color: var(--color-primary); border-color: #fff; }
.landing-cta-box .landing-btn:hover { background: #e8eef4; border-color: #e8eef4; color: var(--color-primary); }
.landing-lang-note { background: #fff7e6; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.services-list .services-list-label {
  display: block;
  padding: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a96a3;
}
.bim-solutions { padding: 60px 0; }
.solution-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 14px;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(21, 77, 124, 0.14); color: inherit; }
.solution-card > i { font-size: 32px; color: var(--color-primary); margin-bottom: 12px; }
.solution-card h3 { font-size: 19px; font-weight: 700; color: #1f2d3a; }
.solution-card p { color: #52565e; font-size: 15px; flex-grow: 1; }
.solution-card span { color: var(--color-primary); font-weight: 600; }
.landing-page .landing-body ul:not(.landing-checks) { list-style: disc; padding-left: 1.3rem; }
.landing-page .landing-body ul:not(.landing-checks) li { display: list-item; padding: 0; margin-bottom: 8px; }
.landing-page .landing-body ul.landing-checks li { display: flex; align-items: flex-start; padding: 4px 0; margin: 0; }

/* Sửa 07/11/2026: mô tả dưới tiêu đề block trang con căn trái cùng tiêu đề (trước bị rule chung căn giữa) */
body:not(.page-home) .section-header p {
  text-align: left;
}
#bim-solutions { scroll-margin-top: 70px; }
