/* Premium Parliament Page Styling */

/* --- MP Cards Grid --- */
.mp-section {
    padding: 80px 0;
    position: relative;
}

.mp-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.mp-intro .sub-title {
    display: block;
    color: var(--brand-accent);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.mp-intro h2 {
    font-size: 2.5rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
}

.mp-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.mp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    group-hover: pointer;
}

.mp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-accent-light);
}

.mp-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #e0e0e0;
}

.mp-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
}

.mp-card:hover .mp-img-wrapper img {
    transform: scale(1.05);
}

/* Overlay for party logo or detail on hover */
.mp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
}

.mp-card:hover .mp-overlay {
    opacity: 1;
}

.mp-info {
    padding: 20px;
    text-align: center;
    position: relative;
}

.mp-info h4 {
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.mp-info .mp-role {
    display: block;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mp-info .mp-district {
    display: inline-block;
    background: #f9f9f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #eee;
}


/* --- Stats / Impact Section --- */
.stats-section {
    padding: 60px 0;
    background-color: var(--brand-primary);
    /* Deep Red Background */
    color: #fff;
    margin-top: 60px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.stats-intro-text {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.stats-intro-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.stats-intro-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 10px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--brand-accent);
    /* Gold */
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Custom Scrollbar for large grids if needed, though we use auto-fill */

/* Responsive */
@media (max-width: 768px) {
    .mp-intro h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mp-card {
        max-width: 400px;
        margin: 0 auto;
    }
}