.hero-section {
    padding: 2rem 0;
    background-color: #fafafa;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: #f0f0f0;
    aspect-ratio: 9 / 16;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.hero-fallback-img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Show fallback if video fails to load */
.hero-video-wrapper:has(video:not([src])) .hero-fallback-img,
.hero-video-wrapper video:not([src]) ~ .hero-fallback-img {
    display: block;
}

.hero-content {
    padding: 1rem 0;
}

.hero-slogan {
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-video-wrapper {
        margin: 0;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
}

/* Workshop Section */
.workshop-section {
    background-color: #ffffff;
}

.workshop-gallery {
    padding: 0.5rem 0;
}

.workshop-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    background-color: #f0f0f0;
}

.workshop-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workshop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.workshop-content {
    padding: 1rem 0;
}

.workshop-story {
    color: var(--text-color);
    line-height: 1.8;
}

.workshop-story ul {
    padding-left: 1.5rem;
}

.workshop-story li {
    margin-bottom: 0.5rem;
}

.workshop-highlights {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-color);
}

.highlight-item {
    background-color: #fafafa;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.highlight-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger animation delays for gallery images */
.workshop-gallery .row > div:nth-child(1) .workshop-image-wrapper {
    animation-delay: 0.1s;
    opacity: 0;
}

.workshop-gallery .row > div:nth-child(2) .workshop-image-wrapper {
    animation-delay: 0.2s;
    opacity: 0;
}

.workshop-gallery .row > div:nth-child(3) .workshop-image-wrapper {
    animation-delay: 0.3s;
    opacity: 0;
}

.workshop-gallery .row > div:nth-child(4) .workshop-image-wrapper {
    animation-delay: 0.4s;
    opacity: 0;
}

.workshop-gallery .row > div:nth-child(5) .workshop-image-wrapper {
    animation-delay: 0.5s;
    opacity: 0;
}

.workshop-gallery .row > div:nth-child(6) .workshop-image-wrapper {
    animation-delay: 0.6s;
    opacity: 0;
}

.workshop-gallery .row > div:nth-child(7) .workshop-image-wrapper {
    animation-delay: 0.7s;
    opacity: 0;
}

@media (min-width: 768px) {
    .workshop-content {
        padding: 2rem 0;
    }
    
    .workshop-gallery {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .workshop-section {
        padding: 2rem 0;
    }
    
    .workshop-content h2 {
        font-size: 1.75rem;
    }
    
    .workshop-image-wrapper {
        border-radius: 6px;
    }
    
    .highlight-item {
        margin-bottom: 1rem;
    }
}

.highlight-section .col-lg-3 {
    margin-bottom: 1rem;
}

.card-img-top {
    object-fit: cover;
}

.product-placeholder {
    height: 150px;
}

.product-placeholder-icon {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .highlight-section .col-md-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-video-wrapper {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
    }
}
