
/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background: #f8f9fa;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

/* Body wrapper with width constraints */
.body-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Ngăn các thành phần vượt quá chiều rộng màn hình */
* {
  box-sizing: border-box;
  max-width: 100vw;
}




/* Slider */
.slider {
  margin: 12px 0 0 0;
}
.slider-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  height: 200px;
  max-width: 100vw;
}
.slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}
.slider-img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  max-width: 100vw;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #333;
  z-index: 2;
}
.slider-arrow.left {
  left: 8px;
}
.slider-arrow.right {
  right: 8px;
}
.slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.95) 80%,
    rgba(255, 255, 255, 0.1) 100%
  );
}
.slider-books {
  width: 90px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.slider-sale {
  margin-left: 8px;
}
.sale-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #222;
}
.sale-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #6ab43e;
}
.sale-currency {
  font-size: 0.8rem;
  color: #222;
}
.sale-old {
  font-size: 0.9rem;
  color: #888;
  text-decoration: line-through;
}

/* Schedule */
.schedule {
  margin: 18px 0 0 0;
}
.schedule-title {
  color: #7ac142;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.schedule-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 16px 18px 12px 18px;
  margin-top: 18px;
}
.schedule-card:first-of-type {
  margin-top: 0;
}
.schedule-card-extra {
  margin-top: 12px;
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  color: #222;
  margin-bottom: 4px;
}
.schedule-row i {
  color: #1e2f63;
  min-width: 18px;
}
.schedule-more {
  text-align: right;
  margin-top: 4px;
}
.schedule-more a {
  color: #7ac142;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.schedule-hide {
  text-align: right;
  margin-top: 8px;
}
.schedule-hide a {
  color: #7ac142;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 14px;
  border-radius: 16px;
  background: #f4f3f8;
  border: 1px solid #7ac142;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.schedule-hide a:hover {
  background: #7ac142;
  color: #fff;
}

/* News */
.news {
  margin: 22px 0 0 0;
}
.news-title {
  color: #7ac142;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.news-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.news-list {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  gap: 24px;
}
.news-item {
  flex: 0 0 calc((100% - 24px) / 2);
  max-width: calc((100% - 24px) / 2);
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.news-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.news-caption {
  padding: 10px 8px 14px 8px;
  font-size: 1rem;
  color: #222;
  text-align: center;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  min-height: 3.8em;
  max-height: 3.8em;
  background: #fff;
}
.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #7ac142;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
}
.news-arrow.left { left: 0; }
.news-arrow.right { right: 0; }
@media (min-width: 768px) {
  .news-list {
    gap: 32px;
  }
  .news-item {
    flex: 0 0 calc((100% - 32px * 3) / 4);
    max-width: calc((100% - 32px * 3) / 4);
    padding: 0;
  }
  .news-img {
    height: 170px;
  }
  .news-caption {
    min-height: 3.8em;
    max-height: 3.8em;
  }
}
@media (max-width: 600px) {
  .news-list {
    gap: 10px;
  }
  .news-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* VLS Life */
.vls-life {
  margin: 28px 0 0 0;
}
.vls-life-title {
  color: #7ac142;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.video-slider {
  width: 100%;
  display: flex;
  justify-content: center;
}
  .video-slider-wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    min-height: 220px;
  }
  .video-list {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    width: 100%;
    overflow: visible;
  }
  .video-item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .video-iframe {
    width: 100%;
    min-width: 0;
    height: 220px;
    border: none;
    display: block;
    object-fit: cover;
    background: #000;
    border-radius: 12px;
  }
.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #333;
  z-index: 2;
}
.video-arrow.left {
  left: 0;
}
.video-arrow.right {
  right: 0;
}

/* Referrals */
.referrals {
  margin: 28px 0 0 0;
}
.referrals-title {
  color: #7ac142;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.referrals-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.referrals-img {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.referrals-more {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: #7ac142;
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Testimonials */
.testimonials {
  margin: 28px 0 0 0;
  overflow: hidden;
}
.testimonials-title {
  color: #a6cd39;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
  text-align: left;
}
.testimonials-slider {
  position: relative;
  overflow: hidden;
}
.testimonials-list {
  display: flex;
  gap: 12px;
  animation: testimonialInfiniteSlide 20s linear infinite;
}
.testimonials-list:hover {
  animation-play-state: paused;
}
@keyframes testimonialInfiniteSlide {
  0% { transform: translateX(0); }
  16.66% { transform: translateX(-33.33%); }
  33.33% { transform: translateX(-66.66%); }
  50% { transform: translateX(-100%); }
  66.66% { transform: translateX(-133.33%); }
  83.33% { transform: translateX(-166.66%); }
  100% { transform: translateX(-200%); }
}
.testimonial-item {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  min-height: 180px;
  width: clamp(140px, 28vw, 350px);
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}
.testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f4f4f4;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.testimonial-avatar i {
  color: #a6cd39;
  font-size: 1.3rem;
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  min-width: 0;
}
.testimonial-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 1.13rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.testimonial-rating {
  display: flex;
  gap: 2px;
}
.testimonial-rating i {
  color: #ffc107;
  font-size: 0.85rem;
}
.testimonial-content {
  text-align: left;
  margin: 10px 0 0 0;
  font-size: 1.08rem;
  line-height: 1.4;
  flex: 1 1 auto;
  overflow: visible;
  display: block;
  min-height: 2.2em;
  max-height: 6em;
  word-break: break-word;
}
.testimonial-more {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.testimonial-more a {
  font-size: 1.05rem;
  color: #222;
  text-decoration: none;
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.testimonial-more a:hover {
  color: #7ac142;
  opacity: 1;
}

/* VLS Rating */
.vls-rating {
  margin: 28px 0 24px 0;
}
.vls-rating-title {
  color: #a6cd39;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: left;
}
.vls-rating-branches {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.branch-btn {
  background: #fff;
  color: #1e2f63;
  border: 2px solid #1e2f63;
  border-radius: 25px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(30, 47, 99, 0.15);
  transition: all 0.3s ease;
  text-transform: none;
  white-space: nowrap;
  min-width: 120px;
}
.branch-btn:hover {
  background: #1e2f63;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(30, 47, 99, 0.25);
}
.branch-btn:active {
  background: #1e2f63;
  color: #fff;
  transform: translateY(0);
}



@media (max-width: 600px) {
  body {
    max-width: 100vw;
  }
  .video-item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .testimonials-list {
    flex-direction: row;
    gap: 8px;
    animation: testimonialInfiniteSlide 20s linear infinite;
  }
  .testimonial-item {
    padding: 8px 2px;
    flex: 0 0 clamp(120px, 50vw, 180px);
    margin: 0 auto 10px auto;
    width: clamp(120px, 50vw, 180px);
    max-width: 95vw;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .testimonial-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    display: block;
  }
  .testimonial-content {
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 3.6em;
  }
  .testimonial-avatar {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  .testimonial-avatar i {
    font-size: 1rem;
  }
  .testimonial-name {
    font-size: 0.95rem;
  }
  .testimonial-content {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .testimonial-rating i {
    font-size: 0.75rem;
  }
  .branch-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: 100px;
  }
  .testimonial-item {
    padding: 16px 10px;
    flex: 0 0 clamp(180px, 32vw, 260px);
    width: clamp(180px, 32vw, 260px);
    max-width: 340px;
    min-width: 0;
    margin: 0 auto 14px auto;
    box-sizing: border-box;
    overflow: hidden;
  }
}
@media (max-width: 600px) {
  
  .video-slider-wrapper {
    max-width: 100vw;
    min-width: 0;
  }
  .video-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    /* Hiển thị nút trên mobile */
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .video-list {
    /* Đảm bảo không bị tràn ngang */
    width: 100%;
    min-width: 0;
  }
}
/* Desktop responsive */
@media (min-width: 431px) {
  .body-wrapper {
    padding: 0 24px;
  }

  .slider-wrapper {
    height: 240px;
  }

}
@media (min-width: 1024px) {
  .body-wrapper {
    max-width: 100%;
    font-size: 16px;
    padding: 0 80px;
  }
  .main-content {
    max-width: 900px;
    margin: 0 auto;
  }

  
}

.section-title.schedule-title,
.section-title.news-title,
.section-title.vls-life-title,
.section-title.referrals-title,
.section-title.testimonials-title,
.section-title.vls-rating-title,
.sale-price,
.schedule-title,
.referrals-more,
.testimonial-more a,
.branch-title,

.branch-address i {
    color: #a6cd39 !important;
    border-color: #a6cd39 !important;
    background: none;
}



/* Schedule icons - specific override */
.schedule-row i {
    color: #1e2f63 !important;
}

/* VLS Rating buttons - specific override */
.branch-btn {
    color: #1e2f63 !important;
    border: 2px solid #1e2f63 !important;
}
.branch-btn:hover,
.branch-btn:active {
    background: #1e2f63 !important;
    color: #fff !important;
}



/* Referrals button - specific override */
.referrals-more {
    color: #000 !important;
}

/* Testimonial stars */
.testimonial-rating i {
    color: #ffc107 !important;
}

/* Testimonial avatar icons */
.testimonial-avatar i {
    color: #a6cd39 !important;
}


@media (min-width: 1024px) {
  .slider {
    margin: 40px 0 0 0;
    display: flex;
    justify-content: center;
  }
  .slider-wrapper {
    height: 520px;
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    border-radius: 36px;
  }
  .slider-container {
    height: 100%;
  }
  .slider-img {
    border-radius: 36px;
    height: 100%;
    object-fit: cover;
    min-height: 520px;
    max-height: 520px;
    width: 100%;
    /* Đảm bảo hình ảnh không bị crop chiều ngang */
  }
  .slider-arrow {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }
  .video-list {
    gap: 24px;
  }
  .video-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0;
  }
  .video-slider-wrapper {
    max-width: 900px;
    min-height: 220px;
  }
  .video-iframe {
    height: 220px;
  }
  .testimonials-list {
    gap: 32px;
  }
  .testimonial-item {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    min-height: 180px;
    max-height: 260px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 22px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
  }
  .testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 10px;
    width: 100%;
  }
  .testimonial-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f4f4f4;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  .testimonial-name {
    font-weight: 600;
    font-size: 1.13rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    flex: 1 1 auto;
    margin: 0 10px;
  }
  .testimonial-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: #4267B2;
  }
  .testimonial-socials i.fab.fa-instagram {
    color: #E1306C;
  }
  .testimonial-socials i.fab.fa-twitter {
    color: #1DA1F2;
  }
  .testimonial-rating {
    display: none;
  }
  .testimonial-content {
    text-align: left;
    margin: 0 0 0 0;
    font-size: 1.08rem;
    line-height: 1.4;
    flex: 1 1 auto;
    overflow: visible;
    display: block;
    min-height: 2.2em;
    max-height: 6em;
  }
  .testimonial-more {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
  }
  .testimonial-more a {
    font-size: 1.05rem;
    color: #222;
    text-decoration: none;
    font-style: italic;
    font-weight: 400;
    opacity: 0.7;
    transition: color 0.2s, opacity 0.2s;
  }
  .testimonial-more a:hover {
    color: #7ac142;
    opacity: 1;
  }
}

.testimonial-social-single {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  z-index: 2;
  opacity: 0.92;
  background: #fff;
  border-radius: 50%;
  padding: 2px 2px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .testimonial-social-single {
    font-size: 2.1rem;
    top: 16px;
    right: 18px;
    padding: 2px 2px 0 2px;
  }
  .testimonial-item {
    max-width: 370px;
    min-height: 200px;
  }
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  min-width: 0;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f4f4f4;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 1.13rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.testimonial-content {
  text-align: left;
  margin: 10px 0 0 0;
  font-size: 1.08rem;
  line-height: 1.4;
  flex: 1 1 auto;
  overflow: visible;
  display: block;
  min-height: 2.2em;
  max-height: 6em;
  word-break: break-word;
}

.testimonial-more {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.testimonial-more a {
  font-size: 1.05rem;
  color: #222;
  text-decoration: none;
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}

.testimonial-more a:hover {
  color: #7ac142;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .testimonial-header {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
  }
  .testimonial-info {
    align-items: center;
    width: 100%;
  }
  .testimonial-name {
    text-align: center;
    font-size: 1.08rem;
    margin-bottom: 0;
    max-width: 100%;
  }
  .testimonial-item {
    width: 95vw;
    max-width: 420px;
    min-width: 0;
    margin: 0 auto 18px auto;
  }
}
