@media (max-width: 476px) {
    .lecture-card,
    .lecture-card .rectangle {
        width: 340px !important;
        border-radius: 12px;
    }
    .lecture-card .rectangle {
        width: 340px !important;
        border-radius: 12px 12px 0 0;
    }
    .cards-section-program {
        margin-right: -25px !important;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 75%;
    }

    .program_details-title {
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 60%;
    }
}

@media (max-width: 991px) {
    .our_achievements .achievements-cards {
        position: relative;
        margin: 50px;
    }

    .work-team {
        margin: 100px;
    }

    .work-team .members-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 100px;
        margin-top: 50px;
    }

    .work-team .team-member :is(img.polygon1, img.polygon2) {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
        margin: auto;
    }

    .hero-section .we {
        display: none;
    }

    .about {
        padding-bottom: 100px;
        margin-bottom: 250px;
    }

    .about-us {
        margin: 70px 0 100px;
    }

    .about .video {
        top: initial;
        bottom: -25%;
        left: 50%;
        right: initial;
        transform: translateX(-50%);
        width: 400px;
        height: 250px;
    }

    /* our care */
    .our_care .right-circle,
    .our_care .left-circle {
        display: none;
    }

    /* our achievement */
    .our_achievements .achievements-cards .card {
        padding: 20px !important;
    }

    .our_achievements .achievements-cards .card > img {
        position: initial;
        display: block;
        margin: auto;
        width: 100%;
        padding: 13px 13px 0;
        border: navajowhite;
    }

    .our_achievements .achievements-cards {
        margin: 0px;
    }

    .upcoming .events-container .event > img {
        /*filter: blur(0px) brightness(1);*/
    }

    .memberDetails p.statement {
        padding: 80px 20px 0;
    }

    .memberDetails .team-img {
        width: 170px;
        height: 170px;
    }

    .memberDetails .team-img::after {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }

    .memberDetails .modal-header .modal-title {
        top: -100px;
    }

    .blog-section .title {
        top: -30px;
    }
    .blog-section .subtitle {
        top: -10px;
    }

    .blogs-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .about {
        align-items: center;
    }

    .about .video {
        position: initial;
    }
}

@media (min-width: 768px) {
    .cards-section {
        padding-inline: 0%;
    }
}

@media (max-width: 991px) {
    .blog-section {
        margin: 15px;
        margin-top: 60px;
        padding: 5px;
    }
    .blog-section .subtitle {
        font-size: 1rem;
    }
    .blog-section .content-container {
        grid-template-columns: 45% 1fr;
        gap: 30px;
        margin-top: 10px;
    }
    .side-bar {
        padding: 10px;
    }
    .search-field {
        margin-bottom: 10px;
    }
    .small-blog {
        margin-bottom: 20px;
        height: 70px;
    }
    .small-blog p {
        line-height: initial;
    }

    .contact-us {
        height: 120vh;
        margin-top: -15px;
        display: flex;
    }
    .contact-form {
        margin: 0;
        left: 50%;
        /* transform: translateX(-50%); */
        height: 420px;
        width: 90%;
        margin: 60px auto 20px;
    }
    .contact-info {
        margin: 60px 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contactdiv {
        margin: 30px 50px 0 0px;
    }
    .blog-section > .text-secondary {
        padding-inline-end: 20%;
        font-size: 1.2rem;
    }
    .blog-section :is(.swiper-button-next, .swiper-button-prev) {
        left: 8% !important;
    }
    .blog-section .swiper-button-next {
        left: 17% !important;
    }
    .blog-section :is(.swiper-button-next, .swiper-button-prev) {
        top: 16% !important;
        position: relative;
        /* top: initial !important; */
        left: initial !important;
    }
    .blog-details ~ .swiper {
        /*height: fit-content;*/
    }
    .activity {
        margin: 100px 50px;
    }
    .activity p {
        font-size: 20px;
        font-weight: 700;
        line-height: 35px;
        color: #112b3c;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .navbar .left-content {
        font-size: 0.7rem;
    }

    .swiper-slide .text p {
        line-height: 2.3rem;
        font-size: 1rem;
    }

    .swiper-slide .text p:nth-child(1) {
        font-size: 1.5rem;
    }

    .about ul {
        margin-block: 30px;
        width: fit-content;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        color: var(--text-mute-secondary);
        font-size: 0.9rem;
    }

    .title + p {
        font-size: 1rem;
    }

    .about video {
        width: 350px;
        height: 230px;
    }

    .about ul li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .our_achievements {
        margin: 150px 20px;
    }

    .our_achievements .title {
        margin-bottom: 40px;
    }

    .our_achievements .achievements-cards .card {
        padding: 0px !important;
    }

    .our_achievements .achievements-cards .card .progress-bar .bar {
        justify-content: space-between;
    }

    .our_achievements .achievements-cards .card .hashtag {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .our_achievements .achievements-cards .card .achievement-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .our_achievements
        .achievements-cards
        .card
        :is(.subtitle, .progress-bar > span, .data) {
        font-size: 14px;
    }

    .our_achievements .achievements-cards > a {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    /*  our gallery swiper style  */
    .our_gallery .title {
        font-size: 1rem;
        top: -15px;
        left: 50%;
    }

    .our_gallery .swiper {
        height: 300px;
        padding: 50px 5px 80px;
        position: absolute;
    }

    .our_gallery .swiper-rtl .swiper-button-prev {
        right: 35px;
    }

    .our_gallery .swiper-rtl .swiper-button-next {
        right: 80px;
    }

    /*  upcoming events section  */
    .upcoming {
        padding: 140px 50px 50px;
    }

    .upcoming .title::before {
        left: 50%;
        transform: translateX(-50%) skewX(-15deg);
    }
    .upcoming .subtitle {
        margin-inline-start: 10px;
        margin-top: 15px;
    }

    /* read in section style */
    .read-in .item div {
        margin-block: 10px;
        display: flex;
        align-items: center;
    }

    .read-in .item div span:nth-child(2) {
        font-size: 14px;
    }

    /*  footer style  */
    footer section .row > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer section .row > div:is(:nth-child(3), :nth-child(4)) {
        display: none;
    }

    /*  modal style  */
    .modal {
        margin-top: 0;
    }

    .modal {
        top: 0;
    }

    .modal.show .modal-dialog {
        margin-top: 50px;
    }

    .modal .modal-title {
        font-size: 1rem !important;
    }
    .blog-section > .text-secondary {
        padding-inline-end: 0%;
        font-size: 1.2rem;
    }
    .blog-section .content-container.blog-details {
    }
    .blog-section :is(.swiper-button-next, .swiper-button-prev) {
        top: 40% !important;
    }
    .blog-section .content-container.blog-details {
    }
    .blog-section :is(.swiper-button-next, .swiper-button-prev) {
        left: initial !important;
        right: 26% !important;
    }
    .blog-section .swiper-button-next {
        left: initial !important;
        right: 12% !important;
    }
    .blog-section .swiper-controles {
        gap: 0px;
        align-items: center;
        padding-inline-end: 0px;
    }
    .blog-section .data.d-flex {
        font-size: 0.9rem;
    }
    .contactdiv {
        margin: 30px 0px 0 0px;
    }
}
@media (min-width: 991px) {
    .about {
        display: block;
        margin-inline: 5% 30%;
    }

    .about .video {
        position: absolute;
        width: 450px;
    }

    .about ul {
        width: fit-content;
    }

    .about .triangles {
        display: inline-block;
    }

    .about a {
        display: inline-block;
    }
    .contact-form {
        position: absolute;
    }
}

@media (min-width: 991px) and (max-width: 1200px) {
    .about ul {
        width: 450px;
    }

    .about .video {
        width: 500px;
    }
}

@media (min-width: 1200px) {
    .cards-section {
        padding-inline: 5%;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .read-in {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .about {
        margin-inline: 5% 20%;
    }

    .about ul {
        width: 450px;
    }

    .about .video {
        right: 55%;
        top: 25%;
        width: 550px;
    }
}

@media (min-width: 1400px) {
    .cards-section {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .about {
        margin-inline: 5%;
    }

    .about ul {
        width: fit-content;
    }

    .about .video {
        right: 50%;
        top: 25%;
        width: 550px;
    }
}
