 body {
  font-family: 'Lato', sans-serif;
   background: #f0f2f1;
 }

 .icon {
   color: #3b5d4f;
 }

 /* Sticky Navbar */
 .navbar {
   /* font-weight: bold; */
   font-family: 'Montserrat', 'Lato', 'Source Sans Pro', sans-serif;
   position: sticky;
   top: 0;
   z-index: 1000;
   background: #3b5d4f;
   box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
 }

 .nav-link {
   color: white !important;
 }

 .nav-link.active {
   color: #3b5d4f !important;
 }

 .nav-link:hover {
   color: #f9bf29 !important;
 }

 .navbar ul li a {
   text-decoration: none;
   color: #ccc;
   padding: 10px;
   position: relative;
 }

 .navbar ul li a::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 0%;
   height: 3px;
   background: #f4c542;
   transition: 0.3s;
 }

 .navbar ul li a.active::after {
   width: 100%;
   /* Full underline for active item */
 }

 .navbar ul li a:hover::after {
   width: 100%;
   /* Full underline on hover */
 }

 .navbar-logo {
   height: 50px;
   margin-right: 15px;
   border-radius: 8px;
 }

 /* Carousel wrapper with preview */
 .carousel-container {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 15px;
   overflow: hidden;
   padding: 20px 0;
 }

 .carousel {
   flex: 0 0 60%;
 }

 .carousel-item img {
   width: 100%;
   height: 400px;
   object-fit: cover;
   border-radius: 16px;
   box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
 }

 /* Side previews */
 .preview {
   flex: 0 0 20%;
   display: flex;
   justify-content: center;
   align-items: center;
 }

 .preview img {
   width: 100%;
   height: 250px;
   object-fit: cover;
   border-radius: 12px;
   /* opacity: 0.6; */
   transition: 0.3s;
 }

 .preview img:hover {
   opacity: 1;
   transform: scale(1.05);
 }

 .preview h6 {
   margin-top: 10px;
   font-weight: bold;
 }

 .preview p {
   margin: 0;
   font-size: 14px;
   color: #555;
 }


 /* Custom 3-column section */
 .custom-section {
   padding: 30px 0;
 }

 .custom-card {
   /* background: #a6f5a678; */
   border-radius: 12px;
   padding: 40px 20px;
   text-align: center;
   
 }

 .custom-card-h1,
 .custom-card-h2,
 .custom-card-h3 {
   margin: 0;
   font-size: 24px;
   color: #fff;
 }

 .custom-card.left {
   background: #3b5d4f;
 }

 .custom-card.right {
   background: #3b5d4f;
 }

 .custom-card-title {
   background: #3b5d4f;
 }

 .custom-img-card {
   width: 100%;
   /* full width of parent */
   max-width: 400px;
   /* optional: limit card size */
   height: auto;
   border-radius: 12px;
   overflow: hidden;
   /* ensures image doesn’t spill out */
   box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
 }

 .custom-card img {
   width: 100%;
   height: 100%;
   border-radius: 12px;
   object-fit: cover;
   /* cover container without gaps */
   display: block;
   /* remove extra space below image */
 }

 .vertical-accordion {
   background: #28a745;
   color: white;
   height: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   border-radius: 0 15px 15px 0;
   transition: width 0.3s ease;
   overflow: hidden;
 }

 .vertical-accordion.collapsed {
   width: 50px;
   /* collapsed width */
 }

 .vertical-accordion.expanded {
   width: 200px;
   /* expanded width */
 }

 .vertical-accordion .accordion-toggle {
   writing-mode: vertical-rl;
   transform: rotate(180deg);
   border: none;
   background: transparent;
   color: white;
   font-weight: bold;
   padding: 10px;
   cursor: pointer;
 }

 .accordion-content {
   display: none;
   width: 100%;
 }

 .vertical-accordion.expanded .accordion-content {
   display: block;
 }

 .transition-all {
   transition: all 0.3s ease;
 }

 /* Heading Background */
 .h_background {
   background: linear-gradient(90deg, #3b5d4f 0%, #7bc47f 100%);
   color: #fff;
   padding: 18px 0;
   border-radius: 10px;
   box-shadow: 0 2px 12px rgba(59, 93, 79, 0.10);
   letter-spacing: 1px;
 }

 .mission-section {
   background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
 }

 .mission-card {
   background: #ffffff;
   border-left: 6px solid #388e3c;
   /* Ayurveda green accent */
   transition: transform 0.3s ease;
 }

 .mission-card:hover {
   transform: translateY(-5px);
 }

 .mission-title {
   font-size: 1.8rem;
   font-weight: 700;
   color: #2e7d32;
 }

 .mission-text {
   font-size: 1rem;
   line-height: 1.7;
   text-align: justify;
   color: #444;
 }

 .mission-icon-wrapper {
   background: #c8e6c9;
   border-radius: 50%;
   display: inline-flex;
   justify-content: center;
   align-items: center;
   padding: 20px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
 }

 .mission-icon {
   width: 120px;
   height: auto;
 }

 .vision-section {
   background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
 }

 .vision-card {
   background: #ffffff;
   border-left: 6px solid #f4c542;
   /* purple accent */
   transition: transform 0.3s ease;
 }

 .vision-card:hover {
   transform: translateY(-5px);
 }

 .vision-title {
   font-size: 1.8rem;
   font-weight: 700;
   color: #f4c542;
 }

 .vision-text {
   font-size: 1rem;
   line-height: 1.7;
   text-align: justify;
   color: #444;
 }

 .vision-img {
   max-width: 250px;
   border: 5px solid #ede7f6;
   border-radius: 50%;
   padding: 10px;
   background: #fff;
 }

 .gallery-item {
   cursor: pointer;
   transition: transform 0.3s;
 }

 .gallery-item:hover {
   transform: scale(1.04) rotate(-1deg);
   z-index: 2;
 }

 .gallery-img {
   transition: filter 0.3s;
   display: block;
   width: 100%;
   height: 220px;
   object-fit: cover;
 }

 .gallery-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.45);
   opacity: 0;
   transition: opacity 0.3s;
 }

 .gallery-item:hover .gallery-overlay {
   opacity: 1;
 }

 .gallery-icon {
   color: #000;
   font-size: 2rem;
   transition: transform 0.3s;
 }

 .gallery-item:hover .gallery-icon {
   transform: scale(1.2);
 }

 /* Counter Section */
 .counter-section h2 {
   font-size: 2.25rem;
   font-weight: 700;
   margin: 0 0 8px;
   line-height: 1;
 }

 .counter-section p {
   margin: 0;
   font-size: .9rem;
   color: #cfcfcf;
 }

 /* fade + slide up effect */
 .fade-counter {
   opacity: 0;
   transform: translateY(20px);
   transition: opacity 1s ease, transform 1s ease;
 }

 .fade-counter.visible {
   opacity: 1;
   transform: translateY(0);
 }

 /* Footer Button */
 .footer-btn {
   display: inline-block;
   background: #f4c542;
   color: #3b5d4f;
   font-weight: bold;
   padding: 12px 32px;
   border: none;
   border-radius: 8px;
   box-shadow: 0 2px 8px rgba(59, 93, 79, 0.12);
   cursor: pointer;
   transition: background 0.3s, transform 0.2s;
   text-decoration: none;
   font-size: 1rem;
 }

 .footer-btn:hover,
 .footer-btn:focus {
   background: #ffffff;
   color: #000;
   transform: translateY(-2px) scale(1.04);
   outline: none;
 }

 /* Milestone accordion custom styling */
 #milestonesAccordion .accordion-item {
   background: transparent;
   border: 0;
   margin-bottom: 0.8rem;
 }

 #milestonesAccordion .accordion-button {
   background: linear-gradient(90deg, #f4c542 0%, #e8b93a 45%, #ddd392 100%);
   color: #fff;
   border-radius: 12px;
   box-shadow: 0 8px 20px rgba(59, 93, 79, 0.18);
   padding: .5rem .8rem;
   display: flex;
   align-items: center;
   gap: .6rem;
   border: none;
 }

 #milestonesAccordion .accordion-button:focus {
   box-shadow: 0 10px 24px rgba(59, 93, 79, 0.28);
   outline: none;
 }

 #milestonesAccordion .accordion-button .milestone-title {
   flex: 1;
   text-align: left;
   font-weight: 700;
   letter-spacing: 0.2px;
 }

 #milestonesAccordion .milestone-badge {
   background: rgba(255, 255, 255, 0.14);
   color: #fff;
   font-size: .78rem;
   padding: .25rem .55rem;
   border-radius: 999px;
   white-space: nowrap;
 }

 #milestonesAccordion .accordion-body {
   background: #ffffff;
   color: #333;
   border-radius: 10px;
   margin-top: .6rem;
   padding: .9rem;
   box-shadow: 0 6px 18px rgba(21, 21, 21, 0.06);
   line-height: 1.4;
 }

 #milestonesAccordion .accordion-body p {
   margin: 0 0 .5rem 0;
   font-weight: 100;
 }

 #milestonesAccordion .accordion-body ul {
   margin: 0;
   padding-left: 1.1rem;
 }

 #milestonesAccordion .accordion-button:not(.collapsed) {
   transform: translateY(-3px);
 }

  /* carousel captions */
.carousel-caption h5 {
   background: #ffffff;
   color: #3b5d4f;
   display: inline-block;
   padding: 6px 10px;
   border-radius: 6px;
   font-weight: 600;
}

/* ===========================
   🌿 Responsive Design
   =========================== */

/* Large Tablets and Below */
@media (max-width: 1200px) {
  .carousel-item img {
    height: 320px;
  }

  .preview img {
    height: 200px;
  }

  .custom-card {
    padding: 30px 15px;
  }

  .mission-title,
  .vision-title {
    font-size: 1.5rem;
  }
}

/* Tablets and Below (≤992px) */
@media (max-width: 992px) {
  /* Stack Carousel previews vertically */
  .carousel-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .carousel {
    flex: 1 1 100%;
    order: 2;
  }

  .preview {
    flex: 1 1 100%;
    order: 1;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .preview img {
    height: auto;
    max-height: 220px;
  }

  .custom-card {
    padding: 20px 15px;
  }

  .custom-section .col-md-2,
  .custom-section .col-md-8 {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 1.2rem;
  }

  .custom-card.right,
  .custom-card.left {
    margin-top: 15px;
  }

  .navbar-logo {
    height: 40px;
  }

  .carousel-item img {
    height: 300px;
  }

  .mission-card,
  .vision-card {
    margin-bottom: 20px;
  }
}

/* Mobile Phones (≤768px) */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .navbar {
    text-align: center;
  }

  .navbar ul li a {
    display: block;
    padding: 8px 0;
  }

  .carousel-item img {
    height: 240px;
  }

  .carousel-caption h5 {
    font-size: 1rem;
    padding: 4px 8px;
  }

  .preview img {
    height: auto;
    max-height: 180px;
  }

  .custom-card-h1,
  .custom-card-h2,
  .custom-card-h3 {
    font-size: 1.1rem;
  }

  .mission-title,
  .vision-title {
    font-size: 1.3rem;
  }

  .mission-text,
  .vision-text {
    font-size: 0.95rem;
  }

  .h_background {
    font-size: 1.1rem;
    padding: 12px 0;
  }

  .footer-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .custom-img-card {
    max-width: 100%;
  }
}

/* Small Phones (≤576px) */
@media (max-width: 576px) {
  .navbar-logo {
    height: 36px;
    margin: 0 auto;
  }

  .carousel-item img {
    height: 200px;
  }

  .carousel-caption h5 {
    font-size: 0.9rem;
  }

  .preview img {
    max-height: 160px;
  }

  .preview h6 {
    font-size: 0.9rem;
  }

  .preview p {
    font-size: 0.8rem;
  }

  .footer-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .mission-text,
  .vision-text {
    line-height: 1.5;
    font-size: 0.9rem;
  }

  .custom-card {
    padding: 16px;
  }

  .card-body img {
    height: auto;
  }

  .custom-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .accordion-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .accordion-body {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Very Small Devices (≤400px) */
@media (max-width: 400px) {
  .carousel-item img {
    height: 180px;
  }

  .preview img {
    max-height: 140px;
  }

  .mission-title,
  .vision-title {
    font-size: 1.1rem;
  }

  .mission-text,
  .vision-text {
    font-size: 0.85rem;
  }

  .footer-btn {
    font-size: 0.8rem;
  }
}

/* =============== 🌿 Aapyam Header =============== */
.aapyam-header {
  background: #ffffff;
  border-bottom: 2px solid rgba(59, 93, 79, 0.15);
}

.aapyam-logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.aapyam-logo:hover {
  transform: scale(1.05);
}

.ngo-logo {
  height: 60px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ngo-logo:hover {
  transform: scale(1.05);
}

.foundation-btn {
  border-radius: 25px;
  background: #3b5d4f;
  color: #fff !important;
  border: none;
  transition: all 0.3s ease;
}

.foundation-btn:hover {
  background: #7bc47f;
  color: #fff !important;
}

/* Contact button */
.btn-outline-success {
  border-radius: 25px;
  border-color: #3b5d4f;
  color: #3b5d4f;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: #3b5d4f;
  color: #fff;
}

/* Mobile responsive tweaks */
@media (max-width: 768px) {
  .aapyam-header .row {
    text-align: center;
  }

  .aapyam-logo {
    height: 50px;
  }

  .ngo-logo {
    height: 50px;
  }

  .foundation-btn,
  .btn-outline-success {
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .aapyam-logo {
    height: 45px;
  }

  .ngo-logo {
    height: 45px;
  }

  .foundation-btn {
    font-size: 0.9rem;
  }
}

/* 🌿 Section Heading */
.section-title {
  font-weight: 700;
  font-size: 1.6rem;
  color: #3b5d4f;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, #3b5d4f, #7bc47f);
  border-radius: 2px;
}

/* 🌿 Info Cards */
.info-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(59, 93, 79, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(59, 93, 79, 0.15);
}

/* Card Header */
.info-card-header {
  background: linear-gradient(135deg, #3b5d4f, #7bc47f);
  padding: 15px;
  color: #fff;
}

.info-card-header.gold {
  background: linear-gradient(135deg, #f4c542, #e1b83e);
}

.info-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Card Body */
.info-card-body {
  padding: 18px 16px;
  flex-grow: 1;
}

.info-card-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

/* 🌿 Section layout */
.welcome-section p.lead {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .info-card {
    margin-bottom: 15px;
  }

  .info-card-title {
    font-size: 1.1rem;
  }

  .info-card-text {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

.next-page-link {
  display: inline-block;
  font-weight: 600;
  color: #f4c542;
  background: #3b5d4f;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.next-page-link:hover {
  background: #3b5d4f;
  color: #fff;
  transform: translateX(3px);
}

/* 🌿 Why Aapyam Section */
.why-aapyam-section {
  background: linear-gradient(135deg, #f8f9f8 0%, #f4f9f4 100%);
  position: relative;
  overflow: hidden;
}

.section-heading {
  font-weight: 800;
  color: #3b5d4f;
  font-size: 2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-heading .highlight {
  color: #f4c542;
}

.why-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(59, 93, 79, 0.1);
  box-shadow: 0 8px 20px rgba(59, 93, 79, 0.08);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(59, 93, 79, 0.18);
}

.why-icon {
  background: linear-gradient(135deg, #3b5d4f 0%, #7bc47f 100%);
  color: #fff;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(59, 93, 79, 0.25);
  transition: all 0.4s ease;
}

.why-card:hover .why-icon {
  transform: rotate(10deg) scale(1.1);
}

.tagline {
  font-size: 1.15rem;
  color: #3b5d4f;
  background: rgba(244, 197, 66, 0.15);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.5rem;
  }

  .why-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
  }
}
/* 🌿 Milestone Accordion (Sidebar Compact Style) */
.milestone-accordion {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(59, 93, 79, 0.08);
  border-left: 4px solid #3b5d4f;
}

.milestone-title {
  font-weight: 700;
  color: #3b5d4f;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #f4c542;
  padding-bottom: 5px;
  font-size: 1rem;
}

/* Accordion button styling */
#aapyamMilestones .accordion-button {
  background: #f9faf9;
  color: #3b5d4f;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.3s ease;
  gap: 8px;
}

#aapyamMilestones .accordion-button::after {
  filter: invert(50%) sepia(100%) hue-rotate(45deg);
}

#aapyamMilestones .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #3b5d4f, #7bc47f);
  color: #fff;
  transform: scale(1.02);
}

#aapyamMilestones .accordion-body {
  font-size: 0.82rem;
  color: #333;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(59, 93, 79, 0.1);
  padding: 10px;
  margin-top: 5px;
  line-height: 1.4;
}

.year-badge {
  background: linear-gradient(135deg, #f4c542, #e5b635);
  color: #3b5d4f;
  border-radius: 20px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

#aapyamMilestones .accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 0.5rem;
}

#aapyamMilestones .accordion-button:focus {
  box-shadow: none;
}

/* Subtle hover lift */
#aapyamMilestones .accordion-item:hover .accordion-button {
  background: rgba(244, 197, 66, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .milestone-accordion {
    margin-bottom: 20px;
  }
  #aapyamMilestones .accordion-button {
    font-size: 0.85rem;
  }
  .year-badge {
    font-size: 0.7rem;
  }
}

#aapyamMilestones .accordion-button::after {
  content: '\f4fe'; /* bi-chevron-right */
  font-family: 'bootstrap-icons';
  width: auto;
  height: auto;
  font-size: 0.8rem;
  margin-left: auto;
  color: #7bc47f;
  background: none;
  transition: transform 0.3s ease;
}

#aapyamMilestones .accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
  color: #f4c542;
}


.counter-section .counter {
  transition: transform 0.3s ease, color 0.3s ease;
}
.counter-section .counter:hover {
  transform: scale(1.15);
  color: #ffd700;
}

 /* Hero section – same as Collaboration */
    .hero-section {
      position: relative;
      background-image: url('../assets/img/10.jpg');
      background-size: cover;
      background-position: center;
      padding: 30px;
    }

    .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .hero-inner {
      background-color: rgba(59, 93, 79, 0.85);
      border-radius: 10px;
      padding: 20px;
    }

    .hero-title {
      color: white;
      font-weight: 700;
    }

    .hero-text {
      color: white;
      margin-top: 10px;
    }

    /* Activity Cards */
    .activity-card {
      background: rgba(255, 255, 255, 0.95);
      border: none;
      border-radius: 16px;
      transition: all 0.3s ease-in-out;
      padding: 25px;
      height: 100%;
    }

    .activity-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      background: linear-gradient(135deg, #f7fff8 0%, #f0fdf4 100%);
    }

    .activity-icon {
      font-size: 2rem;
      color: #3b5d4f;
      margin-bottom: 10px;
    }

    .activity-title {
      font-weight: 600;
      color: #3b5d4f;
    }

    .activity-text {
      font-size: 0.95rem;
      color: #444;
      text-align: justify;
    }

    /* ✅ Aapyam Gallery Enhancements */

/* Responsive Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* Image Cards */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Images */
.lazy-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 1s ease-in;
}

.lazy-image.visible {
  opacity: 1;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: #fff;
  font-size: 1.8rem;
}

/* --- Lightbox Navigation Enhancements --- */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  transition: opacity 0.5s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 25px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #f4c542;
}

/* Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s;
  user-select: none;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.2);
}

.lightbox-arrow.prev {
  left: 30px;
}

.lightbox-arrow.next {
  right: 30px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


