.container {
    /* padding: 30px; */
    /* min-width: 100%; */
    max-width: 100%;
    margin: 0 auto;
}

/* h1 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
} */

/* Lessons Container */
.lessons-container {
    display: flex;
    justify-content: space-evenly;
    gap: 2.5vw;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lesson {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    /* Reduced padding here */
    flex: 1;
    min-width: 265px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lesson:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

.lesson-extra {
    display: none;
    /*padding: 0px;*/
    /*margin: 20px;*/
    overflow: hidden;
}

.lesson-extra img {
    width: auto;
    height: 100%;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    /* transform: translateX(-5%); */
    background-size: cover;
    border-radius: 10px;
}

.lesson-top {
    text-align: center;
}

.lesson-top h3 {
    font-size: 1.8rem;
    color: black;
}

.lesson-top h4 {
    font-size: 1.2rem;
    color: black;
}

.lesson-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: justify;
    text-justify: inter-word;
}

.lesson-middle p {
    color: black;
}

.lesson-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: -15px;
    /* Adjusted to be a little higher */
    right: -35px;
    /* Pushed it 20px more to the right */
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    /* Reduced size */
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    transform: rotate(15deg);
    /* Slight rotation */
    transition: transform 0.2s ease;
}

/* Price area */
.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    margin-bottom: 8px;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2196f3 !important;
    margin-bottom: 4px;
}

.subprice {
    font-size: 0.95rem;
    color: #555 !important;
}

/* Toggle button */
.price-toggle {
    background-color: #2196f3;
    border: none;
    border-radius: 25px;
    color: white;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    width: 94%;
    min-width: 94%;
    margin-top: 2px;
}

.price-toggle:hover {
    background-color: #1976d2;
}

.arrow {
    font-size: 1.3rem;
    padding-right: 4px;
}

.savings {
    font-size: 1vw;
    opacity: 0.9;
    font-size: min(max(1vw, 12px), 14px);
}

/* New "Call Now" Arrow */
.call-now-arrow {
    background-color: #4caf50;
    border: none;
    border-radius: 25px;
    color: white;
    padding: 8px 16px;
    font-size: min(max(1vw, 12px), 14px);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    width: 94%;
    min-width: 94%;
    margin-top: 2px;
    text-align: center;
}

.call-now-arrow:hover {
    background-color: #388e3c;
}

.call-now-arrow .arrow {
    font-size: 1.3rem;
}

/* Save Deal Arrow */
.save-deal-arrow {
    background-color: #1976d2;
    border: none;
    border-radius: 25px;
    color: white;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    width: 85%;
    /* Fixed width of 85% for the Save Deal button */
    margin-top: 20px;
    text-align: center;
}

.save-deal-arrow:hover {
    background-color: #1565c0;
}

.save-deal-arrow .arrow {
    font-size: 1.3rem;
}

/* Container for the options */
.selector {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 80%;
    margin: 20px auto;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

/* Style for each option */
.option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: max(min(1.5vw, 20px), 12.8px);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    /* Ensure all options have the same border-radius */
    background-color: #f0f0f0;
    color: #333;
    user-select: none;
}

/* Hover effect for the options */
.option:hover {
    background-color: #d9d9d9;
}

.option.selected {
    color: #007bff;
}


/* Underline that follows the hover or selection */
.selector-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    /* Default width to match the individual option width */
    height: 4px;
    background-color: #007bff;
    border-radius: 25px;
    /* Same border-radius to match options */
    transition: left 0.5s ease, width 0.5s ease;
    /* Slower transition */
}

.option:active {
    transform: scale(0.98);
}


/* Styling for alert messages */
.alert-message {
    position: fixed;
    top: 73px;
    right: 26px;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    z-index: 1000;
    color: #fff;
    max-width: 90vw;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-block;
    transition: opacity 2s ease-out;
    overflow: hidden;
    border: none;
}

.alert-message:hover {
    cursor: pointer;
}

/* Success and Error specific styles */
.alert-message.success {
    background-color: #28a745;
}

.alert-message.error {
    background-color: #dc3545;
}

/* Underline animation (starts from right and fills to left) */
.alert-message::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background-color: #fff;
    transition: width 2s ease-in-out;
}

/* Hover to trigger the underline animation */
.alert-message.show-underline::after {
    width: 100%;
}

/* Fade-out animation */
.fade-out {
    opacity: 0;
}


@media screen and (min-width: 1100px) {
    .lesson-middle p {
        font-size: 20.5px;
    }
}

@media screen and (max-width: 1100px) {
    .lesson-middle p {
        font-size: 1.8vw;
    }

    .lesson {
        justify-content: space-around !important;
    }

    .lesson-extra {
        display: flex;
    }
}

@media screen and (max-width: 850px) {
    .lesson-middle p {
        font-size: max(2vw, 16px);
    }
}

@media screen and (max-width: 800px) {
    .lesson {
        width: 55%;
        max-width: 55%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 700px) {
    .lesson {
        flex: 1 1 100%;
        min-width: 260px;
        max-width: 300px;
    }
    .lesson:nth-child(1) {
        transform: translateX(-7.5vw);
    }
    .lesson:nth-child(2) {
        transform: translateX(7.5vw);
    }
    .lesson:nth-child(3) {
        transform: translateX(-7.5vw);
    }
    .lesson-extra {
        display: none;
    }
}

/* Responsive breakpoint for mobile */
@media screen and (max-width: 650px) {
    .lessons-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
    }

    .lesson-middle p {
        font-size: max(16px, 2.3vw);
    }

    .lesson-extra {
        display: none;
    }

    .selector {
        width: 100%;
    }
}

@media screen and (max-width: 550px) {
    .option {
        font-size: 11.5px;
        font-weight: bold;
        padding-left: 5px;
        padding-right: 5px;
    }
    .lesson {
        flex: 1 1 100%;
        min-width: 260px;
        max-width: 280px;
    }
    .lesson:nth-child(1) {
        transform: translateX(-5vw);
    }
    .lesson:nth-child(2) {
        transform: translateX(5vw);
    }
    .lesson:nth-child(3) {
        transform: translateX(-5vw);
    }
}

@media screen and (max-width: 435px) {
    .option {
        font-size: 11px;
        font-weight: bold;
        padding-left: 2px;
        padding-right: 2px;
    }
    .lesson {
        flex: 1 1 100%;
        min-width: 260px;
        max-width: 280px;
    }
    .lesson:nth-child(1) {
        transform: translateX(-2.5vw);
    }
    .lesson:nth-child(2) {
        transform: translateX(2.5vw);
    }
    .lesson:nth-child(3) {
        transform: translateX(-2.5vw);
    }
}

@media screen and (max-width: 400px) {
    .option {
        font-size: 10px;
        font-weight: bold;
        padding-left: 2px;
        padding-right: 2px;
    }
    .lessons-container {
        margin: 0px;
        padding: 0px;
    }
}

@media screen and (max-width: 350px) {
    .option {
        font-size: 9px;
        font-weight: bold;
        padding-left: 2px;
        padding-right: 2px;
    }
    .lesson {
        flex: 1 1 100%;
        min-width: 240px;
        max-width: 240px;
    }
    .lesson:nth-child(1) {
        transform: translateX(0vw);
    }
    .lesson:nth-child(2) {
        transform: translateX(0vw);
    }
    .lesson:nth-child(3) {
        transform: translateX(0vw);
    }
}
