/* ==========================================================================
   An Thy Home — giao diện trên nền Flatsome.
   Lớp CSS gắn ở ô "Class" của từng element trong UX Builder; xoá class là mất kiểu.
   Breakpoint: lưới cột + khoảng cách section theo Flatsome (850px / 550px).
   ========================================================================== */

:root {
  --ath-p50: #f2fcf5;
  --ath-p100: #e1f8e8;
  --ath-p200: #c3eed2;
  --ath-p300: #94e0b3;
  --ath-p400: #5ccb8f;
  --ath-p500: #34b072;
  --ath-p600: #238f59;
  --ath-p700: #1e724a;
  --ath-p800: #1c5b3e;
  --ath-p900: #174b34;
  --ath-accent: #d4b982;
  --ath-accent-light: #eadbc0;
  --ath-s50: #fafaf9;
  --ath-s100: #f5f5f4;
  --ath-s200: #e7e5e4;
  --ath-s400: #a8a29e;
  --ath-s500: #78716c;
  --ath-s600: #57534e;
  --ath-s700: #44403c;
  --ath-s800: #292524;
  --ath-s900: #1c1917;
  --ath-nav: #1a2d4a;
  --ath-nav-hover: #5ccb75;
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/material-symbols-subset.woff2) format("woff2");
}

/* Icon = tên icon Material Symbols gõ thẳng trong ô văn bản (vd. "shield").
   Font chỉ chứa 12 icon đang dùng — thêm icon mới phải tạo lại file font. */
.ath-ic {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.ath-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.header-main .nav > li > a {
  font-size: 18px;
  letter-spacing: 0;
}

/* Mục neo (#home, #tien_ich…) luôn bị WordPress coi là "trang hiện tại" khi ở trang chủ. */
/* #masthead: màu menu của Flatsome in inline SAU file này nên phải thắng bằng độ ưu tiên. */
#masthead .nav > li.menu-item-type-custom.active > a {
  color: var(--ath-nav);
}

#masthead .nav > li.menu-item-type-custom > a:hover {
  color: var(--ath-nav-hover);
}

.header-main .header-nav-main.nav-left {
  justify-content: center;
}

.header-block {
  width: auto;
}

.ath-zalo {
  width: 83px !important;
}

.header-wrapper.stuck {
  box-shadow: 3px 3px 6px rgba(92, 203, 117, 0.4);
}

@media (min-width: 850px) {
  /* Logo và nút Zalo cùng bề rộng để menu nằm đúng giữa trang. */
  .header-main .flex-right {
    width: 195px;
    margin-left: 30px;
  }

  .header-main .flex-right .nav {
    justify-content: center;
  }
}

@media (max-width: 849px) {
  .ath-zalo {
    width: 52px !important;
  }

  #logo img {
    max-height: 34px;
  }

  .header-main .nav > li > a > i.icon-menu {
    font-size: 22px;
    color: var(--ath-s500);
  }
}

/* Menu trượt trên mobile */
.off-canvas .nav-sidebar.nav-vertical > li > a {
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ath-nav);
}

.off-canvas .nav-sidebar.nav-vertical > li > a:hover,
.off-canvas .nav-sidebar.nav-vertical > li.menu-item-type-post_type.active > a {
  color: var(--ath-p600);
}

/* ---------- Hero ---------- */

.ath-hero {
  background-color: var(--ath-p50);
}

/* ---------- Tiêu đề section ---------- */

.ath-head {
  text-align: center;
  padding-bottom: 50px;
}

.ath-head .ath-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ath-p800);
}

.ath-head h1,
.ath-head h2 {
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--ath-s900);
}

.ath-head .ath-hl {
  color: var(--ath-p600);
}

.ath-head h1::after,
.ath-head h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 99px;
  background: linear-gradient(to right, var(--ath-p400), var(--ath-p600));
}

.ath-head h2 + p {
  max-width: 672px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ath-s500);
}

.ath-head--plain h2::after {
  display: none;
}

.ath-head--plain h2 {
  margin-bottom: 16px;
}

.dark .ath-head h2 {
  color: #fff;
}

.dark .ath-head h2 + p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 849px) {
  .ath-head h1,
  .ath-head h2 {
    font-size: 36px;
    line-height: 1.12;
  }
}

@media (max-width: 549px) {
  .ath-head {
    padding-bottom: 36px;
  }

  .ath-head h1,
  .ath-head h2 {
    font-size: 32px;
  }

  .ath-head h2 + p {
    font-size: 17px;
  }
}

/* ---------- Giới thiệu: ảnh + nội dung so le ---------- */

.ath-feat + .ath-feat {
  margin-top: 66px;
}

.ath-feat > .col {
  padding-bottom: 0;
}

.ath-media > .col-inner {
  position: relative;
}

.ath-media > .col-inner::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 2rem;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.ath-media:hover > .col-inner::before {
  transform: rotate(0);
}

.ath-media--green > .col-inner::before {
  background: var(--ath-p100);
}

.ath-media--sand > .col-inner::before {
  background: rgba(234, 219, 192, 0.5);
  transform: rotate(2deg);
}

.ath-media--stone > .col-inner::before {
  background: var(--ath-s200);
  transform: rotate(-1deg);
}

.ath-media .img {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.ath-media .img-inner {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.ath-feat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ath-feat__head .ath-ic {
  flex: none;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
}

.ath-feat__text--green .ath-ic {
  background: var(--ath-p100);
  color: var(--ath-p800);
}

.ath-feat__text--sand .ath-ic {
  background: rgba(234, 219, 192, 0.5);
  color: #78350f;
}

.ath-feat__text--stone .ath-ic {
  background: var(--ath-s200);
  color: var(--ath-s800);
}

.ath-feat__head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
  color: var(--ath-s800);
}

.ath-feat__text > .col-inner > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.625;
  color: var(--ath-s600);
}

/* 550px: từ mốc này Flatsome xếp 2 cột cạnh nhau (dưới 550px ảnh luôn nằm trên chữ). */
@media (min-width: 550px) {
  .ath-feat--rev {
    flex-direction: row-reverse;
  }

  .ath-feat--rev .ath-feat__text {
    text-align: right;
  }

  .ath-feat--rev .ath-feat__head {
    flex-direction: row-reverse;
  }
}

@media (max-width: 549px) {
  .ath-feat__text {
    margin-top: 48px;
  }
}

@media (max-width: 849px) {
  .ath-feat + .ath-feat {
    margin-top: 56px;
  }

  .ath-media > .col-inner::before {
    inset: -10px;
    border-radius: 1.5rem;
  }

  .ath-feat__text > .col-inner > p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ---------- Tiện ích: thẻ dịch vụ ---------- */

.ath-cards > .col {
  padding-bottom: 40px;
}

.ath-card {
  position: relative;
  height: 100%;
  padding: 8px;
  border-radius: 1rem;
  background: #fff;
  transition: transform 0.3s ease;
}

.ath-card:hover {
  transform: translateY(-8px);
}

.ath-cards .col-inner {
  height: 100%;
}

.ath-card .box-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.ath-card .box-image img {
  transition: transform 0.7s ease;
}

/* position: static để huy hiệu icon neo theo cả thẻ (đè lên ảnh), không theo khối chữ. */
.ath-card .box-text {
  position: static;
  padding: 24px 16px 16px;
}

.ath-card .ath-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--ath-s100);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 20px;
  color: var(--ath-p700);
}

.ath-card h4 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ath-s800);
  transition: color 0.2s ease;
}

.ath-card:hover h4 {
  color: var(--ath-p700);
}

.ath-card h4 + p {
  margin: 0;
  font-size: 16px;
  line-height: 1.625;
  color: var(--ath-s500);
}

/* ---------- Giải đáp: accordion ---------- */

.ath-faq .accordion-item {
  margin-bottom: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ath-p700);
  overflow: hidden;
}

.ath-faq .accordion-title {
  position: relative;
  display: block;
  padding: 15px 52px 15px 15px;
  border: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  opacity: 1;
  transition: background-color 0.2s ease;
}

.ath-faq .accordion-title:hover,
.ath-faq .accordion-title.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Thay mũi tên bên trái của Flatsome bằng dấu +/− bên phải như bản gốc. */
.ath-faq .accordion-title .toggle {
  display: none;
}

.ath-faq .accordion-title::before,
.ath-faq .accordion-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 12px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ath-faq .accordion-title::after {
  transform: rotate(90deg);
}

.ath-faq .accordion-title.active::after {
  transform: rotate(0);
  opacity: 0;
}

.ath-faq .accordion-inner {
  padding: 5px 15px 15px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.ath-faq .accordion-inner p {
  margin-bottom: 10px;
}

.ath-faq .accordion-inner > :last-child {
  margin-bottom: 0;
}

.ath-faq .accordion-inner ul,
.ath-faq .accordion-inner ol {
  margin: 0 0 10px 1.2em;
}

.ath-faq .accordion-inner li {
  margin: 0 0 6px 0.4em;
}

.ath-faq .accordion-inner a {
  color: var(--ath-p300);
  text-decoration: underline;
}

@media (max-width: 549px) {
  .ath-faq .accordion-title {
    font-size: 17px;
    padding-right: 46px;
  }

  .ath-faq .accordion-title::before,
  .ath-faq .accordion-title::after {
    right: 16px;
  }
}

/* ---------- Album ---------- */

.ath-album .box-image {
  border-radius: 1rem;
  overflow: hidden;
}

.ath-album.row-small > .col {
  padding: 0 8px 16px;
}

/* Album chỉ có ảnh như bản gốc; chú thích ảnh (nếu có) vẫn hiện trong lightbox. */
.ath-album .box-text {
  display: none;
}

/* ---------- Footer ---------- */

.ath-footer .row > .col {
  padding-bottom: 0;
}

.ath-footer__logo {
  width: 250px !important;
  margin-bottom: 20px;
}

.ath-footer__lead {
  max-width: 330px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--ath-s400);
}

.ath-hotline {
  max-width: 350px;
  margin-bottom: 16px;
}

.ath-hotline a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--ath-s700);
  border-radius: 12px;
  background: linear-gradient(to right, var(--ath-s800), rgba(41, 37, 36, 0.5));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #fff;
  transition: border-color 0.2s ease;
}

.ath-hotline a:hover {
  border-color: var(--ath-s600);
  color: #fff;
}

.ath-hotline .ath-ic {
  padding: 8px;
  border-radius: 50%;
  background: rgba(23, 75, 52, 0.5);
  color: var(--ath-p500);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ath-hotline a:hover .ath-ic {
  background: var(--ath-p600);
  color: #fff;
}

.ath-hotline__txt {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ath-hotline__txt small {
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ath-s400);
}

.ath-hotline__txt strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

.ath-fb {
  margin-bottom: 0;
}

.ath-fb a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--ath-s400);
}

.ath-fb a:hover {
  color: #fff;
}

.ath-footer__nav .ux-menu-link__link {
  min-height: 0;
  padding: 11px 0;
  border: 0;
  font-size: 16px;
  color: #fff;
}

.ath-footer__nav .ux-menu-link__link:hover {
  color: var(--ath-nav-hover);
}

.ath-footer__addr h5 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.ath-addr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--ath-s400);
}

.ath-addr .ath-ic {
  flex: none;
  margin-top: 1px;
  color: var(--ath-p500);
}

.ath-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
}

.absolute-footer.dark {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--ath-s400);
}

.absolute-footer .copyright-footer {
  color: var(--ath-s400);
}

@media (max-width: 849px) {
  .ath-footer__nav,
  .ath-footer__addr {
    margin-top: 32px;
  }

  .ath-footer__nav .ux-menu {
    flex-flow: row wrap;
    gap: 0 28px;
  }

  .ath-footer__nav .ux-menu-link__link {
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
  }
}

/* ---------- Nút liên hệ nổi ---------- */

.ath-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ath-float .ath-float__btn {
  width: 45px !important;
  margin: 0;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.ath-float .ath-float__btn:hover {
  transform: scale(1.08);
}

.ath-float .ath-float__btn img {
  display: block;
  border-radius: 50%;
}

@media (max-width: 549px) {
  .ath-float {
    right: 12px;
    bottom: 64px;
  }

  .ath-float .ath-float__btn {
    width: 40px !important;
  }
}

/* ---------- Blog ---------- */

.ath-bloghead .ath-head {
  padding-bottom: 0;
}

.ath-bloghead .ath-head h1 {
  margin-bottom: 0;
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ath-nav);
}

.blog-archive .post-item .box-image {
  border-radius: 0.75rem;
  overflow: hidden;
}

.blog-archive .post-item .box-text {
  padding: 16px 4px 8px;
}

.blog-archive .post-item .post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ath-nav);
}

.blog-archive .post-item:hover .post-title {
  color: var(--ath-p600);
}

.blog-archive .post-item .from_the_blog_excerpt {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ath-s500);
}

.blog-archive .post-item .is-divider {
  display: none;
}

.blog-single .entry-header .entry-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ath-s900);
}

.blog-single .entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ath-s700);
}

.blog-single .entry-content h2 {
  margin-top: 1.4em;
  font-size: 24px;
  font-weight: 600;
}

.blog-single .entry-content img {
  border-radius: 0.75rem;
}

@media (max-width: 549px) {
  .blog-single .entry-header .entry-title {
    font-size: 26px;
  }
}
