/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #daa14c;
  --text-dark: #000;
  --text-light: #fff;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-overlay-light: rgba(0, 0, 0, 0.3);
  --border-color: #474747;
  --gray-light: #f8f8f8;
  --gray-medium: #6e6e6e;
}

/* ===== UTILITY CLASSES ===== */
.text-truncate-2 {
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
}

.hover-scale {
  transition: transform 0.6s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.transition-all {
  transition: all 0.6s ease;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== LAYOUT COMPONENTS ===== */
.section-blog,
.section-theptrangmenkinh,
.section-social {
  background-repeat: no-repeat;
  background-size: cover;
}

.section-congtrinhmoi {
  background-position: center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  z-index: -1;
}

.section-3 {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
}

/* ===== TYPOGRAPHY ===== */
.sub-heading,
.sub-heading a {
  color: var(--primary-color) !important;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.sub-heading:after {
  content: "";
  display: table;
  clear: both;
  background: url(https://file.hstatic.net/200000079633/file/line_936fa7f59cfc4408806a7ba51f4e7eb0.png);
  width: 100%;
  height: 20px;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: bottom;
  padding-top: 0;
}

/* ===== COMPONENTS ===== */
/* Blog Section */
.row.blog {
  text-align: center;
  margin: 0;
}

.row.blog .article-item--post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.row.blog .post-body {
  background-color: var(--bg-overlay);
  text-align: left;
  padding: 18px 10px 45px 10px;
  position: relative;
  flex-grow: 1;
}

.row.blog .post-body h3 a {
  color: var(--text-light);
  line-height: 1.5;
  white-space: initial;
}

.row.blog .post-body .post--desc {
  margin: 12px 0;
  color: var(--text-light);
  line-height: 1.5;
}

.row.blog .post-body p.text-right {
  font-size: 14px;
  margin: 0;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 10px;
}

.row.blog .post-body p.text-right a {
  color: var(--primary-color);
}

/* Product Blocks */
.slide-congtrinhmoi .product-block {
  position: relative;
  overflow: hidden;
}

.slide-congtrinhmoi .product-block .product-detail {
  position: absolute;
  bottom: 0;
  padding: 15px 10px;
  background-color: var(--bg-overlay);
  width: 100%;
  text-align: center;
  border-top: 0;
}

.slide-congtrinhmoi .product-block .product-detail a {
  color: var(--text-light);
}

/* Menu Components */
ul#menu-fullpage {
  display: flex;
  justify-content: center;
  margin: 0;
}

ul#menu-fullpage > li {
  background: var(--bg-overlay-light);
  margin-right: 1px;
  padding: 10px;
}

ul#menu-fullpage > li > a {
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
  padding: 10px;
}

ul#menu-fullpage > li.active,
ul#menu-fullpage > li:hover {
  background-color: var(--text-light) !important;
}

ul#menu-fullpage > li.active > a,
ul#menu-fullpage > li:hover > a {
  color: var(--text-dark);
}

/* Header Components */
.home-main-header ul.menuList-main > li > a {
  color: var(--text-light) !important;
  font-weight: 500 !important;
}

.main-header {
  border-bottom: none !important;
  background-color: var(--bg-overlay-light) !important;
  width: 100%;
  position: absolute;
  z-index: 3;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 992px) {
  #fullpage {
    background: url(https://file.hstatic.net/200000079633/file/gray-world-map_0ee3da3f8f0d4ff19bf88dd9fbba1d01.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100%;
  }

  .bgimg img:first-child {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
  }

  .bgimg img:nth-child(2) {
    display: none;
  }

  .section-theptrangmenkinh .container {
    zoom: 1 !important;
  }

  .row.theptrangmenkinh .left img {
    cursor: pointer;
    padding-left: 90px;
    padding-right: 30px;
  }

  .section-tieu-chuan .lightSlider.lsGrab > *,
  .section-tieu-chuan .lightSlider.lsGrabbing > * {
    padding: 30px 80px;
  }

  .slide-congtrinhmoi .product-block .product-detail a {
    font-size: 16px;
    white-space: initial;
  }

  .circle-text-desktop img {
    width: 100%;
  }

  .slide-congtrinhmoi {
    display: none;
  }

  .section-1 {
    display: flex;
    padding: 0;
    height: auto;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: center;
  }

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

  .col-phukien-sale .col-md-3 {
    padding-bottom: 30px;
  }
}

@media (min-width: 767px) and (max-width: 991px) {
  .row.theptrangmenkinh .left img {
    padding: 45px 90px;
  }

  .section-intro {
    padding: 60px 0;
  }

  .section-intro h2 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-transform: uppercase;
  }

  .section-intro p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--gray-medium);
  }

  .section-intro .row-intro {
    margin-bottom: 40px;
  }

  .section-intro .circle-img {
    margin-bottom: 30px;
  }

  .section-intro .col-right,
  .section-intro .col-left {
    padding: 20px;
  }

  .section-intro .col-left img {
    max-width: 100%;
    height: auto;
  }

  .section-theptrangmenkinh .col-right,
  .section-theptrangmenkinh .col-left {
    padding: 20px;
  }

  .section-theptrangmenkinh .row.theptrangmenkinh {
    margin-bottom: 30px;
  }

  .section-theptrangmenkinh .row.dichvu {
    margin-top: 30px;
  }
}

@media (max-width: 991px) {
  .blog-slider {
    display: none;
  }

  .bgimg img:first-child {
    display: none;
  }
  
  .bgimg img:nth-child(2) {
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .section-3 {
    height: 100%;
  }

  .row.theptrangmenkinh {
    flex-direction: column;
  }

  .row.theptrangmenkinh .right {
    padding-top: 0;
    padding-bottom: 30px;
  }

  .section-danhmuc {
    padding: 30px 0;
  }

  .row.danh-muc .bot-left,
  .row.danh-muc .top-left {
    padding-top: 15px;
    padding-right: 7px;
  }

  .row.danh-muc .bot-right,
  .row.danh-muc .top-right {
    padding-top: 15px;
    padding-left: 7px;
  }

  .row.blog .col-md-12.bot {
    padding: 0 !important;
  }

  .row.blog .post-body .post--desc {
    font-size: 13px;
  }

  .row.social h2 {
    font-size: 30px;
  }

  .row.blog h2.sub-heading {
    margin-bottom: 10px;
  }

  .row.blog h2.sub-heading a {
    font-size: 18px;
  }

  .row.blog p {
    padding: 0 15px;
  }

  .square-holder {
    padding: 15px;
    min-height: auto;
  }

  .section-7 {
    height: 100%;
  }

  .menu-fullpage,
  ul#menu-fullpage {
    display: none !important;
  }

  #banner-khuyenmai img {
    height: 77vh;
  }

  .section-tieu-chuan .lightSlider.lsGrab > *,
  .section-tieu-chuan .lightSlider.lsGrabbing > * {
    padding: 30px 50px;
  }

  .slide-congtrinhmoi .product-block .product-detail a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  #section7 {
    margin-bottom: 65px;
  }
}

@media (max-width: 767px) {
  .row.theptrangmenkinh .left img {
    padding: 30px 45px 0;
  }

  .slide-congtrinhmoi .product-block .product-detail {
    position: relative;
    border: 1px solid #4d4d4d;
  }

  ul#blog-slider {
    display: flex;
  }

  .section-blog {
    padding: 0 0 30px;
  }

  .affix-mobile {
    opacity: 1 !important;
  }

  .affix-mobile .container-fluid ul.menuList-main > li > a,
  .affix-mobile.container-fluid.header-wrap-icon > [class*="action-"] span.ico_action svg {
    color: var(--text-dark);
    fill: #555;
  }

  .sub-main-header .header-wrap-icon > [class*="action-"] span.ico_action svg,
  .home-main-header .header-wrap-icon > [class*="action-"] span.ico_action svg {
    fill: var(--text-dark);
  }
}

@media (max-width: 540px) {
  .row.blog .post-body h3 {
    font-size: 14px;
    font-weight: 500 !important;
    margin-top: 0;
  }
  
  .row.blog .post-body h3 a {
    font-size: 14px;
  }

  .row.blog .post-body .post--desc {
    font-size: 14px;
  }

  .row.blog p {
    padding: 0 15px;
  }

  .section-banner {
    height: 60vh;
  }

  .section-intro,
  .section-theptrangmenkinh,
  .section-danhmuc {
    padding: 40px 0;
  }

  .section-intro h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
  }

  .section-intro p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--gray-medium);
  }

  .circle-img {
    margin-bottom: 20px;
  }

  .row.blog .bot {
    margin-top: 20px;
  }

  .row.dichvu,
  .row.theptrangmenkinh {
    margin-bottom: 20px;
  }

  .button-trai {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  ul#blog-slider {
    flex-flow: unset;
    overflow-x: auto;
    overflow-y: hidden;
  }

  ul#blog-slider li {
    width: 250px;
    flex: 0 0 60%;
    margin-left: 15px;
  }

  .row.blog .lSAction > a {
    top: 22%;
  }

  .section-blog .container {
    padding: 0;
  }

  .row.social h2 {
    font-size: 22px;
  }
}

@media (max-width: 450px) {
  .row.congtrinhmoi h2 {
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
  }

  ul#slide-contrinhmoi {
    height: 100% !important;
  }

  .slide-congtrinhmoi .product-block .product-detail a {
    font-size: 16px;
  }

  ul#slide-contrinhmoi li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .row.product-congtrinhmoi {
    padding-left: 0px;
    padding-right: 0px;
  }

  .row.product-congtrinhmoi .lSAction > a {
    top: 39% !important;
  }

  .promotion-page .slide-congtrinhmoi .product-block .product-detail {
    line-height: 22px !important;
  }

  .slide-congtrinhmoi .product-block .product-detail {
    line-height: 16px;
    padding: 10px;
  }

  .section-danhmuc {
    padding: 30px 0 15px;
  }

  #banner-khuyenmai img {
    height: 77vh;
  }

  #banner-khuyenmai img.desktop-km {
    display: none;
  }

  #banner-khuyenmai img.mobile-km.table {
    display: block;
    height: 100vh !important;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* ===== HOVER EFFECTS ===== */
.row.blog img:hover,
.row.theptrangmenkinh img:hover,
.col-phukien-sale img:hover,
.square-holder:hover img {
  transform: scale(1.1);
}

.section-congtrinhmoi .product-img img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.row.danh-muc img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* ===== MISC COMPONENTS ===== */
hr.style1 {
  margin: auto auto 15px;
  width: 60px;
  height: 2px;
  background-color: #ccc;
}

.fp-watermark {
  display: none !important;
}

.fp-is-overflow > .fp-overflow {
  overflow-y: unset !important;
}

#controllers {
  z-index: 999;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  flex-direction: column;
  background-color: var(--text-dark);
  opacity: 0.5;
  border-radius: 30px;
  display: none;
}

/* ===== FOOTER COMPONENTS ===== */
.footer-contact ul > li {
  padding: 0 0 5px 25px;
  background-size: 15px 15px !important;
  line-height: 22px;
  font-size: 14px;
}

.footer-contact ul > li.contact-1 {
  background: url(https://theme.hstatic.net/200000079633/1000874187/14/icon_footer_1.png?v=1984) 0 12px no-repeat;
}

.footer-contact ul > li.contact-2 {
  background: url(https://theme.hstatic.net/200000079633/1000874187/14/icon_footer_2.png?v=1984) 0 center no-repeat;
}

.footer-contact ul > li.contact-3 {
  background: url(https://theme.hstatic.net/200000079633/1000874187/14/icon_footer_3.png?v=1984) 0 center no-repeat;
}

.footer-contact ul > li.contact-4 {
  background: url(https://theme.hstatic.net/200000079633/1000874187/14/icon_footer_4.png?v=1984) 0 center no-repeat;
}

.row.footer-icon-social {
  background-color: var(--gray-light);
}

/* ===== UTILITY CLASSES ===== */
.no-margin,
.no-padding {
  padding: 0;
}

.hidden {
  display: none !important;
}

.clamp-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
