.history-text {
    margin-top: 16px;
    line-height: 1.6;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* People section uses .hero class from base.css */
/* Add bottom margin to the people section for spacing */
.people-section {
    margin-bottom: 20px;
    overflow-x: hidden;
}

.history-section {
    overflow-x: hidden;
}

/* Grid with exactly 4 columns, matching the spacing pattern of .grid */
/* Constrain grid width to ensure proper centering and prevent overflow */
.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    min-width: 0;
}

.person-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    aspect-ratio: 1;
    color: var(--normal);
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.person-name {
    margin: 0;
    font-size: 1rem;
    color: var(--normal);
    font-weight: 600;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.person-image {
    width: 60%;
    height: auto;
    max-height: 50%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.person-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */

@media (max-width: 960px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .people-section {
        margin-bottom: 16px;
        overflow-x: hidden;
    }

    .history-section {
        overflow-x: hidden;
    }

    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }

    .person-card {
        padding: 14px;
        border-radius: 10px;
        min-width: 0;
        overflow: hidden;
    }

    .person-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .person-image {
        width: 65%;
        margin: 10px 0;
    }

    .person-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .history-text {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .people-grid {
        gap: 10px;
    }

    .person-card {
        padding: 12px;
        border-radius: 8px;
    }

    .person-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .person-image {
        width: 70%;
        margin: 8px 0;
        border-radius: 6px;
    }

    .person-description {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .history-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .people-grid {
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .person-card {
        padding: 10px;
        min-width: 0;
        overflow: hidden;
    }

    .person-name {
        font-size: 0.85rem;
    }

    .person-image {
        width: 75%;
        margin: 6px 0;
    }

    .person-description {
        font-size: 0.7rem;
    }

    .history-text {
        font-size: 0.8rem;
    }
}
