/* ============================================================
   Insurance module — SaleBaoHiem BS5 Theme
   ============================================================ */

/* ── Product card (viewcat) ── */
.product-item {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border-color: var(--p);
}
.product-item-img { width: 100%; }
.product-item-img img {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: block;
}
.product-item-content {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}
.product-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.product-item-title a { color: var(--p); }
.product-item-title a:hover { color: var(--p2); }
.product-item-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 14px;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}
.product-item-button {
  background: var(--p) !important;
  color: #fff !important;
  border: none;
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
  align-self: center;
}
.product-item-button:hover { background: var(--p2) !important; color: #fff !important; }

/* ── Detail page ── */
@media (min-width: 992px) {
  .insurance-product-detail .product-sidebar {
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }
}

.insurance-product-detail .product-main-content {
  font-size: 15px;
  line-height: 1.75;
}
.insurance-product-detail .product-main-content h2,
.insurance-product-detail .product-main-content h3,
.insurance-product-detail .product-main-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--txt);
}
.insurance-product-detail .product-main-content h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.insurance-product-detail .product-main-content h3 { font-size: 1.2rem; }
.insurance-product-detail .product-main-content h4 { font-size: 1rem; }
.insurance-product-detail .product-full-bodytext img {
  max-width: 100%; height: auto;
  margin: 10px 0; border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

/* ── FAQ section ── */
.section-faq {
  background-color: #f9fafb;
  border-radius: 10px;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15);
  margin: 20px auto;
  padding: 10px;
}
.faq-h {
  color: var(--p);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px;
  text-align: center;
  text-transform: uppercase;
}
.faq-accordion { border-top: 1px solid #eee; }
.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: #fff;
}
.faq-question {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  user-select: none;
}
.faq-question.active {
  color: var(--p);
  background-color: rgba(255,180,0,.05);
}
.faq-question::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F57F25'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-size: 1.1rem;
  background-repeat: no-repeat;
  background-position: center;
  content: '';
  flex-shrink: 0;
  margin-left: auto;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.25s ease;
}
.faq-question.active::after { transform: rotate(-180deg); }
.faq-answer {
  padding: 0 15px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.faq-answer.show {
  max-height: 2000px;
  padding: 1.25rem 1.5rem;
}
