@media (min-width: 1441px) {
    .ast-narrow-container .site-content > .ast-container {
        max-width: 1312px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1440px) {
    .ast-narrow-container .site-content > .ast-container {
        max-width: 1312px;
    }
}

.ast-narrow-container .site-content {
    background-color: #fff;
}

.text_with_title {
    margin-bottom: 24px;

    .text_title {
        padding: 20px;
        border: 1px solid rgba(4, 31, 51, 0.1);
        position: relative;
        transition: height 1s ease;
        font-size: 24px;

        &:hover {
            cursor: pointer;
        }

        &::after {
            content: "";
            display: inline-block;
            width: 18px;
            height: 10px;
            background-image: url(../icons/arrow_down_menu.svg);
            background-size: cover;
            background-repeat: no-repeat;
            position: absolute;
            right: 0;
            top: 40px;
            transform: translateY(-50%);
            transition: transform 0.3s ease;
            margin-right: 20px;
        }

        /* Add rotation for the arrow when expanded */
        &.expanded::after {
            transform: translateY(-50%) rotate(180deg); /* Rotate arrow icon when expanded */
        }
    }

    .expanded {
        .text_text {
            visibility: visible; /* Show content when expanded */
            opacity: 1; /* Make visible when expanded */
            transform: translateY(0); /* Move to correct position */
            max-height: 500px; /* Use a large enough value to allow for expansion */
            margin-top: 15px; /* Apply margin-top when expanded */
            pointer-events: auto; /* Allow interaction when expanded */
            overflow: visible;
        }
    }

    .text_text {
        visibility: hidden; 
        opacity: 0; 
        transform: translateY(-10px); 
        max-height: 0; 
        overflow: hidden; 
        pointer-events: none;
        transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, margin-top 0.5s ease;
        font-size: 16px;
        margin-left: 40px;
        margin-top: 0; 
        position: relative;
        padding-left: 40px;
        margin-left: 0;

        &::before {
            content: "";
            display: inline-block;
            width: 18px;
            height: 10px;
            background-image: url(../icons/arrow_down_menu.svg);
            background-size: cover;
            background-repeat: no-repeat;
            position: absolute;
            left: 0px;
            top: 1px;
            rotate: 180deg;
            transform: translateY(-50%);
            transition: transform 0.3s ease;
            margin-right: 20px;
        }
    }
}


.ast-separate-container #primary {
    margin: 0 !important;
    border-top: 1px solid rgba(4, 31, 51, 0.1);
}

.ast-separate-container .ast-article-single {
    padding: 0 !important;
}

.post-navigation {
    display: none;
}

.entry-title {
    font-size: 48px !important;
    max-width: 736px;
    margin-bottom: 0 !important;
    margin-left: 96px;
}

.entry-header  {
    margin-bottom: 24px !important;
}

.breadcrumb {
    margin-top: 24px;
    margin-bottom: 48px;

    a {
        color: #000;
        text-decoration: none;
        font-size: 12px;

        .title {
            color: #000;
        }
    }

    .separator {
        &::before {
            content: '' !important;
            background-image: url(../icons/s-arrow.svg);
            display: inline-block; 
            width: 4px;
            height: 8px; 
            background-size: cover;
            background-repeat: no-repeat;
            margin-left: 10px;
            margin-right: 10px;
        }
    }

    .title {
        font-size: 12px;
        color: rgba(0, 0, 0, 0.7);
    }
}

.category {
    display: flex;
    margin-bottom: 24px;
    margin-left: 96px;

    .category-item {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        font-size: 14px;
        padding: 5px;
        background-color: rgba(158, 121, 77, 0.1);
        margin-right: 10px;
    }
}

.post-date {
    font-size: 14px;
    margin-bottom: 24px;
    margin-left: 96px;
}

.page-summary {
    margin: 0 0 80px 96px !important;
    max-width: 736px;
    font-size: 24px;
}

.post-thumb {
    margin-bottom: 80px;
    margin-left: 96px !important;
    margin-right: 150px;

    img {
        min-width: 928px;
        max-width: 928px;
        box-shadow: none;
    }
}

.single-post, .single-events, .single-galery {
    .entry-content > * {
        margin: 0;
    }

    .entry-content {
        .post-thumb {
            margin-bottom: 80px;
            margin-left: 96px !important;
            margin-right: 150px;

            img {
                min-width: 928px;
                max-width: 928px;
                box-shadow: none;
            }
        }

        p {
            margin-left: 288px;
            margin-right: 150px;
            margin-bottom: 16px;
            line-height: 1.5;

            a {
                text-decoration: none;
                font-size: 14px;
                color: #000;
                margin-left: 25px;
                margin-bottom: 16px;

                &::before {
                    content: "";
                    position: absolute;
                    width: 18px;
                    height: 19px;
                    margin-left: -25px;
                    background: url('../icons/link.svg') no-repeat center center;
                    background-size: contain;
                }

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

        ul {
            margin: 0 0 0 320px;
            margin-right: 150px;
            padding: 0;
            line-height: 1.5;
            list-style-type: none;
            margin-bottom: 40px;

            li::before {
                content: "";
                position: absolute;                
                margin-left: -20px;
                width: 6px;
                margin-top: 8px;
                height: 6px;
                background: url('../icons/list-1.svg') no-repeat center center;
                background-size: contain;
            }

            ul {
                margin: 0 0 0 48px;

                li::before {
                    content: "";
                    position: absolute;                
                    margin-left: -20px;
                    width: 6px;
                    margin-top: 8px;
                    height: 6px;
                    background: url('../icons/list-2.svg') no-repeat center center;
                    background-size: contain;
                }
            }

            li {
                margin: 0;
                line-height: 1.5;
            }
        }

        h1 {
            font-size: 40px;
            margin-bottom: 64px;
            margin-left: 96px;
            margin-right: 150px;
        }

        h2, h3, h4, h5 {
            font-size: 28px;
            margin-left: 288px;
            margin-bottom: 12px;
            margin-right: 150px;
        }

        .page-highlighted-text{
            margin-left: 288px;
            margin-right: 150px;
            border-left: 6px solid #9E794D;
            padding-left: 16px;
            margin-bottom: 16px;
        }

        .wp-block-file {
            a:nth-of-type(2) {
                display: none;
            }

            a {
                text-decoration: none;
                font-size: 14px;
                margin-left: 310px;
                color: #000;
                margin-bottom: 16px;

                &::before {
                    content: "";
                    position: absolute;
                    width: 18px;
                    height: 19px;
                    margin-left: -25px;
                    background: url('../icons/file.svg') no-repeat center center;
                    background-size: contain;
                }

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

        .page-post-gallery {
            margin-left: 286px;
            margin-right: 150px;
            width: 736px;
            max-width: 736px;

            .item {
                width: 736px;
                max-width: 736px;

                img {
                    width: 736px;
                    max-width: 736px;
                    box-shadow: none;
                }
            }
        }

        .page-count-for {
            font-size: 14px;
            margin-left: 286px;
            margin-right: 150px;
            margin-bottom: 40px;
            margin-top: 10px;
        }

        .slick-prev {
            border-radius: 0;
            box-shadow: none;
            top: 50%;
            position: absolute;
            z-index: 1;
            margin-left: 50px;
      
            &::before {
              content: '' !important;
              background-image: url(../icons/slider-button-2-page.svg);
              display: inline-block; 
              width: 60px;
              height: 60px; 
              background-size: cover;
              background-repeat: no-repeat;
              opacity: 0.9;
            }
      
            &:hover {
              opacity: 0.8;
            }
      
            &:focus {
              opacity: 0.8;
            }
          }
      
          .slick-next {
            border-radius: 0;
            box-shadow: none;
            position: absolute;
            top: 50%;
            z-index: 1;
            margin-right: 85px;
      
            &::before {
              content: '' !important;
              background-image: url(../icons/slider-button-1-page.svg);
              display: inline-block; 
              width: 60px;
              height: 60px; 
              background-size: cover;
              background-repeat: no-repeat;
              opacity: 0.9;
            }
      
            &:hover {
              opacity: 0.8;
            }
      
            &:focus {
              opacity: 0.8;
            }
          }
      
          .slick-next.slick-disabled {
            &::before {
              background-image: url(../icons/slider-button-1-gray.svg);
              opacity: 1;
            }
      
            &:hover {
              opacity: 1;
            }
      
            &:focus {
              opacity: 1;
            }
          }
      
          .slick-disabled {
            &::before {
              background-image: url(../icons/slider-button-2-grey.svg);
              opacity: 1;
            }
      
            &:hover {
              opacity: 1;
            }
      
            &:focus {
              opacity: 1;
            }
          }

        .page-share-buttons {
            margin-top: 40px;
            margin-bottom: 104px;
            margin-left: 96px;
            display: flex;
            flex-direction: row; /* Default value, can be omitted */
            justify-content: flex-start; /* Align items to the start of the flex container */
            align-items: center; /* Align items vertically to the center */

            .title {
                font-size: 20px;
                margin-right: 16px;
            }

            .share-facebook {
                font-size: 14px;
                padding: 10px;

                &::before {
                    content: '' !important;
                    background-image: url(../icons/facebook.svg);
                    display: inline-block; 
                    width: 20px;
                    height: 20px; 
                    background-size: cover;
                    background-repeat: no-repeat;
                    opacity: 1;
                    margin-top: 5px;
                    margin-right: 10px 0 10px 10px;
                }
            }

            .share-facebook-link {
                margin-top: 16px;
            }

            a.facebook-url {
                display: flex;
                font-size: 14px;
                padding-right: 5px;
                text-decoration: none;
                color: #000;
                margin-right: 16px;

                &:hover {
                    background-color: rgba(4, 31, 51, 0.1);
                }
            }

            .share-twitter {
                font-size: 14px;
                padding: 10px;

                &::before {
                    content: '' !important;
                    background-image: url(../icons/twitter.svg);
                    display: inline-block; 
                    width: 20px;
                    height: 20px; 
                    background-size: cover;
                    background-repeat: no-repeat;
                    opacity: 1;
                    margin-top: 5px;
                    margin-right: 10px 0 10px 10px;
                }
            }

            .share-twitter-link {
                margin-top: 16px;
            }

            a.twitter-url {
                display: flex;
                font-size: 14px;
                padding-right: 5px;
                text-decoration: none;
                color: #000;
                margin-right: 16px;

                &:hover {
                    background-color: rgba(4, 31, 51, 0.1);
                }
            }

            .share-email {
                font-size: 14px;
                padding: 10px;

                &::before {
                    content: '' !important;
                    background-image: url(../icons/email.svg);
                    display: inline-block; 
                    width: 24px;
                    height: 20px; 
                    background-size: cover;
                    background-repeat: no-repeat;
                    opacity: 1;
                    margin-top: 5px;
                    margin-right: 10px 0 10px 10px;
                }
            }

            .share-email-link {
                margin-top: 16px;
            }

            a.email-url {
                display: flex;
                font-size: 14px;
                padding-right: 5px;
                text-decoration: none;
                color: #000;
                margin-right: 16px;

                &:hover {
                    background-color: rgba(4, 31, 51, 0.1);
                }
            }

            .share-copy {
                font-size: 14px;
                padding: 10px;

                &::before {
                    content: '' !important;
                    background-image: url(../icons/copy.svg);
                    display: inline-block; 
                    width: 20px;
                    height: 20px; 
                    background-size: cover;
                    background-repeat: no-repeat;
                    opacity: 1;
                    margin-top: 5px;
                    margin-right: 10px 0 10px 10px;
                }
            }

            .share-copy-link {
                margin-top: 16px;
            }

            a.copy-url {
                display: flex;
                font-size: 14px;
                padding-right: 5px;
                text-decoration: none;
                color: #000;
                margin-right: 16px;

                &:hover {
                    background-color: rgba(4, 31, 51, 0.1);
                }
            }
        }

        .related-content {
            margin-left: 96px;
            margin-bottom: 64px;
            text-decoration: none;
            color: #000;
            max-width: 1170px;

            .slick-list{
                overflow: visible;
              }

            .slick-slide {
                margin-right: 32px;
            }

            .item {
                box-sizing: border-box;
                text-decoration: none;
                color: #000;

                a {
                    text-decoration: none !important;
                    color: #000;
                }

                img {
                    box-shadow: none;
                    margin-bottom: 16px;
                }
                
                .item-title {
                    font-size: 28px;
                    margin-bottom: 16px;
                }

                .category-name {
                    font-size: 14px;
                    padding: 5px;
                    background-color: rgba(158, 121, 77, 0.1);
                }

                .item-category {
                    margin-bottom: 16px;
                }

                .item-date {
                    font-size: 12px;
                    margin-bottom: 16px;
                }

                .item-description {
                    font-size: 16px;
                    margin-bottom: 16px;
                }

                .item-link {
                    height: 40px;
              
                    a {
                      text-decoration: none;
                      font-size: 14px;
                      color: #041F33;
                      border: 1px solid #041F33;
                      padding: 10px;
              
                      &:after {
                        content: "";
                        display: inline-block; 
                        width: 16px;
                        height: 12px; 
                        background-image: url(../icons/news-item-link.svg);
                        background-size: cover;
                        background-repeat: no-repeat;
                        margin-left: 10px; 
                      }
              
                      &:hover {
                        content: "";
                        background-color: #041F33;
                        color: #fff;
                        transition: all .2s linear;
                      }
              
                      &:hover::after {
                        background-image: url(../icons/news-item-link-white.svg);
                        transition: all .2s linear;
                      }
                    }
                  }
            }
        }

        
        
        .related-content > .item:nth-child(1):only-child {
            max-width: 31%;
            min-width: 31%;
        }
        
        .related-content > .item:nth-child(2):nth-last-child(1) {
            max-width: 31%;
            min-width: 31%;
        }

        .related-content-break {
            border-top: 1px solid rgba(4, 31, 51, 0.1);
            max-width: 100%;
            min-width: 100%;
            margin-bottom: 64px;
        }

        .related-content-title {
            margin-left: 96px;

            .title {
                color: #000;
                font-size: 40px;
                font-weight: normal;
            }

            .title-link {
                margin-bottom: 40px !important;
                margin-top: 5px;
                
                a {
                    text-decoration: none !important;
                    color: #000 !important;
        
                    &:after {
                        content: "";
                        display: inline-block; 
                        width: 16px;
                        height: 12px; 
                        background-image: url(../icons/link-arrow.svg);
                        background-size: cover;
                        background-repeat: no-repeat;
                        margin-left: 10px; 
                        transition: transform 0.3s ease;
                    }
        
                    &:hover:after {
                        transform: translateX(5px);
                    }
                }
            }
        }

        .footer-move-up {
            text-align: right;
            max-width: 1120px;
            min-width: 1120px;
            margin-left: 96px;
            margin-right: 150px;

            .move-up {
                font-size: 14px;
                float: right;
                margin-top: 20px;
                margin-bottom: 40px;

                &:before {
                    content: "";
                    display: inline-block; 
                    width: 12px;
                    height: 6px; 
                    background-image: url(../icons/arrow_up.svg);
                    background-size: cover;
                    background-repeat: no-repeat;
                    margin-right: 8px;
                    margin-bottom: 2px; 
                    transition: transform 0.3s ease;
                }

                &:hover {
                    text-decoration: underline;
                    cursor: pointer;
                }
            }
        }
    }
}

@media (max-width: 1280px) {
    .single-post, .single-events, .single-galery {
        & .entry-content {
            .footer-move-up {
                min-width: fit-content;
                max-width: 100%;
            }
        }
    }
}

@media (max-width: 1080px) {
    .post-thumb {
        img {
            max-width: 100%;
            min-width: 100%;
        }
    }

    .single-post, .single-events, .single-galery {
        .entry-content {
            .post-thumb {
                img {
                    max-width: 100%;
                    min-width: 100%;
                }
            }
        }

        & .entry-content {
            & .page-post-gallery {
                margin-left: 286px;
                width: unset;
                max-width: 100%;
    
                .item {
                    width: 100%;
                    max-width: 100%;
    
                    img {
                        width: 100%;
                        max-width: 100%;
                        box-shadow: none;
                    }
                }
            }
        }
    }
}

@media (max-width: 1025px) {
    .single-post, .single-events, .single-galery {
        & .entry-content {
            & .related-content {
                .slick-slide {
                    margin-right: 50px;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .entry-title, .category, .post-date, .page-summary, .page-post-gallery {
        margin-left: 0 !important; 
    }

    .single-post, .single-events, .single-galery {
        .post-thumb {
            margin-left: 0 !important; 
            margin-right: 0;
        }

        & .entry-content {
            h1, p, h2, h3, h4, h5, .page-highlighted-text, .page-count-for, .related-content-title, .related-content {
                margin-left: 0 !important; 
            }

            .page-highlighted-text {
                margin-right: 0;
            }

            .page-post-gallery {
                margin-right: 0;
            }

            .footer-move-up {
                margin-right: 0;
            }

            ul {
                margin: 0 0 0 36px;
            }

            & .wp-block-file {
                a {
                    margin-left: 25px;
                }
            }

            .page-share-buttons {
                margin-left: 0 !important;
                margin-bottom: 40px;
            }

            & .page-post-gallery {
                margin-left: 0;
            }
        }

        .entry-content {
            .post-thumb {
                margin-left: 0 !important; 
                margin-right: 0;
            }

            p {
                margin-right: 0;
            }
        }
    }
}

