
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* ######################################### Start Header Navbar ######################################*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F4F9;
}

/* Navbar container */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0E2954;
    /* Dark Blue */
    padding: 20px 40px;
    position: relative;
}

/* Logo Image Styling with Circle */

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #84A7A1;
    padding: 5px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    /* Slightly enlarges the logo on hover */
}

/* Navbar links */

.nav-links {
    display: flex;
    list-style: none;
    transition: transform 0.3s ease;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #84A7A1;
    /* Light Greyish Blue */
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2E8A99;
    /* Light Teal */
}

/* CTA (Call to Action) Button */

.cta-btn {
    background-color: #1F6E8C;
    /* Teal Blue */
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #2E8A99;
    /* Light Teal */
}

/* Enroll Now Button */

.enroll-now {
    background-color: #FF6F61;
    /* Redish */
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.enroll-now:hover {
    background-color: #FF5733;
    /* Darker Red */
}

/* Menu Toggle Button */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    /* Adjusted to right */
}

.menu-toggle div {
    background-color: #84A7A1;
    height: 3px;
    width: 30px;
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* Responsive Design */

/* For mobile screens */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #0E2954;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        /* Reduced padding */
        z-index: 1;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        /* Reduced margin for a more compact list */
        font-size: 16px;
        /* Reduced font size */
    }
    .nav-links a {
        font-size: 16px;
        /* Consistent font size */
    }
    /* Hamburger Icon Transformation */
    .menu-toggle.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active div:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    /* Adjust Enroll Now Button Position */
    .cta-btn {
        position: absolute;
        right: 60px;
        /* Moves the "Enroll Now" button to the right */
        top: 33px;
    }
}

/* ######################################### End Header Navbar ######################################*/

/* General Layout and Flexbox Setup */
.gallery {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
}

/* Top Images Section */
.top-images {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.image-item {
    text-align: center;
    width: 200px;
    margin-bottom: 20px;
}

.top-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.top-images h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #2a3d66;
}

/* Gallery Section */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 1024px) {
    .gallery-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .top-images {
        justify-content: space-between;
    }
}

@media screen and (max-width: 768px) {
    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-images {
        flex-direction: column;
        align-items: center;
    }

    .image-item {
        width: 80%;
    }

    /* Fix image position when the menu toggle is visible */
    .top-image {
        margin-bottom: 15px; /* Add spacing between top images */
    }

    .gallery-images img {
        height: 180px; /* Adjust height for mobile view */
    }
}

@media screen and (max-width: 480px) {
    .gallery-images {
        grid-template-columns: 1fr;
    }

    .top-images {
        flex-direction: column;
        align-items: center;
    }

    .image-item {
        width: 90%;
    }

    /* Fix image size and space on mobile */
    .top-image {
        max-width: 100%;
        margin-bottom: 15px; /* Ensure space under image */
    }

    .gallery-images img {
        height: 160px; /* Adjust height for smaller screens */
    }

    /* Menu adjustments for mobile */
    .menu-toggle {
        z-index: 10; /* Ensure toggle button stays above images */
    }

    .top-images h3 {
        font-size: 16px; /* Adjust text size for small screens */
    }
}


/* ####################################### Start Scroll to top button #################### */

.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #0E2954;
    color: white;
    border: none;
    padding: 15px;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top:hover {
    background-color: #2e8a99;
}

/* ####################################### End Scroll to top button #################### */



/* ####################################### Start Footer #################### */

/* Footer Styling */

.footer {
    background-color: #0E2954;
    color: #84A7A1;
    padding: 30px 15px;
    font-family: 'Arial', sans-serif;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-about,
.footer-links,
.footer-social {
    width: 30%;
    margin-bottom: 30px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3 {
    font-size: 22px;
    color: #ecf0f1;
}

.footer-about p,
.footer-links ul li,
.footer-social a {
    font-size: 16px;
    color: #bdc3c7;
    line-height: 1.5;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ecf0f1;
}

.footer-social .social-icons a {
    font-size: 24px;
    margin-right: 15px;
    color: #3498db;
    transition: color 0.3s;
}

.footer-social .social-icons a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #bdc3c7;
}

/* Responsive Design */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-about,
    .footer-links,
    .footer-social {
        width: 100%;
        text-align: center;
    }
}

.footer-about .highlight-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.footer-about .highlight-text strong {
    color: #fff;
    font-weight: bold;
}

.footer-about .highlight-text em {
    color: #fff;
    font-style: italic;
}

/* ####################################### End Footer #################### */