/* General Settings */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth; /* Smooth scrolling behavior */
}

/* Navbar structure */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e4e4e4;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 80px;
    box-sizing: border-box;
}

.logo-and-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    margin-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    padding: 0;
    color: #0B2545;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
    vertical-align: baseline;
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    font-size: 16px;
    color: #0B2545;
}

.nav-menu a:hover {
    color: #1a73e8;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        right: 0;
        top: 110px;
        background: #fff;
        width: 200px;
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
}

/* Services Section */
#ourServices {
    padding: 2px; /* Reduced padding for less outer spacing */
    background-color: #0d1416;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Optional, depending on your design preference */
    margin-top: 10px; /* Adds 50px space at the bottom of the ourServices section */
    margin-bottom: 10px; /* Adds 50px space at the bottom of the ourServices section */
}

.services-container {
    display: flex;
    flex-direction: row-reverse; /* Reverses the order of flex items */
    justify-content: flex-end; /* Aligns items to the end */
    align-items: center; /* Vertically centers items in the container */
    gap: 80px; /* Space between image and text */
    flex-wrap: wrap; /* Allows items to wrap on small screens */
}

.services-image {
    flex: 0 0 300px; /* Flex-basis of 300px, does not grow or shrink */
    width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.services-image:hover {
    transform: scale(1.1); /* Zoom effect */
}

.services-text {
    flex: 1; /* Allows text to fill remaining space */
    padding: 0 16px; /* Sufficient padding inside the text container */
    text-align: center; /* Aligns text to the center */
}

#ourServices h2 {
    font-size: 30px; /* Font size */
    color: #9a3c3c; /* Font color */
    margin: 10px 0; /* Reduced top and bottom margins */
}

#ourServices p {
    font-size: 18px; /* Font size for paragraph */
    color: #fff;
    line-height: 1.5; /* Line height for better text presentation */
}

@media (max-width: 768px) {
    .services-container {
        gap: 40px; /* Maintain gap for tighter spaces */
        justify-content: center; /* Center align items horizontally */
    }

    .services-image {
        width: 100%; /* Set width to 100% to initially take the full container width */
        max-width: 220px; /* Limit how large the image can grow */
        height: auto; /* Maintain aspect ratio */
        margin: 20px auto; /* Increased vertical margin for better separation, centered horizontally */
        margin-bottom: 0; /* No additional space below the image */
        order: -1; /* Image comes before the text in stacking context */
        display: flex; /* Use flexbox properties */
        justify-content: center; /* Center the image horizontally */
        align-items: center; /* Center the image vertically */
        border: 1px solid white; /* White border around the image */
        box-sizing: border-box; /* Border included in width and height calculation */
    }

    .services-text {
        flex: 1 0 100%; /* Text block takes full width on small screens */
        text-align: center; /* Center align the text */
        margin: 0 40px; /* Increased margin to 40px on both left and right for more space */
    }

    #ourServices h2 {
        font-size: 24px; /* Adjusted font size for smaller screens */
    }

    #ourServices p {
        font-size: 14px; /* Adjusted font size for better readability */
    }
}

@media (max-width: 480px) {
    .services-container {
        gap: 20px; /* Further reduce gap for very small screens */
    }

    .services-image {
        max-width: 180px; /* Adjusts max width for smaller screens */
        margin: 10px auto; /* Center image with some top and bottom margin */
    }

    .services-text {
        margin: 0 30px; /* Increase margin for very small screens to prevent text touching the edges */
    }

    #ourServices h2 {
        font-size: 20px; /* Appropriate size for small screens */
    }

    #ourServices p {
        font-size: 12px; /* Smaller font size for better readability on very small devices */
        line-height: 1.4; /* Adjust line height for compact text */
    }
}



/* About Section */
#about {
    padding: 2px; /* Reduced padding for less outer spacing */
    background-color: #0d1416;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Optional, depending on your design preference */
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px; /* Reduced gap for tighter spacing between image and text */
    flex-wrap: wrap;
    width: 80%; /* Control the overall width for better spacing */
    max-width: 1000px; /* Reduced max width for a more compact layout */
    margin: auto; /* Ensures centering within the section */
}
.about-image {
    flex: 0 0 300px; /* Flex-basis of 300px, does not grow or shrink */
    width: 400px;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.1); /* Zoom effect */
}

.about-text {
    flex: 1; /* Allows text to fill remaining space */
    padding: 0 16px; /* Sufficient padding inside the text container */
    text-align: center; /* Aligns text to the center, adjust based on preference */
}

#about h2 {
    font-size: 30px; /* Slightly smaller font size */
    color: #9a3c3c;
    margin: 10px 0; /* Reduced top and bottom margins */
}

#about p {
    font-size: 18px; /* Slightly smaller font size for paragraph */
    color: #fff;
    line-height: 1.5; /* Tighter line height for better text presentation */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .about-container {
        gap: 40px; /* Reduce gap for tighter spaces */
    }

    .about-image {
        background-image: url('../public/images/who-we-are-small.jpg');
        flex: 1 0 auto; /* Flex-grow is 1, flex-shrink is 0, flex-basis is auto */
        width: 100%; /* Set width to 100% to initially take the full container width */
        max-width: 220px; /* Set a max-width to limit how large the image can grow */
        height: auto; /* Maintain aspect ratio */
        margin: 20px auto; /* Increased vertical margin for better separation, centered horizontally */
        margin-bottom: 0; /* Reduce the space below the image */
        border: 1px solid white; /* Adds a 5px solid white border around the image */
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); /* Optional: adds a shadow for more depth */
        box-sizing: border-box; /* Ensures the border width is included in the width calculation */
    }

    .about-text {
        flex: 1 0 100%; /* Full width on small screens */
        padding-top: 0; /* Reduce the space above the text */
    }

    #about h2 {
        font-size: 24px; /* Slightly smaller font size for small screens */
    }

    #about p {
        font-size: 16px; /* Slightly smaller font size for better readability */
    }
}

@media (max-width: 480px) {
    .about-container {
        gap: 20px; /* Further reduce gap for very small screens */
    }

    #about h2 {
        font-size: 20px; /* Further reduce for very small screens */
    }

    #about p {
        font-size: 14px; /* Adjust font size for very small screens */
    }
}
/* Service Header */
.ourVision-header {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center-align the content */
    justify-content: center; /* Center content vertically in the container */
    text-align: center; /* Center-align text */
    background-image: url('../public/images/service-header.jpg'); /* Path to the background image */
    background-size: cover; /* Ensure the background covers the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* No repeating of the background */
    background-attachment: fixed; /* Fixed background for better visual effect */  
    padding: 40px; /* Provide ample padding for spacing */
    margin: 20px auto; /* Center the container with automatic margin */
    width: 100%; /* Control width to match about-container */
    max-width: 1000px; /* Max width to prevent overly wide paragraphs */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth, similar to about-container */
    border-radius: 8px; /* Optional: Adds rounded corners if that matches your design */
    filter: brightness(90%) contrast(120%);
}

.ourVision-header h2 {
    font-size: 2.5rem; /* Larger font size for headings */
    color: #9a3c3c; /* Dark color for readability */
    margin-bottom: 20px; /* Space between the heading and paragraph */
}

.ourVision-header p {
    font-size: 1.5rem; /* Appropriate font size for readability */
    color: #fff; /* Subdued text color for the paragraph */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9); /* Black shadow for better contrast */
    line-height: 1.6; /* Enhanced line height for better readability */
}

.ourVision-header ul {
    padding-left: 20px; /* Indent for the list */
}

.ourVision-header ul li {
    font-size: 1.3rem;
    line-height: 1.6; /* Space between lines */
    text-align: left;
    font-weight: bold; 
    background: rgba(255, 255, 255, 0.5); /* White overlay with 50% transparency */
}

.ourVision-section {
    border-bottom: 1px solid #ccc; /* Adds a bottom border to each section */
    padding: 20px; /* Optional padding */
}

@media (max-width: 768px) {
    .ourVision-header h2, .ourVision-header p {
        max-width: 90%; /* Allows text to adjust to screen size, providing better readability on smaller devices */
        padding: 0 10px; /* Adjusts padding for smaller screens */
    }

    .ourVision-header h2 {
        font-size: 24px; /* Slightly reduced font size for headings on smaller devices */
    }

    .ourVision-header p {
        font-size: 16px; /* Slightly reduced font size for paragraphs on smaller devices */
    }
}

@media (max-width: 480px) {
    .ourVision-header {
        padding: 10px; /* Reduces overall padding in very small screens */
    }
    .ourVision-header h2, .ourVision-header p {
        max-width: 100%; /* Full width usage on very small devices */
        padding: 0 5px; /* Minimal padding to maximize space */
    }

    .ourVision-header h2 {
        font-size: 20px; /* Further reduced font size for headings on very small devices */
    }

    .ourVision-header p {
        font-size: 14px; /* Further reduced font size for paragraphs on very small devices */
    }
}

/* Footer */
.footer {
    background: #0B2545;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    text-decoration: none;
}

.social-icons a i {
    font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block;
}

.social-icons a:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}
