/* Commissions Page Styles */

.commissions-container {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Page Header */
.commissions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.commissions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.commissions-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ffffff 33%, #ED2024 33%, #ED2024 66%, #0E8040 66%);
    margin-top: 10px;
}

.commissions-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Commissions Grid */
.commissions-grid {
    display: grid;
    /* Changed to 2 columns as requested */
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Commission Card */
.commission-card {
    background: #fff;
    border-radius: 12px;
    overflow: visible; /* Changed from hidden to allow header radius to be distinct if needed, though header is inside */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.commission-header {
    background-color: #0E8040; /* Branding Green */
    padding: 2rem;
    display: flex;
    align-items: center;
    color: white;
    min-height: 100px;
    /* Round top corners */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.commission-icon {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.commission-icon i {
    font-size: 1.8rem;
    color: #0E8040;
}

.commission-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: white; /* Added white color */
}

.commission-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.commission-role {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.role-icon {
    width: 24px;
    color: #ED2024;
    margin-right: 10px;
    margin-top: 2px;
}

.role-content {
    flex: 1;
}

.role-label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.role-name {
    color: #666;
    font-size: 0.95rem;
}

/* Stats Section */
.group-stats-container {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.group-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.group-stat-name {
    font-weight: 500;
}

.group-stat-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
}

.commission-footer {
    padding: 1.5rem;
    padding-top: 0;
    text-align: center; /* Center align container */
}

.btn-view-commission {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Removed width: 100% to allow centering */
    width: auto;
    min-width: 200px;
    padding: 0.8rem 2rem;
    border: 1px solid #2e7d32;
    color: #2e7d32;
    background: transparent;
    border-radius: 30px; /* More rounded pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto; /* Auto margin for centering */
}

.btn-view-commission i {
    margin-right: 8px;
}

.btn-view-commission:hover {
    background: #2e7d32;
    color: white;
}

/* Pagination / Load More */
.commissions-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #ED2024;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #c41c1f;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .commissions-grid {
        grid-template-columns: 1fr; /* 1 column on smaller screens */
    }
    
    .commissions-title {
        font-size: 2rem;
    }
}
