/* ============================================================
   MISA eShop Help Center - Home Page CSS
   BEM prefix: eshop-help-
   (Global header/footer styles are in global.css)
   ============================================================ */

/* --- Hero --- */
.eshop-help-hero {
  padding: 48px 0 56px;
  text-align: center;
}

.eshop-help-hero__img {
  display: block;
  margin: 0 auto 16px;
  height: 120px;
  width: auto;
}

.eshop-help-hero__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
}

.eshop-help-hero__search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 10px 20px;
  gap: 10px;
}

.eshop-help-hero__search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.eshop-help-hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
}

.eshop-help-hero__search-input::placeholder {
  color: var(--text-gray);
}

/* --- Tab Switcher --- */
.eshop-help-tabs {
  padding: 24px 0;
  background: #fff;
  border-bottom: 1px solid #EBEBF0;
}

.eshop-help-tabs__switcher {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 320px;
  margin: 0 auto;
  background: #F0F0F5;
  border-radius: 16px;
  padding: 4px;
}

.eshop-help-tabs__btn {
  flex: 1;
  padding: 10px 32px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
}

.eshop-help-tabs__btn--active {
  background: var(--primary-gradient);
  color: #fff;
}

.eshop-help-tabs__btn:hover {
  color: #fff;
  background: var(--primary-gradient);
}

/* --- Content Wrapper --- */
.eshop-help-content {
  padding: 32px 0 40px;
  background: #fff;
}

/* Row 1: 70% cards + 30% sidebar */
.eshop-help-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

/* Left column wrapper (holds both card rows) */
.eshop-help-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Card grid — 3 equal columns */
.eshop-help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Row 2 full width */
.eshop-help-cards--row2 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

/* --- Card --- */
.eshop-help-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #EBEBF0;
}

.eshop-help-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.eshop-help-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.eshop-help-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.eshop-help-card__list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.eshop-help-card__list li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
}

.eshop-help-card__list li a {
  color: var(--text-dark);
  text-decoration: none;
}

.eshop-help-card__list li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Card 4 sub-group label */
.eshop-help-card__group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  margin: 10px 0 4px;
  list-style: none;
}

/* HOT badge */
.eshop-help-card__hot {
  display: inline-block;
  background: #FF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

/* --- Sidebar --- */
.eshop-help-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tính năng mới tile */
.eshop-help-sidebar__feature-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #EEF0FF, #F5E6FF);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.eshop-help-sidebar__feature-tile:hover {
  opacity: 0.85;
}

.eshop-help-sidebar__feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.eshop-help-sidebar__feature-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

/* Tính năng nổi bật box */
.eshop-help-sidebar__box {
  background: #fff;
  border: 1px solid #EBEBF0;
  border-radius: 12px;
  padding: 16px 20px;
}

.eshop-help-sidebar__box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.eshop-help-sidebar__link {
  display: block;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid #F0F0F5;
  line-height: 1.5;
}

.eshop-help-sidebar__link:last-child {
  border-bottom: none;
}

.eshop-help-sidebar__link:hover {
  text-decoration: underline;
}

/* Banner img-learn */
.eshop-help-sidebar__banner {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.eshop-help-sidebar__banner img {
  width: 100%;
  display: block;
}

/* Tổng đài tư vấn */
.eshop-help-sidebar__contact {
  background: #fff;
  border: 1px solid #EBEBF0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.eshop-help-sidebar__contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.eshop-help-sidebar__contact-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.eshop-help-sidebar__contact-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 10px;
}

.eshop-help-sidebar__contact-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.eshop-help-sidebar__contact-cta:hover {
  background: var(--primary-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 768–1024px */
@media (max-width: 1024px) {
  .eshop-help-layout {
    grid-template-columns: 1fr;
  }

  .eshop-help-sidebar {
    position: static;
  }

  .eshop-help-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .eshop-help-cards--row2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: <768px */
@media (max-width: 767px) {
  .eshop-help-hero {
    padding: 32px 16px 40px;
  }

  .eshop-help-hero__title {
    font-size: 20px;
  }

  .eshop-help-hero__search {
    margin: 0 16px;
  }

  .eshop-help-tabs__switcher {
    max-width: calc(100% - 32px);
  }

  .eshop-help-cards {
    grid-template-columns: 1fr;
  }

  .eshop-help-cards--row2 {
    grid-template-columns: 1fr;
  }
}
