/* assets/css/cards.css */

/* ===== 3개 원형 테마 카드 ===== */
.theme-section {
  background: #ffffff;
  padding: 100px 0;
}

/* 모바일에서 슬라이드 바로 아래 간격 */
@media (max-width: 900px) {
  .theme-section {
    padding-top: 40px; /* 1cm 정도 간격 */
  }
}

.theme-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  color: #424242;
  margin-bottom: 60px;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.theme-card {
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
  background: transparent;
}

.theme-card:hover {
  transform: translateY(-10px);
  background: transparent;
}

.card-image-circle {
  width: 300px;
  height: 300px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 첫 번째 카드만 배경 없음 */
.theme-card:first-child .card-image-circle {
  background: none !important;
  border: none !important;
}

.card-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  border: none;
}

.theme-card:hover .card-image-circle img {
  transform: scale(1.1);
}

.theme-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: #424242;
  margin: 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* 호버 시 제목 빨간색 */
.theme-card:hover .card-title {
  color: #dc2626;
}

/* ===== 4개 사각형 사업분야 카드 ===== */
.business-section {
  background: #fafafa;
  padding: 100px 0;
}

.business-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.business-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.business-card {
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.business-card:hover {
  transform: translateY(-10px);
}

.business-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: none;
  box-shadow: none;
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: none;
}

.business-card:hover .business-image img {
  transform: scale(1.05);
}

.business-title {
  font-size: 22px;
  font-weight: 700;
  color: #424242;
  margin: 0 0 8px 0;
}

.business-desc {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* 반응형: 태블릿 */
@media (max-width: 1024px) {
  .theme-cards {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .card-image-circle {
    width: 220px;
    height: 220px;
  }
  
  .business-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
  .theme-section,
  .business-section {
    padding: 60px 0;
  }
  
  .theme-wrapper,
  .business-wrapper {
    padding: 0 20px;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .card-image-circle {
    width: 180px;
    height: 180px;
  }
  
  .theme-card .card-title {
    font-size: 18px;
  }
  
  .business-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .business-title {
    font-size: 20px;
  }
  
  .business-desc {
    font-size: 14px;
  }
}
