/* ============================================================
   RESOURCES PAGES — FAQs + Blogs
   ============================================================ */

.fq-page,
.bp-page {
  --rs-navy: #0b2147;
  --rs-sky: #3d7ea6;
  --rs-amber: #e8913a;
  --rs-ink: #1a2744;
  --rs-mute: #536274;
  --rs-shell: 1320px;
  --rs-gutter: clamp(20px, 5vw, 64px);
  background: #fff;
  color: var(--rs-ink);
  overflow-x: clip;
}

.fq-shell,
.bp-shell {
  width: 100%;
  max-width: var(--rs-shell);
  margin-inline: auto;
  padding-inline: var(--rs-gutter);
}

.fq-section,
.bp-section {
  position: relative;
  padding-block: clamp(64px, 9vw, 110px);
}

.fq-accent,
.bp-accent {
  color: var(--rs-amber);
}

.fq-heading,
.bp-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: var(--rs-ink);
  margin: 0 0 14px;
}

.fq-heading-rule,
.bp-heading-rule {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  margin-bottom: 22px;
}

.fq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rs-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rs-mesh-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

@keyframes rs-shine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

/* ---------- Shared hero ---------- */

.fq-hero,
.bp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 88px);
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

.fq-hero > .fq-hero__sonar,
.bp-hero > .bp-hero__sonar {
  position: absolute;
  inset: 0;
  z-index: 0;
  --sonar-grid-color: #9bb8cf;
}

.fq-hero__content,
.bp-hero__content {
  position: relative;
  z-index: 1;
}

.fq-breadcrumb,
.bp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--rs-mute);
}

.fq-breadcrumb a,
.bp-breadcrumb a {
  color: var(--rs-navy) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.fq-breadcrumb a:hover,
.bp-breadcrumb a:hover {
  color: var(--rs-amber) !important;
}

.fq-hero__title,
.bp-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--rs-navy);
  margin: 0 0 18px;
}

.fq-hero__rule,
.bp-hero__rule {
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8913a 0%, #3d7ea6 100%);
  margin-bottom: 22px;
}

.fq-hero__lead,
.bp-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--rs-mute);
}

/* ---------- FAQ intro ---------- */

.fq-intro {
  padding-block: clamp(40px, 6vw, 72px);
  background: #fff;
}

.fq-intro__panel {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .fq-intro__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
  }
}

.fq-intro__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--rs-mute);
}

/* ---------- FAQ accordion ---------- */

.fq-list {
  overflow: hidden;
  background:
    radial-gradient(46% 40% at 0% 0%, rgba(232, 145, 58, 0.1) 0%, transparent 58%),
    radial-gradient(46% 40% at 100% 100%, rgba(61, 126, 166, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f7f4ed 0%, #f4f8fc 100%);
}

.fq-list__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 33, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 33, 71, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  animation: rs-mesh-drift 28s linear infinite;
}

.fq-accordion {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.fq-item {
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 12px 30px rgba(26, 39, 68, 0.05);
  overflow: hidden;
  animation: rs-card-in 0.65s ease both;
  animation-delay: var(--fq-delay, 0ms);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.fq-item:hover,
.fq-item.is-open {
  border-color: rgba(61, 126, 166, 0.28);
  box-shadow: 0 18px 40px rgba(26, 39, 68, 0.1);
}

.fq-item.is-open {
  transform: translateY(-2px);
}

.fq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.fq-item__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--rs-ink);
}

.fq-item__num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--rs-amber);
}

.fq-item:nth-child(3n + 2) .fq-item__num {
  color: var(--rs-sky);
}

.fq-item:nth-child(3n) .fq-item__num {
  color: var(--rs-navy);
}

.fq-item__question {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.35;
}

.fq-item__icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(11, 33, 71, 0.14);
  background: #fff;
  flex-shrink: 0;
}

.fq-item__icon span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--rs-navy);
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease, opacity 0.28s ease, background-color 0.28s ease;
}

.fq-item__icon span:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.fq-item.is-open .fq-item__icon {
  border-color: rgba(232, 145, 58, 0.45);
  background: rgba(232, 145, 58, 0.1);
}

.fq-item.is-open .fq-item__icon span {
  background: var(--rs-amber);
}

.fq-item.is-open .fq-item__icon span:last-child {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.fq-item__panel {
  overflow: hidden;
}

.fq-item__body {
  padding: 0 22px 22px 56px;
  color: var(--rs-mute);
  font-size: 15px;
  line-height: 1.75;
  animation: rs-card-in 0.35s ease both;
}

.fq-item__body p {
  margin: 0 0 14px;
}

.fq-item__body p:last-child {
  margin-bottom: 0;
}

.fq-item__body ul {
  margin: 0 0 14px;
  padding-left: 1.15rem;
}

.fq-item__body li {
  margin-bottom: 8px;
}

.fq-item__body li:last-child {
  margin-bottom: 0;
}

.fq-item__body strong {
  color: var(--rs-ink);
}

@media (max-width: 575px) {
  .fq-item__body {
    padding-left: 22px;
  }
}

/* ---------- FAQ contact ---------- */

.fq-contact {
  background:
    radial-gradient(46% 40% at 0% 50%, rgba(232, 145, 58, 0.1) 0%, transparent 58%),
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

.fq-contact__layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .fq-contact__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }
}

.fq-contact__copy p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--rs-mute);
  max-width: 46ch;
}

.fq-contact__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fq-contact__points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--rs-mute);
}

.fq-contact__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8913a 0%, #3d7ea6 100%);
}

.fq-contact__form {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 22px 48px rgba(26, 39, 68, 0.08);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  overflow: hidden;
}

.fq-contact__form::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #e8913a 0%, #3d7ea6 55%, #0b2147 100%);
}

.fq-contact__panel {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ---------- Blog grid ---------- */

.bp-grid {
  overflow: hidden;
  background:
    radial-gradient(46% 40% at 0% 0%, rgba(232, 145, 58, 0.1) 0%, transparent 58%),
    radial-gradient(46% 40% at 100% 100%, rgba(61, 126, 166, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f7f4ed 0%, #f4f8fc 100%);
}

.bp-grid__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 33, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 33, 71, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  animation: rs-mesh-drift 28s linear infinite;
}

.bp-grid__head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 52ch;
}

.bp-grid__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--rs-mute);
}

.bp-posts {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 700px) {
  .bp-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bp-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bp-card {
  margin: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 33, 71, 0.1);
  box-shadow: 0 14px 36px rgba(26, 39, 68, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: rs-card-in 0.7s ease both;
  animation-delay: var(--bp-delay, 0ms);
}

.bp-card--amber {
  border-top: 3px solid #e8913a;
}

.bp-card--sky {
  border-top: 3px solid #3d7ea6;
}

.bp-card--navy {
  border-top: 3px solid #0b2147;
}

.bp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 126, 166, 0.28);
  box-shadow: 0 24px 52px rgba(26, 39, 68, 0.12);
}

.bp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0b2147 0%, #3d7ea6 100%);
}

.bp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 56%
  );
  opacity: 0;
  pointer-events: none;
}

.bp-card:hover .bp-card__shine {
  opacity: 1;
  animation: rs-shine 0.9s ease;
}

.bp-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
}

.bp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 12.5px;
  color: var(--rs-mute);
}

.bp-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(11, 33, 71, 0.06);
  color: var(--rs-navy);
}

.bp-card--amber .bp-card__cat {
  background: rgba(232, 145, 58, 0.14);
  color: #b86a1f;
}

.bp-card--sky .bp-card__cat {
  background: rgba(61, 126, 166, 0.14);
  color: #2d5f7d;
}

.bp-card__title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
}

.bp-card__title a {
  color: var(--rs-ink) !important;
  text-decoration: none !important;
}

.bp-card__title a:hover {
  color: var(--rs-sky) !important;
}

.bp-card__summary {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rs-mute);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-navy) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, gap 0.2s ease;
}

.bp-card--amber .bp-card__cta {
  color: #b86a1f !important;
}

.bp-card--sky .bp-card__cta {
  color: #2d5f7d !important;
}

.bp-card__cta:hover {
  gap: 12px;
  color: var(--rs-amber) !important;
}

.bp-empty {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 33, 71, 0.1);
}

.bp-empty h3 {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  color: var(--rs-navy);
}

.bp-empty p {
  margin: 0;
  color: var(--rs-mute);
}

@media (prefers-reduced-motion: reduce) {
  .fq-list__mesh,
  .bp-grid__mesh,
  .fq-item,
  .bp-card,
  .fq-item__body,
  .bp-card__shine,
  .fq-item__icon span {
    animation: none !important;
    transition: none !important;
  }

  .bp-card:hover,
  .fq-item.is-open {
    transform: none;
  }
}
