body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.responsive-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 500px;
}

header {
    background-image: url('images/how\ to\ career1.png');
    background-size: cover;
    color: rgb(13, 13, 14);
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80%;
    padding: 250px ;
}


body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}



nav {
    background: #3a4447;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background: #e36bb3;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Ensure section backgrounds are responsive */
section {
    padding: 80px;
    height: fit-content; /* Use vh units for height */
    width: 100%; /* Ensure sections take up full width */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

#section1 { background: #d0f0f1; }
#section2 { background: #3a4447; }
#section3 { background: #e36bb3; }
#section4 { background: #d0f0f1; }
#section5 { background: #3a4447; }
#section6 { background: #3a4447; }

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    section {
        padding: 60px;
        height: fit-content;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px;
        height: fit-content;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px;
        height: fit-content;
    }
} 

/*for grid of pictures and text*/

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}
.grid-item {
    text-align: center;
}
.grid-item img {
    width: 100%;
    max-width: 150px; /* Adjust as needed */
    height: auto;
}
.text-row {
    margin-top: 10px;
}

/* for Thematic Groups */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between rows and columns */
}

.image-grid img {
    width: 200px; /* Set the width of the images */
    height: 150px; /* Set the height of the images */
    object-fit: cover; /* Ensure images cover the set dimensions */
}

/* for Contact Form*/
.contact-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}
.contact-form h2 {
    margin-bottom: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    width: 100%;
    padding: 10px;
    background-color: #043BCB;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.contact-form button:hover {
    background-color: #52D4FC;
}
.message {
    margin-top: 10px;
}

/*for Footer*/
        .footer {
            display: flex;
            justify-content: space-between;
            background-color: #a9cccd;
            color: white;
            padding: 20px;
        }
        .footer-column {
            flex: 1;
            padding: 10px;
        }

        .modal {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.4rem;
            width: 450px;
            padding: 1.3rem;
            min-height: 250px;
            top: 20%;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 15px; 
            }
           
            .modal .flex{
            display: flex;
            align-items: center;
            justify-content: space-between;
            }
           
            button {
            cursor: pointer;
            border: none;
            font-weight: 600;
            }
           
            .modal input{
            padding: .7rem 1rem;
            border: 1px solid #222;
            border-radius: 5px;
            font-size: .9em;
            }
           
            .modal p {
            font-size: 0.9rem;
            color: #777;
            margin: 0.4rem 0 0.2rem;
            }
           
            button {
            cursor: pointer;
            border: none;
            font-weight: 600;
            }
           
            .btn {
            display: inline-block;
            padding: 0.8rem 1.4rem;
            font-weight: 700;
            background-color: rgb(2, 53, 55);
            color: white;
            border-radius: 5px;
            text-align: center;
            font-size: 1em;
            }
           
            .btn-open {
            position: fixed;
            bottom: 150px;
            }
           
           .btn-close {
            transform: translate(10px, -20px);
            padding: 0.5rem 0.7rem;
            background: #eee;
            border-radius: 50%;
            }
           
            .overlay {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(3px);
            z-index: 1;
           }
           
           .modal {
            z-index: 2;
           }
           
           .hidden {
            display: none;
           }

