/*
 * Sidebar Cards CSS
 * Styles for modular sidebar card components
 */

/* Base sidebar card styling */
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e5eb;
    box-sizing: border-box;
    width: 285px;
    /* Updated to match new sidebar width */
    margin-bottom: 20px;
    /* 20px gap between cards */
}

/* Profile Card */
.sidebar-card.profile-card {
    height: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure blue header blends properly */
}

.profile-header-blue {
    background-color: #2F7FDF;
    height: 6px;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.profile-content {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Space between avatar and text */
}

.profile-avatar-wrapper {
    flex-shrink: 0;
    /* Prevent avatar from shrinking */
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    /* Take remaining space */
    text-align: left;
    /* Left align text */
}

.profile-name {
    margin: 0 0 4px 0;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #333;
}

.profile-org {
    margin: 0;
    color: #999;
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
}

/* Navigation Cards (all nav-based cards) */
.sidebar-card.navigation-card {
    padding: 8px 18px;
}

/* Find Resources Card - Separate styling */
.sidebar-card.find-resources-card {
    padding: 0px 18px;
}

/* Peer Networks Card - Separate styling */
.sidebar-card.peer-networks-card {
    padding: 0px 18px;
}

.sidebar-card nav {
    display: flex;
    flex-direction: column;
}

.sidebar-card nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333333 !important;
    font-family: "Mona Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0%;
    padding: 8px 0;
    font-weight: 600;
}

.sidebar-card nav a:hover {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
}


.sidebar-card nav a img {
    margin-right: 12px;
}


.sidebar-card nav a:hover {
    color: #333333;
}

/* Login Prompt */
.sidebar-card.login-prompt {
    text-align: center;
    padding: 24px 18px;
}

.sidebar-card.login-prompt p {
    color: #666;
    margin: 0;
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
}

/* Questions Card Spacing */
.questions-right-sidebar {
    margin-top: 0;
    /* Remove extra margin since cards now have consistent 20px spacing */
    margin-bottom: 20px;
    /* Maintain 20px gap with other cards */
}

/* Responsive sidebar card widths to match sidebar scaling */
@media (max-width: 1200px) {
    .sidebar-card {
        width: 260px;
        /* Match reduced sidebar width on smaller screens */
    }
}

@media (max-width: 1024px) {
    .sidebar-card {
        width: 240px;
        /* Match further reduced sidebar width on tablets */
    }
}