/* Các khối <style> nội tuyến của website gốc duchedep.vn, gom về một file */

/* ---------- Trung hoà reset của Tailwind (chỉ dùng cho admin) ---------- */
.dcd-site img, .dcd-site video { display: inline; max-width: none; vertical-align: middle; }
.dcd-site svg { display: inline; }
#colorlib-blog .grid { display: block; }

/* ---------- Header ---------- */
#bg {
  background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(138, 172, 0, 0.74)), url(/images/general/banner.jpg);
  background-size: 100% auto;
  background-position: center center;
  border-bottom: 5px solid black;
}
.wrap-menu-desktop { height: 135px; }
.main-menu { background-color: #333333c7; }
.main-menu > li {
  display: block;
  position: relative;
  padding: 10px 15px 10px 15px;
  margin: 0;
  border-right: 1px solid;
}
.active-menu { background-color: #fff; }
.wrap-header-mobile { background: rgba(138, 172, 0, 0.74) !important; }
.arrow-main-menu-m { cursor: pointer; }

/* ---------- Slider Banner & Hiệu ứng chuyển hình ảnh ---------- */
.note { background-color: rgba(25, 23, 23, 0.3); }
.hotline { position: absolute; right: 30px; bottom: 30px; display: none; z-index: 5; }
@media screen and (max-width: 480px) {
  .hotline { right: 0; }
  .hotline img { width: 80%; }
}

.dcd-section-slide {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.dcd-banner-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

/* Viewport tự co giãn đúng 100% theo chiều cao thật của image banner */
.dcd-banner-slider-viewport {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 2172 / 724;
  overflow: hidden;
  background-color: #f8fafc;
}

/* Ảnh định hình chiều cao tự nhiên tuyệt đối ở mọi thiết bị */
.dcd-banner-sizer-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Từng slide banner xếp chồng lên nhau với hiệu ứng fade mượt mà, KHÔNG phóng to ảnh */
.dcd-banner-slide {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: none !important;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.dcd-banner-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Hình ảnh banner hiển thị trọn vẹn, không cắt xén, không phóng to */
.dcd-banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

.dcd-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Nút mũi tên chuyển banner Trước / Kế tiếp */
.dcd-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dcd-banner-slider-wrap:hover .dcd-arrow-btn {
  opacity: 1;
}

.dcd-arrow-btn:hover {
  background-color: #8aac00;
  border-color: #8aac00;
  color: #fff !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(138, 172, 0, 0.5);
}

.slick1-prev {
  left: 24px;
}

.slick1-next {
  right: 24px;
}

@media (max-width: 991px) {
  .dcd-arrow-btn {
    opacity: 0.85;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .slick1-prev { left: 10px; }
  .slick1-next { right: 10px; }
}

@media (max-width: 576px) {
  .dcd-arrow-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .slick1-prev { left: 6px; }
  .slick1-next { right: 6px; }
}

/* Dấu chấm chỉ báo slide (Dots) */
.dcd-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.dcd-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.dcd-dot:hover {
  background-color: #ffffff;
  transform: scale(1.2);
}

.dcd-dot.active {
  width: 28px;
  background-color: #8aac00;
  border-color: #8aac00;
  box-shadow: 0 0 8px rgba(138, 172, 0, 0.8);
}

@media (max-width: 576px) {
  .dcd-slider-dots {
    bottom: 6px;
    gap: 5px;
  }
  .dcd-dot {
    width: 6px;
    height: 6px;
  }
  .dcd-dot.active {
    width: 16px;
  }
}

/* ---------- Trang chủ ---------- */
.title_home {
  float: left;
  width: 100%;
  background: #c3b9b97d;
  padding: 20px 0px;
  color: #8aac00;
  font-size: 18px;
  border-bottom: 1px solid #eee;
}
.marquee {
  position: relative;
  float: left;
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
}
.arrow1 { position: absolute; left: 0; top: 10px; width: 50px; color: #e80f11; }
.arrow2 { position: absolute; text-align: right; right: 0; top: 10px; width: 50px; color: #e80f11; }
.marquee-box {
  float: left;
  width: 100%;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: dcd-marquee 22s linear infinite;
}
.marquee-box:hover .marquee-inner { animation-play-state: paused; }
@keyframes dcd-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.butt {
  min-width: unset;
  margin-right: 15px;
  margin-bottom: 10px;
  color: #333;
  background-color: #633f3f1f;
}
.how-active1 { background-color: #e81214; color: #fff; }
.butt:hover { background-color: #e81214; color: #fff; }
.nameProject { text-align: center; text-transform: uppercase; font-weight: 700; }
a { color: #8aac00; }
a:hover { color: red; }

/* ---------- Footer ---------- */
.boxItem { margin-bottom: 10px !important; }
footer p { color: #fff; padding-bottom: 10px; }
footer a { color: #8aac00; }
footer a:hover { color: red; }
footer ul li a { color: #8aac00; }
/* ---------- Liên hệ nhanh (Floating Contact: Desktop bên Trái & Mobile đáy màn hình) ---------- */
.dcd-desktop-contact {
  position: fixed;
  left: 24px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
}

.dcd-float-btn {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

/* Hiệu ứng sóng lan tỏa (Radar Pulse Wave) */
.dcd-ring-pulse {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.6;
  animation: dcd-pulse 2s infinite ease-out;
  pointer-events: none;
}

.ring-phone {
  border: 2px solid #22c55e;
  background-color: rgba(34, 197, 94, 0.2);
}

.ring-zalo {
  border: 2px solid #0068ff;
  background-color: rgba(0, 104, 255, 0.2);
}

.dcd-ring-pulse.delay {
  animation-delay: 1s;
}

@keyframes dcd-pulse {
  0% { transform: scale(0.85); opacity: 0.85; }
  50% { opacity: 0.45; }
  100% { transform: scale(1.48); opacity: 0; }
}

/* Nút hình tròn */
.dcd-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-phone {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
}

.circle-zalo {
  background: #ffffff !important;
  color: #0068ff;
  box-shadow: 0 4px 18px rgba(0, 104, 255, 0.3);
  border: 1.5px solid rgba(0, 104, 255, 0.15);
}

.dcd-zalo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* Rung chuông điện thoại */
.dcd-phone-shake {
  animation: dcd-phone-shake 2.2s infinite ease-in-out;
}

@keyframes dcd-phone-shake {
  0%, 100% { transform: rotate(0) scale(1); }
  10%, 30% { transform: rotate(-16deg) scale(1.06); }
  20%, 40% { transform: rotate(16deg) scale(1.06); }
  50% { transform: rotate(0) scale(1); }
}

/* Nhãn hiển thị khi rê chuột (Desktop Hover Label) */
.dcd-float-label {
  position: absolute;
  left: 44px;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 18px;
  border-radius: 0 21px 21px 0;
  background: #ffffff;
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.dcd-float-label strong {
  margin-right: 4px;
  color: #0f172a;
}

.dcd-float-btn:hover .dcd-float-label {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.dcd-float-btn:hover .dcd-btn-circle {
  transform: scale(1.1);
}

/* Thanh liên hệ cố định ở đáy màn hình điện thoại (Mobile Bottom Bar) */
.dcd-mobile-contact-bar {
  display: none;
}

@media (max-width: 768px) {
  .dcd-desktop-contact {
    display: none !important;
  }

  .dcd-mobile-contact-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
    gap: 10px !important;
    z-index: 9999 !important;
  }

  .dcd-mobile-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 23px;
    text-decoration: none !important;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease;
    overflow: hidden;
    padding: 0 10px;
  }

  .dcd-mobile-btn:active {
    transform: scale(0.97);
  }

  .dcd-mb-call {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.38);
  }

  .dcd-mb-zalo {
    background: #ffffff !important;
    border: 1.5px solid #0068ff !important;
    box-shadow: 0 3px 12px rgba(0, 104, 255, 0.22) !important;
  }

  .dcd-mb-zalo .dcd-mb-title {
    color: #0068ff !important;
  }

  .dcd-mb-zalo .dcd-mb-sub {
    color: #475569 !important;
  }

  .dcd-mb-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
  }

  .zalo-icon-bg {
    background: #eff6ff !important;
  }

  .dcd-mb-zalo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
  }

  .dcd-mb-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
  }

  .dcd-mb-title,
  .dcd-mb-sub {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .dcd-mb-title {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .dcd-mb-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    margin-top: 1px;
  }

  /* Đẩy nút scroll lên đầu trang cao hơn để không bị che bởi thanh đáy */
  .btn-back-to-top {
    bottom: 74px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 9998 !important;
  }

  /* Tạo khoảng trống dưới cùng để thanh liên hệ không che khuất footer */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.btn-back-to-top.show-btn-back-to-top { display: flex; }

/* ---------- Trang sản phẩm ---------- */
.dcd-gallery { display: flex; width: 100%; }
.dcd-gallery .wrap-slick3-dots { width: 11.5%; }
.dcd-gallery .slick3 { width: 80.85%; position: relative; }
.dcd-gallery .slick3-dots li { display: block; position: relative; width: 100%; margin-bottom: 27px; cursor: pointer; }
.dcd-gallery .slick3-dots li img { width: 100%; }
.dcd-gallery .slick3-dot-overlay {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0;
  border: 2px solid transparent; transition: all 0.4s;
}
.dcd-gallery .slick3-dots li:hover .slick3-dot-overlay,
.dcd-gallery .slick3-dots li.slick-active .slick3-dot-overlay { border-color: #ccc; }
.dcd-gallery .arrow-slick3 { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; }
.dcd-gallery .prev-slick3 { left: 0; }
.dcd-gallery .next-slick3 { right: 0; }
@media (max-width: 575px) {
  .dcd-gallery { flex-direction: column-reverse; }
  .dcd-gallery .wrap-slick3-dots, .dcd-gallery .slick3 { width: 100%; }
  .dcd-gallery .slick3-dots { display: flex; flex-wrap: wrap; margin-top: 15px; }
  .dcd-gallery .slick3-dots li { width: 22%; margin: 0 4% 10px 0; }
}
.tab01 .nav-link { cursor: pointer; }
.product-content img { max-width: 100%; height: auto; }
.product-content p { padding-bottom: 10px; }

/* Slider sản phẩm / dự án liên quan */
.dcd-slick2 { position: relative; }
.dcd-slick2-track { display: flex; transition: transform 0.4s ease; }
.dcd-slick2-viewport { overflow: hidden; }
.dcd-slick2 .item-slick2 { flex: 0 0 25%; max-width: 25%; }
@media (max-width: 991px) { .dcd-slick2 .item-slick2 { flex-basis: 33.333%; max-width: 33.333%; } }
@media (max-width: 767px) { .dcd-slick2 .item-slick2 { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 575px) { .dcd-slick2 .item-slick2 { flex-basis: 100%; max-width: 100%; } }
.dcd-slick2 .arrow-slick2 { position: absolute; top: calc((100% - 70px) / 2); z-index: 5; }
.dcd-slick2 .prev-slick2 { left: -40px; }
.dcd-slick2 .next-slick2 { right: -40px; }
@media (max-width: 1300px) {
  .dcd-slick2 .prev-slick2 { left: 0; }
  .dcd-slick2 .next-slick2 { right: 0; }
}

/* ---------- Dự án ---------- */
.all_project .item { position: relative; overflow: hidden; margin-bottom: 30px; }
.all_project .item img.itemProject { width: 100%; height: 280px; object-fit: cover; transition: all 0.4s; }
.all_project .item:hover img.itemProject { transform: scale(1.08); }
.all_project .desc-t {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  padding: 40px 15px 15px;
}
.all_project .titleProject { color: #fff; font-weight: 700; text-transform: uppercase; font-size: 16px; text-align: center; }
.grid:after { content: ''; display: block; clear: both; }
.grid-sizer, .grid-item { width: 30%; }
.grid-item { float: left; padding: 7px; }
.grid-item img { display: block; width: 100%; transition: all linear 0.3s; }
.grid-item > a { overflow: hidden; display: block; }
.grid-item img:hover { transform: scale(1.1); }
@media screen and (max-width: 425px) {
  .grid-sizer, .grid-item { width: 33.333%; }
  .grid-item { padding: 3px; }
}
.titleP {
  text-align: center; color: #158ec8; font-weight: 700; text-decoration: underline;
  margin-bottom: 25px;
}
.infoProject p { padding-bottom: 15px; }

/* ---------- Tin tức + sidebar ---------- */
.news-content img { max-width: 100%; height: auto; }
.news-content p { padding-bottom: 10px; }
#product_hot .l_img { float: left; width: 25%; margin-right: 10px; max-height: 60px; overflow: hidden; }
#product_hot h2 { font-size: 15px; padding-bottom: 5px; color: #444; font-weight: bold; }
#product_hot span { color: #ff2f3e; padding-left: 0px; }
#product_hot .l_img img { max-width: 100%; max-height: 100%; }
#product_hot .r_content { float: left; width: 70%; }
#product_hot ul > li { border-bottom: #e0e0e0 dotted 1px; }
.copy_360 { color: #fff; padding: 5px; text-align: right; }
.total { font-size: 25px; letter-spacing: 3px; color: red; text-transform: uppercase; }
.dg { margin-top: 10px; }
.dg > a { color: #0459DC; font-weight: bold; }
.dg > a:hover { font-style: italic; }
.bg--3 { font-size: 20px; font-weight: bold; }
.sidebar-box .cl2 { margin-bottom: 15px; }
.mtext-112 {
  background: #e81214;
  padding: 10px;
  color: white;
  text-decoration: underline;
  text-transform: uppercase;
}

/* ---------- Liên hệ ---------- */
.error { color: red; }
.show_success { text-align: center; padding-bottom: 20px; color: red; font-size: 20px; }

/* ---------- Lightbox ---------- */
.dcd-lightbox {
  position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
}
.dcd-lightbox img { max-width: 90vw; max-height: 85vh; box-shadow: 0 0 25px rgba(0,0,0,.5); }
.dcd-lightbox button {
  position: absolute; background: transparent; border: 0; color: #fff; font-size: 40px; cursor: pointer;
  padding: 10px 20px; line-height: 1;
}
.dcd-lightbox .lb-close { top: 10px; right: 10px; }
.dcd-lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.dcd-lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.dcd-lightbox .lb-count { position: absolute; bottom: 15px; color: #fff; font-size: 14px; }

/* ---------- Cỡ chữ tối thiểu cho các khối giao diện gốc (dễ đọc trên laptop & điện thoại) ---------- */
.dcd-site .block2-txt .stext-104 { font-size: 15px; line-height: 1.5; }      /* tên sản phẩm ở lưới danh mục */
.dcd-site .block2-txt-child1 p { font-size: 13.5px; }                         /* "Danh mục : ..." */
.dcd-site .block2-txt-child1 p i { font-size: inherit; }
.dcd-site .sec-product-detail .stext-102 { font-size: 15.5px; line-height: 1.8; } /* mô tả sản phẩm */
.dcd-site .product-content,
.dcd-site .product-content p,
.dcd-site .product-content div { font-size: 15.5px; line-height: 1.8; }
.dcd-site .tab01 .nav-link { font-size: 15px; }
.dcd-site .stext-111 { font-size: 14px; }                                     /* ngày đăng / lượt xem */
.dcd-site .sidebar-box .stext-107 { font-size: 14px; }                       /* tag danh mục ở sidebar */
.dcd-site .news-content em { font-size: 14px; }                              /* chú thích ảnh trong bài */
.dcd-site .stext-117 { font-size: 15.5px; }                                   /* đoạn trích tin tức */
