/* เพิ่มสไตล์เฉพาะสำหรับหน้านี้ */
.mps-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/bg/bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

span.mp-badge.former {
    display: none;
}

.mps-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #60cb30;
}

.mps-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}


.mps-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.mps-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.btn {
    cursor: pointer;
}

.tab-btn {
    padding: 10px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom: 3px solid #60cb30;
    color: #60cb30;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.mps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.mp-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mp-card:hover {
    transform: translateY(-5px);
}

.mp-image {
    overflow: hidden;
    position: relative;
}

.mp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mp-card:hover .mp-image img {
    transform: scale(1.05);
}

.mp-image-container {
    display: flex;
    flex-direction: column;
}

.mp-constituency {
    background-color: #ff014f;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    width: fit-content;
    margin-bottom: 20px;
}

span.mp-badge.constituency {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    display: none;
}

.mp-info {
    padding: 20px;
}

.mp-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.mp-party {
    color: #60cb30;
    font-weight: bold;
    margin-bottom: 15px;
}

.mp-performance {
    margin-top: 15px;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.performance-label {
    color: #666;
}

.performance-value {
    font-weight: bold;
}

.view-profile {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #60cb30;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.view-profile:hover {
    background-color: #4da826;
}

.debates-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-top: 30px;
}

.debates-container {
    max-width: 1000px;
    margin: 0 auto;
}

.debate-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.debate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.debate-title {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.debate-date {
    color: #ff014f;
    font-size: 0.9rem;
}

.debate-mp {
    color: #60cb30;
    font-weight: bold;
    margin-bottom: 10px;
}

.debate-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.watch-btn {
    display: inline-block;
    padding: 6px 15px;
    background-color: #ff014f;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.watch-btn:hover {
    background-color: #d80043;
}

.watch-btn a {
    color: #fff;
}

@media (max-width: 768px) {
    .mps-hero {
        padding: 80px 0;
    }

    .mps-hero h1 {
        font-size: 2rem;
    }

    .mps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .mps-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
.mp-actions {
    display: grid;
    gap: 5px;
}
span.mp-badge.party-list {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    display: none;
}
