/* 1. Phong cách mặc định (Default Styles) - Áp dụng cho mọi màn hình */
body {
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    margin: 0 auto;
    /* ... các style khác ... */
}

/* ------------------------------------------------ */

/* 2. Media Query cho Máy tính bảng và màn hình nhỏ hơn (Tablet/Smaller Desktops) */
/* Áp dụng khi chiều rộng màn hình TỐI ĐA là 1024px */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%; /* Tăng độ rộng container trên màn hình nhỏ hơn */
    }

    /* Ví dụ: Thay đổi số cột trong layout lưới (grid/flexbox) */
    .grid-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 cột thay vì 3 hoặc 4 */
    }
}

/* ------------------------------------------------ */

/* 3. Media Query cho Điện thoại thông minh ngang (Landscape Smartphones) */
/* Áp dụng khi chiều rộng màn hình TỐI ĐA là 768px */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    nav ul {
        flex-direction: column; /* Menu chuyển thành dạng cột */
    }
    
    /* Ví dụ: Ẩn các phần tử không cần thiết trên di động */
    .sidebar {
        display: none;
    }
}

/* ------------------------------------------------ */

/* 4. Media Query cho Điện thoại thông minh dọc (Portrait Smartphones) */
/* Áp dụng khi chiều rộng màn hình TỐI ĐA là 480px */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        width: 100%; /* Đảm bảo sử dụng toàn bộ chiều rộng */
        padding: 0 10px;
    }

    /* Ví dụ: Chuyển layout lưới thành 1 cột duy nhất */
    .grid-layout {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2em; /* Giảm kích thước tiêu đề lớn */
    }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  overflow-x: hidden;
}

/* HEADER */
header {
  width: 100%;
  position: fixed;
  top: 0;
  background: #0A314F;
  color: white;
  z-index: 100;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  font-size: 15px;
  font-weight: bold; 
  font-style: normal;
}
.logo {
  height: 48px;
  margin-right: 300px;
}

.top-menu {
  display: flex;
  gap: 20px;
  
}


.top-menu .nav-item {
    font-weight: bold;
    font-size: 16px;
    padding: 5px 5px;
}
.top-menu a {
  color: white;
  text-decoration: none;
}

.main-menu {
  display: flex;
  justify-content: center;
  background: white;
  color: #222;
  font-weight: bold;
  gap: 25px;
  padding: 10px 0;
}

.main-menu a {
  text-decoration: none;
  color: #222;
}

.main-menu a:hover {
  color: #007d7a;
}



@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-logo {
  width: 300px;
  margin-bottom: 30px;
}

.hero h1 {
  cursor: pointer;
  transition: transform 0.3s;
}

.hero h1:hover {
  transform: scale(1.05);
}

.arrow {
  font-size: 30px;
  margin-top: 10px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}


.text-box {
  color: white;
}

.text-box h2 {
  color: #ff7b00;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 50\0px;
}

.text-box p {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.text-box a {
  color: #aee2e0;
  text-decoration: none;
}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px;
  color: #ff7b00;
  font-size: 28px;
  transform: translateY(-50%);
}

.prev { left: 20px; }
.next { right: 20px; }
  




    /* --- PHẦN TIN TỨC --- */
    .news-section {
      background-color: #fff;
      padding: 100px 20px 80px;
      text-align: center;
      box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    }

    .news-section h2 {
      font-size: 60px;
      color: #e67e22; /* màu cam nổi bật */
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 2px;
      text-shadow: 2px 2px 6px rgba(0,0,0,0.15);
      margin-bottom: 15px;
    }

    .news-section p.subtitle {
      color: #555;
      font-size: 20px;
      margin-bottom: 50px;
    }

    .news-image {
      width: 80%;
      max-width: 1100px;
      margin: 0 auto;
      border-radius: 8px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
      display: block;
    }

    .highlight-title {
      margin-top: 40px;
      font-size: 26px;
      color: #0a4a45;
      border-top: 4px solid #0a4a45;
      display: inline-block;
      padding-top: 12px;
      font-weight: bold;
    }

   /* Thiết lập cơ bản cho trang */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* === CSS CHO THANH MENU (NAV) === */

header {
    
    position: sticky; /* Giúp menu dính lại khi cuộn */
    top: 0;
    width: 100%;
    z-index: 1000; /* Đảm bảo menu luôn ở trên cùng */
}

.menu ul {
    list-style-type: none; /* Bỏ dấu chấm của danh sách */
    margin: 0;
    padding: 0;
    display: flex; /* Biến <ul> thành hàng ngang */
    justify-content: center; /* Căn giữa các mục menu */
}


.menu ul li a {
    display: block; /* Giúp link chiếm toàn bộ <li> */
    color: white; /* Màu chữ */
    text-decoration: none; /* Bỏ gạch chân của link */
    padding: 15px 25px; /* Tăng khoảng đệm cho dễ bấm */
    font-weight: bold;
    transition: background-color 0.3s; /* Hiệu ứng chuyển màu nền */
}

/* Hiệu ứng khi di chuột vào (hover) */
.menu ul li a:hover {
    background-color: #1262578f; /* Màu nền khi di chuột qua */
}


/* === CSS CHO CÁC PHẦN NỘI DUNG === */

/* Tạo kiểu cho các phần nội dung 
   (mục đích chính là để trang đủ dài để bạn thấy hiệu ứng cuộn) 
*/
.content-section {
    padding: 60px 20px; /* Thêm đệm */
    min-height: 500px; /* Đặt chiều cao tối thiểu để thấy rõ */
}

.content-section h2 {
    font-size: 2.5em;
    color: #333;
}
html {
    scroll-behavior: smooth; /* Đây chính là "phép thuật" */
}
    

/* Đây chính là trang gioi thieu */
/* Màu Chủ Đạo */
:root {
  --main-blue: #80BDF2; /* Xanh Lam Đậm (Navy) */
  --light-blue: pink;
  --accent-green: turquoise; /* Xanh Lá/Ngọc */
  --soft-bg: #f3f6f9; /* Xám xanh nhạt */
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
}
/* HERO SECTION */
.hero {
  height: 88vh;
  background: linear-gradient(270deg, #ACB7F2,#80BDF2,#A2CDF2,#A9C6D9,#F2E2CD);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #0a4c7e;
  text-align: center;
  position: relative;
}
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: var(--soft-bg);
  color: var(--text-dark);
}

.container {
  max-width: 1100px; /* Độ rộng tương đương ảnh */
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Utilities & Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.3s;
  text-decoration: none;
  font-size: 0.9em;
}

.btn-primary { /* Đăng Ký Ngay (Banner) */
  background-color: var(--accent-green);
  color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

.btn-primary:hover {
  background-color: #1e7e34;
}

.btn-secondary { /* Đăng Ký Online Ngay (Giá) */
  background-color: var(--light-blue);
  color: var(--white);
  border: none;
  margin-top: 15px;
  width: 90%;
}

.btn-secondary:hover {
  background-color: var(--main-blue);
}

.btn-contact { /* Liên Hệ Tư Vấn */
  background-color: var(--accent-green);
  color: var(--white);
  border: 2px solid var(--accent-green);
}

.btn-contact:hover {
  background-color: var(--main-blue);
  border-color: var(--main-blue);
}

.section-title {
  font-size: 1.8em;
  color: var(--main-blue);
  margin-bottom: 5px;
}

/* --- 1. HEADER --- */
.main-header {
  background-color: #051e33 ;
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.main-nav ul {
  list-style: none;
  margin: 0px;
  padding: 0;
  display: flex;
}

.main-nav ul li {
  margin-left: 20px;
}

.main-nav ul li a {
  color: var(--white);
  text-decoration: none;
  padding: 7px 0;
  font-size: 14.7px;
  font-style:oblique;
  font-weight: bold;
  position: relative;
  font-weight: 300px;
}


.main-nav ul li a:hover {
  color: cyan;
  font-weight: 400px;
}

/* --- 2. BANNER CHÍNH --- */
.hero-banner-image {
  background: url('https://via.placeholder.com/1100x300/1e3a6c/FFFFFF?text=Khu+Vực+Bán+Trú+Sonadezi') no-repeat center center/cover;
  position: relative;
  padding: 60px 0;
}

.banner-box {
  background-color: rgba(0, 51, 102, 0.85); /* Dark Blue overlay */
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 5px;
}

.banner-box h1 {
  font-size: 2.5em;
  margin-bottom: 5px;
  color: var(--white);
}

.banner-box p {
  font-size: 1.1em;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--white);
}

/* --- 3. GIỚI THIỆU CHUNG & ĐIỂM MẠNH --- */
.intro-section {
  padding: 40px 0 50px;
  text-align: center;
}

.intro-text {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 30px;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.feature-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 280px;
  text-align: center;
  border-top: 3px solid var(--accent-green);
}

.feature-item i {
  font-size: 2.5em;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 1.2em;
  margin: 0 0 5px;
  color: var(--main-blue);
}

.feature-item p {
  font-size: 0.85em;
  color: var(--text-light);
  margin: 0;
}

/* --- 4. DỊCH VỤ CỐT LÕI --- */
.services-section {
  padding: 0 0 50px;
  text-align: center;
}

.service-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.service-item {
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--white);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-caption {
  padding: 10px 15px;
}

.service-caption h4 {
  font-size: 1.1em;
  color: var(--main-blue);
  margin: 0 0 5px;
}

.service-caption p {
  font-size: 0.85em;
  color: var(--text-light);
  margin: 0;
}

/* --- 5. CƠ SỞ VẬT CHẤT VÀ BẢNG GIÁ --- */
.pricing-gallery-section {
  padding: 50px 0;
}

.pricing-gallery-box {
  background-color: var(--main-blue);
  padding: 40px;
  border-radius: 10px;
  color: var(--white);
  display: flex;
  gap: 30px;
  align-items: center;
}

.text-block {
  flex: 2;
}

.pricing-block {
  flex: 1;
  text-align: center;
}

.block-title {
  color: var(--white);
  font-size: 1.8em;
  margin-bottom: 20px;
}

.price-title {
  font-size: 1.5em; /* Nhỏ hơn block title bên cạnh */
}

.gallery-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery-placeholder img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  opacity: 0.8;
}

.price-box {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.price-amount {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--accent-green);
  margin: 0;
  line-height: 1.2;
}

.price-unit {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.price-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0;
}

.price-list li {
  font-size: 0.9em;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.price-list li i {
  color: var(--accent-green);
  margin-right: 5px;
}

/* --- 6. CTA CUỐI TRANG --- */
.contact-cta-section {
  padding: 40px 0;
  text-align: center;
}

.cta-heading {
  font-size: 2.5em;
  color: lightskyblue;
  margin-bottom: 20px;
}

/* --- 7. FOOTER --- */
.main-footer {
  background-color: var(--main-blue);
  color: var(--white);
  padding: 20px 0;
  font-size: 0.85em;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info {
  flex-grow: 1;
  text-align: left;
}

.footer-info p {
  margin: 3px 0;
  color: var(--white);
}

.footer-info i {
  color: var(--accent-green);
  margin-right: 5px;
}

.social-media a {
  color: var(--white);
  font-size: 1.3em;
  margin-left: 15px;
  transition: color 0.3s;
}

.social-media a:hover {
  color: var(--accent-green);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .pricing-gallery-box {
      flex-direction: column;
      text-align: center;
  }
  .pricing-block, .text-block {
      width: 100%;
  }
  .gallery-placeholder {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; } /* Ẩn menu trên mobile để đơn giản */
  .header-container { justify-content: center; }
  .features-grid, .service-row {
      flex-direction: column;
      align-items: center;
  }
  .feature-item, .service-item {
      width: 90%;
      max-width: 400px;
  }
  .footer-content {
      flex-direction: column;
      text-align: center;
  }
  .footer-info { text-align: center; }
  .social-media { margin-top: 15px; }
}

.col-md-10{
position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 20%;
}
.col-md-2{
  position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 30%;
}

.col-md-7{
  position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 30%;
  
}
.maunen{
  background-color: #d3f1fc;
}

/* hình bán trú ở đầu  */
.hero-section {
    background-image: url('anhbantru.jpg'); /* Đổi tên thành file ảnh của bạn */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px; /* Điều chỉnh padding để căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 670px; /* Chiều cao tối thiểu cho hero section */
    position: relative;
}

.hero-section::before { /* Lớp phủ mờ để chữ dễ đọc hơn */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.232); /* Màu đen với độ trong suốt 50% */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Đảm bảo nội dung nằm trên lớp phủ */
    max-width: 700px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}
/* hình bán trú ở đầu phần menu  */
.hero-sectionmenu {
    background-image: url('combantru.jpg'); /* Đổi tên thành file ảnh của bạn */
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 100px 20px; /* Điều chỉnh padding để căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 490px; /* Chiều cao tối thiểu cho hero section */
    position: relative;
}
.hero-sectionmenu::before { /* Lớp phủ mờ để chữ dễ đọc hơn */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Màu đen với độ trong suốt 50% */
    z-index: 1;
}

/* hình bán trú ở đầu phần noiquy  */
.hero-sectionnq {
    background-image: url('noiquybantru.jpg'); /* Đổi tên thành file ảnh của bạn */
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 100px 20px; /* Điều chỉnh padding để căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 625px; /* Chiều cao tối thiểu cho hero section */
    position: relative;
}

/* hình bán trú ở đầu phần Đăng kí  */
.hero-sectionDK {
    background-image: url('dangkibantru.jpeg'); /* Đổi tên thành file ảnh của bạn */
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 100px 20px; /* Điều chỉnh padding để căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 680px; /* Chiều cao tối thiểu cho hero section */
    position: relative;
}

/* hình bán trú ở đầu phần quản sinh  */
.hero-sectionQS {
    background-image: url('bietdoiaovang.jpg'); /* Đổi tên thành file ảnh của bạn */
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 100px 20px; /* Điều chỉnh padding để căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 665px; /* Chiều cao tối thiểu cho hero section */
    position: relative;
}
/* hình bán trú ở đầu phần Hỗ Trợ  */
.hero-sectionHT {
    background-image: url('image.png'); /* Đổi tên thành file ảnh của bạn */
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 100px 20px; /* Điều chỉnh padding để căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    
    min-width: none;
    min-height: 560px; /* Chiều cao tối thiểu cho hero section */
    position: relative;
}
.btn {
    background-color: #0b2d49; /* Màu xanh đậm cho nút */
    color: rgb(244, 248, 248);
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #20ddae; /* Màu đậm hơn khi hover */
}
.mau{
  background: linear-gradient(270deg, #ACB7F2,#80BDF2,#A2CDF2,#A9C6D9,#F2E2CD);
}

.ktx-section {
   display: flex;
   gap: 20px;
   font-family: Arial, sans-serif;
   margin-top: 20px;
 }

 .ktx-left {
   flex: 2;
   color: #0b2d49;
 }

 .ktx-right {
   flex: 1;
 }

 .ktx-news {
   display: flex;
   gap: 15px;
   margin-bottom: 20px;
   border-bottom: 1px solid #ccc;
   padding-bottom: 10px;
 }

 .ktx-news img {
   width: 180px;
   height: 120px;
   object-fit: cover;
   border-radius: 5px;
 }

 .ktx-news-title {
   font-weight: bold;
   font-size: 18px;
   margin-bottom: 5px;
   color: #051e33;
 }

 .ktx-news-desc {
   font-size: 14px;
   color: #333;
 }

 .ktx-box {
   background-color:  #0A314F;
   color: rgb(255, 255, 255);
   padding: 10px;
   font-weight: bold;
 }

 .ktx-menu {
   border: 1px solid #ccc;
   margin-bottom: 20px;
 }

 .ktx-menu a {
   display: block;
   padding: 10px;
   text-decoration: none;
   color: black;
   border-top: 1px solid #ccc;
   background-color: #f9f9f9;
 }

 .ktx-menu a:hover {
   background-color: #e0f0f0;
 }

 .ktx-menu a:first-child {
   border-top: none;
 }
 h2{
  margin-bottom: 10px;
 }
 .containeri {
      max-width: 100%;
      background: rgb(251, 251, 251);
      backdrop-filter: blur(8px);
      padding: 30px 40px;
      margin: 60px auto;
      border-radius: 15px;
      box-shadow: 0 10px 25px rgba(57, 55, 55, 0.3);
    }

 
.LH{
   text-align: center; 
   color: #ffffff;
   
}
.Hinhh {

   color: white;
   padding-bottom: 1px;
   display: flex;

 }
 .bando{
  width: 59%;
   height: 100%; 
   float: left;
   display: flex;

 }
 .Chung{
  background-color: #051e33;
  height: 100%;
  width: 100%;
 }
 .footerindex{
  margin-top: 470px;
 }