/* =========================================================
   GMIS HERO SECTION
   ========================================================= */

.gmis-banner {
    position: relative;
    width: 100%;
}

.gmis-slide {
    position: relative;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}







/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.gmis-container {
    position: relative;
    z-index: 2;
    width: 100%;
}


/* =========================================================
   TWO-COLUMN LAYOUT
   ========================================================= */

.gmis-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 20px;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.gmis-left {
    flex: 1;
    max-width: 700px;
    color: #ffffff;
}

.gmis-left h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
}

.gmis-left h1 span {
    color: #ff511a;
}

.gmis-line {
    width: 65px;
    height: 5px;
    background: #ffffff;
    margin: 25px 0;
    border-radius: 5px;
}

.gmis-tagline {
    font-size: 20px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 35px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.gmis-search-area {
    width: 100%;
    max-width: 680px;
}

.gmis-search-box {
    display: flex;
    width: 100%;
}

.gmis-search-box input {
    flex: 1;
    height: 52px;
    border: 2px solid #ff511a;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 0 18px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.gmis-search-box input:focus {
    border-color: #43ba7f;
}

.gmis-search-box button {
    height: 52px;
    padding: 0 28px;
    border: 2px solid #ff511a;
    background: #43ba7f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: 0.3s;
}

.gmis-search-box button:hover {
    background: #ff511a;
}

.gmis-search-text {
    text-align: center;
    color: #ff511a;
    font-size: 15px;
    margin-top: 10px;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.gmis-right {
    width: 390px;
    flex-shrink: 0;
}

.gmis-login-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 32px 35px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.30);
}

.gmis-login-card h2 {
    margin: 0;
    color: #212741;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #777777;
    font-size: 14px;
    margin: 8px 0 25px;
}


/* =========================================================
   LOGIN FIELDS
   ========================================================= */

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    color: #212741;
    font-size: 14px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.login-field input:focus {
    border-color: #43ba7f;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.login-options {
    text-align: right;
    margin-bottom: 20px;
}

.login-options a {
    color: #ff511a;
    font-size: 14px;
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.gmis-login-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 5px;
    background: #ff511a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.gmis-login-button:hover {
    background: #212741;
}


/* =========================================================
   REGISTER
   ========================================================= */

.gmis-register {
    text-align: center;
    margin-top: 20px;
    color: #777777;
    font-size: 14px;
}

.gmis-register a {
    color: #43ba7f;
    font-weight: 600;
    text-decoration: none;
}

.gmis-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   ONGOING RESEARCH & TECHNOLOGY GRANTS
   ========================================================= */

.ongoing-grant {
    width: 100%;
    background: #ffffff;
    padding: 70px 0 80px;
}

.ongoing-title {
    text-align: center;
    margin-bottom: 35px;
}

.ongoing-title p {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: #212741;
}

.ongoing-title p::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    background: #ff511a;
    margin: 15px auto 0;
    border-radius: 5px;
}

.ongoing {
    width: 100%;
    padding-bottom: 45px;
}

.ongoing-body {
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f7f8fa;
    border-radius: 10px;
    border: 1px solid #eeeeee;
    box-sizing: border-box;
}

.ongoing-content {
    width: 100%;
    text-align: center;
}

.ongoing-content h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: #212741;
}

.ongoing .swiper-pagination {
    bottom: 0;
}

.ongoing .swiper-pagination-bullet {
    opacity: 1;
    background: #dddddd;
}

.ongoing .swiper-pagination-bullet-active {
    background: #ff511a;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .gmis-slide {
        min-height: auto;
    }

    .gmis-content {
        flex-direction: column;
        gap: 40px;
        padding: 70px 20px;
    }

    .gmis-left {
        max-width: 750px;
        width: 100%;
        text-align: center;
    }

    .gmis-left h1 {
        font-size: 40px;
    }

    .gmis-line {
        margin: 20px auto;
    }

    .gmis-search-area {
        margin: 0 auto;
    }

    .gmis-right {
        width: 100%;
        max-width: 420px;
    }

    .ongoing-grant {
        padding: 55px 0 65px;
    }

    .ongoing-title p {
        font-size: 26px;
    }

    .ongoing-body {
        min-height: 140px;
        padding: 25px;
    }

    .ongoing-content h1 {
        font-size: 19px;
    }
}


/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 576px) {

    /* Main GMIS section */

    .gmis-section,
    .gmis-banner,
    .gmis-wrapper {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }


    /* Main content */

    .gmis-content {
        padding: 35px 15px 40px !important;
        gap: 25px;
        height: auto !important;
        min-height: 0 !important;
        align-items: stretch;
    }


    /* Left side */

    .gmis-left {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .gmis-left h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .gmis-tagline {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }


    /* Search box */

    .gmis-search-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .gmis-search-box input {
        width: 100%;
        height: 48px;
        padding: 10px 12px;
        border: 2px solid #ff511a;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 15px;
    }

    .gmis-search-box button {
        width: 100%;
        height: 48px;
        padding: 10px;
        border: none;
        border-radius: 5px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .gmis-search-text {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 8px;
    }


    /* Right side */

    .gmis-right {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }


    /* Login card */

    .gmis-login-card {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 25px 20px;
        box-sizing: border-box;
        overflow: visible !important;
    }

    .gmis-login-card h2 {
        font-size: 23px;
        line-height: 1.3;
        margin-bottom: 15px;
    }


    /* Ongoing Grants */

    .ongoing-grant {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 40px 15px 50px !important;
    }

    .ongoing-title {
        margin-bottom: 22px;
    }

    .ongoing-title p {
        font-size: 21px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .ongoing-title p::after {
        width: 50px;
        height: 3px;
        margin-top: 10px;
    }

    .ongoing-body {
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
        padding: 20px;
        box-sizing: border-box;
        overflow: visible !important;
    }

    .ongoing-content {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .ongoing-content h1 {
        font-size: 17px;
        line-height: 1.45;
        margin-bottom: 10px;
    }


    /* Prevent images from overflowing */

    .gmis-content img,
    .gmis-login-card img,
    .ongoing-grant img {
        max-width: 100%;
        height: auto;
    }


    /* Prevent horizontal cropping */

    .gmis-content,
    .gmis-left,
    .gmis-right,
    .gmis-login-card,
    .ongoing-grant,
    .ongoing-body {
        box-sizing: border-box;
        max-width: 100%;
    }
}


/* =========================================================
   GMIS MOBILE - FIX TOP & BOTTOM CROPPING
   ========================================================= */

@media (max-width: 576px) {

    /* =========================================================
       HTML / BODY
       ========================================================= */

    html,
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }


    /* =========================================================
       MAIN GMIS SECTION
       ========================================================= */

    .gmis-section {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }


    /* =========================================================
       GMIS MAIN CONTAINER
       ========================================================= */

    .gmis-content {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 25px 13px 40px !important;
        gap: 20px !important;

        box-sizing: border-box !important;
        overflow: visible !important;
    }


    /* =========================================================
       LEFT CONTENT
       ========================================================= */

    .gmis-left {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        flex: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    .gmis-left h1 {
        width: 100% !important;

        font-size: 27px !important;
        line-height: 1.25 !important;

        margin-top: 0 !important;
        margin-bottom: 12px !important;

        padding: 0 !important;

        overflow: visible !important;
    }

    .gmis-tagline {
        width: 100% !important;

        font-size: 14px !important;
        line-height: 1.45 !important;

        margin-top: 0 !important;
        margin-bottom: 18px !important;

        overflow: visible !important;
    }


    /* =========================================================
       SEARCH
       ========================================================= */

    .gmis-search-box {
        width: 100% !important;
        height: auto !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 7px !important;

        overflow: visible !important;
    }

    .gmis-search-box input {
        width: 100% !important;
        height: 48px !important;

        box-sizing: border-box !important;

        padding: 0 12px !important;

        border: 2px solid #ff511a !important;
        border-radius: 4px !important;

        font-size: 13px !important;
    }

    /* Smaller Search button */
    .gmis-search-box button {
        width: 75% !important;
        height: 40px !important;

        margin: 0 auto !important;

        box-sizing: border-box !important;

        border: none !important;
        border-radius: 4px !important;

        font-size: 13px !important;
        padding: 0 15px !important;
    }

    .gmis-search-text {
        width: 100% !important;

        font-size: 12px !important;
        line-height: 1.4 !important;

        margin-top: 5px !important;

        overflow: visible !important;
    }


    /* =========================================================
       RIGHT / LOGIN
       ========================================================= */

    .gmis-right {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        flex: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }


    /* =========================================================
       LOGIN CARD
       ========================================================= */

    .gmis-login-card {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 20px 15px 25px !important;

        margin-top: 0 !important;
        margin-bottom: 10px !important;

        box-sizing: border-box !important;

        overflow: visible !important;
    }

    .gmis-login-card h2 {
        width: 100% !important;

        font-size: 21px !important;
        line-height: 1.3 !important;

        margin-top: 0 !important;
        margin-bottom: 8px !important;

        overflow: visible !important;
    }


    /* =========================================================
       LOGIN FORM
       ========================================================= */

    .gmis-login-card form {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
    }

    .gmis-login-card input {
        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;
    }


    /* =========================================================
       LOGIN BUTTON
       ========================================================= */

    .gmis-login-card button {
        max-width: 100% !important;

        box-sizing: border-box !important;
    }


    /* =========================================================
       ONGOING GRANTS
       ========================================================= */

    .ongoing-grant {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 35px 15px 50px !important;

        margin: 0 !important;

        box-sizing: border-box !important;

        overflow: visible !important;
    }

    .ongoing-body {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        box-sizing: border-box !important;

        overflow: visible !important;
    }




}


