.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* Main content */
.main-content {
    margin-top: 120px;
    padding: 2rem 9%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--main-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    background: #4a9e04;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 179, 5, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--main-color) 0%, #4a9e04 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Horizontal Layout */
.steps-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

/* Steps Content */
.steps-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--main-color);
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevent overflow */
}

.steps-list {
    counter-reset: step-number 0;
    list-style: none;
    padding: 0;
}

.steps-list li {
    counter-increment: step-number;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--second-bg-color);
    border-radius: 10px;
    border-left: 4px solid var(--main-color);
    position: relative;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 4rem;
}

.steps-list li:hover {
    transform: translateX(5px);
    background: #d8f0d5;
}

.steps-list li::before {
    content: counter(step-number);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--main-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(92, 179, 5, 0.3);
}

/* Image Container - Replaces Video Container */
.image-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--main-color);
    position: sticky;
    top: 140px;
    aspect-ratio: 9/12;
}

.image-container h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.image-container h3::before {
    content: '🖼️';
    font-size: 1.2rem;
}

.image-scroll {
    height: calc(100% - 60px); /* Account for header */
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.image-scroll::-webkit-scrollbar {
    height: 8px;
}

.image-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.image-scroll::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

.image-scroll::-webkit-scrollbar-thumb:hover {
    background: #4a9e04;
}

.image-item {
    flex-shrink: 0;
    width: 200px; /* Fixed width for horizontal scrolling */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item img {
    width: 100%;
    aspect-ratio: 9/16; /* Maintain aspect ratio */
    object-fit: cover; /* Maintain aspect ratio */
    display: block;
}

/* Video Container - Now positioned below */
.video-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--main-color);
    margin-top: 2rem;
    /* Remove position sticky */
}

.video-container h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-container h3::before {
    content: '📹';
    font-size: 1.2rem;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .main-content {
        padding: 2rem 3%;
    }
    
    .steps-section {
        grid-template-columns: 1fr 350px; /* Reduce image container width */
        gap: 1.5rem;
    }

    .steps-list li::before {
        width: 25px;
        height: 25px;
        left: 0.5rem;
        font-size: 1.1rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    
    .main-content {
        padding: 2rem 3%;
    }
    
    .steps-section {
        grid-template-columns: 1fr 300px; /* Further reduce image container width */
        gap: 1.5rem;
    }

    .steps-list li::before {
        width: 20px;
        height: 20px;
        left: 0.8rem;
        font-size: 1.1rem;
    }

}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem 3%; /* Reduce padding further */
    }
    
    .steps-section {
        display: flex; /* Change from grid to flex for better control */
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .image-container {
        position: static; /* Remove sticky positioning */
        aspect-ratio: 2/1; /* Wider aspect ratio for mobile */
        order: 2; /* Images second */
        width: 100%;
        padding: 1.5rem;
    }

    .image-item {
        width: 130px; /* Fixed width for horizontal scrolling */
        border-radius: 5px;
    }
    
    .video-container {
        position: static;
        order: 2;
    }

    .steps-content {
        padding: 1.5rem;
        order: 1; /* Steps first */
        width: 100%;
    }
    
    .steps-list li {
        padding: 1rem;
        padding-left: 3rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .steps-list li::before {
        width: 20px;
        height: 20px;
        left: 0.5rem;
        font-size: 1rem;
    }
    
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
}

/* Very Small Screens */
@media (max-width: 480px) {
    .steps-section {
        gap: 1rem;
    }
    
    .steps-content {
        padding: 1rem;
    }
    
    .image-container {
        padding: 1rem;
        aspect-ratio: 1.5/1; /* Even wider for very small screens */
    }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    color: #856404;
    margin: 2rem 0;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #dc3545;
}
