.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.container h1 {
    font-family: 'Antonio', sans-serif;
    font-size: 64px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.container p {
    color: white;
    font-size: 14px;
    text-align: justify;
    font-family: 'Fira', sans-serif;
    margin: 20px 0;
    line-height: 30px;
}

.divider {
    border-top: 1px solid #C9A0F8;
    border-bottom: 1px solid #C9A0F8;
    margin: 0 150px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.carousel-track {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.topic-card {
    position: absolute;
    width: 280px;
    height: 320px;
    left: 50%;
    top: 50%;
    background-color: #2e2a40;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%) translateZ(0) scale(0.8);
    opacity: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.topic-card:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.topic-card.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.topic-card.active:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.topic-card::after {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topic-card.active::after {
    opacity: 1;
}

.topic-image {
    width: 100%;
    height: 200px;
    background-color: #8681a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-title {
    padding: 20px;
    text-align: center;
    font-family: 'Antonio', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    margin-top: 0px;
}

.blue {
    background-color: #B0A0F8;
    padding: 10px 0;
    padding-bottom: 0;
    color: black;
}

.blue .content-grid h1 {
    color: black;
}

.blue .content-grid p {
    color: black;
}

.purple {
    background-color: #C9A0F8;
    padding: 10px 0;
    padding-bottom: 0;
    color: black;
}

.purple .content-grid h1 {
    color: black;
}

.purple .content-grid p {
    color: black;
}

.content-grid {
    margin: 20px 150px;
}

.content-grid h1 {
    font-family: "Antonio", sans-serif;
    font-size: 35px;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.content-grid p {
    font-size: 20px;
    font-family: 'Fira Sans', sans-serif;
}

.no-color .content-grid p {
    color: white;
}

.videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.video {
    display: flex;
    flex-direction: column;
    width: 48%;
    margin-bottom: 30px;
}

/* Add centering for last odd child */
.videos .video:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
}

.video p {
    margin-top: 10px;
    text-align: center;
}

iframe {
    border-radius: 20px;
    width: 100%;
    height: 300px;
}