/* General Styles */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #2D2D2D;
  background-color: #F7F7F7;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
}

.navbar-links {
  display: flex;
  gap: 1.5em;
}

.navbar a, .dropbtn {
  text-decoration: none;
  color: #2D2D2D;
  font-weight: 700;
  position: relative;
  transition: color 0.3s;
}

.navbar a::after, .dropbtn::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #112794;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.navbar a:hover, .dropbtn:hover {
  color: #112794;
}

.navbar a:hover::after, .dropbtn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

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

.dropdown-content a {
  color: #2D2D2D;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

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

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

.dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  padding: 0;
  transition: color 0.3s, transform 0.3s;
}

/* Mobile Navbar */
.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: transform 0.3s;
}

.mobile-navbar-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.mobile-navbar-links a {
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s ease;
}

.mobile-navbar-links a:hover {
  background: #f0f0f0;
}

.mobile-navbar-links.open {
  display: flex;
  max-height: 500px;
}

/* Media Queries */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .mobile-menu {
    display: flex;
    position: absolute;
    top: 1em;
    right: 1em;
  }
}

/* Gallery Section Styles */
.gallery-item-section {
  padding: 4em 2em;
  background-color: #FFFFFF;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 2em auto;
  max-width: 100%;
  border-radius: 8px;
}

.gallery-item-header {
  margin-bottom: 2em;
}

.gallery-item-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3em;
  margin-bottom: 0.5em;
  color: #112794;
}

.gallery-item-header p {
  font-size: 1.5em;
  color: #666;
}

.gallery-item-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.gallery-item-content p {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 1.5em;
  color: #444;
}

.gallery-item-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.gallery-item-gallery .gallery-item {
  flex: 1 1 calc(33.333% - 1em); /* 3 items per row with 1em gap */
  max-width: calc(33.333% - 1em); /* 3 items per row with 1em gap */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #FFF;
}

.gallery-item-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-gallery .gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: #2D2D2D;
  color: #fff;
  text-align: center;
  padding: 2em;
}

footer a {
  color: #112794;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-item-gallery .gallery-item {
    flex: 1 1 calc(50% - 1em); /* 2 items per row with 1em gap */
    max-width: calc(50% - 1em); /* 2 items per row with 1em gap */
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row; /* Ensure the navbar items are in a row */
  }

  .navbar-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .navbar-links a, .dropbtn {
    padding: 0.5em 0;
  }

  .gallery-item-header h1 {
    font-size: 2em;
  }

  .gallery-item-header p {
    font-size: 1em;
  }

  .gallery-item-gallery .gallery-item {
    flex: 1 1 calc(100% - 1em); /* 1 item per row with 1em gap */
    max-width: calc(100% - 1em); /* 1 item per row with 1em gap */
  }
}

@media (max-width: 480px) {
  .navbar img {
    width: 80px;
  }

  .gallery-item-header h1 {
    font-size: 1.5em;
  }

  .gallery-item-header p {
    font-size: 0.9em;
  }
}
/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
