@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

h1, h2 {
    font-weight: 700;
    text-align: center;
}

.container {
    display: grid;
    grid-template-rows: auto auto;
    width: 100%;
    min-height: 100vh;
}

.section1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.section2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.col1, .col2, .col3, .col4, .col5, .col6 {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 63px;
}

.col1 { background-color: #F8F9FA; }
.col2 { background-color: #E8E8E8; }
.col3 { background-color: #D8D8D8; }
.col4 { background-color: #C5C5C5; }
.col5 { background-color: #B0B0B0; }
.col6 { background-color: #9A9A9A; }

.button {
    background: #000A3D;
    color: white;
    width: 200px;
    height: 60px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 18px;
    transition: transform 0.3s ease-in-out;
}

.button:hover {
    background: #001166;
    transform: scale(1.09);
}

.footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #4A4A4A;
    color: #F8F9FA;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.col7, .col8, .col9, .col10 {
    display: grid;
    place-items: center;
}

.footer a:hover {
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.modal-content {
    background-color: white;
    padding-left: 99px;
    padding-right: 99px;
    text-align: center;
    width: 50%;
    height: 100vh;
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-left { left: 0; }
.modal-right { right: 0; }

.modal-center {
    width: 50%;
    height: 100vh;
    top: 0;
    left: 25%;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #000A3D;
    text-align: center;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    margin-bottom: 15px;
}

.modal-highlight {
    font-size: 18px;
    font-weight: 700;
    color: #000A3D;
    text-align: center;
    margin: 20px 0;
}

.modal-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #444;
    margin-top: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    line-height: 28px;
    text-align: center;
    color: white;
    background: #000A3D;
    border: 2px solid #000A3D;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    animation: closeGrow 2.5s infinite ease-in-out;
}

.close-modal:hover {
    color: #2F2F2F;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    margin-top: 15px;
}

.contact-form label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.contact-form input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    transition: border-color 0.3s ease-in-out;
}

.contact-form input:focus {
    border-bottom: 2px solid #000A3D;
    outline: none;
}

.contact-form button {
    justify-self: center;
    background: #000A3D;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.contact-form button:hover {
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    max-width: 80%;
    height: auto;
}

@keyframes closeGrow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

@media (max-width: 1024px) {
    .section1, .section2, .footer {
        grid-template-columns: 1fr;
    }

    .col1, .col2, .col3, .col4, .col5, .col6, .col7, .col8, .col9, .col10 {
        width: 100%;
    }

    .col1, .col2, .col3, .col4, .col5, .col6 {
        display: grid;
        grid-template-rows: auto auto auto;
        gap: 20px;
        justify-items: center;
        text-align: center;
    }

    .modal-content {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
}
