/* ==========================================================================
   MES 2-Grid FAQ Widget Styles
   Scoped to .mes-2grid-faq-widget to avoid conflicts with any other section.
   ========================================================================== */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.mes-2grid-faq-widget {
  background: #fff;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .mes-2grid-faq-widget {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ── Inner constrained container ─────────────────────────────────────────── */
.mes-2grid-faq-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;           /* max-w-7xl ≈ 1280px */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .mes-2grid-faq-inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1536px) {
  .mes-2grid-faq-inner {
    max-width: 100rem;         /* 2xl breakpoint */
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ── Header (eyebrow + title) ────────────────────────────────────────────── */
.mes-2grid-faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.mes-2grid-faq-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mes-2grid-faq-eyebrow-dot {
  display: inline-block;
  width: 0.375rem;      /* h-1.5 w-1.5 */
  height: 0.375rem;
  border-radius: 9999px;
  flex-shrink: 0;
  background: #4A7BD0;
  animation: mes-faq-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes mes-faq-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.mes-2grid-faq-eyebrow-line {
  display: inline-block;
  height: 1px;
  width: 1.5rem;     /* w-6 */
  background: #4A7BD0;
  flex-shrink: 0;
}

.mes-2grid-faq-eyebrow-text {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #4A7BD0;
}

.mes-2grid-faq-title {
  font-size: clamp(1.875rem, 5vw, 3rem);   /* text-4xl → md:text-5xl */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #16315C;
  margin: 0;
}

/* ── 2-column grid ───────────────────────────────────────────────────────── */
.mes-2grid-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  text-align: left;
}

@media (min-width: 768px) {
  .mes-2grid-faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ── Column ──────────────────────────────────────────────────────────────── */
.mes-2grid-faq-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mes-2grid-faq-col {
    gap: 1.5rem;
  }
}

/* ── FAQ item card ───────────────────────────────────────────────────────── */
.mes-2grid-faq-item {
  border-radius: 0.75rem;    /* rounded-xl */
  border: 1px solid #e2e8f0; /* border-slate-200 */
  background: #f8fafc;       /* bg-slate-50 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mes-2grid-faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px 0 rgba(22, 49, 92, 0.08);
}

/* ── Toggle button ───────────────────────────────────────────────────────── */
.mes-2grid-faq-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 1rem;
  transition: background-color 0.15s ease;
}

.mes-2grid-faq-btn:hover,
.mes-2grid-faq-btn:focus-visible {
  background: #fff;
  outline: none;
}

.mes-2grid-faq-btn:focus-visible {
  box-shadow: inset 0 0 0 2px #4A7BD0;
}

/* ── Question text ───────────────────────────────────────────────────────── */
.mes-2grid-faq-question {
  font-family: 'Oswald', 'Bebas Neue', sans-serif;
  font-size: 1.125rem;    /* text-lg */
  font-weight: 600;
  line-height: 1.3;
  color: #16315C;
  margin: 0;
  flex: 1;
  padding-right: 0.5rem;
}

/* ── Icon container ──────────────────────────────────────────────────────── */
.mes-2grid-faq-icon-wrap {
  flex-shrink: 0;
  color: #f37121;   /* orange-500 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Plus/Minus SVG icon ─────────────────────────────────────────────────── */
.mes-2grid-faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  display: block;
}

/* Vertical line hides when open (= becomes minus) */
.mes-2grid-faq-vline {
  transition: opacity 0.2s ease;
}

.mes-2grid-faq-item--open .mes-2grid-faq-vline {
  display: none;
}

.mes-2grid-faq-item--open .mes-2grid-faq-icon {
  color: #16315C;
}

/* ── Answer panel ────────────────────────────────────────────────────────── */
.mes-2grid-faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;   /* text-sm */
  line-height: 1.625;    /* leading-relaxed */
  color: #475569;        /* text-slate-600 */
  border-top: 1px solid rgba(226, 232, 240, 0.6); /* border-slate-200/60 */
  padding-top: 1rem;
  display: none;         /* JS controls visibility */
}

.mes-2grid-faq-answer p {
  margin: 0;
  color: inherit;
}

.mes-2grid-faq-answer p + p {
  margin-top: 0.75rem;
}

/* ── Elementor editor container reset ───────────────────────────────────── */
/* Prevent Elementor from clobbering widget wrapper display */
.elementor-widget-mesn-2grid-faq > .elementor-widget-container {
  display: block;
}

/* ── Responsive: align eyebrow left/center/right ─────────────────────────── */
.mes-2grid-faq-header.align-left   { text-align: left; }
.mes-2grid-faq-header.align-center { text-align: center; }
.mes-2grid-faq-header.align-right  { text-align: right; }

.mes-2grid-faq-header.align-left   .mes-2grid-faq-eyebrow-row { justify-content: flex-start; }
.mes-2grid-faq-header.align-center .mes-2grid-faq-eyebrow-row { justify-content: center; }
.mes-2grid-faq-header.align-right  .mes-2grid-faq-eyebrow-row { justify-content: flex-end; }
