/* JSC CSR Activities Frontend Styles */

.jsc-csr-gallery-wrapper {
    margin: 20px 0;
}

.jsc-csr-gallery-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.jsc-csr-gallery-wrapper [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

.jsc-csr-activity-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.jsc-csr-activity-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.jsc-csr-activity-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.jsc-csr-activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.jsc-csr-activity-item:hover .jsc-csr-activity-image img {
    transform: scale(1.05);
}

.jsc-csr-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.jsc-csr-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 111, 45, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jsc-csr-activity-item:hover .jsc-csr-image-overlay {
    opacity: 1;
}

.jsc-csr-image-overlay span {
    font-size: 40px;
    color: white;
}

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

.jsc-csr-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f86f2d;
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    width: fit-content;
}

.jsc-csr-activity-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.jsc-csr-activity-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.jsc-csr-no-activities {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Lightbox Integration */
.jsc-csr-image-popup {
    cursor: zoom-in;
}

/* Magnific Popup overrides */
.image-popup[href] {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jsc-csr-gallery-wrapper [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .jsc-csr-activity-image {
        height: 200px;
    }
    
    .jsc-csr-activity-content {
        padding: 15px;
    }
    
    .jsc-csr-activity-content h3 {
        font-size: 16px;
    }
    
    .jsc-csr-activity-content p {
        font-size: 13px;
    }
    
    .jsc-csr-image-overlay span {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .jsc-csr-activity-image {
        height: 180px;
    }
    
    .jsc-csr-activity-content {
        padding: 12px;
    }
    
    .jsc-csr-activity-content h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .jsc-csr-activity-content p {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jsc-csr-activity-item {
    animation: fadeIn 0.5s ease forwards;
}

.jsc-csr-activity-item:nth-child(1) {
    animation-delay: 0.1s;
}

.jsc-csr-activity-item:nth-child(2) {
    animation-delay: 0.2s;
}

.jsc-csr-activity-item:nth-child(3) {
    animation-delay: 0.3s;
}

.jsc-csr-activity-item:nth-child(n+4) {
    animation-delay: 0.4s;
}
