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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 네비게이션 바 */
.navbar {
    background-color: #2c3e50;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: #34495e;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 메인 콘텐츠 */
main {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 섹션 공통 스타일 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.bg-light {
    background-color: #f8f9fa;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2c3e50;
    color: white;
}

.btn-secondary:hover {
    background-color: #34495e;
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

/* 공지사항 그리드 */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.notice-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s;
}

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

.notice-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.notice-content h3 a:hover {
    color: #3498db;
}

.notice-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 10px 0;
}

.notice-preview {
    color: #555;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* 기술 스택 */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-item i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.tech-item h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 프로젝트 카드 */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.project-image {
    flex: 0 0 100px;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 2.5rem;
    color: white;
}

.project-content {
    padding: 20px;
    flex: 1;
}

.project-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.project-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.project-content li {
    margin-bottom: 5px;
}

/* 폼 스타일 */
.form-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

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

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* 공지사항 목록 */
.notices-list {
    margin-top: 30px;
}

.notice-item {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-notices, .error {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* 공지사항 상세 */
.notice-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.notice-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.notice-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.notice-meta {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
}

.notice-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.back-button {
    text-align: center;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h1 {
    color: #e74c3c;
    margin-bottom: 20px;
}

/* 팀 멤버 */
.section-description {
    text-align: center;
    margin-bottom: 50px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.crew-member {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.crew-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100px;
    height: 100px;
    /* background: #3498db; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.member-image img {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.member-image i {
    font-size: 2.5rem;
    color: white;
}

.member-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.member-role {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-bio {
    margin-bottom: 20px;
    color: #555;
}

.member-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 푸터 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #34495e;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        flex: 0 0 80px;
    }
    
    .notice-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .notices-grid,
    .tech-stack,
    .projects,
    .crew-grid {
        grid-template-columns: 1fr;
    }
}