/* css/nursing/events.css */

.events_section {
    width: 100%;
    float: left;
    padding: 50px 0;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.events_center {
    width: 1300px;
    margin: 0 auto;
}

.section_title {
    text-align: center;
    margin-bottom: 40px;
}

.section_title h2 {
    font-size: 36px;
    font-family: var(--font_bold);
    color: #1e293b;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section_title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary_color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Videos Layout */
.videos_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.video_card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.video_wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video_wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video_placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #116e63 0%, #0d5249 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.video_placeholder .play_icon {
    font-size: 55px;
    margin-bottom: 15px;
    opacity: 0.85;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.video_placeholder h3 {
    font-size: 22px;
    font-family: var(--font_medium);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.video_placeholder p {
    font-size: 14px;
    opacity: 0.8;
}

.video_info {
    padding: 20px;
    background: #ffffff;
}

.video_info h4 {
    font-size: 18px;
    font-family: var(--font_medium);
    color: #0f172a;
    margin: 0;
}

/* Tabs Styling */
.tabs_container {
    margin-top: 40px;
}

.tabs_buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.tab_btn {
    padding: 12px 30px;
    font-size: 16px;
    font-family: var(--font_medium);
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tab_btn:hover {
    border-color: var(--primary_color);
    color: var(--primary_color);
}

.tab_btn.active {
    background-color: var(--primary_color);
    color: #ffffff;
    border-color: var(--primary_color);
    box-shadow: 0 4px 6px -1px rgba(17, 110, 99, 0.2);
}

.tab_content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab_content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gallery Grid Styling */
.gallery_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery_item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery_item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery_item .hover_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 110, 99, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery_item:hover .hover_overlay {
    opacity: 1;
}

.gallery_item .hover_overlay i {
    color: #ffffff;
    font-size: 24px;
}

/* Lightbox Modal */
.lightbox_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox_modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox_content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox_content img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: block;
}

.lightbox_close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 35px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.lightbox_close:hover {
    color: #cbd5e1;
}

/* Media Queries for Mobile/Tablet */
@media only screen and (max-width: 1300px) {
    .events_center {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 1024px) {
    .gallery_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .videos_grid {
        grid-template-columns: 1fr;
    }
    
    .gallery_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section_title h2 {
        font-size: 28px;
    }
}

@media only screen and (max-width: 480px) {
    .gallery_grid {
        grid-template-columns: 1fr;
    }
    
    .tab_btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
