/* Workshops Hero Section */
.workshops-hero {
    background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
    background-size: cover;
    background-position: center;
    padding: 8rem 2rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.workshops-hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.workshops-hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Upcoming Section */
.upcoming-section {
    padding: 2rem 5% 4rem;
    background: var(--bg-dark);
    position: relative;
}

.upcoming-section h2,
.past-section h2,
.gallery-section h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
}

.upcoming-section h2::after,
.past-section h2::after,
.gallery-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
}

.workshops-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.workshop-card {
    flex: 0 1 450px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
}

.workshop-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -15px rgba(100, 255, 218, 0.2);
}

.workshop-poster {
    height: 250px;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.workshop-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.workshop-card:hover .workshop-poster img {
    transform: scale(1.1);
}

.poster-placeholder {
    text-align: center;
    color: var(--text-dim);
}

.poster-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    display: block;
}

.poster-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.workshop-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.workshop-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workshop-details h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.workshop-details p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.workshop-features {
    list-style: none;
    margin-bottom: 2rem;
}

.workshop-features li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.workshop-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Past Section */

/* Workshop CTA Block */
.workshop-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(100, 255, 218, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.workshop-cta h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.workshop-cta p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 5%;
    background: var(--bg-darker);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    margin-top: -2rem;
}

.gallery-viewport {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    background: #000;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border: 1px solid rgba(100, 255, 218, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.gallery-nav:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    max-width: 800px;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumb {
    flex: 0 0 100px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .workshops-hero h1 {
        font-size: 2.5rem;
    }

    .archive-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .archive-date {
        min-width: auto;
        color: var(--primary-color);
    }

    /* Added for Service Detail Pages */
    .upcoming-section {
        padding: 4rem 1.5rem;
    }

    .services-detail-container {
        gap: 2.5rem !important;
        /* Override inline style */
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        /* Override inline style */
        gap: 1.5rem;
    }

    .view-more-container {
        margin-top: 2rem !important;
    }

    .service-block h2 {
        font-size: 2rem;
    }
}

/* Service Page Content Alignment */
.service-block {
    text-align: center;
}

.service-block p {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
}

/* Center lists but keep items left-aligned for readability */
.service-list-detail {
    display: inline-block;
    text-align: left;
    margin: 1rem auto;
}