h2 {
    font-size: 5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: var(--bold);
    margin: 2.5rem 0;
}
p {
    font-size: 1.8rem;
    text-align: center;
}

/**
* Landing
*/
.events-landing {
    width: 90%;
    display: flex;
    align-items: center;
    height: 80vh;
    margin: 0 auto;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)),
        url("../images/events/default-91d4d90be5fd042636dfb104c9e0d150.webp");
    background-size: cover;
    background-position: center center;
}
.landing-content p {
    color: white;
    margin: 2rem auto;
    font-size: 2.1rem;
}
.events-landing .landing-content {
    text-align: center;
    width: 100%;
}
.events-landing .landing-content .event-previous,
.events-landing .landing-content .event-next {
    position: absolute;
    width: 100px;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    top: 56%;
}
.events-landing .landing-content .event-previous {
    left: 7%;
}
.events-landing .landing-content .event-next {
    right: 7%;
}
.events-landing .landing-content .event-previous img,
.events-landing .landing-content .event-next img {
    width: 100%;
    height: auto;
}
.events-landing h1 {
    font-size: 7.8rem;
    width: 40%;
    margin: auto;
    color: var(--secondary-color);
    font-weight: var(--extra-bold);
}
.carousel-image-container {
    position: relative;
    width: 100%;
    height: auto; /* Adjust as needed */
}

.carousel-image-container img {
    display: block;
    width: 100%;
    filter: brightness(40%);
    height: auto; /* Ensure the image scales properly */
}

.landing-carousel-text {
    position: absolute;
    top: 50%; /* Adjust to position vertically */
    left: 50%; /* Adjust to position horizontally */
    transform: translate(-50%, -50%); /* Center the text */
    color: white; /* Adjust text color */
    text-align: center; /* Center text */
    padding: 20px; /* Add padding around text */
    /*background: rgba(
        0,
        0,
        0,
        0.5
    ); /* Optional: background color with transparency */
    border-radius: 10px; /* Optional: rounded corners */
    width: 75%;
}

.landing-carousel-text p {
    text-align: left;
}
.landing-carousel-text .btn.btn-primary {
    font-size: 2.5rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.25rem;
}
/* Extra large devices (Laptop, 1280px and down)
@media only screen and (max-width: 1280px) {
}

/* Large devices (Laptop, 992px and down) */
@media only screen and (max-width: 992px) {
    .events-landing h1 {
        width: 80%;
    }
}

/* Medium devices (Laptop, 768px and down) */
@media only screen and (max-width: 768px) {
    .events-landing {
        width: 100%;
    }
}

/* Small devices (Laptop, 576px and down) */
@media only screen and (max-width: 576px) {
    h2 {
        font-size: 3.5rem;
        margin: 1rem 0;
    }
    .events-landing {
        height: 35vh;
        width: 100%;
    }
    .events-landing h1 {
        font-size: 3.45rem;
        width: 70%;
    }
    .landing-content p {
        font-size: 1.8rem;
        width: 70%;
        margin: 2rem auto;
    }
    .events-landing .landing-content .event-previous,
    .events-landing .landing-content .event-next {
        top: 7%;
    }
    .events-landing .landing-content .event-next {
        right: 0px;
    }
    .events-landing .landing-content .event-previous {
        left: 0px;
    }
}
