@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
body {
    margin: 0;
    font-family: "Calibri", "Calibri (Body)", Arial, sans-serif;
    background: white;
}

.main-container {
    min-height: 100vh;
    min-width: 90vw;
    box-sizing: border-box;
    position: relative;
    background-color: rgb(246, 248, 255);
    padding: 1vw;
}

.main-header {
    display: grid;
    grid-template-columns: 1fr 0.05fr 3fr 1.3fr;
    width: 100%;
    height: 18vh;
    align-items: center;
    box-sizing: border-box;
    border: 0.15vw solid #000000;
    background-color: rgb(211, 255, 240);;
}

.main-header .left-box {
    height: 80%;
    width: 90%;
    margin: auto;
    
}

.main-header .center-box {
    height: 80%;
    width: 96.6%;
    margin: auto;
}

.main-header .right-box {
    height: 80%;
    width: 90%;
    margin: auto;
}

.main-header .left-box .text-box{
    display: grid;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 14vh;
    font-size: 2.4vw;
    font-family: 'Calibri (Body)';
    align-content: stretch;
}

.main-header .center-box .text-box{
    display: grid;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 14vh;
    font-size: 2.4vw;
    font-family: 'Calibri (Body)';
    align-content: stretch;
}

.main-header .right-box .text-box {
    display: grid;
    grid-template-columns: 2fr 4fr 0fr ;
    width: 100%;
    height: 12vh;
    border-radius: 0.5vw;
    margin: 0.5vw auto;
    align-content: stretch;
}

.main-header .right-box .text-box .Icon{
    display: grid;
    grid-template-columns: 1fr 0fr;
    width: 80%;
    height: 8vh;
    margin: auto;
    font-size: 2vw !important;
    font-family: 'Calibri (Body)';
    align-content: stretch;
    /* border: solid 0.15vw #000000; */
    align-items: center;
    border-radius: 0.5vw;
    text-align: center;
    position: relative;
}

.main-header .right-box .text-box .Icon img {
    width: 60%;
    height: 85%;
    margin: auto;
}


.main-header .right-box .text-box .box {
    display: grid;
    grid-template-columns: 1fr 0fr;
    width: 100%;
    height: 8vh;
    margin: auto;
    font-size: 1.5vw !important;
    font-family: 'Calibri (Body)';
    align-content: stretch;
    border: solid 0.15vw #000000;
    align-items: center;
    cursor: pointer;
    border-radius: 0.5vw;
    text-align: center;
    position: relative;
}

.main-header .right-box .text-box .box .dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    border-radius: 0.5vw;
    z-index: 10;
    padding: 0;
    margin-top: 0.2vw;
    grid-template-rows: 1fr 1fr 1fr;
    background: white;
}

.main-header .right-box .text-box .box .dropdown-option {
    font-size: 1.5vw;
    padding: 1.2vw 0;
    text-align: center;
    cursor: pointer;
    border-radius: 0.5vw;
    border: solid 0.05vw #000000;
    margin-bottom: 0.2vw;
    width: 100%;
}

.main-header .right-box .text-box .box .dropdown-option:last-child {
    border-bottom: none;
}
.main-header .right-box .text-box .box .dropdown-option:hover {
    background: #e0e0e0;
}

.main-function-bar {
    display: grid;
    grid-template-columns: 1fr 0.05fr 4.3fr 0fr;
    width:100%;
    height: 77.8vh;
    align-items: center;
    box-sizing: border-box;
    border: 0.15vw solid #000000;
    border-top: none;
}

.vertical-line {
    width: 0.1vw;
    height: 100%;
    background: #000;
    margin: auto;
    border-radius: 1vw;
}

.main-function-bar .left-box {
    height: 90%;
    width: 90%;
    margin: auto;
}

.main-function-bar .left-box .text-box {
    display: grid;
    grid-template-rows: 1fr 5fr 2fr;
    width: 100%;
    height: 70vh;
    font-size: 2vw;
    font-family: 'Calibri (Body)';
    align-content: stretch;
    text-align: center;
}

.main-function-bar .left-box .text-box .support-box {
    display: grid;
    grid-template-columns: 1fr 3fr;
    width: 95%;
    height: 15vh;
    font-size: 2vw;
    font-family: 'Calibri (Body)';
    align-content: stretch;
    text-align: center;
    margin-left: 0.4vw;
    margin-top: 0.6vw;
}

.main-function-bar .left-box .text-box .support-box .support-box-row-icon .support-box-icon {
    display: grid;
    grid-template-rows: 1fr 0fr;
    width: 80%;
    height: 5vh;
    margin: auto;
    font-size: 1.5vw !important;
    font-family: 'Calibri (Body)';
    align-content: stretch;
    align-items: center;
    border-radius: 0.5vw;
    text-align: center;
    position: relative;
    /* border: solid 0.05vw #000000; */
    margin-top: 1.2vh;
}

.main-function-bar .left-box .text-box .support-box .support-box-row-icon .support-box-icon img {
    width: 137%;
    height: 95%;
    margin: auto;
}   

.main-function-bar .left-box .text-box .support-box .support-box-row-detail .support-box-icon-H,
.main-function-bar .left-box .text-box .support-box .support-box-row-detail .support-box-icon-C {
    display: grid;
    grid-template-rows: 1fr 0fr;
    width: 80%;
    height: 5vh;
    margin: auto;
    font-size: 2.3vh !important;
    font-family: 'Calibri (Body)';
    align-content: stretch;
    align-items: center;
    cursor: pointer;
    border-radius: 0.5vw;
    text-align: left;
    position: relative;
    margin-top: 1.2vh;
}

/* create center box and the main page */
.main-function-bar .center-box {
    font-family: 'Calibri (Body)';
    font-size: 7vh;
    height: 90%;
    width: 97%;
    margin: auto;
    display: grid;
    grid-template-rows: 12fr ;
}

/* edit */
.login-form {
    height: 70%;
    width: 50%;
    border-radius: 0.5vw;
    display: grid;
    grid-template-rows: 2fr 0fr 1fr 1fr 1fr 1fr 1fr ;
    border: solid 0.15vw #000000;
}

.login-form p {
    text-align: center;
    margin: auto;
    font-size: 2vw;
    font-family: 'Calibri (Body)';
    border: solid 0.15vw #000000;
    width: 35%;
    border-left: none;
    border-right: none;
    border-top: none;
}

.login-form input {
    padding: 0.8vw;
    font-size: 1vw;
    border: 0.1vw solid #000000;
    border-radius: 0.4vw;
    outline: none;
    margin: auto;
    width: 50%;
    height: max-content;
    margin: auto;
}

.login-form input::placeholder {
    color: lightgray;
}
.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: auto;
    height: 6.5vh;
    gap: 1.5VW;
}

.buttons input{
    width: 100%;
    display: flex;                
    justify-content: center;      
    align-items: center;  
    border-radius: 0.4vw;
    cursor: pointer;
    font-size: 1vw;
    margin: auto;
    width: 100%;
    text-align: center;
    height: 90%;
    border: solid 0.1vw #000000;
    margin: auto;
    background-color: rgb(186, 240, 186);
    font-family: 'Calibri (Body)';
}

.forget-btn {
    display: flex;                /* Enables flexbox */
    justify-content: center;      /* Centers text horizontally */
    align-items: center;  
    border-radius: 0.4vw;
    cursor: pointer;
    font-size: 1vw;
    margin: auto;
    width: 110%;
    text-align: center;
    height: 90%;
    border: solid 0.1vw #000000;
    background-color: darkgray;
    color: WHITE;
}

.login-btn:hover {
    background: rgb(206, 255, 206);
}

.forget-btn:hover {
    background: lightgray;
}

.login-form-divider{
    background: lightblue; 
    border: solid 0.1vw black; 
    border-left: none;
    border-right: none;
    border-bottom: none;
}



/* MODEL CSS */
/* ===== MODAL BASE ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-box {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    width: 90%;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== LEFT COLUMN ===== */
.modal-left {
    background: #1d3557;
    color: white;
    padding: 30px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-left h2 {
    font-size: 2.5vh;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-left .tagline {
    font-size: 1.6vh;
    margin-bottom: 30px;
    opacity: 0.8;
}

.support-section {
    margin-top: auto;
}

.support-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.support-item img {
    width: 20px;
    margin-right: 10px;
}

/* ===== RIGHT COLUMN ===== */
.modal-right {
    width: 60%;
    padding: 30px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.modal-header {
    font-weight: bold;
    font-size: 1.8vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-btn {
    font-size: 2.5vh;
    cursor: pointer;
    color: #333;
}

.modal-title {
    font-size: 2vh;
    margin-bottom: 20px;
    text-align: center;
}

.department-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.department-buttons button {
    background: #1d3557;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1.7vh;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.department-buttons button:hover {
    background: #457b9d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modal-box {
        flex-direction: column;
        width: 95%;
    }

    .modal-left,
    .modal-right {
        width: 100%;
    }
}

#contact .modal-content {
    padding: 20px;
    font-size: 1.5vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}