/*Title*/
.Title {
    text-align: left;
    max-width: 80%; 
    margin: 0 auto; 
    display: flex;
    flex-direction: row;
    align-items: top; 
    gap: 10px;
}
.Title h1 {
    margin: 0;
    font-family: 'Michroma', sans-serif;
}

.title-format {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
}
.est {
    font-size: 16px; 
    margin-top: -6px; 
}
.logo {
    width: 70px; 
    height: auto; 
    filter: grayscale(100%);
}
/* Nav bar*/
.nav-bar {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allows wrapping to multiple rows */
    gap: 20px;
    padding-bottom: 10px;
}

.nav-bar a {
    color: black;
}
/* Header */
.advert-header {
    padding-top: 20px;
    max-width: 100%;
    background: rgb(224, 126, 72);
    display: flex;
    justify-content: center;
    gap: 3%;
    flex-wrap: wrap;
    min-height: 500px; 
    filter: grayscale(100%);
}

.carousel {
    flex: 1 1 40%;
    max-width: 800px;
    min-width: 500px;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
    display: block;
}

.advert {
    flex: 1 1 20%;
    display: flex; /* Use flex to stack the timetable and buttons */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Ensure space between the timetable and buttons */
    align-items: flex-start;
    max-width: 450px;
    min-width: 250px;
    border-radius: 10px;
    margin: 10px;
}
.history {
    width: 100%;
}
.button.black {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: black;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px 0;
    box-sizing: border-box;
}

.button.black:hover {
    background-color: #333;
}
/* Additional */
.additional {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start; 
    max-width: 80%;
    padding-top: 40px; 
    padding-bottom: 40px;
    margin: 0 auto;
}

.additional-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.additional-text {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.additional-image {
    flex: 1 1 40%;
    max-width: 100%; /* Ensure it scales properly */
    display: flex;
    justify-content: center;
}

.additional-image img {
    max-width: 100%; /* Ensure the image never exceeds its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Prevent image distortion */
}
/* Footer */
.footer {
    padding: 30px 0;
    text-align: left;
    position: relative;
    bottom: 0;
    font-family: 'PT Sans', sans-serif;
    filter: grayscale(100%);
}
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 10%;
}
.footer-section {
    flex: 1;
    padding: 10px;
    min-width: 200px;
}
.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    position: relative;
}
.footer-divider {
    border: none; 
    height: 1px; 
    background-color: #ccc; 
    width: 80%; 
    margin: 40px auto; 
}
@media (max-width: 1200px) {
    .Title {
        max-width: 90%;
    }
    .nav-bar {
        max-width: 90%;
    }
    .advert-header {
        min-height: 400px;
    }
    .carousel {
        max-width: 100%;
        margin: 0;
        border-radius: 0px;
    }
    .footer-divider {
        width: 90%;
    }
}
@media (max-width: 900px) {
    .Title h1{
        font-size: 16px;
        letter-spacing: 0px;
    }
    .advert-header {
        flex-direction: column;
        gap: 10px;
        min-height: 550px;
    }
    .carousel {
        min-height: 300px; 
        flex-grow: 1; 
    }
    .advert {
        flex: 0;
        flex-direction: row;
        justify-items: flex-start;
        gap: 10px;
        max-width: 100%;
    }
    .advert .history {
        display: none;
    }
    .additional-content {
        flex-direction: column; /* Stack text and image vertically */
        gap: 10px; /* Adjust gap for mobile */
    }
    
    .additional-image {
        max-width: 100%; /* Ensure the image scales properly */
        justify-content: center;
    }

    .additional-image img {
        max-width: 100%; /* Ensure the image fits within the container */
        height: auto; /* Maintain aspect ratio */
    }
}
@media (max-width: 600px) {
    .carousel {
        width: 100%; /* Ensure it takes the full width of the parent container */
        min-width: 100%; /* Prevent from collapsing */
        height: auto; /* Adjust height automatically */
        flex-grow: 1; /* Allow it to grow and fit */
    }
    .advert-header {
        min-height: 400px;
        gap: 5px; /* Reduce the gap between the carousel and advert */
    }
    .advert {
        width: 100%;
        margin: 0; /* Remove extra margin */
        padding: 5px; /* Reduce padding */
    }
    .button.black {
        margin: 5px 0; /* Reduce margin between buttons */
    }
}





