.card {
  position: relative;

  width: 700px;
  height: 280px;
  overflow: hidden;

  border-radius: 25px;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

/*Light blue cover above the slide show*/
.card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 900;

  display: block;
  width: 100%;
  height: 100%;

}

.card_part {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;

  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;

  transform: translateX(700px);
  animation: opaqTransition 28s cubic-bezier(0, 0, 0, 0.97) infinite;
}


.card_part.card_part-two {
  z-index: 6;
  animation-delay: 7s;
}

.card_part.card_part-three {
  z-index: 5;
  animation-delay: 14s;
}

.card_part.card_part-four {
  z-index: 4;
  animation-delay: 21s;
}


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

  25% {
    transform: translateX(0);
  }

  28% {
    transform: translateX(-700px);
  }

  100% {
    transform: translateX(-700px);
  }
}

/*Card Category */

.cards2-list {
  z-index: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.card2 {
  margin: 50px auto;
  width: 300px;
  height: 300px;
  border-radius: 40px;
  box-shadow: 5px 5px 30px 7px rgba(0, 0, 0, 0.25), -5px -5px 30px 7px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: 0.4s;
}

.card2 .card2_image {
  width: inherit;
  height: inherit;
  border-radius: 40px;
}

.card2 .card2_image img {
  width: inherit;
  height: inherit;
  border-radius: 40px;
  object-fit: cover;
}

.card2 .card2_title {
  text-align: center;
  border-radius: 0px 0px 40px 40px;
  font-weight: bold;
  font-size: 30px;
  margin-top: 20px;
  height: 40px;
}

.card2:hover {
  transform: scale(0.9, 0.9);
  box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, 0.25),
    -5px -5px 30px 15px rgba(0, 0, 0, 0.22);
}

.title-white {
  color: black;
}

.title-black {
  color: black;
}

@media all and (max-width: 500px) {
  .card2-list {
    /* On small screens, we are no longer using row direction but column */
    flex-direction: column;
  }
}

/* Tree Infographic Styles */
.timeline-section {
  position: relative;
  padding: 50px 0;
  background-color: #f8f9fa;
  /* Light background for contrast */
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Central Trunk */
.timeline::after {
  content: '';
  position: absolute;
  width: 12px;
  /* Thicker trunk */
  background: linear-gradient(to bottom, #4da6e7, #77d1b1);
  /* Gradient trunk */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -6px;
  border-radius: 6px;
  z-index: 1;
}

.timeline-container {
  padding: 20px 50px;
  position: relative;
  background-color: transparent;
  width: 50%;
}

.timeline-container.left {
  left: 0;
}

.timeline-container.right {
  left: 50%;
}

/* The Node on the Trunk */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  /* Centered on the 12px trunk (trunk center is at right: 0 relative to left container? No, let's adjust) */
  background-color: #fff;
  border: 4px solid #4da6e7;
  top: 25px;
  /* Alignment with branch */
  border-radius: 50%;
  z-index: 2;
}

.timeline-container.right::after {
  left: -10px;
}

/* Horizontal Branch */
.timeline-container::before {
  content: '';
  position: absolute;
  width: 50px;
  /* Longer branch */
  height: 6px;
  /* Visible branch thickness */
  right: 10px;
  /* Connects to node */
  background-color: #4da6e7;
  top: 32px;
  /* Vertically centered with node */
  z-index: 1;
}

.timeline-container.right::before {
  left: 10px;
  right: auto;
}

/* Content Box (The Leaf/Card) */
.timeline-content {
  padding: 20px;
  background-color: white;
  position: relative;
  border: 3px solid #4da6e7;
  /* Colored border like reference */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Variations for colors (optional, can be added via nth-child or specific classes later) */
.timeline-container:nth-child(even) .timeline-content {
  border-color: #fbaa60;
  /* Orange accent */
}

.timeline-container:nth-child(even)::before {
  background-color: #fbaa60;
}

.timeline-container:nth-child(even)::after {
  border-color: #fbaa60;
}

.timeline-container:nth-child(3n) .timeline-content {
  border-color: #77d1b1;
  /* Green accent */
}

.timeline-container:nth-child(3n)::before {
  background-color: #77d1b1;
}

.timeline-container:nth-child(3n)::after {
  border-color: #77d1b1;
}


.timeline-year {
  font-size: 1.8rem;
  font-weight: 800;
  color: inherit;
  /* Inherit from box color roughly? or keep standard */
  color: #333;
  display: block;
  margin-bottom: 5px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #444;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
  text-align: justify;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 80px;
    padding-right: 25px;
  }

  .timeline-container::after {
    left: 21px;
    /* (31 - 10) */
  }

  /* Fix right container on mobile */
  .timeline-container.right {
    left: 0;
  }

  /* Branch adjustment for mobile */
  .timeline-container::before {
    left: 41px !important;
    /* Connect to trunk */
    width: 40px;
    right: auto;
  }

  .timeline-container.left::before,
  .timeline-container.right::before {
    /* styling handled above */
  }

}
/* Logo Responsiveness */
#logo-img {
    max-width: 100%;
    height: auto;
    max-height: 70px; /* Desktop height constraint */
}

@media (max-width: 767px) {
    #logo-img {
        max-height: 50px; /* Mobile height constraint to fit 100px header */
    }
}
