/* Custom CSS */

/* Flexbox setup for general layout, but not for form rows */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the contents of the row */
}

/* Specific class to center content */
.row.center-content {
    justify-content: center;
}

/* Specific styles for form container */
.form-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.col-md-6,
.col-sm-12 {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Team member styling */
.team-member {
    margin-bottom: 30px;
    text-align: center;
}

.team-member img {
    width: 60%; /* Set the default width to 60% of the container */
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

.team-member h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.team-member p {
    margin-bottom: 20px;
}

.social-buttons {
    padding: 0;
    margin: 10px 0;
}

.social-buttons li {
    display: inline-block;
    margin: 0 5px;
}

/* Service section styling */
#services .service-heading, 
#services .text-muted {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Ensure center alignment specifically for mobile devices */
@media (max-width: 767px) {
    .section-heading,
    .section-subheading,
    .form-container,
    .form-group,
    #services .service-heading,
    #services .text-muted {
        text-align: center !important;
    }

    .col-md-6,
    .col-sm-12 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .buttons {
        justify-content: center;
        display: flex;
    }

    #services .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .team-member img {
        width: 42%; /* Reduce the width by 30% for mobile */
    }
}

/* Ensure full width for desktop devices */
@media (min-width: 768px) {
    .form-container {
        justify-content: space-between;
        width: 100%;
    }

    .col-md-6 {
        max-width: 48%;
        flex: 0 0 48%;
    }

    .col-lg-12 {
        max-width: 100%;
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .buttons {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #services .col-md-4 {
        max-width: 33.333%;
        flex: 0 0 33.333%;
    }
}

/* About section styling */
#about {
    padding: 60px 0;
}

#about .container {
    max-width: 1300px;
    margin: 0 auto;
}

#about h2 {
    margin-bottom: 20px;
}

#about p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* Badge image styling */
.badge-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .badge-image {
        max-width: 200px;
    }
}

/* Center the badges in their rows */
#certifications .row.text-center {
    justify-content: center;
}

/* Footer styling */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 20px 0;
    text-align: center;
    font-size: 1.5rem;
}

.footer-container .col-md-4 {
    flex: 1;
    padding: 0 20px;
}

.copyright {
    white-space: nowrap;
}

.list-inline {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.list-inline > li {
    display: inline-block;
    margin-right: 15px;
}

@media (max-width: 767px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 10px 20px;
    }

    .footer-container .col-md-4 {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .copyright {
        white-space: normal;
    }
}

/* Contact Section Tagline */
#contact h3 {
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: italic;
    font-weight: 400;
}

/* Contact Information Section */
.contact-info {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.7rem;
}

.contact-info p {
    margin: 10px 0;
    padding: 0;
}

.contact-info strong, .contact-info span, .contact-info a {
    font-size: 1.7rem;
}

.contact-info strong {
    color: #fff;
}

.contact-info span, .contact-info a {
    color: #ffcc00;
}

.contact-info a {
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Header Section */
.header-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    min-height: 60vh; /* Reduce the height to cover 80% of the viewport */
    position: relative;
    margin-top: -70px; /* Negative margin to pull the header section under the navbar */
    z-index: -1; /* Ensure the content appears above the background image */
}

.header-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Add a slight overlay to improve text readability */
    z-index: -1;
}


/* Header Logo */
.header-logo {
    max-width: 50%;
    margin: 0 auto;
    display: block;
    margin-bottom: 50px;
    margin-top: 50px;
}

/* Ensure the header logo is responsive on smaller screens */
@media (max-width: 767px) {
    .header-logo {
        max-width: 70%;
        margin-bottom: 30px;
    }
}

/* Ensure the logo and button are centered */
@media (max-width: 767px) {
    .header-section .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-section .col-lg-12.text-center {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-section .img-fluid {
        margin-bottom: 20px;
    }

    .header-section .btn {
        margin-top: 20px;
    }
}

/* Ensure the button stays centered when window is halved */
@media (max-width: 1024px) {
    .header-section .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Adjust the logo size and alignment in the navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: 20px; /* Add some spacing from the left edge */
}

.navbar-brand img {
    max-height: 64px; /* Adjust the logo size */
    height: auto;
    width: auto;
    /* margin-right: 10px;*/ /* Add spacing between the logo and text if needed */
    /* margin-bottom: 0;*/
    padding-top: 5px;
    padding-bottom: 5px;
}

@media (max-width: 767px) {
    .navbar-brand img {
        max-height: 50px; /* Adjust the logo size */
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

#team .col-lg-8.col-lg-offset-2 {
    margin-left: auto;
    margin-right: auto;
    float: none;
}

#team p.large.text-muted {
    text-align: center;
    margin: 0 auto;
    /* max-width: 800px;  Optional: to keep the text width reasonable */
}
