.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    position: relative;
    display: flex;
    width: 100%;
    z-index: 1;
}

.slide {
    display: none;
    width: 100%;
    transition: opacity 2s ease-in-out;
}

.slide img {
    width: 100%;
    height: auto; 
    object-fit: cover;
    z-index: 1;
}

.active {
    display: block;
    animation: fadeIn 2s;
}

/* Hiệu ứng fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Nút điều hướng */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    z-index: 10;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}
.next {
    right: 10px;
}

/* Dấu chấm chỉ số */
.dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #ffcc00;
    transform: scale(1.2);
}
/* Bảng giá */
.pricing-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    background: url('image/bg-banggia2.jpg') no-repeat bottom center/cover;
    text-align: center;
    color: white;
}

/* Lớp phủ đen */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Nội dung tiêu đề và mô tả */
.content_bgia {
    position: relative;
    max-width: 100%;
    margin: 0 auto 40px;
    z-index: 1;
}

.content_bgia h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.content_bgia p {
    font-size: 18px;
}

/* Grid hiển thị giá */
.pricing-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1260px;
    margin: 0 auto;
    z-index: 1;
}

/* Mỗi cột giá */
.pricing-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.pricing-item h3 {
    margin-top: 15px;
    font-size: 18px;
    color: #fff;
}
.pricing-item h3:hover {
    color: #ffe600;
}

/* Hiệu ứng hình ảnh */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Hiệu ứng ánh sáng */
.hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease-in-out;
}

/* Hiệu ứng khi hover vào ảnh */
.image-container:hover img {
    transform: scale(1.1);
}

.image-container:hover .hover-effect {
    left: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .content_bgia h2 {
        font-size: 28px;
    }

    .content_bgia p {
        font-size: 16px;
    }
}
/* Face - TikTok - Youtube */
.social-section {
  padding: 40px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.social-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.social-block {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.social-block:hover {
  transform: translateY(-5px);
}

.social-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-btn .icon {
  margin-right: 10px;
  font-size: 1.4rem;
}

.social-btn::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  width: 0;
  height: 300%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.5s ease;
}

.social-btn:hover::after {
  width: 120%;
}

.facebook {
  background-color: #3b5998;
}

.tiktok {
  background-color: #444;
}

.youtube {
  background-color: #DB2020;
}

.social-embed {
  margin-top: 15px;
}
/* Intro home */
/* Overlay mờ */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55); /* màn đen trong suốt */
  z-index: 1;
}

/* Nội dung */
.content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1260px;
  margin: 0 auto;
  gap: 40px;
}

/* Giới thiệu */
.about-us {
  flex: 1 1 45%;
}

.about-us h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-us p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
}
.consult-form {
  width: 43%;
}
/* Form tư vấn */
.consultation-form {
  flex: 1 1 45%;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.consultation-form h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  outline: none;
  background-color: rgba(255,255,255,0.9);
  color: #000;
}

.consultation-form button {
  background-color: #DB2020;
  color: #fff;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.consultation-form button:hover {
  background-color: #e65b50;
}

/* Hiệu ứng fade-in */
.fade-in-left {
  animation: fadeInLeft 1.2s ease-out;
}
.fade-in-right {
  animation: fadeInRight 1.2s ease-out;
}
.math-inline-label {
  position: relative;
  display: inline-block;
  width: 100%;
}

.math-inline-label label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #555;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* Make room for label inside input */
.math-inline-label input {
  padding-left: 150px; /* chỉnh theo độ dài label thực tế */
}
#math-question 
{   position: absolute; 
    display: inline-block;
    top: 50%; 
    left: 15px; 
    transform: translateY(-50%); 
    background-color: white; 
    padding: 0 5px; 
    font-size: 16px; 
    color: #00356A; 
    pointer-events: none;
}

#math-answer {
    padding-left: 100px;
    text-align: right;
}
.align-text-ftv{text-align: right;}
.anthongbao-tuvan{display:none; color: red; background-color: #FFF;}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .about-us,
  .consultation-form {
    flex: 1 1 100%;
  }
  .consult-form {
  width: 100%;
  }
}
/* End Intro home */