/* Auditorio Virtual Styles - Compatible with Wellko Theme */
h2.playlists {
    font-size: 20px;
    color: #297ed1;
}
h2#playlists {
    color: #6a737b;
}
.local-auditoriovirtual {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.av-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.av-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.av-back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.av-back-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}
/*Sector playlist*/
.av-playlists-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Categories Grid */
.av-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.av-category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.av-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.av-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.av-category-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.av-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.av-category-card:hover .av-category-image img {
    transform: scale(1.05);
}

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

.av-category-card:hover .av-category-overlay {
    opacity: 1;
}

.av-category-overlay i {
    font-size: 3rem;
    color: white;
}

.av-category-info {
    padding: 15px;
    text-align: center;
}

.av-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.av-category-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 10px 0;
}

.av-category-count {
    display: inline-block;
    font-size: 0.8rem;
    color: #888;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
}
/* Sectors Grid */
.av-sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
@media (max-width: 768px) {
 .av-sectors-grid {
        grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .av-sectors-grid {
        grid-template-columns: 1fr;
    }
}
.av-sector-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.av-sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.av-sector-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.av-sector-image {
    width: 100%;
    height: 375px;
    overflow: hidden;
}

.av-sector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.av-sector-card:hover .av-sector-image img {
    transform: scale(1.05);
}

.av-sector-info {
    padding: 20px;
    text-align: center;
}

.av-sector-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.av-sector-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}


.av-playlist-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.av-playlist-card:hover {
    transform: translateY(-5px);
}

.av-playlist-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.av-playlist-card:hover .av-playlist-overlay {
    opacity: 1;
}

.av-playlist-overlay i {
    font-size: 3rem;
    color: white;
}

.av-playlist-info {
    padding: 15px;
    text-align: center;
}

.av-playlist-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.av-playlist-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 15px 0;
}

.av-view-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.av-view-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.av-view-btn i {
    margin-right: 5px;
}

.av-all-videos-btn-container {
    text-align: center;
    margin-top: 30px;
}

.av-view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.av-view-all-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.av-view-all-btn i {
    margin-right: 8px;
}

/* Videos Grid */
.av-videos-container {
    margin-top: 30px;
}

.av-playlist-section {
    margin-bottom: 50px;
}

.av-playlist-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.av-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.av-video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.av-video-card:hover {
    transform: translateY(-3px);
}

.av-video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.av-video-thumbnail {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.av-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.av-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.av-video-card:hover .av-video-play-btn {
    opacity: 1;
}

.av-video-play-btn i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

.av-video-info {
    padding: 12px;
}

.av-video-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.av-video-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* No Content */
.av-no-content {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .av-playlists-grid,
    .av-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .av-title {
        font-size: 2rem;
    }

    .av-sector-image {
        height: 150px;
    }

    .av-playlist-image {
        height: 140px;
    }

    .av-video-thumbnail {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .av-sectors-grid,
    .av-playlists-grid,
    .av-videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Management Form Styles */
.av-manage-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.av-manage-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.av-form .form-group {
    margin-bottom: 15px;
}

.av-form .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.av-form .form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
    box-sizing: border-box;
}

.av-form .form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.av-form textarea.form-control {
    resize: vertical;
}

.av-form .btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.av-form .btn-primary {
    background-color: #2368ab;
    color: white;
}

.av-form .btn-primary:hover {
    background-color: #0056b3;
}

/* Lightbox Styles */
.av-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.av-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.av-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.av-lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
}

.av-lightbox-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.av-lightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}