/* Alumni Board Members – Frontend Styles */

#atl-board-members-app {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.atl-board-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}

.atl-board-controls label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: #334155;
}

.atl-board-inline-check {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.atl-board-controls select {
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.atl-board-controls button {
    padding: 8px 14px;
    border: 1px solid #0f172a;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    cursor: pointer;
}

.atl-board-controls button:hover {
    background: #1e293b;
}

.atl-board-term-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 2px solid #dbe3ef;
}

.atl-board-term-tab {
    border: 1px solid #dbe3ef;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #f1f5f9;
    color: #1e293b;
    padding: 9px 14px;
    cursor: pointer;
}

.atl-board-term-tab:hover {
    background: #e2e8f0;
}

.atl-board-term-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.atl-board-cards-container {
    margin-bottom: 24px;
}

.atl-board-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 16px 0 12px;
}

.atl-board-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.atl-board-cards-row-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.atl-board-cards-row-center .atl-board-card {
    width: min(100%, 280px);
}

.atl-board-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.atl-board-card-image {
    background: #e2e8f0;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atl-board-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atl-board-card-placeholder {
    font-size: 56px;
    color: #64748b;
}

.atl-board-card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-height: 130px;
}

.atl-board-card-name {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 8px;
}

.atl-board-card-term {
    font-size: 0.85rem;
    text-align: center;
    color: #334155;
    margin-bottom: 8px;
}

.atl-board-card-role {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    text-align: center;
    color: #475569;
}

.atl-board-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}

.atl-board-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.atl-board-table-wrapper th,
.atl-board-table-wrapper td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
}

.atl-board-table-wrapper th {
    background: #f8fafc;
    color: #0f172a;
}

.atl-board-member-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atl-board-member-image,
.atl-board-member-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    flex-shrink: 0;
}

.atl-board-member-image {
    object-fit: cover;
}

.atl-board-member-placeholder {
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #475569;
}

@media (max-width: 1200px) {
    .atl-board-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 860px) {
    .atl-board-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .atl-board-card-image {
        height: 180px;
    }
}

@media (max-width: 560px) {
    .atl-board-cards-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .atl-board-controls {
        gap: 10px;
    }

    .atl-board-controls label,
    .atl-board-controls select,
    .atl-board-controls button {
        width: 100%;
    }

    .atl-board-inline-check {
        width: auto !important;
    }

    .atl-board-card-image {
        height: 150px;
    }
}
