/* ================ GLOBALS ================ */
/* Custom styles for the greenish color if Tailwind's defaults aren't exact */
:root {
  /* brand colors */
  --muvule-green: #4caf50; /* Primary green */
  --muvule-dark-green: #286d2c; /* Darker green for hovers/accents */
  --muvule-light-green: #e8f5e9; /* Light green for backgrounds/subtle elements */
  --bg-orange-500: #f77b7b;
  --bg-muvule-light-green: #ebf8f0;
  --bg-muvule-dark: #2b373d;
  --bg-muvule-mid-dark: #455a64;
  --bg-muvule-pale-green: #e9f0db;
  --bg-muvule-deep-dark-green: #102e16;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
}

.text-muvule-green {
  color: var(--muvule-green);
}

.text-muvule-deep-dark-green {
  color: var(--bg-muvule-deep-dark-green);
}

.bg-muvule-deep-dark-green {
  background-color: var(--bg-muvule-deep-dark-green);
}

.bg-muvule-pale-green {
  background-color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

.bg-muvule-pale-green:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bg-muvule-pale-green h3 {
  color: #4b5563;
}

.bg-muvule-pale-green p {
  color: #6b7280;
}

.text-muvule-dark-green {
  color: var(--muvule-dark-green);
}

.border-muvule-green {
  border-color: var(--muvule-green);
}

.bg-muvule-light-green {
  background-color: var(--bg-muvule-light-green);
}

.bg-muvule-mid-dark {
  background-color: var(--bg-muvule-mid-dark);
}

.bg-muvule-dark {
  background-color: var(--bg-muvule-dark);
}

.bg-muvule-green {
  background-color: var(--muvule-green);
}
.bg-orange-500 {
  background-color: var(--bg-orange-500);
}
.hover\:text-muvule-dark-green:hover {
  color: var(--muvule-dark-green);
}
.hover\:border-muvule-dark-green:hover {
  border-color: var(--muvule-dark-green);
}
.hover\:bg-muvule-dark-green:hover {
  background-color: var(--muvule-dark-green);
}

.gradient-bg {
  background: linear-gradient(135deg, #f0f9f4 0%, #e6f4ee 50%, #d8efe6 100%);
  padding: 16px 16px;
}

.gradient-bg .container {
  max-width: 100%;
  margin: 0 auto;
}

.partners-container .flex {
  display: flex;
}

.partners-container .flex-col {
  flex-direction: column;
}

.partners-container .items-center {
  align-items: center;
}

.partners-container .justify-between {
  justify-content: space-between;
}

.partners-container .justify-center {
  justify-content: center;
}

.partners-container .text-center {
  text-align: center;
}

.partners-container.gap-4 {
  gap: 16px;
}

.partners-container .gap-8 {
  gap: 32px;
}

.partners-container .gap-2 {
  gap: 8px;
}

.partners-container .mb-6 {
  margin-bottom: 24px;
}

.partners-container .mb-8 {
  margin-bottom: 32px;
}

.partners-container .mb-12 {
  margin-bottom: 48px;
}

.funding-box {
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.funding-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.funding-amount {
  color: #059669;
}

.main-card {
  background-color: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .main-card {
    padding: 48px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ecfdf5;
  color: #065f46;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-icon {
  color: #10b981;
}

.heading {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.accent-text {
  color: #059669;
}

@media (min-width: 768px) {
  .heading {
    font-size: 1.875rem;
  }
}
.description {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 32px;
  line-height: 1.75;
}

.highlight {
  font-weight: 700;
  color: #059669;
}
.button-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 640px) {
  .button-group {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  gap: 1em;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
  /* width: 20em; */
}

/* .btn-primary {
  background-color: #059669;
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
} */

.btn-primary:hover {
  background-color: #047857;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-outline {
  border: 1px solid #059669;
  color: #059669;
}

.btn-outline:hover {
  background-color: #ecfdf5;
}

.btn-icon {
  font-size: 0.875rem;
}

/* Specific styles for the team member images to match the image's rounded corners and green background */
.team-member-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio for square images */
  overflow: hidden;
  border-radius: 0.5rem; /* rounded-lg */
  background-color: var(--muvule-light-green); /* Light green background */
}

.team-member-image-container-nonfounders {
  /* Adjusted for circular shape and smaller size */
  width: 200px; /* Slightly smaller fixed width */
  height: 200px; /* Fixed height to match width for perfect circle */
  overflow: hidden;
  border-radius: 50%; /* Make it circular */
  background-color: var(--muvule-light-green); /* Light green background */
  position: relative; /* Needed for absolute positioning of img if used for object-fit */
}

.team-member-image-container img,
.team-member-image-container-nonfounders img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem; /* rounded-lg */
}

li {
  list-style: none;
}

/* Mobile menu transition for smooth open/close */
.mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 500px;
  overflow: hidden; /* Crucial for max-height transition */
  opacity: 0;
  transform: translateY(-20px);
}
.mobile-menu.open {
  height: 500px; /* Adjust based on content height, ensure it's large enough */
  opacity: 1;
  transform: translateY(0);
}

/* Specific styles for the main headings for better line breaks on smaller screens */
.hero-heading-original {
  /* Class for the heading in landingPage1.png */
  line-height: 1.15;
}
.hero-heading-new {
  /* Class for the heading in page22.jpg */
  line-height: 1.15;
}

.text-muvule-green {
  color: var(--muvule-green);
}
.border-muvule-green {
  border-color: var(--muvule-green);
}
.bg-muvule-green {
  background-color: var(--muvule-green);
}
.hover\:text-muvule-dark-green:hover {
  color: var(--muvule-dark-green);
}
.hover\:border-muvule-dark-green:hover {
  border-color: var(--muvule-dark-green);
}
.hover\:bg-muvule-dark-green:hover {
  background-color: var(--muvule-dark-green);
}

li a.active {
  border-bottom: 3px solid var(--muvule-green);
  padding-bottom: 0.3em;
  color: var(--muvule-green);
}

/* Styles for the About Us page's sticky navigation and scroll path */
/* The top value for sticky-sidebar should be adjusted if a fixed navbar is present.
     For this standalone page, 2rem (32px) provides a small offset from the top. */
.sticky-sidebar {
  position: sticky;
  top: 10rem; /* Keeps the sidebar fixed relative to the viewport */
  align-self: flex-start; /* Aligns it to the start of the flex container */
  height: fit-content; /* Ensures it only takes up necessary height */
}

.scroll-path-container {
  position: relative;
  padding-left: 20px; /* Space for the path line and dots */
}

.scroll-path-line {
  position: absolute;
  left: 10px; /* Center of the vertical line */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e0e0e0; /* Gray for unviewed path */
  z-index: 0;
}

.scroll-path-fill {
  position: absolute;
  left: 10px; /* Same as line */
  top: 0;
  width: 2px;
  background-color: var(--muvule-green); /* Green for viewed path */
  z-index: 1;
  transition: height 0.3s ease-out; /* Smooth transition for path fill */
}

.path-item {
  /* Each list item (<li>) that holds a dot and label */
  position: relative; /* Establishes positioning context for the dot */
  margin-bottom: 2rem; /* Space between path items */
  display: flex; /* To align dot and label horizontally */
  align-items: center; /* Vertically center dot and label */
  min-height: 24px; /* Ensure enough height for dot/label alignment */
  cursor: pointer; /* Indicate clickable */
}

.path-dot {
  position: absolute;
  left: 4px; /* (10px line center - 6px dot radius) = 4px, to center dot on the line */
  width: 12px;
  height: 12px;
  background-color: #e0e0e0; /* Gray for unviewed dot */
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease-out, transform 0.3s ease-out; /* Smooth transitions */
}

.path-dot.currently_active {
  background-color: var(--muvule-green); /* Green for active dot */
  transform: scale(1.2); /* Slightly larger for active dot */
}

.path-label {
  margin-left: 20px; /* Push label away from the line/dot area */
  transition: color 0.3s ease-out, font-weight 0.3s ease-out;
  line-height: 1.2; /* Ensure consistent line height for label centering */
}

.path-label.currently_active {
  color: var(--muvule-green);
  font-weight: 600;
}

.impact-section-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 800px; /* Ensure enough space for the layout */
  padding: 2rem;
  overflow: hidden; /* Hide overflowing arrows/elements */
}

#viewMoreProducts {
  background: var(--muvule-green);
  /* border: 1px solid var(--bg-muvule-light-green); */
  margin: 2em auto;
  width: 18em;
  padding: 0.8em;
  border-radius: 0.3em;
  color: #fff;
}

#viewMoreProducts:hover {
  background: var(--muvule-dark-green);
}

.central-circle {
  position: relative;
  width: 250px; /* Size of the circle */
  height: 250px;
  border-radius: 50%;
  background-image: url("https://placehold.co/250x250/2E7D32/FFFFFF?text=Average+Impact"); /* Placeholder image */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-weight: bold;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  z-index: 10; /* Ensure it's above arrows */
}

.central-circle .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(105, 105, 105, 0.356); /* Dark overlay */
  z-index: 1;
}

.central-circle .content {
  position: relative;
  z-index: 2; /* Ensure text is above overlay */
  padding: 1rem;
}

.central-circle h3 {
  font-size: 1.5rem; /* text-2xl */
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.central-circle p {
  font-size: 1rem; /* text-lg */
  line-height: 1.2;
}

/* Content Blocks Positioning */
.content-blocks-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 1200px; /* Max width of the grid */
  max-height: 800px; /* Max height of the grid */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  grid-template-rows: 1fr 1fr; /* Two rows */
  gap: 2rem; /* Gap between blocks */
  pointer-events: none; /* Allow clicks to pass through to central circle if needed */
}

/* Individual block positioning relative to the grid */
.block-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
  text-align: center;
  pointer-events: auto; /* Re-enable pointer events for the cards */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px; /* Ensure consistent height */
  width: 25em;
}

.block-card .icon-container {
  font-size: 2.5rem; /* text-4xl */
  color: var(--muvule-green);
  margin-bottom: 0.75rem;
}

.block-card h3 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  color: var(--muvule-text-gray);
  margin-bottom: 0.5rem;
}

.block-card p {
  font-size: 0.875rem; /* text-sm */
  color: var(--muvule-text-gray);
  line-height: 1.5;
}

/* Arrows */
.arrow {
  position: absolute;
  width: 80px; /* Length of the arrow line */
  height: 2px; /* Thickness of the arrow line */
  background-color: var(--muvule-green);
  z-index: 5;
  opacity: 0; /* Hidden by default */
  animation: drawArrow 2s ease-out forwards infinite; /* Animation */
  top: 50%; /* Position at the center of the parent container */
  left: 50%; /* Position at the center of the parent container */
  transform-origin: 0% 50%; /* Pivot point is the left end of the arrow */
}

.arrow::after {
  content: "";
  position: absolute;
  right: -6px; /* Position arrowhead at the end of the line */
  top: -4px; /* Center arrowhead vertically */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px; /* Creates a triangle pointing right */
  border-color: transparent transparent transparent var(--muvule-green);
}

/* Positioning and rotation for each arrow */
/* Rotate first, then translate along the new X-axis to move it outwards from the circle's edge */
/* Circle radius is 125px. Arrow width is 80px. */
.arrow-top-left {
  transform: rotate(-135deg) translateX(125px); /* Rotate, then push out by circle radius */
  animation-delay: 0s;
}
.arrow-top-right {
  transform: rotate(-45deg) translateX(125px);
  animation-delay: 0.5s;
}
.arrow-bottom-left {
  transform: rotate(135deg) translateX(125px);
  animation-delay: 1s;
}
.arrow-bottom-right {
  transform: rotate(45deg) translateX(125px);
  animation-delay: 1.5s;
}

/* Animation for arrows */
@keyframes drawArrow {
  0% {
    opacity: 0;
    transform: rotate(var(--arrow-rotation)) translateX(125px) scaleX(0);
  }
  20% {
    opacity: 1;
    transform: rotate(var(--arrow-rotation)) translateX(125px) scaleX(0.5);
  }
  80% {
    opacity: 1;
    transform: rotate(var(--arrow-rotation)) translateX(125px) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--arrow-rotation)) translateX(125px) scaleX(1);
  }
}

@keyframes subtle-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01); /* A very slight increase in size */
  }
}

/* Custom animation for a subtle slide-up and fade-in effect */
@keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px); /* Start 20px below its final position */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* End at its final position */
  }
}

/* Keyframes for a simple fade-in animation */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Keyframes for a simple fade-in animation */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Keyframes for a slide-up and fade-in animation */
@keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px); /* Start 20px below its final position */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* End at its final position */
  }
}

/* Keyframes for a slide-down and fade-in animation (for heading) */
@keyframes slide-down-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-20px); /* Start 20px above its final position */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* End at its final position */
  }
}

/* Apply animations */
.animate-fade-in {
  animation: fade-in 1s ease-out forwards; /* 1 second duration, ease-out timing, stays at end state */
}

.animate-slide-up-fade-in-delayed {
  animation: slide-up-fade-in 1s ease-out forwards; /* 1 second duration, ease-out timing, stays at end state */
  animation-delay: 0.5s; /* Delay the animation slightly after load */
}
.animate-slide-up-fade-in-more-delayed {
  animation: slide-up-fade-in 1s ease-out forwards;
  animation-delay: 0.8s;
}

/* Animation for the main vision heading */
.animate-slide-down-fade-in {
  animation: slide-down-fade-in 1s ease-out forwards;
  animation-delay: 0.2s; /* Appears shortly after the main container */
}

/* Animation for the image and text section */
.animate-section-slide-up {
  animation: slide-up-fade-in 1s ease-out forwards;
  animation-delay: 1.8s; /* Appears after all main text */
}

/* Set custom properties for rotation for each arrow */
.arrow-top-left {
  --arrow-rotation: -135deg;
}
.arrow-top-right {
  --arrow-rotation: -45deg;
}
.arrow-bottom-left {
  --arrow-rotation: 135deg;
}
.arrow-bottom-right {
  --arrow-rotation: 45deg;
}

.bg-grid-pattern {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px; /* Adjust grid size */
}

/* Styles for form inputs */
/* .form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-muvule-green focus:border-transparent transition-all duration-200;
} */
.form-input {
  width: 100%;
  padding: 0.4rem 1rem; /* px-4 py-3 */
  border: 1px solid #d1d5db; /* border border-gray-300 */
  border-radius: 0.3rem; /* rounded-lg */
  transition: all 0.2s ease; /* transition-all duration-200 */
}

.form-input:focus {
  outline: none; /* focus:outline-none */
  box-shadow: 0 0 0 2px var(--muvule-green); /* focus:ring-2 focus:ring-muvule-green */
  border-color: transparent; /* focus:border-transparent */
}

/* Styles for contact method links/buttons */
/* .contact-method-link {
  @apply flex items-center space-x-3 text-gray-700 hover:text-muvule-green transition-colors duration-200 cursor-pointer;
}
.contact-method-link .icon {
  @apply text-xl text-gray-500;
}
.contact-method-link:hover .icon {
  @apply text-muvule-green;
} */
.contact-method-link {
  display: flex; /* flex */
  align-items: center; /* items-center */
  gap: 0.75rem; /* space-x-3 (assuming 1 space = 0.25rem) */
  color: #374151; /* text-gray-700 */
  cursor: pointer; /* cursor-pointer */
  transition: color 0.2s ease; /* transition-colors duration-200 */
}

.contact-method-link:hover {
  color: var(--muvule-green); /* hover:text-muvule-green */
}

.contact-method-link .icon {
  font-size: 1.25rem; /* text-xl */
  color: #6b7280; /* text-gray-500 */
}

.contact-method-link:hover .icon {
  color: var(--muvule-green); /* hover:text-muvule-green */
}

/* =================================== storeies css=============================== */
.play-button {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* .play-button:hover {
  transform: scale(1.1);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.03);
} */

/* =============================================== */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  cursor: pointer;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover img {
  opacity: 0.7;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* .play-button::after {
  content: "▶";
  color: #e74c3c;
  font-size: 24px;
  margin-left: 3px;
} */

/* .video-thumbnail:hover .play-button {
  background: rgba(231, 76, 60, 0.9);
} */

/* .video-thumbnail:hover .play-button::after {
  color: white;
} */

/* ================================================ */

.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1100;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  width: 100%;
  height: 0;
  background: #fff;
  /* border: 1px solid #fff; */
  /* display: flex;
  flex-direction: column; */
}

.modal-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Animation for modal content */
@keyframes modalFadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  animation: modalFadeIn 0.3s ease-out forwards;
}

/* Custom scrollbar for browsers that support it */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.icon-size {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
}

/* Custom animation for image slide-in from bottom */
@keyframes slide-in-bottom {
  0% {
    opacity: 0;
    transform: translateY(20px); /* Start 20px below its final position */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* End at its final position */
  }
}

.animate-slide-in-bottom {
  animation: slide-in-bottom 0.5s ease-out forwards;
}

/* Custom animation for slide-in from left for text */
@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-left {
  animation: slide-in-left 0.6s ease-out forwards;
}

/* Custom animation for slide-in from right for thumbnails */
@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.6s ease-out forwards;
}

/* ========================= gallery css ============================= */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Fade-in animation for the main image */
.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal specific styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 1rem;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.modal-content img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
}
.modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

#thumbnail-gallery {
  height: 65vh;
  border: 1px solid #d1d5db;
  padding-left: 1em;
  margin-left: -5em;
  border-radius: 0.3em;
}

#imageGalleryContainer {
  /* padding: 1em; */
  /* display: flex; */
  /* justify-content: center;
  align-items: center; */
  /* margin-bottom: 1.5rem; */
  /* margin-top: 4rem; */
  width: 100%;
  max-width: 100%;
  max-height: 70vh;
}

#main-image {
  border-radius: 0.5rem;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06); */
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .impact-section-container {
    min-height: auto;
    flex-direction: column;
    padding: 1rem;
  }

  .central-circle {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
  }

  .central-circle h3 {
    font-size: 1.25rem;
  }

  .central-circle p {
    font-size: 0.9rem;
  }

  .content-blocks-grid {
    position: static; /* Remove absolute positioning */
    display: flex;
    flex-direction: column; /* Stack blocks vertically */
    gap: 1.5rem;
    width: 100%;
    max-width: 400px; /* Constrain width on small screens */
    margin-top: 2rem;
  }

  .arrow {
    display: none; /* Hide arrows on small screens for simplicity */
  }

  .hero-heading-original,
  .hero-heading-new {
    line-height: 1.25;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet adjustments */
  .central-circle {
    width: 200px;
    height: 200px;
  }

  .central-circle h3 {
    font-size: 1.3rem;
  }

  .central-circle p {
    font-size: 0.95rem;
  }

  .arrow {
    width: 60px; /* Shorter arrows for tablets */
  }
  .arrow::after {
    border-width: 4px 0 4px 7px; /* Smaller arrowhead */
  }

  #widerScreens {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #widerScreens {
    gap: 1.5rem;
  }
}
