/* CSS cho trang index.html */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  width: 70px;
  height: 3px;
  background-color: #e67e22;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Hiệu ứng hover cho các box */
.feature-box, .service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover, .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2.5rem;
  color: #e67e22;
  margin-bottom: 20px;
}

.feature-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #e67e22;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #d35400;
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* Tỷ lệ 3:2 (2/3 = 0.6667) */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Style khi có nhiều ảnh */
.about-image.multiple-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  padding-bottom: 0;
  height: auto;
  aspect-ratio: 3/2;
}

.about-image.multiple-images img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .about-image.multiple-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

/* Service Cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.services-container .service-card .service-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.btn-small {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background-color: #e67e22;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-small:hover {
  background-color: #d35400;
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 200px;
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .gallery-item {
    height: 120px;
  }
  
  .gallery-item img {
    height: 120px;
  }
}

/* Chỉnh sửa gallery item */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  color: #fff;
  font-size: 2rem;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Testimonials Section */
.testimonials {
  overflow: hidden;
  position: relative;
  background-color: #fff;
  padding: 60px 0;
}

.testimonials-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.testimonials-slider {
  display: flex;
  width: calc(350px * 10); /* Adjust based on number of testimonials */
  animation: slide 120s linear infinite;
  margin-top: 30px;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-350px * 5)); /* Di chuyển đúng khoảng cách để cuộn tròn */
  }
}

.testimonial {
  flex: 0 0 350px;
  margin-right: 30px;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  position: relative;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.testimonial-info {
  display: flex;
  align-items: center;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid #e67e22;
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-right: 10px;
}

.testimonial-author p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.rating {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
}

.rating i {
  margin-right: 2px;
}

/* Hover pause animation */
.testimonials-container:hover .testimonials-slider {
  animation-play-state: paused;
}

/* Hero section */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-subtitle-container {
  position: relative;
  height: 300px;
  margin: 15px auto 25px;
  overflow: hidden;
  max-width: 800px;
}

.hero-subtitle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-subtitle.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animation cho hero subtitle */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.cta {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Animate on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
  }
  
  .feature-box, .service-card, .testimonial {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* お部屋・施設 セクション */
.rooms-facilities {
  background-color: #f9f9f9;
}

.rooms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.room-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-content {
  padding: 20px;
}

.room-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.room-features {
  margin: 15px 0;
}

.room-feature {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.room-feature i {
  margin-right: 5px;
  color: #e67e22;
}
