/* ***************************************************************************************
Container work
*/
.container--db {
    width: auto;
    margin-bottom: 30px;
}

.container--db p, .container--db li {
    font-size: 18px;
    line-height: 1.75em;
}

.db--content ul {
    text-align: center;
    padding-left: 0;
    list-style-position: inside;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.db--content ul li {
    margin-bottom: 0.5em;
}
.dynamic-block .db--content {
    text-align: center;
}


.container--db .btn {
    border: 1px solid #007451;
    background: #007451;
}

.container--db--stacked {
    margin-bottom: auto;
}

.container--db .dynamic-button,
.container--db .dynamic-column,
.container--db .dynamic-block {
    width: 1380px;
    margin: 0 auto;
    padding: 50px 0;
}

.container--theme--black {
    background-color: black;
    color: white;
}

.container--theme--black h3,
.container--theme--black h4 {
    color: white;
}

.container--theme--grey {
    background-color: #f4f4f4;
    color: #000;
}

.container--theme--green {
    background-color: #007451;
    color: #fff;
}

.container--theme--green a {
    color: #fff;
    text-decoration: underline;
}

.container--theme--green a:hover {
    text-decoration: none;
}

.container--theme--green h3,
.container--theme--green h4 {
    color: white;
}

.container--theme--green .btn {
    border: 1px solid #000;
    background: #000;
    text-decoration: none;
}

.container--text {
    width: 1080px;
}

@media screen and (max-width: 1450px) {

    .container--text,
    .container--db .dynamic-button,
    .container--db .dynamic-column,
    .container--db .dynamic-block {
        width: auto;
        margin-right: 25px;
        margin-left: 25px;
    }
}

@media screen and (max-width: 600px) {

    .container--text,
    .container--db .dynamic-button,
    .container--db .dynamic-column,
    .container--db .dynamic-block {
        margin-right: 20px;
        margin-left: 20px;
    }
}

@media screen and (max-width: 400px) {

    .container--text,
    .container--db .dynamic-button,
    .container--db .dynamic-column,
    .container--db .dynamic-block {
        margin-right: 15px;
        margin-left: 15px;
    }
}


/* ***************************************************************************************
Dynamic Button Block 
*/
.dynamic-button .db--link {
    text-align: center;
}



/* ***************************************************************************************
Responsive Banner 
*/
.responsive-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 0 20px;
}

.responsive-banner--picture {
    display: block;
    width: 100%;
}

.responsive-banner--image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ***************************************************************************************
House title 
*/
.news-title .h5--house {
    border-bottom: none;
    background-color: #007451;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin-top: 3px;
    padding: 3px 6px;
}


/* ***************************************************************************************
Dynamic Image Block  *** MIGHT NOT BE NEEDED ***
*/
.dynamic-imageblock {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    align-items: flex-start;
}

.dynamic-imageblock .di-content {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    height: auto;
}

.dynamic-imageblock .di-content h2 {
    margin-top: 0;
    text-align: center;
    margin-top: 20px;
}

.dynamic-imageblock .di-content p {
    margin-bottom: 20px;
    text-align: center;
    padding: 10px 50px 20px 50px;
}

.dynamic-imageblock .di-content .btn {
    align-self: center;
    margin-top: auto;
    margin-bottom: 20px;
    padding: 15px;
}

.dynamic-imageblock .di-items {
    width: calc(50% - 10px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    grid-template-rows: repeat(3, 1fr);
}

.dynamic-imageblock .di-items .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablet breakpoint */
@media (max-width: 768px) {

    .dynamic-imageblock .di-content,
    .dynamic-imageblock .di-items {
        width: 100%;
    }

    .dynamic-imageblock .di-items {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        margin-top: 20px;
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    .dynamic-imageblock .di-items {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
}


/* *******************************************************************
Dynamic Column
*/
.dynamic-column {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
}

.dynamic-column h3,
.dynamic-column h4 {
    text-align: center;
    width: 100%;
    margin: 8px 0;
    line-height: 1.6em;
    font-weight: 600
}

.dynamic-column h3 {
    margin: 0 0 36px;
}

.dynamic-column p.image-center {
    margin: 0;
}

.dynamic-column .col-inner {
    padding:20px;;
}

.dynamic-column .cols--half {
    display: flex;
  }
  
  .dynamic-column .col {
    display: flex;
    flex: 1;
  }
  
  .dynamic-column .col-inner {
    width: 100%;
  }

  .dynamic-column .col p:last-child {margin-bottom: auto;}


/* Tablet and Mobile styles (below 768px) */
@media screen and (max-width: 768px) {
    .dynamic-column .cols--half {
        flex-direction: column;
    }

    .dynamic-column .col {
        width: 100%;
        margin-bottom: 20px; /* Add some spacing between stacked columns */
    }

    /* Remove margin from last column to avoid extra spacing */
    .dynamic-column .col:last-child {
        margin-bottom: 0;
    }
}


/* *******************************************************************
Dynamic Block 
*/

.dynamic-block {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
}

.dynamic-block h3,
.dynamic-block h4 {
    text-align: center;
    width: 100%;
    margin: 8px 0;
    line-height: 1.6em;
    font-weight: 600
}

.dynamic-block h3 {
    margin: 0 0 36px;
}

.dynamic-block .db--link {
    text-align: center;
    margin-top: 1rem;
    font-size: 18px;
}

.dynamic-block .db--image img {
    height: auto;
    display: block;
    max-height: 600px;
    margin: 0 auto;
}

.dynamic-block.Image-full img {
    max-height: none;
}

.dynamic-block .db--content > *:last-child {
    margin-bottom: 0;
}

.dynamic-block .db--content {
    text-align: center;
}



/* Desktop (above 768px) */
@media (min-width: 768px) {
    .dynamic-block .content-wrapper {
        display: flex;
        gap: 2rem;
        align-items: center;
        width: 100%;
    }

    .dynamic-block .db--content {
        padding: 2rem 3rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .dynamic-block.Image-left .content-wrapper .db--image,
    .dynamic-block.Image-left .content-wrapper .db--content,
    .dynamic-block.Image-right .content-wrapper .db--image,
    .dynamic-block.Image-right .content-wrapper .db--content {
        width: 50%;
        flex: 0 0 calc(50% - 1rem);
    }

    .dynamic-block.Image-right .content-wrapper {
        flex-direction: row-reverse;
    }

    .dynamic-block.Image-full .content-wrapper {
        flex-direction: column;
    }

    .dynamic-block.Image-full .db--content {
        max-width: none;
    }

    .dynamic-block.Image-full .content-wrapper .db--image,
    .dynamic-block.Image-full .content-wrapper .db--content {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Tablet and Mobile styles (below 768px) */
@media (max-width: 767px) {
    .dynamic-block .content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .dynamic-block .content-wrapper .db--image,
    .dynamic-block .content-wrapper .db--content {
        width: 100%;
    }

    .dynamic-block .content-wrapper .db--image {
        margin-bottom: 30px;
    }

    .dynamic-block.Image-right .content-wrapper .db--image {
        order: -1;
    }
}

.dynamic-block.Image-full .db--image img {
    width: 100%;
}

/* *******************************************************************
Carousel 
*/
.dynamic-carousel-wrapper {
    position: relative;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.dynamic-carousel {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    text-align: center;
}

.dynamic-carousel .dc--items {
    display: flex;
    align-items: flex-start;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.dynamic-carousel .dc--items:active {
    cursor: grabbing;
}

.dynamic-carousel .slider-item {
    flex: 0 0 100px;
    margin: 0 -10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    position: relative;
    cursor: pointer;
    pointer-events: none;
    visibility: hidden;
}

.dynamic-carousel .slider-item img {
    margin-top: 100%;
}

.dynamic-carousel .slider-item.visible {
    opacity: 0.3;
    visibility: visible;
    pointer-events: auto;
}

.dynamic-carousel .slider-item.active {
    flex: 0 0 300px;
    /* margin-top: 10px; */
    opacity: 1;
    z-index: 5;
}

.dynamic-carousel .slider-item.active img {
    margin-top: 0;
}

.dynamic-carousel .slider-item.prev,
.dynamic-carousel .slider-item.next {
    opacity: 0.7;
    z-index: 4;
    flex: 0 0 200px;
}

.dynamic-carousel .slider-item.prev img,
.dynamic-carousel .slider-item.next img {
    margin-top: 25%;
}

.dynamic-carousel .slider-item.prev-prev,
.dynamic-carousel .slider-item.next-next {
    opacity: 0.3;
    z-index: 3;
}

.dynamic-carousel .si--image {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.dynamic-carousel .si--image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dynamic-carousel .si--content {
    opacity: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
    width: 100%;
    max-width: 800px;
    background: white;
    text-align: center;
    margin-top: 20px;
}

.dynamic-carousel .slider-item.active .si--content {
    opacity: 1;
    transition-delay: 0;
}

.nav-button {
    font-size: 30px;
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    top: 200px;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-prev {
    left: -30px;
}

.nav-next {
    right: -30px;
}

.dynamic-carousel .si--content {
    display: none;
}
.dynamic-carousel .slider-item.active .si--content {
    display: block;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    height: 90%;
    max-width: 1000px;
    z-index: 1002;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#pdfFrame {
    width: 100%;
    height: calc(100% - 30px);
    margin-top: 20px;
}

