/* Styles for the Services Page */
.main-container {
    display: flex;
    padding: 20px;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.sidebar {
    flex: 1;
    padding-right: 20px;
}

.form-navigation {
    margin-bottom: 20px;
}

.service-nav ul {
    display: flex; /* Display headers horizontally */
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-nav li {
    margin-right: 20px;
}

.service-nav a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    display: block;
    padding: 10px;
    border: 1px solid #007BFF;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.service-nav a.active {
    background-color: #007BFF;
    color: #fff;
}

/* Styling for the form box with black border */
.form-box {
    border: 1px solid black; /* Black border for the form box */
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9; /* Light background color for better contrast */
    max-width: 500px; /* Decrease the width of the box */
    margin: 0 auto; /* Center the box horizontally */
}

.form-content {
    display: none; /* Hide all forms by default */
}

.form-content.active {
    display: block; /* Show the active form */
}

.form-content h2 {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    align-items: flex-start; /* Align items to the left */
}

form input,
form select,
form button {
    width: 100%; /* Full width within the form box */
    max-width: 300px; /* Adjust to make them narrower */
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

.info-right {
    margin-left: 10px; /* Adjust as needed */
    width: 100%; /* Ensure it takes full width within the container */
    max-width: 300px; /* Adjust as needed */
}

.metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.metric-item {
    text-align: center;
}

.metric-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.count {
    font-size: 24px;
    font-weight: bold;
    color: skyblue;
}

.image-section {
    text-align: center; /* Center the heading */
    margin-top: 20px; /* Space above the heading */
}

.heading {
    font-size: 24px; /* Adjust size as needed */
    font-weight: bold;
    color: #333; /* Adjust color as needed */
    margin-bottom: 20px; /* Space below the heading */
}

.image-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsive design */
    gap: 20px;
    margin-top: 40px;
    justify-content: center; /* Center images horizontally */
}

.image-grid .image-item {
    position: relative;
    flex: 0 0 250px; /* Set base width */
    min-width: 250px; /* Ensure minimum width for visibility */
    max-width: 400px; /* Optional: Set a maximum width */
    height: 250px; /* Set a fixed height for uniformity */
    overflow: hidden;
    border-radius: 10px; /* Round corners of the image item */
}

.image-grid img {
    width: 100%;
    height: 100%; /* Ensure all images fill the fixed height */
    object-fit: cover; /* Ensures the image covers the entire area */
    display: block;
    border-radius: 10px; /* Round corners of the image */
}

.image-grid .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 0, 128, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 10px; /* Round corners of the overlay */
    padding: 10px; /* Add some padding for better visibility */
}

.image-grid .overlay .overlay-content {
    text-align: center;
    flex-grow: 1; /* Allow content to take up available space */
}

.image-grid .overlay .title {
    font-size: 1.5em;
    font-weight: bold;
}

.image-grid .overlay .description {
    margin-top: 10px;
    font-size: 1em;
}

.image-grid .image-item:hover .overlay {
    opacity: 1;
}

.intro-right .intro-image1 {
    width: 500px; 
    margin-left: -200px;
}
/* Media Queries for different screen sizes */
@media (max-width: 400px) {
    .image-grid .image-item {
        height: 200px; /* Adjust height for smaller screens */
    }

    .heading {
        font-size: 20px; /* Adjust heading size for smaller screens */
    }
}

@media (min-width: 1100px) and (max-width: 1200px) {
    .image-grid .image-item {
        height: 140px; /* Adjust height for medium screens */
    }

    .heading {
        font-size: 22px; /* Adjust heading size */
    }

    .intro-right .intro-image {
        width: 200px;
        height: 150px;
    }

    .intro-right .intro-image1 {
        width: 300px;
        height: 200px;
        margin-left: -30px;
    }
}

@media (min-width: 1201px) and (max-width: 1300px) {
    .image-grid .image-item {
        height: 140px; /* Adjust height for larger medium screens */
    }

    .heading {
        font-size: 23px; /* Adjust heading size */
    }

    .intro-right .intro-image {
        width: 200px;
        height: 150px;
    }

    .intro-right .intro-image1 {
        width: 300px;
        height: 200px;
        margin-left: -30px;
    }
}

@media (min-width: 1301px) and (max-width: 1400px) {
    .image-grid .image-item {
        height: 140px; /* Adjust height for larger screens */
    }

    .heading {
        font-size: 24px; /* Adjust heading size */
    }

    .intro-right .intro-image {
        width: 200px;
        height: 150px;
    }

    .intro-right .intro-image1 {
        width: 300px;
        height: 200px;
        margin-left: -30px;
    }
}

@media (min-width: 1401px) and (max-width: 1700px) {
    .intro-right .intro-image {
        width: 200px;
        height: 150px;
    }

    .intro-right .intro-image1 {
        width: 300px;
        height: 200px;
        margin-left: -30px;
    }
}

@media (min-width: 300px) and (max-width: 400px) {
    .intro-right .intro-image {
        width: 200px;
        height: 150px;
    }

    .intro-right .intro-image1 {
        width: 300px;
        height: 200px;
        margin-left: -30px;
        margin-top: -10px;
    }
}





/* Styles for the container */
.form-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    margin-left: 0; /* Reset margin-left if you want it to be centered */
}

/* Styling for the left side (unchanged) */
.form-left {
    flex: 1; /* Take up remaining space */
    padding: 20px;
    border-right: none; /* Optional: Add a border to separate sections */
}

/* Styling for the right side */
.info-right {
    flex: 1; /* Take up remaining space, similar to form-left */
    padding: 20px;
    max-width: 100%; /* Remove width constraint for responsiveness */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column; /* Stack vertically on small screens */
    }

    .info-right {
        max-width: none; /* Remove max-width constraint on smaller screens */
    }

    .info-right h1, .info-right p {
        margin-left: 0; /* Reset margin for smaller screens */
    }
}


/* Styling for the new intro container */
.intro-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9; /* Light background color */
    margin-bottom: 20px; /* Space between intro-container and main-container */
}

/* Styling for the left side of the intro container */
.intro-left {
    flex: 1;
    padding: 20px;
    max-width: 100%; /* Remove width constraint for responsiveness */
}

/* Styling for the right side of the intro container */
.intro-right {
    flex: 1;
    padding: 20px;
    max-width: 100%; /* Remove width constraint for responsiveness */
}

/* Styling for the heading in the intro container */
.intro-heading {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Styling for paragraphs in the intro container */
.intro-left p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Styling for the Show All button */
.show-all-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

/* Styling for the image in the intro container */
.intro-right .intro-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Styling for the button when clicked */
.show-all-btn.clicked {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

/* Additional responsive adjustments */
@media (max-width: 1024px) {
    .service-nav ul {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center;
    }

    .service-nav li {
        margin-right: 0;
        margin-bottom: 10px; /* Add space between vertical items */
    }

    .form-box {
        max-width: 90%; /* Make form box wider on smaller screens */
    }

    .image-grid .image-item {
        width: 100%; /* Make image items responsive */
    }

    .form-container {
        flex-direction: column; /* Stack vertically on smaller screens */
    }

    .intro-container {
        flex-direction: column; /* Stack vertically on smaller screens */
    }

    .intro-left,
    .intro-right {
        max-width: 100%; /* Remove width constraint for responsiveness */
    }
}

