/* General styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

/* Main content container */
main {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

main:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Alternating A-Z Layout */
.a-side, .z-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    transition: transform 0.3s ease;
}

.a-side:hover, .z-side:hover {
    transform: scale(1.02);
}

.a-side .text-content, .z-side .image-content {
    order: 1;
}

.a-side .image-content, .z-side .text-content {
    order: 2;
}

.text-content {
    flex: 1;
    padding: 30px;
    background-color: #212121;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-content:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.text-content h2 {
    font-size: 2em;
    color: #66c27b;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-content p, .text-content ul {
    color: #e0e0e0;
    margin: 15px 0;
    line-height: 1.5;
}

.text-content ul li {
    margin-bottom: 8px;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the container spans full width */
}

.image-content img {
    width: 100%; /* Set the image to take full width of its container */
    height: auto; /* Maintain aspect ratio */
    max-width: none; /* Remove max-width restriction */
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Team Section Specific */
.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.team-member {
    background-color: #212121;
    border-radius: 12px;
    width: 250px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.team-member img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #66c27b;
}

.team-member h3 {
    font-size: 1.3em;
    color: #e0e0e0;
    margin: 10px 0;
}

/* Links and Call-to-Actions */
a {
    color: #66c27b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Custom Styles for Backgrounds or Sections */
.about-us_intro {
    background-color: #333333;
}

.mission_intro {
    background-color: #212121;
}

.contact {
    background-color: #121212;
}

/* Responsive Design */
@media (max-width: 768px) {
    .a-side, .z-side {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-content {
        padding: 20px;
    }

    .image-content img {
        max-width: 100%;
    }

    .team-member {
        width: 200px;
    }

    .team-members {
        justify-content: space-evenly;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    main {
        width: 95%;
        padding: 20px;
    }

    .text-content h2 {
        font-size: 1.8em;
    }

    .team-member {
        width: 150px;
        padding: 15px;
    }

    .team-member img {
        width: 80px;
        height: 80px;
    }
}
