/* ===========================================
   ADDITIONAL STYLES - FAQ, ABOUT, ACCORDION
   =========================================== */

/* --- SEO H1 on index page --- */
.seo-main-heading {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #202428;
  margin: 0 auto 1.5rem auto;
  max-width: 900px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0 1rem;
}

.tw-dark .seo-main-heading {
  color: #fdfdfd;
}

@media (min-width: 640px) {
  .seo-main-heading {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .seo-main-heading {
    font-size: 3rem;
  }
}

/* --- FAQ Section Wrapper --- */
.faq-section {
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 4rem;
  margin-bottom: 0;
  padding: 3rem 1rem 3rem 1rem;
  background-color: #ebf3f5;
  border-top: 1px solid rgba(253, 253, 253, 0.1);
}

.tw-dark .faq-section {
  background-color: #16191d;
  border-top: 1px solid rgba(253, 253, 253, 0.06);
}

.faq-section-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 640px) {
  .faq-section {
    padding: 4rem 1.5rem;
  }
}

/* --- FAQ Section Title --- */
.faq-section-title {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #95a5a6;
  margin: 0 0 2rem 0;
  text-align: left;
  letter-spacing: 0.01em;
}

.tw-dark .faq-section-title {
  color: #bdc3c7;
}

@media (min-width: 640px) {
  .faq-section-title {
    font-size: 1.75rem;
  }
}

/* --- FAQ Accordion List --- */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- FAQ Item --- */
.faq-item {
  background-color: #fdfdfd;
  border-radius: 1rem;
  border-top: 1px solid rgba(253, 253, 253, 0.1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.tw-dark .faq-item {
  background-color: #202428;
  border-top: 1px solid rgba(253, 253, 253, 0.06);
}

.faq-item:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
}

.tw-dark .faq-item:hover {
  background-color: #2b2e33;
}

/* --- FAQ Question Button --- */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  gap: 1rem;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(235, 243, 245, 0.6);
}

.tw-dark .faq-question:hover {
  background-color: rgba(43, 46, 51, 0.5);
}

/* --- FAQ Question Text (h2) --- */
.faq-question h2 {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #202428;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.tw-dark .faq-question h2 {
  color: #fdfdfd;
}

@media (min-width: 640px) {
  .faq-question h2 {
    font-size: 1.1rem;
  }
}

/* --- FAQ Icon (plus/minus) --- */
.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: rgba(0, 160, 208, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  color: #00a0d0;
}

.tw-dark .faq-icon {
  background-color: rgba(0, 160, 208, 0.18);
  color: #5dade2;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(45deg);
  background-color: rgba(0, 160, 208, 0.22);
}

.faq-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* --- FAQ Answer Panel --- */
.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.faq-open .faq-answer-wrapper {
  max-height: 600px;
  opacity: 1;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(213, 216, 220, 0.5);
  padding-top: 1rem;
}

.tw-dark .faq-answer {
  border-top: 1px solid rgba(53, 57, 63, 0.8);
}

/* --- FAQ Answer Text (h3) --- */
.faq-answer h3 {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.65;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tw-dark .faq-answer h3 {
  color: #bdc3c7;
}

/* --- FAQ Footer Links --- */
.faq-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(213, 216, 220, 0.4);
}

.tw-dark .faq-footer-links {
  border-top: 1px solid rgba(53, 57, 63, 0.8);
}

@media (min-width: 480px) {
  .faq-footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

.faq-footer-link-primary {
  display: inline-block;
  border-style: solid;
  transition: all 0.15s;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  text-align: center;
  color: #fdfdfd;
  background-image: linear-gradient(to right, #00a0d0, #5dade2);
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border: none;
  text-shadow: 0 1px 3px #00a0d0;
}

.faq-footer-link-primary:hover {
  color: #fdfdfd;
  background-image: linear-gradient(to right, #0090bc, #4a9fd4);
  text-decoration: none;
}

.faq-footer-link-secondary {
  display: inline-block;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: #202428;
  box-shadow: inset 0 0 0 1px #d5d8dc;
  transition: all 0.15s;
  background: transparent;
}

.faq-footer-link-secondary:hover {
  box-shadow: inset 0 0 0 1px #95a5a6;
  color: #202428;
  text-decoration: none;
}

.tw-dark .faq-footer-link-secondary {
  color: #fdfdfd;
  box-shadow: inset 0 0 0 1px rgba(253, 253, 253, 0.33);
}

.tw-dark .faq-footer-link-secondary:hover {
  box-shadow: inset 0 0 0 1px #fdfdfd;
  color: #fdfdfd;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.about-hero {
  padding: 5rem 1rem 3rem 1rem;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
}

.about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-hero {
    padding: 6rem 1.5rem 4rem 1.5rem;
  }
}

.about-hero-title {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #202428;
  margin: 0 0 1rem 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.tw-dark .about-hero-title {
  color: #fdfdfd;
}

@media (min-width: 768px) {
  .about-hero-title {
    font-size: 3.5rem;
  }
}

.about-hero-subtitle {
  font-size: 1.125rem;
  color: #95a5a6;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
}

.tw-dark .about-hero-subtitle {
  color: #bdc3c7;
}

/* --- About Section Blocks --- */
.about-section {
  max-width: 100%;
  overflow-x: hidden;
  padding: 2rem 1rem;
}

.about-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-section {
    padding: 3rem 1.5rem;
  }
}

.about-section-alt {
  background-color: #ebf3f5;
  border-top: 1px solid rgba(253, 253, 253, 0.1);
  border-bottom: 1px solid rgba(253, 253, 253, 0.1);
}

.tw-dark .about-section-alt {
  background-color: #16191d;
  border-top: 1px solid rgba(53, 57, 63, 0.8);
  border-bottom: 1px solid rgba(53, 57, 63, 0.8);
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- About Card --- */
.about-card {
  background-color: #fdfdfd;
  border-radius: 1rem;
  border-top: 1px solid rgba(253, 253, 253, 0.1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tw-dark .about-card {
  background-color: #202428;
}

.about-card:hover {
  background-color: #ebf3f5;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.tw-dark .about-card:hover {
  background-color: #2b2e33;
}

.about-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: rgba(0, 160, 208, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #00a0d0;
}

.tw-dark .about-card-icon {
  background-color: rgba(0, 160, 208, 0.18);
  color: #5dade2;
}

.about-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card-title {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #202428;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.tw-dark .about-card-title {
  color: #fdfdfd;
}

.about-card-text {
  font-size: 0.9375rem;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.6;
}

.tw-dark .about-card-text {
  color: #bdc3c7;
}

/* --- About Heading Style --- */
.about-heading {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: #202428;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.tw-dark .about-heading {
  color: #fdfdfd;
}

@media (min-width: 768px) {
  .about-heading {
    font-size: 2.25rem;
  }
}

.about-text {
  font-size: 1rem;
  color: #7f8c8d;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

.tw-dark .about-text {
  color: #bdc3c7;
}

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

/* --- About Page Footer Links --- */
.about-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(213, 216, 220, 0.4);
}

.tw-dark .about-footer-links {
  border-top: 1px solid rgba(53, 57, 63, 0.8);
}

@media (min-width: 480px) {
  .about-footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

/* --- Standalone Page Nav (faq, about pages) --- */
.standalone-nav {
  background-color: #fdfdfd;
  border-bottom: 1px solid rgba(213, 216, 220, 0.5);
  padding: 0.875rem 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.tw-dark .standalone-nav {
  background-color: #202428;
  border-bottom: 1px solid rgba(53, 57, 63, 0.8);
}

.standalone-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.standalone-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: Vazir, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #202428;
  gap: 0.5rem;
}

.tw-dark .standalone-nav-logo {
  color: #fdfdfd;
}

.standalone-nav-logo:hover {
  color: #00a0d0;
  text-decoration: none;
}

.standalone-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.standalone-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202428;
  text-decoration: none;
  transition: color 0.2s ease;
}

.standalone-nav-link:hover {
  color: #00a0d0;
  text-decoration: none;
}

.tw-dark .standalone-nav-link {
  color: #fdfdfd;
}

.tw-dark .standalone-nav-link:hover {
  color: #5dade2;
}

/* --- Standalone Page Footer --- */
.standalone-footer {
  background-color: #16191d;
  padding: 2rem 1rem;
  margin-top: 0;
}

.standalone-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .standalone-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.standalone-footer-text {
  font-size: 0.8125rem;
  color: #7f8c8d;
  margin: 0;
}

.standalone-footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.standalone-footer-link {
  font-size: 0.8125rem;
  color: #7f8c8d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.standalone-footer-link:hover {
  color: #fdfdfd;
  text-decoration: none;
}

/* --- Button Styles reusable for standalone pages --- */
.btn-primary {
  display: inline-block;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  text-align: center;
  color: #fdfdfd;
  background-image: linear-gradient(to right, #00a0d0, #5dade2);
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border: none;
  text-shadow: 0 1px 3px #00a0d0;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary:hover {
  color: #fdfdfd;
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-block;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: #202428;
  box-shadow: inset 0 0 0 1px #d5d8dc;
  transition: all 0.15s;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  box-shadow: inset 0 0 0 1px #95a5a6;
  color: #202428;
  text-decoration: none;
}

.tw-dark .btn-secondary {
  color: #fdfdfd;
  box-shadow: inset 0 0 0 1px rgba(253, 253, 253, 0.33);
}

.tw-dark .btn-secondary:hover {
  box-shadow: inset 0 0 0 1px #fdfdfd;
  color: #fdfdfd;
}

/* --- FAQ Full Page Styles --- */
.faq-page-wrapper {
  min-height: 100vh;
  background-color: #f5f9fa;
  display: flex;
  flex-direction: column;
}

.tw-dark .faq-page-wrapper {
  background-color: #16191d;
}

.faq-page-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1rem 4rem 1rem;
}

@media (min-width: 640px) {
  .faq-page-content {
    padding: 4rem 1.5rem 5rem 1.5rem;
  }
}

.faq-page-title {
  font-family: Vazir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #202428;
  margin: 0 0 0.75rem 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.tw-dark .faq-page-title {
  color: #fdfdfd;
}

@media (min-width: 768px) {
  .faq-page-title {
    font-size: 3rem;
  }
}

.faq-page-subtitle {
  font-size: 1.0625rem;
  color: #95a5a6;
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
}

.tw-dark .faq-page-subtitle {
  color: #bdc3c7;
}

/* --- Category Label --- */
.faq-category-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00a0d0;
  margin: 2rem 0 0.75rem 0;
  display: block;
}

.tw-dark .faq-category-label {
  color: #5dade2;
}

/* --- About Page Wrapper --- */
.about-page-wrapper {
  min-height: 100vh;
  background-color: #f5f9fa;
  display: flex;
  flex-direction: column;
}

.tw-dark .about-page-wrapper {
  background-color: #16191d;
}

/* --- Stats Row on About Page --- */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .about-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-stat-item {
  background-color: #fdfdfd;
  border-radius: 1rem;
  border-top: 1px solid rgba(253, 253, 253, 0.1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  text-align: center;
}

.tw-dark .about-stat-item {
  background-color: #202428;
}

.about-stat-value {
  font-family: Vazir, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #202428;
  display: block;
  margin-bottom: 0.25rem;
}

.tw-dark .about-stat-value {
  color: #fdfdfd;
}

.about-stat-label {
  font-size: 0.8125rem;
  color: #95a5a6;
  font-weight: 500;
}

.tw-dark .about-stat-label {
  color: #bdc3c7;
}

/* --- Highlight accent text --- */
.text-accent {
  color: #00a0d0;
}

.tw-dark .text-accent {
  color: #5dade2;
}

/* --- Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(213, 216, 220, 0.6), transparent);
  border: none;
  margin: 2rem 0;
}

.tw-dark .section-divider {
  background: linear-gradient(to right, transparent, rgba(53, 57, 63, 0.8), transparent);
}

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Prevent horizontal overflow globally for new sections --- */
.faq-section,
.about-page-wrapper,
.faq-page-wrapper,
.about-section,
.about-hero {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}