
/* 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;
}

/* Filter Popup Styles */
.filter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.filter-popup {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.filter-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

.filter-tabs {
  display: flex;
  flex: 1;
}

.filter-tab {
  flex: 1;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.filter-tab.active {
  color: #A6CE39;
  border-bottom-color: #A6CE39;
  background: #f7fcf0;
}

.filter-close {
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
}

.filter-close:hover {
  color: #374151;
}

.filter-content {
  padding: 24px;
}

.filter-tab-content {
  display: none;
}

.filter-tab-content.active {
  display: block;
}

.filter-input-group {
  margin-bottom: 20px;
}

.filter-input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.filter-input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.filter-input-group input:focus {
  border-color: #A6CE39;
  box-shadow: 0 0 0 3px rgba(166, 206, 57, 0.1);
}

.filter-input-group input::placeholder {
  color: #9ca3af;
}

.filter-btn {
  width: 100%;
  padding: 12px 24px;
  background: #A6CE39;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-btn:hover {
  background: #94bc2f;
}

/* Notification Filter Popup Specific Styles */
.filter-popup-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  padding: 16px 20px;
  flex: 1;
}

.priority-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  width: 100%;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  width: 100%;
}

.checkmark {
  width: 24px !important;
  height: 24px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 4px !important;
  margin-right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  color: transparent !important;
  transition: all 0.2s !important;
  background: white !important;
}

/* Tất cả ô đều có dấu tích khi checked */
.custom-checkbox input[type="checkbox"]:checked + label .checkmark {
  background: #A6CE39 !important;
  border-color: #A6CE39 !important;
  color: white !important;
}

.custom-checkbox input[type="checkbox"]:not(:checked) + label .checkmark {
  color: transparent !important;
  background: white !important;
}

.priority-dot {
  width: 16px !important;
  height: 16px !important;
  border-radius: 2px !important;
  margin-right: 8px !important;
  display: inline-block !important;
}

.priority-red {
  background-color: #ef4444 !important;
}

.priority-yellow {
  background-color: #f59e0b !important;
}

.priority-gray {
  background-color: #6b7280 !important;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #A6CE39;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 2000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.success-message i {
  font-size: 18px;
}

.success-message.show {
  display: flex;
}

/* Date filter specific styles */
.filter-date-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: stretch;
}

.filter-date-row:first-child {
  margin-bottom: 20px;
}

.filter-option-btn {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  height: 44px;
  transition: all 0.2s;
  text-align: center;
}

.filter-option-btn:hover {
  border-color: #A6CE39;
  color: #A6CE39;
}

.filter-option-btn.active {
  background: #A6CE39;
  color: white;
  border-color: #A6CE39;
}

.filter-quick-btn {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  height: 44px;
  transition: all 0.2s;
  text-align: center;
}

.filter-quick-btn:hover {
  border-color: #A6CE39;
  color: #A6CE39;
}

.filter-quick-btn.active {
  background: #A6CE39;
  color: white;
  border-color: #A6CE39;
}

.filter-date-group {
  flex: 1;
}

.filter-date-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper input[type="date"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

.date-display {
  display: block;
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  pointer-events: none;
}

.date-input-wrapper:hover .date-display {
  border-color: #A6CE39;
}

.date-input-wrapper i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #A6CE39;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  pointer-events: none;
}

/* Desktop responsive */
@media (min-width: 601px) {
  .filter-option-btn, .filter-quick-btn {
    font-size: 13px;
    padding: 12px 6px;
  }
}

/* Tablet responsive */
@media (max-width: 900px) and (min-width: 601px) {
  .filter-option-btn, .filter-quick-btn {
    font-size: 12px;
    padding: 12px 4px;
  }
}

/* Mobile responsive for popup */
@media (max-width: 600px) {
  .filter-popup {
    width: 95%;
    margin: 0 10px;
  }
  
  .filter-tab {
    padding: 14px 12px;
    font-size: 13px;
  }
  
  .filter-close {
    padding: 14px 16px;
    font-size: 22px;
  }
  
  .filter-content {
    padding: 16px;
  }
  
  .filter-date-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 16px;
  }
  
  .filter-date-row:first-child {
    flex-direction: row;
    gap: 4px;
    margin-bottom: 20px;
  }
  
  .filter-option-btn, .filter-quick-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    font-size: 11px;
    height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .filter-date-group {
    flex: 1;
    min-width: 0;
  }
  
  .filter-date-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .date-input-wrapper {
    width: 100%;
  }
  
  .date-display {
    padding: 8px 30px 8px 12px;
    font-size: 12px;
    height: 36px;
  }
  
  .date-input-wrapper i {
    right: 8px;
    font-size: 14px;
  }
}

/* Extra small devices (Galaxy Z Fold, etc) */
@media (max-width: 400px) {
  .filter-popup {
    width: 98%;
    margin: 0 5px;
  }
  
  .filter-content {
    padding: 12px;
  }
  
  .filter-tab {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .filter-option-btn, .filter-quick-btn {
    padding: 10px 12px;
    font-size: 13px;
    height: 40px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    height: 40px;
  }
  
  /* Fix header overlap on very small screens */
  .info-cards-row {
    margin-top: 16px;
    padding: 0 4px;
    gap: 6px;
  }
  
  .info-card {
    padding: 12px 14px 10px 14px;
    border-radius: 14px;
    min-width: 0;
  }
  
  .info-card-header {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.2;
    font-weight: 700;
  }
  
  /* Fix chart legend wrapping */
  .info-card-legend {
    gap: 4px;
    font-size: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .legend-dot {
    margin-right: 3px;
  }
  
  /* Specific fix for "CN Phú Mỹ Hưng" wrapping */
  .info-card-legend span {
    white-space: nowrap;
    margin-bottom: 2px;
  }
  
  /* Ensure chart has enough space */
  .info-card-chart {
    min-height: 100px;
    margin: 2px 0;
  }
  
  /* More compact spacing */
  .info-card-list {
    gap: 3px;
    margin-top: 2px;
  }
  
  .info-card-list > div {
    gap: 8px;
    margin-bottom: 5px;
  }
  
  .info-card-time, .info-card-date {
    min-width: 72px;
    font-size: 0.82rem;
  }
  
  .info-card-green, .info-card-red, .info-card-gray, .info-card-yellow {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

/* 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;
}

/* Info cards row and card styles */

.info-cards-row {
  display: flex;
  gap: 24px;
  margin: 28px auto 20px auto;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 1000px;
  padding: 0 16px;
}
.info-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  padding: 22px 26px 20px 26px;
  min-width: 360px;
  max-width: 460px;
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  height: auto;
}
.info-card-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f2937;
  line-height: 1.3;
}
.info-card-filter {
  color: #a6ce39;
  font-size: 1.2rem;
  margin-left: auto;
  cursor: pointer;
  transition: color 0.2s ease;
}
.info-card-filter:hover {
  color: #7a9239;
}
.info-card-date {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #111827;
}
.info-card-green {
  color: #a6ce39;
  font-weight: 500;
  font-size: 1rem;
}
.info-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  margin-top: 4px;
  flex: 1;
}
.info-card-time, .info-card-date {
  font-weight: 600;
  color: #111827;
  min-width: 95px;
  display: inline-block;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .info-cards-row {
    gap: 20px;
    margin: 24px auto 18px auto;
    padding: 0 12px;
  }
  .info-card {
    min-width: 300px;
    max-width: 100%;
    padding: 20px 22px 18px 22px;
    border-radius: 20px;
    gap: 7px;
  }
  .info-card-header {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  .info-card-list {
    font-size: 0.95rem;
    gap: 6px;
    margin-top: 2px;
  }
  .info-card-time, .info-card-date {
    font-size: 0.95rem;
    min-width: 85px;
  }
  .info-card-green {
    font-size: 0.95rem;
  }
  .info-card-date {
    margin-bottom: 6px;
  }
}

@media (max-width: 600px) {
  .info-cards-row {
    flex-direction: column;
    gap: 8px;
    margin: 8px auto 6px auto;
    align-items: stretch;
    padding: 0 16px;
  }
  .info-card {
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px 6px 12px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    gap: 4px;
    height: auto !important; /* Override equal height */
  }
  .info-card-header {
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 700;
  }
  .info-card-list {
    font-size: 0.88rem;
    gap: 6px;
    margin-top: 4px;
    line-height: 1.5;
  }
  .info-card-list > div {
    line-height: 1.6;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .info-card-time, .info-card-date {
    font-size: 0.88rem;
    min-width: 78px;
    line-height: 1.5;
    flex-shrink: 0;
  }
  .info-card-green {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .info-card-date {
    margin-bottom: 5px;
    line-height: 1.4;
    gap: 12px;
  }
}

/* Additional styles for chart and notification cards */
.info-card-sub {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.3;
}

.info-card-chart {
  margin: 8px 0 6px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  flex: 1;
}

.info-card-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 6px;
  padding-top: 6px;
  line-height: 1.4;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-green::before {
  background-color: #a6ce39;
}

.legend-yellow::before {
  background-color: #f59e0b;
}

.legend-blue::before {
  background-color: #6ec6ff;
}

.legend-red::before {
  background-color: #ef4444;
}

.legend-gray::before {
  background-color: #9ca3af;
}

.info-card-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 10px 0 6px 0;
}

.info-card-sub-inline {
  font-style: italic;
  font-weight: normal;
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 4px;
}

.info-card-red {
  color: #ef4444;
  font-weight: 500;
}

.info-card-yellow {
  color: #f59e0b;
  font-weight: 500;
}

.info-card-gray {
  color: #6b7280;
  font-weight: 500;
}

.info-card-status-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 6px 0 8px 0;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

@media (max-width: 600px) {
  .info-card-legend {
    gap: 8px;
    font-size: 0.75rem;
    margin-top: 2px;
    padding-top: 2px;
    line-height: 1.3;
  }
  
  .info-card-status-legend {
    gap: 6px;
    font-size: 0.75rem;
    margin: 2px 0 3px 0;
    padding: 2px 0;
    line-height: 1.3;
  }
  
  .info-card-sub {
    font-size: 0.75rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  
  .info-card-chart {
    min-height: 110px;
    margin: 1px 0;
  }
  
  .info-card-section-title {
    font-size: 0.9rem;
    margin: 4px 0 2px 0;
    line-height: 1.3;
  }
  
  /* Compact mobile styles */
  .info-card-filter {
    font-size: 1.1rem;
  }
  
  .info-card-red, .info-card-gray {
    line-height: 1.4;
  }
}




/* 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;
}
.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;
    overflow-x: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    display: flex;
    scroll-behavior: smooth;
      scrollbar-width: none; /* Firefox */
    }
    .news-list::-webkit-scrollbar {
      display: none; /* Chrome, Safari */
  }
  .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;
}
/* Mobile responsive for VLS rating cards */
@media (max-width: 600px) {
  .vls-rating-branches {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
  }
  .branch-btn {
    min-width: 0;
    flex: 1 1 auto;
    padding: 6px 4px;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
  }
}
.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;
  text-decoration: none !important;
}
.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;
    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: 5px 6px;
    font-size: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
  }
}

/* iPhone SE and smaller screens */
@media (max-width: 375px) {
  .vls-rating-branches {
    gap: 3px;
    padding: 0 2px;
  }
  .branch-btn {
    padding: 4px 3px;
    font-size: 0.6rem;
    flex: 1 1 auto;
    white-space: nowrap;
  }
  .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;
  }
}
