body {
    /* margin: 0; */
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
/* gallery section  */
#gallery {
    text-align: center;
    padding: 40px 20px;
}

#gallery h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #153056;
    /* Matches your theme */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container img {
    width: 380px;
    /* Fixed width */
    height: 200px;
    /* Fixed height */
    object-fit: cover;
    /* Ensures the image fills the box without distortion */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.grid-container img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    .grid-container img {
        width: 250px;
        /* Slightly smaller images on mobile */
        height: 180px;
    }
}

/* section 1 Start */
/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    max-height: 500px; /*for horizontal*/
    /* max-height: 605px; for vertical */
    margin: 20px auto;
    overflow: hidden;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.5);  */
    /* border-radius: 12px; */
    border: 1px solid;
    border-left: none;
    border-right: none;
    /* Smooth rounded corners for a modern look */
}

/* Hide the images by default */
.mySlides {
    display: none;
    
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 5s;
}

@media (max-width: 768px) {
    .slideshow-container {
        max-width: 90%;
        /* Full width for smaller screens */
        margin: 10px auto;
        /* Reduce margin for better fit */
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        max-width: 100%;
        max-height: 140px; /*for horizontal*/
        /* Full width for very small screens */
        margin: 5px auto;
        /* Minimal margin */
    }
}

@keyframes fade {
    from {
        opacity: 1
    }

    to {
        opacity: 1
    }
}

/* Dots */
.dots-container {
    position: relative;
    top: -40px;
    width: 100%;
    text-align: center;
    opacity: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* section 1 End */

/* section 2 Start */
/* Image Grid Container */
.image-grid-container {
    display: flex;
    justify-content: space-around;
    /* background-color: #153056; */
    padding: 20px 0;
    color: black;
}

.image-item {
    position: relative;
    text-align: center;
    padding: 20px;
    /* Adds space inside the item */
    margin: 15px;
    /* Adds space between items */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Bolder shadow */
    border-radius: 15px;
    /* Smooth corners for a modern look */
    overflow: hidden;
    /* Ensures content stays within the rounded corners */
    background-color: #ffffff;
    /* Adds a clean white background */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Smooth hover transition */
}

.image-item img {
    width: 100%;
    max-width: 200px;
    /* Keeps images proportionate and uniform */
    transition: transform 0.4s ease;
    /* Adds a smooth zoom effect */
    margin-bottom: 10px;
    /* Creates space between the image and the text */
}

.image-item:hover {
    transform: translateY(-10px);
    /* Slight lift effect on hover */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 8px 10px rgba(0, 0, 0, 0.15);
    /* Stronger hover shadow */
}

.image-name {
    margin-top: 10px;
    font-size: 25px;
    /* Larger text for emphasis */
    font-weight: 800;
    /* Extra-bold font weight for a striking look */
    color: #222;
    /* Darker text color for better readability */
}

.image-grid-container {
    display: flex;
    justify-content: space-evenly;
    /* Evenly spaces items in the row */
    flex-wrap: wrap;
    /* Allows wrapping for smaller screens */
    gap: 20px;
    /* Uniform spacing between items */
    /* padding: 30px; */
    /* Adds space around the container */
    /* Light background for contrast */
}

.button {
    background-color: #153056;
    border: none;
    border-radius: 10px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    display: ruby-text;
    font-size: 16px;
    margin: 4px 680px;
    cursor: pointer;
}

.button:hover {
    color: #90D6FF;
    text-decoration: none;
}

/* section 2 End */

/* section 5 Start */
/* Contact Section */
.contact {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 36px;
    color: #153056;
    margin-bottom: 10px;
}

.section-header .line {
    display: block;
    width: 60px;
    height: 4px;
    background: #153056;
    margin: 0 auto 20px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.form-input {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-input:focus {
    border-color: #153056;
    outline: none;
}

.btn-grad {
    background: linear-gradient(90deg, #AAC0C7 0%, #1f4068 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-grad:hover {
    background: linear-gradient(90deg, #1f4068 0%, #AAC0C7 100%);
}

.contact-info {
    padding: 20px;
    background: linear-gradient(90deg, #1f4068 0%, #AAC0C7 100%);
    /* background-color: #AAC0C7; */
    border-radius: 10px;
    color: #fff;
}

.contact-info .contact-item {
    margin-bottom: 15px;
}

.contact-info .contact-item i {
    font-size: 20px;
    margin-right: 10px;
    color: white;
}

.contact-info .contact-item p,
.contact-info .contact-item a {
    margin: 0;
    font-size: 14px;
    color: white;
    text-decoration: none;
}

.contact-info .contact-item a:hover {
    color: #d1d1d1;
}

@media (max-width: 768px) {

    .contact-info,
    #contact_form {
        width: 100%;
    }

    .contact .row {
        flex-direction: column;
    }

    .contact-info {
        margin-top: 20px;
    }
}

/* section 5 End */
/* section 6 Start */


/* section 6 End */

@media (max-width: 1024px) {
    /* Styles for screens smaller than 1024px */
}

@media (max-width) {}

/* Responsive Grid for Image Sections */
@media (max-width: 1024px) {
    .image-grid-container {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        /* Slightly reduce spacing between items */
    }

    .image-item img {
        max-width: 150px;
        /* Smaller images for better fit */
    }

    .image-name {
        font-size: 20px;
        /* Reduce text size slightly */
    }
}

@media (max-width: 768px) {
    .image-grid-container {
        flex-direction: column;
        align-items: center;
        /* Center items for better appearance */
        padding: 20px;
        /* Adjust padding */
    }

    .image-item {
        margin: 10px;
        /* Reduce margin to fit items */
    }

    .image-name {
        font-size: 18px;
        /* Smaller text for better readability */
    }
}

/* Navbar for Smaller Screens */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
        /* Add space between menu items */
    }
}

/* Footer Adjustments */
/* @media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }
} */

/* Contact Form Adjustments */
@media (max-width: 768px) {
    .contact .row {
        flex-direction: column;
    }

    .contact-info {
        margin-top: 20px;
        /* Stack form and info vertically */
    }
}

@media (max-width: 768px) {
    .image-grid-container {
        /* flex-direction: column;
        align-items: center; */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }

    .image-item {
        margin: 10px 0;
    }

    .image-item img {
        max-width: 90%;
        height: auto;
    }

    .button {
        width: 80%;
        margin: 20px 40px;
    }
}

@media (max-width: 768px) {
    .contact .row {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    #contact_form {
        width: 90%;
    }

    .button{
        margin: 20px 140px;
    }
}

/* @media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 20px;
        text-align: center;
    }
} */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 10px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    /* Prevents excessive stretching */
    border-radius: 10px;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: auto;
    /* Centers the videos */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}