/* Basic CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #f0f4f8, #e7f0fc); /* Light, soft gradient */
  color: #333;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(45deg, #36d1dc, #5b86e5); /* Blue gradient to match home page */
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
  max-height: 50px;
  background-color: transparent; /* Ensure there's no background behind the logo */
  mix-blend-mode: multiply; 
  width: 130px; /* Set the width you want */
  height: 120px; /* Keep the aspect ratio */
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px; /* Adjusted spacing for better layout */
}

nav ul li a {
  color: #ffffff; /* White text */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 25px; /* Rounded button style */
  background: #ff6b6b; /* Coral red matching home page buttons */
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover {
  background: #e63946; /* Darker coral on hover */
  transform: translateY(-3px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced hover effect */
}

/* Gallery Intro Section */
.gallery-intro {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #e3f2fd; /* Light blue matching overall theme */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #36d1dc; /* Consistent with header color */
}

.gallery-intro p {
  font-size: 1.1rem;
  color: #555;
}

/* Gallery Section */
.gallery {
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px); /* Lifts the card on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.gallery-item p {
  padding: 10px;
  font-size: 0.9rem;
  color: #36d1dc; /* Matching color theme */
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #36d1dc, #5b86e5); /* Matching home page footer */
  color: #ffffff; /* Light text color */
  display: flex;
  justify-content: space-around; /* Spread items for balanced layout */
  flex-wrap: wrap;
  padding: 15px 20px;
  border-top: 4px solid #5b86e5; /* Clear separation with a border */
  gap: 20px;
}

footer address {
  flex: 1;
  text-align: center;
  min-width: 200px;
  margin-bottom: 10px; /* Extra spacing for separation */
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px; /* Consistent spacing for links */
  flex-wrap: wrap;
}

.footer-nav ul li a {
  color: #ffffff; /* White text */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 10px;
  background: transparent; /* Transparent background */
  transition: color 0.3s, border-bottom 0.3s, background 0.3s;
  border-bottom: 2px solid transparent;
  display: inline-block; /* Ensures spacing looks balanced */
}

.footer-nav ul li a:hover {
  color: #5b86e5; /* Consistent hover color */
  background: #ffffff; /* White background on hover */
  border-bottom: 2px solid #ffffff; /* Underline on hover */
}

footer p {
  text-align: center;
  width: 100%;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #e0f7fa; /* Light text color */
}

/* Responsive Styles */
@media (max-width: 768px) {
  header,
  nav ul {
    flex-direction: column;
    text-align: center;
    padding: 10px 0; /* Reduced padding for header */
  }

  nav ul li a {
    padding: 6px 10px; /* Reduced padding for mobile */
    margin-bottom: 6px; /* Space between buttons */
    font-size: 0.9rem; /* Slightly smaller font for buttons */
  }

  .gallery-grid {
    grid-template-columns: 1fr; /* Adjusted for mobile */
  }

  footer {
    padding: 10px 10px; /* Compact footer padding */
    flex-direction: column; /* Stack footer items vertically */
    text-align: center;
  }

  .footer-nav ul {
    gap: 8px; /* Reduce gap on mobile */
  }
}
