/* ESG 지속가능경영 섹션 스타일 */
.esg-section {
    padding: 80px 0;
    background: #fff;
    color: white;
    overflow: hidden;
    position: relative;
}

.esg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.esg-header {
    text-align: center;
    margin-bottom: 30px;
}

.esg-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color:#333;
}

.esg-highlight {
    color: #4fc3f7;
    font-weight: 800;
}

.esg-subtitle {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.esg-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
}

.esg-main-content {
    flex: 2;
    position: relative;
}

.esg-image-area {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    background:#000;
    box-shadow: 0 5px 15px rgba(0,0,0,0);
}

.esg-image-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    pointer-events: none;
}

.esg-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transition: opacity 0.3s ease, transform 0.5s ease;*/
}

.esg-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0));
    padding: 60px 40px 40px;
    z-index: 2;
}

.esg-text h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    color: white;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.esg-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: rgba(255,255,255,0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.esg-detail-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 300 !important;
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.esg-detail-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    color: #333;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.esg-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 400px;
}

/* PC 버전 카테고리 높이 균등 분배 */
@media (min-width: 1001px) {
    .esg-categories {
        justify-content: space-between;
    }
    
    .esg-category {
        flex: 1;
        display: flex;
        align-items: center;
        min-height: calc((400px - 40px) / 3); /* 전체 높이에서 gap 제외하고 3등분 */
    }
}

.esg-category {
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.esg-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: right 0.5s ease;
}

.esg-category:hover::before {
    right: 100%;
}

.esg-category:hover {
    transform: translateX(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.esg-category.active {
    transform: translateX(-10px);
}

/* PC 버전 카테고리별 hover 색상 */
.esg-category[data-category="environment"]:hover {
    background: #4caf50;
    color: white;
}

.esg-category[data-category="social"]:hover {
    background: #ffa726;
    color: white;
}

.esg-category[data-category="governance"]:hover {
    background: #90a4ae;
    color: white;
}

/* PC 버전 카테고리별 active 색상 */
.esg-category.active[data-category="environment"] {
    background: #4caf50;
    color: white;
}

.esg-category.active[data-category="social"] {
    background: #ffa726;
    color: white;
}

.esg-category.active[data-category="governance"] {
    background: #90a4ae;
    color: white;
}

/* hover/active 시 텍스트 색상 흰색으로 변경 */
.esg-category:hover h4,
.esg-category:hover p,
.esg-category.active h4,
.esg-category.active p {
    color: white;
}

.esg-category-content {
    position: relative;
    z-index: 2;
}

.esg-category h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.esg-category p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.esg-category-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    transition: all 0.3s ease;
}

.esg-category[data-category="environment"] .esg-category-icon {
    background: #4caf50;
}

.esg-category[data-category="social"] .esg-category-icon {
    background: #ffa726;
}

.esg-category[data-category="governance"] .esg-category-icon {
    background: #90a4ae;
}

.esg-category:hover .esg-category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 반응형 디자인 */
@media (max-width: 1000px) {
    .esg-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .esg-main-content {
        flex: none;
    }
    
    .esg-image-area {
        height: 350px;
    }
    
    .esg-categories {
        flex-direction: row;
        gap: 15px;
        height: auto; /* PC 버전 고정 높이 제거 */
    }
    
    .esg-category {
        flex: 1;
        padding: 20px 15px;
        text-align: center;
        min-height: 0; /* PC 버전 최소 높이 제거 */
        align-items: flex-start; /* 상단 정렬로 복원 */
    }
    
    .esg-category-content h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .esg-category-content p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .esg-category-icon {
        position: static;
        width: 40px;
        height: 40px;
        margin: 0 auto 10px;
        font-size: 20px;
    }
    
    .esg-category:hover {
        transform: translateY(-5px);
    }
    
    .esg-category.active {
        transform: translateY(-5px);
    }
    
    /* 모바일 버전 카테고리별 hover 색상 */
    .esg-category[data-category="environment"]:hover {
        background: #4caf50;
        color: white;
    }
    
    .esg-category[data-category="social"]:hover {
        background: #ffa726;
        color: white;
    }
    
    .esg-category[data-category="governance"]:hover {
        background: #90a4ae;
        color: white;
    }
    
    .esg-category:hover .esg-category-content h4,
    .esg-category:hover .esg-category-content p {
        color: white;
    }
    
    /* 활성 카테고리별 전체 배경색 적용 */
    .esg-category.active[data-category="environment"] {
        background: #4caf50;
        color: white;
    }
    
    .esg-category.active[data-category="social"] {
        background: #ffa726;
        color: white;
    }
    
    .esg-category.active[data-category="governance"] {
        background: #90a4ae;
        color: white;
    }
    
    .esg-category.active .esg-category-content h4,
    .esg-category.active .esg-category-content p {
        color: white;
    }
    
    .esg-category.active .esg-category-icon {
        background: rgba(255,255,255,0.2);
    }
}

@media (max-width: 768px) {
    .esg-section {
        padding: 60px 0;
    }
    
    .esg-header h2 {
        font-size: 36px;
    }
    
    .esg-image-area {
        height: 300px;
    }
    
    .esg-overlay {
        padding: 30px 20px 20px;
    }
    
    .esg-text h3 {
        font-size: 28px;
    }
    
    .esg-text p {
        font-size: 14px;
    }
    
    .esg-detail-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
    
    .esg-category {
        padding: 15px 10px;
    }
    
    .esg-category-content h4 {
        font-size: 14px;
    }
    
    .esg-category-content p {
        font-size: 11px;
    }
    
    .esg-category-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .esg-header h2 {
        font-size: 28px;
    }
    
    .esg-subtitle {
        font-size: 16px;
    }
    
    .esg-image-area {
        height: 250px;
    }
    
    .esg-text h3 {
        font-size: 24px;
    }
    
    .esg-text p {
        font-size: 14px;
    }
    
    .esg-detail-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .esg-categories {
        gap: 10px;
    }
    
    .esg-category {
        padding: 12px 8px;
    }
    
    .esg-category-content h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .esg-category-content p {
        font-size: 10px;
    }
    
    .esg-category-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* 공지사항 섹션 스타일 */
.notice-section {
    padding: 60px 0;
    background: #fff;
}

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

.notice-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.view-all-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #333;
}

.notice-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.notice-item:visited {
    color: inherit;
}

.notice-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.notice-item:hover {
    background-color: #f8f9fa;
}

.notice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notice-title {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.notice-item:hover .notice-title {
    color: #4fc3f7;
}

.notice-date {
    color: #666;
    font-size: 14px;
}

.notice-icon {
    width: 30px;
    height: 30px;
    border: 2px solid #4fc3f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
    font-size: 14px;
    transition: all 0.3s ease;
}

.notice-item:hover .notice-icon {
    background-color: #4fc3f7;
    color: white;
}

.notice-empty {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 60px 20px;
    text-align: center;
}

.notice-empty p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .notice-section {
        padding: 40px 0;
    }
    
    .notice-header h2 {
        font-size: 24px;
    }
    
    .notice-list {
        grid-template-columns: 1fr;
    }
    
    .notice-item {
        padding: 15px 20px;
    }
    
    .notice-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #eee;
    }
    
    .notice-item:last-child {
        border-bottom: none;
    }
    
    .notice-title {
        font-size: 15px;
    }
    
    .notice-date {
        font-size: 13px;
    }
    
    .notice-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .esg-section, .notice-section {
        padding-right:20px;
        padding-left: 20px;
    }

    
    }
}

/* 페이드인업 애니메이션 */
[data-animate="fadeInUp"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fadeInUp"].animate-visible {
    opacity: 1;
    transform: translateY(0);
}
