/* css/style.css */

@import url('https://fonts.googleapis.com/css?family=Amatic+SC');

/* !!! 전역 box-sizing 설정 !!! */
* {
    box-sizing: border-box;
}
*::before,
*::after {
    box-sizing: border-box;
}
/* !!! End 전역 설정 !!! */


/* --- Body 및 기본 스타일 --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 17px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 100px;
    transition: all 0.3s ease;
    display: flex; /* 추가: flex 컨테이너로 설정 */
    align-items: center; /* 추가: 수직 중앙 정렬 */
    justify-content: center; /* 추가: 수평 중앙 정렬 */
}

header.scrolled {
    height: 80px;
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
    max-width: 1400px;
    width: 100%; /* 추가: 전체 너비 사용 */
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
    margin-right: 40px; /* 로고와 네비게이션 사이 간격 */
}

.logo img {
    height: 55px; /* 로고 크기 증가 */
    width: auto;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 50px; /* 스크롤 시 로고 크기 */
}

.main-nav {
    display: flex;
    gap: 50px; /* 메뉴 간격 증가 */
    margin: 0 40px;
    flex-grow: 1; /* 남은 공간 채우기 */
    justify-content: center; /* 중앙 정렬 */
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 8px; /* 아이콘과 텍스트 사이 간격 증가 */
    color: #333;
    font-size: 1.15rem; /* 폰트 크기 증가 */
    font-weight: 500;
    padding: 15px 0; /* 상하 패딩 증가 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-item > a:hover {
    color: #e89214;
}

.menu-item > a i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.menu-item:hover > a i {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* 서브메뉴 위치 조정 */
    background: white;
    min-width: 220px; /* 서브메뉴 너비 증가 */
    padding: 12px 0; /* 서브메뉴 패딩 증가 */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


.menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.sub-menu li a {
    display: block;
    padding: 12px 25px; /* 서브메뉴 아이템 패딩 증가 */
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem; /* 서브메뉴 폰트 크기 증가 */
}

.sub-menu li a:hover {
    background: #f8f9fa;
    color: #e89214;
    padding-left: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px; /* 버튼과 토글 사이 간격 증가 */
    margin-left: 40px; /* 네비게이션과의 간격 */
}

.signup-button {
    display: flex;
    align-items: center;
    gap: 10px; /* 아이콘과 텍스트 사이 간격 증가 */
    background: #e89214;
    color: white;
    border: none;
    padding: 12px 25px; /* 버튼 패딩 증가 */
    border-radius: 30px; /* 버튼 모서리 둥글게 */
    font-size: 1.1rem; /* 버튼 폰트 크기 증가 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-button:hover {
    background: #d17c0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 146, 20, 0.2);
}

.signup-button i {
    font-size: 1em;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-wrapper {
        padding: 0 20px;
    }
    
    .logo img {
        height: 50px;
    }
    
    header.scrolled .logo img {
        height: 45px;
    }
}

@media (max-width: 767.98px) {
    header {
        height: 80px;
    }
    
    header.scrolled {
        height: 70px;
    }
    
    .logo img {
        height: 45px;
    }
    
    header.scrolled .logo img {
        height: 40px;
    }
    
    .signup-button span {
        display: none;
    }
    
    .signup-button {
        padding: 12px;
        border-radius: 50%;
    }
    
    .signup-button i {
        margin: 0;
    }
}

/* --- Main Content 기본 스타일 --- */
main.homepage-main {
    padding-top: 0;
    margin: 0;
}

main.page-main {
    padding-top: 120px;
    margin: 0;
}

.page-section {
    padding: 80px 0; /* 상하 패딩 증가 */
    border-bottom: 1px solid #e89214;
    background-color: #fff;
}
.page-section:last-child {
    border-bottom: none;
}
.page-section:nth-of-type(odd) {
    background-color: #f9f9f9;
}
.page-section h2 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 40px;
    font-size: 2em;
}
.page-section h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.homepage-section {
    min-height: 80vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 60px 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- 홈페이지 첫 번째 섹션 (#section-purpose) --- */
/* css/style.css */

/* --- 홈페이지 첫 번째 섹션 (#section-purpose) 수정 --- */
#section-purpose {
    margin-top: 100px; /* 헤더 높이만큼 내리기 (기존 값 유지) */
    height: calc(100vh - 100px); /* 헤더를 제외한 전체 화면 높이 (기존 값 유지) */
    
    /* ▼ 배경 이미지 위에 어두운 오버레이 추가하여 가독성 향상 ▼ */
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../img/purpose-bg.png') no-repeat center center;
    background-size: cover;
    color: #fff; /* 이 섹션 내 텍스트의 기본 색상 */
    
    /* ▼ 텍스트 가독성을 위한 기본 그림자 강화 ▼ */
    text-shadow: 0px 0px 10px rgba(0,0,0,0.7), 1px 1px 2px rgba(0,0,0,0.5); 
    
    padding: 0; /* 내부 .container가 패딩을 담당하도록 함 */
    display: flex; 
    align-items: center; /* .container를 섹션의 수직 중앙에 배치 */
}

/* #section-purpose 내부의 텍스트 콘텐츠 영역 (.section-purpose-content) */
#section-purpose .section-purpose-content {
    /* 이 클래스에 특별한 스타일이 필요하다면 여기에 추가 */
    /* 현재는 Bootstrap 그리드 (.col-lg-7 등)에 의해 너비가 조절됨 */
}

/* h2 (CHACKUS 로고 텍스트) 스타일 - 기존 색상 유지, 그림자만 살짝 강화 */
#section-purpose .section-purpose-content h2 {
    /* color: rgba(255, 255, 255, 0.8); /* 스팬 요소에 의해 색상 덮어쓰임 */
    margin-bottom: 0.75rem; 
    font-size: 4em; /* 로고 주목도를 위해 약간 더 크게 */
    line-height: 1.2;
    font-weight: bold; /* 좀 더 명확하게 */
}

#section-purpose h2 .text-part-cha {
    color: rgba(233, 146, 20, 1); /* CHA 주황색 (기존 유지) */
    text-shadow: 0px 0px 12px rgba(40, 20, 0, 0.8), 1px 1px 3px rgba(0,0,0,0.6); /* 색상에 맞는 그림자 강화 */
}
#section-purpose h2 .text-part-ckus {
    color: rgba(219, 86, 24, 1); /* KUS 붉은 주황색 (기존 유지) */
    text-shadow: 0px 0px 12px rgba(40, 10, 0, 0.8), 1px 1px 3px rgba(0,0,0,0.6); /* 색상에 맞는 그림자 강화 */
}

/* h3 ("우리 단체는...") - CHA 주황색 적용 및 스타일 조정 */
#section-purpose .section-purpose-content h3 {
    color: rgba(233, 146, 20, 1); /* CHA 주황색 적용! */
    margin-bottom: 1.5rem; 
    font-size: 2.3em; /* 가독성을 위해 크기 살짝 키움 */
    font-weight: 500;   /* 중간 굵기 */
    /* 주황색 텍스트에 대한 그림자 조정 (배경 어두워졌으므로 기존보다 약하게 해도 됨, 또는 다른 색상 그림자) */
    text-shadow: 0px 0px 6px rgba(0,0,0,0.8), 0px 1px 1px rgba(0,0,0,0.5);
}

/* p.lead (본문 단락) - 밝은 흰색 계열 유지, 그림자 강화, 가독성 개선 */
#section-purpose .section-purpose-content p.lead {
    color: #f0f0f0; /* 매우 밝은 회색 또는 순백색 (#fff) */
    font-size: 1.6em; /* 가독성을 위해 크기 살짝 키움 */
    line-height: 1.75; /* 줄 간격 넓혀서 가독성 향상 */
    margin-bottom: 0; 
    text-shadow: 0px 0px 8px rgba(0,0,0,0.9), 1px 1px 2px rgba(0,0,0,0.7); /* 선명한 그림자 */
}

/* CTA 버튼 스타일 조정 - 가독성 및 색상 통일성 */
#section-purpose .hero-cta-button,
#section-purpose .hero-cta-button-outline {
    font-weight: 600; /* 버튼 글자 굵게 */
    letter-spacing: 0.5px;
    border-radius: 30px; 
    padding-top: 0.85rem; /* 버튼 세로 크기 약간 키움 */
    padding-bottom: 0.85rem;
    padding-left: 2.2rem; 
    padding-right: 2.2rem;
    transition: all 0.25s ease-in-out;
    font-size: 1.15rem; /* 버튼 폰트 크기 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* 기본 그림자 살짝 */
}
#section-purpose .hero-cta-button:hover,
#section-purpose .hero-cta-button-outline:hover {
    transform: translateY(-3px); /* 호버 시 살짝 위로 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25); /* 호버 시 그림자 강화 */
}

/* 주 버튼 (Primary CTA) - CHA 주황색 사용 */
#section-purpose .hero-cta-button { 
    background-color: rgba(233, 146, 20, 0.95); /* CHA 주황색 (살짝 투명도) */
    border-color: rgba(233, 146, 20, 0); /* 테두리는 투명하게 또는 같은 색 */
    color: #ffffff; /* 버튼 글자색 흰색 */
}
#section-purpose .hero-cta-button:hover {
    background-color: rgba(233, 146, 20, 1); /* 호버 시 완전한 주황색 */
    border-color: rgba(233, 146, 20, 0);
}

/* 보조 버튼 (Outline CTA) - 테두리 색상 및 호버 효과 변경 */
#section-purpose .hero-cta-button-outline { 
    border-width: 2px;
    color: #ffffff; /* 기본 글자색 흰색 */
    border-color: rgba(255, 255, 255, 0.8); /* 밝은 테두리 */
    background-color: transparent; /* 배경 투명 */
}
#section-purpose .hero-cta-button-outline:hover {
    background-color: rgba(255, 255, 255, 0.95); /* 호버 시 흰색 배경 */
    color: #d35400; /* 호버 시 글자색 (KUS 색상 계열의 어두운 톤 또는 CHA 주황색) */
    border-color: #fff;
}

/* --- 우리가 해온 일들 섹션 (Past Work Showcase) --- */
.past-work-showcase-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.past-work-showcase-section .container {
    position: relative;
    z-index: 1;
}

.past-work-showcase-section .text-secondary {
    color: #6c757d !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.past-work-showcase-section .display-4 {
    color: #0056b3;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.past-work-showcase-section .display-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e89214;
    border-radius: 2px;
}

.past-work-cards-swiper {
    margin: 0 -15px;
    padding: 20px 15px;
    overflow: visible;
}

.past-work-card-slide {
    height: auto;
    transition: transform 0.3s ease;
}

.past-work-card-slide:hover {
    transform: translateY(-5px);
}

.past-work-card-slide .past-work-card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 비율 */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.past-work-card-slide .past-work-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.past-work-card-slide:hover .past-work-card-image img {
    transform: scale(1.05);
}

.past-work-card-slide .past-work-card-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.past-work-card-slide .past-work-tagline {
    color: #0056b3;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
}

.past-work-card-slide dl {
    margin-bottom: 0;
}

.past-work-card-slide dt {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.past-work-card-slide dd {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- 현재 진행 중인 프로그램 섹션 (Program Showcase) --- */
.featured-programs-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.featured-programs-section .section-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.featured-programs-section .section-description {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.featured-programs-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e89214;
}

.program-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-image {
    position: relative;
    padding-top: 75%; /* 4:3 비율로 변경 (기존 60%에서 증가) */
    overflow: hidden;
}

.program-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-content {
    padding: 15px; /* 패딩 감소 (기존 25px에서 감소) */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.program-title {
    font-size: 1.1rem; /* 폰트 크기 감소 (기존 1.25rem에서 감소) */
    font-weight: 600;
    color: #333;
    margin-bottom: 10px; /* 마진 감소 (기존 15px에서 감소) */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1em; /* 높이 감소 (기존 3.5em에서 감소) */
}

.program-description {
    color: #666;
    font-size: 0.85rem; /* 폰트 크기 감소 (기존 0.95rem에서 감소) */
    line-height: 1.5;
    margin-bottom: 10px; /* 마진 감소 (기존 15px에서 감소) */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 줄 수 감소 (기존 3줄에서 2줄로 변경) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em; /* 높이 감소 (기존 4.8em에서 감소) */
}

.program-date {
    color: #888;
    font-size: 0.8rem; /* 폰트 크기 감소 (기존 0.9rem에서 감소) */
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px; /* 패딩 감소 (기존 15px에서 감소) */
}

.program-date i {
    color: #e89214;
}

.btn-outline-primary {
    color: #e89214;
    border-color: #e89214;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: #e89214;
    border-color: #e89214;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 146, 20, 0.2);
}

@media (max-width: 991.98px) {
    .featured-programs-section {
        padding: 60px 0;
    }
    
    .featured-programs-section .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .featured-programs-section .section-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .featured-programs-section {
        padding: 40px 0;
    }
    
    .program-image {
        padding-top: 70%; /* 모바일에서도 비율 유지 */
    }
    
    .program-content {
        padding: 12px; /* 모바일에서 패딩 더 감소 */
    }
    
    .program-title {
        font-size: 1rem; /* 모바일에서 폰트 크기 더 감소 */
    }
    
    .program-description {
        font-size: 0.8rem; /* 모바일에서 폰트 크기 더 감소 */
    }
    
    .program-date {
        font-size: 0.75rem; /* 모바일에서 폰트 크기 더 감소 */
    }
}

.current-programs-swiper { /* Swiper 컨테이너 */
    position: relative; /* 자식 네비게이션 버튼의 기준점 */
}
/* 카드 슬라이드 스타일은 .program-slide 로 시작 */
.current-programs-swiper .program-slide a {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
}
.current-programs-swiper .program-slide a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
/* .program-slide 내부 요소 스타일 (공통화 가능) */
.program-slide .program-card-image { /* 이 클래스들은 past-work-card-slide 와 공통 사용 가능 */
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.program-slide .program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.program-slide a:hover .program-card-image img {
    transform: scale(1.05);
}
.program-slide .program-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.program-slide .program-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}
.program-slide .program-card-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.program-slide .program-card-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e89214;
    margin-top: auto;
}
.program-slide .program-card-more .fas {
    margin-left: 5px;
    font-size: 0.8em;
}
.swiper-pagination-current-programs.swiper-pagination-progressbar {
    position: static;
    margin-top: 20px;
    height: 4px;
    background: #e9ecef;
}
.swiper-pagination-current-programs.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #e89214;
    height: 100%;
}


/* --- 공통 Swiper 네비게이션 버튼 스타일 --- */
/* 버튼 그룹 위치 (각 섹션별 Swiper 내부에 배치됨) */
.swiper-nav-past-work,
.swiper-nav-current-programs {
    position: absolute;
    bottom: 25px; 
    right: 25px;
    z-index: 20;
    display: flex;
}

/* 새로운 공통 버튼 디자인 */
.custom-swiper-button-prev,
.custom-swiper-button-next {
    width: 50px;
    height: 50px;
    background: #e89214;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(232, 146, 20, 0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 2px solid rgba(232, 146, 20, 0.3);
}

.custom-swiper-button-prev:hover,
.custom-swiper-button-next:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(232, 146, 20, 0.3);
}

.swiper-button-icon {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    transition: stroke 0.3s ease;
}

/* 비활성화 상태 스타일 */
.swiper-button-disabled.custom-swiper-button-prev,
.swiper-button-disabled.custom-swiper-button-next {
    background: rgba(248, 249, 250, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: none;
}

.swiper-button-disabled.custom-swiper-button-prev .swiper-button-icon,
.swiper-button-disabled.custom-swiper-button-next .swiper-button-icon {
    stroke: #adb5bd;
}

/* 모바일 대응 */
@media (max-width: 991.98px) {
    .swiper-nav-past-work {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .past-work-showcase-section,
    .featured-programs-section {
        padding: 40px 0;
    }
    
    .past-work-showcase-section .display-4,
    .featured-programs-section .program-section-title {
        font-size: 2rem;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
}


/* --- 푸터 --- */
.chekus-footer {
    background-color: rgba(219, 86, 24, 0.85);
    color: #fff;
    padding: 20px 0;
    font-size: 0.9em;
    line-height: 1.6;
}
.chekus-footer-container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.chekus-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 25px 0;
}
.chekus-footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.chekus-footer-social .social-link {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}
.chekus-footer-social .social-link:hover {
    transform: translateY(-3px);
    color: #f0f0f0;
}
.chekus-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}
.chekus-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.chekus-footer-logo img {
    display: block;
    max-height: 55px;
    width: auto;
    border-radius: 8px;
}
.chekus-footer-logo span {
    margin-left: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}
.chekus-footer-contact p {
     margin-bottom: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #f0f0f0;
}
.chekus-footer-contact p:last-child {
     margin-bottom: 0;
}
.chekus-footer-contact a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.chekus-footer-contact a:hover {
    text-decoration: underline;
    color: #fff;
}
.chekus-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    text-align: center;
}
.chekus-footer-copyright {
    color: #f0f0f0;
    margin-bottom: 10px;
}

@media (min-width: 768px) { /* 태블릿 이상 */
    .chekus-footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .chekus-footer-logo {
        justify-content: flex-start;
        margin-bottom: 0;
    }
    .chekus-footer-contact p {
        justify-content: flex-start;
    }
    .chekus-footer-bottom {
        flex-direction: row;
    }
    .chekus-footer-copyright {
        margin-bottom: 0;
    }
}


/* --- 반응형 미디어 쿼리 --- */
@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 15px;
    }
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }
    .logo a {
        display: inline-block;
    }
    nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-right: 0;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }
    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    .menu-item {
        width: 100%;
        position: static;
    }
    .menu-item > a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        text-align: center;
    }
    .menu-item > a::after {
        display: none;
    }
    .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        padding: 10px 0 10px 25px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
    .member-area {
        width: 100%;
        margin: 15px 0 0 0;
        text-align: center;
    }
    .signup-button {
        width: auto;
        max-width: 90%;
        padding: 12px 20px;
        font-size: 1em;
    }
    main.page-main {
        padding-top: 80px;
    }
    #section-purpose {
        padding: 40px 20px;
    }
}


/* --- intro.jsp (인사말 페이지) 전용 스타일 --- */
.intro-top-visual {
    margin-top: 100px;
    padding: 100px 15px ;
    background: url('../img/bg2.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 350px;
}
.intro-top-visual .contain {
    max-width: 1200px;
    width: 100%;
}
.intro-top-visual .h5 {
     color: #e89214;
     text-transform: uppercase;
     font-weight: bold;
     font-size: 1.2rem;
}
.intro-top-visual .h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
}
.intro-top-visual.public-top-visual { /* 두 클래스를 함께 사용하여 특정성 확보 */
    background-image: url('../img/img-bg.jpg'); 
}

.intro-top-visual.news-top-visual { /* 두 클래스를 함께 사용하여 특정성 확보 */
    background-image: url('../img/img-bg2.jpg'); 
}

/* LNB (Local Navigation Bar) */
.lnb-menu-container {
    background-color: #e9ecef;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}
.lnb-dropdown .btn {
    width: 100%;
    text-align: left;
    background-color: #fff;
    border-color: #ced4da;
    color: #495057;
}
.lnb-nav {
    justify-content: center;
}
.lnb-nav .nav-link {
    color: #343a40;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}
.lnb-nav .nav-link.active,
.lnb-nav .nav-link:hover {
    color: #e89214;
    border-bottom-color: #e89214;
}
.dropdown-item.active, .dropdown-item:active {
     background-color: #e89214;
     color: white !important;
}

/* 인사말 본문 콘텐츠 */
.greeting-main-content {
    font-size: 1.15rem;
    text-align: center;
}
.greeting-main-content p,
.greeting-main-content div,
.greeting-main-content blockquote {
    line-height: 1.8;
}
.greeting-main-content .greeting-section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.5px;
}
.greeting-main-content .greeting-opening {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 2rem;
}
.greeting-main-content .greeting-paragraph {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
}
.greeting-main-content .greeting-motto {
    background-color: #f8f9fa;
    border-left: 5px solid #e89214;
    border-radius: 0.25rem;
    padding: 2.5rem 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.greeting-main-content .greeting-motto .motto-text {
    font-size: 1.7rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}
.greeting-main-content .greeting-motto .motto-footer {
    font-size: 1.15rem;
    color: #555;
}
.greeting-main-content .greeting-commitments {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.greeting-main-content .greeting-commitments p {
    margin-bottom: 1.4rem;
    font-size: 1.3rem;
}
.greeting-main-content .greeting-commitments p:last-of-type {
    margin-bottom: 0;
}
.greeting-main-content .greeting-concluding-statements {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.greeting-main-content .greeting-concluding-statements .statement {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e89214;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}
.greeting-main-content .greeting-concluding-statements .statement:last-child {
    margin-bottom: 0;
}
.greeting-main-content hr {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-top: 1px solid #ccc;
}
.greeting-main-content .greeting-signature {
    margin-top: 2.5rem;
    text-align: center;
}
.greeting-main-content .greeting-signature .date,
.greeting-main-content .greeting-signature .author {
    font-size: 1.2rem;
    color: #444;
}
.greeting-main-content .greeting-signature .date {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
/* --- 인사말 (intro.jsp) 본문 콘텐츠 스타일 끝 --- */

/* css/style.css 에 추가 */

/* --- mission.jsp (추구하는 목표 페이지) 콘텐츠 스타일 시작 --- */

.mission-content .mission-section-title { /* "체커스는 움직입니다.", "체커스는 합니다." 제목 */
    font-size: 2.4rem; /* 제목 크기 (intro.jsp의 .greeting-section-title 보다 약간 작게 설정) */
    font-weight: 700;  /* 굵게 */
    color: #343a40;    /* Bootstrap .text-dark 와 유사한 색상 */
    /* text-align: center; /* HTML에서 text-center 클래스 사용 */
    position: relative;
    padding-bottom: 0.75rem; /* 밑줄과의 간격 */
}
/* 제목 밑줄 효과 */
.mission-content .mission-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* 밑줄 너비 */
    height: 3px;  /* 밑줄 두께 */
    background-color: #e89214; /* 체커스 대표 주황색 */
    border-radius: 2px;
}


.mission-content .mission-motto { /* "청소년이 스스로..." 문구 */
    font-size: 1.3rem;  /* intro.jsp의 .greeting-opening 과 유사한 크기 */
    font-weight: 400;
    color: #495057;     /* Bootstrap .text-secondary 보다 약간 진하게 */
    line-height: 1.7;
    /* text-align: center; /* HTML에서 text-center 클래스 사용 */
    padding: 1rem 0;
    font-style: italic; /* 기울임꼴로 강조 */
}

.mission-content .mission-list {
    padding-left: 0; /* Bootstrap .list-unstyled 와 동일 효과 */
    font-size: 1.1rem;
    color: #333;
}

.mission-content .mission-list li {
    margin-bottom: 1.25rem; /* 목록 항목 간 간격 */
    line-height: 1.8;     /* 줄 간격 */
    display: flex;        /* 아이콘과 텍스트 정렬 */
    align-items: flex-start; /* 아이콘과 텍스트 상단 정렬 */
}

.mission-content .mission-list .list-icon {
    margin-right: 0.8em; /* 아이콘과 텍스트 사이 간격 */
    font-size: 1.2em;    /* 아이콘 크기 (text-primary로 색상 적용됨) */
    line-height: 1.3;    /* 아이콘 세로 정렬 미세조정 */
    min-width: 25px; /* 아이콘 영역 너비 확보 */
    text-align: center;
}
/* --- mission.jsp (추구하는 목표 페이지) 콘텐츠 스타일 끝 --- */

/* css/style.css 에 추가 */

/* --- history.jsp (연혁 페이지) 타임라인 스타일 시작 --- */
.history-content .timeline-container {
    position: relative;
    max-width: 800px; /* 타임라인 전체 너비 */
    margin: 30px auto; /* 위아래 여백 및 중앙 정렬 */
    padding: 0 20px;
}

/* 중앙 타임라인 선 (데스크탑) */
.history-content .timeline-container::before {
    content: '';
    position: absolute;
    left: 120px; /* 연도 표시 영역 너비만큼 이동 */
    top: 15px;   /* 첫번째 점과 맞추기 위한 약간의 오프셋 */
    bottom: 15px; /* 마지막 점과 맞추기 위한 약간의 오프셋 */
    width: 4px;
    background-color: #e89214; /* 체커스 대표 주황색 */
    border-radius: 2px;
    z-index: 0;
}

.history-content .timeline-item {
    position: relative;
    margin-bottom: 50px; /* 각 연도별 항목 간 간격 */
    padding-left: 150px; /* 연도와 이벤트 내용 사이 간격 (연도 너비 + 추가 여백) */
    min-height: 60px; /* 최소 높이 확보 */
}

/* 타임라인 점 */
.history-content .timeline-item::before {
    content: '';
    position: absolute;
    left: calc(120px - 9px); /* (연도 영역 너비) - (점 너비의 절반 + 테두리 두께) */
    top: 8px; /* 연도 텍스트와 수직 정렬 (font-size, line-height에 따라 조절) */
    width: 22px;
    height: 22px;
    background-color: #fff;
    border: 4px solid #e89214;
    border-radius: 50%;
    z-index: 1; /* 선 위에 오도록 */
}

.history-content .timeline-year {
    position: absolute;
    left: 0;
    top: 5px; /* 점과 시각적으로 정렬 */
    width: 100px; /* 연도 표시 너비 */
    font-size: 2.8rem; /* 연도 글자 크기 */
    font-weight: 700;
    color: #e89214; /* 체커스 대표 주황색 */
    text-align: center;
}

.history-content .timeline-events-wrapper {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative; /* 내부 요소 기준점 */
}

.history-content .timeline-event {
    margin-bottom: 15px;
    display: flex; /* 월과 내용을 가로로 배치 */
    align-items: flex-start; /* 상단 정렬 */
}
.history-content .timeline-event:last-child {
    margin-bottom: 0;
}

.history-content .event-meta { /* 월 표시 부분 */
    font-weight: 600;
    color: #333;
    min-width: 80px; /* 월 표시 영역 너비 (예: "4월~12월") */
    flex-shrink: 0; /* 줄어들지 않도록 */
    margin-right: 15px;
    font-size: 1rem;
    line-height: 1.6; /* event-description과 줄높이 맞춤 */
}

.history-content .event-description {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* 모바일 반응형 타임라인 스타일 */
@media (max-width: 767.98px) {
    .history-content .timeline-container::before {
        left: 20px; /* 모바일에서는 연도를 위로, 내용을 아래로 배치하므로 선 위치 변경 */
    }

    .history-content .timeline-item {
        padding-left: 0; /* 모바일에서는 연도가 이벤트 위로 가므로 왼쪽 패딩 불필요 */
        padding-top: 50px; /* 연도와 이벤트 내용 사이 간격 (연도 높이만큼) */
        margin-left: 45px; /* 선 오른쪽으로 내용 배치 */
    }

    .history-content .timeline-item::before {
        left: calc(20px - 9px); /* 모바일 선 위치에 맞춤 */
        top: 58px; /* 연도 아래, 이벤트 시작점 근처 */
    }

    .history-content .timeline-year {
        position: absolute; /* 연도를 타임라인 아이템 기준으로 재배치 */
        left: 0; /* 왼쪽 정렬 */
        top: 0;   /* 이벤트 내용 위 */
        width: auto; /* 자동 너비 */
        text-align: left; /* 왼쪽 정렬 */
        font-size: 2rem; /* 모바일 연도 글자 크기 */
        margin-bottom: 10px; /* 연도와 이벤트 사이 간격 */
        padding-left: 0; /* 불필요한 패딩 제거 */
    }

    .history-content .timeline-events-wrapper {
        padding: 20px; /* 모바일 내부 패딩 약간 줄임 */
    }

    .history-content .event-meta {
        min-width: 70px; /* 모바일 월 표시 영역 너비 */
        margin-right: 10px;
    }
}
/* --- history.jsp (연혁 페이지) 타임라인 스타일 끝 --- */

/* css/style.css 에 추가 */

/* --- organization.jsp (조직도 페이지) 콘텐츠 스타일 시작 --- */
.organization-content .section-page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem; /* 하단 여백 늘림 */
}

.organization-content .org-section-subtitle {
    font-size: 2rem; /* 부제목 크기 조정 */
    font-weight: 600;
    color: #333;
    margin-bottom: 2.5rem; /* 부제목 하단 여백 늘림 */
    position: relative;
    padding-bottom: 0.75rem;
}
.organization-content .org-section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px; /* 밑줄 너비 조정 */
    height: 3px;
    background-color: #e89214; /* 체커스 주황색 */
    border-radius: 2px;
}

.leadership-section .leader-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leadership-section .leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.leadership-section .leader-name {
    font-size: 1.6rem; /* 대표이사 이름 크기 */
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
}

.personnel-section .personnel-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.personnel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.personnel-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}
.personnel-card .personnel-title {
    font-size: 0.95rem;
    color: #e89214;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.personnel-card .personnel-email {
    font-size: 0.9rem;
    color: #007bff;
    word-break: break-all;
}
.personnel-card .personnel-email:hover {
    text-decoration: underline;
}

.office-contact-section .contact-info-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f9fa; /* 배경색 변경 */
    padding: 30px 40px; /* 패딩 조정 */
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e0e0e0; /* 테두리 추가 */
}
.office-contact-section .contact-info-box p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.office-contact-section .contact-info-box p:last-child {
    margin-bottom: 0;
}
.office-contact-section .contact-info-box .fas {
    color: #e89214;
    margin-right: 15px; /* 아이콘 오른쪽 여백 증가 */
    font-size: 1.2em;   /* 아이콘 크기 약간 작게 */
    width: 20px;      /* 아이콘 정렬을 위한 너비 */
    text-align: center;
}
.office-contact-section .contact-info-box a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500; /* 링크 강조 */
}
.office-contact-section .contact-info-box a:hover {
    text-decoration: underline;
}

/* 조직도 모바일 반응형 */
@media (max-width: 767.98px) {
    .organization-content .section-page-title {
        font-size: 2.2rem; /* 모바일 페이지 제목 크기 */
    }
    .organization-content .org-section-subtitle {
        font-size: 1.6rem; /* 모바일 부제목 크기 */
    }
    .leadership-section .leader-card {
        padding: 15px;
    }
    .leadership-section .leader-name {
        font-size: 1.3rem;
    }
    .office-contact-section .contact-info-box {
        padding: 20px;
    }
    .office-contact-section .contact-info-box p {
        font-size: 1rem;
    }
}

/* --- organization chart 시작 --- */
.org-chart-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-level {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

/* 세로 연결선 (첫번째 레벨과 두번째 레벨 사이) */
.org-level:first-child::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background-color: #ccc;
    transform: translateX(-50%);
}

/* 두번째 레벨 가로 연결선 */
.org-level:nth-child(2)::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 85%;
    height: 2px;
    background-color: #ccc;
    transform: translateX(-50%);
}

/* 두번째 레벨 각 노드별 세로 연결선 */
.org-level:nth-child(2) .org-node::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background-color: #ccc;
    transform: translateX(-50%);
}

.org-node {
    flex: 1 1 0;
    min-width: 200px;
    margin: 0 30px;
    position: relative;
}

.org-node-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    height: 100%; /* 높이 통일 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.org-node-root .org-node-content {
    background-color: rgba(233, 146, 20, 0.1);
    border: 1px solid rgba(233, 146, 20, 0.3);
}

.org-node-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.org-role {
    font-weight: 600;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
}

.org-manager {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.org-node-root .org-role {
    color: #e89214;
    font-size: 1.5rem;
}

/* 모바일 반응형 */
@media (max-width: 767.98px) {
    .org-level {
        flex-direction: column;
        align-items: center;
    }
    
    .org-level:nth-child(2)::before {
        display: none; /* 모바일에서는 가로 연결선 숨김 */
    }
    
    .org-node {
        margin: 10px 0;
        width: 80%;
    }
    
    /* 모바일에서 세로 연결선 */
    .org-level:first-child::after {
        height: calc(100% + 15px);
    }
    
    .org-level:nth-child(2) .org-node::before {
        top: -20px;
        height: 20px;
    }
    
    .org-level:nth-child(2) .org-node:not(:first-child)::after {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        width: 2px;
        height: 10px;
        background-color: #ccc;
    }
}

/* --- organization chart 끝 --- */

/* --- organization.jsp (조직도 페이지) 콘텐츠 스타일 끝 --- */

/* css/style.css 에 추가 */

/* --- public.jsp (교육 사업 페이지) 콘텐츠 스타일 시작 --- */

/* 섹션 제목 공통 스타일 (밑줄 있는 형태) */
.public-content .section-title-underlined {
    font-size: 2.4rem;
    font-weight: 700;
    color: #343a40;
    text-align: center;
    margin-bottom: 1.5rem; /* 부제목과의 간격 */
    padding-bottom: 1rem; /* 밑줄과의 간격 */
    position: relative;
}
.public-content .section-title-underlined::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #e89214; /* 체커스 주황색 */
    border-radius: 2px;
}

/* 섹션 1: 체인지메이커 소개 */
.changemaker-intro-section .lead { /* 부제목 스타일 */
    font-size: 1.2rem;
    font-weight: 400;
}
.changemaker-intro-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.changemaker-process .process-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004085; /* 다른 강조색 */
}
.process-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #e89214; /* 왼쪽 강조선 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.process-step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e89214;
    margin-bottom: 0.5rem;
}
.process-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}
.process-step-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}


/* 섹션 2: 연구 개발 */
.research-dev-section .research-item-card {
    background-color: #f8f9fa; /* 연한 배경 */
    padding: 25px;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s ease;
}
.research-dev-section .research-item-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.research-item-card .research-icon {
    margin-bottom: 1rem;
}
.research-item-card .research-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #004085; /* 다른 강조색 */
    margin-bottom: 0.75rem;
}
.research-item-card .research-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.research-item-card .research-period {
    font-size: 0.85rem;
    color: #777;
}


/* --- public.jsp - 섹션 3: 출강 및 협력 스타일 --- */
.external-programs-section .program-list-item {
    background-color: #fff;
    border: 1px solid #e9ecef; /* 연한 테두리 */
    border-left: 5px solid #007bff; /* Bootstrap primary color 또는 다른 강조색 */
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.external-programs-section .program-list-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.external-programs-section .program-institution {
    font-size: 1.25rem; /* 기관명 크기 */
    font-weight: 600;
    color: #343a40; /* Bootstrap .text-dark */
    margin-bottom: 0.25rem; /* 모바일에서 이름과 간격 */
}

.external-programs-section .program-name {
    font-size: 1.05rem; /* 프로그램명 크기 */
    color: #495057; /* Bootstrap .text-secondary 보다 약간 진하게 */
    line-height: 1.5;
}

.external-programs-section .program-year {
    font-size: 0.9rem;
    color: #6c757d; /* Bootstrap .text-muted */
}

/* 데스크탑에서 기관명과 프로그램명 정렬을 위한 스타일 */
@media (min-width: 768px) {
    .external-programs-section .program-list-item .row > div {
        display: flex;
        flex-direction: column;
        justify-content: center; /* 세로 중앙 정렬 (내용이 짧을 때) */
    }
    .external-programs-section .program-list-item .text-md-right {
        border-right: 1px solid #e9ecef; /* 기관명과 내용 사이에 구분선 */
        padding-right: 25px !important; /* Bootstrap 클래스 오버라이드를 위해 !important 사용 또는 더 구체적인 선택자 */
        margin-right: -1px; /* 구분선이 겹치지 않도록 */
    }
     .external-programs-section .program-list-item .col-md-9 {
        padding-left: 25px;
    }
    .external-programs-section .program-institution {
         margin-bottom: 0; /* 데스크탑에서는 하단 마진 제거 */
    }
}
/* --- public.jsp (교육 사업 페이지) 콘텐츠 스타일 끝 --- */
/* css/style.css 에 추가 */

/* --- personal.jsp (활동 사업 페이지) 콘텐츠 스타일 시작 --- */

/* 섹션 제목 공통 스타일 (public.jsp와 동일한 .section-title-underlined 재활용 또는 새 스타일) */
.personal-content .section-title-underlined { /* public.jsp와 동일 스타일 사용 시 이 부분 불필요 */
    font-size: 2.4rem;
    font-weight: 700;
    color: #343a40;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
}
.personal-content .section-title-underlined::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #e89214; /* 체커스 주황색 */
    border-radius: 2px;
}

.personal-content .section-motto { /* "청소년이 스스로..." 문구 */
    font-size: 1.3rem;
    font-weight: 400;
    color: #495057;
    line-height: 1.7;
}
.personal-content .check-list {
    list-style: none;
    padding-left: 0;
}
.personal-content .check-list li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}
.personal-content .check-list .fa-check-circle {
    margin-top: 0.2em; /* 아이콘 세로 정렬 */
}


/* 섹션 1: 운영 목표 및 중점 과제 */

.operational-aims-section .col-md-6 {
    display: flex; /* 자식 요소인 .goal-list-wrapper가 height: 100%를 올바르게 적용받기 위함 */
    flex-direction: column; /* 내부 콘텐츠 수직 정렬 */
    /* mb-4 mb-md-0 클래스가 HTML에 적용되어 모바일에서의 간격을 조절합니다. */
}

.operational-aims-section .goal-list-wrapper {
    background-color: #ffffff; /* 배경색 변경하여 각 박스 구분 */
    padding: 25px 30px;     /* 내부 여백 증가 */
    border-radius: 8px;     /* 모서리 둥글게 */
    border: 1px solid #dee2e6; /* 테두리 추가 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.07); /* 그림자 효과 */
    height: 100%; /* 부모 .col-md-6의 높이를 꽉 채움 (같은 행의 컬럼들이 동일 높이 유지) */
    display: flex; /* 내부 h3와 ul을 수직 정렬하고 공간 분배하기 위함 */
    flex-direction: column;
}

.operational-aims-section .goal-list-wrapper .subsection-title {
    font-size: 1.7rem; /* 부제목 크기 약간 증가 */
    font-weight: 600;
    color: #004085; /* 기존 강조색 유지 */
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef; /* 밑줄 색상 변경 */
}

.operational-aims-section .goal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0; /* 기본 ul 마진 제거 */
    /* flex-grow: 1; /* 만약 목록이 남은 공간을 채워야 한다면 */
}

.operational-aims-section .goal-list li {
    background-color: #f8f9fa; /* 목록 아이템 배경색 */
    padding: 18px 22px;        /* 목록 아이템 내부 여백 증가 */
    margin-bottom: 12px;       /* 목록 아이템 간 간격 증가 */
    border-radius: 6px;
    border-left: 5px solid #17a2b8; /* 기존 강조색 유지 */
    font-size: 1.05rem;         /* 목록 아이템 폰트 크기 약간 증가 */
    line-height: 1.75;          /* 줄 간격 증가 */
}
.operational-aims-section .goal-list li:last-child {
    margin-bottom: 0; /* 마지막 아이템 하단 마진 제거 */
}
/* --- personal.jsp - 섹션 1 스타일 수정 끝 --- */

/* 섹션 2: 활동 사업 소개 */
.project-introduction-section .intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.project-introduction-section .project-list .project-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-introduction-section .project-list .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.project-card .project-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e89214; /* 주황색 */
    margin-bottom: 0.5rem;
}
.project-card .project-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    min-height: 60px; /* 카드 제목 영역 높이 일관성 유지 (2줄 정도) */
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-introduction-section .additional-info p {
    font-size: 1.05rem;
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 6px;
    line-height: 1.7;
}
.project-introduction-section .definitions {
    font-size: 0.9rem;
    color: #555;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #ccc;
}
.project-introduction-section .definitions p {
    margin-bottom: 0.5rem;
}
.project-introduction-section .definitions p:last-child {
    margin-bottom: 0;
}


/* 섹션 3: 진행 사업 및 계획 */
.ongoing-plans-section .subsection {
    margin-bottom: 2.5rem; /* 각 하위 섹션(공모, 협력) 간 간격 */
}
.ongoing-plans-section .subsection-title-alt {
    font-size: 1.7rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.ongoing-plans-section .plan-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    height: 100%; /* 카드 높이 통일 */
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.plan-card .plan-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0056b3; /* 다른 강조색 */
    margin-bottom: 1rem;
}
.plan-card .plan-detail {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.plan-card .plan-detail strong {
    color: #222;
}
.plan-card .plan-status { /* Bootstrap badge 스타일 활용 */
    margin-top: auto; /* 상태 배지를 카드 하단으로 밀기 */
    align-self: flex-start; /* 왼쪽 정렬 */
    padding: 0.4em 0.7em;
    font-size: 0.85em;
}
/* --- personal.jsp (활동 사업 페이지) 콘텐츠 스타일 끝 --- */

/* css/style.css 에 추가 */

/* --- 게시판 공통 스타일 (공지사항, 활동소식 등) --- */
.board-list-content .board-table {
    margin-bottom: 0; /* 테이블 하단 마진 제거 (페이지네이션과 간격은 별도 처리) */
    border-top: 2px solid #343a40; /* 테이블 상단 강조선 */
}

.board-list-content .board-table th {
    background-color: #f8f9fa; /* 테이블 헤더 배경색 */
    font-weight: 600;
    border-bottom-width: 1px; /* 헤더 하단 선 두껍게 */
    vertical-align: middle;
}
.board-list-content .board-table td {
    vertical-align: middle;
    color: #444;
}
.board-list-content .board-table .board-title {
    color: #212529;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.board-list-content .board-table .board-title:hover {
    color: #e89214; /* 체커스 주황색 */
    text-decoration: underline;
}
.board-list-content .board-meta-mobile { /* 모바일용 추가 정보 */
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 페이지네이션 */
.pagination .page-item.active .page-link {
    background-color: #e89214;
    border-color: #e89214;
    color: white;
}
.pagination .page-link {
    color: #e89214;
}
.pagination .page-link:hover {
    color: #c77c0e;
}
.pagination .page-item.disabled .page-link {
    color: #868e96;
}

/* 게시글 보기 페이지 */
.board-view-content .board-view-header {
    padding-bottom: 1.5rem;
    /* border-bottom: 1px solid #dee2e6; */ /* hr로 대체 */
}
.board-view-content .board-view-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}
.board-view-content .board-view-meta {
    font-size: 0.95rem;
}
.board-view-content .board-view-meta .fas {
    color: #777;
}
.board-view-content .board-view-body {
    padding: 2rem 0;
    font-size: 1.1rem; /* 본문 글자 크기 */
    line-height: 1.9;  /* 본문 줄간격 */
    min-height: 200px; /* 최소 높이 확보 */
    color: #333;
}
.board-view-content .board-view-body img { /* 본문 내 이미지 반응형 처리 */
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}
.board-view-content .board-view-actions .btn {
    font-weight: 500;
}

/* --- 게시판 공통 스타일 끝 --- */
/* css/style.css 에 추가 */

/* --- 활동 소식 카드 목록 스타일 (news.jsp) --- */
.news-card-list-content .news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef; /* 카드 테두리 */
}

.news-card-list-content .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-card-list-content .news-card-link { /* 카드 전체를 링크로 */
    text-decoration: none;
    color: inherit; /* 부모 요소의 글자색 상속 */
    display: flex;
    flex-direction: column;
    height: 100%; /* d-flex align-items-stretch 부모와 함께 사용 */
}
.news-card-list-content .news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-card-list-content .news-card-img-wrap {
    width: 100%;
    padding-top: 75%; /* 4:3 비율의 이미지 영역 (height: 0; padding-top: 75%) */
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* 이미지가 없을 때 배경색 */
}

.news-card-list-content .news-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 비율 유지하며 꽉 차도록 */
    transition: transform 0.4s ease;
}
.news-card-list-content .news-card:hover .news-card-img-wrap img {
    transform: scale(1.05); /* 호버 시 이미지 약간 확대 */
}
.news-card-list-content .news-card-img-wrap .placeholder-img {
    /* Placeholder 이미지에 대한 추가 스타일 (예: 투명도, 필터 등) */
    opacity: 0.5;
}


.news-card-list-content .news-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* 제목 두 줄 이상일 때 말줄임표 (선택 사항) */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 보여줄 줄 수 */
    line-clamp: 2; /* 표준 속성 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2); /* line-height * 줄 수 (대략적인 높이 제한) */
}


.news-card-list-content .news-card-meta {
    font-size: 0.85rem;
    line-height: 1.5;
}
.news-card-list-content .news-card-meta .fa-fw {
    margin-right: 0.25rem;
}

/* .news-card-list-content .news-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    height: calc(1.6em * 3); /* 3줄 높이 예시 */
    /* overflow: hidden; */
/* } */

.news-card-list-content .news-card-readmore {
    font-weight: 500;
    padding: 0.3rem 0.8rem;
}
.news-card-list-content .news-card-readmore .fa-xs {
    font-size: 0.7em;
    vertical-align: middle;
}

/* --- 활동 소식 카드 목록 스타일 끝 --- */
/* css/style.css 에 추가 */

/* --- index.jsp - 주요 프로그램 및 소식 섹션 (featured-programs-section) --- */
.featured-programs-section {
    padding: 80px 0;
    background-color: #fff;
}

.featured-programs-section .program-section-subtitle {
    color: #0056b3;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.featured-programs-section .program-section-title {
    color: #212529;
    font-weight: 700;
    margin-bottom: 1rem;
}

.featured-programs-section .program-section-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

.notice-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notice-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notice-event-card .card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notice-event-card .card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:9 비율 */
    overflow: hidden;
}

.notice-event-card .card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.notice-event-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.notice-event-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notice-event-card .notice-event-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-event-card .notice-event-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.notice-event-card .stretched-link-simulation {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 20px;
}

.notice-event-card .stretched-link-simulation:hover {
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .notice-event-card .notice-event-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .featured-programs-section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .notice-event-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .notice-event-card .card-body {
        padding: 20px;
    }
    
    .notice-event-card .notice-event-title {
        font-size: 1.1rem;
    }
}

.sub-menu li::marker {
    display: none;
}

.sub-menu li {
    list-style: none;
}

/* 반응형 디자인을 위한 미디어 쿼리 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .main-nav {
        gap: 30px;
    }
    
    .menu-item > a {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    header {
        height: 80px;
    }
    
    .header-wrapper {
        padding: 0 20px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .signup-button span {
        display: none;
    }
    
    .signup-button {
        padding: 12px;
        border-radius: 50%;
    }
    
    .signup-button i {
        margin: 0;
    }
    
    main.page-main {
        padding-top: 100px;
    }
    
    .page-section {
        padding: 60px 0;
    }
    
    .page-section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 767.98px) {
    header {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-wrapper {
        padding: 0 15px;
    }
    
    main.page-main {
        padding-top: 90px;
    }
    
    .page-section {
        padding: 40px 0;
    }
    
    .page-section h2 {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    
    .page-section h3 {
        font-size: 1.3em;
    }
    
    .greeting-main-content .greeting-section-title {
        font-size: 2.2rem;
    }
    
    .greeting-main-content .greeting-opening {
        font-size: 1.3rem;
    }
    
    .greeting-main-content .greeting-paragraph {
        font-size: 1.1rem;
    }
    
    .mission-content .mission-section-title {
        font-size: 2rem;
    }
    
    .mission-content .mission-motto {
        font-size: 1.2rem;
    }
    
    .history-content .timeline-year {
        font-size: 2.2rem;
    }
    
    .organization-content .section-page-title {
        font-size: 2rem;
    }
    
    .organization-content .org-section-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    header {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .header-wrapper {
        padding: 0 10px;
    }
    
    main.page-main {
        padding-top: 80px;
    }
    
    .page-section {
        padding: 30px 0;
    }
    
    .page-section h2 {
        font-size: 1.4em;
        margin-bottom: 25px;
    }
    
    .page-section h3 {
        font-size: 1.2em;
    }
    
    .greeting-main-content .greeting-section-title {
        font-size: 1.8rem;
    }
    
    .greeting-main-content .greeting-opening {
        font-size: 1.1rem;
    }
    
    .greeting-main-content .greeting-paragraph {
        font-size: 1rem;
    }
    
    .mission-content .mission-section-title {
        font-size: 1.8rem;
    }
    
    .mission-content .mission-motto {
        font-size: 1.1rem;
    }
    
    .history-content .timeline-year {
        font-size: 2rem;
    }
    
    .organization-content .section-page-title {
        font-size: 1.8rem;
    }
    
    .organization-content .org-section-subtitle {
        font-size: 1.4rem;
    }
    
    .board-view-content .board-view-title {
        font-size: 1.8rem;
    }
    
    .board-view-content .board-view-body {
        font-size: 1rem;
    }
}

/* 모바일 메뉴 스타일 */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px 15px;
}

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

.mobile-menu .menu-item {
    border-bottom: 1px solid #eee;
}

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

.mobile-menu .mobile-menu-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu .sub-menu-mobile {
    display: none;
    padding-left: 15px;
    margin: 0;
    list-style: none;
}

.mobile-menu .sub-menu-mobile.active {
    display: block;
}

.mobile-menu .sub-menu-mobile li a {
    display: block;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-menu .sub-menu-mobile li a:hover {
    color: #e89214;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-actions {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.mobile-menu-actions .signup-button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    text-align: center;
}

/* 모바일 메뉴 토글 버튼 스타일 */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- organization.jsp - 주요 담당자 카드 및 모달 스타일 시작 --- */
.personnel-section .personnel-card {
    /* 기존 스타일 유지 */
    cursor: pointer; /* 클릭 가능함을 암시 */
}

.personnel-section .view-personnel-details-btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

/* 모달 오버레이 */
.personnel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 반투명 검은색 배경 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* 헤더보다 위에 오도록 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    perspective: 1000px; /* 3D 효과를 위한 원근감 */
}
.personnel-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* 모달 콘텐츠 박스 */
.personnel-modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 800px; /* 모달 최대 너비 */
    max-height: 90vh; /* 모달 최대 높이 */
    overflow-y: auto; /* 내용 길면 스크롤 */
    position: relative;
    transform: scale(0.7) rotateY(90deg); /* 초기 상태: 작고 옆으로 돌아있음 */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.personnel-modal-overlay.active .personnel-modal-content {
    transform: scale(1) rotateY(0deg); /* 활성화 시: 원래 크기로 돌아옴 */
}


.personnel-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.personnel-modal-close:hover {
    color: #333;
}

.personnel-modal-body .personnel-modal-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}
.personnel-modal-body .personnel-modal-name {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}
.personnel-modal-body .personnel-modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.personnel-modal-body .detail-section .detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e89214; /* 체커스 주황색 밑줄 */
    padding-bottom: 0.3rem;
    margin-bottom: 0.75rem;
}
.personnel-modal-body .personnel-modal-history p,
.personnel-modal-body .personnel-modal-career p {
    margin-bottom: 0.5rem; /* 이력/경력 각 항목 간 간격 */
    line-height: 1.6;
    font-size: 0.95rem;
    color: #555;
}
.personnel-modal-body .personnel-modal-history ul,
.personnel-modal-body .personnel-modal-career ul {
    padding-left: 20px;
    list-style-type: disc;
}
/* css/style.css */
.personnel-section .personnel-card-container { /* 또는 .personnel-card */
    cursor: pointer; /* 클릭 가능함을 시각적으로 표시 */
}

/* css/style.css 에 추가 */

/* --- organization.jsp - 새로운 계층형 조직도 스타일 시작 --- */
.org-chart-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    overflow-x: auto; /* 내용이 넓을 경우 가로 스크롤 */
}

.org-chart,
.org-chart ul,
.org-chart li {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: relative; /* 연결선 기준점 */
}

.org-chart {
    display: inline-block; /* 내용만큼 너비 차지 */
    text-align: center;
}

.org-chart > li > .org-node { /* 최상위 노드 */
    margin-bottom: 20px; /* 하위 레벨과의 간격 */
}

.org-chart ul {
    padding-top: 20px; /* 부모 노드와 자식 노드 사이 수직 간격 */
    display: flex; /* 자식 li들을 가로로 배치 (기본) */
    justify-content: center;
}

.org-chart li {
    padding: 0 10px; /* 형제 노드들 사이의 간격 */
    display: flex;   /* 내부 .org-node 중앙 정렬 및 연결선 위함 */
    flex-direction: column; /* 기본적으로 노드는 위, 하위 ul은 아래 */
    align-items: center;
}

/* 연결선 스타일 */
/* 부모와 자식을 잇는 수직선 */
.org-chart li > ul > li::before {
    content: '';
    position: absolute;
    top: -20px; /* 부모 ul의 padding-top 값과 일치 */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px; /* ul의 padding-top 값 */
    background-color: #ccc; /* 연결선 색상 */
}

/* 형제 노드들을 묶는 수평선 */
.org-chart li > ul > li:not(:only-child)::after { /* 자식이 둘 이상일 때만 */
    content: '';
    position: absolute;
    top: -20px; /* 부모 ul의 padding-top 값과 일치 + 수직선 상단 */
    height: 2px;
    background-color: #ccc;
    z-index: -1; /* 노드보다 뒤에 */
}
.org-chart li > ul > li:first-child:not(:only-child)::after { /* 첫 번째 자식 (형제가 있을 때) */
    left: 50%;
    width: 50%;
}
.org-chart li > ul > li:last-child:not(:only-child)::after { /* 마지막 자식 (형제가 있을 때) */
    right: 50%;
    width: 50%;
}
.org-chart li > ul > li:not(:first-child):not(:last-child)::after { /* 중간 자식들 */
    left: 0;
    width: 100%;
}


/* 팀장 아래 분기되는 구조를 위한 특별 스타일 */
.org-branches-container {
    display: flex;
    flex-direction: column; /* 위원회 그룹과 사업팀 그룹을 수직으로 */
    align-items: center; /* 중앙 정렬 */
    padding-top: 20px;
    position: relative;
}
/* 팀장에서 org-branches-container로 내려오는 수직선 */
.org-branches-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #ccc;
}

.org-branch {
    display: flex; /* 내부 li(노드)들을 가로로 배치 */
    justify-content: center;
    margin-bottom: 20px; /* 각 브랜치 그룹 사이 간격 */
    position: relative;
    padding-top: 20px; /* 위쪽 연결선 공간 */
}
/* 각 브랜치 그룹에서 위로 연결되는 선 */
.org-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #ccc;
}
/* 각 브랜치 그룹을 묶는 상위 수평선 */
.org-branch.horizontal-branch::after, /* 위원회 그룹 */
.org-branch.vertical-teams::after {  /* 사업팀 그룹 */
    content: '';
    position: absolute;
    top: 0; /* 브랜치 그룹의 시작점 */
    height: 2px;
    background-color: #ccc;
    z-index: -1;
}
/* 팀장 아래 첫번째 수평선 (위원회 + 사업팀 그룹을 연결) */
.org-branch.horizontal-branch:first-child::after {
    left: 0; /* 왼쪽은 위원회 중앙부터 */
    right: 50%; /* 오른쪽은 컨테이너 중앙까지 */
     /* 만약 위원회 그룹이 왼쪽에 있다면 left: 0; width: 50%; transform: translateX(50%); */
}
.org-branch.vertical-teams:last-child::after {
    left: 50%; /* 왼쪽은 컨테이너 중앙부터 */
    right: 0; /* 오른쪽은 사업팀 중앙까지 */
    /* 만약 사업팀 그룹이 오른쪽에 있다면 right: 0; width: 50%; transform: translateX(-50%); */
}
/* 실제로는 .org-branches-container에 하나의 긴 수평선을 그리고, 각 .org-branch로 수직선을 내리는게 더 쉬울 수 있음 */


/* 개별 노드 스타일 */
.org-node {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    display: inline-block;
    border-radius: 8px; /* 기본 사각형 */
    min-width: 160px; /* 최소 너비 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px; /* 수직 배치 시 하단 마진 */
}
.org-node span {
    display: block;
    font-weight: 500;
    font-size: 1rem;
}
.org-node small {
    display: block;
    font-size: 0.8em;
    color: #777;
}

/* 역할별 색상 및 모양 (image_b88132.png 참고, 체커스에 맞게 조정) */
.org-node-department { /* 예: 이사회/총회 (최상위) */
    background-color: #e0f2f7; /* 옅은 청록 */
    border-color: #b3e0ed;
    border-radius: 25px; /* 알약 */
    color: #006064;
}
.org-node-director { /* 예: 대표단 (중앙) */
    background-color: #f3e5f5; /* 옅은 분홍 */
    border-color: #e1bee7;
    border-radius: 50%; /* 원형 */
    width: 130px; height: 130px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-width: auto;
    padding: 15px;
}
.org-node-director span { font-size: 1.1em; }

.org-node-team-leader { /* 예: 총괄 팀장 */
    background-color: #ffecb3; /* 옅은 노랑 */
    border-color: #ffe082;
    border-radius: 50%;
    width: 120px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-width: auto;
    padding: 10px;
}
.org-node-team-leader span { font-size: 1em; }


.org-node-committee { /* 예: 이사회 회원 */
    background-color: #dcedff; /* 옅은 파랑 */
    border-color: #b3d9ff;
    border-radius: 25px; /* 알약 */
    color: #004ba0;
    min-width: 130px;
}
.org-node-team { /* 예: 각 사업팀 */
    background-color: #e8f5e9; /* 옅은 초록 */
    border-color: #c8e6c9;
    border-radius: 25px; /* 알약 */
    color: #1b5e20;
    min-width: 140px;
}

/* 모바일 반응형 (더 간단한 수직 리스트로 변경) */
@media (max-width: 767.98px) {
    .org-chart ul,
    .org-branch {
        flex-direction: column; /* 수직으로 쌓음 */
        align-items: center; /* 가운데 정렬 */
    }
    .org-chart li {
        padding: 0 0 20px 0; /* 하단 간격만 */
    }
    .org-chart li::after, /* 모바일에서 가로선 단순화 또는 제거 */
    .org-branch::after {
        display: none; 
    }
    .org-chart li > ul > li::before { /* 수직선 유지 */
        left: 50%;
        transform: translateX(-50%);
    }
     /* 팀장 아래 가지들도 수직으로 */
    .org-branches-container {
        padding-top: 20px; /* 팀장과의 간격 */
    }
    .org-branch::before { /* 각 브랜치 그룹의 위쪽 연결선 */
        left: 50%;
        transform: translateX(-50%);
        height: 20px; /* 팀장 아래 수평선까지의 거리 */
    }
    .org-branch.horizontal-branch,
    .org-branch.vertical-teams {
        margin-bottom: 0; /* 그룹간 마진 제거하고 각 노드가 마진 갖도록 */
    }
    .org-node {
        min-width: 200px; /* 모바일에서 너비 확보 */
        margin-bottom: 15px;
    }
}
/* webapp/css/style.css */

/* --- (기존 데스크탑 헤더 스타일은 유지) --- */
/* header, header.scrolled, .header-wrapper, .logo, .main-nav, .menu-item, .sub-menu, .header-actions, .signup-button 등 */


/* --- 모바일 메뉴 관련 스타일 (기존 CSS와 통합 및 수정) --- */
.mobile-menu-toggle {
    display: none; /* 기본적으로 숨김 (미디어쿼리에서 d-lg-none 대신 사용) */
    flex-direction: column;
    justify-content: space-around;
    width: 28px;  /* 버튼 크기 */
    height: 22px; /* 버튼 크기 */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10001; /* 모바일 메뉴보다 위에 오도록 */
    order: 3; /* header-actions 내에서 순서 (필요시) */
}
.mobile-menu-toggle span {
    display: block;
    width: 100%; /* 버튼 너비에 맞춤 */
    height: 2.5px; /* 선 두께 */
    background: #333; /* 아이콘 색상 */
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}
/* 햄버거 아이콘 X자 변형 (토글 버튼에 .active 클래스 추가 시) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.25px) rotate(45deg); /* 선 간격에 맞춰 translateY 값 조절 */
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.25px) rotate(-45deg); /* 선 간격에 맞춰 translateY 값 조절 */
}

.mobile-menu {
    /* ... (이전 답변의 .mobile-menu 스타일 유지 - 슬라이드 패널) ... */
    position: fixed; top: 0; left: 0; width: 280px;
    max-width: 85%; /* 화면 너비의 85% 또는 고정 너비 */
    height: 100vh; background: #fff; z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow-y: auto; 
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    /* 헤더 높이만큼 상단 패딩 (JS에서 동적으로 설정하거나, 고정 값 사용) */
    /* padding-top: 70px; /* 예시: 모바일 헤더 높이가 70px일 경우 */
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-menu-close {
    position: absolute; top: 15px; right: 20px; font-size: 1.8rem;
    color: #aaa; background: none; border: none; cursor: pointer; padding: 5px; line-height: 1;
}
.mobile-menu-close:hover { color: #333; }

.mobile-main-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-main-nav .menu-item { border-bottom: 1px solid #f0f0f0; }
/* ... (모바일 메뉴 내부 스타일은 이전 답변 참고) ... */


/* --- 반응형 미디어 쿼리 (헤더 관련 최적화) --- */

/* 태블릿 및 모바일 (lg breakpoint 이하) */
@media (max-width: 991.98px) {
    header, header.scrolled {
        height: 70px; /* 모바일 기본 헤더 높이 */
    }
    .header-wrapper {
        padding: 0 20px; /* 모바일 헤더 좌우 패딩 */
        /* 로고 중앙, 토글 왼쪽, 액션 오른쪽을 위한 Flexbox 실험 (HTML 구조 변경이 더 확실) */
        /* justify-content: normal; /* space-between 대신 */
    }
    .logo {
        margin-right: 0; /* 로고 오른쪽 마진 제거 */
        /* 로고 중앙 정렬 시도 (HTML 구조 변경 없이 CSS만으로는 한계가 있음) */
        /* position: absolute; left: 50%; transform: translateX(-50%); */
    }
    .logo img, header.scrolled .logo img {
        height: 35px; /* 모바일용 로고 크기 */
    }
    
    .main-nav { /* 데스크탑 네비게이션 숨김 */
        display: none !important; 
    }
    .mobile-menu-toggle { /* 모바일 토글 버튼 보이기 */
        display: flex !important;
        /* order: -1; /* 로고보다 왼쪽에 배치하고 싶을 경우 (HTML 순서 변경이 더 좋음) */
    }
    
    .header-actions {
        /* margin-left: auto; /* 토글 버튼이 왼쪽에 있다면, 액션 버튼들을 오른쪽으로 밀기 */
    }
    .header-actions .signup-button span.d-none.d-md-inline { /* "단체 가입" 텍스트 숨김 */
        display: none !important;
    }
    .header-actions .signup-button { /* 가입 버튼 아이콘만 보이도록 */
        padding: 8px; /* 아이콘 버튼 크기 */
        width: 40px;  /* 정사각형 버튼 */
        height: 40px;
        border-radius: 50%;
    }
    .header-actions .signup-button i {
        margin: 0; /* 아이콘 중앙 정렬 */
        font-size: 1rem;
    }
    .mobile-menu {
        padding-top: 70px; /* 변경된 헤더 높이만큼 패딩 */
    }
}

/* 더 작은 모바일 화면 (sm breakpoint 이하) */
@media (max-width: 767.98px) {
    header, header.scrolled {
        height: 60px; /* 더 작은 헤더 높이 */
    }
    .header-wrapper {
        padding: 0 15px; /* 더 작은 좌우 패딩 */
    }
    .logo img, header.scrolled .logo img {
        height: 30px; /* 더 작은 로고 크기 */
    }
    .mobile-menu {
        padding-top: 60px; /* 변경된 헤더 높이만큼 패딩 */
    }
    .header-actions .signup-button { /* 가입 아이콘 버튼 크기 */
        width: 36px;
        height: 36px;
        padding: 7px;
    }
     .header-actions .signup-button i {
        font-size: 0.9rem;
    }
    .mobile-menu-toggle { /* 햄버거 아이콘 크기 */
        width: 24px;
        height: 20px;
    }
    .mobile-menu-toggle span { height: 2px; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* 아주 작은 모바일 화면 (선택 사항) */
@media (max-width: 575.98px) {
    .header-wrapper {
        padding: 0 10px;
    }
}

/* webapp/css/style.css 에 추가 */

/* --- public.jsp (교육 사업 페이지) 콘텐츠 스타일 추가 --- */

/* 섹션 1: 체인지메이커 소개 이미지 */
.changemaker-intro-section img {
    max-height: 450px; /* 이미지 최대 높이 제한 (선택 사항) */
    object-fit: cover;
}

/* 섹션 2: 커리큘럼 카드 */
.curriculum-details-section .curriculum-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    height: 100%; /* d-flex align-items-stretch 와 함께 사용 */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.curriculum-details-section .curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.curriculum-card .curriculum-icon {
    font-size: 1.5rem; /* 아이콘 크기 */
    margin-bottom: 1rem;
    text-align: center; /* 아이콘 중앙 정렬 */
}
.curriculum-card .curriculum-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-align: center; /* 제목 중앙 정렬 */
    flex-grow: 0; /* 제목은 내용만큼만 차지 */
}
.curriculum-card .curriculum-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1; /* 설명 부분이 남은 공간 채우도록 */
    text-align: left; /* 설명은 왼쪽 정렬 */
}

/* 섹션 3: 출강 및 협력 - 6단계 소개 스타일 */
.collaboration-steps-container {
    margin-top: 2rem;
}
.collaboration-step-item {
    text-align: center;
    margin-bottom: 30px; /* 각 아이템 간격 */
    display: flex; /* 내부 요소 수직 정렬 및 높이 통일 */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 아이콘과 텍스트를 위에서부터 배치 */
}
.collaboration-step-item .step-icon-wrapper {
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
    border-radius: 50%; /* 원형 배경 */
    display: flex;
    flex-direction: column; /* 숫자와 아이콘 수직 배치 */
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 3px solid #e89214; /* 체커스 주황색 테두리 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #e89214; /* 아이콘 색상 */
}
.collaboration-step-item:hover .step-icon-wrapper {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 5px 15px rgba(232, 146, 20, 0.2);
}
.collaboration-step-item .step-number {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px; /* 숫자와 아이콘 사이 간격 */
}
.collaboration-step-item .step-icon-wrapper .fas {
    font-size: 2.2rem; /* 아이콘 크기 */
}
.collaboration-step-item .step-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
    min-height: calc(1.1rem * 1.4 * 2); /* 최소 2줄 높이 확보 (줄바꿈 고려) */
}

/* 출강처 목록 스타일 */
.lecture-list .lecture-item {
    border-left: 4px solid #007bff; /* Bootstrap primary color 또는 다른 강조색 */
    margin-bottom: 10px;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.lecture-list .lecture-institution {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}
.lecture-list .lecture-detail {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
/* --- public.jsp (교육 사업 페이지) 콘텐츠 스타일 끝 --- */
/* webapp/css/style.css 에 추가 */

/* --- public.jsp - 체인지메이커 소개 섹션 아이콘 스타일 --- */
.changemaker-intro-section .education-concept-icon-container {
    /* 아이콘 컨테이너에 대한 특별한 스타일이 필요하다면 여기에 추가 */
    /* 예: 최소 높이, 특정 배경 등 */
    padding: 20px 0; /* 아이콘 위아래 여백 */
}

.changemaker-intro-section .education-concept-icon-container .fas { /* Font Awesome 아이콘 */
    /* 아이콘 기본 색상 (Bootstrap text-primary 대신 사용하거나, 덮어쓰기) */
    /* color: #e89214; /* 예: 체커스 주황색 */
    /* color: #007bff; /* 예: Bootstrap primary 색상 */
    
    /* 배경색에 따라 아이콘 색상 변경 */
    /* 만약 이 섹션의 배경이 흰색(#fff) 또는 매우 밝은 회색(#f9f9f9)이라면,
       아이콘 색상은 어두운 계열 또는 체커스 브랜드 색상이 좋습니다.
       현재 HTML에서는 text-primary (파란색 계열)를 사용하고 있습니다. 
       이를 체커스 주황색으로 변경하려면 아래와 같이 할 수 있습니다.
    */
    color: #e89214; /* 체커스 대표 주황색 */
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* 약간의 그림자 (선택 사항) */
}

/* 만약 섹션 배경이 어둡다면 아이콘 색상을 밝게 해야 합니다. */
/* 예시: .changemaker-intro-section.bg-dark .education-concept-icon-container .fas { color: #fff; } */


/* public.jsp의 .section-title-underlined 스타일이 section h2에 적용되므로,
   만약 changemaker-intro-section 내부의 h2에 다른 스타일을 주고 싶다면 여기서 재정의합니다.
   현재 HTML에서는 text-align: left; 로 이미 개별 설정되어 있습니다.
*/
.changemaker-intro-section .section-title-underlined {
    text-align: left !important; /* HTML의 인라인 스타일보다 우선 적용하려면 !important 사용 가능 (권장하지는 않음) */
                               /* 또는 HTML에서 style 속성 제거 후 여기서 제어 */
    margin-left: 0 !important;
    transform: none !important;
    /* 밑줄도 왼쪽 정렬되도록 수정 */
}
.changemaker-intro-section .section-title-underlined::after {
    left: 0;
    transform: translateX(0);
     width: 70px; /* 밑줄 너비는 유지하거나 조정 */
}

/* 텍스트 영역의 lead 클래스 스타일 (선택적 미세 조정) */
.changemaker-intro-section .col-md-7 p.lead {
    font-size: 1.15rem; /* 기존 1.2rem에서 약간 조정 */
    color: #555; /* text-muted보다 약간 더 진하게 */
}

/* --- public.jsp - 체인지메이커 소개 섹션 아이콘 스타일 끝 --- */

.public-content .page-section {
    background-color: #f4f4f4;
    padding: 60px 0;
}

.public-content .page-section:nth-of-type(odd) {
    background-color: #f4f4f4;
}

.public-content .curriculum-details-section {
    background-color: #f4f4f4;
}

.public-content .external-programs-section {
    background-color: #f4f4f4;
}

.public-content .changemaker-intro-section {
    background-color: #f4f4f4;
}

@media (max-width: 767.98px) {
    header {
        height: 60px;
        padding: 0;
    }

    .header-wrapper {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        height: 40px;
    }

    .logo img {
        height: 35px;
        width: auto;
    }

    .mobile-menu-toggle {
        width: 24px;
        height: 24px;
        padding: 0;
        margin-left: 15px;
    }

    .mobile-menu-toggle span {
        height: 2px;
        width: 24px;
    }

    .signup-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .signup-button i {
        font-size: 1rem;
    }

    .mobile-menu {
        top: 60px;
        padding: 20px 15px;
    }

    .mobile-menu .menu-item > a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .mobile-menu .sub-menu-mobile {
        padding-left: 15px;
    }

    .mobile-menu .sub-menu-mobile li a {
        font-size: 1rem;
        padding: 10px 0;
    }

    .mobile-menu-actions {
        padding: 15px;
    }

    .mobile-menu-actions .signup-button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
}

/* iPhone SE, iPhone 5/5S (320px) */
@media (max-width: 359.98px) {
    .header-wrapper {
        padding: 0 10px;
    }

    .logo img {
        height: 30px;
    }

    .signup-button {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .mobile-menu-toggle {
        width: 22px;
        height: 22px;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }
}

/* 모바일 헤더 스타일 (안드로이드/iOS) */
@media (max-width: 767.98px) {
    header {
        height: 56px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header-wrapper {
        height: 56px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        height: 32px;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 32px;
        width: auto;
    }

    .mobile-menu-toggle {
        width: 24px;
        height: 24px;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .signup-button {
        height: 36px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #e89214;
        color: #fff;
        border: none;
        transition: background-color 0.3s ease;
    }

    .signup-button:hover {
        background-color: #d17f0f;
    }

    .signup-button i {
        font-size: 16px;
        margin-right: 4px;
    }

    .mobile-menu {
        top: 56px;
        height: calc(100vh - 56px);
        background-color: #fff;
        padding: 16px;
    }

    .mobile-menu .menu-item {
        margin-bottom: 8px;
    }

    .mobile-menu .mobile-menu-parent {
        padding: 12px 0;
        font-size: 16px;
        font-weight: 500;
    }

    .mobile-menu .sub-menu-mobile {
        padding-left: 16px;
    }

    .mobile-menu .sub-menu-mobile li a {
        padding: 10px 0;
        font-size: 14px;
        color: #666;
    }

    .mobile-menu-close {
        top: 12px;
        right: 12px;
        font-size: 24px;
        color: #333;
    }

    .mobile-menu-actions {
        margin-top: 16px;
        padding: 16px;
    }

    .mobile-menu-actions .signup-button {
        width: 100%;
        height: 44px;
        font-size: 16px;
    }
}

/* iPhone SE, iPhone 5/5S (320px) */
@media (max-width: 359.98px) {
    .header-wrapper {
        padding: 0 12px;
    }

    .logo img {
        height: 28px;
    }

    .signup-button {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

    .signup-button i {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        width: 22px;
        height: 22px;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }
}

/* iOS 기기 대응 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767.98px) {
        header {
            padding-top: env(safe-area-inset-top);
        }

        .mobile-menu {
            padding-bottom: env(safe-area-inset-bottom);
        }

        .mobile-menu-actions {
            padding-bottom: calc(16px + env(safe-area-inset-bottom));
        }
    }
}

/* 데스크탑 헤더 기본 스타일 */
.desktop-header {
    display: block;
}

.mobile-header {
    display: none;
}

/* 모바일 헤더 스타일 */
@media (max-width: 767.98px) {
    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-header-wrapper {
        height: 100%;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-logo {
        height: 32px;
    }

    .mobile-logo img {
        height: 100%;
        width: auto;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-signup-button {
        height: 36px;
        padding: 0 16px;
        border-radius: 18px;
        background-color: #e89214;
        color: #fff;
        border: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-signup-button i {
        font-size: 16px;
    }

    .mobile-menu-button {
        width: 24px;
        height: 24px;
        padding: 0;
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
    }

    /* 모바일 네비게이션 패널 */
    .mobile-nav-panel {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
    }

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

    .mobile-nav-header {
        padding: 16px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav-header h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .mobile-nav-close {
        width: 32px;
        height: 32px;
        padding: 0;
        background: none;
        border: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
    }

    .mobile-nav {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
    }

    .mobile-nav-section {
        margin-bottom: 24px;
    }

    .mobile-nav-section h3 {
        margin: 0 0 12px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }

    .mobile-nav-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-section li {
        margin-bottom: 8px;
    }

    .mobile-nav-section a {
        display: block;
        padding: 12px 0;
        color: #666;
        text-decoration: none;
        font-size: 15px;
    }

    .mobile-nav-section a:hover {
        color: #e89214;
    }

    .mobile-nav-footer {
        padding: 16px;
        border-top: 1px solid #eee;
    }

    .mobile-signup-button-full {
        width: 100%;
        height: 44px;
        border-radius: 22px;
        background-color: #e89214;
        color: #fff;
        border: none;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .mobile-signup-button-full i {
        font-size: 18px;
    }
}

/* iOS 기기 대응 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767.98px) {
        .mobile-header {
            padding-top: env(safe-area-inset-top);
        }

        .mobile-nav-panel {
            padding-bottom: env(safe-area-inset-bottom);
        }

        .mobile-nav-footer {
            padding-bottom: calc(16px + env(safe-area-inset-bottom));
        }
    }
}

/* 작은 화면 대응 (320px) */
@media (max-width: 359.98px) {
    .mobile-header-wrapper {
        padding: 0 12px;
    }

    .mobile-logo {
        height: 28px;
    }

    .mobile-signup-button {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

    .mobile-signup-button i {
        font-size: 14px;
    }

    .mobile-menu-button {
        width: 22px;
        height: 22px;
    }
}