.programs {
  margin-top: 4rem;
  position: relative;
}

.main-section::before {
  content: "";
  background: url("../Assets/bg.jpg") no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: -99;
  overflow: hidden;
  /* opacity: 0.25; */
}

.bg-animals {
  position: fixed;
  top: 0.5rem;
  height: 38rem;
  width: 35%;
  z-index: -1;
}

.program-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: auto;
  position: relative;
  /* overflow: hidden; */
}

.program-content .back-img {
  position: absolute;
  top: 8rem;
  width: 6rem;
  right: -12rem;
  transform: rotate(345deg);
}

.program-content .back-img-left {
  position: absolute;
  top: 8rem;
  width: 10rem;
  left: -11rem;
  transform: rotate(350deg);
}

.program-content .back-img2 {
  position: absolute;
  top: 55%;
  width: 5.2rem;
  left: -11rem;
  transform: rotate(350deg);
}

.program-section {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 14px;
}

.program-section ul li {
  font-family: "Montserrat";
}

/* contact */
.contact-page {
  padding: 80px 0;
  /* background: var(--color-main); */
  margin: 3rem;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
}

.contact-form,
.contact-info {
  flex-basis: calc(50% - 20px);
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-content-h2 {
  color: #047f87e3 !important;
}

.contact-form h2,
.contact-info h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: "Sipping on Sunshine", cursive;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-family: Montserrat;
  /* font-weight: bold; */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: "Montserrat";
}

.form-group textarea {
  /* font-family: Sipping on Sunshine; */
  height: 150px;
}

.submit-btn {
  background: #feb400;
  color: #333;
  border: 0.5px solid #feb400;
  padding: 12px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #ffff;
}

.contact-info ul {
  list-style-type: none;
  padding: 0;
}

.contact-info ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.contact-info ul li i {
  margin-right: 10px;
  color: #047f87e3;
}

.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 450px) {
  .contact-content h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 868px) {
  .contact-form,
  .contact-info {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
}

/* gallery */
.gallery-page {
  padding: 80px 0;
  margin-top: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.filter-btn {
  background: #ffffff;
  color: #333;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* font-weight: bold; */
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
  background: #feb400;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 910px) {
  .program-content {
    gap: 2.5rem;
    flex-direction: column;
  }

  .blog-content {
    gap: 2rem;
  }

  .blog-content img {
    width: 50% !important;
    height: 210px !important;
  }

  .blog-content .blog-section {
    width: 70% !important;
  }

  .back-img {
    right: -3rem !important;
  }

  .back-img-left {
    left: -5rem !important;
    top: 7rem !important;
  }
}

@media (max-width: 560px) {
  .gallery-item {
    width: 85% !important;
    margin: auto !important;
  }
}

/* blogs */
.blogs {
  margin-top: 3rem;
}

.blog-content img {
  width: 35%;
  height: 250px;
  border-radius: 10px;
}

.blog-content .blog-section {
  width: 60%;
}

.blog-content {
  justify-content: space-between;
}

/* learning page */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.learning-item img {
  width: 100%;
  height: 19rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Optional: Add this if you want to make the images even larger on larger screens */
@media (min-width: 768px) {
  .learning-item img {
    height: 22rem !important;
  }
}
/* 
@media (min-width: 350px) {
  .learning-grid {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
} */

@media (min-width: 1200px) {
  .learning-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .learning-item img {
    height: 21rem;
  }
}

/* learning pages --pages */
.learning-head {
  text-align: left;
}

.gallery {
  overflow: hidden;
}

.learning-marquee {
  width: 100%;
  overflow: hidden;
}

.learning-track {
  display: flex;
  width: 200%;
  /* Double the width to accommodate the duplicated items */
  animation: marquee 40s linear infinite;
}

.learning-track:hover {
  animation-play-state: paused;
}

.learning-item {
  flex: 0 0 12.5%;
  /* 100% / (4 items * 2 sets) */
  min-width: 200px;
  padding: 0 10px;
  box-sizing: border-box;
}

.learning-item img {
  width: 100%;
  height: auto;
}

.learning-content img {
  width: 12rem !important;
  height: 12rem;
  border-radius: 10px;
}

.learning-main-img {
  margin-bottom: 3rem;
}

.learning-content {
  gap: 2rem;
}

.learning-container h1 {
  text-align: left;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */

@media (max-width: 992px) {
  .learning-item {
    flex: 0 0 16.66%;
    /* 100% / (3 items * 2 sets) */
  }

  .learning-track {
    animation-duration: 30s;
  }
}

@media (max-width: 768px) {
  .learning-container img {
    width: 100% !important;
  }

  .learning-item {
    flex: 0 0 25%;
  }

  .learning-container h1 {
    font-size: 2rem !important;
  }

  .learning-section h3 {
    text-align: left;
  }

  .learning-track {
    animation-duration: 20s;
  }
}

@media (max-width: 480px) {
  .learning-item {
    flex: 0 0 50%;
    /* 100% / (1 item * 2 sets) */
  }

  .learning-track {
    animation-duration: 15s;
  }
}

/* blogs */
.inner-blog-container {
  width: 60%;
  margin: auto;
  text-align: center;
}

.inner-blog-container ul {
  display: inline-block;
  text-align: left;
}

.inner-blog-container h1 {
  margin-top: 3rem;
}

.blogs-section h3 {
  text-align: left;
  margin-bottom: 0px;
}

/* vlogs pages-pages */
.intro {
  font-size: 1.1em;
  text-align: center;
  width: 80%;
  margin: 30px auto 20px auto;
  color: #121213;
  font-family: "Montserrat", cursive;
  font-weight: 300;
}

.benefit {
  margin-bottom: 20px;
  padding: 15px;
  /* background-color: #ecf0f1; */
  border-radius: 5px;
  transition: transform 0.3s ease;
  width: 60rem;
  margin: auto;
}

.benefit strong {
  color: #1a8a92;
  display: block;
  margin-bottom: 5px;
  font-family: "Namecat";
  font-weight: 100;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .intro {
    font-size: 1em;
  }

  .inner-blog-container {
    width: 60%;
  }
  .benefits-list h2 {
    font-size: 1.2em;
  }
}
