* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.menu-label {
  display: inline-block;
  vertical-align: middle;
}

html[dir="ltr"] .nav-link i {
  margin-right: 0.5rem;
}

html[dir="rtl"] .nav-link i {
  margin-left: 0.5rem;
}

main {
  flex: 1; /* Push footer to bottom */
}
main {
  margin-left: 250px;
  width: calc(100vw - 250px);
  min-height: 100vh;
  margin-top: 90px; /* header height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem; /* add spacing inside */
  box-sizing: border-box;
}
html[dir="ltr"] main {
  margin-left: 250px;
  margin-right: 0;
  width: calc(100vw - 250px);
}

/* RTL layout */
html[dir="rtl"] main {
  margin-right: 250px;
  margin-left: 0;
  width: calc(100vw - 250px);
}
/* LTR: left sidebar */
html[dir="ltr"] aside {
  left: 0;
  right: auto;
}

/* RTL: right sidebar */
html[dir="rtl"] aside {
  right: 0;
  left: auto;
}
.section-title {
  text-align: start;
}

/* Make sure paragraphs are always justified and direction aware */
.paragraph-justify {
  text-align: justify;
  line-height: 1.75;
}

/* Optional RTL-specific tweaks */
html[dir="rtl"] .section-title {
  text-align: right;
}

html[dir="rtl"] .paragraph-justify {
  direction: rtl;
}

html[dir="ltr"] .paragraph-justify {
  direction: ltr;
}

/* Default LTR (no need to touch unless customizing) */
.accordion-button::after {
  transition: transform 0.2s ease-in-out;
}

/* RTL override: flip arrow to left side */
html[dir="rtl"] .accordion-button::after {
  margin-left: 0;
  margin-right: auto;
  transform: rotate(0deg); /* default collapsed state */
  transition: transform 0.2s ease-in-out;
}

/* RTL + Expanded (rotated open) */
html[dir="rtl"] .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
  main {
    margin-left: 0;
    width: 100vw;
    padding: 1rem;
  }
}

/* Small devices (landscape phones, portrait foldables) */
@media (min-width: 576px) and (max-width: 767.98px) {
  main {
    margin-left: 0;
    width: 100vw;
    padding: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  main {
    margin-left: 250px;
    width: calc(100vw - 250px);
    padding: 1.5rem;
  }

  .introduction img {
    width: 60vw;
    max-width: 400px;
    height: auto;
  }

  .introduction h2 {
    font-size: 1.75rem;
  }

  .introduction p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Large devices (small laptops/desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  main {
    margin-left: 250px;
    width: calc(100vw - 250px);
    padding: 1.25rem; /* slightly reduced padding */
  }

  .introduction img {
    width: 55vw;
    max-width: 380px;
  }

  .introduction h2 {
    font-size: 1.6rem;
  }

  .introduction p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  main {
    margin-left: 250px;
    width: calc(100vw - 250px);
    padding: 2rem 3rem; /* more breathing room */
  }

  .introduction img {
    width: 45vw;
    max-width: 460px;
  }

  .introduction h2 {
    font-size: 2rem;
  }

  .introduction p {
    font-size: 1.05rem;
    line-height: 1.75;
  }
}

@media (min-width: 1400px) {
  main {
    margin-left: 250px;
    width: calc(100vw - 250px);
    padding: 3rem 4rem;
    max-width: 1400px;
    margin-right: auto;
  }

  .introduction img {
    width: 40vw;
    max-width: 500px;
  }

  .introduction h2 {
    font-size: 2.25rem;
  }

  .introduction p {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .introduction {
    max-width: 1100px;
    margin: 0 auto;
  }
}
