/* ===============================
   Root Variables
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
  --font-base: "Lexend", sans-serif;
  --font-heading: "Lexend", sans-serif;

  --color-primary: #05275a;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-danger: #b30004;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-light: #f8f9fa;
  --color-dark: #343a40;

  --color-body: #212529;
  --color-bg: #ffffff;

  --container-width: 1200px;
  --gutter: 15px;

  --radius: 5px;
  --transition: all 0.3s ease;
}

/* ===============================
   Reset & Base
   =============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-body);
  background-color: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 0.5rem;
}

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

a:hover {
  color: darkblue;
}

/* ===============================
   Container
   =============================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===============================
   Buttons
   =============================== */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary-outline {
  border: 2px solid var(--color-primary);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #fff;
}

.btn-danger:hover {
  background-color: var(--color-danger);
  color: white;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.text-dark {
  color: var(--color-body);
}

.text-white {
  color: white !important;
}

/* ===============================
   Grid / Flex
   =============================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--gutter));
}

.col {
  flex: 1;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===============================
   Utilities
   =============================== */
/* Spacing */
.m-0 {
  margin: 0 !important;
}

.mt-1 {
  margin-top: .25rem !important;
}

.mt-2 {
  margin-top: .5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-1 {
  margin-bottom: .25rem !important;
}

.mb-2 {
  margin-bottom: .5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

/* Text */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

/* Display / Flex */
.d-flex {
  display: flex !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-center {
  justify-content: center !important;
}

.align-center {
  align-items: center !important;
}

/* ===============================
   Helpers
   =============================== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none !important;
}

/* --------------------------------- START HEADER --------------------------------- */
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
body {
  padding-top: 80px; /* bù chiều cao header, chỉnh lại theo height thật */
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.logo img {
  width: 200px;
}

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  /* bỏ chấm */
}

.menu>li>a {
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
  transition: color .3s;
  color: var(--color-danger);
  text-transform: uppercase;
}

.menu>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-danger);
  transition: width .3s;
}

.menu>li>a:hover::after {
  width: 100%;
}

/* Submenu */
.menu-item-has-children {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: max-content;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
  display: none;
  flex-direction: column;
  padding: .5rem 0;
  list-style: none;
  /* bỏ chấm */
  z-index: 2;
}

.sub-menu li a {
  padding: .6rem 1rem;
  display: block;
  color: var(--color-dark);
  transition: background .3s;
}

.sub-menu li a:hover {
  background: var(--color-light);
}

.menu-item-has-children:hover>.sub-menu {
  display: flex;
  animation: fadeInUp .3s ease forwards;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Hamburger modern */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  background: var(--color-danger);
  border-radius: 2px;
  transition: all .3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Responsive */
@media(max-width:768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    display: none;
  }

  .nav.show {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 13px;
    padding: 1rem 0;
  }

  .menu-item-has-children>.sub-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* tắt hover mobile */
  .header-inner {
    padding: 10px;
  }
}

/* --------------------------------- END HEADER --------------------------------- */
/* ------------------------------- START HERO ------------------------------- */
.hero {
  position: relative;
  padding: 7rem 0;
  /* background: url('../images/banner.webp'); */
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

/* Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  background: rgba(54, 54, 54, 0.5);
  /* chỉnh độ tối ở đây */
  z-index: 0;
}

/* đảm bảo nội dung nổi lên trên overlay */
.hero-inner {
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Nút style kế thừa từ btn trong style.css */
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
}

/* Hiệu ứng nổi ảnh */
@keyframes float {

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

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

/* Responsive */
@media(max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

.btn-view {
  background-color: var(--color-primary);
  color: white;
}

.btn-view:hover {
  color: white;
}

.btn-view-outline {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-view-outline:hover {
  background-color: white;
  color: var(--color-danger);
}

/* ------------------------------- END HERO ------------------------------- */
/* ------------------------------- START ABOUT ------------------------------ */
.about {
  padding: 3rem 0;
  background: var(--color-light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content h2 span {
  color: var(--color-primary);
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
}

.about-content .btn {
  margin-top: 1.5rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .15);
  transition: transform .4s ease;
}

.about-image img:hover {
  transform: scale(1.01);
}

/* Responsive */
@media(max-width: 992px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content {
    order: 2;
  }

  .about-image {
    order: 1;
  }
}

.btn-primary:hover {
  color: white;
}

/* ------------------------------- END ABOUT ------------------------------ */
/* ------------------------------ START SERVICE ----------------------------- */
.services {
  padding: 3rem 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.section-header h2 span {
  color: var(--color-primary);
}

.section-header p {
  color: var(--color-gray);
}

/* Grid cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.page-service {
  grid-template-columns: repeat(3, 1fr);
}

.pagination-section {
  padding: 20px 0px 0px 0px;
  text-align: center;
}

.pagination {
  list-style: none;
  display: inline-flex;
  gap: .5rem;
  padding: 0;
  margin: 0;
}

.pagination li a, .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: #fff;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: all .3s ease;
  border-color: var(--color-primary) !important;
}
body .pagination > li > a, .pagination > li > span{
  border: solid 1px var(--color-primary) !important;
}
.pagination li a:hover, .pagination li span:hover {
  background: var(--color-primary) !important;
  color: #fff;
  transform: translateY(-2px);
}

.pagination li a.active, .pagination li span.active {
  background: var(--color-primary) !important;
  color: #fff;
  font-weight: 600;
}

.pagination li a.prev,
.pagination li a.next {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
}

/* Responsive */
@media(max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 10px rgba(235, 235, 235, 0.08);
  padding-bottom: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 2px solid rgb(240, 239, 239);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white !important;
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.service-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .service-card img {
    height: 260px;
  }
}


.service-card h3 {
  font-size: 17px;
}

.padding-card,
.service-meta {
  padding: 5px 15px;
}

.service-card p {
  color: var(--color-dark);
  font-size: .95rem;
  margin-bottom: 0;
}

/* Meta info (giá hoặc liên hệ) */
.service-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-meta .price,
.card-phone {
  font-weight: 700;
  color: var(--color-danger);
  font-size: 1.1rem;
}

.service-meta .contact {
  font-weight: 500;
  color: var(--color-danger);
}

/* Liên hệ (thẻ a) */
.contact-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color .3s;
}

.contact-link:hover {
  color: var(--color-dark);
}

.list-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.list-badge .a-badge {
  font-size: 12px;
  font-weight: normal;
  padding: 3px 5px;
  border-radius: 4px;
  background-color: rgb(238, 238, 238);
  width: max-content;
}

/* ------------------------------ END SERVICE ----------------------------- */
/* ---------------------------- START TESTIMONIAL --------------------------- */
.gallery {
  position: relative;
  padding: 5rem 0;
  background: #fff;
  background-color: var(--color-light);
  background: url('../images/bg-gallery.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

/* Overlay nền */
.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* 👈 chỉnh opacity tuỳ độ mờ bạn muốn */
  z-index: 0;
}

/* Nội dung gallery nổi lên trên overlay */
.gallery .container {
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

.gallery-grid .more-overlay .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 150px;
  }
}

/* ---------------------------- END TESTIMONIAL --------------------------- */
/* ------------------------------- START BLOG ------------------------------- */
.blog {
  padding: 2rem 0;
  background: var(--color-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}



.blog-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
  font-weight: normal !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}
.blog-content-main{
  text-align: justify;
  background: white;
  padding: 20px;
  border-radius: 5px;
}
.blog-content-main ul li{
  margin-left:20px;
}
.blog-content-main img{
  width: 100%;
  border-radius: 5px;
  margin: 10px 0px;
}
/* Giới hạn text */
.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title-post-feature{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* tối đa 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 52px;
}
.blog-content h3 a {
  color: var(--color-dark);
}

.blog-content h3 a:hover {
  color: var(--color-primary);
}

.blog-content p {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--color-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readmore {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.post-navigation {
  padding-top: 20px;
}
/* Responsive */
@media(max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 991px){
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px){
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 475px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------- END BLOG ------------------------------- */
/* ------------------------------ START WHY US ------------------------------ */
.reasons {
  padding: 40px 0px;
  background: var(--color-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: bold;
}

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

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 768px){
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reason-item img {
    height: 100px !important;
  }
}
.reason-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
  border-radius: 10px;
}

.reason-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.reason-item img {
  width: 100% !important;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.reason-number {
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
  align-items: end;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.num-red {
  color: #e63946;
}

.num-yellow {
  color: #f1c40f;
}

.num-green {
  color: #27ae60;
}

.num-blue {
  color: #2980b9;
}

.reason-item h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
  color: var(--color-dark);
}

.reason-item p {
  font-size: .95rem;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ------------------------------ END WHY US ------------------------------ */
/* ------------------------------ START FOOTER ------------------------------ */
.site-footer {
  background: #0f2027;
  color: #fff;
  padding: 40px 10px 10px 10px;
  font-size: 0.95rem;
  position: relative;
}

.map-footer iframe {
  width: 100%;
  height: 150px !important;
  border-radius: 5px;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h3.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-col p {
  line-height: 1.6;
}

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

.footer-col ul li {
  margin-bottom: .7rem;
}

.footer-col a {
  color: white;
  text-decoration: none;
  transition: all .3s ease;
}

.footer-col a:hover {
  color: var(--color-warning);
  text-decoration: underline;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: .8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: all .3s ease;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1.2rem;
  text-align: center;
}

.footer-bottom a {
  color: var(--color-warning);
  text-decoration: underline;
}

/* ------------------------------ END FOOTER ------------------------------ */
/* --------------------------------- START SIDEBAR -------------------------------- */
/* Layout chính */
.services-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}
@media screen and (max-width: 991px){
  .blog .services-layout{
    grid-template-columns: 1fr;  
  }
}
.services-content {
  min-width: 0;
}

.sidebar {
  min-width: 280px;
}

/* Widget chung */
.sidebar .widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.sidebar .widget h4 {
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 5px;
}

/* Search box */
.widget-search form {
  display: flex;
}

.widget-search input {
  flex: 1;
  padding: .6rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  font-family: var(--font-base);
}

.widget-search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background .3s ease;
}

.widget-search button:hover {
  background: var(--color-dark);
}

/* Categories & posts */
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  margin-bottom: .7rem;
}

.widget ul li a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color .3s ease;
}

.widget ul li a:hover {
  color: var(--color-primary);
}

/* Hotline */
.widget-hotline p {
  font-size: 1.2rem;
  font-weight: 600;
}

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

/* --------------------------------- END SIDEBAR -------------------------------- */
/* Layout: main + sidebar */
.service-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

.service-main {
  background: #fff;
}

/* Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-box {
  border: 1px solid #ccc; 
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 5px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 10px;
}

.sidebar-list a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-list a:hover {
  color: #e63946;
}

/* Hotline box */
.hotline-box {
  text-align: center;
}

.hotline-btn {
  display: inline-block;
  background: #e63946;
  color: #fff;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.hotline-btn:hover {
  background: #d62828;
}

/* Promo box */
.promo-box img {
  width: 100%;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 992px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    order: -1;
    /* sidebar lên trên mobile */
  }
}

/* ------------------------------ START CONTACT ----------------------------- */
/* Contact Page */
.contact-page {
  padding: 0px 0px 60px 0;
  background: #f9f9f9;
}

/* Top Info Box */
.contact-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.contact-box {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.contact-box h3 {
  font-size: 16px;
  color: #e63946;
  margin-bottom: 10px;
}

.contact-box p,
.contact-box a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
}

.contact-box a:hover {
  color: #d62828;
}

/* Layout Form + Map */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Contact Form */
.contact-form form {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e63946;
  outline: none;
}


/* Map */
.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

/* Responsive */
@media screen and (max-width: 992px) {
  .contact-top {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .contact-top {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* Top Info Box */
.bg-banner {
  background: url('../images/banner.webp');
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 120px 0px;
  margin-bottom: 50px;
}

.contact-box {
  background: #fff;
  background: rgba(0,0,0,0.4);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-box .icon {
  font-size: 30px;
  color: #e63946;
  margin-bottom: 10px;
  color: white;

}

.contact-box p,
.contact-box a {
  font-size: 17px;
  color: #555;
  text-decoration: none;
  color: white;

  margin-bottom: 0;
}

.contact-box a:hover {
  color: black;
}

input,
button,
select,
textarea {
  font-family: var(--font-base);
}

/* ------------------------------ END CONTACT ----------------------------- */
/* ----------------------------- START SERVICE DETAILS ---------------------------- */

.service-detail-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.service-detail-header h1 {
  font-size: 1.9rem;
  color: #e63946;
  margin: 0 0 .4rem;
}

.service-detail-sub {
  color: #555;
  margin: 0;
}

/* MAIN swiper container */
.service-main-swiper {
  position: relative;
  width: 100% !important;
  height: 500px;
  overflow: hidden;
  margin-bottom: .9rem;
}

.service-main-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  width: 100%;
}

.service-main-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* nav buttons (visible, accessible) */
.service-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.service-swiper-button:hover {
  background: #e63946;
}

.service-swiper-prev {
  left: 12px;
}

.service-swiper-next {
  right: 12px;
}

/* THUMB swiper */
.service-thumb-swiper {
  height: 150px;
  box-sizing: border-box;
  padding-top: 8px;
}

.service-thumb-swiper .swiper-slide {
  height: 100%;
  opacity: .55;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-thumb-swiper .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
  transform: scale(1.02);
  box-sizing: border-box;
}

/* content blocks */
.service-detail-content,
.service-detail-advantages {
  margin: 1.6rem 0;
}
.service-detail-content img{
  width: 100% !important;
  margin: 10px 0px;
  border-radius: 4px;
}
.service-detail-advantages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail-advantages li {
  padding-left: 22px;
  position: relative;
  margin-bottom: .6rem;
}

.service-detail-advantages li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #e63946;
}

.service-detail-meta {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.service-price {
  color: #e63946;
  font-weight: 700;
}

.service-phone {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 980px) {
  .service-main-swiper {
    height: 420px;
  }
}

@media (max-width: 680px) {
  .service-main-swiper {
    height: 300px;
  }

  .service-thumb-swiper {
    height: 100px;
  }

  .service-main-swiper .service-swiper-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
.service-detail-layout{
  display: grid;
  grid-template-columns: 75% 25%;
  padding: 40px 0px;
}
.hid-desktop-dis-mobile{
  display: none;
}
@media screen and (max-width: 991px) {
 .service-detail-layout{
    grid-template-columns: 100%;
  } 
  .hid-desktop-dis-mobile{
  display: block;
}
.service-detail-layout .service-sidebar{
  display: none;
}
}

/* ----------------------------- END SERVICE DETAILS ---------------------------- */
/* ----------------------------- TO TOP ---------------------------- */
#toTopBtn {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-danger);
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  /* ---------------------------- font-size: 20px; ---------------------------- */
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#toTopBtn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* ----------------------------- END TO TOP ---------------------------- */
/* btn submit */
/* ----------------------------- CF7 LOADER ---------------------------- */
.btn-submit {
  position: relative;
  background: var(--color-danger);
  color: #fff;
  padding: 12px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

.btn-submit .btn-text {
  transition: opacity 0.2s ease;
}

.btn-submit .btn-spinner {
  position: absolute;
  right: 15px;
  /* ✅ nằm trong padding phải */
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.btn-submit.loading .btn-text {
  opacity: 0.7;
}

.btn-submit.loading .btn-spinner {
  opacity: 1;
}

/* ----------------------------- CF7 LOADER---------------------------- */
/* ===== Testimonials Section ===== */
.swiper-wrapper{
  height: auto;
}
/* Section */
.testimonials-section {
  padding: 60px 0;
  background: #f9f9f9;
  text-align: center;
}

.testimonials-section .section-title {
  font-size: 28px;
  font-weight: 700;
  color: black;
  margin-bottom: 40px;
}

.content_testi{
  color: var(--color-primary);
}
/* Swiper */
.testimonials-swiper {
  position: relative;
  padding-bottom: 50px;
  overflow: hidden; /* che slide dư */
}

/* Testimonial Card */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.18);
  padding: 30px 20px;
  text-align: center;
  min-height: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.testimonial-card .avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);;
}
.testimonial-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.testimonial-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #a32500;
  margin-bottom: 8px;
}
.testimonial-card .stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);;
}

/* Nút điều hướng — bám container, cách swiper 20px */
.testimonials-section .container {
  position: relative;
}

.testi-prev, .testi-next {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 30;
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.testi-prev { left: 20px; }
.testi-next { right: 20px; }

.testi-prev i, .testi-next i {
  color: #a32500;
  font-size: 16px;
}

/* Pagination dots */
.swiper-pagination-bullet {
  background: #a32500;
  opacity: 0.4;
  width: 10px;
  height: 10px;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .testi-prev, .testi-next {
    width: 36px;
    height: 36px;
  }
  .testi-prev { left: 10px; }
  .testi-next { right: 10px; }
}

.blog-content-main h1,
.blog-content-main h2,
.blog-content-main h3,
.blog-content-main h4,
.blog-content-main h5,
.blog-content-main h6{
  font-weight: normal;
}
.service-detail-content h1,
.service-detail-content h2,
.service-detail-content h3,
.service-detail-content h4,
.service-detail-content h5,
.service-detail-content h6{
  font-weight: normal;
}
.wp-block-heading{
  font-weight: normal;
}
/* ----------------------------- START SERVICE ---------------------------- */
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.sidebar-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.services .sidebar-list li{
  list-style: none;
}
.sidebar-submenu {
  display: none;
  margin: 8px 0 0 15px;
  padding-left: 10px;
  border-left: 2px solid #f0f0f0;
  transition: max-height 0.35s ease;
}

.sidebar-item.open > .sidebar-submenu {
  display: block;
}

.sidebar-item .toggle-sub {
  font-size: 14px;
  color: #333;
  margin-left: 8px;
}
.latest-services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-service-item {
  margin-bottom: 12px;
}

.latest-service-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.latest-service-link .thumb {
  flex: 0 0 60px; /* kích thước ảnh vuông */
  width: 60px;
  height: 60px;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 6px;
}

.latest-service-link .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-service-link .title {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.latest-service-link:hover .title {
  color: #007bff; /* màu hover */
}
/* ----------------------------- END SERVICE ---------------------------- */

/* ----------------------------- START SERVICE HOME ---------------------------- */
/* Desktop: 4 dịch vụ ngang */
.service-slide-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}



@media (max-width: 992px) {
  .service-slide-group {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .service-slide-group {
    grid-template-columns: 1fr;
  }
}

.services .swiper-pagination {
  margin-top: 25px;
  text-align: center;
  position: relative !important;
}

.swiper-pagination-bullet.custom-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
  margin: 0 4px !important;
}

.swiper-pagination-bullet.custom-bullet.custom-bullet-active {
  background: #007bff;
}
/* ----------------------------- END SERVICE HOME ---------------------------- */


/* Sidebar Box */
.sidebar-box {
  margin-bottom: 30px;
}

.sidebar-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

/* Danh sách bài viết */
.latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-post-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.latest-post-item:last-child {
  margin-bottom: 0;
}

/* Link bao quanh */
.latest-post-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.latest-post-link:hover .title {
  color: #0073aa; /* màu hover giống màu link WP */
}

/* Ảnh thumbnail */
.latest-post-item .thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 6px;
  margin-right: 12px;
}

.latest-post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tiêu đề */
.latest-post-item .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.service-contact-box{
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}
.service-contact-box b{
  color: var(--color-primary);
}