* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f4f8fb;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0056b3;
    color: white;
    padding: 20px 0;
    border-bottom: 5px solid #50e3c2;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-pic {
    width: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-right: 20px;
}

.header-text h1 {
    font-size: 2.5em;
    margin-bottom: 0.1em;
}

header nav {
    background-color: #004494;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: #50e3c2;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #0056b3;
    text-align: center;
}

h4 {
    color: black;
    text-align: center;
    padding: 5px;
    margin: 2px 0;
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-content {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-pic {
    width: 140px;
    border-radius: 50%;
    margin-right: 20px;
    border: 4px solid #0056b3;
}

blockquote {
    border-left: 4px solid #0056b3;
    padding-left: 10px;
    margin: 10px 0;
    font-style: italic;
    color: #555;
}

.testimonial {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.services-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.services-offered {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.service-item {
    flex: 1; /* Ensures even spacing */
    margin: 0 10px; /* Adds margin between items */
    padding: 10px;
    background: #e0f7fa;
    border-radius: 5px;
    text-align: center;
}

.groups {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.group-item {
    flex: 1;
    text-align: center;
    margin: 0 10px;
    padding: 10px;
    background: #d1c4e9;
    border-radius: 5px;
}

.group-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.group-item a:hover {
    text-decoration: underline;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    align-items: flex-start;
}

.footer-section {
    max-width: 300px;
}

.footer-section h4 {
    margin-bottom: 10px;
    color: #50e3c2;
}

.footer-section a {
    color: #50e3c2;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.button {
    background-color: #0056b3;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.button:hover {
    background-color: #004494;
    transform: scale(1.05);
}

footer, header {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack header items */
        align-items: center;
        padding: 20px; /* Ensure padding is sufficient */
    }

    .header-container {
        flex-direction: column; /* Stack the image and text */
        align-items: center; /* Center items */
        text-align: center; /* Center text */
    }

    .header-pic {
        width: 80%; /* Responsive width */
        max-width: 120px; /* Maintain max size */
        margin-bottom: 10px; /* Space below the image */
    }

    .header-text h1 {
        font-size: 2em; /* Smaller font size for mobile */
        margin: 0; /* Remove margin */
    }

    .header-text h2 {
        font-size: 1.2em; /* Adjust designation size */
        margin: 0; /* Remove margin */
    }

    header nav {
        padding: 10px 0; /* Adjust nav padding */
    }

    header nav ul {
        display: flex; /* Use flexbox for nav items */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center nav items */
        padding: 0;
    }

    header nav ul li {
        display: block; /* Stack navigation items */
        margin: 5px; /* Space between items */
    }

    .about-content {
        display: flex;
        flex-direction: column; /* Stack photo and text */
        align-items: center; /* Center align items */
        text-align: center; /* Center text */
        margin-bottom: 15px; /* Spacing below */
    }

    .profile-pic {
        width: 100px; /* Responsive profile pic size */
        margin-bottom: 10px; /* Spacing below image */
    }

    blockquote {
        margin: 10px 0; /* Space around quote */
        font-size: 1em; /* Adjust quote size */
    }

    .services-offered {
        flex-direction: column; /* Stack services */
        align-items: center; /* Center services */
    }

    .service-item {
        margin: 10px 0; /* Vertical spacing */
        width: 80%; /* Full width on mobile */
    }

    .groups {
        flex-direction: column; /* Stack groups */
        align-items: center; /* Center items */
        margin-top: 20px; /* Add margin for spacing */
    }

    .group-item {
        width: 80%; /* Full width on mobile */
        margin: 10px 0; /* Vertical spacing */
    }

    .footer-content {
        flex-direction: column; /* Stack footer sections */
        align-items: center; /* Center footer content */
        padding: 10px; /* Padding adjustment */
    }

    .footer-section {
        margin-bottom: 15px; /* Space between footer sections */
        max-width: none; /* Reset max width */
    }
}
