/* Activities Page Styling - Updated to match current design trends */

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  width: 100%;
  margin: 0 auto;
  gap: 30px;
  max-width: 100%;
}

/* Enhanced Card styling with modern design */
.card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(0, 102, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066ff 0%, #1c214c 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Enhanced Title styling */
.title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #1c214c;
  position: relative;
}

/* Enhanced Period badge styling */
.period {
  background: #0066ff;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 20px;
  width: auto;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
  transition: all 0.3s ease;
}

/* Enhanced hover state */
.card-hovered {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.1);
}

.card-hovered .period {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
}

.card-hovered::after {
  transform: scaleX(1);
}

/* Enhanced Details styling */
.details {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #080808;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  text-align: justify;
}

/* Show details on hover */
.card-hovered .details {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

/* Project number indicator */
/*
.card::after {
    content: attr(data-project);
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066ff 0%, #1c214c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
}
*/

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .project-container {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .card {
    padding: 20px;
  }

  .title {
    font-size: 1.1rem;
  }

  .period {
    min-width: 180px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .project-container {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .title {
    font-size: 1rem;
  }

  .period {
    min-width: 160px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .details {
    font-size: 0.9rem;
  }
}

/* Animation for cards on page load */
.card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}
.card:nth-child(5) {
  animation-delay: 0.5s;
}
.card:nth-child(6) {
  animation-delay: 0.6s;
}
.card:nth-child(7) {
  animation-delay: 0.7s;
}
.card:nth-child(8) {
  animation-delay: 0.8s;
}
.card:nth-child(9) {
  animation-delay: 0.9s;
}
.card:nth-child(10) {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
