/* ESD Information Section Styles */
.product-esd-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.esd-title {
    color: #060735;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.esd-title .material-icons {
    color: #2fb5d2;
    font-size: 28px;
}

/* Timeline Styles */
.esd-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-step.active .step-icon,
.timeline-step:hover .step-icon {
    background: #2fb5d2;
    transform: scale(1.1);
}

.step-icon .material-icons {
    font-size: 30px;
    color: #060735;
}

.timeline-step.active .step-icon .material-icons,
.timeline-step:hover .step-icon .material-icons {
    color: white;
}

.step-label {
    font-weight: 600;
    color: #060735;
    margin-bottom: 5px;
    font-size: 16px;
}

.step-description {
    font-size: 13px;
    color: #6c757d;
}

.timeline-connector {
    flex: 0 0 80px;
    position: relative;
    height: 2px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.connector-line {
    position: absolute;
    top: -29px;
    left: 0;
    right: 20px;
    height: 2px;
    background: #dee2e6;
}

.connector-arrow {
    position: absolute;
    top: -32px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid #dee2e6;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Benefits Section */
.esd-benefits {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 500;
    color: #060735;
}

.benefit-item .material-icons {
    color: #2fb5d2;
    font-size: 24px;
}

/* Video Section */
.esd-video-section {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.video-title {
    color: #060735;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-title .material-icons {
    color: #e60000;
    font-size: 24px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Explanation Section */
.esd-explanation {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.esd-explanation h4 {
    color: #060735;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.esd-explanation ol {
    color: #495057;
    line-height: 1.8;
    padding-left: 20px;
}

.esd-explanation li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .esd-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline-connector {
        transform: rotate(90deg);
        flex: 0 0 40px;
    }
    
    .connector-line {
        top: 18px;
    }
    
    .connector-arrow {
        top: 15px;
    }
}

@media (max-width: 767px) {
    .product-esd-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .esd-title {
        font-size: 20px;
    }
    
    .esd-benefits {
        flex-direction: column;
    }
    
    .benefit-item {
        width: 100%;
        justify-content: center;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon .material-icons {
        font-size: 24px;
    }
    
    .step-label {
        font-size: 14px;
    }
    
    .step-description {
        font-size: 12px;
    }
    
    .esd-video-section,
    .esd-explanation {
        padding: 15px;
    }
}

/* Animation for timeline on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-esd-section {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-step {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-step:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-step:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-step:nth-child(5) {
    animation-delay: 0.3s;
}

/* Dark theme compatibility */
body.dark-mode .product-esd-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .esd-title,
body.dark-mode .step-label,
body.dark-mode .esd-explanation h4 {
    color: #ffffff;
}

body.dark-mode .timeline-step,
body.dark-mode .benefit-item,
body.dark-mode .esd-video-section,
body.dark-mode .esd-explanation {
    background: #0f3460;
}

body.dark-mode .step-description,
body.dark-mode .esd-explanation ol {
    color: #b8bec4;
}