.media-container {
    overflow: hidden;
}

iframe {
    width: 120%;
    height: 120%;
    transform: scale(1.2);
    transform-origin: center center;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    transition: opacity 3s ease-in-out;
}

.image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/aiimg1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

.image-container:hover::before {
    opacity: 1;
}

.image-container:hover img {
    opacity: 0;
}

.swiper {
    width: 80vw;
    height: 70vh;
    margin: auto;
    overflow: hidden;
}

.top-swiper {
    width: 50vw; /* Sets the swiper width to 50% of the viewport width */
    height: auto; /* Adjust height as necessary or keep it proportional */
    margin: auto; /* Centers the swiper horizontally */
    overflow: hidden; /* Keeps all nested elements within the swiper boundaries */
}

.card-container {
    display: flex;
    flex-direction: horizontal;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.card {
    position: relative;
    width: 40%; /* Adjust as needed */
    height: 70%; /* Adjust as needed */
    background-image: url('path/to/your/image.jpg'); /* Replace with the path to your image */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 2em;
    margin-top: -1re;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.card-button {
    width: 100%;
    padding: 3vh 0;
    font-size: 1.1em;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.last-card-container {
    width: 80%; 
}

.last-card {
    width: 100%;
}

.slide-content {
    padding: 0 10%;
    text-align: left;
}

.swiper-slide {
    position: relative; /* Ensures the positioning context is set for the slide */
    width: 100%; /* Full width of the slide */
    height: 70vh; /* Adjust height as necessary */
    display: flex;
    flex-direction: column; /* Organizes children elements in a column */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
}

.swiper-slide img {
    max-width: 100%; /* Ensures image is not wider than the slide */
    max-height: 50vh; /* Limits image height to leave space for captions */
    object-fit: contain; /* Ensures the image is resized properly within the constraints */
}

figcaption {
    text-align: center; /* Centers the caption text */
    padding: 10px; /* Adds space around the text */
    background-color: rgba(255, 255, 255, 0.8); /* Optional: Adds a semi-transparent background for readability */
    width: 100%; /* Full width to match the image */
    box-sizing: border-box; /* Includes padding in width calculation */
}

.last-card img {
    max-height: 60%;  /* Ensures the image does not exceed the width of the card */
    height: auto;  /* Maintains the aspect ratio of the image */
    object-fit: contain;  /* Ensures the image fits well within the boundaries without being cropped */
}

img.df-learn {
    height: 40%;
}

.timeline-link img:hover {
    transform: scale(1.1);
    transition: transform 0.4s ease-in-out;
}

.quiz {
    max-width: 65%; /* Adjusts the maximum width to fit the screen nicely */
    margin: 20px auto; /* Centers the quiz section on the page */
    padding: 10px;
    margin-top: 5rem;
}

.quiz h1 {
    text-align: left; /* Aligns the heading to the left */
    margin-left: -1rem;
    margin-bottom: 3rem;
}

.quiz iframe {
    width: 100%; /* Ensures the iframe spans the full width of its container */
    height: 600px; /* Sets a good height for the quiz */
    border: none; /* Removes the default iframe border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for a polished look */
    border-radius: 8px; /* Optional: Adds rounded corners */
}

.quiz-two {
    margin-bottom: 100px; /* Adjust the value as needed */
}

.quiz-text {
    text-align: left; /* Aligns the text to the left */
    margin-left: 0; /* Ensures there's no additional left margin */
}