/*
 *  ENQUEUE CSS SIMVN
 */

.event {
    padding-bottom: 20px;
}

.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.enlarge-on-hover {
    transition: transform 0.5s ease-in-out;
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}


.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #66c0f4;
    transform: translateX(-50%);
    z-index: 0;
}


.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left.visible {
    transform: translateX(-6px);
}

.timeline-item.right.visible {
    transform: translateX(6px);
}

.timeline-content {
    background-color: rgba(42, 71, 94, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(102, 192, 244, 0.7), 0 0 50px rgba(102, 192, 244, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    transition: box-shadow 0.5s ease, transform 0.3s ease;
    z-index: 1;
}

.timeline-content:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
    z-index: 1;
}


.timeline-avatar {
    width: 250px;
    height: 200px;
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid #66c0f4;
}


.timeline-date {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1b2838;
    color: #66c0f4;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.timeline-title {
    font-size: 22px;
    color: #66c0f4;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 15px;
    color: #d4e0e6;
    line-height: 1.6;
}

.timeline-item.left::before {
    content: '';
    position: absolute;
    top: 40px;
    right: -12px;
    width: 12px;
    height: 12px;
    background-color: #66c0f4;
    border-radius: 50%;
    z-index: 0;
}

.timeline-item.right::before {
    content: '';
    position: absolute;
    top: 40px;
    left: -12px;
    width: 12px;
    height: 12px;
    background-color: #66c0f4;
    border-radius: 50%;
    z-index: 0;
}

@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 20px;
        right: auto;
    }

    .timeline-date {
        left: 20px;
        transform: translateX(0);
    }
}

.main-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
}

.card-main {
    color: #252a32;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.card-main .card-image {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 70%;
    background: #ffffff;
}

.card-main img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 600px) {
    .main-gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }

    .event-video iframe {
        height: 225px;
    }
}