/* ================================== About Page CSS ==================================*/
/* --- About Us: Moving Cards --- */
.about-card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Ensures cards wrap on smaller screens */
  margin-bottom: 2.5rem;
}

.moving-card {
  background-color: var(--secondaryWhite-color);
  padding: 2.5rem 2rem;
  width: 250px;
  border-radius: 12px;
  text-align: center;

  /* This is where the animation happens */
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  border: 3px solid var(--secondaryGreen-color);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.moving-card h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.moving-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--secondaryBrown-color);
}

/* The Hover Effect (Moving the card) */
.moving-card:hover {
  transform: translateY(-15px); /* Floats the card up */
  box-shadow: 0 15px 30px rgba(91, 107, 64, 0.15); /* Adds a soft green-tinted shadow */
}

/* Styling the specific card that holds the quote */
.testimonial-card {
  border-top: 4px solid #4caf50; /* A green "growth" line at the top */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #2d5a27;
  margin: 15px 0;
  padding: 0 10px;
  line-height: 1.5;
}

.testimonial-card footer {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
}

.testimonial-card cite {
  font-style: normal; /* Removes default italic */
  font-weight: bold;
}

/* VID Section styling */
.vid-section {
  padding: 4% 20px;
  text-align: center;
  padding-bottom: 0;
}

/* Container to limit width */
.vid-section .container {
  max-width: 800px;
  margin: 0 auto;
}

/* Heading */
.vid-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--secondaryBlue-color);
  animation: fadeIn 1s ease-in-out;
}

/* Simple fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive video wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Make iframe/video fill wrapper */
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* ================================== Responsive Media Queries ================================== */

/* --- TABLETS & SMALL LAPTOPS (Max width: 1024px) --- */
@media (max-width: 1024px) {
  .about-card-container {
    margin: 0 20px;
  }
  .moving-card {
    width: calc(40% - 4rem); /* Allows 2 cards per row on tablets */
    padding: 2.5rem 1.5rem;
  }

  .vid-section h2 {
    font-size: 2.2rem;
  }

  .vid-section {
    padding: 8% 20px;
  }

  .video-wrapper {
    width: 90%;
  }
}

/* --- MOBILE PHONES (Max width: 768px) --- */
@media (max-width: 768px) {
  .about-card-container {
    flex-direction: column; /* Stack the cards vertically */
    align-items: center;
    gap: 1.5rem;
    margin: 0 10px;
  }

  .moving-card {
    width: 85%; /* Make cards stretch across the mobile screen */
    max-width: 350px;
    padding: 2rem 1.5rem;
  }

  .card-icon {
    font-size: 2rem; /* Slightly smaller icons for mobile */
  }

  .moving-card h3 {
    font-size: 1.3rem;
  }

  .vid-section {
    padding: 2rem 15px; /* Reduce the massive 10% padding for smaller screens */
  }

  .vid-section h2 {
    font-size: 1.6rem; /* Scale down the video heading */
    margin-bottom: 15px;
  }
}
