@import url('https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-10..0,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #10479A;
    --secondary-color2: #5380c4;
    --box-shadow-color: #0000002f;
    --primary-font: "Inter", sans-serif;
    --secondary-font: 'Open Sans', sans-serif;
    --third-font: 'Roboto Mono';
}

@media screen and (max-width: 500px) {
    header .container {
        max-width: 100%;
        margin: 10px;
        padding: 0;
        z-index: 0;
    }

    header .h-item img {
        height: 40px;
    }

    header .h-item2 {
        background-color: var(--primary-color);
        width: 100%;
        min-height: 100svh;
        z-index: 1000;
        display: none;
        padding: 1rem;
        padding-top: 3rem;
        animation: nav-opener 0.5s ease-in-out;
        transition-duration: 0.5s;
        margin: 0;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        position: absolute;
        top: 0;
        left: 0;
        gap: 2rem;
    }

    @keyframes nav-opener {
        0% {
            transform: translateX(100%);
        }

        100% {
            transform: translateX(0%);
        }
    }

    header .active {
        display: flex;
    }

    header .h-item2 nav {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 1rem;

    }

    header .h-item2 .h-sub-item {
        flex-direction: column;
        justify-content: start;
        align-items: start;

    }

    nav .dropdown .dropdown-menu {
        position: relative;
        top: 10px;
        left: 0;
    }

    header .menu {
        z-index: 1000;
        display: flex;
        justify-content: end;
        align-items: center;
        height: 40px;
        position: sticky;
    }

    header .menu i {
        font-size: 24px;
    }

    header .menu .fa-close {
        display: none;
    }

    header .menu .close {
        display: none;
    }

    header .menu .open {
        display: block;
        position: sticky;
        top: 10px;
        right: 20px;
    }

    nav .dropdown .dropdown-content {
        display: none;
        width: 100px;
    }

    nav .dropdown-active .dropdown-content {
        position: relative;
        width: 200px;
        margin-top: 10px;
        border: 1px solid #000000;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: flex-start;
    }

    .hero-container .owl-carousel .owl-item .o-item {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 250px;
        max-height: 300px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        fill-opacity: 0.5;
        background-color: rgba(0, 0, 0, 0.6);
        background-blend-mode: darken;
    }

    .hero-container .owl-carousel .owl-item img {
        aspect-ratio: 1/3;
    }

    .hero-container .owl-carousel .owl-item .o-item span {
        font-size: 18px;
        color: var(--primary-color);
        font-weight: 600;
        width: 75%;
    }

    main {
        max-width: 100%;
        margin: 10px;
        margin-top: 70px;
    }

    .section-type1 {
        max-width: 100% !important;
        grid-template-columns: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }

    .section-type2 {
        max-width: 100% !important;
        grid-template-columns: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }

    .section-type2 .a-container2 {
        grid-row: 2;
    }

    .sec-head {
        margin-top: 3rem;
    }

    .sec-head span {
        margin-bottom: 1rem;
        margin-top: 2rem;
        font-size: 24px;
    }

    .a-container1 {
        text-align: center;
    }

    .a-container2 iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .a-container1 .title {
        font-size: 24px;
        line-height: 28px;
    }

    .a-container1 .sub-title {
        font-size: 16px;
        line-height: 18px;
    }

    .a-container1 .text {
        font-size: 14px;
        line-height: 16px;
    }

    #our-support .our-support {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        gap: 20px;

    }
    .section-type1 .our-support .s-item img {
        max-width: 100%;
        aspect-ratio: 1/1;
    }

    .section-type1 .our-support .s-item .name {
        font-size: 14px;
    }

    .section-type1 .our-support .s-item .designation {
        font-size: 10px;
    }

    /* Events */
    .events {
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .event-section {
        max-width: 100% !important;
        margin: 0;
        display: grid;
        gap: 1rem;
        margin-top: 1rem;
    }

    .event-section .a-container .title {
        font-size: 24px;
    }

    .event-section .a-container .sub-title {
        font-size: 18px;
    }

    .event-section1 {
        max-width: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column-reverse;

        gap: 1rem;
        margin-top: 1rem !important;
    }

    .event-section1 .a-container1 .title {
        font-family: var(--secondary-font);
        font-size: 24px;
        font-weight: 900;
        text-align: center;
    }

    .event-section1 .a-container1 .sub-title {
        font-size: 18px;
    }

    .event-section2 {
        max-width: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem !important;
    }

    .event-section2 .a-container1 .title {
        font-family: var(--secondary-font);
        font-size: 24px;
        font-weight: 900;
        text-align: center;
    }

    .event-section2 .a-container1 .sub-title {
        font-size: 18px;
    }

    .event-image {
        max-width: 100%;
        aspect-ratio: 16/10;
        border-radius: 0 10px 0 10px;
    }

    /* Alumni */
    .alumni-section {
        max-width: 100%;
        margin-top: 3rem;
        justify-content: center;
    }

    .alumni-section div {
        text-align: center;
    }

    .alumni-section .head {
        font-size: 24px;
        text-align: center;
    }

    .alumni-section .container {
        justify-content: center;
        margin-top: 1rem;
        max-width: 100%;
    }

    /* Library */
    .library {
        flex-wrap: wrap-reverse !important;
    }

    /* Footer */
    footer {
        padding: 1rem 0rem;
    }

    .f-container {
        max-width: 100%;
        margin: 10px;
        display: flex;
        gap: 2rem;
        flex-direction: column;
        align-items: start;
        justify-content: center;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form input {
        width: 100%;
    }

    .f-end {

        margin: 10px;
        margin-top: 2rem;
        max-width: 100%;
        gap: 10px;
        justify-content: center;
    }

    .f-end .fe-item1 {
        gap: 20px;

    }

    /* Teams */
    .teams {
        margin-top: 1rem;
        max-width: 1300px;
    }

    .teams .owl-carousel {
        margin: 1rem;
        padding: 1rem 0;
    }

    .team-hero .container {
        width: 100%;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-clip: content-box;
        height: 250px;
    }

    .team-hero .container .sub-container {
        width: 100%;
        max-height: 250px;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.381);
        color: white;
    }

    .team-hero .container .sub-container .head-text {
        font-family: var(--secondary-font);
        font-size: 24px;
    }

    .team-hero .container .sub-container .desc-text {
        font-size: 14px;
        font-family: var(--secondary-font);
    }

    .login-section #add-member form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    
    }
    .lib-container {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-evenly;
        gap: 1rem;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--secondary-color);
        margin-bottom: 1rem;
    }
    .lib-status {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        padding:1rem 8px;
        box-shadow: 0 0 4px var(--box-shadow-color);
        width: calc(100% - 2rem);
        border-radius: 4px;
    }
    .lib-status form {
        display: block;
        flex-direction: column;
        gap: 10px;
        margin-top: 1rem;
        width: calc(100% - 2rem);
        margin: auto;
    }
    .lib-status form .input-group {
        display: grid;
        gap: 5px;
        flex-direction: column;
        align-items: start;
        width: auto;
    }
    .book-details-container{
        padding: 0;    }
    .card-container{
        grid-template-columns: repeat(1,1fr);
    }
    .card{
        padding: 0;
    }
}