/* Profile Page Redesign */

section.profile-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

section.profile-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section.profile-section h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

/* Dashboard Grid */
.profile-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Dashboard Card */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 160px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.dashboard-card .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.dashboard-card:hover .icon {
    background: #f5e91f;
}

.dashboard-card .icon svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.dashboard-card .title {
    font-size: 18px;
    font-weight: 600;
}

/* Special Cards */
.dashboard-card.logout {
    border: 2px solid #eee;
    background: transparent;
}

.dashboard-card.logout:hover {
    border-color: #ff402b;
    color: #ff402b;
}

.dashboard-card.logout:hover .icon {
    background: #fff9f8;
}

.dashboard-card.logout:hover .icon svg {
    fill: #ff402b;
}

/* Banner */
.profile-banner {
    grid-column: 1 / -1;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .profile-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
        min-height: auto;
        text-align: left;
    }

    .dashboard-card .icon {
        margin-bottom: 0;
        margin-right: 15px;
        width: 40px;
        height: 40px;
    }

    .dashboard-card .icon svg {
        width: 20px;
        height: 20px;
    }
}