:root {
    --color-bg: #FFFFFF;
    --color-light-grey: #F5F5F7;
    --color-text-primary: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-accent: #007AFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
}

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

/* Header */
header {
    background: var(--color-bg);
    color: var(--color-text-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header > nav {
    border-bottom: 1px solid rgba(0,0,0,0.05); /* nav-subNav 구분선 */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 1em;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: var(--color-text-primary) !important;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    font-weight: normal;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-accent) !important;
    color: var(--color-accent);
    padding: 10px 24px;
    font-weight: normal;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background-color: rgba(0,122,255,0.08);
    color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-outline:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-apply {
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #f97316 0%, #dc2626 50%, #b91c1c 100%);
}

/* Hero Section */
.hero {
    background: var(--color-light-grey);
    color: var(--color-text-primary);
    padding: 4rem 0; /* 로그아웃 시 넉넉한 여백 */
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    opacity: 0.9;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 로그인 후 Reaflet 이미지 스타일 */
.hero-image img[alt="Reaflet"] {
    max-width: 1000px;
    max-height: 800px;
}

.hero-logo {
    max-width: 600px !important;
    width: 100%;
    height: auto;
    border-radius: 15px !important;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2) !important;
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.hero-logo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.3) !important;
}

/* Project Description */
.project-description {
    padding: 4rem 0;
}

.project-description h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.description-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.description-item:hover {
    transform: translateY(-5px);
}

.description-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.apply-section {
    text-align: center;
    margin-top: 2.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: black;
}

/* 관리자 로그인 모달 */
#adminLoginModal .modal-content {
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

#adminLoginModal h2 {
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

#adminPassword {
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

#adminPassword:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
}

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

/* 졸업 예정 시기 선택 */
.graduation-select {
    display: flex;
    gap: 0.5rem;
}

.graduation-select select {
    flex: 1;
}

/* 전공 선택 */
#majorCustom {
    border-color: #4f46e5;
    background-color: #f8fafc;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    transform: translateY(-5px);
}

#majorCustom:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Select 스타일링 */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 알림 메시지 */
.alert {
    padding: 12px 16px;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* 전역 알림 스타일 */
.global-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: slideDownFadeIn 0.35s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 90%;
}

.global-alert-success { background: rgba(16,185,129,0.9); }
.global-alert-warning { background: rgba(245,158,11,0.9); }
.global-alert-error   { background: rgba(239,68,68,0.9); }
.global-alert-info    { background: rgba(59,130,246,0.9); }

@keyframes slideDownFadeIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 로딩 스피너 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .btn-apply {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        margin-bottom: 1rem;
    }
    
    .graduation-select {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 2% auto;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .btn-apply {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Profile Page Styles */
.profile-section {
    padding: 4rem 0;
    min-height: calc(100vh - 80px);
    background-color: #f8fafc;
}

.profile-section h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.profile-section .section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.profile-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    min-width: 120px;
    padding: 12px 24px;
}

.user-info {
    color: white;
    font-weight: 500;
    margin-right: 1rem;
}

/* Profile form specific styles */
.profile-form-container .form-group input[readonly] {
    background-color: #f7fafc !important;
    color: #4a5568;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.profile-form-container .form-group input[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .profile-form-container {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== 연구 분야 카테고리 섹션 ===== */
.research-categories {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.research-categories .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a202c;
}

.research-categories .section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover::before {
    height: 6px;
}

.computational-chemistry::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.drug-design::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.gene-engineering::before {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.drug-delivery::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.3;
}

.category-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.features li {
    color: #475569;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.category-card .btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.category-card .btn-outline:hover {
    color: white;
    transform: translateY(-2px);
}

.computational-chemistry .btn-outline {
    color: #3b82f6;
    border-color: #3b82f6;
}

.computational-chemistry .btn-outline:hover {
    background: #3b82f6;
}

.drug-design .btn-outline {
    color: #10b981;
    border-color: #10b981;
}

.drug-design .btn-outline:hover {
    background: #10b981;
}

.gene-engineering .btn-outline {
    color: #06b6d4;
    border-color: #06b6d4;
}

.gene-engineering .btn-outline:hover {
    background: #06b6d4;
}

.drug-delivery .btn-outline {
    color: #f59e0b;
    border-color: #f59e0b;
}

.drug-delivery .btn-outline:hover {
    background: #f59e0b;
}

@media (max-width: 768px) {
    .research-categories {
        padding: 60px 0;
    }
    
    .research-categories .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

/* -------------------------------------------------- */
/* 채용 안내 핵심 정보 섹션 */
.core-info {
    background-color: #f8fafc;
    padding: 4rem 0;
    text-align: center;
}
.core-info .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #1f2937;
}
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.info-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.info-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #111827;
}
.info-card .card-desc {
    font-size: 0.95rem;
    color: #4b5563;
}
.learn-more-wrapper {
    margin-top: 1rem;
}

/* -------------------------------------------------- */
/* 상세 정보 섹션 & 탭 UI */
.details-section {
    background-color: #ffffff;
    padding: 4rem 0;
}
.details-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1f2937;
}
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.tab-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.tab-btn.active,
.tab-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
}
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}
.tab-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #111827;
}
.tab-content h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem;
    color: #4b5563;
}
.key-list,
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.key-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.4rem 2rem;
    justify-items: flex-start;
    text-align: left;
}
.key-list li {
    display: flex !important; /* override generic inline-flex */
    align-items: center;
    font-size: 1.05rem;
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}
.key-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.4rem;
    line-height: 1;
    top: 0.05rem;
}
.feature-list li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #374151;
}
.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.4rem;
    line-height: 1;
    top: 0.05rem;
}
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.reward-table, .schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.reward-table th,
.reward-table td,
.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.reward-table th,
.schedule-table th {
    background-color: var(--color-light-grey);
    font-weight: 600;
    color: var(--color-text-primary);
}

.reward-table tbody tr:hover,
.schedule-table tbody tr:hover {
    background-color: #fafafa;
}

.reward-table tbody tr:last-child td,
.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* Research fields styling */
.research-fields {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.field-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.field-item h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.field-item h5 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.field-item p {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Evaluation criteria styling */
.evaluation-criteria {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.criteria-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.criteria-item h4 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.criteria-item p {
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* Evaluation process styling */
.evaluation-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.process-step {
    background: var(--color-light-grey);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    font-weight: 500;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* Note styling enhancement */
.note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #856404;
}
@media (max-width: 640px) {
    .tab-btn {
        flex: 1 1 45%;
    }
}
/* -------------------------------------------------- */

/* -------------------------------------------------- */
/* 버튼 그룹 및 CTA 버튼 */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.cta-button {
    padding: 12px 28px;
    border: 1px solid #ff8a00;
    background-color: transparent;
    color: #ff8a00;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.cta-button:hover {
    background-color: #ff8a00;
    color: #fff;
}
.cta-button.primary {
    background-color: #ff8a00;
    color: #fff;
}
@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
        gap: 12px;
    }
}
/* -------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

/* ---- Unified Card (Glassmorphism) ---- */
.unified-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
}
.light-bg .unified-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    color: #333;
}

/* ---- Button Design System ---- */
.btn-primary,
.btn-secondary,
.btn-ghost {
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
}

/* Primary - strong action */
.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    font-weight: normal;
}
.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Ghost / link style */
.btn-ghost {
    background: none;
    color: var(--color-accent);
    text-decoration: underline;
    padding: 10px 0;
}
.btn-ghost:hover {
    color: var(--color-text-primary);
}

.main-nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Overlay for category cards */
.category-card { position: relative; overflow: hidden; }
.category-card .card-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.3s ease; }
.category-card:hover .card-overlay { opacity:1; }
.card-overlay .overlay-btn { background:#fff; color:#1D1D1F; padding:10px 24px; border-radius:50px; font-size:14px; text-decoration:none; font-weight:normal; }

/* === Unified white background & section dividers === */
section {
    background: #FFFFFF;
    border-top: 1px solid rgba(0,0,0,0.06);
}
section:first-of-type {
    border-top: none;
}
/* ensure hero and light sections stay white */
.hero,
.light-bg {
    background: #FFFFFF !important;
}

/* Sub navigation bar */
.sub-nav {
    background:#FFFFFF;
    position:relative;
    z-index:50;
    gap: 32px;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* subNav-컨텐츠 구분선 */
}
.sub-nav-link {
    color: var(--color-text-secondary);
    text-decoration:none;
    padding:0.5rem 0;
    position:relative;
    font-size:1.05rem;
}
.sub-nav-link.active {
    color: var(--color-text-primary);
    font-weight:600;
}
.sub-nav-link.active::after {
    content:'';
    position:absolute;
    bottom:-0.75rem;
    left:0;
    right:0;
    height:2px;
    background:var(--color-accent);
}
.sub-nav-link:hover { color: var(--color-text-primary); }

/* Modal alert pill style */
.modal-content .alert {
    padding: 10px 20px;
    border-radius: 24px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideDownFadeIn 0.3s ease;
}
.modal-content .alert-success { background: rgba(16,185,129,0.9); }
.modal-content .alert-warning { background: rgba(245,158,11,0.9); }
.modal-content .alert-error   { background: rgba(239,68,68,0.9); }
.modal-content .alert-info    { background: rgba(59,130,246,0.9); }

/* Login modal button group */
.modal-btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.2rem;
}
.modal-btn-group .btn {
    flex: 1 1 0%;
    text-align: center;
}

/* Hero loading placeholder */
.hero-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.hero.logged-in {
    padding: 0; /* 로그인 시 여백 제거 */
}

.card-grid .apply-card {
    /* unified-card already sets background/shadow; just ensure padding not override */
    color: var(--color-text-primary);
}

.apply-card h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.apply-card h3 { font-size: 1.4rem; margin: 1.2rem 0 0.5rem; }
.apply-card p { font-size: 1.1rem; }

.apply-card ul { list-style: none; padding:0; margin:0; text-align:center; }
.apply-card ul li { font-size:1.1rem; margin:0.4rem 0; position:relative; display:inline-flex; align-items:center; }
.apply-card ul li::before { content:'•'; color: var(--color-accent); margin-right:0.5rem; }
