/* Container for the profile display */
.ipd-container {
    width: 100%;
    max-width: 1238px; /* Set container width to 1238px */
    margin: 0 auto; /* Center the container */
    box-sizing: border-box;
}

/* Grid layout for profiles */
.ipd-profile-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of boxes */
    justify-content: space-between; /* Even spacing between boxes */
    margin: 0; /* No margin for the grid */
}

/* Individual profile boxes */
.ipd-profile-box {
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
    width: 300.5px; /* Set width to 300.5px */
    height: 400px; /* Set height to 400px */
    margin: 0 0 10px 0; /* Right margin for spacing; bottom margin for row spacing */
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 10px; /* Rounded corners */
}

/* Gradient overlay */
.ipd-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)) !important; /* Gradient from black to transparent */
    border-radius: 0 0 10px 10px; /* Match box corners */
}

/* Profile content */
.ipd-content {
    padding: 15px;
    font-size: 18px;
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

/* Profile name styling */
.ipd-profile-name {
    margin: 0;
    text-align: left;
    font-size: 18px;
    color: white !important; /* White color */
}

/* Profile stats styling */
.ipd-profile-stats {
    display: flex; /* Flex layout for stats */
    align-items: center; /* Vertical alignment */
    margin: 5px 0; /* Spacing */
}

/* Icon styling */
.ipd-icon {
    width: 18px;              /* Icon width */
    height: 18px;             /* Icon height */
    vertical-align: middle;   /* Vertical alignment */
    filter: brightness(0) invert(1); /* Make icons white */
    margin: 0 6px;            /* Horizontal spacing */
}

/* Profile button styling */
.ipd-profile-button {
    display: inline-block;
    padding: 10px 15px; /* Increased padding */
    background-color: #00AFF0;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px; /* Consistent margin above the button */
    font-size: 16px; /* Increased font size */
    font-weight: 500; /* Font weight */
    text-align: left;
}

/* Button hover effect */
.ipd-profile-button:hover {
    background-color: #0087B2; /* Darker on hover */
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .ipd-profile-box {
        width: calc(50% - 10px); /* 2 boxes per row on tablets */
        margin-bottom: 10px; /* Bottom margin for spacing */
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .ipd-profile-box {
        width: 100%; /* Full width for mobile */
        margin: 10px 0; /* Spacing between boxes */
    }
}
