/* header styling */
.forum--full {
  word-break: break-word;
}
.forum__byline-text{
  word-break: normal;
}
.forum-header-container {
  a {
    color: var(--Nautral-700, #1e3564);
    margin-top: -50px;
    border-radius: 8px !important;
    border: 1px solid var(--Nautral-700, #1e3564);
    font-family: Helvetica;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.10000000149011612px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

    &:hover {
      border-color: #42bb96;
      color: #42bb96;
      transition: 0.2s ease-in-out;
    }
  }
}

.user__user-picture {
  img {
    width: auto;
    height: auto;
    min-width: 36px;
  }
}

.comment-forum__comment-body {
  img {
    width: 320px !important;
    height: 150px !important;
  }
}

.block--cait-forumheader {
  margin-bottom: 0 !important;

  .container {
    padding-left: 5px;
  }
}

.forum-header-container {
  justify-content: space-between;
  align-items: center;
  gap: 50px !important;
  padding-left: 0 !important;

  .forum-heading-desc {
    h2 {
      font-size: 32px;
      font-weight: 700;
      line-height: 38.4px;
      text-align: left;
      text-underline-position: from-font;
      text-decoration-skip-ink: none;
      color: var(--Nautral-700, #1e3564);
    }

    p {
      color: var(--Nautral-700, #1e3564);
      font-family: Helvetica;
      font-size: 16px;
      font-weight: 400;
      line-height: 25.6px;
      letter-spacing: var(--TitleLargeTracking);
      text-align: left;
      text-underline-position: from-font;
      text-decoration-skip-ink: none;
    }
  }

  .forum__add {
    a {
      color: var(--Nautral-700, #1e3564);
      margin-top: -50px;
      height: 52px !important;
      padding: 6px;
      gap: 8px;
      border-radius: 8px;
      border: 1px solid var(--Nautral-700, #1e3564);
      font-family: Helvetica;
      font-size: 14px;
      font-weight: 700;
      line-height: 20px;
      letter-spacing: 0.10000000149011612px;
      text-align: center;
      text-underline-position: from-font;
      text-decoration-skip-ink: none;

      &:hover {
        border-color: #42bb96;
        color: #42bb96;
        transition: 0.2s ease-in-out;
      }
    }
  }
}

.btn-primary {
  text-transform: capitalize !important;
  color: var(--Nautral-700, #1e3564);
  border-radius: 8px;
  border: 1px solid var(--Nautral-700, #1e3564);
  font-family: Helvetica;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10000000149011612px;
  text-align: center;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;

  &:hover {
    border-color: #42bb96;
    color: #42bb96;
    transition: 0.2s ease-in-out;
  }
}

@media (max-width: 375px) {
  .forum__add {
    a {
      margin-top: -215px !important;
    }
  }
}

@media (max-width: 320px) {
  .table-conatiner-forum {
    th,
    td {
      font-size: 10px !important;
    }
  }

  .forum__add {
    a {
      margin-top: -285px !important;
    }
  }
}

/* table styling */
.table-conatiner-forum {
  border-radius: 16px !important;
  box-shadow: 0px 0px 24px 0px #00000026;
  width: 100%;
  overflow-x: auto;
  display: flexbox;
  word-break: break-word;

  table {
    width: 100%;
    min-width: 600px;
  }

  th,
  td {
    padding: 15px !important;
  }

  td {
    color: var(--Nautral-700, #1e3564);
    min-height: 100px !important;

    a {
      text-decoration: underline;
    }
  }

  th:first-child {
    border-top-left-radius: 16px;
  }

  th:last-child {
    border-top-right-radius: 16px;
  }

  td:first-child {
    font-family: Helvetica;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    text-align: left;
    text-decoration-style: solid;
    text-underline-position: from-font;
    text-decoration-skip-ink: auto;

    &:hover {
      text-decoration-line: underline;
    }
  }

  td:last-child {
    font-family: Helvetica;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.011em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }

  .form__title {
    padding-left: 10px !important;
  }

  .forum-table-row {
    background: var(--Nautral-700, #1e3564);
    color: white;
    height: 51px;
    padding: 16px 24px 16px 24px;
    gap: 16px;
  }

  /* Set column widths */
  th:nth-child(1),
  td:nth-child(1) {
    width: 20%;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 10%;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 10%;
  }

  th:nth-child(4),
  td:nth-child(4) {
    width: 25%;
  }

  th:nth-child(5),
  td:nth-child(5) {
    width: 20%;
  }
}

html[dir="rtl"] {
  article[about*="/forum"] {
    direction: rtl !important;
    #edit-actions {
      flex-direction: row !important;
    }
    .comment-comment-forum-form .form-actions {
      gap: 10px !important;
    }
  }

  .forum-header-container {
    .forum-heading-desc h2,
    p {
      text-align: right !important;
    }

    .my-4 {
      margin-bottom: 0 !important;
    }
  }

  .table-conatiner-forum {
    margin-right: 1rem;

    .forum__submitted {
      .text-muted {
        direction: ltr !important;
      }
    }

    thead {
      th:first-child {
        border-top-left-radius: 0;
        border-top-right-radius: 16px;
      }

      th:last-child {
        border-top-right-radius: 0;
        border-top-left-radius: 16px;
      }
    }

    tbody {
      td {
        text-align: right;
      }
    }
  }

  .help-support-heading {
    text-align: right !important;
  }

  .help-support-description {
    text-align: right !important;
  }

  @media (max-width: 2600px) {
    .table-conatiner-forum {
      max-width: 1075px;
    }

    .forum-header-container {
      & .forum__add {
        a {
          margin-left: -1rem;
        }
      }
    }
  }

  @media (max-width: 1024px) {
    .table-conatiner-forum {
      max-width: 850px;
      margin-right: 1.5rem;
    }

    .forum-header-container {
      max-width: 885px;
      padding-right: 1rem;

      & .forum__add {
        a {
          margin-left: 0rem;
        }
      }
    }
  }

  @media (max-width: 768px) {
    .table-conatiner-forum {
      max-width: 620px;
      margin-right: 2rem;
    }
  }

  @media (max-width: 567px) {
    .forum-header-container {
      padding-right: 0rem;
    }
    .table-conatiner-forum {
      margin-right: 0rem;
    }
  }
}

@media (max-width: 768px) {
  .forum-header-container {
    flex-wrap: wrap;

    .action-links {
      padding-right: 0 !important;
      margin-top: -45px !important;
    }
  }
}

@media (max-width: 768px) {
  .forum-header-container {
    flex-wrap: wrap;

    .action-links {
      padding-left: 0 !important;
      margin-top: -45px;
    }

    .forum__add {
      a {
        padding: 12px !important;
        margin-top: 0 !important;
      }
    }
  }
}

@media (max-width: 567px) {
  .table-conatiner-forum {
    th,
    td {
      padding: 8px !important;
      font-size: 8px !important;
    }

    td:first-child {
      font-size: 14px;
      line-height: 16px;
    }

    td:last-child {
      font-size: 10px;
      line-height: 14px;
    }
  }

  .user__user-picture {
    img {
      margin-right: 15px;
    }
  }

  .card-header {
    a {
      white-space: nowrap;
      /* overflow: hidden; */
      /* text-overflow: ellipsis; */
      padding-left: 2px;
      padding-right: 3px;
    }
  }

  html[dir="rtl"] {
    /* Apply padding to comments in forum articles */
    article[about*="/forum"] .comment .row .col-md-1.pe-0 {
      padding-right: 15px !important;
    }

    /* But don't apply padding if the article contains a div with data-contextual-id */
    article[about*="/forum"]:has(div[data-contextual-id])
      .comment
      .row
      .col-md-1.pe-0 {
      padding-right: 0 !important;
    }
  }
}

.help-support-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 38.4px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--Nautral-700, rgba(30, 53, 100, 1));
}

.help-support-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  letter-spacing: var(--TitleLargeTracking);
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--Nautral-700, rgba(30, 53, 100, 1));
}

body {
  overflow-x: hidden;
}
/* iPad-specific media query */
@media only screen and (min-width: 1024px) {
  .page__content {
    .forum__name {
      padding-right: 20px;
    }
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .page__content {
    .forum__name {
      padding-right: 30px;
    }
  }
}

@media only screen and (min-width: 744px) and (max-width: 819px) {
  .table-conatiner-forum {
    th, td {
      padding: 8px !important;
      font-size: 10px !important;
    }
  }
}