.fee_opening,
.funded_hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 120px;
}

.fee_opening .column,
.funded_hours .column {
    width: calc((100% - 50px) / 2);
}

.funded_hours .column .button1 {
    margin-left: 0;
}

.nursery_daily_fees {
    margin-top: 30px;
}

.optional_session {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 15px;
}

.optional_session:nth-of-type(odd) p {
    background-color: var(--light-grey);
}

.optional_session:last-of-type {
    margin-bottom: 0;
}

.optional_session p {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(50% - 7.5px);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-family: "BPreplay-Bold";
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    margin: 0;
    border-radius: 10px;
    box-shadow: 0px 3px 6px #00000029;
}

.nursery_daily_fees .optional_session p {
    width: calc((100% - 45px) / 4);
}

.session_heading p {
    background-color: var(--blue) !important;
    color: var(--white);
}

.fees_image {
    position: relative;
}

.fee_opening .column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 20px;
    box-shadow: 0px 3px 6px #00000029;
}

.chestnut {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background-color: var(--brown);
    border: 10px solid var(--white);
    box-shadow: 0px 3px 6px #00000029;
    z-index: 50;
}

.nursery_daily_fees h2 {
    text-align: center;
}

.social_wave_top {
    margin-bottom: -70px;
    margin-top: 0px;
    z-index: 0;
}

.social_wave_bottom {
    margin-top: -160px;
    margin-bottom: -30px;
    z-index: 0;
}

.optional_extras {
    position: relative;
    width: 100%;
    background-color: #E2EDE3;
    z-index: 10;
}

.optional_extras h2 {
    text-align: center;
}

.extras_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: -30px;
}

.optional_extra {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 40px) / 2);
    margin-top: 40px;
    background-color: var(--pale-green);
    border: 10px solid var(--white);
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0px 3px 6px #00000029;
    transition: 0.1s all ease-in-out;
}

.odd .optional_extra:last-of-type {
    margin: 40px auto 0;
}

.optional_extra h4 {
    margin: 0 0 10px;
}

.optional_extra p {
    margin: 0 0 5px;
}

.optional_extra p:last-of-type {
    margin: 0;
}

.fee_payment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 30px;
    background: var(--light-brown);
    color: var(--black);
    box-shadow: 0px 3px 6px #00000029;
    border: 10px solid #FFFFFF;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 120px 0;
    transition: 0.1s all ease-in-out;
}

.fee_payment h2,
.fee_payment h3,
.fee_payment h4,
.fee_payment .fee_main_body a {
    color: var(--brown) !important;
}

h2 {
    font-size: 36px;
    margin: -8px 0 15px 0;
}

.fee_payment h4 {
    margin-top: 0;
}

.fee_payment .fee_main_body a {
    font-weight: 500;
}

.fee_payment .fee_main_body .button1 {
    margin-left: auto;
    margin-right: 0;
    color: var(--white) !important;
}

/* Start by hiding the full description and the short description container for safety */
.description-text.hidden {
    display: none;
}

/* Optional: Add a smooth transition */
.description-container {
    transition: max-height 0.5s ease-in-out; 
    overflow: hidden; /* Important for clean truncation effect if you use max-height */
}

.universal_credit {
    position: relative;
    width: 100%;
    padding-bottom: 10px;
}

.svg_wrapper {
    width: 100%;
    top: -100px;
    position: absolute;
    height: 800px;
    overflow-x: hidden;
}

.nursery_detail_svg {
    top: 0;
}

.svg_children,
.svg_tree {
    position: absolute;
    top: 0;
    z-index: 0;
    height: auto;
    opacity: 25%;
}

.svg_children {
    width: 600px;
    margin-left: -240px;
}

.svg_tree {
    right: 0;
    width: 600px;
    margin-left: auto;
    margin-right: -240px;
    transform: rotate(-45deg);
}

.svg_children .cls-1 {
    fill: var(--green) !important;
}

.universal_credit h2 {
    text-align: center;
    margin-top: 140px;
}

.universal_credit h3 {
    margin-bottom: 0;
}

.universal_credit .buttons_container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.universal_credit .buttons_container .button1 {
    margin: 0;
    margin-right: 30px;
}

.universal_credit .buttons_container .button1:last-of-type {
    margin-right: 0;
    background-color: var(--green);
}

.universal_credit .button1:last-of-type {
    background-color: var(--brown);
}

@media (max-width: 1600px) {
    .svg_children {
        margin-left: -400px;
    }

    .svg_tree {
        margin-right: -400px;
    }
}

@media (max-width: 1450px) {
    .first_chestnut {
        top: -50px !important;
    }

    .social_wave_top {
        margin-bottom: -30px;
    }

    .social_wave_bottom {
        margin-top: -130px;
    }
}

@media (max-width: 1300px) {
    .fee_opening {
        margin-top: 80px;
    }
}

@media (max-width: 1200px) {
    .svg_wrapper {
        display: none;
    }
}

@media (max-width: 991px) {
    .fee_opening,
    .funded_hours {
        flex-direction: column;
    }

    .fee_opening .column,
    .funded_hours .column {
        width: 100%;
    }

    .funded_hours .column:first-of-type {
        margin-bottom: 50px;
    }

    .fee_opening {
        margin-top: 100px;
    }

    .fee_opening .column:first-of-type {
        margin-bottom: 70px;
    }

    .fee_table {
        width: 100%;
        padding: 0 3px 35px 5px;
        overflow-x: scroll;
    }

    .nursery_daily_fees .fee_table .optional_session {
        width: calc((315px * 4) + (15px * 3));
    }

    .nursery_daily_fees .fee_table .optional_session p {
        width: 315px;
    }

    .social_wave_bottom {
        margin-top: -90px;
    }
}

@media (max-width: 850px) {
    .nursery_daily_fees .fee_table .optional_session {
        width: calc((220px * 4) + (15px * 3));
    }

    .nursery_daily_fees .fee_table .optional_session p {
        width: 220px;
    }

    .optional_extra {
        width: 100%;
        margin-top: 20px !important;
    }

    .optional_extras h2 {
        margin-bottom: 30px;
    }
}

@media (max-width: 750px) {
    h2 {
        font-size: 32px;
    }

    .funded_hours h2,
    .funded_hours p {
        text-align: center;
    }

    .fee_opening .column:first-of-type {
        text-align: center;
    }

    .funded_hours .button1 {
        margin: 30px auto 0 !important;
    }

    .fee_opening,
    .funded_hours {
        margin-bottom: 80px;
    }

    .fee_payment {
        margin: 80px 0;
    }

    .universal_credit {
        padding-bottom: 0;
        margin-bottom: -20px;
    }

    .universal_credit h2 {
        margin-top: 80px;
    }

    .social_wave_top {
        margin-bottom: 0px;
    }

    .social_wave_bottom {
        margin-top: -40px;
    }
}

@media (max-width: 600px) {
    .funded_hours .button1,
    .read-more-toggle,
    .universal_credit .button1 {
        width: 100%;
    }

    .nursery_daily_fees .fee_table .optional_session {
        width: calc((200px * 4) + (15px * 3));
    }

    .nursery_daily_fees .fee_table .optional_session p {
        width: 200px;
    }

    .optional_extras {
        padding: 60px 0;
    }

    .social_wave_top {
        margin-bottom: -10px;
    }

    .universal_credit .buttons_container {
        display: flex;
        flex-direction: column;
    }

    .universal_credit .buttons_container .button1 {
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .universal_credit .buttons_container .button1:last-of-type {
        margin-right: 0;
    }

    .universal_credit .button1:last-of-type {
        margin-top: 0;
        margin-right: 0;
    }
}

/* width */
.fee_table::-webkit-scrollbar {
    height: 8px;
}
  
/* Track */
.fee_table::-webkit-scrollbar-track {
    background: var(--pale-green);
}
  
/* Handle */
.fee_table::-webkit-scrollbar-thumb {
    background: var(--green);
}
