.title{
    padding: .5rem 1rem .5rem 1rem;
    display: grid;
    grid-template-columns: .5fr .5fr;
    margin-bottom: 50px;
}

.title .body{
    line-height: 1.5rem;
}

.title .body a{
    color: black;
}

.page-divider{
    display: grid;
    align-items: stretch;
    background-color: var(--main-color);
    height: 55px;
}

.white-hr{
    border: none;
    height: 1px;
    background-color: white;
    margin: 20px 20px;
}

.black-hr{
    height: 1px;
    background-color: black;
    margin: 30px 0px 10px 0px;
}

.carousel-background{
    background-color: rgb(0, 0, 0);
}
.carousel {
    position: relative;
    width: 100%;
    height: 700px;
    margin: 0;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 1s ease;
}

.carousel-item {
    min-width: 100%;
    height: 700px; /* Fixed height */
    display: flex;
    justify-content: center;
    position: relative; /* Ensure captions are positioned relative to the item */
}

.carousel-item img {
    overflow: hidden;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;        /* Distance from the bottom */
    left: 50px;          /* Distance from the left */
    color: #fff;         /* Text color */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 10px;       /* Padding around the text */
    border-radius: 5px;  /* Rounded corners */
    z-index: 10;         /* Ensure caption is on top */
    display: block;      /* Ensure it is displayed as a block */
}

.latest-news{
    display: flex;
    flex-direction: column;
    
}
.latest-news h2{
    padding: .5rem 1rem .5rem 1rem;
}
.news-item{
    display: flex;
    flex-direction: column;
    margin: 1rem auto 1rem auto;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    width: 400px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15);
}

.news-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

.news-item a{
    color: var(--main-color)
}

.news-item .read-more{
    color: var(--main-color);
}

.load-more-button{
    color: var(--main-color);
    font-size: 2rem;
    border-bottom: 1px solid var(--main-color);
    line-height: 0;
    text-decoration: none;
}


@media (max-width: 768px) {
    .carousel-item{
        height: auto;
    }
    .carousel{
        height: auto;
    }
    .carousel-item img {
        max-width: 100%;
        height: auto;
    }

    .carousel-caption {
        position: absolute;
        bottom: 10px;        /* Distance from the bottom */
        left: 0px;
        color: #fff;         /* Text color */
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        padding: 5px;       /* Padding around the text */
        border-radius: 5px;  /* Rounded corners */
        z-index: 10;         /* Ensure caption is on top */
        display: block;      /* Ensure it is displayed as a block */
    }

    .news-container{
        display: grid;
        grid-template-columns: 1fr;
        margin: auto;
        width: 100%;
    }

    .news-item{
        margin: 1rem;
        width: auto;
    }

    .title{
        font-size: 1rem;
        grid-template-columns: 1fr;
    }
}