﻿.nyhedCardContainer {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
}

    .nyhedCardContainer > div {
        display: flex;
        flex-wrap: wrap;
        gap: 70px;
        justify-content: center;
        width: 100%;
    }



.nyhedCard {
    border: 1px solid var(--button-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex: 0 0 250px;
    display: inline-block;
    -webkit-text-decoration: none;
    text-decoration: none;
}

    .nyhedCard:hover {
        transform: translateY(-5px);
        background-color: var(--secondary-color);
    }

    .nyhedCard img {
        width: 100%;
        height: 180px;
        object-fit: fill;
        display: block;
    }

.nyhedContent {
    padding: 15px;
}

    .nyhedContent h5 {
        margin-top: 0;
        color: var(--primary-color);
        font-weight: 600;
    }

    .nyhedContent p {
        font-size: 14px;
        color: #555;
        margin-bottom: 10px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nyhedCard {
        width: 100%;
        max-width: 350px;
    }
}

.slogan {
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
}

.sloganimage {
    background-image: url("/Images/morgentaesk-min.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    min-height: 100%;
}


.slogan-box {
    width: 100%;
    text-align: center;
    padding: 30px;
    height: calc(40vh - 15px); /* Account for the margin-bottom of info boxes */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slogan-box h4 {
        font-weight: 500;
        color: var(--primary-color);
        margin: 0;
    }

.nyhedsbrevContainer {
    width: 100%;
    padding-top: 15px;
    background-color: var(--primary-color);
    color: white;
    -webkit-justify-content: center;
    justify-content: center;
    text-align: center;
    padding-top: 30px;
    margin-bottom: 30px;
    min-height: 30vh;
}

    .nyhedsbrevContainer h3 {
        position: center;
        text-align: center;
        font-weight: bold;
    }

    .nyhedsbrevContainer button {
        margin-top: 15px;
        font-weight: 600;
    }


.divBottomContainer {
    padding-top: 30px;
    margin-bottom: 30px;
    min-height: 40vh;
}

.info-box {
    border: 1px solid var(--primary-color);
    -moz-border-radius: var(--border-radius);
    -webkit-border-radius: var(--border-radius);
    border-radius: 15px;
    text-align: center;
    padding: 30px;
    margin-bottom: 15px;
}

    .info-box:hover {
        background-color: var(--secondary-color);
    }

    .info-box i {
        fill: var(--primary-color);
        color: var(--primary-color);
    }

    .info-box p {
        font-weight: 500;
        padding: 10px;
        font-size: 1.2rem;
    }


.imagebox {
    background-image: url("/Images/badmintonunsplash.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
}

.sloganContainer {
    width: 100%;
    display: flex;
    padding-top: 30px;
    margin-bottom: 30px;
    min-height: 30vh;
}

.divNyhedContainer {
    width: 100%;
    padding-top: 30px;
    margin-bottom: 30px;
    min-height: 40vh;
}

    .divNyhedContainer h3 {
        position: center;
        text-align: center;
        font-weight: bold;
    }

.sectiondescription {
    color: var(--primary-color);
    position: center;
    text-align: center;
}

.nyheddescription {
    position: center;
    text-align: center;
    padding-inline: 2%; /* <---- for mobil view, ingen påvirkning ved desktop vers. */
}

.divTopContainer {
    width: 100%;
    height: calc(100vw * 0.4525); /* 45.25% af bredden */
    position: relative;
    overflow: hidden;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

    .carousel-inner img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 0;
        transition: opacity 1s ease;
        max-height: 100% !important;
        max-width: 100% !important;
    }

        .carousel-inner img.active {
            opacity: 1;
        }



@media (max-width: 768px) {
    .divTopContainer {
        background-image: url("/Images/mobilForside.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        padding-top: 200%
    }
    .carousel {
        display: none;
    }
}

  


.searchBoxes {
    position: absolute;
    bottom: 15%;
    right: 0%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.search-container {
    position: relative;
    width: 250px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.searchBoxes input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
}

.circular-notice {
    position: absolute;
    top: 30%;
    right: 10%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: black;
    font-weight: bold;
}

    .circular-notice p {
        margin: 5px 0;
        font-size: 16px;
    }

    .circular-notice a {
        color: black;
        text-decoration: underline;
        font-weight: bold;
    }
