/* Technology Section Styles */
.technology-section {
    padding: 60px 40px;
    text-align: center;
    /* Background now handled by body */
}

.technology-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.technology-section h3 {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Adjusted to 1000px as requested */
    height: 450px; /* Fixed height for the slider */
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background-color: white; /* Revert to white */
    padding-bottom: 40px; /* Add padding to make space for dots inside */
    box-sizing: border-box; /* Include padding in height */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    padding: 20px; /* Keep existing padding for overall comfort */
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    position: relative; /* Active slide takes up space */
}

.slide img {
    max-width: 100%;
    max-height: 80%; /* Increased further to allow image to be wider */
    object-fit: contain;
    margin-bottom: 20px; /* Keep existing margin */
    border-radius: 8px;
}

.slide p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 90%;
    text-align: center;
    margin-top: auto; /* Push paragraph to the bottom, creating space above it */
    margin-bottom: 5px; /* Further reduced from 10px to decrease gap between text and dots */
}

.slider-dots {
    position: absolute; /* Position inside slider-container */
    bottom: 15px; /* Increased from 5px to bring dots further from bottom edge */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    /* Removed margin-top and margin-bottom as it's now positioned absolutely */
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: #8B4513; /* SaddleBrown */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, height 0.3s ease, width 0.3s ease;
}

.dot.active {
    background-color: #5A3E36; /* Darker brown */
    transform: scale(1.2); /* Slightly larger */
    height: 14px;
    width: 14px;
}

/* Responsive Styles for Technology Section */
@media (max-width: 768px) {
    .technology-section {
        padding: 40px 20px;
    }

    .technology-section h2 {
        font-size: 2rem;
    }

    .technology-section h3 {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .slider-container {
        height: 400px; /* Adjust height for smaller screens */
        max-width: 100%; /* Allow full width on mobile */
    }

    .slide img {
        max-height: 70%; /* Adjust for smaller screens */
    }

    .slide p {
        font-size: 0.9rem;
        margin-bottom: 5px; /* Adjusted for mobile */
    }

    .slider-dots {
        bottom: 10px; /* Adjusted for mobile */
    }
    .slider-dots {
        bottom: 8px; /* Adjusted for very small screens */
    }
    .slider-dots {
        bottom: 3px; /* Adjust for mobile */
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 6px;
    }

    .dot.active {
        height: 12px;
        width: 12px;
    }
}

@media (max-width: 480px) {
    .technology-section h2 {
        font-size: 1.8rem;
    }

    .technology-section h3 {
        font-size: 0.9rem;
    }

    .slider-container {
        height: 350px; /* Further adjust height for very small screens */
    }

    .slide img {
        max-height: 60%; /* Further adjust for very small screens */
    }

    .slide p {
        font-size: 0.85rem;
        margin-bottom: 3px; /* Adjusted for very small screens */
    }

    .slider-dots {
        bottom: 5px; /* Adjust for mobile */
    }

    .dot {
        height: 8px;
        width: 8px;
        margin: 0 5px;
    }

    .dot.active {
        height: 10px;
        width: 10px;
    }
}
