.gioithieu-section,
.vitri-section,
.tongthe-section,
.tienich-section,
.cta-section,
.sanpham-section {
  padding-block: 65px 70px;
}
button.sanpham-tab {
    margin: 0px;
}

/* ====== GIỚI THIỆU ====== */
.gioithieu-section {
  max-width:1300px;
  margin:0 auto;
  text-align:center;
}

/* Tiêu đề */
.gioithieu-title {
  font-size:32px;
  color:#054444;
  letter-spacing:.5px;
  margin: 0 0 30px;
  text-transform:uppercase;
  animation: fadeInDown 2s;
}
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Tabs */
.gioithieu-tabs {
  display:flex;
  justify-content:center;
  gap:14px;
  margin-bottom:20px;
  animation: fadeInUp 2s;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}
.gioithieu-tab {
  padding:5px 20px;
  border:1px solid #FBE39A;
  border-radius:999px;
  background:#fff;
  color:#054444;
  cursor:pointer;
  transition:.25s ease;
}
button.gioithieu-tab {
    margin: 0;
}
.gioithieu-tab:hover { background:#f6f7fb; }
.gioithieu-tab.active {
    background: #054444;
    color: #fff;
    border-color: #054444;
}

/* Khối ảnh + nội dung */
.gioithieu-content {
  position:relative;
  display:flex;
  gap:28px;
  background:transparent;
  padding:22px 26px 22px 0;
  border-radius:4px;
  overflow:visible;
  animation: fadeInUp 2s;
}
.gioithieu-content::before {
    background: #054444;
    content: ' ';
    width: 80%;
    right: 0;
    top: 0;
    position: absolute;
    height: 500px;
}
/* Cột trái */
.gioithieu-left {
  width: 60%;
}
.gioithieu-left img {
    width: 100%;
    display: block;
    border-radius: 2px;
    height: 450px;
    object-fit: cover;
    object-position: center center;
    border-style: solid;
    border-width: 0px 0px 0px 10px;
    border-color: #FBE39A;
    z-index: 2;
    position: relative;
    transition: unset;
}
.gioithieu-left img.in {
    transition: all 1s 
ease;
    opacity: 1 !important;
    transform: translateX(0) !important;
}
/* Cột phải */
.gioithieu-right {
  flex:1;
  color:#fff;
  background:transparent;
  padding:6px 8px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:left;
  z-index: 3;
  position: relative;
}
.gioithieu-right-title {
  font-size:24px;
  color:#FBE39A;
  margin:2px 0 18px;
  text-transform:uppercase;
}
.gioithieu-tab-text { line-height:1.6; }
.gioithieu-tab-extra ul {
  list-style:none;
  margin:0;
  padding:0;
}
.gioithieu-tab-extra li {
  border-bottom:1px solid rgba(255,255,255,.18);
}
.gioithieu-tab-extra li:last-child { border-bottom:none; }
.gioithieu-tab-extra .icon {
  color:#d6a850;
  margin-right:6px;
}
.gioithieu-btn-xemthem .gioithieu-link-more {
  display:inline-block;
  margin-top:10px;
  color:#FBE39A;
  text-decoration:none;
  border-bottom:2px solid #d6a850;
  padding-bottom:2px;
}
.gioithieu-btn-xemthem .gioithieu-link-more:hover { opacity:.85; }

/* Tab content hiển thị */
.gioithieu-tab-content { position: absolute;width: 100%;opacity: 0;transform: translateX(300px);overflow: auto; }
.gioithieu-tab-content.active {  transition: all 1s ease;opacity: 1;transform: translateX(0);position: relative; }

/* Responsive */
@media (max-width: 991px){
  .gioithieu-content {
    flex-direction:column;
    gap:16px;
    padding:18px;
  }
  .gioithieu-content::before {
    width: 100%;
    height: 100%;
  }
  .gioithieu-left {
    width: 100%;
  }
}
@media (max-width: 600px) { 
   .gioithieu-left img {height: auto;}
   .gioithieu-section button {
    font-size: 16px;
    line-height: 1.5;
   }
   .gioithieu-tabs {
      overflow: scroll;
      justify-content: unset;
   }
   .gioithieu-tab {white-space: nowrap;}
   .gioithieu-tabs::-webkit-scrollbar {
    height: 0;
   }
}

/* ====== VỊ TRÍ ====== */
.vitri-section {
  background:#006c6c;
  color:#fff;
  padding:60px 0;
}
.vitri-container {
  max-width:1300px;
  margin:0 auto;
  display:flex;
  gap:40px;
  align-items:flex-start;
}
.vitri-left { flex:1; }
.vitri-left h2, .vitri-left p {animation: fadeInLeft 2s;}
.vitri-title {
  font-size:26px;
  color:#FBE39A;
  margin-bottom:20px;
  text-transform:uppercase;
}
.vitri-desc {
  font-size:15px;
  line-height:1.6;
  margin-bottom:25px;
}
.vitri-info {
  display:flex;
  gap:50px;
  animation: fadeInUp 2s;
}
.vitri-info ul {
  list-style:none;
  margin:0;
  padding:0;
  width: 100%;
}
.vitri-info ul:last-child {
    display: none;
}
.vitri-info li {
  font-size:15px;
  margin-bottom:12px;
  display:flex;
  align-items:flex-start;
  border-bottom: 1px solid #d3d3d345;
}
.vitri-info li img {
    width: 15px;
    max-width: 15px;
    height: 15px;
}
.vitri-info .icon {
  color:#cfa74e;
  margin-right:8px;
}
.vitri-right { width: 55%; text-align:right; animation: fadeInRight 2s }
@keyframes fadeInRight {
 0% {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
 }

 100% {
    opacity: 1;
    transform: none;
 }
}
.vitri-right img {
  max-width:100%;
  border-radius:6px;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width:991px){
  .vitri-container { flex-direction:column;padding: 0 20px; }
  .vitri-right { text-align:center;width: 100%; }
  .vitri-info { flex-direction:column; gap:20px; }
}

/* ====== TỔNG THỂ ====== */
.tongthe-section { padding:60px 0; background:#fff; }
.tongthe-container {
  max-width:1200px;
  margin:0 auto;
  display:flex;
  gap:50px;
}
.tongthe-left { flex:1; animation: fadeInDown 2s; }
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.tongthe-title {
  font-size:30px;
  color:#054444;
  line-height:1.3;
  text-transform:uppercase;
  margin-bottom: 30px;
}
.tongthe-right { flex:1; animation: fadeInRight 2s;}
.tongthe-line {
  display:block;
  width:40px;
  height:3px;
  background:#cfa74e;
  margin-bottom:15px;
}
.tongthe-desc {
  font-size:16px;
  line-height:1.6;
  color:#333;
}
.tongthe-hero img {
  width:100%;
  height:100vh;
  object-fit:cover;
  display:block;
  animation: zoomIn 2s;
}
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale3d(.3, .3, .3);
  }
  50% {
    opacity: 1;
  }
}
@media (max-width:991px){
  .tongthe-container { flex-direction:column; gap:20px;padding: 0 20px; }
  .tongthe-hero img {height: auto;}
}

/* ====== TIỆN ÍCH ====== */
.tienich-section { padding:0 0 60px; }
.tienich-container {
  max-width:1300px;
  margin:auto;
  display:flex;
  gap:40px;
}
.tienich-left { flex:1; }
.tienich-left h2, .tienich-left p {
    animation: fadeInLeft 2s;
}
.tienich-title {
  font-size:28px;
  color:#054444;
  margin-bottom:20px;
  text-transform: uppercase;
}
.tienich-desc {
  font-size:15px;
  line-height:1.6;
  margin-bottom:25px;
}
.tienich-list {
  display:flex;
  gap:40px;
  animation: fadeInUp 2s;
}
@media (max-width: 600px) {
 .tienich-list {display: block;}
}
.tienich-list ul {
  list-style:none;
  margin:0;
  padding:0;
  width: 100%;
}
.tienich-list ul:last-child {
    display: none;
}
.tienich-list li {
  margin-bottom:10px;
  font-size:15px;
  border-bottom: 1px solid lightgray;
}
.tienich-list li img {
    width: 15px;
    height: 15px;
}
.tienich-right { width: 50%;animation: fadeInRight 2s; }
.tienich-main-img { position:relative; }
.tienich-main-img img {
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:8px;
}
.tienich-nav {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:transparent;
  font-size:20px;
  cursor:pointer;
}
.tienich-nav.left { left:10px; }
.tienich-nav.right { right:10px; }
.tienich-thumbs {
  display:flex;
  gap:12px;
  margin-top:12px;
}
.tienich-thumbs img {
  flex:1;
  height:100px;
  object-fit:cover;
  border-radius:6px;
  border:2px solid transparent;
  cursor:pointer;
  transition:.3s;
}
.tienich-thumbs img.active { border-color:#f4b400; }
.tienich-main-img { position:relative; }
.tienich-main-img img {
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:8px;
}
.tienich-nav {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:rgba(0,0,0,.3);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  padding:5px 10px;
  border-radius:4px;
}
.tienich-nav.left { left:10px; }
.tienich-nav.right { right:10px; }
.tienich-thumbs {
  display:flex;
  gap:12px;
  margin-top:12px;
}
.tienich-thumbs img {
  flex:1;
  height:100px;
  object-fit:cover;
  border-radius:6px;
  border:2px solid transparent;
  cursor:pointer;
  transition:.3s;
}
.tienich-thumbs img.active { border-color:#f4b400; }
.tienich-right .mySwiper2 {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tienich-right .mySwiper2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tienich-right .mySwiper {
  height: 100px;
  margin-top: 12px;
}
.tienich-right .mySwiper .swiper-slide {
  height: 100%;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.tienich-right .mySwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tienich-right .mySwiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #f4b400;
}

.tienich-right .swiper-button-next,
.tienich-right .swiper-button-prev {
  color: #fff;
}
@media (max-width:991px) {
  .tienich-container {
    flex-wrap: wrap;
    padding: 0 20px;
  }
  .tienich-right {
    width: 100%;
  }
  .tienich-left {
   width: 100%;
  }
}
/* ====== CTA ====== */
.cta-section { background:#054444; padding:40px 0; }
.cta-container {
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}
.cta-text { flex:1; color:#fff; animation: fadeInDown 2s; }
.cta-text h2 {
  font-size:28px;
  color:#FBE39A;
  margin-bottom:6px;
}
.cta-text p {
  font-size:16px;
  line-height:1.5;
  margin-bottom: 0;
}
.cta-btn {animation: fadeInRight 2s;}
.cta-register-btn {
  display:inline-block;
  background:linear-gradient(45deg, #FBE39A, #DED4CA);
  color:#054444;
  padding:12px 28px;
  font-size:16px;
  border-radius:30px;
  text-decoration:none;
  transition:.3s;
  border:2px solid #fff;
}
.cta-register-btn:hover {
  background:#c0923a;
  color:#fff;
}
@media (max-width: 991px) {
  .cta-container {
    padding: 0 20px;
  }
  .cta-text {flex: unset;width:100%;text-align: center;}
  .cta-btn {margin: 0 auto;}
  
}
/* ====== SẢN PHẨM ====== */
.sanpham-section {
  max-width:100%;
  margin:0 auto;
  padding:60px 0;
}
.sanpham-title {
  font-size:28px;
  color:#054444;
  margin-bottom:25px;
  text-align:center;
  text-transform:uppercase;
  animation: fadeInDown 2s;
}
.sanpham-tabs {
  display:flex;
  justify-content:center;
  animation: fadeInUp 2s;
}
.sanpham-tab {
  padding:18px 25px;
  border:1px solid #cfcfcf;
  background:#fff;
  color:#054444;
  cursor:pointer;
  transition:.3s;
  border-radius:10px 10px 0 0;
}
.sanpham-tab.active {
  background:#006c6c;
  color:#fff;
  border-color:#006c6c;
}
.sanpham-tab-content { display:none; }
.sanpham-tab-content.active { display:block; }
.sanpham-wrapper {
  display:flex;
  align-items:stretch;
  animation: fadeInUp 2s 
ease 1s;
}
.sanpham-image {
  flex:1;
  min-width:60%;
}
.sanpham-section .carousel-item img {
  width: 100%;
  height: 450px;       /* chiều cao đồng nhất */
  object-fit: cover;   /* cắt ảnh để giữ tỉ lệ */
  display: block;
}
.sanpham-section .carousel-item {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 = 9/16*100 */
}
.sanpham-section .carousel-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sanpham-text {
  flex:1;
  max-width:40%;
  background:#054444;
  color:#fff;
  padding:0 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.sanpham-text span {
  color:#FBE39A;
  font-size:18px;
  margin-bottom:10px;
}
.sanpham-subtitle {
  font-size:22px;
  margin-bottom:15px;
  color: #fff;
}
.sanpham-desc {
  font-size:15px;
  line-height:1.6;
}
.sanpham-btn-xemthem {
    margin-top: 10px;
    font-style: italic;
}
.sanpham-link-more {
  margin-top:15px;
  text-decoration:none;
  color:#d6a873;
  border-bottom:2px solid #d6a873;
  padding-bottom:3px;
}
.sanpham-link-more:hover { opacity:.85; }
@media (max-width:991px){
  .sanpham-wrapper { flex-direction:column; }
  .sanpham-image, .sanpham-text { min-width:100%; max-width:100%; }
  .sanpham-image img { height:300px; }
  .sanpham-text {padding: 30px 20px;}
  .sanpham-tabs {overflow: auto;justify-content: flex-start;}
   button.sanpham-tab {width: auto;white-space: nowrap;}
}
@media (max-width: 600px) {
   .sanpham-tab {padding: 5px 7px;font-size: 16px;line-height: 1.5;text-transform: capitalize;
	}
}

/*=====PRODUCT RELATED=====*/
section.project-khac {
    padding: 60px 0 30px;
}
.title-project-related h3 {
    font-size: 28px;
    color: #054444;
    margin: 0 auto;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 2s;
}
.slider-related-wrapper {
   animation: fadeInUp 2s;
}








/*=====SECTION THƯ VIỆN ẢNH===== */
/* --- SECTION WRAPPER --- */
.thu-vien-section {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 60px;
}

/* --- TITLE --- */
.thu-vien-title {
  font-size: 32px;
  color: #054444;
  letter-spacing: 0.5px;
  margin: 10px 0 25px;
  text-transform: uppercase;
  font-weight: 700;
}

/* --- TABS --- */
.thu-vien-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.thu-vien-tab {
  padding: 6px 24px;
  border: 1px solid #FBE39A;
  border-radius: 999px;
  background: #fff;
  color: #054444;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
}
.thu-vien-tab:hover { background: #f6f7fb; }
.thu-vien-tab.active {
  background: #054444;
  color: #fff;
  border-color: #054444;
}

/* --- TAB CONTENTS WRAPPER --- */
.thu-vien-tab-contents {
  position: relative;
  min-height: 320px; /* giữ không gian, tránh nhảy layout khi đổi tab */
}

/* --- TAB CONTENT --- */
.thu-vien-tab-content {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.thu-vien-tab-content.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- SWIPER --- */
.thu-vien-swiper {
  width: 100%;
  padding: 50px 0 !important;
  box-sizing: border-box;
}

.thu-vien-swiper .swiper-wrapper {
  align-items: center;
}

.thu-vien-swiper .swiper-slide {
  width: 380px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thu-vien-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* --- PAGINATION --- */
.thu-vien-swiper .swiper-pagination {
  font-weight: 600;
  color: #054444;
  margin-top: 15px;
  font-size: 16px;
}

/* --- NAV BUTTONS --- */
.thu-vien-swiper .swiper-button-next,
.thu-vien-swiper .swiper-button-prev {
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: 0.3s;
  background: #054444a8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.thu-vien-swiper .swiper-button-next:hover,
.thu-vien-swiper .swiper-button-prev:hover {
  background: #076666;
}

.thu-vien-swiper .swiper-button-next svg,
.thu-vien-swiper .swiper-button-prev svg {
    display: none;
}

.thu-vien-swiper .swiper-button-next::after,
.thu-vien-swiper .swiper-button-prev::after {
    font-size: 20px;
  font-weight: bold;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .thu-vien-swiper .swiper-slide {
    width: 320px;
    height: 210px;
  }
}
@media (max-width: 768px) {
  .thu-vien-swiper .swiper-slide {
    width: 80%;
    height: 200px;
  }
  .thu-vien-tab {
    padding: 6px 18px;
    font-size: 15px;
  }
  .thu-vien-title {
    font-size: 24px;
  }
}