:root {
  --ms-blue: #0066ff;
  --ms-green: #00d743;
  --ms-light-gray: #f7f7f7;
  --ms-dark-gray: #565e6a;
  --ms-gray: #9ea9bb;
  --ms-black: #161d28;
  --ms-white: #ffffff;
  --ms-border: rgba(158, 169, 187, 0.3);
  --ms-radius: 1.5rem;
  --ms-radius-md: 1rem;
  --ms-radius-sm: 0.75rem;
  --ms-font: 'DM Sans', sans-serif;
}

/* =====================
   FAQ SECTION ON INDEX
   ===================== */

.faq-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-top: 64px;
  padding: 48px 16px 64px;
  background-color: var(--ms-light-gray);
  font-family: var(--ms-font);
}

.faq-section__inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.faq-section__seo-title {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--ms-black);
  margin-bottom: 8px;
  line-height: 1.2;
}

.faq-section__subtitle {
  text-align: center;
  color: var(--ms-dark-gray);
  font-size: 1rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.faq-section__seo-title span,
.faq-gradient-text {
  background: linear-gradient(to right, var(--ms-blue), var(--ms-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--ms-white);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.faq-item:hover {
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.07);
  border-color: rgba(0, 102, 255, 0.2);
}

.faq-item.open {
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: 0 6px 32px rgba(0, 102, 255, 0.09);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ms-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ms-black);
  line-height: 1.4;
  gap: 16px;
  box-sizing: border-box;
  transition: color 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.faq-question:hover {
  color: var(--ms-blue);
}

.faq-item.open .faq-question {
  color: var(--ms-blue);
}

.faq-question-text {
  flex: 1;
  min-width: 0;
}

.faq-question-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-green));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
}

.faq-question-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
  padding: 0 24px;
  box-sizing: border-box;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq-answer-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ms-dark-gray);
  line-height: 1.65;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--ms-border);
  padding-top: 16px;
}

.faq-section__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.faq-section__link {
  font-family: var(--ms-font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ms-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 102, 255, 0.3);
  background: var(--ms-white);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.faq-section__link:hover {
  background: linear-gradient(to right, var(--ms-blue), var(--ms-green));
  color: var(--ms-white);
  border-color: transparent;
  transform: translateY(-1px);
}

.faq-section__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =====================
   SHARED PAGE STYLES
   (FAQ & ABOUT pages)
   ===================== */

.ms-page {
  min-height: 100vh;
  background: var(--ms-white);
  font-family: var(--ms-font);
  color: var(--ms-black);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ms-page-nav {
  width: 100%;
  max-width: 100%;
  height: 56px;
  background: var(--ms-light-gray);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--ms-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.ms-page-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ms-page-nav__logo img {
  height: 24px;
  display: block;
}

.ms-page-nav__back {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ms-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s ease;
}

.ms-page-nav__back:hover {
  opacity: 0.75;
}

.ms-page-nav__back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ms-page-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ms-page-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 64px 24px 48px;
  background: linear-gradient(160deg, #f7f7f7 0%, #eef4ff 50%, #f0fff6 100%);
  text-align: center;
  overflow-x: hidden;
}

.ms-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ms-white);
  border: 1px solid var(--ms-border);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ms-dark-gray);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.ms-page-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-green));
  flex-shrink: 0;
}

.ms-page-hero__title {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ms-black);
  margin: 0 0 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ms-page-hero__desc {
  font-size: 1.0625rem;
  color: var(--ms-dark-gray);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

.ms-page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
  box-sizing: border-box;
}

/* =====================
   FAQ PAGE SPECIFIC
   ===================== */

.faq-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-page-item {
  background: var(--ms-white);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.faq-page-item:hover {
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.07);
  border-color: rgba(0, 102, 255, 0.2);
}

.faq-page-item.open {
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: 0 6px 32px rgba(0, 102, 255, 0.09);
}

.faq-page-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ms-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ms-black);
  line-height: 1.4;
  gap: 16px;
  box-sizing: border-box;
  transition: color 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.faq-page-question:hover {
  color: var(--ms-blue);
}

.faq-page-item.open .faq-page-question {
  color: var(--ms-blue);
}

.faq-page-question-text {
  flex: 1;
  min-width: 0;
}

.faq-page-question-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-green));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-page-item.open .faq-page-question-icon {
  transform: rotate(45deg);
}

.faq-page-question-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-page-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
  padding: 0 24px;
  box-sizing: border-box;
}

.faq-page-item.open .faq-page-answer {
  max-height: 800px;
  padding: 0 24px 20px;
}

.faq-page-answer-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ms-dark-gray);
  line-height: 1.7;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--ms-border);
}

.faq-page-category {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin-bottom: 16px;
  margin-top: 40px;
}

.faq-page-category:first-child {
  margin-top: 0;
}

/* =====================
   ABOUT PAGE SPECIFIC
   ===================== */

.about-section {
  margin-bottom: 48px;
  box-sizing: border-box;
  max-width: 100%;
}

.about-section__title {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ms-black);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section__title-bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--ms-blue), var(--ms-green));
  flex-shrink: 0;
}

.about-section__text {
  font-size: 0.9375rem;
  color: var(--ms-dark-gray);
  line-height: 1.7;
  font-weight: 400;
  margin: 0 0 12px;
}

.about-section__text:last-child {
  margin-bottom: 0;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.about-card {
  background: var(--ms-light-gray);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-md);
  padding: 24px 20px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-card:hover {
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.18);
}

.about-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 215, 67, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.about-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ms-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card__title {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ms-black);
  margin-bottom: 6px;
}

.about-card__desc {
  font-size: 0.875rem;
  color: var(--ms-dark-gray);
  line-height: 1.55;
  font-weight: 400;
}

.about-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.about-stat {
  background: var(--ms-white);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-md);
  padding: 20px 18px;
  text-align: center;
  box-sizing: border-box;
}

.about-stat__value {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--ms-blue), var(--ms-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 4px;
}

.about-stat__label {
  font-size: 0.8125rem;
  color: var(--ms-dark-gray);
  font-weight: 500;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.about-team-card {
  background: var(--ms-light-gray);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-md);
  padding: 24px 20px;
  text-align: center;
  box-sizing: border-box;
}

.about-team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-green));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', var(--ms-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ms-white);
}

.about-team-card__name {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ms-black);
  margin-bottom: 4px;
}

.about-team-card__role {
  font-size: 0.8125rem;
  color: var(--ms-dark-gray);
  font-weight: 400;
}

/* =====================
   SHARED BOTTOM CTA
   ===================== */

.ms-page-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 215, 67, 0.05));
  border-top: 1px solid var(--ms-border);
  padding: 48px 24px;
  text-align: center;
  overflow-x: hidden;
}

.ms-page-cta__title {
  font-family: 'Montserrat', var(--ms-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ms-black);
  margin-bottom: 8px;
}

.ms-page-cta__desc {
  font-size: 0.9375rem;
  color: var(--ms-dark-gray);
  margin-bottom: 28px;
  font-weight: 400;
}

.ms-page-cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ms-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(to right, var(--ms-blue), var(--ms-green));
  color: var(--ms-white);
  font-family: var(--ms-font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.ms-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ms-btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ms-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  background: var(--ms-white);
  color: var(--ms-blue);
  font-family: var(--ms-font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(0, 102, 255, 0.3);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.ms-btn-secondary:hover {
  background: rgba(0, 102, 255, 0.06);
  border-color: var(--ms-blue);
  transform: translateY(-1px);
}

.ms-btn-secondary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =====================
   PAGE FOOTER
   ===================== */

.ms-page-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px;
  border-top: 2px solid var(--ms-light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ms-gray);
  font-family: var(--ms-font);
}

.ms-page-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ms-page-footer__link {
  color: var(--ms-gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ms-page-footer__link:hover {
  color: var(--ms-black);
}

/* =====================
   DIVIDER
   ===================== */

.ms-divider {
  width: 100%;
  max-width: 100%;
  height: 1px;
  background: var(--ms-border);
  margin: 40px 0;
  box-sizing: border-box;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 600px) {
  .faq-section {
    padding: 40px 16px 48px;
    margin-top: 48px;
  }

  .faq-section__seo-title {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 18px 16px;
  }

  .faq-answer-text {
    font-size: 0.875rem;
  }

  .ms-page-hero {
    padding: 48px 16px 36px;
  }

  .ms-page-hero__title {
    font-size: 1.75rem;
  }

  .ms-page-hero__desc {
    font-size: 0.9375rem;
  }

  .ms-page-content {
    padding: 32px 16px 60px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ms-page-cta {
    padding: 40px 16px;
  }

  .ms-page-cta__title {
    font-size: 1.25rem;
  }

  .ms-page-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }

  .faq-page-question {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .faq-page-item.open .faq-page-answer {
    padding: 0 18px 16px;
  }
}

@media (max-width: 400px) {
  .about-stat-row {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }
}