/* Membership Popup Styles */
.membership-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* For mobile viewport */
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  background-color: rgb(31 29 29 / 50%);
z-index: 9999;
}
.membership-popup .popup-slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.membership-popup .popup-slider .slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.membership-popup .popup-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}
.membership-popup .popup-slider .slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.membership-popup.show {
  display: flex;
  opacity: 1;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  width: 697px;
  height: 697px;
  /* width: 90vw;
  max-width: 610px;
  height: 90vw; */
  max-height: 90vh;
  aspect-ratio: 1;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-close:hover {
  background: white;
  transform: scale(1.1);
  color: #8B1538;
}
@media (max-width: 768px) {
  .membership-popup .popup-content {
    width: 90vw;
    height: auto;
    max-width: 500px;
    aspect-ratio: 1;
  }
  .membership-popup .popup-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


.salon{
  position: relative;
  padding: 0px 20px 20px;
   background-image: url('/assets/images/footer-bg.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
}

.salon__wrap{
  max-width: var(--page-max, 1200px);
  margin: 0 auto;
}

/* Heading with lines */
.salon__heading{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 46px;
}

.salon__title{
  margin: 0;
  font-family: var(--font-title, "Lato", Helvetica, Arial, sans-serif);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #A68230;
  white-space: nowrap;
}

.salon__line{
  height: 1px;
  width: min(280px, 22vw);
  background: rgba(166,130,48,.55);
}

/* Grid images */
.salon__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Square item */
.salon__item{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4; 
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border-radius: 2px;
  /* box-shadow: 0 18px 45px rgba(0,0,0,.35); */
  text-decoration: none;
  transform: translateZ(0);
}

.salon__item img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .45s ease, filter .45s ease;
  /* filter: brightness(.88); */
}

/* Overlay tối nhẹ */
/* .salon__item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  opacity: 1;
  transition: opacity .35s ease;
} */

/* icon + (tùy chọn) */
.salon__item::before{
  content: "+";
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
  font-family: var(--font-title, "Lato", Helvetica, Arial, sans-serif);
  font-size: 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease;
}

/* Hover */
.salon__item:hover img{
  transform: scale(1.08);
  filter: brightness(1);
}
.salon__item:hover::after{ opacity: 0; }
.salon__item:hover::before{
  opacity: 1;
  transform: translateY(0);
}

/* ===== iPad ===== */
@media (max-width: 1024px){
  .salon{ padding: 64px 18px; }
  .salon__grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .salon__title{ font-size: 26px; }
  .salon__heading{ margin-bottom: 34px; gap: 18px; }
  .salon__line{ width: min(220px, 20vw); }
}

/* ===== Mobile ===== */
@media (max-width: 768px){
  .salon{ padding: 52px 16px; }
  .salon__grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .salon__title{
    font-size: 20px;
    letter-spacing: .22em;
  }

  .salon__line{ width: 18vw; }
}

@media (max-width: 420px){
  .salon__grid{ grid-template-columns: 1fr; }
  .salon__line{ display: none; }
}


.booking-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
    background-image: url('/assets/images/footer-bg.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  margin-top: 100px;
}

.iframe-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 90vh; /* Chiều cao bằng 90% chiều cao màn hình */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .booking-section {
    padding: 20px 10px;
  }

  .iframe-wrapper {
    height: 80vh; /* thấp hơn chút cho mobile */
    border-radius: 6px;
  }
}

/* ====== SERVICES PAGE LIST ====== */
.svc{
  background:#ffffff;
  /* background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .06), transparent 45%), linear-gradient(135deg, #0b0b0b, #1a1a1a); */
  padding: 20px;
}

.svc-group{
  max-width: var(--page-max);
  margin: 0 auto 15px;
}

.svc-title{
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 42px);
  text-align: center;
  margin: 0 0 22px;
  color: #000;
}
.svc-sub-title{
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  text-align: left;
  color: #000;
}
/* 2-column grid */
.svc-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 70px;
}
.svc-col{ display: grid; gap: 22px;align-content: start; }

/* Item with dotted leader */
.svc-item .row{
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.svc-item .title{
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  /* white-space: nowrap; */
  font-weight: 500;
}
.svc-note{
  text-align:center;
  font-size:15px;
  color:#6f5b4f;
  margin-top:-10px;
  margin-bottom:40px;
  letter-spacing:.5px;
}
.svc-item .leader{
  flex: 1 1 auto;
  height: 0;
  border-bottom: 2px dotted #2b2b2b;
  transform: translateY(-4px);
}
.svc-item .price{
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.svc-item .desc{
  margin: 8px 0 0;
  line-height: 1.75;
  font-size: 16px;

}

/* subtle hover lift */
.svc-item{ transition: transform .18s ease; }
.svc-item:hover{ transform: translateY(-3px); }

/* spacing between groups */
.svc-group + .svc-group{ margin-top: 36px; }

/* Responsive */
@media (max-width: 980px){
  .svc-grid{ grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px){
  .svc{ padding: 56px 16px 76px; }
}

/* =========================
   BLOG LIST PAGE
========================= */
.blog-list-page{
  padding: 72px 0 92px;
  background: #fff;
}

.blog-list-head{
  text-align: center;
  margin-bottom: 44px;
}

.blog-list-title{
  margin: 0 0 10px;
  font-size: 42px;
  font-weight: 500;
  font-family: var(--font-title);
}

.blog-list-sub{
  margin: 0;
  font-size: 16px;
  color: rgba(0,0,0,.55);
  line-height: 1.8;
}

/* Grid 3 cột */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

/* Card */
.blog-card{
  display:flex;
  flex-direction: column;
}

.blog-thumb{
  display:block;
  overflow:hidden;
  border-radius: 0; /* giống mẫu: ảnh vuông */
  box-shadow: 0 16px 44px rgba(0,0,0,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-thumb img{
  width:100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .45s ease;
  will-change: transform;
}

.blog-card:hover .blog-thumb{
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(0,0,0,.14);
}
.blog-card:hover .blog-thumb img{
  transform: scale(1.08);
}

.blog-body{
  padding-top: 18px;
}

.blog-title{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.blog-title a{
  color: rgba(0,0,0,.85);
  text-decoration: none;
  transition: color .2s ease;
}
.blog-title a:hover{
  color: rgba(0,0,0,1);
}

.blog-excerpt{
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(0,0,0,.55);
}

.blog-meta{
  font-size: 14px;
  line-height: 1.6;
  display:flex;
  gap: 6px;
  align-items:center;
  flex-wrap: wrap;
}
.blog-date{
  color: rgba(231,76,60,.95);
}
.blog-dot{
  color: rgba(0,0,0,.35);
}
.blog-comment{
  color: rgba(0,0,0,.45);
  text-decoration:none;
}
.blog-comment:hover{
  color: rgba(0,0,0,.75);
}

/* Pagination */
.blog-pagination{
  margin-top: 54px;
  display:flex;
  justify-content:center;
  gap: 10px;
  align-items:center;
}

.pg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.75);
  text-decoration:none;
  transition: transform .2s ease, background .2s ease;
}
.pg-btn:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.07);
}
.pg-btn.is-active{
  background: rgba(231,76,60,.95);
  color:#fff;
}
.pg-ellipsis{
  color: rgba(0,0,0,.45);
}

/* =========================
   Responsive
========================= */
@media (max-width: 1023px){
  .blog-list-page{ padding: 60px 0 76px; }
  .blog-list-title{ font-size: 34px; }

  .blog-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .blog-thumb img{ height: 320px; }
}

@media (max-width: 767px){
  .blog-list-page{ padding: 52px 0 64px; }
  .blog-list-title{ font-size: 28px; }

  .blog-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-thumb img{ height: 260px; }
}

/* =========================
   BLOG DETAIL - layout with left order
========================= */
.post{
  padding: 72px 0 92px;
  background: #fff;
}

.post-layout{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

/* LEFT: blogs order */
.post-left{
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
  padding: 18px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
}

.post-left__title{
  margin: 6px 0 14px;
  font-size: 16px;
  letter-spacing: .6px;
  color: rgba(0,0,0,.80);
}


.post-order{
  list-style: none;
  padding: 0;
  counter-reset: postorder;
}

.post-order li{
  counter-increment: postorder;
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
}

.post-order li::before{
  content: counter(postorder) ".";
  position: absolute;
  left: 0;
  top: 0;              /* luôn nằm cùng dòng đầu */
  font-weight: 700;
  color: rgba(0,0,0,.75);
}
.post-order a{
  color: rgba(0,0,0,.62);
  text-decoration: none;
  line-height: 1.6;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}
.post-order a:hover{
  color: rgba(0,0,0,.85);
  transform: translateX(2px);
}

/* RIGHT: content width */
.post-article{
  width: 100%;
}

/* Featured image */
.post-cover{
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
}
.post-cover img{
  width: 100%;
  /* height: 360px; */
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
}
.post-cover:hover img{
  transform: scale(1.06);
}

/* Keep your existing post typography (from before) */
.post-head{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  margin-bottom: 22px;
}

.post-date{
  min-width: 64px;
  text-align:center;
  color: rgba(0,0,0,.35);
}
.post-day{ display:block; font-size: 34px; line-height: 1; }
.post-mon{ display:block; font-size: 18px; margin-top: 4px; }

.post-title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(0,0,0,.85);
  font-family: var(--font-title);
}

.post-meta{
  font-size: 14px;
  color: rgba(0,0,0,.35);
  line-height: 1.7;
}

.post-content{
  font-size: 16px;
  color: rgba(0,0,0,.58);
  line-height: 1.95;
}
.post-content p{ margin: 0 0 16px; }

.post-content h2{
  margin: 30px 0 12px;
  font-size: 34px;
  line-height: 1.25;
  color: rgba(0,0,0,.85);
  font-weight: 500;
  font-family: Georgia, "Times New Roman", serif;
}
.post-content h3{
  margin: 18px 0 6px;
  font-size: 18px;
  color: rgba(0,0,0,.80);
  font-weight: 700;
}
.post-content ul{
  margin: 10px 0 18px 18px;
  padding: 0;
}
.post-content ul li{ margin: 6px 0; }

.post-ol{
  margin: 10px 0 18px 18px;
  padding: 0;
}
.post-ol > li{ margin: 10px 0 14px; }

/* ===== POST CTA FIX ===== */

.post-cta{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.post-cta__rows{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-cta__row{
  display: flex;              
  align-items: center;        
  gap: 10px;                  
  flex-wrap: nowrap;          
}

.post-cta__icon{
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;             
}

.post-cta__label{
  font-size: 16px;            
  line-height: 1.6;
}

.post-cta__label a{
  color: inherit;
  text-decoration: none;
}

.post-cta__label a:hover{
  text-decoration: underline;
}

.post-cta__note{
  margin-top: 20px;
  font-size: 16px;
  opacity: .75;
}

/* =========================
   Responsive (3 devices)
========================= */
@media (max-width: 1023px){
  .post{ padding: 60px 0 76px; }

  .post-layout{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .post-left{
    position: relative;
    top: auto;
    order: -1;
  }

  .post-title{ font-size: 30px; }
  .post-content h2{ font-size: 30px; }
}

@media (max-width: 767px){
  .post{ padding: 52px 0 64px; }


  .post-head{
    flex-direction: column;
    gap: 10px;
  }

  .post-date{
    display:flex;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
  }
  .post-day{ font-size: 28px; }
  .post-mon{ font-size: 16px; margin:0; }

  .post-title{ font-size: 26px; }
  .post-content h2{ font-size: 26px; }
}

/* floating-icons */
.floating-icons {
  position: fixed;
  top: 30%;
  right: 0px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating-icons a {
  background: #ea6b4a;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.floating-icons a:hover {
  background: #e29582;
}

.floating-icons img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}

.floating-icons a:hover img {
  transform: scale(1.1);
}