/* style.css */

/* Style the body */

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
   /*  max-width: 1200px; */
    max-width: 100%;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #CBD4DD;
    margin: 0 auto;
}

/* Logo */
.header-container .logo {
    flex: 1;
}

.header-container .logo img {
    max-width: 150px;
    height: auto;
    margin-left: 50px;
}

/* Right side links styling */
.header-container .header-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between button and icon */
}

/*Contact*/
.header-container .header-links .contact-link {
    text-decoration: underline;
    text-underline-offset: 3px; 
    color: #333;
    font-size: 1rem;
}

/*Instagran container */
.header-container .header-links .social-link {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    margin-right: 50px;
}

/* Responsive adjustments for mobile screens header*/
@media (max-width: 768px) {
    .header-container {
        /* flex-direction: column;
        align-items: flex-start; */
        display: flex;
        justify-content: space-between;
    }

    .header-container .logo img {
        max-width: 85px;
        height: auto;
        margin-left: 7px;
    }

    .contact-link {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .header-container .header-links .social-link {
        margin-right: 5px;
    }
}

/*Front page*/
body, h1, p, a, img {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
   /* max-width: 1200px;*/
    display: flex;
    flex-direction: column;
}

/* Set background color for the entire page */ 
body {
    background-color: #FFF8D6;
    margin: 0 auto;
    padding: 0;
    /* max-width: 1200px;*/ 
    max-width: 100%;
    display: flex;
    flex-direction: column;
    font-family: Verdana, sans-serif;
}

/* Header separator box styling */
.header-separator {
    width: 100%;
    max-width: 100%; 
    /* max-width: 1512px; */
    height: 13px;
    background-color: #CBD4DD;
}

/* Front Page Styles */
.front-page .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Headline styling */
.main-content h1 {
    font-size: 55px;
    letter-spacing: 0.06em;
    color: #333;
    margin-top: 64px 0; 
}

/* Subtext styling */
.main-content .subtext {
    font-size: 24px;
    letter-spacing: 0.06em;
    color: #333;
    margin: 42px 0; /* Margin between headline and subtext */
}

/* Responsive styling for mobile front page*/
@media (max-width: 768px) {
    .main-content h1 {
        font-size: 24px; /* Smaller font size on mobile */
        margin-top: 27px 0;
    }

    .main-content .subtext {
        font-size: 16px; /* Smaller font size on mobile */
        margin: 25px 0; /* Margin between headline and subtext */
    }

    .main-content .description {
        font-size: 14px; /* Smaller font size for mobile readability */
    }
}

.image-container{
    max-width: 60%;
    margin: auto;
    margin-bottom: 20px; /* space below the image */
    overflow: hidden; /* Ensures content outside the bounds is hidden */
}

@media (max-width: 1512px) {
    .image-container {
        max-width: 85%;
        margin: auto;
        margin-bottom: 20px; /* space below the image */
        overflow: hidden; /* Ensures content outside the bounds is hidden */
    }
}

@media (max-width: 768px) {
    .image-container {
        max-width: 100%; /* On smaller screens, image fills the container width */
        margin: 0; /* Removes any side margins */
        margin-bottom: 20px; /* space below the image */
    }
}

/* Description text styling */
.main-content .description {
    font-size: 17px;
    letter-spacing: 0.08em;
    color: #333;
    max-width: 60%;
    margin: auto;
    margin-bottom: 70px;
    line-height: 1.5em;
}

@media (max-width: 768px) {
    .main-content .description {
        height: auto;
        padding: 20px;
        max-width: 100%;
        margin-bottom: 7px;
    }
}

@media (max-width: 1512px) {
    .main-content .description {
        height: auto;
        padding: 20px;
        max-width: 85%;
        margin-bottom: 20px;
    }
}

/* Components*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container padding for responsive side margins */
.container {
    padding-left: 123px;
    padding-right: 123px;
}

/* Responsive padding for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 19px;
        padding-right: 19px;
    }
}

/* Section Sub Page */
.sub-page .component-grid{
    background-color: white;
    display: flex; 
    flex-wrap: wrap; /* Allow components to move to new rows if necessary */
    gap: 20px; /* Spacing between rows and columns */
    padding: 20px;
    width: 100%; /* Make sure you use all the available width */
    max-width: 1200px; /* Respect the maximum width of the design */
    margin: 0 auto; /* Horizontal centering */
    box-sizing: border-box;
    justify-content: space-between; /* Distribute the elements evenly */
}

/* Individual component styling */
.component {
    flex: 1 1 calc(20% - 20px); /* It takes up a third of the available space minus the gap space. */
    max-width: calc(20% - 20px); /* Limit maximum width */
    min-width: 200px; /* Ensures that components are not too small */
    width: 225px;
    height: 340px;
    border: 1px solid #CBD4DD;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header styling */
.component-header {
    background-color: #CBD4DD;
    width: 100%;
    height: 97px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-header h2 {
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: #333;
    text-align: center;
}

/* Content image styling */
.component-content {
    position: relative;
    width: 100%;
    height: 243px;
}

.component-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Hover text styling (initially hidden) */
.component-hover-text {
    display: none;
    top: 97px;
    width: 100%;
    height: 243px;
    background-color: #FFFFFF;
    border: 2px solid #CBD4DD;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 2; /* Dobbelt linjeafstand */
    color: #333;
    padding: 10px;
    box-sizing: border-box;
}

/* Show hover text on hover */
.component:hover .component-image {
    display: none;
}

.component:hover .component-hover-text {
    display: flex;
}

/* Responsive settings for smaller screens */
@media (max-width: 768px) {
    .component {
        flex: 1 1 calc(50% - 20px); /* Two items per row on medium screens */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .component {
        flex: 1 1 100%; /* Only one item per row on small screens */
        max-width: 100%;
    }
}

/* New section under sub-page */
.highlight-section {
    background-color: #FFF8D6; /* Yellow background*/
    color: #000000; /* Black text*/
    display: flex; /* Flexbox for centering*/
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Center text within paragraph */
    padding: 20px; /* Internal spacing */
    height: 200px; /* Fixed height to center content vertically */
    font-size: 1.5rem; /* Font size for better visibility */
    font-family: Verdana, sans-serif;
    width: 100%; /* Takes up the entire width of the page */
    box-sizing: border-box;
}

/* Footer Section */
.footer-section {
    background-color: white;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid #CBD4DD; /* Optional: Add a border line above footer */
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 110px; /* Default size for laptop screens */
    max-width: 100%; /* Ensure logo scales correctly */
}

/* Responsive styling for mobile screens */
@media (max-width: 768px) {
    .footer-logo {
        height: 80px; /* Smaller size for mobile screens */
    }
}

