/* DIG Community Program - Frontend Styles */

/* Program Carousel Container */
.dig-program-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 80px;
}

/* Carousel Wrapper */
.dig-program-carousel {
    position: relative;
    width: 100%;
    min-height: 400px;
}

/* Program Slides */
.dig-program-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.dig-program-slide.active {
    display: block;
    opacity: 1;
}

/* Program Content Layout - Image Left, Details Right */
.dig-program-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Image Section - Left Side, Small */
.dig-program-image-section {
    flex: 0 0 350px;
    max-width: 350px;
}

.dig-program-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dig-program-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.dig-program-image-wrapper:hover .dig-program-image {
    transform: scale(1.05);
}

/* Image Overlay on Hover */
.dig-program-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.dig-program-image-wrapper:hover .dig-program-image-overlay {
    opacity: 1;
}

.dig-program-zoom-icon {
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dig-program-no-image {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    border-radius: 8px;
}

/* Lightbox Modal */
.dig-program-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.dig-program-lightbox.active {
    display: block;
}

.dig-program-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.dig-program-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 40px 20px;
}

.dig-program-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.dig-program-lightbox-close:hover {
    opacity: 1;
}

.dig-program-lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.dig-program-lightbox-caption {
    color: #fff;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Details Section - Right Side */
.dig-program-details-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Program Title */
.dig-program-title {
    font-size: 2.2em;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Event Date */
.dig-program-date {
    font-size: 1.8em;
    color: #2c2c2c;
    font-weight: 600;
    margin: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Event Time */
.dig-program-time {
    font-size: 1.8em;
    color: #2c2c2c;
    font-weight: 600;
    margin: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Location */
.dig-program-location {
    font-size: 1.1em;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 10px 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Register Button */
.dig-program-register-btn {
    display: inline-block;
    background: #1E9B97;
    color: #fff;
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dig-program-register-btn:hover {
    background: #177b78;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 155, 151, 0.3);
    color: #fff;
}

/* Navigation Arrows */
.dig-program-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1E9B97;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.dig-program-nav span {
    font-size: 28px;
    color: #fff;
    line-height: 1;
}

.dig-program-nav:hover {
    background: #177b78;
    transform: translateY(-50%) scale(1.1);
}

.dig-program-prev {
    left: 10px;
}

.dig-program-next {
    right: 10px;
}

/* Dots Navigation */
.dig-program-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.dig-program-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dig-program-dot:hover {
    border-color: #1E9B97;
}

.dig-program-dot.active {
    background: #1E9B97;
    border-color: #1E9B97;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dig-program-container {
        padding: 30px 60px;
    }
    
    .dig-program-content {
        gap: 30px;
        padding: 30px;
    }
    
    .dig-program-image-section {
        flex: 0 0 300px;
        max-width: 300px;
    }
    
    .dig-program-title {
        font-size: 1.8em;
    }
    
    .dig-program-date,
    .dig-program-time {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .dig-program-container {
        padding: 20px 50px;
    }
    
    .dig-program-content {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }
    
    .dig-program-image-section {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .dig-program-title {
        font-size: 1.6em;
    }
    
    .dig-program-date,
    .dig-program-time {
        font-size: 1.3em;
    }
    
    .dig-program-location {
        font-size: 1em;
    }
    
    .dig-program-nav {
        width: 45px;
        height: 45px;
    }
    
    .dig-program-nav span {
        font-size: 24px;
    }
    
    .dig-program-prev {
        left: 5px;
    }
    
    .dig-program-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .dig-program-container {
        padding: 20px;
    }
    
    .dig-program-content {
        padding: 20px;
    }
    
    .dig-program-title {
        font-size: 1.4em;
    }
    
    .dig-program-date,
    .dig-program-time {
        font-size: 1.2em;
    }
    
    .dig-program-register-btn {
        padding: 12px 30px;
        font-size: 1em;
        width: 100%;
    }
    
    .dig-program-nav {
        width: 40px;
        height: 40px;
    }
    
    .dig-program-nav span {
        font-size: 20px;
    }
    
    .dig-program-dots {
        gap: 10px;
        margin-top: 30px;
    }
    
    .dig-program-dot {
        width: 12px;
        height: 12px;
    }
    
    /* Lightbox mobile adjustments */
    .dig-program-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
    
    .dig-program-lightbox-image {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .dig-program-lightbox-caption {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .dig-program-zoom-icon {
        font-size: 36px;
    }
}

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

.dig-program-slide.active .dig-program-content {
    animation: slideIn 0.5s ease-out;
}
