/* ==========================================================================
   SABUZ MART - FAQ PAGE STYLES (SCOPED & RESPONSIVE)
   ========================================================================== */

/* 1. Reset theme headers & enforce full width container for this page only */
.page-slug-faq .hero-section,
.page-slug-faq .entry-header,
.page-slug-faq #title,
.page-slug-faq .ct-page-title,
.page-slug-faqs .hero-section,
.page-slug-faqs .entry-header,
.page-slug-faqs #title,
.page-slug-faqs .ct-page-title,
.page-template-page-faq .hero-section,
.page-template-page-faq .entry-header {
  display: none !important;
}

.page-slug-faq main#main,
.page-slug-faq .ct-container-full,
.page-slug-faq .ct-container,
.page-slug-faqs main#main,
.page-slug-faqs .ct-container-full,
.page-slug-faqs .ct-container,
.page-template-page-faq main#main,
.page-template-page-faq .ct-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-slug-faq .entry-content,
.page-slug-faqs .entry-content,
.page-template-page-faq .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Page Wrapper */
.sabuz-faq-page-wrap {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  padding: 24px 0 60px 0;
  width: 100%;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* 3. Page Container (Expanded 1200px - matching Header Logo & Cart boundaries) */
.sabuz-faq-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* 4. Hero Section */
.sabuz-faq-hero {
  background-color: #edf7f2;
  border: 1px solid #e1efe7;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 215px;
  position: relative;
  box-sizing: border-box;
}

.sabuz-faq-hero-left {
  padding: 40px 36px 40px 44px;
  flex: 1;
  max-width: 680px;
  z-index: 2;
  box-sizing: border-box;
}

.sabuz-faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1;
}

.sabuz-faq-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sabuz-faq-breadcrumb a:hover {
  color: #0a4834;
}

.sabuz-faq-breadcrumb .sep {
  color: #94a3b8;
  font-size: 11px;
}

.sabuz-faq-breadcrumb .current {
  color: #1e293b;
  font-weight: 600;
}

.sabuz-faq-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #0a4834;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
}

.sabuz-faq-hero-sub {
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  max-width: 580px;
}

.sabuz-faq-hero-right {
  width: 480px;
  height: 225px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.sabuz-faq-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

/* 5. Search Bar */
.sabuz-faq-search-wrap {
  margin-bottom: 24px;
}

.sabuz-faq-search-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.sabuz-faq-search-box:focus-within {
  border-color: #0a4834;
  box-shadow: 0 4px 14px rgba(10, 72, 52, 0.08);
}

.sabuz-faq-search-icon {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.sabuz-faq-search-icon svg {
  width: 20px;
  height: 20px;
}

.sabuz-faq-search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 14.5px;
  color: #1e293b;
  padding: 8px 0;
  box-sizing: border-box;
}

.sabuz-faq-search-input::placeholder {
  color: #94a3b8;
}

.sabuz-faq-search-btn {
  background: #0a4834;
  color: #ffffff;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.sabuz-faq-search-btn:hover {
  background: #063929;
}

/* 6. FAQ Accordion Items */
.sabuz-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.sabuz-faq-item {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.sabuz-faq-item:hover {
  border-color: #d1fae5;
  box-shadow: 0 6px 16px rgba(10, 72, 52, 0.05);
}

.sabuz-faq-header {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.sabuz-faq-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf7f0;
  color: #0a4834;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sabuz-faq-question {
  flex: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0a4834;
  line-height: 1.35;
  margin: 0;
}

.sabuz-faq-chevron {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.sabuz-faq-chevron svg {
  width: 20px;
  height: 20px;
}

.sabuz-faq-item.open .sabuz-faq-chevron {
  transform: rotate(180deg);
  color: #0a4834;
}

.sabuz-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.sabuz-faq-item.open .sabuz-faq-body {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

.sabuz-faq-answer {
  padding: 0 28px 24px 84px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
}

.sabuz-faq-no-results {
  display: none;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
  margin-bottom: 24px;
}

/* 7. Bottom Support Banner */
.sabuz-faq-support-banner {
  background: #edf7f2;
  border: 1px solid #e1efe7;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  box-sizing: border-box;
}

.sabuz-faq-support-left {
  padding: 34px 36px;
  flex: 1;
  max-width: 620px;
  z-index: 2;
  box-sizing: border-box;
}

.sabuz-faq-support-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #0a4834;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.sabuz-faq-support-left p {
  font-size: 14.5px;
  color: #475569;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.sabuz-faq-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f96332 0%, #eb511b 100%);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(235, 81, 27, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sabuz-faq-support-btn:hover {
  background: linear-gradient(135deg, #eb511b 0%, #d84315 100%);
  box-shadow: 0 6px 16px rgba(235, 81, 27, 0.35);
  transform: translateY(-1px);
}

.sabuz-faq-support-right {
  width: 460px;
  height: 200px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.sabuz-faq-support-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* 8. Responsiveness Across Breakpoints */

/* Laptop & Large Tablets (<= 1240px) */
@media (max-width: 1240px) {
  .sabuz-faq-container {
    width: 90% !important;
    max-width: 1200px !important;
    padding: 0 !important;
  }
  .sabuz-faq-hero-left {
    padding: 34px 28px 34px 34px;
  }
  .sabuz-faq-hero-right {
    width: 400px;
    height: 210px;
  }
  .sabuz-faq-support-right {
    width: 380px;
    height: 190px;
  }
}

/* Medium Tablets & Landscape Mobile (<= 900px) */
@media (max-width: 900px) {
  .sabuz-faq-hero {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .sabuz-faq-hero-left {
    padding: 28px 24px 16px 24px !important;
    max-width: 100% !important;
  }
  .sabuz-faq-hero-right {
    width: 100% !important;
    height: 200px !important;
  }
  .sabuz-faq-hero-art {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%) !important;
  }

  .sabuz-faq-support-banner {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .sabuz-faq-support-left {
    padding: 28px 24px 20px 24px !important;
    max-width: 100% !important;
  }
  .sabuz-faq-support-right {
    width: 100% !important;
    height: 180px !important;
  }
  .sabuz-faq-support-art {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%) !important;
  }
  .sabuz-faq-support-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Mobile Devices (<= 689px) */
@media (max-width: 689px) {
  .sabuz-faq-container {
    width: 100% !important;
    padding: 0 16px !important;
  }
  .sabuz-faq-page-wrap {
    padding: 16px 0 40px 0 !important;
  }
  .sabuz-faq-hero {
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }
  .sabuz-faq-hero-title {
    font-size: 28px !important;
  }
  .sabuz-faq-hero-sub {
    font-size: 14px !important;
  }
  .sabuz-faq-search-box {
    padding: 4px 6px 4px 16px !important;
  }
  .sabuz-faq-search-input {
    font-size: 13.5px !important;
  }
  .sabuz-faq-search-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
  }
  .sabuz-faq-list {
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  .sabuz-faq-header {
    padding: 16px 18px !important;
    gap: 14px !important;
  }
  .sabuz-faq-num {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }
  .sabuz-faq-question {
    font-size: 15px !important;
  }
  .sabuz-faq-answer {
    padding: 0 18px 18px 64px !important;
    font-size: 13.5px !important;
  }
  .sabuz-faq-support-banner {
    border-radius: 16px !important;
  }
  .sabuz-faq-support-left h2 {
    font-size: 22px !important;
  }
  .sabuz-faq-support-left p {
    font-size: 13.5px !important;
  }
}
