body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: indigo;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

.logo img {
    max-width: 150px;
}

nav {
    position: relative; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Style for sub-menu */
.sub-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Show the sub-menu on hover */
#nav-menu li:hover .sub-menu {
    display: block;
}

/* Style for sub-menu links */
.sub-menu li {
    padding: 0px 8px;
}

.sub-menu li a {
    text-decoration: none;
    color: indigo;
}

.sub-menu li a:hover {
    background-color: #ddd;
}

.responsive-image {
    max-height: 100vh;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: indigo;
    margin: 2px 0;
    transition: 0.3s;
}

/* Carousel styling */
.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    top: 20px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    transition: opacity 0.5s ease;
    opacity: 0;
    display: none; /* Hide inactive slides */
}

.carousel-item.active {
    opacity: 1;
    display: block; /* Display the active slide */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Carousel Caption styling */
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    text-align: center;
    max-width: 80%;
}

main {
    padding: 40px;
    text-align: left;
    max-width: 1080px;
    margin: 0 auto;
    flex: 1;
}

main.welcome, main.pagination, main.gallery-intro {
    text-align: center;
} 

h1, h2, h3 {
    color: indigo;
    margin-top: 20px;
}

h1.gallery-heading {
    color: indigo;
    margin-top: 0px;
    text-align: center;
}

.welcome p {
    text-align: left;
}

.services-bold, .contact-bold {
    color: indigo;
}

/* section {
    padding-top: 20px;
} */

/* section#mission-and-vision {
    padding-top: 0px;
    margin-bottom: 0px;
} */

 /* Full-width section image with desktop responsiveness */
 /* .section-image {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
} */

.responsive-image {
    width: 100%;
    height: auto;
    max-height: 600px; 
    object-fit: cover; 
    margin: 0 auto; 
    max-width: 100%;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.pagination button {
    padding: 8px 16px;
    font-size: 14px;
}

#page-info {
    font-size: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;  
    z-index: 999;
  }
  
  .modal-image {
    max-width: 80%;
    max-height: 80%;
  }
  
  .modal-close, .prev-modal-btn, .next-modal-btn {
    position: absolute;
    top: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }

  .modal-close {
    right: 10px;
  }

  /* Team section styling */
.team-section {
    text-align: center;
    padding: 40px 20px;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    width: 250px;
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: indigo;
}

.team-member p {
    font-size: 14px;
    color: #333;
}

/* iFrame responsive styling for Google Form*/
iframe {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-width: 100%;
    border: 0;
    margin: 20px 0;
}

footer {
    background-color: indigo;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-size: 16px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #nav-menu {
        display: none;
    }
    
    #nav-menu.show {
    display: flex;
    }
    
    nav ul {
        display: flex; 
        flex-direction: column; 
        width: 30%; 
        background-color:  indigo; 
        position: absolute; 
        top: 45px;
        right: 13px;
        z-index: 9;
      }

    nav ul li {
         margin: 0px 0; 
    }

    nav ul li a {
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    /* Style the sub-menu for mobile view */
    .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        width: 100%;
        z-index: 9;
    }

    /* Show sub-menu items in a collapsible manner */
    /* #nav-menu li:hover .sub-menu {
        display: none;
    } */

    #nav-menu li .sub-menu.active {
        display: block;
    }

    #page-info {
        font-size: 14px;
    }

    /* Carousel Styling */
    .carousel-item {
        max-height: 400px;
    }

    .carousel-control {
        font-size: 16px;
        padding: 8px;
    }

    .carousel-control.prev {
        left: 5px;
    }

    .carousel-control.next {
        right: 5px;
    }

    /* Carousel Caption Styling */
    .carousel-caption {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 90%;
    }

    /* Team section styling */
    .team-member {
        width: 45%;
    }

    main {
        padding: 15px;
    }

    iframe {
        min-height: 400px;
    }

    footer {
        font-size: 14px;
        padding: 15px 0;
    }
}


/* Media query for smartphones */
@media (max-width: 320px) {

    .logo img {
      max-width: 80px; 
    }

    nav ul {
        width: 35%;
        top: 40px;
        right: 10px;
    }
  
    nav ul li {
      margin: 0px 0;
    }
  
    .responsive-image {
        max-height: 100vh; 
    }
    
    /* Responsive styles for max-width: 320px */
    @media (max-width: 320px) {
    /* Style adjustments for very small screens */
    .sub-menu li {
        padding: 8px 12px;
    }

    .sub-menu li a {
        font-size: 14px;
    }
}

    #page-info {
        font-size: 12px;
    }

    
    .thumbnail {
        width: 100px;
        height: 100px;
    }

    /* Carousel Styling */
    .carousel-item {
        max-height: 300px;
    }

    .carousel-control {
        font-size: 14px;
        padding: 6px;
    }

    .carousel-control.prev {
        left: 2px;
    }

    .carousel-control.next {
        right: 2px;
    }

    /* Carousel Caption Styling */
    .carousel-caption {
        font-size: 10px;
        padding: 6px 10px;
        max-width: 95%;
    }

    /* Team section styling */
    .team-member {
        width: 90%;
    }

    .team-section {
        padding: 20px 10px;
    }

    main {
        padding: 10px;
    }

    iframe {
        min-height: 300px;
    }
  
    footer {
      font-size: 8px; 
      padding: 5px 0; 
    }
  } 
