/* ============================================
   ACTIVITIES.CSS - Activities Page Styles
   ============================================ */

@import "/css/variables.css";
@import "/css/reset.css";
@import "/css/navigation.css";
@import "/css/buttons.css";
@import "/css/typography.css";
@import "/css/common.css";
@import "/css/responsive.css";

/* --- Activities Section --- */
.activities-section {
  padding: 120px 0 100px;
  background-color: var(--bg);
  color: var(--text-main);
}

/* --- Title Wrapper --- */
.title-wrapper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

/* --- Grid Layout --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 30px;
}

/* --- Category Card --- */
.category-card {
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  border-radius: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  background: rgba(30, 41, 59, 0.98);
}

.category-card h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  min-height: 6.25rem;
  align-content: center;
}

/* --- Service List --- */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  background: rgba(214, 40, 40, 0.08);
}

.service-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(214, 40, 40, 0.12);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
}

.service-name {
  color: var(--white-90);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: start;
}

.service-item:hover .service-name {
  color: var(--white);
}

/* --- Services Detail Section --- */
.services-detail-section {
  background-color: var(--bg);
  color: var(--text-light);
  padding: 80px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.services-detail-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Service Row (Zigzag Layout) --- */
.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

/* --- Service Content & Image --- */
.service-content {
  flex: 1;
}

.service-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-image:hover img {
  transform: scale(1.03);
}

/* --- Responsive Grid --- */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 28px;
  }
}

@media (max-width: 992px) {
  .service-row {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
  }

  .service-row.reverse {
    flex-direction: column;
  }

  .service-content h2 {
    font-size: 1.7rem;
  }
}
