/* --- Main Page Specific Styles --- */

.main-grid {
    display: flex;
    flex-wrap: wrap; /* Allows the sidebar to wrap below on smaller screens */
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.main-content {
    flex: 2 1 400px; /* Gives more weight to the main content area */
}

.sidebar-right {
    flex: 1 1 300px; /* Allows this column to grow and shrink */
    display: flex;
    justify-content: flex-end; /* Aligns the card to the right */
}

/* Style the content sections as cards */
.content-section {
    margin-bottom: var(--spacing-lg);
}

.action-box-card {
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-elevation-low);
}

.action-box-card h2 {
    margin-top: 0;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--club-yellow);
    color: var(--darker-green);
}

.action-box-card .action-item {
    margin-bottom: var(--spacing-lg);
}

.action-box-card .action-item:last-child {
    margin-bottom: 0;
}

.action-box-card .action-item p {
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: bold;
    white-space: nowrap; /* Prevents the text from wrapping, forcing the card width */
}

.action-box-card .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Responsive adjustments for stacking on smaller screens */
@media (max-width: 900px) {
    .main-grid {
        flex-direction: column;
    }
    .sidebar-right {
        width: 100%;
        justify-content: flex-start; /* Align left when stacked */
    }
    .action-box-card {
        width: 100%;
        box-sizing: border-box;
    }
    .action-box-card .action-item p {
        white-space: normal; /* Allow text to wrap again on small screens */
    }
}
