/* ==========================================================================
   Kiểu dáng cho Membership Pricing Table
   ========================================================================== */

:root {
    /* Define color variables for pricing cards */
    --mp-blue-primary: #007bff;
    --mp-blue-hover: #0056b3;
    --mp-gold-primary: #ffc107;
    --mp-gold-hover: #e0a800;
    --mp-red-primary: #dc3545;
    --mp-red-hover: #c82333;
}

.mp-pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mp-pricing-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mp-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mp-pricing-card h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.mp-pricing-card .price {
    font-size: clamp(32px, 5vw, 48px); /* Tự động co giãn theo màn hình */
    font-weight: 700;
    color: var(--mp-blue-primary); /* Default price color */
    margin: 20px 0;
}

.mp-pricing-card .price::after {
    content: 'đ';
    font-size: clamp(18px, 2.5vw, 24px); /* Chữ đ co giãn theo màn hình */
    font-weight: 400;
    vertical-align: super;
    margin-left: 5px;
}

.mp-pricing-card p {
    font-size: 16px;
    color: #777;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow content to push button to bottom */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-pricing-card a.mp-button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    width: calc(100% - 24px); /* Account for padding */
    box-sizing: border-box;
}

/* Color schemes for pricing cards */
.mp-blue {
    border-color: var(--mp-blue-primary);
}
.mp-blue .price,
.mp-blue h2 {
    color: var(--mp-blue-primary);
}
.mp-blue a.mp-button {
    background-color: var(--mp-blue-primary);
    color: #fff;
}
.mp-blue a.mp-button:hover {
    background-color: var(--mp-blue-hover);
}

.mp-gold {
    border-color: var(--mp-gold-primary);
    transform: scale(1.05); /* Highlight the middle card */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.mp-gold:hover {
    transform: scale(1.08) translateY(-8px); /* Enhanced hover for highlighted card */
}
.mp-gold .price,
.mp-gold h2 {
    color: var(--mp-gold-primary);
}
.mp-gold a.mp-button {
    background-color: var(--mp-gold-primary);
    color: #333;
}
.mp-gold a.mp-button:hover {
    background-color: var(--mp-gold-hover);
}

.mp-red {
    border-color: var(--mp-red-primary);
}
.mp-red .price,
.mp-red h2 {
    color: var(--mp-red-primary);
}
.mp-red a.mp-button {
    background-color: var(--mp-red-primary);
    color: #fff;
}
.mp-red a.mp-button:hover {
    background-color: var(--mp-red-hover);
}

/* Responsive adjustments for pricing cards */
@media (max-width: 768px) {
    .mp-pricing-container {
        flex-direction: column;
        align-items: center;
    }
    .mp-pricing-card {
        max-width: 80%;
        margin-bottom: 20px;
        transform: none; /* Reset transform for mobile */
    }
    .mp-gold {
        transform: none;
    }
    .mp-gold:hover {
        transform: none;
    }
}

.mp-pricing-saving-text {
    font-weight: bold;
    color: #28a745; /* Màu xanh lá cây */
    background-color: #e2f0e9;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}
