﻿/********** Template CSS **********/

.back-to-top {
  position: fixed;
  display: none;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 35px !important;
  height: 35px !important;
}

small {
  color: var(--bs-main);
}

.fw-medium {
  font-weight: 600;
}

.mt-6 {
  margin-top: 5rem;
}

.mb-6 {
  margin-bottom: 5rem;
}

.pt-6 {
  padding-top: 5rem;
}

.pb-6 {
  padding-bottom: 5rem;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px !important;
}

/* Bo tròn cho nút btn-light px-3 */
.btn.btn-light.px-3 {
  border-radius: 6px !important;
}

.btn-primary,
.btn-outline-primary:hover {
  color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
  color: var(--bs-dark);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
  /* border-radius: 50%; */
}

.btn-xl-square {
  width: 60px;
  height: 60px;
}

.btn-xxl-square {
  width: 75px;
  height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
  top: -100px;
  transition: 0.5s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 25px 0;
  color: var(--bs-dark);
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid #eeeeee;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}


/*** Header ***/
.carousel .carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  text-align: left;
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem;
  padding-left: 11rem;
  z-index: 1;
}

/* slideshow here */

@media (max-width: 992px) {
  .carousel .carousel-item {
    position: relative;
    /* min-height: 600px; */
  }
  /* .carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  } */
  .carousel .carousel-caption {
    padding-left: 10rem;
  }
}

@media (max-width: 768px) {
  .carousel-slide-custom {
    flex-direction: column;
    text-align: center;
  }
  .carousel-slide-custom .content-left {
    padding-right: 0;
    margin-bottom: 20px;
  }
  .carousel .carousel-item {
    /* min-height: 500px; */
  }
  .carousel .carousel-caption {
    padding-left: 9rem;
  }
}

@media (min-width: 1200px) {
  .carousel .carousel-item .display-1 {
    font-size: 7rem;
  }
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

/*** About ***/
.about-img {
  position: relative;
  padding-left: 45px;
}

.about-img::before {
  position: absolute;
  content: "";
  width: 200px;
  height: 300px;
  top: 0;
  left: 0;
  border: 5px solid var(--bs-primary);
  animation: animateUpDown 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes animateUpDown {
  0% {
    top: -25px;
  }

  50% {
    top: -45px;
  }

  100% {
    top: -25px;
  }
}

/*** Features ***/
.feature {
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 1) 50%),
    url(../../../../uploads/2022/09/kinh-te-10-bai-2.jpg) left center no-repeat;
  background-size: cover;
}

.feature-row {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.feature-item {
  border-color: rgba(0, 0, 0, 0.03) !important;
}

.feature-icon {
  position: relative;
  transition: 0.5s;
}

.feature-item:hover .feature-icon {
  margin-left: 3rem;
}

.feature-item a::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: var(--bs-secondary);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: -1;
}

.feature-item a:hover {
  color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
  background: var(--bs-primary);
}

.experience .progress {
  height: 5px;
}

.experience .progress .progress-bar {
  width: 0px;
  transition: 3s;
}

/*** Service ***/
.service .service-item {
  height: 100%;
  min-height: 350px; /* Có thể điều chỉnh giá trị này cho phù hợp giao diện */
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.service .service-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service .service-item img,
.card img,
.news-item-card img,
.service-inner img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.service .service-item * {
  position: relative;
  transition: 0.5s;
  z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
  color: var(--bs-white);
}

.service .service-item:hover a {
  padding-left: 45px !important;
}

/*** Appoinment ***/
.appoinment {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-2.jpg) left center no-repeat;
  background-size: cover;
}

/*** Team ***/
.team .team-item {
  background: var(--bs-white);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
}

.team .team-item .team-social {
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  transition: 0.5s;
  background: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .team-item:hover .team-social {
  width: 100%;
  left: 0;
}

.team .team-item .team-social .btn {
  opacity: 0;
  transition: 0.5s;
}

.team .team-item:hover .team-social .btn {
  opacity: 1;
}

/*** Testimonial ***/
.testimonial-img {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.testimonial-img div {
  position: absolute;
  width: 100px;
  height: 100px;
  animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0.1s;
}

.testimonial-img div:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 0.4s;
}

.testimonial-img div:nth-child(3) {
  top: 20%;
  left: 60%;
  animation-delay: 0.7s;
}

.testimonial-img div:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
}

.testimonial-img div::after {
  position: absolute;
  content: "";
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  box-shadow: 0 0 10px 10px var(--bs-white) inset;
  z-index: 1;
}

.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 15px;
  display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-right: 15px;
  color: var(--bs-primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--bs-dark);
}

/*** Contact ***/
@media (min-width: 992px) {
  .contact-info::after {
    position: absolute;
    content: "";
    width: 0px;
    height: 100%;
    top: 0;
    left: 50%;
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 991.98px) {
  .contact-info::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0px;
    top: 50%;
    left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

/*** Appoinment ***/
.newsletter {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-3.jpg) left center no-repeat;
  background-size: cover;
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--bs-secondary);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--bs-primary);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--bs-primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.copyright {
  background: #222222;
}

.copyright a {
  color: var(--bs-white);
}

.copyright a:hover {
  color: var(--bs-primary);
}

.zalo-btn {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 999;
}

.zalo-btn img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.zalo-btn img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}



/* gopy */

.feedback-section {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.feedback-header {
  background: linear-gradient(to right, #f1c40f, #16a085);
  padding: 30px;
  color: white;
  text-align: center;
  position: relative;
}

.feedback-header img.logo {
  position: absolute;
  top: 15px;
  left: 20px;
  height: 50px;
}

.feedback-body {
  padding: 40px 30px;
}

.form-control:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 0 0.2rem rgba(241, 196, 15, 0.25);
}

.btn-submit {
  background: #f1c40f;
  border: none;
  color: #222;
  font-weight: 600;
}

.btn-submit:hover {
  background: #e0b90d;
}

.feedback-image {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

#successMessage {
  display: none;
}

.star-rating .star {
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating .star.hover,
.star-rating .star.selected {
  color: #f1c40f;
  /* vàng đầy */
}

@media (max-width: 768px) {
  .feedback-header img.logo {
    height: 40px;
  }
}

/* thanhvien */
.team-section {
  padding: 60px 20px;
  text-align: center;
}

.team-section h2 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #1abc9c;
}

.team-section p {
  color: #555;
  margin-bottom: 40px;
}

.team-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  border-top: 5px solid #f1c40f;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #f1c40f;
}

.team-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-role {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.team-contact {
  font-size: 0.9rem;
  color: #3498db;
}

.team-hotline {
  font-size: 0.9rem;
  color: #e67e22;
  margin-top: 5px;
  font-weight: 500;
}

.logo-top {
  width: 120px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .team-card {
    margin-bottom: 30px;
  }
}

/* dieule */
.dieule {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

.page {
  margin-bottom: 20px;
  border: 1px solid #ccc;
}

.page>img {
  width: 100%;
  height: auto;
  display: block;
}

.note {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 10px;
}

/* Q&A */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Segoe UI", sans-serif;
}

.faq-container h1 {
  color: #b50000;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #b50000;
  display: inline-block;
  padding-bottom: 5px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  background-color: #f9f9f9;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  text-align: left;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.faq-banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* bieumau */
.form-banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: "Segoe UI", sans-serif;
}

.form-container h2 {
  color: #b30000;
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
}

.form-item {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-title {
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 600;
  background: #f9f9f9;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.form-title:hover {
  background: #f1f1f1;
}

.form-content {
  display: none;
  padding: 15px 20px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

.form-content a {
  color: #b30000;
  text-decoration: none;
  margin-right: 10px;
}

.form-item.active .form-content {
  display: block;
}

/* chuyen tien css */

.banner {
  background: linear-gradient(to right, #a06b26, #ff4b2b);
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.banner>h1 {
  font-size: 3rem;
  font-weight: bold;
  animation: float 3s ease-in-out infinite;
  color: white;
}

.banner p {
  font-size: 1.2rem;
  margin-top: 10px;
}

.section-title {
  border-left: 4px solid red;
  padding-left: 10px;
  font-weight: bold;
  margin-top: 40px;
}

.card-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.form-control:focus {
  box-shadow: 0 0 10px rgba(255, 80, 100, 0.4);
  border-color: #dd2476;
}

/* css/baovetaisan */
/* body {
    background: linear-gradient(to right, #f0f4f8, #d9e4f0);
    font-family: 'Segoe UI', sans-serif;
    padding: 2rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

@media (max-width: 768px) {
  .banner-title-mobile {
    display: none;
  }
}


.glass-box {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 0 1rem 1rem 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease forwards;
  margin-bottom: 2rem;
}

.section-title {
  font-weight: bold;
  font-size: 1.25rem;
  color: #c62828;
  border-left: 5px solid #f44336;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.glass-box ul {
  padding-left: 1.2rem;
}

.glass-box li {
  margin-bottom: 0.5rem;
}

.header-image {
  width: 100%;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0 !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-3d {
  font-size: 2.2rem;
  font-weight: 700;
  color: #003366;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 123, 255, 0.3);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 123, 255, 0.3);
  }

  50% {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 123, 255, 0.6);
  }

  100% {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 123, 255, 0.3);
  }
}

@media (max-width: 576px) {
  body {
    padding: 1rem;
  }

  .title-3d {
    font-size: 12px !important;
  }
}

/* vay uu dai */
.hero {
  height: 100vh;
  color: white;
  position: relative;
}

.overlay {
  background: rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.overlay p {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.overlay h1 {
  color: bisque;
}

.benefits {
  padding: 60px 20px;
  text-align: center;
  background: #f8f8f8;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.card.chuyentiennhanh {
  width: 100%;
}

.card.chuyentiennhanh img {
  width: 100%;
  height: auto;
}

.card {
  background: white;
  padding: 20px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-10px);
}

.card>img {
  width: 60px;
  height: 60px;
  margin: 10px auto;
}

.form-section {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* vay tin chap */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease;
}

.section:hover {
  transform: translateY(-5px);
}

.section h2 {
  margin-top: 0;
  color: #005baa;
}

.section ul {
  padding-left: 20px;
}

.section ul li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }
}

/* vay cam so */
.highlight-section {
  background: linear-gradient(to right, #1e44ab, #feb47b);
  color: white;
  padding: 40px 60px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.highlight-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.highlight-content {
  padding-top: 20px;
}

.benefit-box {
  text-align: center;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  transition: 0.3s ease-in-out;
  min-height: 200px;
  overflow: hidden;
}

.benefit-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-image: linear-gradient(90deg, #ff512f, #7c1c47) 1;
  box-shadow: 0 0 15px rgba(255, 81, 47, 0.5);
  cursor: pointer;
}

.section-title {
  background-color: #1e44ab;
  padding: 10px 15px;
  font-weight: bold;
  border-left: 5px solid red;
  margin-top: 40px;
}

ul li {
  margin-bottom: 8px;
}

/* Tạo hiệu ứng linear gradient chuyển động */
.carousel-slide-custom {
  position: relative;
  background: linear-gradient(45deg, #ff4444, #dd0000);
  color: white;
  padding: 40px 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  animation: gradientAnimation 10s ease infinite;
}

/* Hiệu ứng chuyển động gradient */
@keyframes gradientAnimation {
  0% {
    background: linear-gradient(45deg, #ff4444, #dd0000);
  }

  25% {
    background: linear-gradient(45deg, #7ece23, #0d6588);
  }

  50% {
    background: linear-gradient(45deg, #00dd00, #0044dd);
  }

  75% {
    background: linear-gradient(45deg, #88246a, #a86619);
  }

  100% {
    background: linear-gradient(45deg, #ff4444, #dd0000);
  }
}

.carousel-slide-custom .content-left {
  flex: 1;
  padding-right: 30px;
}

.carousel-slide-custom h3 {
  color: yellow;
  font-weight: bold;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.carousel-slide-custom ul {
  padding-left: 20px;
  list-style-type: square;
  font-size: 18px;
  line-height: 1.5;
  color: white;
  font-weight: 500;
}

.carousel-slide-custom .content-right {
  flex: 1;
  text-align: center;
}

/* Cố định kích thước ảnh */
.carousel-slide-custom img {
  width: 500px;
  height: 300px;
  /* Cố định chiều cao của ảnh */
  object-fit: cover;
  /* Đảm bảo ảnh không bị méo */
  border: 5px solid white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Đảm bảo chiều cao slide luôn cố định */
/*
.carousel-item {
  height: 420px;
  // Chiều cao cố định cho các slide
}
*/

/* Đảm bảo ảnh banner trong carousel luôn đúng tỉ lệ, không bị che */
.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-inner {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0;
  transition: 0.4s;
}

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

/* .carousel-indicator [data-bs-target] {
  background-color: white;
  width: 10px;
  height: 10px;
  border-radius: 50%;
} */

@media (max-width: 768px) {
  .carousel-slide-custom {
    flex-direction: column;
    text-align: center;
  }

  .carousel-slide-custom .content-left {
    padding-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .carousel-slide-custom {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    overflow: visible !important;
  }
  .carousel-slide-custom {
    text-align: left !important;
  }
  .carousel-slide-custom h3 {
    text-align: left !important;
  }
  .carousel-slide-custom ul {
    text-align: left !important;
  }
  
  /* Chỉnh chiều cao logo trên mobile */
  .logo-topbar {
    height: 60px !important;
    width: auto !important;
  }
  
  .logo-navbar {
    /* max-width: 120px !important; */
    width: auto !important;
    height: auto !important;
  }
  
  .logo-topbar .img-fluid,
  .logo-navbar .img-fluid {
    height: 70px !important;
    width: auto !important;
  }
}

/* huong dan ck */
.guide-title {
  font-size: 24px;
  color: #d80000;
  font-weight: bold;
}

.bank-info {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: auto;
}

.guide-header {
  text-align: center;
  margin-bottom: 20px;
}

.guide-header img {
  width: 60%;
  height: 400px;
  margin-bottom: 20px;
}

.highlight {
  color: red;
  font-weight: bold;
}

.bank-account {
  font-size: 18px;
  margin: 10px 0;
}

.label {
  color: #004085;
  font-weight: 600;
}

.icon {
  margin-right: 8px;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1e44ab;
  margin-bottom: 10px;
}

.section-note {
  font-size: 15px;
  color: #333;
}

.footer-img {
  width: 100%;
  margin-top: 30px;
  border-radius: 0 0 10px 10px;
}

/* bang lai suất */
.header-image {
  max-width: 100%;
  height: auto;
}

.note-bar {
  background-color: #ff0000;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  border-left: 5px solid red;
  margin-bottom: 20px;
  display: inline-block;
}

.table-section {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: auto;
}

.table-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.sub-info {
  text-align: center;
  font-size: 14px;
  color: #555;
}

.interest-table {
  margin-top: 25px;
}

.interest-table th,
.interest-table td {
  text-align: center;
  vertical-align: middle;
}

.table thead th {
  background-color: #1e44ab;
  color: white;
}

.footer-note {
  font-size: 14px;
  text-align: right;
  margin-top: 10px;
  font-style: italic;
  color: #333;
}

@media (max-width: 576px) {
  .table-section {
    padding: 15px;
  }
}

/* tra cứu tài khoản */
.guide-box {
  border: 5px solid #dc3545;
  padding: 30px;
  background: white;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.guide-title {
  color: #ffc107;
  font-weight: bold;
  text-shadow: 1px 1px #000;
  font-size: 2.5rem;
}

.guide-subtitle {
  color: #28a745;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.instruction {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.instruction strong {
  color: #dc3545;
}

.instruction .cmd {
  font-weight: bold;
  color: #007bff;
}

.footer-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: #d91a1a;
  text-shadow: 1px 1px #fff;
}

.icon-box {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffc107;
}

.image-banner {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 30px;
  border-radius: 10px;
}

/* about us */
.section-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 50px;
  position: relative;
  font-size: 1.5rem;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #f1c40f;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 349px;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: #e0e0e0;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.timeline-entry {
  display: flex;
  margin-bottom: 50px;
  align-items: flex-start;
}

.timeline-entry .timeline-date {
  width: 25%;
  text-align: right;
  padding-right: 20px;
  font-weight: bold;
  color: #2c3e50;
  white-space: nowrap;
}

.timeline-entry .timeline-marker {
  width: 50px;
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: #f1c40f;
  border-radius: 50%;
  border: 3px solid white;
  z-index: 1;
}

.timeline-entry .timeline-content {
  width: 60%;
  padding-left: 20px;
}

@media (max-width: 767px) {
  .menu {
    flex-direction: column;
    /* chuyển sang dạng cột */
  }

  .sub-menu {
    width: 100% !important;
    /* chiếm toàn bộ chiều ngang */
  }

  .sub-menu a {
    display: block;
    width: 100%;
    /* padding: 10px; */
    background-color: #f5f5f5;
    font-size: 16px;
    /* tuỳ chọn */
    text-align: center;
    /* căn giữa chữ */
  }

  .timeline {
    padding-left: 20px;
    /* Cách xa trái cho timeline và marker */
    position: relative;
  }

  .timeline::before {
    left: 5px !important;
    ;
    /* Đường timeline bên trái */
    top: 0;
    transform: none;
    width: 4px;
    height: 100%;
    background-color: #e0e0e0;
  }

  .timeline-entry {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    align-items: flex-start;
    position: relative;
    padding-right: 30px;
  }

  .timeline-entry .timeline-date,
  .timeline-entry .timeline-content {
    width: 100%;
  }

  .timeline-entry .timeline-date {
    order: 1;
    text-align: center;
    font-weight: bold;
    padding-bottom: 5px;
  }

  .timeline-entry .timeline-content {
    order: 2;
    padding-left: 20px;
    text-align: justify
  }

  .timeline-entry .timeline-marker {
    position: absolute;
    /* Đặt marker bên trái, trên timeline */
    top: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .timeline-marker::before {
    width: 16px;
    height: 16px;
    border-width: 3px;
    top: -3px;
    left: -13px;
    transform: translate(-50%, -50%);
  }

  .staff-img {
    width: 100% !important;
    /* height: 300px; */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: none !important;
    margin-bottom: 0px !important;
  }
}



.vision-box {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 235px;
}

.vision-box:hover {
  transform: translateY(-5px);
}

.vision-box img {
  width: 60px;
  margin-bottom: 15px;
}

.staff-img {
  width: 550px;
  height: 350px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  /* gap: 10px; */
}

.sub-menu {
  margin: 0 10px;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 280px;
  padding: 6px 12px;
  background-color: #f2f2f2;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

.sub-menu a {
  text-decoration: none;
  color: #333;
  display: block;
  width: 100%;
  height: 100%;
}

.sub-menu:hover {
  color: #f1c40f;
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .timeline-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date {
    text-align: left !important;
    padding-right: 0;
    margin-bottom: 10px;
  }

  .timeline-marker {
    margin: 10px 0;
  }

  .timeline-content {
    padding-left: 0;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 304px;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #e0e0e0;
    animation: fadeInUp 1s ease;
  }
}

/* tuyen dung */
.flip-container {
  perspective: 1000px;
  margin: 20px;
}

.job-box {
  width: 300px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.flip-container:hover .job-box {
  transform: rotateY(180deg);
  cursor: pointer;
}

.job-front,
.job-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 27px 55px rgba(0, 0, 0, 0.7), 0 17px 17px rgba(0, 0, 0, 0.5);
}

.job-front {
  background: white;
  background-size: cover;
  background-position: center;
}

.job-back {
  background: linear-gradient(to bottom right, #f7971e, #ffd200);
  color: #333;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.job-back h4 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: bold;
}

.job-back p {
  margin: 4px 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.job-back .company {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #418f29;
}

.submit-btn {
  margin-top: 15px;
  background-color: #343a40;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #212529;
}

/* tintuc */
.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.news-featured img,
.carousel-item img {
  object-fit: cover;
}

.news-featured .small-news img {
  height: 80px;
  width: 100px;
  object-fit: cover;
}

.small-news-title {
  font-size: 15px;
  margin-bottom: 0;
}

.card-title {
  font-size: 17px;
}

.carousel-indicators {
  position: absolute;
  bottom: -30px;
}

.carousel-indicators button {
  background-color: #a12727;
}

.filter-year {
  margin-bottom: 30px;
  max-width: 200px;
}

.carousel-item {
  transition: transform 0.5s ease-in-out;
}

.small-news {
  border-radius: 8px;
}

.card-body {
  padding: 1.2rem;
}

.carousel-item.banner_img {
  /* height: 100%; */
  /* object-fit: cover; */
}

.card-text {
  font-size: 14px;
}

.card.card-left {
  width: 100% !important;
  height: 100% !important;
}

.card-img-top {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* thanh cuộn phải tin tức */
.news-scrollable {
  max-height: 600px !important;
  /* hoặc chiều cao bạn muốn */
  overflow-y: auto;
  padding-right: 8px;
  /* để không bị ẩn nội dung do thanh cuộn */
}

.news-scrollable::-webkit-scrollbar {
  width: 6px;
}

.news-scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* test new */
.news {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* gap: 50px; */

}

.col-md-2 {
  flex: 1;
}

.card.news-item-card {
  width: 250px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;

}

.btn-more {
  width: 300px;
  display: flex;
  justify-content: center;
  margin: 20px auto;
  border-radius: 6px !important;
}

.btn-more:hover {
  transform: scale(1.05);
  color: #222;
}

/* Dưới 576px: Mobile */
/* @media (max-width: 575.98px) { ... } */

/* 576px - 767px: Tablet dọc */
/* @media (min-width: 576px) and (max-width: 767.98px) { ... } */

/* 768px - 991px: Tablet ngang / Laptop nhỏ */
/* @media (min-width: 768px) and (max-width: 991.98px) { ... } */

/* 992px - 1199px: Laptop trung bình */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .news {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;

  }

  .card.news-item-card {
    width: 200px;
    max-width: 250px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
  }
}

/* 1200px trở lên: Laptop lớn / Desktop */
/* @media (min-width: 1200px) { ... } */


/* box search */
.search-box-container {
  position: absolute;
  top: 60px;
  /* điều chỉnh tùy theo chiều cao header */
  right: 0;
  display: none;
  background: white;
  border-radius: 10px;
  padding: 10px;
  z-index: 1000;
  width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  flex-direction: row;
  align-items: center;
}

.search-box-container form {
  display: flex;
  width: 100%;
}

.search-box-container input {
  flex: 1;
}

.img-news {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

@media(max-width: 992px) {
  .search-box-container {
    width: 100%;
    right: 0;
    left: 0;
    top: 100%;
    padding: 15px;
  }
}

/* page search */

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
}

.search-box button {
  padding: 10px 20px;
  background-color: #800000;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.sort {
  text-align: right;
  margin-bottom: 20px;
}

.sort button {
  background-color: #800000;
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}

.results-count {
  margin: 10px 0;
  font-style: italic;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.result-item img {
  width: 60px;
  height: auto;
}

.result-info a {
  color: #800000;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

.result-info p {
  font-style: italic;
  color: #444;
  margin: 5px 0 0 0;
  font-size: 0.95rem;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  color: #800000;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .page-numbers.current {
  background-color: #ce9233;
  color: #fff;
  font-weight: bold;
}

.icon-label-btn {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  color: white !important;
}

/* FORCE SHOW 'Tra cứu' LABEL ON BUTTON */
.icon-label-btn {
  overflow: visible !important;
  min-width: 120px !important;
}
/* .icon-label-btn .label-text {
  color: #111 !important;
  background: yellow !important;
  display: inline !important;
  opacity: 1 !important;
  max-width: none !important;
  margin-left: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  visibility: visible !important;
}

/* Đảm bảo chữ 'Tra cứu' trên nút luôn hiển thị */
/* .icon-label-btn .label-text {
  display: inline !important;
  opacity: 1 !important;
  max-width: none !important;
} */

.icon-label-btn:hover .label-text {
  max-width: 200px;
  opacity: 1 !important;
  color: white;
}


.modal-backdrop.show {
  opacity: .5;
  z-index: 0 !important;
}

/* Ẩn các phần tử có hiệu ứng WOW cho đến khi animation bắt đầu */


/* .promo-header {
  background: linear-gradient(to right, #006241, #00a86b);
  color: white;
} */

/* .card-title {
  font-weight: 600;
  color: #006241;
}

.card-text {
  font-size: 0.95rem;
}

.btn-primary {
  border: none;
}

.btn-primary:hover {
  background-color: #004f32;
} */

.carousel-indicators {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    display: flex !important;
    bottom: 8px !important; /* Sát cạnh dưới, khoảng nhỏ */
}
.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important; /* Màu xám cho dot chưa active */
    border: none !important;
    margin: 0 6px !important;
    overflow: visible !important;
    opacity: 1 !important;
    transition: background 0.3s;
}
.carousel-indicators .active {
    background-color: #fff !important; /* Dot active màu trắng đậm */
}

/* --- FIX testimonial carousel multi item width --- */
.testimonial-carousel-4 .owl-stage {
  display: flex !important;
}
.testimonial-carousel-4 .testimonial-item {
  width: 25%;
  min-width: 250px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}
@media (max-width: 991.98px) {
  .testimonial-carousel-4 .testimonial-item {
    width: 50%;
  }
}
@media (max-width: 767.98px) {
  .testimonial-carousel-4 .testimonial-item {
    width: 100%;
  }
}

/* --- Feedback Carousel Responsive --- */
#feedbackCarousel .carousel-item .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
@media (min-width: 576px) and (max-width: 991.98px) {
  #feedbackCarousel .carousel-item .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (min-width: 992px) {
  #feedbackCarousel .carousel-item .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* --- Feedback Carousel Arrow Custom --- */
#feedbackCarousel .carousel-control-prev, #feedbackCarousel .carousel-control-next {
  width: 38px;
  height: 38px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  opacity: 1;
  transition: background 0.2s, border 0.2s;
  z-index: 2;
}
#feedbackCarousel .carousel-control-prev-icon, #feedbackCarousel .carousel-control-next-icon {
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(40%) grayscale(1) brightness(0.7);
}
#feedbackCarousel .carousel-control-prev:hover, #feedbackCarousel .carousel-control-next:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}
#feedbackCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#feedbackCarousel .carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(1) grayscale(0) brightness(1.5);
}

/* SwiperJS feedback custom */
#feedbackSwiper {
  padding-bottom: 40px;
}
#feedbackSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}
#feedbackSwiper .testimonial-item {
  min-width: 220px;
  max-width: 350px;
  margin: 0 auto;
}
#feedbackSwiper .swiper-button-next, #feedbackSwiper .swiper-button-prev {
  width: 38px;
  height: 38px;
  top: 45%;
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  opacity: 1;
  transition: background 0.2s, border 0.2s;
  color: #444;
}
#feedbackSwiper .swiper-button-next:after, #feedbackSwiper .swiper-button-prev:after {
  font-size: 20px;
  color: #444;
}
#feedbackSwiper .swiper-button-next:hover, #feedbackSwiper .swiper-button-prev:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}
#feedbackSwiper .swiper-button-next:hover:after, #feedbackSwiper .swiper-button-prev:hover:after {
  color: #fff;
}
#feedbackSwiper .swiper-pagination-bullet {
  background: #bbb;
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 4px !important;
}
#feedbackSwiper .swiper-pagination-bullet-active {
  background: var(--bs-primary);
}
@media (max-width: 991.98px) {
  #feedbackSwiper .swiper-slide {
    max-width: 50vw;
  }
}
@media (max-width: 575.98px) {
  #feedbackSwiper .swiper-slide {
    max-width: 90vw;
  }
}
@media (max-width: 575.98px) {
  #feedbackCarousel .carousel-item .col-12:not(:first-child) {
    display: none !important;
  }
}

@font-face {
  font-family: 'VNI-Helve-Condense';
  /* 1-0004727 */
  src: 
    url('../font/Vhelvcb.ttf') format('truetype'),
    url('../font/VNI-Helve-Condense-Bold.woff2') format('woff2'),
    url('../font/VNI-Helve-Condense-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.vni-text {
  font-family: 'VNI-Helve-Condense', sans-serif;
}

/* Tra cứu: nền xanh */
.tra-cuu-dropdown > .nav-link {
  background-color: #1e44ab; /* hoặc màu xanh tùy bạn */
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
}

/* Tìm kiếm: không có nền, chữ đen */
.btn-plain {
  background-color: transparent !important;
  color: #000 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Đảm bảo tất cả trạng thái vẫn màu đen */
.btn-plain:hover,
.btn-plain:focus,
.btn-plain:active,
.btn-plain:visited,
.btn-plain:focus-visible {
  background-color: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
}

/* Nếu có icon bên trong */
.btn-plain i,
.btn-plain span {
  color: #000 !important;
}

/* Đề phòng trình duyệt mobile áp style mặc định khi hold */
.btn-plain:focus-visible,
.btn-plain:focus-within,
.btn-plain:active:focus {
  outline: none !important;
  color: #000 !important;
}

/* Logo styles cho desktop */
.logo-topbar {
  height: 100px;
  width: auto;
}

.logo-navbar {
  max-width: 180px;
  width: auto;
  height: auto;
}

/* Override Bootstrap .img-fluid - chỉ áp dụng cho logo header */
.navbar-brand .img-fluid,
.logo-topbar .img-fluid,
.logo-navbar .img-fluid {
  max-width: none !important;
  width: auto !important;
  height: 80px !important;
}

/* Bo tròn nút tra cứu */
.btn.btn-lg {
  border-radius: 4px !important;
}

/* Bo tròn nút tra cứu trên mobile */
@media (max-width: 768px) {
  .btn.btn-lg {
    border-radius: 4px !important;
  }
}

/* Logo Facebook màu nguyên bản */
.fab.fa-facebook-f {
  color: #1877f2 !important;
}

/* Logo Facebook footer - nền trắng, chữ xanh */
footer .btn.btn-light .fab.fa-facebook-f {
  background-color: white !important;
  color: #1877f2 !important;
}

footer .btn.btn-light {
  background-color: white !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
}

footer .btn.btn-light:hover {
  background-color: #f8f9fa !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
}

/* CSS với specificity cao hơn cho Facebook footer */
footer .d-flex.pt-3 .btn.btn-light {
  background-color: white !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
}

footer .d-flex.pt-3 .btn.btn-light .fab.fa-facebook-f {
  color: #1877f2 !important;
}

footer .d-flex.pt-3 .btn.btn-light:hover {
  background-color: #f8f9fa !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
}

/* CSS với specificity cao nhất - sử dụng attribute selector */
footer a[href*="facebook.com"] {
  background-color: white !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
}

footer a[href*="facebook.com"] .fab.fa-facebook-f {
  color: #1877f2 !important;
}

footer a[href*="facebook.com"]:hover {
  background-color: #f8f9fa !important;
  border-color: #1877f2 !important;
  color: #1877f2 !important;
}

/* Giảm size chữ "Designed By BeOneTech" */
.copyright .fw-semi-bold {
  font-size: 0.9rem !important;
}

.copyright {
  font-size: 0.9rem !important;
}

/* Canh đều 3 cột footer - Desktop */
@media (min-width: 768px) {
  .footer .row.g-5 {
    justify-content: space-between !important;
  }
  
  .footer .col-lg-3.col-md-6 {
    flex: 1 !important;
    max-width: calc(33.333% - 1rem) !important;
    margin: 0 0.5rem !important;
  }
  
  .footer .col-lg-3.col-md-6:first-child {
    margin-left: 0 !important;
  }
  
  .footer .col-lg-3.col-md-6:last-child {
    margin-right: 0 !important;
  }
}

/* Mobile - xếp thành 1 cột */
@media (max-width: 767px) {
  .footer .col-lg-3.col-md-6 {
    flex: none !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
  }
  
  .footer .col-lg-3.col-md-6:last-child {
    margin-bottom: 0 !important;
  }
}

/* Font chữ đồng nhất cho 3 cột footer */
.footer .col-lg-3.col-md-6 {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.footer .col-lg-3.col-md-6 h5 {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
}

.footer .col-lg-3.col-md-6 p,
.footer .col-lg-3.col-md-6 a {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.6 !important;
}

/* Override Bootstrap cho các link trong cột "Về chúng tôi" */
.footer .col-lg-3.col-md-6 .btn.btn-link {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  color: inherit !important;
}

.footer .col-lg-3.col-md-6 .btn.btn-link:hover {
  font-family: inherit !important;
  font-size: inherit !important;
  color: var(--bs-primary) !important;
}

/* Giảm padding footer */
.footer {
  margin-top: 40px !important;
  padding-top: 1.5rem !important;
  padding-bottom: 0.5rem !important;
}

.footer .container.py-5 {
  padding-top: 1.5rem !important;
  padding-bottom: 0.5rem !important;
}

.footer .row.g-5 {
  --bs-gutter-y: 1rem !important;
}

.footer .col-lg-3.col-md-6 {
  margin-bottom: 0.75rem !important;
}

.footer .col-lg-3.col-md-6:last-child {
  margin-bottom: 0 !important;
}

/* Canh hàng đều cho Zalo và Scroll to Top */
.back-to-top {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background-color: #1e44ab !important;
  color: white !important;
  border: none !important;
}

.back-to-top:hover {
  background-color: #158a28 !important;
  color: white !important;
  right: 15px !important;
}

.zalo-chat-widget {
  /* position: fixed !important; */
  bottom: 80px !important;
  right: 15px !important;
  /* left: auto !important; */
  z-index: 100002 !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .zalo-chat-widget {
    bottom: 70px !important;
    right: 15px !important;
  }
}

/* Topbar padding */
.container-fluid.bg-primary {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.container.py-2 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Navbar padding - phần hiển thị trên mobile */
.navbar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Mobile navbar padding */
@media (max-width: 768px) {
  /* Navbar mobile padding - phần hiển thị trên mobile */
  .navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* Override Bootstrap navbar padding */
  .navbar-light {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .carousel-slide-custom {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    overflow: visible !important;
  }
  .carousel-slide-custom {
    text-align: left !important;
  }
  .carousel-slide-custom h3 {
    text-align: left !important;
  }
  .carousel-slide-custom ul {
    text-align: left !important;
  }
  
  /* Chỉnh chiều cao logo trên mobile */
  .logo-topbar {
    height: 60px !important;
    width: auto !important;
  }
  
  .logo-navbar {
    /* max-width: 120px !important; */
    width: auto !important;
    height: auto !important;
  }
  
  .logo-topbar .img-fluid,
  .logo-navbar .img-fluid {
    height: 70px !important;
    width: auto !important;
  }
}

/* Search Button - Spacing between icon and text */
#toggleSearch .icon-main {
  margin-right: 4px;
}

#toggleSearch .label-text {
  margin-left: 2px;
}

/* Tra cứu Button - Spacing between icon and text */
.tra-cuu-dropdown .nav-link i {
  margin-right: 4px;
}

/* Facebook Icon - White Color */
.fab.fa-facebook-f {
    color: white !important;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* hidden by default; JS will set to flex when needed */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay[style*="display: none"] {
    display: none !important;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.4s ease-out;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(45deg, #1e44ab, #ffd600, #1e44ab, #ffd600);
    background-size: 300% 300%;
    animation: borderShimmer 1.5s linear infinite, borderPulse 1s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 18px rgba(27, 167, 51, 0.6)) drop-shadow(0 0 22px rgba(255, 214, 0, 0.6));
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, #1e44ab 0%, #1e44ab 70%, #ffea8a 100%);
    color: #111;
    padding: 25px;
    text-align: center;
    position: relative;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.popup-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), rgba(255,255,255,1), rgba(255,255,255,0.8), transparent);
    animation: headerShine 1s linear infinite;
    filter: blur(1px);
}

.popup-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.popup-header .welcome-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    animation: welcomeIconFloat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(27, 167, 51, 0.6));
    text-shadow: 0 0 18px rgba(255, 214, 0, 0.6);
}

/* Popup Body */
.popup-body {
    padding: 30px 30px 16px;
    text-align: center;
    color: #111;
    line-height: 1.6;
}

.popup-body p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.popup-body .popup-note {
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 400;
  color: #333;
  margin-top: 30px; /* more space from above */
  padding-top: 0;
  border-top: none;
  margin-bottom: 6px;
}

.company-name {
    color: #1e44ab;
    font-weight: 900;
    font-size: 1.6em;
    animation: companyNameGlow 1.2s ease-in-out infinite;
    text-shadow: 0 0 12px rgba(27, 167, 51, 0.7), 0 0 18px rgba(255, 214, 0, 0.7);
    letter-spacing: 1px;
    transform-origin: center;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    animation: closeBtnPulse 0.5s ease-in-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    animation: closeBtnGlow 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Action Buttons */
.popup-actions {
    padding: 0 30px 24px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-actions .btn-primary {
    background: linear-gradient(135deg, #1e44ab, #0f7d28);
    color: #fff;
    box-shadow: 0 4px 14px rgba(27,167,51,0.35);
}

.popup-actions .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 24px rgba(27,167,51,0.55);
    color: #fff;
    text-decoration: none;
    animation: btnBounce 0.8s ease-in-out;
    filter: brightness(1.05) contrast(1.05);
}

.popup-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.popup-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.popup-actions .btn:hover::before {
    left: 100%;
}

.popup-actions .btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.popup-actions .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: btnBounce 0.6s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 18px rgba(27, 167, 51, 0.6)) drop-shadow(0 0 22px rgba(255, 214, 0, 0.6));
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.04);
        filter: drop-shadow(0 0 24px rgba(27, 167, 51, 0.9)) drop-shadow(0 0 28px rgba(255, 214, 0, 0.9));
    }
}

@keyframes headerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes closeBtnGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 50px rgba(255, 255, 255, 0.8), 0 0 70px rgba(255, 255, 255, 0.6);
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 1);
    }
}

@keyframes closeBtnPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

@keyframes btnBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 24px rgba(27,167,51,0.55);
    }
    40% { 
        transform: translateY(-15px) scale(1.1);
        box-shadow: 0 15px 32px rgba(27,167,51,0.75);
    }
    60% { 
        transform: translateY(-8px) scale(1.08);
        box-shadow: 0 12px 28px rgba(27,167,51,0.65);
    }
}

@keyframes companyNameGlow {
    0%, 100% { 
        text-shadow: 0 0 12px rgba(27, 167, 51, 0.7), 0 0 18px rgba(255, 214, 0, 0.7);
        transform: scale(1);
        color: #1e44ab;
    }
    50% { 
        text-shadow: 0 0 16px rgba(27, 167, 51, 1), 0 0 22px rgba(255, 214, 0, 1);
        transform: scale(1.05);
        color: #1e44ab;
    }
}

@keyframes welcomeIconFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
    25% { 
        transform: translateY(-8px) rotate(8deg) scale(1.1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1));
    }
    50% { 
        transform: translateY(-15px) rotate(0deg) scale(1.2);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 1));
    }
    75% { 
        transform: translateY(-8px) rotate(-8deg) scale(1.1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        max-width: 90%;
        margin: 20px auto;
        width: 380px;
        border-radius: 15px;
    }

    .popup-header {
        padding: 20px 15px;
    }

    .popup-header h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .popup-header .welcome-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .popup-body {
        padding: 20px 15px;
    }

    .popup-body p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .company-name {
        font-size: 1.3em;
        letter-spacing: 1px;
    }

    .popup-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px 20px;
    }

    .popup-actions .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .close-btn {
        top: 12px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Ensure popup is hidden when display: none */
.popup-overlay[style*="display: none"],
.popup-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.popup-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 10px;
}
.popup-list li {
  position: relative;
  padding-left: 26px;
  text-align: left;
  margin: 10px 0;
  color: #111;
  font-weight: 600;
}
.popup-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd600 0%, #ffd600 40%, #1e44ab 100%);
  box-shadow: 0 0 10px rgba(27,167,51,0.6);
}

/* Popup action buttons – brand colors only */
.popup-actions .btn-primary {
  background: linear-gradient(135deg, #1e44ab, #0f7d28);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,167,51,0.35);
}
.popup-actions .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(27,167,51,0.55);
}
.popup-actions .btn-secondary {
  background: #fff;
  color: #111;
  border: 2px solid #ffd600;
}
.popup-actions .btn-secondary:hover {
  background: #fff9cf;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,214,0,0.35);
}


    
/* Popup nhân sự */
.popup-staff-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}
.popup-staff-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Popup content */
.popup-staff-content {
  position: relative;
  width: auto;
  max-width: 600px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1;

  /* Center nội dung bên trong popup */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.popup-staff-overlay.open .popup-staff-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close button (trên cùng phải) */
.popup-staff-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10000 !important; /* ép cao hơn mọi thứ */
}

.popup-staff-close {
  padding: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Avatar chính trong popup */
.popup-staff-content img {
  width: 200px;              /* thay đổi nếu muốn avatar to/nhỏ */
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 0 12px 0;
  border-radius: 0;          /* 0 = vuông; đổi thành 50% nếu muốn tròn */
  border: none;
  box-shadow: none;
  transition: opacity 0.2s ease;
  opacity: 1;
}
.popup-staff-content img.loaded { opacity: 1; }

/* Đồng nhất avatar trong card + popup */
.team-image,
.popup-staff-avatar,
.popup-staff-content img {
  border-radius: 0;
  aspect-ratio: 1 / 1 !important;  
  border: none;
  box-shadow: none;
}

/* Container avatar vuông */
.team-image {
  width: 120px !important;
  height: 120px !important;
  border-radius: 0 !important;       /* Vuông container */
  overflow: hidden !important;       /* Cắt gọn ảnh */
  margin: 0 auto;
}  

/* Ảnh bên trong cũng vuông */
.team-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;      /* Cắt vừa khung */
  border-radius: 0 !important;       /* Vuông góc */
}


.team-image.team-oanh,
.popup-staff-avatar.popup-oanh {
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
}

/* Ép .popup-top thành cột và căn giữa (override .d-flex nếu có) */
.popup-staff-overlay .popup-top,
.popup-staff-overlay .popup-top.d-flex {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
  text-align: center !important;
}

/* Nếu popup sử dụng avatar nhỏ trong header */
.popup-staff-overlay .popup-top img {
  width: 120px !important;
  height: 120px !important;
  margin: 0 0 8px 0 !important;
  object-fit: cover !important;
  border-radius: 0 !important; /* đổi 50% nếu muốn tròn */
  align-self: center !important;
}

/* tên , chức danh */
.popup-staff-overlay .popup-top .popup-meta,
.popup-staff-overlay .popup-top .popup-meta * {
  text-align: center !important;
  width: 100% !important;
}

/* Tên */
.popup-staff-overlay .popup-top .popup-meta h3,
.popup-staff-overlay .popup-top .popup-meta strong {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #222 !important;
}

/* Chức danh  */
.popup-staff-overlay .popup-top .popup-meta .text-muted,
.popup-staff-overlay .popup-top .popup-meta .title,
.popup-staff-overlay .popup-top .popup-meta em {
  margin-top: 4px !important;
  font-size: 0.95rem !important;
  color: #6c757d !important;
  font-weight: 600 !important;
  
}

/* Nội dung kinh nghiệm */
.popup-staff-overlay .kinh-nghiem-full,
.popup-staff-overlay .kinh-nghiem-full p,
.popup-staff-overlay .kinh-nghiem-full li,
.popup-staff-overlay .kinh-nghiem-full span {
  text-align: left !important;
  max-width: 60ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.6 !important;
  color: #444 !important;
}

/* Ngăn ảnh hưởng layout khác */
html { overflow-y: scroll; }
body.popup-open { overflow: hidden; padding-right: var(--scrollbar-width, 0px); }

/* Board title (giữ nguyên) */
.board-title {
  color: #000;
  font-size: 28px;
  margin: 50px auto 30px;
  display: table;
  font-weight: bold;
}
.popup-staff-content .board-title::after { content: none !important; }

/* Responsive popup nhân sự */
@media (max-width: 800px) {
  .popup-staff-content {
    width: 90% !important;       
    max-width: 400px !important; 
    padding: 16px !important;
    text-align: left !important; 
    max-height: 85vh !important;   /* chiếm tối đa 85% chiều cao màn hình */
    overflow-y: auto !important;   /* nội dung thừa thì cuộn */
  }

  /* Nội dung mô tả */
  .popup-staff-content .kinh-nghiem-full,
  .popup-staff-content .kinh-nghiem-full p,
  .popup-staff-content .kinh-nghiem-full li,
  .popup-staff-content .kinh-nghiem-full span {
    text-align: justify !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
    padding: 0 12px !important;   
  }

  /* Avatar + tên + chức vụ căn giữa */
  .popup-staff-content .popup-top,
  .popup-staff-content .popup-top * {
    text-align: center !important;
  }
}

