body {
    margin: 0;
    font-family: 'Poppins', 'Kanit', sans-serif;
    background: linear-gradient(135deg, #f3e7ff 0%, #e9e7ff 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 15px 0;
    /* background-color: rgba(255, 255, 255, 0.1); */
}

.language-switcher {
    text-align: right;
}

#lang-select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
}

.pricing-section {
    padding: 40px 0;
    text-align: center;
}

.pricing-section h1 {
    font-size: 2.8em;
    color: #4a148c; /* Darker Purple */
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-section .subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align cards to the top */
    flex-wrap: wrap;
    gap: 30px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 320px;
    text-align: left;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For badge positioning */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.recommended {
    border-top: 5px solid #e91e63; /* Pinkish-red accent */
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e91e63; /* Pinkish-red */
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.pricing-card h2 {
    font-size: 1.8em;
    margin-top: 10px; /* Adjusted for badge */
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.pricing-card .price {
    font-size: 2.8em;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
    text-align: center;
}
.pricing-card .price .period {
    font-size: 0.4em;
    font-weight: normal;
    color: #777;
}

.pricing-card .price-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    min-height: 30px; /* To prevent layout shifts */
}

.annual-price-details {
    text-align: center;
    margin-bottom: 5px;
}
.annual-price-details .strikethrough {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
}
.annual-price-details .discount {
    background-color: #ffe082; /* Light yellow for discount */
    color: #c0392b; /* Dark red text for discount */
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
}


.pricing-card .features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.pricing-card .features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.pricing-card .features .checkmark {
    color: #4CAF50; /* Green checkmark */
    margin-right: 8px;
    font-weight: bold;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px; /* Padding นี้จะถูกรวมอยู่ใน width 100% แล้ว */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    text-align: center; /* ที่เพิ่มไปครั้งก่อนเพื่อให้ข้อความในปุ่มอยู่ตรงกลาง */
    box-sizing: border-box; /* เพิ่มบรรทัดนี้ */
}

.btn-monthly {
    background-color: #3f51b5; /* Blue */
}
.btn-monthly:hover {
    background-color: #303f9f;
}

.btn-annual {
    background-color: #e91e63; /* Pinkish-red */
}
.btn-annual:hover {
    background-color: #c2185b;
}

footer {
    text-align: center;
    padding: 30px 0;
    background-color: rgba(0,0,0,0.02);
    border-top: 1px solid #ddd;
    margin-top: 50px;
    font-size: 0.85em;
    color: #555;
}
footer p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        width: 90%;
        max-width: 400px; /* Max width for cards on smaller screens */
    }
    .pricing-section h1 {
        font-size: 2.2em;
    }
    .pricing-section .subtitle {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .pricing-section h1 {
        font-size: 1.8em;
    }
    .pricing-section .subtitle {
        font-size: 0.9em;
    }
    .pricing-card h2 {
        font-size: 1.5em;
    }
    .pricing-card .price {
        font-size: 2.2em;
    }
    .btn {
        font-size: 1em;
    }
}