/* ===============================
   HERO SECTION - SUSTAINABLE LIVELIHOOD
================================= */
.livelihood-hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
              url('../assets/images/background-livehood.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Overlay Content */
.livelihood-content {
  text-align: center;
  color: #fff;
  max-width: 850px;
  padding: 20px;
  animation: slideFade 1.2s ease-in-out;
}

.livelihood-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.livelihood-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 35px;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #28a745;
  color: #fff;
}

.btn-primary:hover {
  background: #1e7e34;
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

/* Animation */
@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===============================
   SECOND SECTION - PROGRAMS
================================= */
.livelihood-programs {
  padding: 80px 20px;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #222;
}

.section-header p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
  color: #555;
}

/* Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Cards */
.program-card {
  background: #fff;
  padding: 20px;
  border-radius: 2px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  cursor: pointer;
  
}

.program-card:hover {
  transform: translateY(-8px);
}

/* Images */
.program-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1px;
  margin-bottom: 15px;
}

.program-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #28a745;
}

.program-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}




/* ===============================
   THIRD SECTION - STORY BLOCK
================================= */
.livelihood-story {
  padding: 80px 20px;
  background: #ffffff;
}

.story-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Image */
.story-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
}

/* Content */
.story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #222;
}

.story-content p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Button */
.story-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #28a745;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.story-btn:hover {
  background: #1e7e34;
  transform: translateY(-3px);
}


/* ===============================
   FOURTH SECTION - MODERN GALLERY
================================= */
.livelihood-gallery {
  padding: 80px 20px;
  background: #f3f2ef;
}

.gallery-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 15px;
}

/* General Items */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

/* Big Image */
.gallery-item.big {
  grid-row: span 2;
}

/* Hover Effect */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Overlay Text */
.overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  background: rgba(0,0,0,0.5);
  padding: 8px 15px;
}









/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
  .livelihood-content h1 {
    font-size: 2.4rem;
  }

  .livelihood-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .livelihood-hero {
    height: 85vh;
  }

  .livelihood-content h1 {
    font-size: 1.9rem;
  }
}


/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
  .story-container {
    grid-template-columns: 1fr;
  }

  .story-image img {
    height: 300px;
  }

  .story-content {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .story-content h2 {
    font-size: 2rem;
  }
}


/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
  .gallery-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item.big {
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}
