.card-container {
  position: relative;
  top: -50px;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0 5%;
  flex-wrap: wrap;
}

.card {
  background: white;
  color: #333;
  border-radius: 16px;
  padding: 40px;
  width: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1565c0;
  position: relative;
}

.card p {
  margin: 0;
  font-size: 16px;
  color: #666;
  line-height: 1.7;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: #f0f7ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.card-icon i {
  font-size: 28px;
  color: #1565c0;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  max-width: 320px;
  height: 300px;
  perspective: 1000px;
  margin: 1rem;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  border-radius: 20px;
  backface-visibility: hidden;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-front {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
}

.flip-card-back {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: white;
  transform: rotateY(180deg);
}

.flip-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.flip-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.flip-card p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.flip-card-back p {
  font-size: 15px;
  line-height: 1.7;
}

/* 반응형 디자인 */
@media screen and (max-width: 1024px) {
  .card-container {
    gap: 30px;
  }

  .card {
    width: 300px;
    padding: 35px;
  }

  .flip-card {
    max-width: 300px;
    height: 280px;
  }
}

@media screen and (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .card {
    width: 100%;
    max-width: 340px;
    padding: 30px;
  }

  .flip-card {
    max-width: 100%;
    height: 250px;
    margin: 0.5rem 0;
  }
}

/* 뉴스 카드 스타일 */
.news-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.news-card h3 a:hover {
  color: #0056d6;
}

/* 뉴스 박스 스타일 */
.news-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-box-header h2 {
    margin: 0;
    color: #333;
}

.more-news-btn {
    background: transparent;
    border: none;
    color: #0056d6;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.more-news-btn:hover {
    background: rgba(0, 86, 214, 0.1);
}
