/* Media Content Section Styles */
.media-content-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.media-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.media-item:hover .media-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.media-item-title {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.media-item-type {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.media-item-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.media-item:hover .video-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal */
.video-modal .modal-content {
    background-color: #000;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal .modal-body {
    padding: 0;
}

.video-modal .modal-header {
    border: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
}

.video-modal .btn-close {
    color: white;
    opacity: 1;
    text-shadow: none;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

/* Articles Carousel Section Styles */
.articles-carousel-section {
    padding: 80px 0;
    background-color: #fff;
}

.articles-carousel {
    margin-top: 40px;
    padding-bottom: 50px;
}

.articles-carousel .carousel-indicators {
    bottom: 0;
}

.articles-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #ccc;
    opacity: 0.5;
}

.articles-carousel .carousel-indicators button.active {
    background-color: #0d6efd;
    opacity: 1;
}

.article-card-modern {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.article-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card-modern:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0d6efd;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-date {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-date i {
    margin-left: 5px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
}

.article-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-link {
    margin-top: auto;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.article-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.article-link:hover {
    color: #0a58ca;
}

.article-link:hover i {
    transform: translateX(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .article-card-modern {
        margin-bottom: 30px;
    }
}

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