/* 
[건축 비유: 인테리어 전문 도면]
이 파일은 건물의 뼈대(index.html) 위에 색상을 입히고, 공간을 예쁘게 꾸미는 디자인 전용 문서입니다. 
*/

/* 외부에서 예쁜 조명(폰트) 수입하기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

/* 건물의 기본 바닥재 및 전체 분위기 세팅 */
body {
    font-family: 'Noto Sans KR', sans-serif; /* 시원하고 모던한 글씨체 적용 */
    background-color: #f8f9fa; /* 밝고 깨끗한 배경색 (여백의 미) */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 화면 전체 높이를 꽉 채움 */
}

/* ====================================================
   [건축 비유: 건물의 상단 간판 및 네비게이션 구역] 
==================================================== */
.header { 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; /* 스크롤해도 위쪽에 딱 달라붙어 있게 하는 마법 */
    top: 0; 
    z-index: 100; 
}
.header-inner { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo a { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #1a1a2e; 
    text-decoration: none; 
}
.gnb ul { 
    list-style: none; /* 점 없애기 */
    display: flex; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
}
.gnb a { 
    text-decoration: none; 
    color: #555; 
    font-weight: bold; 
    transition: color 0.2s; 
}
.gnb a:hover { 
    color: #4dabf7; /* 마우스를 올리면 포인트 컬러로 변경 */
}

/* ====================================================
   [건축 비유: 메인 쇼윈도 디자인 (Hero Section)] 
==================================================== */
.hero-section { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    color: #fff; 
    text-align: center; 
    padding: 80px 20px; 
}
.hero-content { 
    max-width: 800px; 
    margin: 0 auto; 
}
.hero-content h1 { 
    color: #fff; 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
}
.hero-content p { 
    font-size: 1.2rem; 
    color: #ccc; 
    margin-bottom: 40px; 
    line-height: 1.6; 
}
.primary-btn { 
    display: inline-block; 
    padding: 15px 30px; 
    background: #4dabf7; 
    color: #fff; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 30px; 
    transition: background 0.3s; 
}
.primary-btn:hover { 
    background: #3b8cd6; 
}

/* ====================================================
   [건축 비유: 1층 핵심 기능 소개 전시관 디자인] 
==================================================== */
.features-section { 
    max-width: 1000px; 
    margin: 60px auto; 
    padding: 0 20px; 
}
.features-section h2 { 
    text-align: center; 
    color: #1a1a2e; 
    font-size: 2rem; 
    margin-bottom: 40px; 
}
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 30px; 
}
.feature-card { 
    background: #fff; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    text-align: center; 
    transition: transform 0.3s; 
}
.feature-card:hover { 
    transform: translateY(-5px); /* 사물에 마우스 올리면 약간 떠오름 */
}
.feature-card h3 { 
    color: #1a1a2e; 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
}
.feature-card p { 
    color: #666; 
    line-height: 1.5; 
}

/* ====================================================
   [건축 비유: 각 독립된 방(컨테이너) 디자인] 
==================================================== */
.container {
    max-width: 800px;
    width: 100%;
    background: #fff; /* 하얀색 벽 */
    padding: 40px;
    border-radius: 20px; /* 모서리를 둥글게 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    box-sizing: border-box;
    margin: 0 auto;
}

.section-title { 
    color: #1a1a2e; 
    margin-bottom: 0.5rem; 
    text-align: center;
    font-size: 1.8rem;
}
p.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ====================================================
   [건축 비유: 아티클 도서관(지식 허브) 디자인] 
==================================================== */
.article-container {
    padding: 50px 40px;
}
.article-title {
    color: #1a1a2e;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.article-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}
.article-content { 
    line-height: 1.8; 
    color: #333; 
    font-size: 1.1rem; 
}
.article-content span.highlight { 
    background: rgba(77, 171, 247, 0.2); 
    font-weight: bold; 
    padding: 0 5px; 
    border-radius: 3px;
}
.article-content h2 { 
    margin-top: 50px; 
    color: #1a1a2e; 
    border-bottom: 2px solid #f1f3f5; 
    padding-bottom: 10px; 
}
.article-content p { 
    margin-bottom: 25px; 
}
.article-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}
.article-content li {
    margin-bottom: 10px;
}

/* ====================================================
   [건축 비유: 폼(입력 양식) 내부 구역 정렬] 
==================================================== */
.contact-section form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.contact-section label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: -5px;
    color: #555;
}
.contact-section input, .contact-section textarea {
    padding: 14px;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}
.contact-section input:focus, .contact-section textarea:focus {
    outline: none;
    border-color: #4dabf7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.1);
}
.contact-btn {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-btn:hover {
    background: #2e2e4e;
}
.footer-text {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

/* ====================================================
   [건축 비유: 건물의 지반 처리 (푸터)] 
==================================================== */
.footer { 
    background: #fff; 
    text-align: center; 
    padding: 40px 20px; 
    margin-top: auto; 
    border-top: 1px solid #f1f3f5; 
}
.footer p { 
    color: #888; 
    font-size: 0.9rem; 
    margin-bottom: 10px; 
}
.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}
.footer-links a { 
    color: #555; 
    text-decoration: none; 
    font-size: 0.9rem; 
}
.footer-links a:hover { 
    color: #1a1a2e; 
    text-decoration: underline; 
}

/* ====================================================
   [모바일 환경을 위한 반응형 설계 (작은 평수 변환)] 
==================================================== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .container { padding: 25px; margin: 0 15px; width: auto; }
    .article-title { font-size: 1.8rem; }
}
