/* ============================================
   FAQ Page Styles — 1:1 Recreation
   ============================================ */

/* --- Banner --- */
.zs-faq-banner {
  background: linear-gradient(135deg, #161c29 0%, #2a3245 100%);
  background-image: url('../img/contact_banner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding-bottom: 80px;
}

.zs-faq-banner-inner {
  position: relative;
}

.zs-faq-breadcrumb {
  padding: 12px 0 60px;
  font-size: var(--zs-font-size-sm);
  color: rgba(255,255,255,0.6);
}

.zs-faq-breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.zs-faq-breadcrumb a:hover {
  color: #fff;
}

.zs-faq-banner-title {
  font-size: var(--zs-font-size-4xl);
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* --- Search Bar (overlapping banner) --- */
.zs-faq-search-section {
  position: relative;
  z-index: 10;
  margin-top: -28px;
}

.zs-faq-search-bar {
  max-width: 1150px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 12px 56px;
  overflow: hidden;
}

.zs-faq-search-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.zs-faq-search-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zs-color-text);
  cursor: pointer;
  background: none;
  border: none;
}

.zs-faq-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--zs-font-size-sm);
  color: var(--zs-color-text-dark);
  background: transparent;
  padding: 4px 0;
}

.zs-faq-search-input::placeholder {
  color: var(--zs-color-text-light);
}

/* --- Tab Navigation --- */
.zs-faq-tabs-section {
  margin-top: 50px;
}

.zs-faq-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--zs-color-border);
}

.zs-faq-tab {
  position: relative;
  display: block;
  padding: 16px 48px;
  white-space: nowrap;
  font-size: var(--zs-font-size-base);
  color: var(--zs-color-text);
  transition: color 0.3s ease;
}

.zs-faq-tab:hover {
  color: var(--zs-color-primary);
}

.zs-faq-tab.active {
  color: var(--zs-color-primary);
}

.zs-faq-tab-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--zs-color-primary);
  display: none;
}

.zs-faq-tab.active .zs-faq-tab-line {
  display: block;
}

/* --- FAQ Content --- */
.zs-faq-content-section {
  margin-top: 80px;
}

.zs-faq-list {
  max-width: 1056px;
  margin: 0 auto;
}

.zs-faq-item {
  border-bottom: 1px solid var(--zs-color-border);
}

.zs-faq-details {
  width: 100%;
}

.zs-faq-details summary {
  list-style: none;
}

.zs-faq-details summary::-webkit-details-marker {
  display: none;
}

.zs-faq-question {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.zs-faq-question:hover .zs-faq-q-text {
  color: var(--zs-color-primary);
}

.zs-faq-q-label {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-right: 20px;
  line-height: 1;
}

.zs-faq-q-text {
  flex: 1;
  font-size: var(--zs-font-size-base);
  font-weight: 600;
  color: var(--zs-color-text-dark);
  margin-top: 8px;
  transition: color 0.3s ease;
}

.zs-faq-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  margin-top: 12px;
  transition: transform 0.3s ease;
  color: var(--zs-color-text-light);
}

.zs-faq-details[open] .zs-faq-arrow {
  transform: rotate(180deg);
}

/* --- FAQ Answer --- */
.zs-faq-answer {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: #f5f5f5;
  animation: zsFaqFadeIn 0.3s ease;
}

@keyframes zsFaqFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.zs-faq-a-label {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-right: 20px;
  line-height: 1;
}

.zs-faq-a-text {
  margin-top: 8px;
}

.zs-faq-a-text p {
  font-size: var(--zs-font-size-sm);
  line-height: 1.8;
  color: var(--zs-color-text);
}

/* --- Contact CTA --- */
.zs-faq-contact-cta {
  text-align: center;
  margin-top: 40px;
  font-size: var(--zs-font-size-2xl);
  font-weight: 600;
  color: var(--zs-color-text-dark);
}

.zs-faq-contact-cta h3 {
  margin-bottom: 4px;
}

.zs-faq-email-link {
  color: var(--zs-color-primary);
  text-decoration: underline;
}

.zs-faq-email-link:hover {
  color: var(--zs-color-primary-dark);
}

/* --- Knowledge Blog Section --- */
.zs-faq-blog-section {
  margin-top: 80px;
  padding: 80px 0;
  background: #f2f6f5;
}

.zs-faq-blog-title {
  font-size: var(--zs-font-size-3xl);
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-bottom: 40px;
}

.zs-faq-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.zs-faq-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.zs-faq-blog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.zs-faq-blog-img {
  aspect-ratio: 305 / 172;
  overflow: hidden;
}

.zs-faq-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.zs-faq-blog-card:hover .zs-faq-blog-img img {
  transform: scale(1.05);
}

.zs-faq-blog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zs-faq-blog-card-title {
  font-size: var(--zs-font-size-base);
  font-weight: 600;
  color: var(--zs-color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zs-faq-blog-excerpt {
  margin-top: 8px;
  font-size: var(--zs-font-size-sm);
  line-height: 1.7;
  color: var(--zs-color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.zs-faq-blog-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 40px;
  border-top: 1px solid var(--zs-color-border);
  font-size: var(--zs-font-size-xs);
  color: var(--zs-color-text);
  transition: color 0.3s ease;
}

.zs-faq-blog-card:hover .zs-faq-blog-more {
  color: var(--zs-color-primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .zs-faq-search-bar {
    padding: 10px 48px;
  }
  .zs-faq-tab {
    padding: 12px 40px;
  }
  .zs-faq-content-section {
    margin-top: 60px;
  }
  .zs-faq-q-label,
  .zs-faq-a-label {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .zs-faq-banner {
    padding-bottom: 60px;
  }
  .zs-faq-banner-title {
    font-size: var(--zs-font-size-2xl);
  }
  .zs-faq-search-bar {
    padding: 10px 40px;
  }
  .zs-faq-search-inner {
    gap: 0;
  }
  .zs-faq-tab {
    padding: 12px 24px;
    font-size: var(--zs-font-size-sm);
  }
  .zs-faq-content-section {
    margin-top: 40px;
  }
  .zs-faq-q-label,
  .zs-faq-a-label {
    font-size: 20px;
    margin-right: 8px;
  }
  .zs-faq-question {
    padding: 12px 8px;
  }
  .zs-faq-answer {
    padding: 12px 8px;
  }
  .zs-faq-contact-cta {
    font-size: var(--zs-font-size-lg);
  }
  .zs-faq-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .zs-faq-blog-section {
    margin-top: 40px;
    padding: 40px 0;
  }
}

/* --- Mobile: Sticky tabs + horizontal scroll with arrows --- */
@media (max-width: 1024px) {
  .zs-faq-tabs-section {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #fff;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .zs-faq-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  .zs-faq-tabs::-webkit-scrollbar { display: none; }
  .zs-faq-tabs-wrap {
    position: relative;
  }
  .zs-faq-tabs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    transition: background 0.2s;
  }
  .zs-faq-tabs-arrow:hover {
    background: rgba(0,0,0,0.3);
  }
  .zs-faq-tabs-arrow.zs-tabs-arrow-left {
    left: -2px;
  }
  .zs-faq-tabs-arrow.zs-tabs-arrow-right {
    right: -2px;
  }
  .zs-faq-tabs-arrow.zs-hidden {
    display: none;
  }
}
