h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: bold;
}

.pricing-section {
    max-width: 1000px;
    margin: 0 auto;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
    font-weight: bold;
    color: black;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: black;
    transition: 0.4s;
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--primary-blue);
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

.pricing-container {
    display: flex;
    justify-content: space-between; /* Ensure the cards are spaced evenly */
    gap: 40px;
    flex-wrap: nowrap; /* Prevent wrapping to a new line unless needed */
    margin-bottom: 4rem;
}

.pricing-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 23%; /* Flex property to ensure each card occupies 23% width (with gap in mind) */
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.price {
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.badge {
    background-color: var(--primary-blue);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 15px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: bold;
}

ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

ul li {
    margin-bottom: 10px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 15px;
}

.billing-toggle select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: white;
    font-weight: bold;
    cursor: pointer;
    width: auto;
}

@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column; /* Stack cards on small screens */
        gap: 20px;
    }

    .pricing-card {
        flex: 1 1 100%; /* Cards take full width on small screens */
    }

    .button {
        padding: 8px 16px;
    }
}
