* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.hero {
    background-color: #283593;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.container {
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    gap: 40px; /* Space between sections */
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%; /* Full width */
    max-width: 600px; /* Max width for cards */
    display: flex; /* Flexbox for better content alignment */
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Distribute space evenly */
}

.card h2 {
    margin: 0 0 10px;
    color: #283593;
    font-size: 1.5em; /* Larger font size for better visibility */
}

.card p {
    color: #555;
    flex-grow: 1; /* Allow paragraph to take remaining space */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    opacity: 0; /* Start hidden */
    animation: fadeIn 0.5s forwards; /* Fade-in effect */
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.team-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.team-section h2 {
    margin-bottom: 20px;
    color: #283593;
}

.team-container {
    display: flex;
    flex-direction: column; /* Stack team members vertically */
    gap: 20px; /* Space between team members */
    padding: 0 20px;
    align-items: center; /* Center items horizontally */
}

.team-member {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%; /* Full width */
    max-width: 600px; /* Max width for team members */
}

.team-member h3 {
    margin: 10px 0 5px;
    color: #283593;
}

.team-member p {
    color: #555;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Scaling without changing layout */
@media (max-width: 1200px) {
    .card, .team-member {
        padding: 18px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 50px 15px;
    }
    
    .card, .team-member {
        padding: 16px;
    }

    .container, .team-container {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
    }
    
    .card, .team-member {
        padding: 14px;
    }

    .container, .team-container {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 10px;
    }

    .card, .team-member {
        padding: 12px;
        font-size: 0.9em;
    }

    .container, .team-container {
        gap: 8px;
    }
}
