/* Responsive About Cards Section Styles */

/* Container for the cards */
.about-cards-section {
  padding: 48px 0 32px 0;
  background: #f9fafc;
}
.about-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual card */
.about-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(44, 62, 80, 0.13), 0 1.5px 6px 0 rgba(44,62,80,0.07);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  /* Animation will be triggered by JS */
}

/* Card visible state */
.about-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

/* Card hover effect */
.about-card:hover {
  box-shadow: 0 12px 36px 0 rgba(44,62,80,0.18), 0 2px 8px 0 rgba(44,62,80,0.09);
  transform: translateY(-6px) scale(1.025);
}

/* Card image */
.about-card-img {
  width: 100%;
  height: 180px;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card content */
.about-card-content {
  padding: 24px 20px 20px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about-card-content h4 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #eb9309;
  letter-spacing: 0.01em;
}
.about-card-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0;
  line-height: 1.6;
}
.about-card-content ul {
  margin: 10px 0 0 18px;
  padding: 0;
  font-size: 0.97em;
  color: #444;
}
.about-card-content ul li {
  margin-bottom: 6px;
  list-style: disc;
}

/* Read more button */
.about-readmore-btn {
  margin-top: 16px;
  background: #eb9309;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}
.about-readmore-btn:hover, .about-readmore-btn:focus {
  background: #c97a08;
  outline: none;
}

/* Modal styles */
.about-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,62,80,0.36);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.about-modal.active {
  display: flex;
  animation: aboutModalFadeIn 0.25s;
}
@keyframes aboutModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.about-modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 94vw;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 8px 32px 0 rgba(44,62,80,0.18);
  position: relative;
  text-align: left;
  animation: aboutFadeUp 0.5s;
}
.about-modal-content img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}
.about-modal-content h4 {
  margin-top: 0;
  color: #eb9309;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.about-modal-content p, .about-modal-content ul {
  color: #333;
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.6;
}
.about-modal-content ul {
  margin: 10px 0 0 18px;
  padding: 0;
}
.about-modal-content ul li {
  margin-bottom: 6px;
  list-style: disc;
}
.about-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 2;
}
.about-modal-close:focus {
  color: #eb9309;
  outline: none;
}

/* Responsive layout */
@media (max-width: 900px) {
  .about-cards-container {
    gap: 24px;
  }
  .about-card {
    max-width: 90vw;
    min-width: 220px;
  }
}
@media (max-width: 600px) {
  .about-cards-container {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .about-card {
    max-width: 98vw;
    min-width: 0;
  }
  .about-card-img {
    height: 140px;
  }
  .about-modal-content img { height: 120px; }
  .about-modal-content { padding: 16px 7vw 16px 7vw; }
}

/* Animation: fade-up effect */
@keyframes aboutFadeUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}
.about-card.visible {
  animation: aboutFadeUp 0.7s cubic-bezier(.4,2,.6,1) both;
}
