@media (max-width: 500px) {
    .source_a {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    .hero-section {
        width: 100%;
        gap: 0rem;
    }

    .sliding-images {
        max-width: 100%;
    }

    .slide figcaption {
        font-size: var(--fs-ui);
        padding: 8px 14px;
    }

    .form-reach {
        width: 100%;
        padding: 1.5rem;
    }

    .form-heading {
        text-align: center;
    }

    .form-heading h1 {
        font-size: clamp(1.5rem, 2vw, 1.9rem);
    }

    .form-heading h3 {
        font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    }

    ._icons {
        width: 80%;
        margin: auto;
    }

    .about-us {
        padding: 2rem;
    }

    .box {
        width: 90%;
        gap: 2rem;
    }

    ._about {
        font-size: clamp(0.9rem, 1.1vw, 1rem);
        padding: 1.8rem;
    }

    .head {
        max-width: 420px;
    }
    .program-2 {
        width: 100%;
        padding: 2.2rem;
        gap: 1.5rem;
    }

    .program-2 h1 {
        font-size: clamp(1.6rem, 2.2vw, 1.9rem);
    }

    .program-2 p {
        font-size: 0.6rem;
        text-align: justify;
    }

    .program-2 a {
        font-size: 1rem;
    }

    #navBar_links {
        width: 90%;
        padding: 0;
    }

    #navBar_links h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .image_links {
        grid-template-columns: repeat(3, 1fr);
        place-items: center;
        gap: 0.5rem;
    }

    .imagelinks12 {
        width: 90%;
        height: 110px;
        border-radius: 1rem;
    }

    .image_links .imagelinks12:last-child {
        grid-column: auto;
        width: 90%;
    }

    ._resources {
        padding: 50px 20px;
    }

    ._resources h1 {
        font-size: 2.2rem;
    }

    .source_a {
        grid-template-columns: repeat(2, 1fr);
    }

    .source_aa {
        font-size: 1rem;
        padding: 18px;
    }
}

@media (min-width: 1024px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 0;
        margin: 0 1.5rem;
    }

    .nav-bar-logo {
        width: auto;
    }

    .nav-toggle {
        display: none;
        padding-inline: 0;
    }

    .bar ul {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        white-space: nowrap;
    }

    .bar ul li a {
        font-size: var(--fs-ui);
        padding-inline: clamp(3px, 0.5vw, 6px);
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0rem;
        margin-top: 0;
        width: auto;
    }

    .contact_btn {
        align-self: auto;
        margin-right: 1rem;
    }

    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }

    .sliding-images {
        flex: 1 1 60%;
        max-width: 60%;
        aspect-ratio: 16 / 9;
    }

    .form-reach {
        width: 100%;
        flex: 1;
        padding: 2rem;
    }

    .contact p {
        font-size: var(--fs-p);
    }

    .form-heading h1,
    h3 {
        text-align: center;
    }

    .form-heading ul li,
    .contact p,
    ._about p {
        font-size: var(--fs-ui);
    }

    ._icons {
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }

    .box {
        flex-direction: row;
        justify-content: space-evenly;
        width: 95%;
        min-height: 60vh;
    }

    ._about {
        flex: 1;
        width: 50%;
        padding: 2rem;
        box-shadow: 2px 4px 24px rgb(201, 200, 200);
    }

    #head {
        max-width: 460px;
        border-bottom-width: 4px;
    }

    .program {
        height: auto;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        background-image: linear-gradient(#c2e9fb, #ffffff);
    }

    .program-2 {
        width: 80%;
        padding: clamp(1.5rem, 4vw, 3rem);
    }

    .program-2 h1 {
        font-size: clamp(1.7rem, 2.4vw, 2rem);
    }

    .program-2 p {
        font-size: clamp(0.95rem, 1vw, 1rem);
    }

    .program-2 a {
        width: clamp(140px, 25%, 200px);
        font-size: clamp(14px, 2vw, 18px);
    }

    #navBar_links {
        width: 80%;
        min-height: 80vh;
    }

    #navBar_links h1 {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .image_links {
        width: 90%;
        margin: auto;
        place-items: center;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 0.5rem;
    }

    .imagelinks12 {
        height: 130px;
        width: 90%;
    }


    ._resources {
        min-height: 80vh;
        padding: 60px 20px;
    }

    ._resources h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    ._resources h1::after {
        width: 80px;
        height: 4px;
    }

    .source_a {
        max-width: 1100px;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .source_aa {
        font-size: 1.05rem;
        padding: 18px 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .source_aa:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
        background-color: #f3fff4;
    }

    .footer {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }


    .about_auther,
    .contact_details,
    .links {
        flex: 1;
        max-width: 25%;
        text-align: left;
    }

    .about_auther p,
    .contact_details p,
    .links p {
        text-align: justify;
        font-size: var(--fs-ui);
    }

    #icons {
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
    }

    ._h2 {
        margin-bottom: 20px;
    }
}

@media (min-width: 1400px) {
    .bar ul li a {
        font-size: var(--fs-p);
        padding-inline: clamp(6px, 1vw, 10px);
    }
}

@media (hover: hover) {
    .program-2 a:hover {
        transform: translateY(-3px);
        box-shadow: 0px 0px 10px 4px #3dbb5c;
    }

    .imagelinks12 img:hover {
        transform: scale(1.05);
    }
}