/* multimedia.css */
.multimedia-section {
    padding: 40px 0;
    background: #f7fafc;
}

.multimedia-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.multimedia-tab {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.multimedia-tab.active {
    color: var(--primary-color);
}

.multimedia-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.multimedia-tab:not(.active):hover {
    color: var(--primary-light);
}

.multimedia-tab-content {
    display: none;
}

.multimedia-tab-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    grid-template-areas:
        "main main small1 small2"
        "main main small3 small4";
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item.main-item {
    grid-area: main;
}

.gallery-link {
    display: block;
    height: 100%;
    color: inherit;
}

.gallery-image {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    overflow: hidden;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.gallery-icon.video {
    background: rgba(229, 62, 62, 0.8);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1);
}

.gallery-info {
    padding: 15px;
    background: white;
}

.gallery-title {
    font-size: 16px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "main main"
            "small1 small2"
            "small3 small4";
    }
}

@media (max-width: 768px) {
    .multimedia-tabs {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "main"
            "small1"
            "small2"
            "small3"
            "small4";
    }
    
    .gallery-item.main-item {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .multimedia-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .gallery-title {
        font-size: 14px;
    }
}