/* -----------------------------------------
   RESET + BASE STYLES
----------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

/* Container chung */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* -----------------------------------------
   HEADER & NAVIGATION
----------------------------------------- */
.site-header {
  background: #d9fcfb;
  border-bottom: 1px solid #e4e7eb;
  position: sticky;
  top: 0;
  z-index: 1000; 
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0066cc;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: 0.2s;
}

.main-nav a:hover {
  color: #0066cc;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: #e8eef5;
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn:hover {
  background: #d4e2f6;
}

.lang-btn.active {
  background: #0066cc;
  color: #fff;
  font-weight: 600;
}

.lang-btn.active:hover {
  background: #0053a3;
}


/* -----------------------------------------
   HERO SECTION
----------------------------------------- */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* background động */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  aspect-ratio: 5/1; 
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 8s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(233, 242, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}


/* nội dung hero ở trên cùng */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #003e80;
}

.hero p {
  max-width: 600px;
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
}


.btn {
  display: inline-block;
  background: #0066cc;
  color: white !important;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.btn:hover {
  background: #004c99;
}

/* -----------------------------------------
   SERVICES SECTION
----------------------------------------- */
.services {
  padding: 3.5rem 0;
}

.services h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  color: #003e80;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e8ec;
  transition: 0.2s;
  display: flex;          
  flex-direction: column;
}

.service-card,
.service-card * {
  text-decoration: none !important;
}


.service-card:hover {
  transform: translateY(-6px);
  border-color: #0066cc;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  z-index: 10;         
}

.service-card .service-img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 1;      
  border-radius: 8px;
  margin-bottom: 0.9rem;
  display: block;
}

.service-card h3 {
  color: #0066cc;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0;
}

.service-card:focus,
.service-card:active,
.service-card:focus-visible {
  text-decoration: none !important;
  outline: none !important;
}



/* -----------------------------------------
   FOOTER
----------------------------------------- */
.site-footer {
  background: #f0f4f8;
  text-align: center;
  padding: 1.3rem 0;
  border-top: 1px solid #e4e7eb;
  margin-bottom: auto;
}


.site-footer p {
  color: #666;
  font-size: 0.9rem;
}

/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */
@media (max-width: 768px) {
  .main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero h1 {
    font-size: 1.7rem;
    text-align: center;
  }

  .hero p {
    text-align: center;
  }

  .lang-switcher {
    margin-top: 0.5rem;
  }
}




/*-----------------------------------------
service.html
----------------------------------------- */

/* --------- SERVICES PAGE LAYOUT --------- */
.services-page {
  padding: 3rem 0 4rem;
}

.services-page > h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #003e80;
}

.services-page .service-detail {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 2rem 2.2rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

/* layout 2 cột: text + gallery */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.service-text p {
  margin-bottom: 0.9rem;
  color: #444;
}

.service-text h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #0066cc;
}

.service-text ul {
  padding-left: 1.2rem;
  margin: 0;
}

.service-text li {
  margin-bottom: 0.35rem;
  color: #555;
}

/* --------- GALLERY / SLIDER --------- */
.service-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  aspect-ratio: 4 / 3; /* giữ tỉ lệ ổn định */
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-image.active {
  opacity: 1;
}

/* nút prev/next */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* thumbnail hàng dưới */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.gallery-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.gallery-thumbs img.active {
  opacity: 1;
  border-color: #0066cc;
  transform: translateY(-2px);
}

/* hiển thị tối đa 5 thumbnail (1 trung tâm + 2 hai bên mờ) */
.gallery-thumbs {
  overflow: hidden;
  max-width: 360px;    /* thu hẹp lại cho gọn, tuỳ bạn chỉnh */
  margin: 0 auto;
}

.gallery-thumb-hidden {
  display: none;
}

.gallery-thumb-center {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
  border-color: #0066cc;
}

.gallery-thumb-side {
  opacity: 0.5;
  transform: scale(0.9);
}


/* responsive */
@media (max-width: 768px) {
  .services-page .service-detail {
    padding: 1.5rem 1.1rem;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    order: -1; /* trên mobile cho ảnh lên trên */
  }
}

/*--------------------------------------
about.html
---------------------------------------*/
.about-page {
  padding: 3rem 0 4rem;
}

.about-page > h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #003e80;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-text h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: #0066cc;
}

.about-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #0066cc;
}

.about-text p {
  margin-bottom: 0.9rem;
  color: #444;
}

.about-image-block {
  text-align: center;
}

.about-image {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* các block phía dưới */
.about-block {
  margin-bottom: 2rem;
}

.about-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0066cc;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
  color: #555;
}

/* chấm tròn cho list bình thường (ul) */
.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0066cc;
}

/* list có class ordered thì dùng số, không dùng ::before */
.about-list.ordered {
  list-style: decimal;
  padding-left: 1.3rem;
}

.about-list.ordered li {
  padding-left: 0;
  position: static;
}

.about-list.ordered li::before {
  content: none;
}


@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-page > h1 {
    font-size: 1.7rem;
  }
}

/*--------------------------------------
contact.html
---------------------------------------*/

.contact-simple {
  padding: 3rem 0 4rem;
  text-align: center;
}

.contact-simple h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #003e80;
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #555;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.contact-card h2 {
  font-size: 1.2rem;
  color: #0066cc;
  margin-bottom: 0.4rem;
}

/* GRID CHO CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.contact-card {
  background: white;
  padding: 1.8rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}


.btn.small {
  padding: 0.45rem 3.1rem;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}


@media (max-width: 768px) {
  .contact-simple h1 {
    font-size: 1.7rem;
  }
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

