/* ==============================================
   Test Cards - 그린 통일 테마 (프리미엄 스타일)
   모든 카드를 그린 + 골드 색상으로 통일
   ============================================== */

/* 검사 카드 그리드 - 3개씩 줄 맞춤 */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 카드 기본 스타일 */
.test-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(44, 95, 79, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(44, 95, 79, 0.15);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(44, 95, 79, 0.25);
    border-color: rgba(44, 95, 79, 0.3);
}

/* 상단 색상 바 - 그린 그라데이션 */
.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2c5f4f, #d4af37);
    opacity: 0;
    transition: all 0.3s ease;
}

.test-card:hover::before {
    opacity: 1;
}

/* 모든 아이콘 - 그린 배경 */
.test-card .test-icon {
    background: linear-gradient(135deg, #2c5f4f, #1a4838);
    color: #d4af37;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44, 95, 79, 0.3);
    transition: all 0.3s ease;
}

.test-card:hover .test-icon {
    background: linear-gradient(135deg, #1a4838, #2c5f4f);
    box-shadow: 0 6px 20px rgba(44, 95, 79, 0.4);
}

/* 배지 스타일 */
.badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: white;
}

.badge-premium {
    background: linear-gradient(135deg, #2c5f4f, #3a7d68);
    color: white;
}

/* 버튼 스타일 - 골드 색상 */
.test-card .btn,
.test-card button,
.test-card a {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: white;
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    margin-top: auto;
    width: 100%;
}

.test-card .btn:hover,
.test-card button:hover,
.test-card a:hover {
    background: linear-gradient(135deg, #e6c255, #f4d03f);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 카드 콘텐츠 영역 */
.test-card-body,
.test-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 버튼을 하단에 고정 */
.test-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .test-card .test-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }
}
