/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6F27;
    --primary-dark: #E65A15;
    --secondary-color: #FFA300;
    --success-color: #00C48C;
    --danger-color: #FF647C;
    --warning-color: #FFA26B;
    --info-color: #00D4FF;
    --light-color: #F8F9FC;
    --dark-color: #1B2559;
    --border-color: #E4E7EB;
    --text-color: #2E3A59;
    --text-light: #6B7684;
    --bg-color: #FFFFFF;
    --bg-secondary: #F8F9FC;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    padding-top: 75px; /* 상단 고정 navbar 공간 확보 */
    padding-bottom: 70px; /* 하단 탭바 공간 확보 */
    word-break: keep-all; /* 한중일 언어 단어 단위 줄바꿈 */
    overflow-wrap: break-word; /* 긴 단어 줄바꿈 */
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 플로팅 액션 버튼 */
.floating-action-buttons {
    position: fixed;
    bottom: 110px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

@media (min-width: 768px) {
    .floating-action-buttons {
        bottom: 30px;
    }
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fab-phone {
    background: linear-gradient(135deg, #00C48C 0%, #00A67E 100%);
}

.fab-facebook {
    background: #1877F2;
}

.fab-quote {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}


/* 모바일 하단 탭바 업데이트 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    display: none;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 4px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* 맞춤추천 강조 스타일 */
.bottom-nav-featured {
    position: relative;
    margin-top: -20px;
}

.bottom-nav-featured .featured-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 111, 39, 0.3);
    margin-bottom: 4px;
    border: 3px solid white;
}

.bottom-nav-featured span {
    font-size: 11px;
    font-weight: 600;
}

.bottom-nav-featured.active .featured-icon {
    box-shadow: 0 6px 16px rgba(255, 111, 39, 0.4);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
}


/* 네비게이션 - 상단 헤더 (kowork.kr 스타일) */
.navbar {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-brand a {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.navbar-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.navbar-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* 우측 액션 영역 */
.navbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 인증 버튼 (로그인/회원가입) */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 모바일에서 회원가입 버튼 숨김 */
@media (max-width: 767px) {
    .auth-buttons {
        display: none;
    }
}

.auth-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* 언어 선택 */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.2s;
    white-space: nowrap;
}

.language-btn:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.language-btn i.bi-globe {
    font-size: 1.1rem;
}

.language-btn i.bi-chevron-down {
    font-size: 0.85rem;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--light-color);
    white-space: nowrap;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.language-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

.language-option span {
    font-size: 1.2rem;
}

/* 프로필 메뉴 */
.profile-menu {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.2s;
}

.profile-btn:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.profile-btn .profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-btn i.bi-person-circle {
    font-size: 1.75rem;
}

.profile-btn i {
    font-size: 1.4rem;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    word-break: keep-all;
}

.profile-option:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.profile-option i {
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--light-color);
    margin: 0.25rem 0;
}

/* 햄버거 버튼 */
.navbar-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.navbar-burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.navbar-burger.is-active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 모바일 메뉴 패널 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

/* 모바일 메뉴 - 사용자 정보 영역 */
.mobile-menu-user {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.mobile-user-info i {
    margin-bottom: 1rem;
}

.mobile-user-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mobile-user-info p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.mobile-user-login h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-user-login p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* 모바일 메뉴 - 메뉴 리스트 */
.mobile-menu-list {
    padding: 0.5rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--light-color);
}

.mobile-menu-item:active {
    background: var(--light-color);
}

.mobile-menu-item i:first-child {
    font-size: 1.4rem;
    color: var(--primary-color);
    width: 24px;
}

.mobile-menu-item span {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.mobile-menu-item i:last-child {
    font-size: 1rem;
    color: var(--text-light);
}

.mobile-menu-divider {
    height: 8px;
    background: var(--light-color);
    margin: 0.5rem 0;
}

/* body에 메뉴 오픈 시 스크롤 방지 */
body.menu-open {
    overflow: hidden;
}


/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    /*box-shadow: 0 2px 8px rgba(51, 102, 255, 0.15);*/
    word-break: keep-all;
    overflow-wrap: break-word;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(51, 102, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 111, 39, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(51, 102, 255, 0.25);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Checkbox 스타일 */
.form-group.checkbox {
    margin-bottom: 1rem;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Flash 메시지 */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.close-btn:hover {
    opacity: 1;
}

/* Hero 섹션 - 간소화 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features 섹션 */
.features {
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: left;
    font-size: 1.1rem/*1.25rem*/;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 0;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.feature-card:hover {
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.feature-arrow {
    color: #CCC;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* 대학 카드 - 리스트 형태 */
.university-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 0;
}

.university-card {
    background: white;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s;
    border: none;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.university-card:hover {
    background-color: #fafafa;
}

.university-card:active {
    background-color: var(--light-color);
}

.university-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: contain;
    margin-bottom: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: white;
    padding: 4px;
}

.university-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.university-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.university-location, .university-ranking {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0;
    display: inline-block;
}

.university-location::before,
.university-ranking::before {
    content: "";
}

.university-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.university-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--light-color);
    color: var(--text-color);
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    word-break: keep-all;
}

/* Form 스타일 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-control:hover {
    border-color: #C0C5CE;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 111, 39, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 글자 수 카운터 */
.character-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* AI 도우미 박스 */
.ai-helper-box {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    margin-top: 1rem;
}

.ai-helper-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Auth 페이지 */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
}

.auth-box {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
}

.auth-box h1 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-links a:hover {
    opacity: 0.8;
}

/* 소셜 로그인 */
.social-login {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-login .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-login .divider::before,
.social-login .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-login .divider span {
    padding: 0 1rem;
}

.btn-facebook {
    background: #1877F2;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-facebook:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-facebook i {
    font-size: 1.2rem;
}

/* 배너 슬라이더 */
.banner-slider {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 400px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem 2rem;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-text {
    flex: 1;
    max-width: 600px;
    color: white;
    z-index: 2;
    text-align: left;
}

.slide-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.slide-image {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 슬라이더 네비게이션 */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.slider-btn i {
    font-size: 1.2rem;
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    width: 36px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 푸터 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    /*margin-top: 4rem;*/
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* 검색 및 필터 */
.search-filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.search-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

/* 대학 목록 */
.university-list {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.university-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.university-item:last-child {
    border-bottom: none;
}

.university-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.university-logo-sm {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.university-details h3 {
    margin-bottom: 0.5rem;
}

.university-details h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.university-details h3 a:hover {
    color: var(--primary-color);
}

.university-meta {
    color: #666;
    font-size: 0.9rem;
}

.university-description {
    margin-top: 0.5rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-info {
    padding: 0.5rem 1rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* 네비게이션 */
    .navbar-menu {
        display: none !important;
    }

    .navbar-burger {
        display: block;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand a {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    /* 언어/프로필 버튼 */
    .language-btn span,
    .profile-btn span {
        display: none;
    }

    .language-btn,
    .profile-btn {
        padding: 0.5rem;
        min-width: 36px;
        width: 36px;
        border-radius: 50%;
        gap: 0;
    }

    .language-btn i.bi-chevron-down {
        display: none;
    }

    /* 배너 슬라이더 */
    .slider-container {
        height: 300px;
    }

    .slide-content {
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .slide-text h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .slide-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 14px 28px;
    }

    .slide-image {
        display: none;
    }

    .slider-nav {
        bottom: 1rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn i {
        font-size: 1rem;
    }

    /* 하단 탭바 표시 */
    .bottom-nav {
        display: block;
    }

    .hero {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .features {
        /*padding: 1rem;*/
    }

    .features h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .features-grid {
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .feature-icon {
        font-size: 2.25rem;
        width: 45px;
    }

    .feature-arrow {
        font-size: 1.1rem;
    }

    .university-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .university-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .university-info {
        flex-direction: column;
        width: 100%;
    }

    .university-actions {
        width: 100%;
        margin-top: 1rem;
    }

    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 70px;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* 모바일에서 푸터 하단 여백 */
    .footer {
        margin-bottom: 0;
    }
}

/* Featured Universities / CTA 섹션 */
.featured-universities {
    padding: 0;
    background: var(--bg-color);
    margin-top: 1rem;
}

.section-header {
    padding: 1rem 1rem 0.75rem 1rem;
    background-color: var(--bg-color);
}

.section-header h2 {
    font-size: 1.1rem/*1.25rem*/;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.university-logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 1.5rem;
}

.cta {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    margin: 1rem;
    border-radius: 16px;
}

.cta h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.cta p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 검색 바 */
.search-bar {
    background: var(--bg-color);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 1;
}

.search-input-field {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--light-color);
    transition: all 0.2s;
}

.search-input-field::placeholder {
    color: #9CA3AF;
}

.search-input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(255, 111, 39, 0.1);
}

/* 필터 탭 */
.filter-tabs {
    background: var(--bg-color);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-select {
    padding: 0.6rem 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.875rem;
    background-color: white;
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background-color: #FFF5F0;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 39, 0.1);
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-light);
}

.empty-state p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.empty-hint {
    font-size: 0.85rem;
    color: #999;
}

/* 페이지네이션 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 프로필 컨테이너 */
.profile-container {
    background: var(--bg-secondary);
    min-height: calc(100vh - 70px);
}

.profile-header {
    background: white;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.profile-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 프로필 완성도 */
.profile-completeness {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 1rem;
    margin: 1rem;
    border-radius: 12px;
}

.completeness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.completeness-percent {
    font-size: 1.2rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s;
}

.completeness-tip {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 프로필 섹션 */
.profile-sections {
    background: white;
    margin-top: 1rem;
}

.profile-section-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.profile-section-item:hover {
    background-color: #fafafa;
}

.profile-section-item:active {
    background-color: var(--light-color);
}

.section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-content {
    flex: 1;
}

.section-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.section-preview {
    font-size: 0.85rem;
    color: var(--text-light);
}

.section-empty {
    font-size: 0.85rem;
    color: #CCC;
}

/* Statements List */
.statements-list {
    background: white;
}

.statement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
}

.statement-item:active {
    background-color: var(--light-color);
}

.statement-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.statement-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Action Buttons */
.action-buttons {
    padding: 1rem;
}

/* Recommendation Container */
.recommendation-container {
    background: var(--bg-secondary);
    min-height: calc(100vh - 70px);
}

.recommendation-banner {
    background: white;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.banner-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-banner h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.recommendation-banner p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.profile-warning {
    background: #FFF3CD;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 400px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-warning a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Recommendation List */
.recommendation-list {
    background: white;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.recommendation-item:hover {
    background-color: #fafafa;
}

.recommendation-item:active {
    background-color: var(--light-color);
}

.recommendation-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.recommendation-info {
    flex: 1;
    min-width: 0;
}

.recommendation-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.recommendation-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.criteria-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.criteria-tag {
    padding: 2px 8px;
    background-color: var(--light-color);
    color: var(--text-color);
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Recommendation Guide */
.recommendation-guide {
    background: white;
    margin: 1rem;
    padding: 1.5rem 1rem;
    border-radius: 12px;
}

.recommendation-guide h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guide-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.guide-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.guide-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.guide-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Form Container */
.form-container {
    background: var(--bg-secondary);
    min-height: calc(100vh - 70px);
    padding: 1rem;
}

.form-header {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1rem;
}

.form-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-summary {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.profile-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.summary-item .value {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-section {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs input {
    flex: 1;
}

.form-actions {
    padding: 1rem 0;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* ==================== 관리자 네비게이션 드롭다운 ==================== */
.navbar-dropdown {
    position: relative;
    display: inline-block;
}

.navbar-dropdown .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-dropdown .dropdown-toggle i.bi-chevron-down {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.navbar-dropdown.active .dropdown-toggle i.bi-chevron-down {
    transform: rotate(180deg);
}

.navbar-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.navbar-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-dropdown .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.navbar-dropdown .dropdown-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .navbar-dropdown {
        display: block;
        width: 100%;
    }

    .navbar-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
    }

    .navbar-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        padding-left: 1.5rem;
        background: var(--bg-secondary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .navbar-dropdown .dropdown-item {
        padding: 0.75rem 1rem;
    }
}
