/* Style for the grid container */
.profile-card-grid {
    display: grid; /* Use CSS Grid for layout */
    grid-template-columns: repeat(4, 1fr); /* 4 columns of equal width */
    gap: 20px; /* Spacing between cards */
    padding: 20px; /* Padding around the grid */
    justify-content: center; /* Center the grid */
}

/* Reuse the profile card styles from the previous example */
.profile-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 250px; /* Slightly smaller width to fit 4 cards in a row */
    text-align: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer; /* Cursor changes to indicate clickability */
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-card img {
    border-radius: 50%;
    width: 80px; /* Adjusted size for smaller cards */
    height: 80px;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-card h2 {
    font-size: 1.4em;
    color: #333;
    margin: 0;
}

.profile-card h3 {
    font-size: 1em;
    color: #777;
    margin: 5px 0;
}

.profile-card p {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}

.profile-card a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.profile-card a:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position to stay in view */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    justify-content: center; /* Center the modal */
    align-items: center; /* Align items in the center */
}

.modal-content {
    background: white; /* White background for modal content */
    border-radius: 10px; /* Rounded corners */
    /* padding: 20px; Padding inside the modal */
    width: 700px; /* Fixed width */
    text-align: left; /* Left-align the text */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Drop shadow for depth */
}

.modal-content img {
    border-radius: 20% 20% 60% 20%;
    width: 150px; /* Adjusted size for smaller cards */
    height: 150px;
    object-fit: cover;
    margin-bottom:10px;
    margin-top:-100px;
    margin-left:-40px ;
}

.modal-content img:hover {
    transform: scale(1.1);
    border-radius: 20%;
}

.close-btn {
    text-align: right; /* Right-align the close button */
    font-size: 2em;
    cursor: pointer; /* Cursor changes to indicate clickability */
    color: #333;
    margin-right: 10px;
}

.close-btn:hover {
    color: #0066cc; /* Change color on hover */
}

.tab-header {
    text-align: center;
    border-bottom: 1px solid #ccc; /* Separate tabs from content */
    margin-bottom: 10px; /* Space between tabs and content */
    display: flex;
}

.tab-button {
    background: none; /* Transparent background */
    border: none; /* No border */
    padding: 10px 20px; /* Padding for click area */
    cursor: pointer; /* Pointer cursor to indicate clickability */
    font-size: 1em; /* Text size */
    color: #333; /* Default text color */
    outline: none; /* Remove outline on focus */
}

.tab-button:hover {
    color: #0066cc; /* Change text color on hover */
}

.tab-button:focus {
    color: #0066cc; /* Change text color on focus */
    border-bottom: 2px solid #0066cc; /* Underline the active tab */
}

.tab-content {
    display: none; /* Hidden by default */
    padding: 10px;
    height: 300px;
    overflow-y: auto;
}

/* Show the default tab (Overview) when the modal is opened */
#tab1-1 {
    display: block;
}