:root {
    --primary: #ff7e5f;
    --secondary: #feb47b;
    --bg: #ffffff;
    --text-main: #2d3436;
    --text-sub: #636e72;
    --card-bg: #fdfdfd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background-color: #f5f7fa;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg);
    min-height: 100vh;
    padding: 60px 24px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--primary);
}

header p {
    font-size: 1rem;
    color: var(--text-sub);
}

/* 내 주변 버튼 */
.near-me {
    text-align: center;
    margin-bottom: 60px;
}

#findMeBtn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#findMeBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 126, 95, 0.4);
}

#findMeBtn:active {
    transform: translateY(0);
}

.hint {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #b2bec3;
}

/* 카테고리 그리드 */
.categories h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #f1f2f6;
    border-radius: 20px;
    padding: 24px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    text-align: left;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.emoji {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-sub);
}

/* 하단 정보 */
footer {
    margin-top: 80px;
    text-align: center;
    font-size: 0.85rem;
    color: #b2bec3;
    border-top: 1px solid #f1f2f6;
    padding-top: 40px;
}

.ad-hint {
    margin-top: 10px;
    font-style: italic;
    color: #dfe6e9;
}

/* 기존 코드 유지 및 섹션 스타일 추가 */
.section-group {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.badge {
    background-color: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.gray {
    background-color: #b2bec3;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 20px;
}

.student-card:hover {
    border-color: var(--primary);
    background-color: #fff9f7;
}

.general-section .card:hover {
    border-color: #2d3436;
    background-color: #f8f9fa;
}

@media (max-width: 400px) {
    .grid {
        grid-template-columns: 1fr;
    }
}