/* General Gallery Section */
.custom-gallery {
    padding: 20px;
}

.custom-gallery .section-title {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.custom-gallery .highlight-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.custom-gallery .highlight-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.custom-gallery .category-buttons {
    margin-bottom: 20px;
    text-align: center;
}



.btn-primary {
    margin: 5px;
    padding: 8px 16px;
    font-size: 14px;
    background-color: white;
    color: black;
    border: 1px solid #000000; 
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; 
}

.btn-primary:hover {
    background-color: #000000; 
    color: white; 
    transform: scale(1.05); 
}
 .btn-secondary {
    margin: 5px;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #0368d4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #003e81;
}

.custom-gallery .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.custom-gallery .image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-gallery .image-item img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.custom-gallery .image-item:hover img {
    transform: scale(1.05);
}

.custom-gallery .image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 128, 0.9), rgba(0, 0, 128, 0.7), rgba(0, 0, 128, 0.2), transparent);
    color: white;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.7rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.custom-gallery .image-item:hover .image-text {
    opacity: 1;
}




/* YouTube Section */
.youtube-section {
    margin-top: 50px;
    padding: 20px;
    background-color: #f9f9f9; /* Soft background for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.youtube-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.youtube-section .video-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Add space between items */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.youtube-section .video-item {
    flex: 1 1 calc(25% - 20px); /* Each item takes 25% of the width minus the gap */
    min-width: 250px; /* Ensure minimum size for smaller screens */
    text-align: center;
}

.youtube-section iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.youtube-section .video-description {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .youtube-section .video-item {
        flex: 1 1 100%; /* Full width for smaller screens */
    }
}


/* Footer Styles */
footer {
    background-color: #003366;
    color: #fff;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.footer-section {
    flex: 1;
    padding: 10px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: normal;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    margin-right: 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ddd;
    transform: rotate(360deg);
    transition: transform 0.4s ease-in-out;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid white;
    padding: 10px 20px;
    margin-top: 20px;
    color: #fff;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Floating Button Styles */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: #076fdee8;
    transform: scale(1.1);
}


/* Header Styling */
header {
    position: relative;
    width: 100%;
    height: 400px; 
    background-image: url('../images/hands.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 128, 0.7);
    z-index: 0;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 90%;
    z-index: 1;  /* Ensure content is above the overlay */
  }
  
  /* Navigation Styling */
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    position: relative;  /* For dropdown positioning */
    margin: 0 10px;
  }
  
  /* Dropdown Menu */
  .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;  /* Position below the parent link */
    left: 0;
    background: rgba(0, 0, 128, 0.9);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 150px;
    z-index: 2;
  }
  
  .dropdown .dropdown-menu li {
    margin: 0;
  }
  
  .dropdown .dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    white-space: nowrap;
    color: white;
    text-decoration: none;
  }
  
  /* Show dropdown on hover for desktop */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* Basic link styling */
  .nav-links a {
    text-decoration: none;
    color: white;
    padding: 8px 15px;
    display: block;
  }
  
  /* Hamburger Styling */
  .hamburger {
    display: none; /* Hidden by default; shown on mobile via media queries */
    flex-direction: column;
    cursor: pointer;
  }
  
  .hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(0, 0, 128, 0.9);
      flex-direction: column;
      align-items: center;
      display: none;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    /* Ensure dropdown menus work on mobile */
    .dropdown .dropdown-menu {
      position: static;
    }
  }
  
/* Logo Text Styling */
.logo {
    color: #f8b400;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 5px 10px;
    border: 2px solid #f8b400;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-weight: bold;
}

.logo:hover {
    background-color: #f8b400;
    color: #003366;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: #f8b400;
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-gallery .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .custom-gallery .youtube-section iframe {
        height: 180px;
    }

    .custom-gallery .image-item {
        width: 100%;
        height: auto;
    }

    .nav-links {
        flex-direction: column;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}
