/* 기본 스타일 및 폰트 설정 */
:root {
    --primary-color: #006837;
    --secondary-color: #b6d386;
    --background-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #222;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

/* 헤더 및 드롭다운 메뉴 스타일 */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding 0.4s ease;
    padding: 1.5rem 5%;
}

#main-header .logo img {
    display: block;
    transition: height 0.4s ease;
    height: 80px;
}

/* 최상위 ul에만 flex를 적용하도록 직접 자식 선택자(>) 사용 */
#main-header nav>ul {
    list-style: none;
    display: flex;
}

#main-header nav ul li {
    position: relative;
}

#main-header nav ul li a {
    padding: 0 1rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    transition: font-size 0.4s ease, color 0.3s ease;
    font-size: 1.1rem;
    display: block;
    line-height: 40px;
}

#main-header nav ul li a:hover {
    color: var(--secondary-color);
}


.news-link {
    text-decoration: none !important; /* 밑줄 강제 제거 */
    color: inherit !important;        /* 링크 특유의 파란색 제거하고 원래 글자색 유지 */
    display: block;                   /* div들을 감싸고 있으므로 블록 요소로 설정 */
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    width: 100%;
    color: #333;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 2;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#main-header.scrolled {
    padding: 1rem 5%;
}



#main-header.scrolled .logo img {
    height: 60px;
}

#main-header.scrolled nav ul li a {
    font-size: 1rem;
    line-height: 32px;
}

/* 히어로 섹션 (Bright & Hopeful Concept Redesign) */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    /* [변경] 밝고 희망찬 배경 이미지 + 화이트 그라데이션 오버레이 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.4) 100%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* [추가] 배경에 은은한 애니메이션 효과 (선택사항) */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 104, 55, 0.05) 0%, transparent 40%);
    /* 브랜드 컬러 살짝 가미 */
    pointer-events: none;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    flex: 1;
    text-align: left;
}

.hero-line {
    width: 0;
    height: 4px;
    /* 조금 더 두껍게 */
    background-color: var(--primary-color);
    /* 녹색으로 변경하여 신뢰감 강조 */
    margin-bottom: 2rem;
    position: relative;
    animation: slideRight 1s ease-out forwards;
    animation-delay: 0.1s;
}

.hero-line::after {
    content: '';
    position: absolute;
    right: -7px;
    top: -10px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}

/* [변경] 텍스트 색상을 어둡게 변경 (가독성 확보) */
#hero h1 {
    font-size: 3.6rem;
    /* 크기 약간 확대 */
    font-weight: 900;
    line-height: 1.15;
    color: #111;
    /* 진한 검정 */
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

#hero h1 .highlight {
    color: var(--primary-color);
    /* 브랜드 그린 컬러 */
    position: relative;
    display: inline-block;
}

/* [추가] 하이라이트 밑줄 효과 */
#hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(182, 211, 134, 0.4);
    /* 연한 연두색 (secondary color opacity) */
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-desc {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    /* 진한 회색 */
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-desc-sub {
    font-size: 1rem;
    color: #555;
    /* 중간 회색 */
    margin-bottom: 3rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 104, 55, 0.2);
    /* 그림자 추가 */
}

.hero-btn:hover {
    background-color: #004d29;
    /* 더 진한 녹색 */
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 104, 55, 0.3);
}

.hero-btn .arrow {
    margin-left: 1rem;
    font-size: 1.2rem;
}

/* 통계 카드 스타일 (밝은 배경에서도 잘 보이도록 그림자/테두리 조정) */
.hero-stats-card {
    flex: 0 0 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    /* 불투명도 조절 */
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    /* 부드러운 그림자 */
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* 아주 연한 테두리 */
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    /* 블러 효과 */
}

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

.stat-label {
    display: block;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-value .unit {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 2px;
    color: #333;
}

.stat-footer {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 0.8rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Marquee Styles */
.stat-marquee {
    grid-column: 1 / -1;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1rem 0;
    white-space: nowrap;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.marquee-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    display: inline-grid;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background: white;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    justify-items : center;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 콘텐츠 섹션 (index.html) */
.content-section {
    padding: 6rem 5%;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

/* =========================================
   Education Section Redesign (Bright & Clean Ver.)
   ========================================= */

#education {
    background-color: #ffffff;
    /* 배경을 흰색으로 변경 */
    padding: 8rem 0;
    color: #333;
    /* 기본 텍스트 색상 변경 */
    position: relative;
}

/* 배경에 아주 연한 회색 사선 패턴 추가 (선택사항 - 밋밋함 방지) */
#education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, #f9f9f9 25%, transparent 25%, transparent 75%, #f9f9f9 75%, #f9f9f9),
        linear-gradient(45deg, #f9f9f9 25%, transparent 25%, transparent 75%, #f9f9f9 75%, #f9f9f9);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.education-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.education-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #222;
    /* 제목 색상 진하게 */
}

.education-header p {
    color: #666;
    /* 설명 텍스트 회색 */
    font-size: 1.15rem;
}

/* 컨테이너 */
.education-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 700px;
    min-height: 600px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    /* 전체 컨테이너에 부드러운 그림자 */
}

/* 개별 카드 */
.edu-card {
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: default;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* 테두리를 연한 회색으로 */
}

/* [중요] 오버레이를 '밝은 화이트' 톤으로 변경 */
.edu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 평소: 이미지가 살짝 보이도록 반투명 흰색 */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    /* 살짝 블러 처리하여 텍스트 가독성 높임 */
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    z-index: 1;
}

.edu-card:hover {
    flex: 3;
}

/* 호버 시: 텍스트가 더 잘 보이도록 흰색을 더 진하게 */
.edu-card:hover .edu-overlay {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
}

.edu-inner-layout {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0 5%;
    align-items: center;
    justify-content: center;
    transition: justify-content 0.6s ease;
}

.edu-card:hover .edu-inner-layout {
    justify-content: space-between;
}

/* [좌측] 타이틀 영역 */
.edu-left {
    text-align: center;
    transition: all 0.5s ease;
    max-width: 100%;
    flex-shrink: 0;
}

.edu-card:hover .edu-left {
    text-align: left;
    max-width: 45%;
}

.edu-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    /* 브랜드 컬러 유지 */
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.edu-left h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    transition: margin-bottom 0.4s ease;
    color: #111;
    /* 제목 검정색 */
}

.edu-card:hover h3 {
    margin-bottom: 1.5rem;
}

/* 설명 텍스트 */
.edu-main-desc {
    font-size: 1.1rem;
    color: #555;
    /* 진한 회색으로 변경 */
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-weight: 500;
}

/* 버튼 스타일 변경 (라인 버튼 -> 솔리드 느낌 or 진한 라인) */
.edu-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    /* 브랜드 컬러 테두리 */
    border-radius: 50px;
    color: var(--primary-color);
    /* 브랜드 컬러 텍스트 */
    text-decoration: none;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    pointer-events: none;
    background: transparent;
}

.edu-card:hover .edu-main-desc {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 2.5rem;
    transform: translateY(0);
}

.edu-card:hover .edu-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* 버튼들을 감싸는 컨테이너: 버튼 사이 간격과 정렬 담당 */
.edu-btn-group {
    display: flex;
    gap: 10px;               /* 버튼 사이 간격 */
    align-items: center;
    margin-top: 0;
    opacity: 0;              /* 초기 상태 숨김 (데스크탑) */
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    pointer-events: none;    /* 숨겨진 상태에서 클릭 방지 */
}

/* 호버 시 그룹 전체가 나타나도록 설정 */
.edu-card:hover .edu-btn-group {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.edu-btn {
    /* 기존 스타일 유지 */
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem; /* 좌우 패딩을 약간 줄여서 두 개가 들어갈 공간 확보 */
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;     /* 폰트 사이즈 미세 조정 */
    background: transparent;
    transition: all 0.3s ease;
    
    /* [변경] 애니메이션 제어권은 부모(.edu-btn-group)에게 넘김 */
    opacity: 0; 
    transform: none;
    pointer-events: auto; 
    margin-top: 0; 
}


.edu-btn:hover {
    background-color: var(--primary-color);
    color: white;
    /* 호버 시 반전 */
    box-shadow: 0 5px 15px rgba(0, 104, 55, 0.2);
}

.edu-btn .arrow {
    margin-left: 10px;
    transition: transform 0.3s;
}

.edu-btn:hover .arrow {
    transform: translateX(5px);
}

/* [우측] 리스트 영역 */
.edu-right {
    width: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    transition: width 0.6s ease, opacity 0.5s ease 0.2s;
}

.edu-card:hover .edu-right {
    width: 50%;
    opacity: 1;
}

/* 리스트 박스 디자인 변경 (White Box with Shadow) */
.edu-program-list {
    list-style: none;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.6);
    /* 더 투명하게 */
    backdrop-filter: blur(15px);
    /* 블러 효과 강화 */
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* 부드러운 그림자 */
}

.program-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    /* 구분선 연한 회색 */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    border-radius: 12px;
    text-align: left;
}

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

.program-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.prog-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    /* 제목 검정 */
}

.program-item:hover .prog-name {
    color: var(--primary-color);
}

.prog-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.95rem;
    color: #666;
    /* 설명 회색 */
    line-height: 1.5;
    transition: all 0.4s ease;
}

.program-item:hover .prog-detail {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* 데스크탑 레이아웃 */
@media (min-width: 1024px) {
    .education-container {
        flex-direction: row;
    }

    .edu-card {
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        /* 세로 구분선도 연하게 */
    }

    .edu-card:last-child {
        border-right: none;
    }
}

/* 모바일 레이아웃 */
@media (max-width: 1024px) {
    .education-container {
        height: auto;
        box-shadow: none;
    }

    .edu-card {
        flex: none;
        height: auto;
        min-height: 400px;
        margin-bottom: 1.5rem;
        border-radius: 20px;
        /* 모바일에서는 둥글게 */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border: none;
    }

    .edu-inner-layout {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 3rem 2rem;
    }

    .edu-left {
        text-align: left;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .edu-left h3 {
        margin-bottom: 1rem;
        /* 모바일에서는 항상 보임 */
    }

    .edu-main-desc,
    .edu-btn {
        max-height: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin-bottom: 1.5rem;
    }

    .edu-right {
        width: 100%;
        opacity: 1;
    }

    .edu-card:hover {
        flex: none;
    }

    /* 모바일에서는 오버레이를 더 진하게 해서 가독성 확보 */
    .edu-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    .edu-btn-group {
        opacity: 1;           /* 모바일에서는 항상 보임 */
        transform: none;
        pointer-events: auto;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;      /* 화면이 좁으면 줄바꿈 */
    }
    
    /* 모바일에서 버튼들이 꽉 차보이지 않게 조정 */
    .edu-btn {
        margin-bottom: 0;     /* 그룹의 마진을 사용하므로 버튼 자체 마진 제거 */
    }
}



/* =========================================
   Certification Section (Glassmorphism Redesign)
   ========================================= */

#certification {
    background-color: #f4f6f8;
    /* 배경을 아주 연한 그레이로 변경하여 카드 강조 */
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

/* 배경 장식 (선택사항: 은은한 빛 효과) */
#certification::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 104, 55, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.cert-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.cert-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cert-header p {
    color: #666;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.cert-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 카드 공통 스타일 (Glassmorphism Base) */
.cert-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 480px;
    /* 적절한 높이 설정 */
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* 거대한 워터마크 아이콘 (배경) */
.cert-card::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-size: 18rem;
    opacity: 0.08;
    color: white;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.cert-card:hover::before {
    transform: rotate(-10deg) scale(1.1);
    opacity: 0.12;
}

/* --- Theme 1: Management System (Green/Teal Gradient) --- */
.cert-card.management {
    background: linear-gradient(135deg, #006837 0%, #1e8e56 100%);
    /* Brand Primary */
}

.cert-card.management::before {
    content: '\f0a1';
    /* Bullhorn or Check-circle or Building */
    content: '\f19c';
    /* Bank/Institution Icon */
}

/* --- Theme 2: Safe Zone (Blue/Navy Gradient) --- */
.cert-card.safezone {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    /* Trust Blue */
}

.cert-card.safezone::before {
    content: '\f3ed';
    /* Shield-check Icon */
}


/* 카드 내부 요소 */
.cert-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    align-self: flex-start;
}

.cert-content h3 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cert-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0;
}

.cert-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.cert-arrow-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cert-card:hover .cert-arrow-icon {
    background: white;
    color: var(--heading-color);
    /* Hover시 아이콘 색상 반전 효과 */
    transform: translateX(5px);
}

/* 반응형 */
@media (max-width: 768px) {
    .cert-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cert-card {
        height: auto;
        min-height: 380px;
        padding: 2.5rem 2rem;
    }

    .cert-card::before {
        font-size: 14rem;
    }

    .cert-content h3 {
        font-size: 2rem;
    }
}


/* =========================================
   Newsroom Section Design (Slider Ver.)
   ========================================= */

#newsroom {
    background-color: #f8f9fa;
    padding: 6rem 5%;
    color: #333;
    overflow: hidden;
    /* 섹션 밖으로 나가는 요소 숨김 */
}

/* 상단 헤더 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 1rem;
}

.news-title-group {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

#newsroom h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #222;
    margin: 0;
    line-height: 1;
}

/* 탭 스타일 */
.news-tabs {
    display: flex;
    gap: 1.5rem;
}

.tab-item {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #999;
    padding-bottom: 1rem;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.tab-item.active {
    color: #222;
    font-weight: 800;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #222;
}

/* 컨트롤 버튼 */
.news-controls {
    display: flex;
    gap: 0.8rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    border-color: #222;
    color: #222;
    background-color: #fff;
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* --- 슬라이더 레이아웃 핵심 --- */

/* 마스크: 넘치는 내용을 잘라냄 */
.news-slider-mask {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2rem 0;
    /* 그림자 잘림 방지 여백 */
}

/* 트랙: 실제로 움직이는 긴 띠 */
.news-track {
    display: flex;
    gap: 20px;
    /* 카드 사이 간격 */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 탭 필터링 시 display:none 요소가 생기면 flex가 자동으로 붙음 */
}

/* 카드 스타일 */
.news-card {
    /* 가로 4개 배치 계산:
       전체폭(100%)에서 간격 3개(20px * 3 = 60px)를 뺀 후 4로 나눔.
       flex-shrink: 0 은 필수 (찌그러짐 방지)
    */
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    /* Flexbox 버그 방지 */

    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
    display: flex;
    flex-direction: column;
    height: 380px;
    /* 세로 사이즈 통일 (화살표 이동 시 일관성) */
    cursor: pointer;
}

/* 필터링 시 숨김 처리 */
.news-card.hidden {
    display: none;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-img-wrapper {
    width: 100%;
    height: 160px;
    /* 이미지 높이 고정 */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-content {
    flex-grow: 1;
    margin-bottom: 1rem;
    overflow: hidden;
}

.news-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(0, 104, 55, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.news-headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration : none;

    /* 2줄 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;

    /* 2줄 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    flex-shrink: 0;
}

.news-day {
    font-size: 2.5rem;
    font-weight: 800;
    color: #222;
    line-height: 0.8;
}

.news-ym {
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
}

/* 반응형: 모바일에서는 1개씩 보이게 변경 */
@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 calc((100% - 20px) / 2);
        /* 태블릿 2개 */
    }
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-controls {
        align-self: flex-end;
        /* 모바일에서도 버튼 사용 가능하게 배치 */
        margin-top: -3rem;
    }

    .news-card {
        flex: 0 0 100%;
        /* 모바일 1개 */
        height: auto;
    }
}

/* 푸터 */
footer {
    background: #2a2a2a;
    color: #a0a0a0;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.company-info {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    line-height: 1.8;
}

.company-info strong {
    color: #ffffff;
    font-size: 1rem;
}

.copyright {
    margin-top: 1rem;
    color: #777;
}

.legal-notice {
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #444;
    padding-top: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Apply Animations to Hero Elements */
#hero h1,
.hero-desc,
.hero-desc-sub,
.hero-btn,
.hero-stats-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

#hero h1 {
    animation-delay: 0.2s;
}

.hero-desc {
    animation-delay: 0.35s;
}

.hero-desc-sub {
    animation-delay: 0.5s;
}

.hero-btn {
    animation-delay: 0.65s;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.8s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.95s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.1s;
}

.stat-item:nth-child(4) {
    animation-delay: 1.25s;
}

.stat-marquee {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.45s;
}



/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: hide-splash 0.1s linear 5.5s forwards;
    pointer-events: none;
}

#splash-screen::before,
#splash-screen::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1;
}

#splash-screen::before {
    left: 0;
    animation: open-door-left 1.5s cubic-bezier(0.7, 0, 0.3, 1) 4.0s forwards;
}

#splash-screen::after {
    right: 0;
    animation: open-door-right 1.5s cubic-bezier(0.7, 0, 0.3, 1) 4.0s forwards;
}

.splash-text {
    color: white;
    font-family: 'Pretendard', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
    opacity: 1;
    position: relative;
    z-index: 2;
    animation: fade-out-text 0.3s ease-in 4.0s forwards;
    display: flex;
    flex-direction: column;
}

.splash-line {
    display: block;
    opacity: 0;
    transform: translateY(25px);
    animation: float-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.splash-line.line1 {
    animation-delay: 0.5s;
}

.splash-line.line2 {
    animation-delay: 1.0s;
}

.splash-line.line3 {
    animation-delay: 1.5s;
}

.splash-line.line4 {
    animation-delay: 2.5s;
    font-weight: 900;
    font-size: 5rem;
    margin-top: 1.5rem;
}

@keyframes fade-out-text {
    to {
        opacity: 0;
    }
}

@keyframes hide-splash {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 768px) {
    .splash-text {
        font-size: 2rem;
    }

    .splash-line.line4 {
        font-size: 2.5rem;
    }
}

@keyframes open-door-left {
    to {
        transform: translateX(-100%);
    }
}

@keyframes open-door-right {
    to {
        transform: translateX(100%);
    }
}

@keyframes float-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* style.css 맨 아래에 추가 */

/* 모바일 전용 아이콘 및 버튼 초기화 */
.mobile-menu-toggle {
    display: none; /* 데스크탑에서는 숨김 */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

.mobile-only-icon {
    display: none;
}

/* --- 모바일 반응형 헤더 스타일 (1024px 이하) --- */
@media (max-width: 1024px) {
    /* 1. 햄버거 버튼 보이기 */
    .mobile-menu-toggle {
        display: block;
		 right:0; 
        padding-right : 4%;
    }
    
    .mobile-only-icon {
        display: inline-block;
        font-size: 0.8rem;
        margin-left: 5px;
        transition: transform 0.3s;
    }

    /* 2. 네비게이션 메뉴를 모바일용으로 변경 (숨김 상태가 기본) */
    #main-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        margin-top: 0 !important; /* 기존 마진 제거 */
    }

    /* 메뉴가 열렸을 때 (JS로 active 클래스 추가) */
    #main-header nav.active {
        max-height: 100vh; /* 충분히 큰 높이 */
        border-top: 1px solid #eee;
    }

    /* 3. 메뉴 리스트 수직 정렬 */
    #main-header nav > ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    #main-header nav ul li {
        width: 100%;
        text-align: left;
    }

    #main-header nav ul li a {
        padding: 1rem 2rem;
        line-height: 1.5;
        border-bottom: 1px solid #f9f9f9;
        display: flex; /* 화살표 정렬용 */
        justify-content: space-between;
        align-items: center;
    }

    /* 4. 드롭다운 메뉴 스타일 재정의 (hover 제거하고 클래스로 제어) */
    .dropdown-menu {
        position: static; /* 둥둥 떠있지 않고 자리를 차지하게 */
		display: none !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
        background-color: #d3ebcb; /* 약간 어두운 배경으로 구분 */
        display: none; /* 기본적으로 숨김 (JS로 토글) */
        transition: none;
    }

    .dropdown-menu.show {
		display: block !important; /* JS로 열었을 때만 보임 */
    }

    .dropdown-menu li a {
        padding-left: 3rem; /* 들여쓰기 */
        font-size: 0.9rem;
        color: #666;
    }

    /* 드롭다운이 열렸을 때 화살표 회전 */
    .dropdown.active > a .mobile-only-icon {
        transform: rotate(180deg);
    }

    /* 모바일 로고 크기 */
    #main-header .logo img {
        display: block;
        transition: height 0.4s ease;
        padding-left : 12%;
	height: 30px;
    }

    #main-header.scrolled .logo img {
        height: 30px;
    }



}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #main-header {
        flex-direction: row;
        padding: 0.1rem;
    }

    #main-header.scrolled {
        padding: 0.15rem;
    }

    #main-header nav {
        margin-top: 0.5rem;
    }

    #main-header nav ul li a {
        padding: 0 0.5rem;
        font-size: 1rem;
    }

    #main-header.scrolled nav ul li a {
        font-size: 0.9rem;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: none;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 4rem 5%;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .card-container,
    .media-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 420px;
    }

    .media-column {
        width: 100%;
        max-width: 500px;
    }

    .company-info,
    .legal-notice {
        font-size: 0.8rem;
    }

    .ceo-message-block {
        text-align: left;
    }

    .narrative-text {
        text-align: left;
    }

    .featured-slider {
        display : none;
    }

    .stat-value {
        margin : -2%;
    }


}

/* 페이징 */
.pg_wrap {clear:both;margin:30px 0 ;text-align:center;font-size: 17px;}
.pg_wrap:after {display:block;visibility:hidden;clear:both;content:""} 
.pg {}
.pg_page, .pg_current {display:inline-block;vertical-align:middle;background:#fff;border:0px solid #bbb}
.pg a:focus, .pg a:hover {text-decoration:none}
.pg_page {color:#555; height:32px;line-height:30px; min-width:32px;text-decoration:none;border-radius:15px;}
.pg_page:hover{background-color:#bbb;color:#fff;}
.pg_start {text-indent:-999px;overflow:hidden;background:url('/images/page_first.png') no-repeat 50% 50% #fff;padding:0;border:0px solid #bbb;}
.pg_prev {text-indent:-999px;overflow:hidden;background:url('/images/page_prev.png') no-repeat 50% 50% #fff;padding:0;border:0px solid #bbb}
.pg_end {text-indent:-999px;overflow:hidden;background:url('/images/page_last.png') no-repeat 50% 50% #fff;padding:0;border:0px solid #bbb}
.pg_next {text-indent:-999px;overflow:hidden;background:url('/images/page_next.png') no-repeat 50% 50% #fff;padding:0;border:0px solid #bbb}
.pg_start:hover,.pg_prev:hover,.pg_end:hover,.pg_next:hover{background-color:#fafafa}

.pg_current {display:inline-block; height:32px;line-height:30px;min-width:32px; border-radius:15px; background:#00243c; color:#fff; border:1px solid #00243c;}

/* 팝업레이어 */
	#hd_pop {z-index:1000;position:relative;margin:0 auto;height:0}
	#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
	.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff;}
	.hd_pops img{max-width:100%}
	.hd_pops_con {}
	.hd_pops_footer {padding:0;background:#000;color:#fff;text-align:left;position:relative;}
	.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
	.hd_pops_footer button {padding:10px;border:0;color:#fff}
	.hd_pops_footer .hd_pops_reject{background:#000;text-align:left}
	.hd_pops_footer .hd_pops_close{background:#393939;position:absolute;top:0;right:0}

	.msg_sound_only, .sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}

@media screen and (max-width:455px){
	.hd_pops {top:60px !important; left:1% !important; max-width:98%;}
	.hd_pops_con {max-width:100% !important; height:auto !important;    max-height:300px; overflow:scroll;}


	.pg_wrap {font-size: 12px;}
	.pg_page, .pg_current {height:32px;line-height:30px; min-width:32px;}
}
