/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.header {
    min-height: 70vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(assets/Carosel2.JPG);
    background-position: center;
    background-size: cover;
    position: relative;
}

.text-box {
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.text-box h1 {
    font-size: 50px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 20px;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover {
    border: 1px solid white;
    background: #071478;
    transition: 1s;
}

.contact {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.contact h1 {
    font-size: 2.0em;
    margin-bottom: 20px;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Adjust the gap between items */
    padding: 0 20px; /* Added padding to the container to reduce excess space */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    
}

.contact-item1,
.contact-item2,
.contact-item3,
.contact-item4,
.contact-item5 {
    
    flex: 1 1 calc(50% - 40px); /* Two items per row, considering the gap */
    max-width: calc(70% - 50px); /* Ensure max-width is same as flex basis */
    width: 1000px;
    margin: 10px;
    box-sizing: border-box;
    border: 2px solid #071478;
    padding: 15px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    background-color: #071478;
}


@media (max-width: 768px) {
    .contact-item1,
    .contact-item2,
    .contact-item3,
    .contact-item4 {
        flex: 1 1 calc(50% - 20px); /* Adjust for smaller screens */
        max-width: calc(50% - 20px); /* Adjust max-width for smaller screens */
    }
}



/* Ensuring the original styles are applied */
.contact-item1,
.contact-item2,
.contact-item3,
.contact-item4 {
    height: 150px;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .contact-item,
    .contact-item1,
    .contact-item2,
    .contact-item3,
    .contact-item4 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.contact-item i {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.contact-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    color: #333;
}

.contact-item a {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}

.contact-item>p {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: black;
}

.contact-item a:hover {
    text-decoration: none;
}

.mobile-toggler .fa-bars,
.mobile-toggler .fa-x {
    display: none;
}

@media (max-width: 767px) {
    .mobile-toggler .fa-bars {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu.open {
        transform: translateX(0);
    }
    .mobile-menu {
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1000;
    }
    .mobile-menu.hidden {
        transform: translateX(100%);
    }
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 20px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    display: flex;
    align-items: center;
}

.dropdown .dropbtn .caret {
    margin-left: 8px;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.ffbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    /* Add padding to the container */
    box-sizing: border-box;
}

.ffbox1 {
    flex: 1 1 100%;
    /* Adjust flex properties as needed */
    max-width: 800px;
    /* Set maximum width for better responsiveness */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px;
    /* Center align and add bottom margin */
    background-color: #fff;
}

.ffbox1 h1 {
    text-align: center;
    /* Center align the heading */
    font-size: 28px;
    /* Adjust heading font size */
    margin-bottom: 10px;
    /* Add space below the heading */
}

.ffbox1 p {
    text-align: center;
    /* Center align paragraphs */
    font-size: 16px;
    /* Adjust paragraph font size */
    margin-bottom: 20px;
    /* Add space below paragraphs */
}

.ffbox1 h2 {
    text-align: center;
}

.ffbox1 label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.ffbox1 input,
.ffbox1 textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.ffbox1 textarea {
    resize: vertical;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn {
    background-color: #0056b3;
    padding: 16px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border: none;
}

.submit-btn:hover {
    background-color: #071478;
    transition: ease-in-out;
}

button:hover {
    background-color: #0056b3;
}

.map-div {
    flex: 1 1 300px;
    /* Adjust width as needed */
    min-height: 300px;
    position: relative;
}

.gmap_canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0%;
}

.map-div iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .ffbox {
        flex-direction: column;
    }
}


/* Media query for smaller screens */

@media (max-width: 700px) {
    nav {
        padding: 2% 4%;
    }
    .text-box h1 {
        font-size: 30px;
    }
    .text-box p {
        font-size: 12px;
    }
    .hero-btn {
        padding: 10px 24px;
        font-size: 12px;
    }
    .nav-links ul li {
        display: block;
        padding: 10px 0;
    }
    .nav-links {
        position: absolute;
        background: rgba(4, 9, 30, 0.9);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa {
        display: block;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
    .nav-links ul {
        padding: 30px;
    }
}

@media (max-width: 500px) {
    .text-box h1 {
        font-size: 24px;
    }
    .text-box p {
        font-size: 10px;
    }
    .hero-btn {
        padding: 8px 20px;
        font-size: 11px;
    }
}


/* Course section styles */

.course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.course h1 {
    font-size: 36px;
    font-weight: 600;
}

.course p {
    color: #333;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.course-col {
    flex-basis: 31%;
    background: #071478;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
    color: #fff;
    text-align: center;
}

.course-col img {
    width: 100%;
    height: 400px;
    /* Adjust the height to a medium size */
    object-fit: cover;
    /* Ensure the image covers the given area while maintaining aspect ratio */
    border-radius: 10px 10px 0 0;
}

.course-col h3 {
    font-weight: 600;
    margin: 10px 0;
}

.course-col p {
    color: #fff;
}

.course-col:hover {
    box-shadow: 0 0 20px 0px rgba(186, 16, 16, 0.2);
}


/* Optional: Responsive design */

@media (max-width: 768px) {
    .ffbox1 {
        max-width: 100%;
        /* Adjust max width for smaller screens */
    }
}