.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: absolute;
  top: 340px;
  bottom: 10%;
  left: 5%;
  max-width: 600px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.hero-heading {
  font-size: 3rem;
  margin-bottom: 1rem; /* Reduced from 200px to normal spacing */
  font-weight: 700;
  line-height: 1.2;
}

.hero-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ffcc00; /* Accent color */
  margin-top: 10px;
}

.hero-description {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 0; /* Removed negative margin */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    bottom: 5%;
    left: 5%;
    right: 5%;
  }
  
  .hero-heading {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
}

.masonry-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'poppins', sans-serif;
}

.masonry-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.masonry-heading {
    font-family: "Finger Paint", cursive;
  font-size: 2.5rem;
  color: #7a4a2b; /* Earthy tone */
  margin-bottom: 20px;
  font-weight: 700;
}

.masonry-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background-color: #ffcc00; /* Accent color */
  margin: 15px auto 0;
}

.masonry-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
  grid-auto-flow: dense;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.masonry-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.1);
}

.masonry-item-tall {
  grid-row: span 2;
}

.masonry-item-wide {
  grid-column: span 2;
}

/* Tablet responsiveness */
@media (max-width: 992px) {
  .masonry-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .masonry-heading {
    font-size: 2.2rem;
  }
}

/* Small tablet responsiveness */
@media (max-width: 768px) {
  .masonry-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .masonry-heading {
    font-size: 2rem;
  }
  
  .masonry-description {
    font-size: 1rem;
  }
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .masonry-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .masonry-item-wide {
    grid-column: span 1;
  }
  
  .masonry-heading {
    font-size: 1.8rem;
  }
  
  .masonry-section {
    padding: 20px 15px;
  }
}

.serengeti-section {
  background-color: #fafafa;
  padding: 60px 20px;
  font-family: 'Georgia', serif;
}

.serengeti-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.serengeti-text {
  display: flex;
  flex-direction: column;
}

.serengeti-heading {
  color: #8B4513;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.serengeti-subheading {
  font-style: italic;
  color: #666;
  font-size: 1.4rem;
  margin-bottom: 30px;
  font-weight: 400;
  line-height: 1.3;
}

.serengeti-description {
  color: #333;
  line-height: 1.7;
  font-size: 1.1rem;
}

.serengeti-description p {
  margin-bottom: 25px;
}

.serengeti-description p:last-child {
  margin-bottom: 0;
}

.serengeti-image {
  position: relative;
  height: 100%; /* Match the grid item height */
  display: flex;
  align-items: stretch; /* Ensure image fills container */
}

.serengeti-image img {
  width: 100%;
  height: 100%; /* Fill the container height */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover; /* Maintain aspect ratio while filling container */
}

/* Ensure grid items align properly */
.serengeti-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start; /* Changed to start for better alignment */
}

.serengeti-text {
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure text container takes full height */
}

/* Tablet responsiveness */
@media (max-width: 992px) {
  .serengeti-content {
    gap: 40px;
    align-items: start; /* Maintain alignment on tablet */
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .serengeti-content {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  
  .serengeti-image {
    height: 400px; /* Fixed height on mobile for better control */
  }
  
  .serengeti-image img {
    height: 100%; /* Maintain full height on mobile */
  }
}