/* Latest Updates Section Styles - Modern UCPL Theme */

/* Section Container */
.latest-updates-modern {
    background: #ffffff;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Section Header */
.section-header-modern {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.section-title-modern {
    font-size: 2.8rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-line-orange {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* View All Link */
.view-all-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff6b00;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.view-all-link-modern:hover {
    color: #e55a00;
    transform: translateX(5px);
}

.view-all-link-modern i {
    transition: transform 0.3s ease;
}

.view-all-link-modern:hover i {
    transform: translateX(3px);
}

/* Updates Grid */
.updates-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Article Card */
.update-card-modern {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
}

.update-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(255, 107, 0, 0.25);
    border-color: #ff6b00;
}

.update-card-modern:hover .card-image-wrapper img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.update-card-modern:hover .card-overlay {
    opacity: 1;
}

/* Card Badge */
.card-badge-orange {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Content */
.card-content {
    padding: 30px;
    background: #ffffff;
}

.card-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.update-card-modern:hover .card-content h4 {
    color: #ff6b00;
}

.card-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-date i {
    color: #ff6b00;
}

/* Photo Gallery Preview Styles */
#photo-gallery {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

#photo-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ff6b00" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ff6b00" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ff6b00" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="%23ff6b00" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="%23ff6b00" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.gallery-preview-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
    border-color: #ff6b00;
}

.gallery-preview-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: #000000;
}

.gallery-preview-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-preview-card:hover .gallery-preview-image-wrapper img {
    transform: scale(1.15);
    opacity: 0.8;
}

.gallery-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview-card:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-badge {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.gallery-preview-content {
    padding: 25px;
    background: #ffffff;
    text-align: left;
}

.gallery-preview-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.gallery-preview-card:hover .gallery-preview-content h4 {
    color: #ff6b00;
}

.gallery-preview-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-preview-date i {
    color: #ff6b00;
}

/* Video Gallery Preview Styles */
#video-gallery {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.video-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
    border-color: #ff6b00;
}

.video-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.6s ease;
}

.video-card:hover img {
    transform: scale(1.15);
    opacity: 0.8;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .video-play-overlay {
    color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-content {
    padding: 25px;
    background: #ffffff;
    text-align: left;
}

.video-card-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-card:hover .video-card-content h4 {
    color: #ff6b00;
}

.video-card-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-card-content p i {
    color: #ff6b00;
}

.video-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    margin-bottom: 15px;
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Animation on scroll */
[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .updates-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .gallery-preview-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .latest-updates-modern {
        padding: 60px 15px;
    }

    .section-title-modern {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 15px;
    }

    .title-line-orange {
        width: 40px;
    }

    .updates-grid-modern,
    .gallery-preview-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .card-image-wrapper,
    .gallery-preview-image-wrapper {
        height: 280px;
    }

    .card-content h4,
    .gallery-preview-content h4,
    .video-card-content h4 {
        font-size: 1.1rem;
    }

    #latest-updates,
    #photo-gallery,
    #video-gallery {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 15px;
    }

    .line {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .section-title-modern {
        font-size: 1.8rem;
    }

    .card-content,
    .gallery-preview-content,
    .video-card-content {
        padding: 20px;
    }

    .card-content h4,
    .gallery-preview-content h4,
    .video-card-content h4 {
        font-size: 1rem;
    }

    .card-image-wrapper,
    .gallery-preview-image-wrapper {
        height: 250px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .line {
        width: 30px;
    }
}
