/* 기본 설정 */
:root {
    --primary-color: #0056b3; /* 신뢰감을 주는 짙은 파랑 */
    --secondary-color: #00a8cc; /* 밝은 청록 (포인트) */
    --text-color: #333;
    --light-gray: #f4f6f8;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 헤더 & 네비게이션 */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}


#subtitle{
  font-size: 0.9rem;
}

/* 로고 레이아웃 설정 */
.logo {
    display: flex;
    align-items: center; /* 이미지와 텍스트를 세로 중앙 정렬 */
    gap: 15px;           /* 이미지와 텍스트 사이의 간격 */
}

/* 로고 이미지 크기 조절 */
.logo-img {
    height: 70px;        /* 3줄의 텍스트 높이에 맞춰 적절히 조절 (60px~80px 권장) */
    width: auto;         /* 가로세로 비율 유지 */
    object-fit: contain;
}

/* 로고 텍스트 그룹 설정 */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.1rem;   /* 전체적인 글자 크기 조정 */
    line-height: 1.2;    /* 줄 간격을 좁혀 이미지 높이와 맞춤 */
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;           /* 기본 여백 제거 */
}

#subtitle {
    font-size: 0.9rem;   /* 서브타이틀은 조금 더 작게 */
    font-weight: 500;
}

/* 모바일 대응 (헤더 높이가 좁아질 경우) */
@media screen and (max-width: 768px) {
    .logo-img {
        height: 50px;    /* 모바일에서는 조금 더 작게 */
    }
    .logo-text h1 {
        font-size: 0.9rem;
    }
    #subtitle {
        font-size: 0.7rem;
    }
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 히어로 섹션 */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.5)), url('https://images.unsplash.com/photo-1529390079861-591de354faf5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    /* 참고: 배경 이미지는 무료 이미지 사이트(Unsplash)의 교육 관련 예시 이미지입니다 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.sub-hero {
    font-size: 1.5rem;
    margin-top: 10px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #008cba;
}

/* 재단 소개 및 이사장 인사말 */
/* .about-text, .chairman-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
} */

/* 1. 기존 .about-text, .chairman-text 묶음에서 .chairman-text를 제거하거나 아래처럼 덮어쓰기 */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* 2. 이사장 섹션 새로운 레이아웃 */
.chairman-content {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: space-between;
    gap: 40px; /* 텍스트와 이미지 사이 간격 */
}

.chairman-text {
    flex: 1; /* 남은 공간 모두 차지 */
    text-align: left; /* 중앙 정렬 해제: 왼쪽 정렬 */
}

.chairman-image {
    flex-basis: 300px; /* 이미지의 기본 너비 */
    text-align: center;
}

.chairman-image img {
    width: 100%;
    max-width: 300px; /* 이미지 최대 크기 제한 */
    height: auto;
    border-radius: 10px; /* 모서리 둥글게 (선택사항) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 약간의 그림자 (선택사항) */
}

.signature {
    margin-top: 30px;
    font-size: 1.1rem;
    text-align: right; /* 서명은 오른쪽 정렬 유지 */
}

/* 3. 모바일 반응형 추가 (화면이 작아지면 이미지가 아래로 이동) */
@media screen and (max-width: 768px) {
    .chairman-content {
        flex-direction: column; /* 위아래 배치를 위해 변경 */
        text-align: center;
    }
    
    .chairman-text {
        text-align: left; /* 모바일에서도 가독성을 위해 본문은 왼쪽 정렬 유지하거나 center로 변경 가능 */
        order: 1; /* 텍스트가 위로 */
    }
    
    .chairman-image {
        order: 2; /* 이미지가 아래로 */
        margin-top: 20px;
    }
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.signature {
    margin-top: 30px;
    font-size: 1.1rem;
    text-align: right;
}

/* 비전 & 미션 */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-box {
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    color: var(--white);
}

.vision {
    background-color: var(--primary-color);
}

.mission {
    background-color: var(--secondary-color);
}

.vm-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-bottom: 5px;
}

/* 핵심 가치 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 주요 사업 */
.activities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.activity-item {
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    background: var(--light-gray);
}

.activity-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 푸터 */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.donation-box {
    background: #333;
    padding: 30px;
    border-radius: 5px;
}

.donation-box h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bank-name, .account-owner {
    font-size: 1.1rem;
}

.swift{
  font-size: 0.9rem;
}

.account-number {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    margin: 5px 0;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 30px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .vision-mission-grid, .activities-list, .footer-grid {
        grid-template-columns: 1fr;
    }
    
}