/* =================================================================== */
/* THIẾT KẾ NÂNG CẤP BỞI GEMINI (2025) */
/* =================================================================== */

:root{
  --bg: #ffffff;
  --bg-alt: #f8fafc; 
  --surface: #ffffff;
  --text: #0b1323;
  --muted: #536074;
  --gold: #b68900;
  --gold2: #eac54f;
  --brand: #0ea5e9;
  --stroke: #e9ecef;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 16px; 
  --max: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%} html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text);
  background:var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img{max-width:100%;height:auto;display:block} a{text-decoration:none;color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.section{padding:96px 0}
.section.bg-alt { background-color: var(--bg-alt); }

/* Typography & Titles */
.h2{font-size:clamp(24px,3.2vw,36px);margin:0 0 10px;font-weight:800}
.h3{font-size:clamp(20px,2.6vw,28px);margin:0 0 8px;font-weight:800}
.h4{font-size:clamp(18px,2.2vw,22px);margin:0 0 8px;font-weight:800}
.section-title{
  font-size:clamp(28px, 4vw, 42px); font-weight:800;
  text-align:center; margin:0 auto 24px;
  position:relative; padding-bottom:12px;
}
.section-title::after{
  content:''; position:absolute;
  bottom:0; left:50%; transform:translateX(-50%);
  width:80px; height:4px;
  background:linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius:2px;
}
.center{text-align:center} .sub{color:var(--muted); max-width:65ch; margin:0 auto 24px;}
.gold{color:var(--gold)}

/* General Components */
.card{
  background:var(--surface); 
  border: 1px solid var(--stroke);
  border-radius:var(--radius); 
  overflow:hidden; 
  box-shadow:var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover{
  transform: translateY(-8px);
  box-shadow:var(--shadow-lg);
}
.pad{padding:24px}
.bullets{color:var(--muted);padding-left:18px} .bullets li{margin:10px 0}
.note{color:var(--muted);margin-top:10px; font-style:italic;} .small{font-size:.9rem;color:var(--muted)}

/* Header/Nav */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.8);backdrop-filter:blur(16px);border-bottom:1px solid var(--stroke)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.brand img{height:53px;width:auto;object-fit:contain}
.links{display:flex;align-items:center;gap:14px}
.links a{padding:8px 12px;border-radius:8px;color:#1f2937;border:1px solid transparent; font-weight: 600; transition: all .2s ease;}
.links a:hover, .links a.active{background:#f1f3f5; color: var(--gold);}
.hotline{color:#0b1323;background:linear-gradient(135deg,var(--gold2),var(--gold));padding:10px 16px;border-radius:999px;font-weight:800;border:1px solid #d9c06a}
.menu-toggle{display:none;background:transparent;border:0;cursor:pointer}
.menu-toggle span{display:block;width:22px;height:2px;background:#1f2937;margin:5px 0}

/* Drawer mobile */
.drawer{position:fixed;inset:73px 18px auto 18px;z-index:60;display:none;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--stroke);border-radius:12px;padding:12px;box-shadow:var(--shadow-md)}
.drawer a{padding:10px 12px;border-radius:10px}
.drawer .hotline{display:inline-block;text-align:center}
.drawer.is-open { display: flex; } 

/* Hero Section (Trang chủ) */
.hero{position:relative;min-height:95vh;display:grid;place-items:center;overflow:hidden;}
.slider {position: absolute;inset: 0;}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.08);transition:opacity 1.5s ease, transform 8s ease}
.slide.active{opacity:1;transform:scale(1)}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(11, 19, 35, 0) 0%, rgba(11, 19, 35, 0.6) 100%);
  z-index: 1;
}
.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  padding:24px;
  color: #fff;
}
.hero h1{
  font-size:clamp(32px, 5.5vw, 64px);
  line-height:1.1;
  margin:0 0 8px;
  font-weight:800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero .lead{
  color:#e2e8f0;
  max-width:65ch;
  margin:0 auto 24px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  font-size: 1.1rem;
}
.hero .slogan {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 16px;
  text-shadow: none;
  text-align: center;
}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 24px;border-radius:var(--radius);font-weight:800;border:1px solid transparent;transition:all .2s ease; cursor:pointer;}
.btn:hover{transform: translateY(-2px); box-shadow:var(--shadow-md)}
.btn:active{transform:translateY(1px); box-shadow: none;}
.btn.primary{
  color:#0b1323;
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  border-color:#d9c06a;
}
.btn.primary:hover {
  box-shadow: 0 0 20px 0px rgba(234, 197, 79, 0.5);
}
.btn.ghost{
  background: var(--surface);
  color: var(--text);
  border-color: var(--stroke);
}
.btn.ghost:hover {
  background: var(--bg-alt);
}
.hero .btn.ghost, .gateway-section .btn.ghost, .hero-section .btn.ghost {
  background:rgba(255,255,255,0.1);
  color:#fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(5px);
}
.hero .btn.ghost:hover, .gateway-section .btn.ghost:hover, .hero-section .btn.ghost:hover {
   background:rgba(255,255,255,0.2);
}

/* Layouts */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.two-col.layout-overlap {grid-template-columns: 1fr 1.1fr;}
@media (min-width: 980px) {
  .layout-overlap .col:first-child {position: relative;z-index: 2;}
  .layout-overlap .col:first-child .card {transform: perspective(1000px) translateX(-8%) scale(1.05);box-shadow: var(--shadow-lg);}
  .layout-overlap .col:first-child .card:hover {transform: perspective(1000px) translateX(-8%) scale(1.08);}
  .layout-overlap .col:last-child .card {padding-left: 6%;}
}
.specs{color:#344054;padding-left:0;list-style:none}
.specs li{margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--stroke);}
.specs li:last-child{border:0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-4 {display: grid;grid-template-columns: repeat(4, 1fr);gap: 24px;}
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 40px; }
.reasons{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.reason{padding:0; text-align:center; display: flex; flex-direction: column;}
.reason .pad { flex-grow: 1; padding: 24px; display: flex; flex-direction: column; align-items: center;}
.reason h4{font-size:1.2rem; margin:12px 0 8px;}
.reason p{color:var(--muted); font-size: 0.95rem; line-height: 1.6;}
.reason-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;}
.icon-wrap{width:60px; height:60px; margin:0 auto;display:grid; place-items:center;background:linear-gradient(135deg, var(--bg-alt), var(--surface));border-radius:12px; border:1px solid var(--stroke);box-shadow:var(--shadow-sm);color: var(--gold);}
.icon-wrap .icon{width:32px; height:32px; opacity:0.8;}

/* CTA Section */
.gateway-section {background: url('jw-phuquoc.webp') no-repeat center center/cover;padding: 96px 0;position: relative;border-radius: var(--radius);overflow: hidden;margin: 60px auto;}
.gateway-section::before {content: '';position: absolute;inset: 0;background: rgba(11, 19, 35, 0.6);;backdrop-filter: blur(3px);}
.gateway-section .container { position: relative; z-index: 2; }
.gateway-section .h2, .gateway-section .sub { color: #FFFFFF; }
.btn.large {padding: 16px 32px;font-size: 1.1rem;border-radius: 999px;}

/* Footer */
/* styles.css */
/* ---- TÙY CHỈNH FOOTER ---- */

.footer {
  border-top: 1px solid var(--stroke);
  padding: 24px 0;
  /* Bỏ margin-top và background cũ */
  /* margin-top: 32px; */
  /* background: var(--surface); */

  /* Thêm nền màu vàng */
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0b1323; /* Đổi màu chữ mặc định thành màu đen để dễ đọc */
}

/* Đảm bảo các icon mạng xã hội cũng có màu đen */
.footer .social a .icon {
  stroke: #0b1323;
}
.foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.social a:hover { opacity: 0.7; }

/* Modal, Form, Floating Buttons, etc. */
.modal{position:fixed;inset:0;z-index:70;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.45); backdrop-filter:blur(4px); animation: fadeIn .3s ease;}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal.open{display:flex}
.modal-card{width:min(520px,92vw);background:#fff;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-lg); animation: slideIn .3s ease-out;}
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; }}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--stroke);background:var(--bg-alt)}
.close{cursor:pointer;border:0;background:transparent;font-size:1.2rem;color:var(--muted);}
.form{display:grid;gap:14px}
.form input,.form textarea{width:100%;padding:12px;border-radius:10px;border:1px solid #dfe3ea;background:#fcfdff;color:#0b1323;box-shadow:0 1px 0 rgba(16,24,40,.02) inset}
.form input:focus, .form textarea:focus{border-color:var(--gold); outline:0; box-shadow: 0 0 0 3px rgba(182, 137, 0, 0.1);}
.hp{display:none !important}
.aos{transform:translateY(20px);opacity:0;transition:transform .6s ease, opacity .6s ease}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(234,197,79,.7)}70%{box-shadow:0 0 0 14px rgba(234,197,79,0)}100%{box-shadow:0 0 0 0 rgba(234,197,79,0)}}
.blink{animation:pulse 2s infinite}
.float{position:fixed;right:18px;z-index:60;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold2),var(--gold));border:1px solid #d9c06a;box-shadow:0 10px 28px rgba(0,0,0,.15); transition: transform .2s ease;}
.float:hover{transform:scale(1.1)}
.float.zalo{bottom:100px; background: #0068FF; border: 1px solid #0068FF;}
.float.call{bottom:30px}
.mobile-cta{display:none; position:fixed;bottom:0; left:0; right:0; z-index:65;background:#fff; padding:10px;box-shadow: 0 -5px 15px rgba(0,0,0,.08);border-top:1px solid var(--stroke);}
.mobile-cta .cta-btn{flex:1; text-align:center; padding:12px 8px;border-radius:10px; font-weight:800;background:#f1f3f5; color:var(--text);display:flex; align-items:center; justify-content:center; gap:8px;}
.mobile-cta .cta-btn.primary{background:linear-gradient(135deg,var(--gold2),var(--gold)); color:var(--text);}
.news-grid {display: grid;grid-template-columns: repeat(4, 1fr);gap: 24px;}
.news-card {display: flex;flex-direction: column;}
.news-card .pad {flex-grow: 1;display: flex;flex-direction: column;}
.news-image-link {display: block;overflow: hidden;}
.news-card img {width: 100%;height: 200px;object-fit: cover;transition: transform 0.3s ease;}
.news-card:hover img {transform: scale(1.05);}
.news-meta {font-size: 0.85rem;color: var(--muted);font-weight: 600;margin-bottom: 8px;}
.news-card .h4 {font-size: 1.1rem;font-weight: 800;line-height: 1.4;margin: 0 0 10px;}
.news-card .h4 a:hover {color: var(--gold);}
.news-excerpt {font-size: 0.95rem;color: var(--muted);line-height: 1.6;margin: 0;}
.btn-read-more {margin-top: auto;padding-top: 16px;color: var(--gold);font-weight: 600;align-self: flex-start;transition: color .2s ease, transform .2s ease;}
.btn-read-more:hover {color: var(--text);transform: translateX(4px);}
.product-specs {list-style: none;padding-left: 0;margin-top: 16px;color: var(--muted);}
.product-specs li {padding: 8px 0;border-bottom: 1px solid var(--stroke);display: flex;justify-content: space-between;}
.product-specs li:last-child {border-bottom: none;font-weight: 800;color: var(--text);padding-top: 12px;}
.product-specs li strong {color: var(--text);font-weight: 600;margin-right: 8px;}
.lightbox {position: fixed;inset: 0;background: rgba(0,0,0,.8);display: none;justify-content: center;align-items: center;z-index: 10000;}
.lightbox.show { display: flex; }
.lightbox img {max-width: 90%;max-height: 90%;border-radius: 12px;box-shadow: 0 0 20px rgba(0,0,0,.5);}
.lightbox .close {position: absolute;top: 20px;right: 30px;font-size: 40px;color: #fff;cursor: pointer;}
.ad-popup {position: fixed;inset: 0;background: rgba(0,0,0,0.6);display: none;align-items: center;justify-content: center;z-index: 999;}
.ad-popup.show { display: flex; }
.ad-popup-content {background: #fff;width: min(800px, 90%);border-radius: 12px;display: grid;grid-template-columns: 1fr 1fr;overflow: hidden;box-shadow: 0 10px 30px rgba(0,0,0,.25);animation: popIn .3s ease;}
@keyframes popIn {from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; }}
.ad-popup-left img {width: 100%;height: 100%;object-fit: cover;}
.ad-popup-right {padding: 24px;display: flex;flex-direction: column;justify-content: center;}
.ad-popup-right h3 { margin-top: 0; }
.ad-popup-right p { color: #555; margin-bottom: 16px; }
.ad-popup-close {position: absolute;top: 16px;right: 16px;background: transparent;border: none;font-size: 28px;cursor: pointer;color: #333;}
@keyframes glow {0% { box-shadow: 0 0 5px rgba(234,197,79,.6); } 50% { box-shadow: 0 0 20px rgba(234,197,79,1); } 100% { box-shadow: 0 0 5px rgba(234,197,79,.6); }}
.ad-popup-content { animation: popIn .3s ease, glow 2s infinite alternate; }
#ad-popup .btn.primary {animation: pulse 1.5s infinite;}

/* Preloader */
#preloader {position: fixed;inset: 0;z-index: 10001;background: #ffffff;overflow: hidden;transition: opacity 0.8s ease 1.5s, visibility 0.8s ease 1.5s;}
#preloader.hidden {opacity: 0;visibility: hidden;}
#preloader .curtain {position: absolute;top: 0;width: 50.1%;height: 100%;background: var(--gold);transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1);}
#preloader .curtain.left { left: 0; }
#preloader .curtain.right { right: 0; }
#preloader .preloader-content {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);display: flex;flex-direction: column;align-items: center;gap: 16px;}
#preloader img {max-width: 250px;opacity: 0;transform: scale(0.9);transition: transform 0.8s ease 0.4s, opacity 0.8s ease 0.4s;}
#preloader .slogan {margin: 0;font-size: 1rem;font-weight: 600;color: var(--muted);letter-spacing: 0.5px;opacity: 0;transform: translateY(20px);transition: transform 0.8s ease 0.8s, opacity 0.8s ease 0.8s;}
#preloader.loaded .curtain.left { transform: translateX(-100%); }
#preloader.loaded .curtain.right { transform: translateX(100%); }
#preloader.loaded img {transform: scale(1);opacity: 1;}
#preloader.loaded .slogan {transform: translateY(0);opacity: 1;}
@keyframes subtle-glow {0%, 100% {filter: drop-shadow(0 0 5px rgba(182, 137, 0, 0.2));} 50% {filter: drop-shadow(0 0 15px rgba(182, 137, 0, 0.5));}}
#preloader.loaded .preloader-content {animation: subtle-glow 2.5s infinite ease-in-out;animation-delay: 1.2s;}

/* =================================================================== */
/* BỔ SUNG CSS CHO TRANG CHI TIẾT (TABS, TIMELINE, FAQ, VIDEO HERO) */
/* =================================================================== */

/* Hero Video Banner */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-section .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 35, 0.6);
  z-index: 2;
}
.hero-section .hero-content {
    position: relative;
    z-index: 3;
}
.hero-section .section-title::after { display: none; }

.sound-button {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(5px);
  transition: background 0.2s ease;
}
.sound-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tabs */
.tabs .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--stroke);
  padding: 8px 16px 0;
}
.tabs .tab {
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  bottom: -1px;
}
.tabs .tab.active {
  background: var(--surface);
  color: var(--gold);
  border-color: var(--stroke);
  border-bottom-color: var(--surface);
}
.tabs .tab-panels {
  padding: 24px;
}
.tabs .panel {
  display: none;
  animation: fade 0.4s ease;
}
.tabs .panel.show {
  display: block;
}
.tabs .panel-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
}
.tabs .panel-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; }}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.tl { padding: 24px; text-align: center; }
.tl b {
  display: block;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 800;
}
.uti h4 { padding: 16px; font-size: 16px; text-align: center; }

/* FAQ */
.faq {
  max-width: 800px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}
.faq p {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}


/* RESPONSIVE DESIGN */
@media (max-width: 980px){
  .links a:not(.hotline){display:none}
  .menu-toggle{display:inline-block}
  .links{gap:8px}
  .two-col, .two-col.layout-overlap {grid-template-columns:1fr}
  .grid-3, .news-grid, .timeline {grid-template-columns:1fr 1fr}
  .grid-4, .grid-5 {grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
  .tabs .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px){ 
  .mobile-cta{display:flex; gap:10px;} 
  .float{display:none;} 
  body{padding-bottom: 70px;}
  .ad-popup-content { grid-template-columns: 1fr; }
  .hero-section { height: 70vh; }
  .sound-button { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}
@media (max-width: 640px){
  .grid-3, .grid-4, .reasons, .news-grid, .timeline {grid-template-columns:1fr}
}

/* cohoidautu */
/* styles.css の末尾に追加 */

#cta-bottom {
  background: url('TheHillside.webp') no-repeat center center/cover;
  padding: 80px 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 60px auto;
  border: 1px solid var(--gold);
}
#cta-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 19, 35, 0.85) 0%, rgba(11, 19, 35, 0.7) 100%);
  backdrop-filter: blur(4px);
}
#cta-bottom .aos {
  position: relative;
  z-index: 2;
}
#cta-bottom .h2, #cta-bottom .sub {
  color: #FFFFFF;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
#cta-bottom .btn.primary.large {
  transform: scale(1.05);
  animation: pulse 2s infinite; /* アニメーションを再利用 */
}
/* styles.css */
/* XÓA HẾT CSS SLIDER CŨ VÀ THAY BẰNG ĐOẠN NÀY */

.gallery-wrapper-new {
  position: relative;
}

/* ---- KHU VỰC ẢNH CHÍNH ---- */
.main-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Giữ tỷ lệ khung hình 16:9, có thể thay đổi */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #f0f2f5; /* Màu nền cho khung ảnh */
}

.main-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  z-index: 1;
}

.main-gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.main-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* HIỂN THỊ ĐẦY ĐỦ ẢNH, KHÔNG CẮT XÉN */
  cursor: pointer;
}

/* ---- NÚT ĐIỀU KHIỂN ---- */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gallery-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.gallery-btn.prev { left: 16px; }
.gallery-btn.next { right: 16px; }

/* ---- KHU VỰC ẢNH THU NHỎ (THUMBNAIL) ---- */
.thumbnail-gallery {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 0;
}

.thumbnail-item {
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.thumbnail-item:hover {
  opacity: 1;
}

.thumbnail-item.active {
  border-color: var(--gold);
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ảnh nhỏ có thể cover để trông đẹp hơn */
}
/* styles.css */
/* ---- TÙY CHỈNH SECTION BÁO GIÁ (ĐÃ SỬA LỖI) ---- */

#bao-gia {
  position: relative; /* Bắt buộc để lớp phủ hoạt động */
  padding: 80px 0;
  overflow: hidden;
  /* Thêm màu nền vàng làm dự phòng nếu ảnh bị lỗi không tải được */
  background-color: var(--gold); 
}

/* Lớp phủ MỚI: Gộp cả ảnh nền và màu vàng vào chung */
#bao-gia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Nằm dưới nội dung nhưng trên nền của #bao-gia */

  /* Kỹ thuật xếp lớp: Lớp màu vàng nằm trên lớp ảnh nền */
  background: 
    /* 1. Lớp phủ màu vàng (nằm trên cùng) */
    linear-gradient(135deg, rgba(234, 197, 79, 0.7), rgba(182, 137, 0, 0.75)),
    
    /* 2. Ảnh nền (nằm dưới) - ĐÃ SỬA ĐƯỜNG DẪN */
    url('../assets/khudothinhatrang.jpg') no-repeat center center/cover;
}

/* Đảm bảo nội dung (container) nằm trên lớp phủ */
#bao-gia .container {
  position: relative;
  z-index: 2;
}

/* Đổi màu chữ của tiêu đề và mô tả để dễ đọc trên nền vàng */
#bao-gia .card:first-child .h2,
#bao-gia .card:first-child p {
  color: var(--text); /* Sử dụng màu chữ chính của website */
  text-shadow: none;   /* Bỏ đổ bóng không cần thiết */
} 
/* =================================================================== */
/* MODERN MASONRY GALLERY (2025 Style) */
/* =================================================================== */

.masonry-gallery {
    display: grid;
    /* 最小300pxの列を自動で配置し、スペースがあれば均等に広げる */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 200px; /* 行の基本の高さを定義 */
    grid-auto-flow: dense; /* 空いたスペースを詰める */
    gap: 16px;
    margin-top: 40px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: box-shadow 0.4s ease;
}

.masonry-item:hover {
    box-shadow: var(--shadow-lg);
}

/* 画像の高さを調整してメーソンリー効果を作成 */
.masonry-item:nth-child(1) { grid-row: span 2; }
.masonry-item:nth-child(3) { grid-row: span 3; }
.masonry-item:nth-child(4) { grid-row: span 2; }
.masonry-item:nth-child(5) { grid-row: span 2; }
.masonry-item:nth-child(7) { grid-row: span 3; }


.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item:hover img {
    transform: scale(1.05); /* ホバー時に画像を少し拡大 */
}

/* ホバー時に表示されるオーバーレイ */
.item-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 19, 35, 0.8) 0%, rgba(11, 19, 35, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
    font-weight: 600;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

/* スマートフォンでの表示調整 */
@media (max-width: 768px) {
    .masonry-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 150px;
    }
}

@media (max-width: 600px) {
    /* 1列表示に切り替え、メーソンリーの高さをリセット */
    .masonry-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .masonry-item:nth-child(n) {
        grid-row: auto;
        aspect-ratio: 4 / 3; /* 高さを画像の比率に合わせる */
    }
}