:root {
  /*biến màu light*/
  --highlight-bg: #1F2EFF33;
  --highlight-bg-dark: #8E74C8;
  --footer-bg: #0b1169cc;
}

a {
  text-decoration: none;
}

/*--------*/
.fa {
  color: #333333;
  font-weight: 1;
}

.fa:hover {
  font-weight: bolder;
  color: #000000;
}

#logo {
  width: 172px;
  height: auto;
  margin-left: 60px;
}

#dvHeadLine {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  margin-top: 64px;
}

#txtHeadLine {
  gap: 25px;
  width: calc(100% * 4 / 12);
  object-fit: cover;
}

#imgHeadLine {
  width: calc(100% * 8 / 12);
  border-radius: 8px;
}

.button-primary {
  background-color: var(--footer-bg);
  color: whitesmoke;
}

.button-primary:hover {
  background-color: var(--bs-primary);
  color: whitesmoke;
}

.button-secondary {
  color: var(--footer-bg);
  border-color: var(--footer-bg);
  border-style: solid;
  border-width: 1px;
}

.button-secondary:hover {
  background-color: var(--highlight-bg);
  color: var(--footer-bg);
}

.btnXemThemVeChungToi {
  padding: 12px 16px;
  border-radius: 8px;
  width: 217px;
  height: 60px;
  font-weight: 500;
  font-size: 1.2rem;
  text-align: center;
  border: none;
}



#txtHeadLine h4 {
  text-decoration: solid;
  font-weight: 700;
}

#dvDichVu,
#dvKhachhang {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.tieuDe-section {
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  margin: 40px 0px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 64px;
  height: auto;
  padding: 0px;
  justify-items: center;
  align-items: stretch;
  justify-content: stretch;
  margin-bottom: 16px;
}

/* container cac dich vu */
#dvDichVu .section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 64px;
  height: auto;
  padding: 0px;
  justify-items: center;
  align-items: stretch;
  justify-content: stretch;
}

#dvDichVu .section-item {
  position: relative;
  border-radius: 12px;
  text-align: left;
  padding: 16px;
  gap: 24px;
}

.section-item {
  position: relative;
  border-radius: 12px;
  text-align: left;
  padding: 16px;
  gap: 24px;
}

.section-item:hover {
  background-color: var(--highlight-bg-dark);
}

.section-item img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 24px;
}

.section-item-background {
  background-color: #1f2eff33;
}

.section-item a {
  text-decoration: none;
  font-weight: bold;
  color: #333333;
  font-size: 20px;
  font-weight: 600;
}

.XemThem {
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  width: 190px;
}



/* anh khach hang */
.khachhang-mota {
  margin-top: 60px;
  font-style: italic;
  text-align: left !important;
}

.img-box {
  width: 100px;
  height: 100px;
  left: 100px;
  top: -50px;
  position: absolute;
  border-radius: 9999px;
  overflow: hidden;
}

.img-box img {
  width: 200px;
  height: auto;
  position: absolute;
  top: -30px;
  left: -50px;
}

/* tin tuc */
#dvTinTuc {
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* chinh sach va chat luong */
#dvChinhSach {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.ChinhSach-content {
  text-align: left;
  padding: 10px;
}

.ChinhSach-content h3 {
  font-weight: bold;
}

.ChinhSach-content p {
  width: 1152px;
  height: 227px;
  font-weight: medium;
}

footer {
  background-color: #0b1169cc;
  color: #ffffff;
  height: 100%;
}

footer p,
footer a {
  text-decoration: none;
}

#logo-footer {
  height: 39px;
  width: auto;
}

footer h3 {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}

#footer-lienhe {
  margin: 39px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 40px;
}

.icon-mxh {
  width: 32px;
  height: 32px;
  margin: 16px;
}

#section-content-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 64px;
  padding: 24px;
  justify-items: center;
  align-items: stretch;
}

.icon-footer-box {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 27px;
  height: 27px;
  gap: 30px;
  background-color: #ffffff;
  border-radius: 100%;
  overflow: hidden;
  align-items: center;
  margin-bottom: 16px;
}

#dvIcon-footer {
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
}

.Content-footer {
  gap: 24px;
  text-align: left;
}

.Content-footer h5 {
  text-decoration: none;
  font-weight: bold;
  text-align: left;
}

.Content-footer p,
.Content-footer a {
  width: 270px;
  text-align: left;
  text-decoration: none;
  color: #ffffff;
}


/* Mobile responsive*/

@media screen and (max-width: 768px) {
  * {
    margin: 0;
    font-family: Roboto, sans-serif;
  }

  body {
    margin: 0;
  }

  /* Bố cục lại header khi nhỏ */
  header {
    display: grid;
    grid-template-columns:  1fr auto auto;
    grid-template-areas:
      "logo icons toggler"
      "menu menu menu";
  }

  header>a[title="Về trang chủ MT9"] {
    grid-area: logo;
  }

  .menu-toggle {
    border: none;
    display: block;
    grid-area: toggler;
    justify-self: end;
  }

  .menu {
    grid-area: menu;
    display: none;
    flex-direction: column;
    gap: 12px;
    background: var(--bs-white);
    padding: 12px 0;
    border-top: 1px solid var(--bs-gray-300);
  }

  .menu.show {
    display: flex;
  }

  .header-icons-section {
    grid-area: icons;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
  }

  /* Menu trượt */
  .slide-menu {
    grid-area: menu;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    background: var(--bs-white);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0;
    border-top: 1px solid var(--bs-gray-300);
  }

  .slide-menu.show {
    max-height: 75vh; /* Hiệu ứng trượt 3/4 trang */
    padding: 12px 0;
  }
  .fix-btn-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
  }

  .btn.btn-primary {
    display: flex;
    justify-content: center;
    /* width: 60px;
    height: 60px; */
    gap: 30px;
    /* background-color: #ffffff; */
    /* border-radius: 100%; */
    overflow: hidden;
    align-items: center;
    border-color: #008ee2;
    margin-bottom: 16px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  }

  .btn-float-icon {
    align-items: center;
    width: 48px;
    height: 48px;
  }

  #contain-mobile-nav {
    display: flex;
    flex-direction: column;

  }

  #mobilenav {
    display: block;
    width: 28px;
    height: auto;
    position: relative;
  }

  #dropdownMenuButton {
    width: fit-content;
    height: fit-content;
  }

  .icon-group {
    gap: 16px;
  }

  .icon-item span {
    display: none;
  }

  #menu {
    display: none;
    justify-content: center;
    align-items: center;
  }

  .btn.btn-secondary.dropdown-toggle {
    background-color: #ffffff !important;
    border: none !important;
    margin-top: 23px;
  }

  #sub-menu {
    display: none;
    position: absolute;
  }

  .dropdown-menu {
    text-align: left;
    margin-top: 16px;
    background-color: #D1D5DC;
    top: 100%;
    left: 0;
  }

  .dropdown-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;

  }

  .dropdown-item:hover {
    background-color: #D1D5DC;
    width: 90%;
  }

  .dropdown-menu ul li:first-child {
    margin-top: 26px;
  }

  .dropdown-menu ul li:last-child {
    margin-bottom: 26px;
    border-bottom: none;
  }

  .dropdown-menu ul li {
    width: 90%;
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 0;
    justify-content: center;
  }

  .dropdown-menu ul li a {
    text-decoration: none;
    color: #4a5565;
    font-size: 16px;
    text-align: center;
  }

  .dropdown-menu ul li a:hover {
    color: #000000 !important;
  }

  .fa {
    color: #333333;
  }

  .fa:hover {
    font-weight: bolder;
    color: #000000;
  }

  #sub-menu ul li a:hover {
    color: #000000;
  }

  #logo {
    width: 70px;
    height: auto;
  }

  #dvHeadLine {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  #txtHeadLine {
    text-align: center;
    width: 100%;
  }

  #imgHeadLine {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
  }

  .btnXemThemVeChungToi {
    background-color: #AAADD7;
    color: #ffffff;
    width: fit-content;
    min-width: 180px;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
  }

  .btnXemThemVeChungToi:hover {
    background-color: #8E74C8;
  }

  #txtHeadLine h4 {
    text-decoration: solid;
    font-weight: 700;
  }

  #dvDichVu {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .tieuDe-section {
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    margin: 40px 0px;
  }

  .section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 24px;
    justify-items: center;
    align-items: stretch;
    justify-items: stretch;
  }

  .section-item {
    position: relative;
    border-radius: 12px;
    text-align: center;
    padding: 16px;
    gap: 60px;
  }

  .section-item:hover {
    background-color: #8E74C8;
  }

  .section-item img {
    position: relative;
    width: 212px;
    height: 141px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .section-item-background {
    background-color: #1f2eff33;
  }

  .section-item a {
    text-decoration: none;
    font-weight: bold;
    color: #333333;
    font-size: 20px;
    font-weight: 600;
  }

  .section-item a,
  .section-item p {
    min-height: 40px;
    text-align: left;
  }

  .XemThem {
    background-color: #ffffff;
    border-radius: 8px;
    background-color: #AAADD7;
    border: none;
    color: #333333;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    width: 190px;
  }

  .XemThem:hover {
    background-color: #8E74C8;

  }

  /* anh khach hang */
  .section-khachhang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 120px;
    height: auto;
    padding: 24px;
    justify-content: center;
    align-items: stretch;
    justify-items: stretch;
    position: relative;
  }

  .section-khachhang-item {
    position: relative;
    border-radius: 12px;
    text-align: left;
    padding: 16px;
    gap: 24px;
  }

  .img-box {
    width: 100px;
    height: 100px;
    left: 100px;
    top: -50px;
    position: absolute;
    border-radius: 9999px;
    overflow: hidden;
  }

  .img-box img {
    width: 200px;
    height: auto;
    position: absolute;
    top: -30px;
    left: -50px;
  }

  .section-khachhang-info {
    width: 270px;
    height: 321px;
    padding-top: 70px;
    position: relative;
    text-align: center;
    box-sizing: border-box;
  }

  .section-khachhang-info p,
  .section-khachhang-info a .section-khachhang-info h3 {
    text-decoration: none;
    text-align: center;
  }

  .khachhang-mota {
    text-decoration: none;
    text-align: left !important;
    font-style: italic;
  }

  .section-khachhang-info h3 {
    font-weight: 700;
    text-align: center;
  }

  #khachhang-3 {
    display: none;
  }

  /* tin tuc */
  #dvTinTuc {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .tinTuc-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 24px;
    justify-items: center;
    align-items: stretch;
    justify-items: stretch;
  }

  .tinTuc-section-item {
    position: relative;
    border-radius: 12px;
    text-align: left;
    padding: 16px;
    gap: 60px;
    justify-items: center;
  }

  .tinTuc-section-item:hover {
    background-color: #8E74C8;
  }

  .tinTuc-section-item img {
    width: 270px;
    height: 180px;
    border-radius: 12px;
    margin: 10px;
  }

  .tinTuc-section-item h3 {
    margin: 10px;
    font-weight: bold;
  }

  .tinTuc-section-item p {
    margin: 20px;
  }

  /* chinh sach va chat luong */
  #dvChinhSach {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .ChinhSach-content {
    text-align: left;
    width: 100%;
  }

  .ChinhSach-content h3 {
    font-weight: bold;
  }

  .ChinhSach-content p {
    width: 100%;
    height: auto;
  }

  footer {
    background-color: #0b1169cc;
    color: #ffffff;
    margin-bottom: 0;
  }

  #logo-footer {
    margin-top: 40px;
    width: 100px;
    height: 70px;
  }

  footer h3 {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
  }

  #footer-lienhe {
    margin: 39px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
  }

  .icon-mxh {
    width: 32px;
    height: 32px;
    margin: 16px;
  }

  #section-content-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
    justify-items: start;
    align-items: stretch;
  }

  #dvIcon-footer {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-align: right;
    gap: 30px;
  }

  .icon-footer-box {
    display: flex;
    justify-content: center;
    width: 27px;
    height: 27px;
    gap: 30px;
    background-color: #ffffff;
    border-radius: 100%;
    overflow: hidden;
    align-items: center;
    margin-bottom: 16px;
  }

  .Content-footer {
    gap: 24px;
    text-align: left;
  }

  .Content-footer h5 {
    text-decoration: none;
    font-weight: bold;
    text-align: left;
  }

  .Content-footer p,
  .Content-footer a {
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: #D1D5DC;
  }

  /* responsive nhỏ hơn 768px */
  ul.menu {
    flex-direction: column;
    /* vertical trên mobile */
  }

  ul.menu li a {
    padding: 10px 15px;
  }
}

@media (min-width: 769px) {
  * {
    margin: 0 auto;
    font-family: Roboto, sans-serif;
  }

  body {
    margin: 0;
  }

  header,
  .container {
    /* width: 1152px;
    max-width: 1152px; */
  }

  .margin-top-64 {
    margin-top: 64px;
  }

  header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 2fr 8fr 2fr;
    grid-template-areas: "logo menu icons";
    gap: 24px;

    justify-content: center;
  }

  /* Toggler mặc định ẩn */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--bs-dark);
  }

  .header-icons-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin-right: 30px;
  }

  .fix-btn-container {
    position: fixed;
    bottom: 60px;
    right: 50px;
    z-index: 1000;
  }

  /* 2 floating buttons */

  .btn-round {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: #ffffff;
    border-radius: 100%;
    overflow: hidden;
    align-items: center;
    border-color: #008ee2;
    margin-bottom: 16px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
  }

  .btn-float-icon {
    align-items: center;
    width: 48px;
    height: 48px;
  }

  

  .icon-group {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
  }

  .icon-item i {
    margin-bottom: 4px;
    color: #555555;
  }

  .icon-item span {
    font-size: 12px;
    color: #555555;
  }

  #sub-menu {
    display: none;
  }

  /* #menu {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #menu ul {
    list-style: none;
    display: flex;
  }
  #menu ul li {
    margin: 16px;
  }
  #menu ul li a {
    text-decoration: none;
    color: #4a5565;
    font-size: 24px;
  }
  #menu ul li a:hover {
    color: #000000;
  } */
  /*menu bar*/
  /* container ul */
  ul.menu {
    list-style: none;
    /* loại bỏ bullet */
    margin: 0 auto;
    padding: 0;
    /* horizontal layout */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* màu nền bar (bootstrap dark) */
    /* background-color: #343a40; */
  }

  /* li items */
  ul.menu li {
    position: relative;
    /* cho dropdown sau này nếu cần */
  }

  /* links a */
  ul.menu li a {
    display: block;
    color: #495057;
    text-decoration: none;
    padding: 12px 20px;
    /* khoảng cách xung quanh chữ */
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
  }

  /* hover effect */
  ul.menu li a:hover {
    background-color: var(--highlight-bg);
  }

  /* active link (nếu muốn đánh dấu) */
  ul.menu li a.active {
    background-color: var(--bs-primary);
    /* bootstrap primary */
  }
}