.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 2000px;
    margin: 4rem auto;
    column-gap: 6rem;
    row-gap: 3rem;
    width: 100%;
}

.grid-item {
    padding: 2rem;
    gap: 5rem;
}

.item-content {
    display: flex;
    align-items: center;
    gap: 3rem; /* slightly more space to balance larger images */
}

.item-image img {
    width: 300px; /* increased from 150px */
    height: auto;
    display: block;
}

.item-text {
    flex: 1;
    font-family: 'Helen Pro_Light', sans-serif;
}

.item-text h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.item-text p {
    margin-bottom: 0.5rem;
}

.item-text a {
    color: #0074c7;
    text-decoration: none;
    font-weight: 600;
}

.dk {
    font-family: "Helen Pro_Light", sans-serif;
}

/* Responsive: stack image + text vertically on small screens */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .item-content {
        flex-direction: column;
        text-align: center;
    }

    .item-image {
        display: flex;
        justify-content: center; /* center the image horizontally */
    }

    .item-image img {
        width: 70%; /* image still scales nicely on mobile */
        margin-bottom: 1rem;
    }

    .first-banner .item-image {
        display: flex;
        justify-content: center; /* center the image horizontally */
    }

    .first-banner .item-image img {
        width: 70%;  /* scales nicely */
        max-width: 300px;
        height: auto;
    }

    .novopan-list {
        width: 100% !important;       /* full width on mobile */
    }

    .novopan-list p {
        flex-direction: row !important;   /* keep text + link on one row */
        justify-content: space-between;   /* text left, PDF link right */
        flex-wrap: nowrap;                /* prevent wrapping */
        align-items: center;
    }

    .novopan-list a {
        display: flex;
        align-items: center;
        gap: 4px;                         /* keep icon + text together */
        white-space: nowrap;               /* prevent “Hent PDF” from breaking */
    }
}

.first-banner {
    grid-column: 1 / -1; /* span full width */
    display: flex;
    justify-content: center; /* center item-content horizontally */
    align-items: center;
    padding: 2rem; /* optional, matches other grid-items */
    gap: 3rem;
    width: 100%; /* let flex center it correctly */
}

.first-banner .item-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    flex-wrap: wrap; /* allow text + image to stack on smaller screens */
    justify-content: center; /* center image + text as a block */
    text-align: left; /* ensures text is centered */
    max-width: 700px; /* optional, limits width on large screens */
}

.first-banner .item-image img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.novopan-list {
    width: 60%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* two columns, equal width */
    max-width: 1200px;       /* max width of the whole grid */
    margin: 0 auto;          /* center the grid horizontally */
    gap: 20px 20px;          /* row-gap column-gap */
    padding: 10px;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 540px;       /* keeps videos at normal size */
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flex-container {
    display: flex;
    flex-wrap: wrap; /* allows extra boxes to move to new row */
    gap: 20px; /* spacing between boxes */
    justify-content: flex-start; /* center the row */
}

.flex-box {
    flex: 1 1 calc(25% - 20px); /* 4 columns with gap considered */
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    padding: 15px;
}

.flex-box img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.download-link i {
    vertical-align: middle;
    margin-right: 5px;
}

.faq-index-wrapper {
    max-width: 1385px;
    margin: 0 auto;
}

.mont-header {
    width: 100%;
    position: relative;
}

.mont-header .mont-header-content {
    height: 31rem;
}

.mont-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mont-header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
}

.mont-header-txt {
    text-align: center;
}

.mont-header-links .header-flags {
    position: absolute;
    bottom: 0;
    right: 0;
}
.header-flags img {
    width: 36px;
    height: 30px;
    margin-left: 10px;
}

.mont-header-links .header-flags span {
    font-size: 16px;
}

.mont-header-links {
    position: relative;
    height: 150px;
}

.mont-line-spacer {
    height: 1px;
    background-color: #ccc;
    width: 100%;
    display: block;
}

.mont-countries-list .country-item img {
    width: 36px;
    height: 30px;
}

.mont-countries-list .first-container,
.mont-countries-list .second-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.mont-countries-list .country-item {
    width: 49%;
}

.faq-index-wrapper.montagev a {
    text-decoration: none;
    color: #000;
}

.faq-index-wrapper.montagev li {
    list-style-type: none;
}

.mont-section-items .title {
    font-size: 26px;
}

.mont-section-items ul li,
.mont-countries-list .country-item ul li {
    margin-bottom: 5px;
}

.mont-section-items.klimagulv .subtitle {
    margin-top: 10px;
}

.mont-section-items .subtitle {
    font-size: 20px;
}
.mont-section-items ul li a {
    font-size: 18px;
}

.mont-countries-list .country-item ul li a {
    font-size: 18px;
}

.mont-section-items.gulv {
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.mont-countries-list .country-item span {
    font-size: 26px;
}

.mont-line-spacer {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.mont-pdf-icon {
    width: 20px;
    margin-left: 5px;
}

.mont-header-txt {
    font-size: 20px;
}

.mont-header-txt {
    margin-top: 5rem;
}

.mont-countries-list .country-item .mont-pdf-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

.mont-section-items ul {
    margin-top: 10px;
}

@media (max-width: 1400px) {
    .faq-index-wrapper.montagev {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media (max-width: 1080px) {
    .mont-countries-list .country-item {
        width: 100%;
    }

    .mont-countries-list .first-container,
    .mont-countries-list .second-container {
        flex-direction: column;
        align-items: center;
    }

    /* .mont-section-items {
      margin: auto;
    } */
    .faq-index-wrapper.montagev {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .mont-header .mont-header-content {
        height: 20rem;
    }
}


/* Responsive: 2 columns on tablets */
@media (max-width: 992px) {
    .flex-box {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 576px) {
    .flex-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* Responsive: single column on smaller screens */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .faq-description.montagev h1 {
        font-size: 2rem;
    }
}



