/* services page */
body {
    padding-top: 80px; /* Adjust this value based on your navbar height */
    text-align: center;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.descriptions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.descriptions section {
    display: flex;
    align-items: center; /* Vertically aligns the image and text */
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 80px; /* Adjust this value to the height of your navbar */
}

.descriptions section img {
    max-width: 150px; /* Adjust the size of the image */
    height: auto;
    margin-right: 20px;
    border-radius: 8px; /* Optional: to match the box styling */
}

.descriptions section .text-content {
    flex: 1; /* Ensures the text takes the remaining space */
    text-align: left;
    display: flex;
    flex-direction: column; /* Ensures heading is above paragraph */
    justify-content: center; /* Vertically centers the text */
}

.descriptions section h2 {
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 10px;
    font-weight: bold;
    flex-direction: column;
    text-align: center; /* Keeps heading centered */
}

.descriptions section p {
    font-size: 1rem;
    color: #555;
    text-align: center;
}

@media (max-width: 768px) {
    .descriptions section {
        flex-direction: column; /* Stack image on top of text for smaller screens */
    }

    .descriptions section img {
        margin-right: 0;
        margin-bottom: 20px; /* Add spacing between image and text */
    }
}


.descriptions section:nth-child(odd) {
    background-color: #fff;
}

.descriptions section:nth-child(even) {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .descriptions {
        padding: 10px;
    }

    .descriptions h2 {
        font-size: 1.5rem;
    }

    .descriptions p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .descriptions section {
        flex-direction: column; /* Stack image on top of text for smaller screens */
    }

    .descriptions section img {
        margin-right: 0;
        margin-bottom: 20px; /* Add spacing between image and text */
    }
}
