/* 입시정보 페이지 - 컴팩트 레이아웃 */

/* 대학 카드 그리드 - 3열 레이아웃 */
.university-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* 대학 카드 */
.university-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.university-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 카드 헤더 */
.card-header {
    padding: 16px 18px 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.univ-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 6px;
    border: none;
    flex-shrink: 0;
}

.univ-name {
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-align: center;
}

/* 카드 본문 - 좌우 분할 */
.card-body {
    padding: 14px 18px 16px;
    display: flex;
    gap: 14px;
}

/* 좌측 영역 (소셜 아이콘 + 카카오톡) */
.body-left {
    flex: 0 0 108px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 우측 영역 (링크 버튼들) */
.body-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* 소셜 아이콘 - 2x2 그리드 */
.social-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.social-link {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    display: block;
    border-radius: 12px;
    background: #f8f8f8;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.social-link img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 소셜 아이콘 호버 효과 */
.social-link:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

/* 카카오톡 상담 버튼 */
.kakao-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #fee500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.kakao-btn:hover {
    background: #fada0a;
    transform: translateY(-2px);
}

.kakao-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #3c1e1e;
    color: #fee500;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kakao-label {
    font-size: 12px;
    font-weight: 700;
    color: #3c1e1e;
    letter-spacing: -0.3px;
}

/* 링크 버튼 */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #f8f8f8;
    border: none;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: #eeeeee;
    transform: translateX(3px);
}

.btn-text {
    font-size: 12px;
    font-weight: 600;
    color: #2c2c2c;
}

.btn-arrow {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c2c2c;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.link-btn:hover .btn-arrow {
    background: #1a1a1a;
    transform: translateX(2px);
}

/* 반응형 디자인 */

/* 큰 데스크톱 */
@media (min-width: 1400px) {
    .university-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 작은 데스크톱/큰 태블릿 */
@media (max-width: 1200px) {
    .university-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* 태블릿 */
@media (max-width: 900px) {
    .university-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-header {
        padding: 12px 16px 10px;
    }

    .univ-logo {
        width: 52px;
        height: 52px;
    }

    .univ-name {
        font-size: 16px;
    }

    .card-body {
        padding: 13px 16px 14px;
        gap: 12px;
    }

    .body-left {
        flex: 0 0 105px;
    }

    .body-right {
        gap: 7px;
    }

    .social-icons {
        gap: 7px;
    }

    .kakao-btn {
        padding: 9px 11px;
    }

    .kakao-badge {
        font-size: 7px;
        padding: 3px 6px;
    }

    .kakao-label {
        font-size: 11px;
    }

    .link-btn {
        padding: 8px 11px;
    }

    .btn-text {
        font-size: 11px;
    }

    .btn-arrow {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }
}

/* 모바일 - 세로 레이아웃으로 변경 */
@media (max-width: 600px) {
    .university-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card-header {
        padding: 12px 16px 10px;
    }

    .univ-logo {
        width: 48px;
        height: 48px;
    }

    .univ-name {
        font-size: 16px;
    }

    .card-body {
        padding: 13px 16px 14px;
        gap: 11px;
    }

    .body-left {
        flex: 0 0 95px;
        gap: 8px;
    }

    .body-right {
        flex: 1;
        gap: 7px;
    }

    .social-icons {
        gap: 7px;
    }

    .kakao-btn {
        padding: 8px 10px;
    }

    .kakao-badge {
        font-size: 7px;
        padding: 3px 6px;
        top: -5px;
        right: -5px;
    }

    .kakao-label {
        font-size: 10px;
    }

    .link-btn {
        padding: 7px 10px;
    }

    .btn-text {
        font-size: 11px;
    }

    .btn-arrow {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.university-card {
    animation: fadeInUp 0.6s ease-out;
}

.university-card:nth-child(1) { animation-delay: 0.1s; }
.university-card:nth-child(2) { animation-delay: 0.15s; }
.university-card:nth-child(3) { animation-delay: 0.2s; }
.university-card:nth-child(4) { animation-delay: 0.25s; }
.university-card:nth-child(5) { animation-delay: 0.3s; }
.university-card:nth-child(6) { animation-delay: 0.35s; }
.university-card:nth-child(7) { animation-delay: 0.4s; }
.university-card:nth-child(8) { animation-delay: 0.45s; }

/* 다운로드 카드 */
.download-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(252, 211, 77, 0.3);
}

.download-content {
    padding: 18px 14px;
    text-align: center;
}

.download-box {
    position: relative;
}

.download-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.download-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    margin: 0;
    letter-spacing: -0.3px;
}

/* 다운로드 아이콘 효과 추가 */
.download-box::before {
    content: "📥";
    display: block;
    font-size: 26px;
    margin-bottom: 6px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* 다운로드 카드 반응형 */
@media (max-width: 900px) {
    .download-content {
        padding: 16px 12px;
    }

    .download-title {
        font-size: 14px;
    }

    .download-subtitle {
        font-size: 12px;
    }

    .download-box::before {
        font-size: 22px;
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .download-content {
        padding: 16px 12px;
    }

    .download-title {
        font-size: 14px;
    }

    .download-subtitle {
        font-size: 12px;
    }

    .download-box::before {
        font-size: 22px;
        margin-bottom: 5px;
    }
}