/* ----------------------------------------------------------------------------
   Lớp nâng cấp giao diện & animation (nạp sau blue.css)
   - Không đổi cấu trúc HTML, chỉ ghi đè style + hiệu ứng
   - Hiệu ứng xuất hiện khi cuộn do assets/js/enhance.js gắn class
---------------------------------------------------------------------------- */

:root {
  --ex-primary: #1C46AB;
  --ex-primary-2: #3D6FE0;
  --ex-accent: #22B8E6;
  --ex-ink: #1E3056;
  --ex-grad: linear-gradient(135deg, #1C46AB 0%, #3D6FE0 55%, #22B8E6 100%);
  --ex-grad-soft: linear-gradient(135deg, rgba(28, 70, 171, .08) 0%, rgba(34, 184, 230, .08) 100%);
  --ex-ease: cubic-bezier(.22, 1, .36, 1);
  --ex-radius: 14px;
  --ex-shadow: 0 10px 30px -12px rgba(28, 70, 171, .18), 0 2px 8px rgba(30, 48, 86, .04);
  --ex-shadow-lg: 0 24px 50px -18px rgba(28, 70, 171, .35), 0 4px 14px rgba(30, 48, 86, .06);
}

html {
  scroll-behavior: smooth;
}

/* ***** Thanh tiến trình cuộn ***** */
.ex-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  background: var(--ex-grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--ex-scroll, 0));
  pointer-events: none;
}

/* ***** Preloader: vòng xoay thương hiệu ***** */
#preloader {
  background: radial-gradient(circle at 30% 20%, #3D6FE0 0%, #1C46AB 55%, #132f78 100%);
}

#preloader #loader {
  top: calc(50% - 28px);
  left: calc(50% - 28px);
}

#preloader #loader #shadow {
  display: none;
}

#preloader #loader #box {
  width: 56px;
  height: 56px;
  background: none;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-right-color: var(--ex-accent);
  animation: exSpin .9s linear infinite;
}

@keyframes exSpin {
  to { transform: rotate(360deg); }
}

/* ***** Header: kính mờ khi cuộn, gạch chân động cho menu ***** */
.header-area {
  transition: background-color .4s var(--ex-ease), box-shadow .4s var(--ex-ease), height .3s var(--ex-ease);
}

.header-area.header-sticky {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  box-shadow: 0 1px 0 rgba(28, 70, 171, .06), 0 10px 30px -12px rgba(28, 70, 171, .15);
}

.header-area .logo img {
  transition: transform .4s var(--ex-ease);
}

.header-area .logo:hover img {
  transform: scale(1.06) rotate(-3deg);
}

@media (min-width: 992px) {
  .header-area .main-nav .nav li:not(.lang-switch) > a {
    position: relative;
  }

  .header-area .main-nav .nav li:not(.lang-switch) > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--ex-grad);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform .45s var(--ex-ease);
  }

  .header-area .main-nav .nav li:not(.lang-switch) > a:hover::after,
  .header-area .main-nav .nav li:not(.lang-switch) > a.ex-current::after {
    transform: scaleX(1);
    transform-origin: 0 50%;
  }

  .header-area .main-nav .nav li:not(.lang-switch) > a.ex-current {
    color: var(--ex-primary);
  }
}

/* ***** Nút chính: gradient + vệt sáng lướt qua ***** */
.btn-primary-line {
  background: var(--ex-grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px -10px rgba(28, 70, 171, .6);
  transition: transform .35s var(--ex-ease), box-shadow .35s var(--ex-ease), background-position .6s var(--ex-ease);
}

.btn-primary-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ex-ease);
  z-index: -1;
}

.btn-primary-line:hover {
  background: var(--ex-grad);
  background-size: 160% 160%;
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(28, 70, 171, .7);
}

.btn-primary-line:hover::after {
  left: 130%;
}

.btn-primary-line:active {
  transform: translateY(0);
}

/* ***** Tiêu đề section: vạch gradient bên dưới ***** */
.left-heading .section-title,
.center-heading .section-title {
  color: var(--ex-ink);
  font-weight: 600;
}

.left-heading .section-title::after,
.center-heading .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--ex-grad);
  transform-origin: 0 50%;
  transition: width .6s var(--ex-ease);
}

.center-heading .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.left-heading:hover .section-title::after,
.center-heading:hover .section-title::after {
  width: 84px;
}

/* ***** Hero ***** */
.welcome-area {
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(34, 184, 230, .12), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(28, 70, 171, .10), transparent 70%),
    #fff;
}

/* Hai đốm màu trôi chậm phía sau */
.welcome-area::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  top: -140px;
  left: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 111, 224, .22), transparent 65%);
  filter: blur(10px);
  animation: exBlob 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.welcome-area .header-text {
  position: relative;
  z-index: 4;
}

@keyframes exBlob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(120px, 80px) scale(1.15); }
  100% { transform: translate(40px, 180px) scale(.95); }
}

.welcome-area .header-text h1 {
  color: var(--ex-ink);
}

.welcome-area .header-text h1 span {
  background: linear-gradient(90deg, #1C46AB, #3D6FE0, #22B8E6, #3D6FE0, #1C46AB);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  animation: exShine 6s linear infinite;
}

@keyframes exShine {
  to { background-position: 200% center; }
}

.welcome-area .home-img-group {
  transform: perspective(1200px) rotateX(var(--ex-ry, 0deg)) rotateY(var(--ex-rx, 0deg));
  transition: transform .6s var(--ex-ease);
  transform-style: preserve-3d;
}

.welcome-area .home-img-group .home-img {
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow-lg);
}

.welcome-area .home-img-group .home-img img {
  transition: transform 1.2s var(--ex-ease);
}

.welcome-area .home-img-group .home-img:hover img {
  transform: scale(1.06);
}

.welcome-area .home-img-group .home-img.img-4::after {
  background: var(--ex-grad);
  opacity: .9;
}

/* Ảnh hero lơ lửng nhẹ (dùng thuộc tính translate để không đụng transform) */
@media (min-width: 992px) {
  .welcome-area .home-img-group .home-img {
    animation: exFloat 7s ease-in-out infinite;
  }

  .welcome-area .home-img-group .home-img.img-2 { animation-delay: -1.5s; }
  .welcome-area .home-img-group .home-img.img-3 { animation-delay: -3s; }
  .welcome-area .home-img-group .home-img.img-4 { animation-delay: -4.5s; }
}

@keyframes exFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* Hero xuất hiện tuần tự sau khi preloader tắt */
.ex-js .welcome-area .header-text h1,
.ex-js .welcome-area .header-text p,
.ex-js .welcome-area .header-text .btn-primary-line,
.ex-js .welcome-area .home-img-group {
  opacity: 0;
}

.ex-ready .welcome-area .header-text h1,
.ex-ready .welcome-area .header-text p,
.ex-ready .welcome-area .header-text .btn-primary-line {
  animation: exRise .9s var(--ex-ease) both;
}

.ex-ready .welcome-area .header-text p { animation-delay: .12s; }
.ex-ready .welcome-area .header-text .btn-primary-line { animation-delay: .24s; }

.ex-ready .welcome-area .home-img-group {
  animation: exZoomIn 1.1s var(--ex-ease) .15s both;
}

@keyframes exRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes exZoomIn {
  from { opacity: 0; scale: .94; }
  to   { opacity: 1; scale: 1; }
}

/* ***** Trang con: banner tiêu đề ***** */
/* Ảnh nền: page-cover.jpg (Tokyo, Unsplash License – Wenhao Ruan). Thay file này để đổi ảnh.
   Ảnh nằm ở :after để phủ được cả background inline mà plugin parallax gắn lên .cover trên iOS/Android */
.page .cover {
  min-height: 0;
  background: #0e2058;
}

.page .cover:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url(../images/photos/page-cover.jpg) center 32% / cover no-repeat;
  animation: exKenBurns 26s ease-in-out infinite alternate;
}

@keyframes exKenBurns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Đậm bên trái (chỗ đặt chữ), trong dần sang phải để thấy ảnh */
.page .cover:before {
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1;
  background:
    linear-gradient(0deg, rgba(14, 32, 88, .45) 0%, rgba(14, 32, 88, 0) 45%),
    linear-gradient(90deg, rgba(14, 32, 88, .9) 0%, rgba(19, 47, 120, .62) 42%, rgba(28, 70, 171, .12) 100%);
}

.page .page-bottom {
  padding-top: 70px;
}

.page .cover .page-top {
  position: relative;
  bottom: auto;
  padding: 92px 0 78px;
  text-align: left;
}

/* Chữ tiếng Anh cỡ lớn trắng mờ dần, tiêu đề tiếng Nhật đè lên nửa dưới */
.page-ghost {
  display: block;
  font-size: clamp(64px, 10.5vw, 150px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: .04em;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.page .cover .page-top h1 {
  position: relative;
  height: auto;
  margin-top: -.55em;
  padding: 0 0 0 .1em;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 3px;
  text-align: left;
  color: #fff;
  text-shadow: 0 4px 24px rgba(5, 15, 50, .45);
}

.page .cover .page-top h1:before {
  display: none;
}

/* Xuất hiện: chữ lớn trồi lên từ dưới mép, tiêu đề trượt vào sau */
.ex-js .page .cover .page-ghost,
.ex-js .page .cover .page-top h1 {
  opacity: 0;
}

.ex-ready .page .cover .page-ghost {
  animation: exGhostIn 1.3s var(--ex-ease) both;
}

.ex-ready .page .cover .page-top h1 {
  animation: exSlideIn 1s var(--ex-ease) .35s both;
}

@keyframes exGhostIn {
  from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(30px); letter-spacing: .14em; }
  to   { opacity: 1; clip-path: inset(0 0 0 0); transform: none; letter-spacing: .04em; }
}

@keyframes exSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .page .cover:before {
    background:
      linear-gradient(0deg, rgba(14, 32, 88, .5) 0%, rgba(14, 32, 88, 0) 50%),
      linear-gradient(90deg, rgba(14, 32, 88, .88) 0%, rgba(19, 47, 120, .6) 70%, rgba(28, 70, 171, .35) 100%);
  }

  .page .cover .page-top {
    padding: 60px 0 50px;
  }

  .page .cover .page-top h1 {
    font-size: 28px !important;
    line-height: 1.4 !important;
    padding-bottom: 0;
  }
}

/* ***** Thẻ "vấn đề" ***** */
.features-small-item {
  border-radius: var(--ex-radius);
  border: 1px solid rgba(28, 70, 171, .06);
  box-shadow: var(--ex-shadow);
  transition: transform .45s var(--ex-ease), box-shadow .45s var(--ex-ease);
  height: calc(100% - 30px);
}

.features-small-item:before {
  background: var(--ex-grad);
  transition: opacity .45s var(--ex-ease);
}

/* Đốm sáng chạy theo con trỏ */
.features-small-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(260px circle at var(--ex-x, 50%) var(--ex-y, 0%), rgba(255, 255, 255, .22), transparent 60%);
  transition: opacity .4s;
  pointer-events: none;
}

.features-small-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--ex-shadow-lg);
}

.features-small-item:hover::after {
  opacity: 1;
}

.features-small-item .icon {
  background: var(--ex-grad-soft);
  z-index: 2;
  transition: transform .6s var(--ex-ease), background-color .4s, box-shadow .4s;
}

.features-small-item .icon i {
  transition: color .4s, transform .6s var(--ex-ease);
}

.features-small-item:hover .icon {
  background: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .25);
  transform: translateY(-2px) scale(1.08);
}

.features-small-item:hover .icon i {
  transform: rotate(-10deg) scale(1.15);
}

.features-small-item .features-title {
  font-weight: 600;
}

/* ***** Khối dịch vụ ***** */
.btn-home {
  border-radius: 10px 10px 0 0;
  box-shadow: var(--ex-shadow);
}

.btn-home:after {
  background: var(--ex-grad);
}

.btn-home:hover:after,
.btn-home.active:after {
  background: var(--ex-grad);
}

.btn-home span {
  color: var(--ex-ink);
}

/* Danh sách chi tiết dạng timeline */
.service-details {
  margin-left: 22px;
  padding: 14px 0 4px 18px;
  border-left: 2px solid rgba(28, 70, 171, .12);
}

.service-details li {
  color: #4a5d7a;
  line-height: 1.7;
  transition: transform .35s var(--ex-ease), color .35s;
}

.service-details li:hover {
  transform: translateX(4px);
  color: var(--ex-ink);
}

.service-details li .icon img {
  transition: transform .5s var(--ex-ease);
}

.service-details li:hover .icon img {
  transform: scale(1.2) rotate(-12deg);
}

/* Ảnh minh họa */
.feature-media img {
  border-radius: var(--ex-radius);
  transition: transform .6s var(--ex-ease), box-shadow .6s var(--ex-ease);
}

.feature-media img:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--ex-shadow-lg);
}

/* ***** Bộ đếm ***** */
.parallax:before,
.parallax-counter:before {
  background: linear-gradient(120deg, rgba(19, 47, 120, .95) 0%, rgba(28, 70, 171, .9) 50%, rgba(34, 184, 230, .75) 100%);
  opacity: 1;
}

.parallax-counter .parallax-content .count-item strong {
  font-weight: 700;
  font-size: 52px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.parallax-counter .parallax-content .count-item strong:before {
  top: 78px;
  width: 40px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .7);
  transition: width .5s var(--ex-ease);
}

.parallax-counter .parallax-content .count-item:hover strong:before {
  width: 90px;
}

.parallax-counter .parallax-content .count-item span {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 28px;
  opacity: .92;
}

@media (max-width: 991px) {
  .parallax-counter .parallax-content .count-item strong:before {
    top: 72px;
  }
}

/* ***** Thành viên ***** */
.team-item {
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
  transition: transform .5s var(--ex-ease), box-shadow .5s var(--ex-ease);
}

.team-item .team-content .team-info:before {
  background-image: var(--ex-grad);
  border-top-left-radius: var(--ex-radius);
  border-top-right-radius: var(--ex-radius);
}

.team-item .team-content .team-info .user-name {
  font-weight: 600;
}

.team-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--ex-shadow-lg);
}

.team-item .user-image {
  box-shadow: 0 10px 24px -8px rgba(28, 70, 171, .35);
}

.team-item .user-image img {
  transition: transform .6s var(--ex-ease);
}

.team-item:hover .user-image {
  border-color: #e6eeff;
  box-shadow: 0 0 0 3px rgba(61, 111, 224, .45), 0 14px 28px -8px rgba(28, 70, 171, .45);
}

.team-item:hover .user-image img {
  transform: scale(1.08);
}

/* ***** Trang Giới thiệu / Liên hệ ***** */
.about-image,
.entity {
  border-radius: var(--ex-radius);
}

.about-image {
  overflow: hidden;
}

.entity {
  transition: box-shadow .5s var(--ex-ease), transform .5s var(--ex-ease);
}

.entity:hover {
  box-shadow: var(--ex-shadow-lg);
}

/* ***** Trang Liên hệ ***** */
/* Thẻ thông tin (trái) và bản đồ (phải) đặt cạnh nhau, cao bằng nhau */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  float: none;
}

.contact .map-wrapper {
  order: 2;
  height: auto;
  min-height: 460px;
  border-radius: 20px;
  border: 1px solid rgba(28, 70, 171, .08);
  box-shadow: var(--ex-shadow);
}

.contact .contact-info {
  order: 1;
  width: auto;
  margin: 0;
  padding: 32px 30px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(28, 70, 171, .08);
  box-shadow: var(--ex-shadow);
  overflow: hidden;
}

/* Cột hẹp: xếp các mục thành một cột */
.contact .contact-info .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

.contact .contact-info .row > [class*="col-"] + [class*="col-"] {
  margin-top: 4px;
  padding-top: 4px;
}

/* Vạch màu mảnh trên đầu thẻ */
.contact .contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ex-grad);
}

.contact .contact-info > * {
  position: relative;
  z-index: 1;
}

.contact .contact-info .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 12px;
  overflow: visible;
  color: #5a6d8a;
  transition: background-color .35s var(--ex-ease);
}

.contact .contact-info .item + .item {
  margin-top: 4px;
}

.contact .contact-info .item:hover {
  background: #F4F7FC;
}

.contact .contact-info .item > i {
  float: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  border-radius: 12px;
  color: var(--ex-primary);
  background: rgba(61, 111, 224, .1);
  transition: transform .45s var(--ex-ease), background-color .35s, color .35s;
}

.contact .contact-info .item:hover > i {
  transform: translateY(-2px) rotate(-8deg);
  color: #fff;
  background: var(--ex-primary);
}

.contact .contact-info .item .txt {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.contact .contact-info .item .txt > span {
  float: none;
  width: auto;
  display: block;
  font-size: 14px;
  line-height: 1.75;
  color: #5a6d8a;
}

.contact .contact-info .item .txt strong {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ex-ink);
}

.contact .contact-info .item .txt a {
  color: var(--ex-primary);
  font-weight: 700;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ex-ease);
}

.contact .contact-info .item .txt a:hover {
  background-size: 100% 1px;
}

/* Số điện thoại / email nổi bật hơn */
.contact .contact-info .item .txt a[href^="tel"],
.contact .contact-info .item .txt a[href^="mailto"] {
  font-size: 17px;
  letter-spacing: .5px;
}

.contact .contact-info .social {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EEF2F8;
}

.contact .contact-info .social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 18px;
  border-radius: 50%;
  color: var(--ex-primary);
  background: rgba(61, 111, 224, .1);
  transition: transform .35s var(--ex-ease), background-color .35s, color .35s;
}

.contact .contact-info .social li a:hover {
  opacity: 1;
  color: #fff;
  background: var(--ex-primary);
  transform: translateY(-3px);
}

/* Khối form: một thẻ, cột trái là panel nền xanh nhạt */
.contact-bottom {
  margin-top: 70px;
  padding-top: 0;
  border-top: 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(28, 70, 171, .08);
  box-shadow: var(--ex-shadow-lg);
  overflow: hidden;
}

.contact-bottom > .row {
  margin: 0;
}

.contact-bottom .contact-intro {
  position: relative;
  padding: 48px 40px;
  overflow: hidden;
  background: linear-gradient(165deg, #EEF4FF 0%, #F6F9FF 100%);
  border-right: 1px solid rgba(28, 70, 171, .06);
}

.contact-bottom .contact-intro::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -110px;
  border-radius: 50%;
  border: 36px solid rgba(61, 111, 224, .06);
  pointer-events: none;
}

.contact-bottom .contact-intro > * {
  position: relative;
}

.contact-intro-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  line-height: 56px;
  text-align: center;
  font-size: 24px;
  color: #fff;
  border-radius: 16px;
  background: var(--ex-grad);
  box-shadow: 0 12px 24px -10px rgba(28, 70, 171, .55);
  animation: exBob 4s ease-in-out infinite;
}

@keyframes exBob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.contact-bottom .contact-intro h5 {
  margin-bottom: 16px !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .5px;
  color: var(--ex-ink);
}

.contact-bottom .contact-intro .contact-text {
  color: #5a6d8a;
  font-size: 14px;
  line-height: 1.9;
}

.contact-bottom .contact-intro .contact-text p {
  margin-bottom: 18px;
}

/* Ghi chú về cách gửi: tách thành hộp nhỏ */
.contact-bottom .contact-intro .contact-text p:last-child {
  margin-bottom: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: #5a6d8a;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(28, 70, 171, .08);
}

.contact-bottom .contact-form-col {
  padding: 48px 40px 40px;
}

.contact-bottom .contact-form input,
.contact-bottom .contact-form textarea {
  height: 54px;
  margin-bottom: 20px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ex-ink);
  border: 1px solid transparent;
  border-radius: 12px;
  background: #F4F7FC;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}

.contact-bottom .contact-form textarea {
  height: 170px;
  padding: 16px 20px;
}

.contact-bottom .contact-form input::placeholder,
.contact-bottom .contact-form textarea::placeholder {
  color: #8A9BB5;
}

.contact-bottom .contact-form input:hover,
.contact-bottom .contact-form textarea:hover {
  background: #EEF3FB;
}

.contact-bottom .contact-form input:focus,
.contact-bottom .contact-form textarea:focus {
  padding-left: 20px;
  border-color: var(--ex-primary-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 111, 224, .12);
  outline: none;
}

.contact-bottom .contact-form .is-invalid,
.contact-bottom .contact-form .is-invalid:focus {
  border-color: #E3342F;
  background: #FFF6F6;
  box-shadow: 0 0 0 4px rgba(227, 52, 47, .1);
}

.contact-bottom .contact-form .btn-primary-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 180px;
  height: 52px;
  padding: 0 32px;
  font-size: 13px;
}

.contact-bottom .contact-form .btn-primary-line i {
  font-size: 14px;
  transition: transform .5s var(--ex-ease);
}

.contact-bottom .contact-form .btn-primary-line:hover i {
  transform: translate(4px, -3px) rotate(-8deg);
}

/* FAQ: mỗi câu hỏi là một thẻ riêng, có mũi tên mở/đóng */
.contact-bottom + .faq-wrapper,
.page .faq-wrapper {
  margin-top: 90px;
}

.faq-wrapper .faq-header {
  margin-bottom: 30px;
  text-align: center;
}

.faq-wrapper .faq-header h2 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--ex-ink);
}

.faq-wrapper .faq-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--ex-grad);
}

.faq {
  max-width: 920px;
  margin: 0 auto 40px;
  background: none;
  box-shadow: none;
}

.faq .card {
  margin-bottom: 12px;
  border: 1px solid rgba(28, 70, 171, .07);
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 4px 18px -10px rgba(28, 70, 171, .18);
  overflow: hidden;
  transition: box-shadow .4s var(--ex-ease), border-color .4s;
}

.faq .card:hover {
  box-shadow: var(--ex-shadow);
}

.faq .card:has(.collapse.show),
.faq .card:has(.collapsing) {
  border-color: rgba(61, 111, 224, .35);
  box-shadow: var(--ex-shadow);
}

.faq .card .card-header,
.faq .card .card-header:hover {
  padding-left: 0;
  background: none;
}

.faq .card .card-header .faq-title {
  position: relative;
  align-items: center;
  padding: 20px 64px 20px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ex-ink);
}

.faq .card .card-header .faq-title:hover {
  color: var(--ex-primary);
}

.faq .card .card-header .faq-title .badge {
  width: 32px;
  height: 32px;
  margin-top: 0;
  margin-right: 16px;
  line-height: 32px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  color: var(--ex-primary);
  background: var(--ex-grad-soft);
  transition: background .4s, color .4s;
}

.faq .card .card-header .faq-title:not(.collapsed) .badge {
  color: #fff;
  background: var(--ex-grad);
}

.faq .card .card-header .faq-title::after {
  content: '\f107';
  font-family: FontAwesome;
  position: absolute;
  right: 22px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  line-height: 30px;
  text-align: center;
  font-size: 16px;
  border-radius: 50%;
  color: var(--ex-primary);
  background: #F4F7FC;
  transition: transform .45s var(--ex-ease), background-color .3s, color .3s;
}

.faq .card .card-header .faq-title:not(.collapsed)::after {
  transform: rotate(180deg);
  color: #fff;
  background: var(--ex-primary);
}

.faq .card .card-body {
  padding: 0 28px 8px 72px;
  border-top: 0;
}

.faq .card .card-body p {
  color: #5a6d8a;
  line-height: 1.9;
}

@media (max-width: 991px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact .map-wrapper {
    min-height: 0;
    height: 300px !important;
    margin-bottom: 0;
  }

  .contact .contact-info {
    margin: 0 !important;
    width: auto !important;
    padding: 26px 22px 10px;
  }

  .contact-bottom {
    margin-top: 50px;
  }

  .contact-bottom .contact-intro,
  .contact-bottom .contact-form-col {
    padding: 34px 26px;
  }

  .contact-bottom .contact-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(28, 70, 171, .06);
  }

  .faq .card .card-header .faq-title {
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .contact .contact-info {
    padding: 22px 18px 8px;
  }

  .contact .contact-info .item .txt a[href^="tel"],
  .contact .contact-info .item .txt a[href^="mailto"] {
    font-size: 15px;
  }

  .contact-bottom .contact-form .btn-primary-line {
    width: 100%;
  }

  .faq .card .card-header .faq-title {
    padding: 16px 56px 16px 16px;
    font-size: 14px;
  }

  .faq .card .card-header .faq-title::after {
    right: 14px;
  }

  .faq .card .card-header .faq-title .badge {
    margin-right: 12px;
  }

  .faq .card .card-body {
    padding: 0 18px 6px 18px;
  }
}

/* ***** Footer ***** */
footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #132f78 0%, #1C46AB 55%, #2a63d4 100%);
}

footer::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 230, .25), transparent 65%);
  pointer-events: none;
}

footer > .container {
  position: relative;
}

footer .footer-nav li a {
  transition: color .3s, padding-left .35s var(--ex-ease);
}

footer .footer-nav li a:hover {
  padding-left: 6px;
}

footer .address .social li a {
  display: inline-block;
  transition: transform .35s var(--ex-ease), opacity .3s;
}

footer .address .social li a:hover {
  transform: translateY(-3px) scale(1.1);
}

/* ***** Nút lên đầu trang ***** */
.ex-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 46px;
  text-align: center;
  background: var(--ex-grad);
  box-shadow: 0 12px 24px -10px rgba(28, 70, 171, .7);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .4s var(--ex-ease), transform .4s var(--ex-ease), visibility .4s;
}

.ex-to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ex-to-top:hover {
  transform: translateY(-3px);
}

.ex-to-top:focus-visible {
  outline: 2px solid var(--ex-accent);
  outline-offset: 3px;
}

/* ***** Xuất hiện khi cuộn (enhance.js gắn .ex-reveal / .is-visible) ***** */
.ex-reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity .8s var(--ex-ease) var(--ex-delay, 0s),
    translate .8s var(--ex-ease) var(--ex-delay, 0s),
    transform .45s var(--ex-ease),
    box-shadow .45s var(--ex-ease),
    color .35s;
}

.ex-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ***** Giảm chuyển động theo cài đặt hệ điều hành ***** */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .ex-reveal,
  .ex-js .welcome-area .header-text h1,
  .ex-js .welcome-area .header-text p,
  .ex-js .welcome-area .header-text .btn-primary-line,
  .ex-js .welcome-area .home-img-group,
  .ex-js .page .cover .page-top h1,
  .ex-js .page .cover .page-ghost {
    opacity: 1;
    translate: none;
  }
}
