/* ---------------------- Section Anniversary ----------------------*/
.section_anniversary {
    position: relative;
    margin-bottom: -91px;
}

.section_anniversary .anniversary_title {
    text-align: center;
    width: 100%;
    top: -845px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 60px;
}

.section_anniversary .anniversary_title .anniversary_img {
    width: 190px;
}

.section_anniversary .flash {
    position: absolute;
    width: 107px;
    left: -20%;
    top: 187px;
}
.anniversary_text_card {
    position: relative;
    background-image: url(../../images/about_page/AboutUsCardImg.webp);
    background-color: #ffde88;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;

    gap: 18px;
    transform: skewY(-4deg);
    border-radius: 25px;
    padding: 44px 25px 49px;
}

.anniversary_text_card h2,
.anniversary_text_card p {
    transform: skewY(4deg);
}
.anniversary_text_card_mask {
    height: 100%;
    mask-size: cover;
    mask-repeat: no-repeat;
}
.anniversary_text_card h2,
.anniversary_text_card p {
    z-index: 2;
}
.section_history {
    padding-top: 248px;
    padding-bottom: 215px;
    min-height: 1220px;
    max-height: 1925px;

    position: relative;
    background-image: url(../../images/Background.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.section_history .section_content_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.section_history .history_photo {
    width: 100%;
    margin-bottom: 10px;
}

.section_history::before {
    content: url("../../images/about_page/DecorationLine1Mobile.svg");
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 170px;
}

.section_history::after {
    content: url("../../images/about_page/DecorationLine2Mobile.svg");
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 137px;
}

.section_history p {
    padding: 25px 30px 55px;
    text-align: center;
    line-height: 19px;
}

.section_history .img_wrapper {
    text-align: center;
}

/* -------------- TOWN EVENTS SECTION ---------------  */

.town_events .text_wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.town_events .text_wrapper p {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
}

.town_events .card_grid {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
}

@media screen and (min-width: 481px) {
    .section_history .history_photo {
        max-width: 391px;
    }
}

@media screen and (min-width: 769px) {
    .section_history .img_wrapper {
        display: flex;
        gap: 10px;
    }
    .section_history .history_photo {
        max-width: 50%;
    }
    .section_history::before {
        display: none;
    }

    .section_history::after {
        display: none;
    }
    .town_events .card_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1025px) and (max-width: 1399px) {
    .section_anniversary .anniversary_title .flash {
        width: 80%;
        left: clamp(192px, 5.6364px + 18.1818vi, 260px);
        bottom: clamp(-228px, 121.8182px + -26.9091vi, -154px);
        top: unset;
    }

    .section_anniversary .anniversary_title {
        top: clamp(-511px, -353.893px + -11.2299vi, -469px);
    }
    .section_anniversary .anniversary_title .anniversary_img {
        width: 305px;
    }
}

@media screen and (min-width: 1025px) {
    .section_anniversary {
        /* clamp value for min 1025px and max 1920px */
        margin-bottom: clamp(-276px, -351.5866px + 7.3743vi, -210px);
    }
    .section_anniversary .anniversary_title {
        flex-direction: row;
        gap: clamp(50px, -64.5251px + 11.1732vi, 150px);
        justify-content: space-between;
        align-items: start;
        height: 511px;
    }

    .anniversary_text_card_mask {
        -webkit-mask-image: url(../../images/CardTitleMask.svg);
        -webkit-mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-image: url(../../images/CardTitleMask.svg);
        /* check for support on IE */
        mask-size: contain;
        mask-repeat: no-repeat;
    }

    .anniversary_text_card {
        position: relative;
        height: 100%;
        align-items: start;
        text-align: left;
        justify-content: center;
        gap: 8px;
        z-index: 10;
        transform: unset;
        border-radius: unset;
        padding: 40px 37px 124px 54px;
    }

    .anniversary_text_card h2,
    .anniversary_text_card p {
        transform: unset;
    }

    .section_history .section_content_container::before {
        content: "";
        background-image: url("../../images/about_page/DecorationLineDesktop.svg");
        width: 100%;
        height: 100%;
        display: block;
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;

        top: -75%;
        z-index: -1;
        transform: translateY(50%);
    }

    .section_history {
        padding-top: 345px;
        min-height: unset;
    }

    .section_history .section_content_container {
        flex-direction: row;
        justify-content: space-between;
    }
    .section_history .text_wrapper {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .section_history .img_wrapper {
        width: 50%;
        justify-content: end;
        position: relative;
    }

    .section_history .img_wrapper .history_photo {
        max-width: 85%;
        max-height: 614px;
    }
    .section_history .img_wrapper .middle_position {
        position: absolute;
        /* clamp value fo min 1025px and max 1199px */
        max-width: clamp(312px, -29.6667px + 33.3333vi, 370px);
        max-height: 461px;
        border: 21px solid white;
        left: -44%;
        bottom: -101px;
        transform: translateX(50%);
    }
    .section_history .text_wrapper .main_heading,
    .section_history .text_wrapper p {
        text-align: left;
        max-width: 442px;
    }
    .section_history p {
        padding: 53px 0 0;
    }

    .town_events {
        margin-top: 34px;
        position: relative;
    }
    .town_events .text_wrapper {
        flex-direction: row;
        text-align: left;
        margin-bottom: 150px;
        justify-content: space-between;
        column-gap: 11%;
    }
    .town_events .text_wrapper .main_heading {
        flex-basis: 40%;
    }

    .town_events .text_wrapper p {
        flex-basis: 50%;
    }
}

@media screen and (min-width: 1200px) {
    .section_history .img_wrapper {
        width: 50%;
        justify-content: end;
        position: unset;
    }

    .section_history .img_wrapper .middle_position {
        max-width: clamp(378px, -30px + 34vi, 446px);
        left: 50%;
        transform: translateX(-35%);
    }
    .town_events .card_grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(15px, -10px + 2.0833vi, 30px);
    }

    .anniversary_text_card {
        gap: 18px;
        padding: 44px 132px 70px 88px;
    }
}

@media screen and (min-width: 1400px) {
    .section_anniversary .anniversary_title {
        top: -540px;
    }
    .section_anniversary .anniversary_title .anniversary_img {
        /* clamp values for min 1400px and max 1920px */
        width: clamp(310px, 221.1538px + 6.3462vi, 343px);
        height: 444px;
    }
    .section_anniversary .anniversary_title .flash {
        /* width: clamp(315px, 231.5385px + 5.9615vi, 346px); */
        width: 100%;
        bottom: clamp(-249px, -171.4615px + -4.0385vi, -228px);
        top: unset;
        left: clamp(227px, 52px + 12.5vi, 292px);
    }

    .anniversary_text_card {
        gap: 15px;
        padding: 137px 132px 70px 88px;
    }

    .section_history .img_wrapper .middle_position {
        left: 50%;
        transform: translateX(-50%);
    }

    .town_events {
        margin-top: 56px;
    }
}
@media screen and (min-width: 1025px) {
    .fifty-years .relative {
        flex-basis: 30%;
    }
    .fifty-years .relative {
        flex-basis: 30%;
    }
    .anniversary_text_card_mask {
        flex-basis: 70%;
    }
    .town_events .card_content {
        min-height: 0;
    }
}
