/* Base Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #4d9c0d;
    color: white;
    padding: 20px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Container for Cards */
.tchs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    justify-content: center;
}

/* Individual Card Styling */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 calc(25% - 20px); /* 4 cards per row */
    max-width: calc(25% - 20px);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Flex Layout for Image + Name */
.card span {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card span img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #003366;
}

.card span p {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
}

/* Description Text */
.description {
    font-size: 0.95em;
    color: #444;
}

/* Responsive Adjustments */

/* Medium screens: 3 cards per row */
@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

/* Tablets: 2 cards per row */
@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    header h1 {
        font-size: 1.5em;
    }

    .logo h3 {
        font-size: 1em;
        text-align: center;
    }
}

/* Mobile: 1 card per row */
@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card span {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card span img {
        width: 60px;
        height: 60px;
    }

    .card span p {
        font-size: 1em;
    }

    .description {
        font-size: 0.9em;
    }
}
