/* ============================================================
   FAQ — index & detail
   Inspired by emudhra.com HubSpot FAQ pages, refined.
   ============================================================ */

/* ===== Hero / Banner ===== */

.resources-details-section {
  padding: 7.5rem 0 2.5rem;
  background: linear-gradient(180deg, #FFF8F1 0%, #FFFBF8 60%, #fff 100%);
}
@media (min-width: 768px) {
  .resources-details-section { padding: 9.5rem 0 3.5rem; }
}

.resources-details-section .banner-wrapper {
  padding: 0;
  text-align: center;
}

.resources-details-section .data-content {
  max-width: 820px;
  margin: 0 auto;
}

.resources-details-section .data-content .main-head {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 2.125rem;
  font-weight: 700;
  color: #111928;
  margin: 0 0 14px !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}
@media (min-width: 768px) {
  .resources-details-section .data-content .main-head { font-size: 3.25rem; }
}

.resources-details-section .data-content .sub-title {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #4b5563;
  max-width: 100%;
  margin: 0 auto !important;
  line-height: 1.6;
  text-align: center;
}
@media (min-width: 768px) {
  .resources-details-section .data-content .sub-title {
    font-size: 1.25rem;
    max-width: 640px;
  }
}

/* Detail page hero (just breadcrumb) */
.faq-detail-hero {
  padding-top: 7.5rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .faq-detail-hero {
    padding-top: 8.5rem;
    padding-bottom: 2rem;
  }
}

.faq-breadcrumb { margin: 0; }
.faq-breadcrumb .breadcrumb-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: .5rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.faq-breadcrumb .breadcrumb-box {
  display: flex;
  align-items: center;
}
.faq-breadcrumb .breadcrumb-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #9ca3af;
  transition: color .15s ease;
}
.faq-breadcrumb .breadcrumb-box:hover > *:not(.breadcrumb-icon) {
  color: #f26739;
}
.faq-breadcrumb .breadcrumb-icon,
.faq-breadcrumb .breadcrumb-icon-home {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #9ca3af;
}
.faq-breadcrumb .breadcrumb-text {
  margin-left: .5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}
.faq-breadcrumb .breadcrumb-box:last-child .breadcrumb-text {
  color: #111928;
  font-weight: 600;
}

/* ===== Body wrapper ===== */

.queries-includes {
  padding: 2.5rem 0 5rem;
  background: #fff;
}
@media (min-width: 768px) {
  .queries-includes { padding: 3.5rem 0 6rem; }
}

.queries-includes .row { --bs-gutter-x: 2.5rem; }
@media (max-width: 991px) {
  .queries-includes .row { --bs-gutter-x: 1.5rem; }
}

/* ===== Left sidebar (cookie-side) ===== */

.queries-includes .cookie-side {
  background: #ffffff;
  border: 1px solid #eef0f3;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(17, 25, 40, 0.04);
}
.queries-includes .cookie-side::-webkit-scrollbar { width: 6px; }
.queries-includes .cookie-side::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.queries-includes .cookie-side::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 991px) {
  .queries-includes .cookie-side {
    position: static;
    max-height: none;
  }
}

.queries-includes .faq-section {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}
.queries-includes .faq-section:last-child { border-bottom: 0; padding-bottom: 0; }
.queries-includes .faq-section:first-child { padding-top: 0; }

.queries-includes .cookie-side .btn-faq-queries {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111928;
  background: transparent;
  border: 0;
  padding: 14px 32px 14px 0;
  width: 100%;
  text-align: left;
  position: relative;
  cursor: pointer;
  line-height: 1.45;
  transition: color .15s ease;
}
.queries-includes .cookie-side .btn-faq-queries:hover { color: #f26739; }
.queries-includes .cookie-side .btn-faq-queries:focus { outline: none; }

.queries-includes .cookie-side .btn-faq-queries::after {
  content: "\ea4a";
  font-family: 'boxicons', boxicons;
  font-size: 18px;
  position: absolute;
  right: 4px;
  top: 50%;
  -webkit-transform: translateY(-45%);
  transform: translateY(-45%);
  transition: transform .25s ease, color .15s ease;
  color: #9ca3af;
}
.queries-includes .cookie-side .btn-faq-queries.show::after,
.queries-includes .cookie-side .btn-faq-queries[aria-expanded="true"]::after {
  -webkit-transform: translateY(-45%) rotate(180deg);
  transform: translateY(-45%) rotate(180deg);
  color: #f26739;
}
.queries-includes .cookie-side .btn-faq-queries.show {
  color: #f26739;
}

.queries-includes .cookie-side .collapse {
  display: none;
  overflow: hidden;
}
.queries-includes .cookie-side .collapse.show {
  display: block;
  animation: faq-fade-in .25s ease;
}
@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.queries-includes .cookie-side ul {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
}
.queries-includes .cookie-side ul li {
  margin: 10px 0;
  padding-left: 24px;
  line-height: 1.55;
  position: relative;
}
.queries-includes .cookie-side ul li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  transition: color .15s ease;
  line-height: 1.55;
}
.queries-includes .cookie-side ul li a::before {
  content: "\ea45";
  font-family: 'boxicons', boxicons;
  color: #9ca3af;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2em;
  font-size: 1rem;
  line-height: 1.5;
  transition: color .15s ease, transform .15s ease;
}
.queries-includes .cookie-side ul li:hover a,
.queries-includes .cookie-side ul li:hover a::before,
.queries-includes .cookie-side ul li.active a,
.queries-includes .cookie-side ul li.active a::before,
.queries-includes .cookie-side ul li a.active,
.queries-includes .cookie-side ul li a.active::before {
  color: #f26739;
}
.queries-includes .cookie-side ul li:hover a::before {
  transform: translateX(2px);
}
.queries-includes .cookie-side ul li.active a,
.queries-includes .cookie-side ul li a.active {
  font-weight: 600;
}

/* ===== Right content ===== */

.queries-includes .heading-wrap {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eef0f3;
}

.queries-includes .heading-wrap h3 {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111928;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .queries-includes .heading-wrap h3 { font-size: 2.125rem; line-height: 1.25; }
}

/* Article content typography */
.queries-includes .cms-content {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
}

.queries-includes .cms-content > .faq-item > *:first-child { margin-top: 0; }
.queries-includes .cms-content > .faq-item > *:last-child { margin-bottom: 0; }

.queries-includes .cms-content h3 {
  font-size: 1.5rem;
  color: #111928;
  font-weight: 700;
  line-height: 1.35;
  margin: 4rem 0 1rem;
  letter-spacing: -0.01em;
}
.queries-includes .cms-content h3:first-child { margin-top: 0; }

.queries-includes .cms-content h5 {
  font-size: 1.25rem;
  color: #111928;
  font-weight: 700;
  text-align: left;
  margin: 4rem 0 1rem;
  letter-spacing: -0.005em;
}
.queries-includes .cms-content h5:first-child { margin-top: 0; }

.queries-includes .cms-content h4 {
  font-size: 1.375rem;
  color: #111928;
  font-weight: 700;
  margin: 4rem 0 1rem;
}
.queries-includes .cms-content h4:first-child { margin-top: 0; }

/* Belt-and-suspenders: extra top space when heading follows a paragraph or list */
.queries-includes .cms-content p + h3,
.queries-includes .cms-content p + h4,
.queries-includes .cms-content p + h5,
.queries-includes .cms-content ul + h3,
.queries-includes .cms-content ul + h4,
.queries-includes .cms-content ul + h5,
.queries-includes .cms-content ol + h3,
.queries-includes .cms-content ol + h4,
.queries-includes .cms-content ol + h5 {
  margin-top: 4rem;
}

.queries-includes .cms-content p,
.queries-includes .cms-content .cms-text {
  font-size: 1.0625rem;
  color: #374151;
  text-align: left;
  line-height: 1.95;
  margin: 0 0 1.75rem;
}

.queries-includes .cms-content p strong {
  color: #111928;
  font-weight: 600;
}

.queries-includes .cms-content .sub-title {
  font-size: 1.25rem;
  color: #111928;
  margin: 2rem 0 1.25rem;
  font-weight: 600;
}

.queries-includes .cms-content ul,
.queries-includes .cms-content ol {
  margin: 2rem 0 2.5rem;
  padding: 0;
  list-style: none;
}

.queries-includes .cms-content ul li,
.queries-includes .cms-content ol li {
  position: relative;
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.85;
  margin: 1.25rem 0;
  text-align: left;
  padding-left: 36px;
}

.queries-includes .cms-content ul li strong,
.queries-includes .cms-content ol li strong {
  color: #111928;
  font-weight: 600;
}

.queries-includes .cms-content ul li::before {
  content: "\e9b4";
  font-family: 'boxicons', boxicons;
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: 4px;
  color: #f26739;
  line-height: 1.6;
}

.queries-includes .cms-content ol {
  counter-reset: ol-counter;
}
.queries-includes .cms-content ol li {
  counter-increment: ol-counter;
  padding-left: 40px;
}
.queries-includes .cms-content ol li::before {
  content: counter(ol-counter);
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  position: absolute;
  left: 0;
  top: 6px;
  width: 26px;
  height: 26px;
  background: #FEEFE2;
  color: #f26739;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.queries-includes .cms-content a {
  color: #f26739;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: color .15s ease;
}
.queries-includes .cms-content a:hover {
  color: #d9572d;
}

.queries-includes .cms-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: #FFF8F1;
  border-left: 4px solid #f26739;
  border-radius: 8px;
  font-style: italic;
  color: #4B5563;
  font-size: 1rem;
  line-height: 1.7;
}
.queries-includes .cms-content blockquote p:last-child { margin-bottom: 0; }

.queries-includes .cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}
.queries-includes .cms-content th,
.queries-includes .cms-content td {
  border: 1px solid #E5E7EB;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.queries-includes .cms-content th {
  background: #F9FAFB;
  font-weight: 600;
  color: #111928;
}

.queries-includes .cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* ===== CTA ===== */

.faq-cta-section {
  padding: 1rem 0 5rem;
  background: #fff;
}
@media (min-width: 768px) {
  .faq-cta-section { padding: 2rem 0 6rem; }
}

.faq-cta-inner {
  position: relative;
  background: linear-gradient(135deg, #FFF8F1 0%, #F6F5FF 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .faq-cta-inner { padding: 4rem 3rem; }
}

.faq-cta-inner::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,103,57,0.18) 0%, transparent 70%);
  top: -60px;
  right: -40px;
  z-index: 0;
  pointer-events: none;
}
.faq-cta-inner::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103,54,149,0.15) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
  z-index: 0;
  pointer-events: none;
}
.faq-cta-inner > * { position: relative; z-index: 1; }

.faq-cta-inner h2 {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111928;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  text-align: center;
}
@media (min-width: 768px) {
  .faq-cta-inner h2 { font-size: 2.25rem; }
}

.faq-cta-inner p {
  font-size: 1.0625rem;
  color: #4b5563;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  text-align: center;
}

.faq-cta-inner .ems-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.faq-cta-inner .ems-btn--pri {
  background: #f26739;
  color: #fff !important;
  border: 0;
  box-shadow: 0 6px 16px rgba(242, 103, 57, 0.25);
}
.faq-cta-inner .ems-btn--pri:hover {
  background: #d9572d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 103, 57, 0.35);
}
