.single {
  margin-top: 88px;

  .breads {
    margin-top: 24px;
    margin-bottom: 99px;
    text-transform: uppercase;
  }
  .breads a.link {
    color: var(--darkGrey);
    transition: 0.3s ease;
  }

  .breads a.link:hover {
    color: var(--black);
  }

  .breads-title {
    text-transform: uppercase;
    margin-bottom: 32px;
  }

  .single-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid black;
  }
  .single-container-inner {
    margin-top: 40px;
    margin-bottom: 81px;
  }

  .single-thumbnail {
    width: 100%;
    height: 550px;
    overflow: hidden;
    margin-bottom: 64px;
  }

  .single-thumbnail img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }

  .wp-block-heading,
  p,
  .wp-block-list,
  .wp-block-columns {
    width: 100%;
    max-width: 902px;
    margin-left: auto;
    margin-right: auto;
  }

  h1,
  .h1,
  h2,
  .h2 {
    margin-bottom: 24px;
  }

  h3,
  .h3 {
    margin-bottom: 8px;
  }

  p,
  ul,
  ol {
    /* Text D */
    font-size: 16px;
    font-weight: 400;
    font-family: "Moderat";
    line-height: 130%;
    letter-spacing: 0em;
  }

  p {
    margin-bottom: 32px;
  }

  ul {
    margin-bottom: 64px;
    padding-left: 10px;
  }

  ul li::before {
    content: "•";
    font-size: 1em;
    line-height: 2;
    margin-right: 10px;
    top: 0px;
  }

  /* Default styling for outer list */

  ol {
    margin-bottom: 138px;
  }
  ol li {
    margin-bottom: -1px;
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid var(--black);
    list-style-type: decimal;
    list-style-position: inside;
    transition: background-color 0.3s ease; /* Add a background color transition for hover */
    text-transform: uppercase;

    /* Link bold D*/
    font-size: 14px;
    font-weight: 700;
    font-family: "Moderat";
    line-height: 110%;
    letter-spacing: 0em;
  }

  figcaption.wp-element-caption{
     font-family: "Moderat", sans-serif !important; 
    } 
  .wp-block-file.aligncenter a {
     font-family: "Moderat", sans-serif !important; 
     text-decoration: none;
    }

     .wp-block-file.aligncenter a:hover{
      text-decoration: underline;
      color: var(--black-total);
     }

  /* Default cursor behavior when nested list exists */
  ol li.has-children {
    cursor: pointer; /* Pointer cursor for items with nested lists */
  }

  ol li ul {
    margin-bottom: 0;
  }

  /* Hide inner <ul> or <ol> lists by default */
  ol li > ul,
  ol li > ol {
    max-height: 0; /* Hide nested list */
    overflow: hidden; /* Ensure it doesn't overflow when collapsed */
    opacity: 0; /* Make it invisible */

    transition: max-height 0.5s ease, opacity 0.3s ease; /* Smooth transition */
  }

  /* When the list is expanded, show the nested lists */
  ol li.expanded > ul,
  ol li.expanded > ol {
    max-height: 1000px; /* Allow it to expand */
    opacity: 1; /* Fade in */
  }

  ol li ul,
  ol li ul li {
    border: none;
    padding-top: 0;
    list-style-type: none;
  }
  ol li ul {
    padding-left: 0;
    padding-right: 20px;
  }
  ol li ul li {
    margin-top: 16px;
    padding: 0 !important;

    /* Text D */
    font-size: 16px;
    font-weight: 400;
    font-family: "Moderat";
    line-height: 130%;
    letter-spacing: 0em;

    text-transform: none;
  }

  ol li ul li ul li {
    margin-top: 0px;
    margin-left: 40px;
    list-style-position: outside !important;
    margin-top: -5px;
    list-style-type: disc !important;
    margin-bottom: 10px;

    /* Text D */
    font-size: 16px;
    font-weight: 400;
    font-family: "Moderat";
    line-height: 130%;
    letter-spacing: 0em;

    text-transform: none;
  }

  ol li ul li::before {
    content: "";
  }
  ol li ul li ul li::before {
    /* content: "•"; */
    margin-left: -10px;
  }

  ol li.has-children {
    background: url("/wp-content/themes/aistesite/assets/icons/arrow_expand_up.png")
      no-repeat top 18px right 24px;
    padding-right: 50px; /* Adjust this value based on the size of your background image */
    cursor: pointer; /* Make the cursor a pointer to indicate the item is clickable */
    background-size: 24px 24px;
  }

  ol li.has-children.expanded {
    background: url("/wp-content/themes/aistesite/assets/icons/arrow_expand.png")
      no-repeat top 18px right 24px;
  }

  ul li.has-children,
  ul li.has-children.expanded {
    background: none;
  }

  a {
    color: var(--darkGrey);
    text-decoration: underline;
    transition: 0.3s ease;
  }

  a:hover {
    color: var(--grey);
  }

  .wp-block-group {
    gap: 10px;
    margin-bottom: 44px;
  }

  .wp-block-file__embed {
    width: 100% !important;
    max-width: 902px !important;
    text-align: center !important;
  }

  .wp-block-file.aligncenter{
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .wp-block-file__button.wp-element-button{
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 20px !important;
  }

  .wp-block-file__button.wp-element-button{
      border-radius: 0px !important;
      border: 1px solid var(--black-total);
      background-color: var(--black-total);
      color: var(--white);
      text-decoration: none;
      text-transform: uppercase;

      /* font */
      font-size: 14px;
      font-weight: 400;
      font-family: "Moderat";
      line-height: 130%;
      letter-spacing: 0em;
  }

  .wp-block-file__button.wp-element-button:hover{
    background-color: var(--white);
      color: var(--black-total);
  }
}

@media screen and (max-width: 1000px) {
  .single {
    .single-thumbnail {
      width: 100%;
      height: 350px;
      overflow: hidden;
      margin-bottom: 64px;
    }
  }
}

@media screen and (max-width: 767px) {
  .single {
    margin-top: 56px;

    p,
    ul,
    ol {
      /* Text M */
      font-size: 14px;
      font-weight: 400;
      font-family: "Moderat";
      line-height: 130%;
      letter-spacing: 0em;
    }

    p {
      margin-bottom: 40px;
    }

    .single-thumbnail {
      width: 100%;
      height: 150px;
      overflow: hidden;
      margin-bottom: 24px;
    }

    .single-container-inner {
      margin-top: 16px;
    }

    .breads {
      margin-top: 17px;
      margin-bottom: 56px;
    }

    .breads-title {
      margin-bottom: 12px !important;
    }
    .breads-title h2 {
      margin-bottom: 0;
    }

    h1,
    .h1,
    h2,
    .h2,
    h3,
    .h3 {
      margin-bottom: 8px;
    }

    .wp-block-group {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin-bottom: 0;
    }

    ol {
      margin-bottom: 40px;
    }

    ol li {
      padding: 16px 16px;
      border-radius: 8px;
      margin-left: -15px;
      margin-right: -15px;
    }

    ol li.has-children {
      background: url("/wp-content/themes/aistesite/assets/icons/arrow_expand_up.png")
        no-repeat top 12px right 16px;
      padding-right: 50px; /* Adjust this value based on the size of your background image */
      cursor: pointer; /* Make the cursor a pointer to indicate the item is clickable */
      background-size: 24px 24px;
    }

    ol li.has-children.expanded {
      background: url("/wp-content/themes/aistesite/assets/icons/arrow_expand.png")
        no-repeat top 12px right 16px;
    }

    ul li.has-children,
    ul li.has-children.expanded {
      background: none;
    }

    ol li ul li {
      /* Text M */
      font-size: 14px;
      font-weight: 400;
      font-family: "Moderat";
      line-height: 130%;
      letter-spacing: 0em;

      margin-top: 8;
      margin-left: 0;
    }

    ol li ul li ul li {
      /* Text M */
      font-size: 14px;
      font-weight: 400;
      font-family: "Moderat";
      line-height: 130%;
      letter-spacing: 0em;
      z-index: 1;
    }

    .breads .link {
      /* Subscriptor D */
      font-size: 12px;
      font-weight: 400;
      font-family: "Moderat";
      line-height: 110%;
      letter-spacing: 0.05em;
    }
  }
}

@media screen and (max-width: 550px) {
  .single {

    .alignright.size-large.is-resized{
      width: 100% !important;
    }

     .wp-block-image figure img{
      margin: auto !important;
      width: 100% !important;
     }

    .wp-block-image .alignright{
      float: unset !important;
      margin:auto;
      margin-top: 20px;
      margin-bottom: 20px;
    }

  }
}
