/* ESG 페이지 전용 CSS */
/* .page-header → 히어로 섹션으로 대체됨 (hero-slider.css) */
/* .container / h2 / .section-subtitle / main / section → common.css */

/* ESG 경영 철학 */
.esg-philosophy {
    background: var(--light-gray);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.philosophy-item {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.philosophy-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.philosophy-item p {
    line-height: 1.6;
    color: #666;
}

/* 환경경영 실천방침 */
.environmental-policy {
    background: white;
}

.policy-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

.policy-item {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.policy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: white;
}

.policy-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.policy-content p {
    line-height: 1.8;
    color: #666;
    margin: 0;
    font-size: 1.3rem;
}

/* ESG 3대 실행 전략 */
.esg-strategy {
    background: var(--light-gray);
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.strategy-item {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strategy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.strategy-environment {
    border-left: 5px solid #22c55e;
}

.strategy-social {
    border-left: 5px solid #3b82f6;
}

.strategy-governance {
    border-left: 5px solid #8b5cf6;
}

.strategy-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.strategy-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.strategy-environment .strategy-icon {
    background: rgba(34, 197, 94, 0.1);
}

.strategy-social .strategy-icon {
    background: rgba(59, 130, 246, 0.1);
}

.strategy-governance .strategy-icon {
    background: rgba(139, 92, 246, 0.1);
}

.strategy-item h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.strategy-content {
    margin-top: 1rem;
}

.strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strategy-list li {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    color: #666;
}

.strategy-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ESG 성과 하이라이트 */
.esg-performance {
    background: white;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.performance-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.performance-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #666;
}

/* 슬라이드 전체 영역에 대해 */
.case-studies-swiper {
  width: 100%;
  height: auto;
}

/* 슬라이드 하나하나 */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; /* 여유 공간 줄 수도 있음 */
  box-sizing: border-box;
}

/* 이미지가 넘치지 않도록 */
.swiper-slide img {
    max-width: 100%;
    height: 360px;
    object-fit: contain; /* 넘치는 것 방지 */
}

.performance-stat-item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--light-gray);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.performance-stat-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-number:not(:last-child) {
    font-size: 3rem;
}

.stat-number:last-child {
    font-size: 2rem;
}

.stat-label {
    font-weight: 600;
    color: #666;
}

/* 인증 및 대외 평가 */
.esg-certification {
    background: var(--light-gray);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.cert-category {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cert-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cert-category h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.cert-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-category li {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #666;
    line-height: 1.5;
    font-size: 1rem;
}

.cert-category li:last-child {
    border-bottom: none;
}

/* ESG 조직도 - company 페이지와 동일한 구조 */
.esg-organization {
    background: white;
}

.esg-org-chart {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 1번째 계층 - 5컬럼 그리드, 가운데 정렬 */
.esg-org-level:nth-child(1) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.esg-org-level:nth-child(1) .esg-org-item {
    grid-column: 3; /* 가운데(3번째) 위치 */
}

/* 2번째 계층 - 5컬럼 그리드 */
.esg-org-level:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    justify-items- center;
}

.esg-org-level:nth-child(2) .esg-org-split {
    grid-column: 4;
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center;
    justify-content: space-between;
}

.esg-org-level:nth-child(2) .esg-org-item:nth-child(1) {
    grid-column: 3;
}

.esg-org-level:nth-child(2) .esg-org-split .esg-org-item {
    background: rgba(121, 205, 52, 0.5);
    padding: 0.5rem 1rem;
    width: 100%;
}

/* 3번째 계층을 5컬럼 그리드로 */
.esg-org-level:nth-child(3) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.esg-org-level:nth-child(3) .esg-org-item.left {
  grid-column: 1 / span 3; /* 1번째~3번째 칸 차지 */
}

.esg-org-level:nth-child(3) .esg-org-item.right {
  grid-column: 4 / span 2; /* 4번째~5번째 칸 차지 */
}

.esg-org-level:nth-child(3) .esg-org-title {
    background: #666; /* 그라데이션 대신 회색 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 4번째 계층을 5컬럼 그리드로 */
.esg-org-level:nth-child(4) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

/* 5번째 계층을 5컬럼 그리드로, 3번째 아이템이 3칸 차지 */
.esg-org-level:nth-child(5) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.esg-org-level:nth-child(5) .esg-org-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

/* 6번째 계층도 5컬럼 그리드로, 3-4-5번째 위치에만 */
.esg-org-level:nth-child(6) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.esg-org-level:nth-child(6) .esg-org-item:nth-child(1) {
    grid-column: 3; /* 3번째 위치 */
}

.esg-org-level:nth-child(6) .esg-org-item:nth-child(2) {
    grid-column: 4; /* 4번째 위치 */
}

.esg-org-level:nth-child(6) .esg-org-item:nth-child(3) {
    grid-column: 5; /* 5번째 위치 */
}

/* 2번째 계층 별도 스타일 */
.esg-org-level:nth-child(2) .esg-org-item::before {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

/* 3번째 계층 별도 스타일 */
.esg-org-level:nth-child(4) .esg-org-item {
    background: rgba(121, 205, 52, 0.5); /* #79CD34 50% 투명도 */
    padding: 1rem;
}

/* 5번째, 6번째 계층 별도 스타일 */
.esg-org-level:nth-child(5) .esg-org-item,
.esg-org-level:nth-child(6) .esg-org-item {
    background: rgba(121, 205, 52, 0.1); /* #79CD34 10% 투명도 */
    padding: 1rem;
}

/* 상단 그라데이션 라인 제거 */
.esg-org-level:nth-child(4) .esg-org-item::before,
.esg-org-level:nth-child(5) .esg-org-item::before,
.esg-org-level:nth-child(6) .esg-org-item::before {
    display: none; /* 라인 완전히 제거 */
}

.esg-org-level:nth-child(5) .esg-org-title,
.esg-org-level:nth-child(6) .esg-org-title {
    background: #666; /* 그라데이션 대신 회색 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem; /* 글자 크기 축소 */
}

.esg-org-level:nth-child(3) .esg-org-dept,
.esg-org-level:nth-child(5) .esg-org-dept,
.esg-org-level:nth-child(6) .esg-org-dept {
    font-size: 0.8rem; /* 부서명도 글자 크기 축소 */
    color: #777; /* 조금 더 진한 회색 */
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* 호버 효과 */
.esg-org-level:nth-child(5) .esg-org-item:hover,
.esg-org-level:nth-child(6) .esg-org-item:hover {
    background: rgba(121, 205, 52, 0.5); /* 호버 시 조금 더 진한 녹색 */
}

.esg-org-level:nth-child(6) .esg-org-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem 2rem;
}

.esg-org-level:nth-child(6) .esg-org-title {
    margin-bottom: 0.3rem;
}

.esg-org-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.esg-org-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.esg-org-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.esg-org-title {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.esg-org-dept {
    color: #666;
    font-size: 0.9rem;
}

/* Call to Action */
.esg-cta {
    background: var(--light-gray);
}

.cta-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-buttons {
    display: flex;
    flex: 1;
    gap: 0.5rem;
    justify-content: flex-start;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.cta-button {
    width: 300px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.esg-contact-info {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.esg-contact-item {
    display: flex;
    width: 200px;
    height: 100%;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.esg-contact-icon {
    font-size: 1.5rem;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .performance-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* ESG 조직도 반응형 */
    .esg-org-level:nth-child(1),
    .esg-org-level:nth-child(2),
    .esg-org-level:nth-child(4) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .esg-org-level .esg-org-item {
        min-width: 200px;
        width: auto;
    }

    .esg-org-level:nth-child(4) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* h2 / section / .page-header → common.css */
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .certification-grid {
        grid-template-columns: 1fr;
    }

    .performance-stats {
        grid-template-columns: 1fr;
    }

    .policy-item {
        flex-direction: column;
        text-align: center;
    }

    .policy-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .esg-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* 모바일에서 3,5,6번째 계층 숨기기 */
    .esg-org-level:nth-child(3),
    .esg-org-level:nth-child(5),
    .esg-org-level:nth-child(6) {
        display: none;
    }

    /* 모든 계층을 flexbox로 변경 - 중앙 정렬 유지 */
    .esg-org-level:nth-child(1),
    .esg-org-level:nth-child(2),
    .esg-org-level:nth-child(4) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* 박스 크기 유지 */
    .esg-org-level .esg-org-item {
        min-width: 200px; /* 데스크톱과 동일한 최소 너비 유지 */
        width: auto;
    }

    /* 4번째 계층은 모든 박스를 세로로 나열 */
    .esg-org-level:nth-child(4) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .philosophy-item,
    .strategy-item,
    .cert-category,
    .esg-org-item {
        padding: 2rem;
    }

    .policy-content p {
        font-size: 1rem;
    }

    .strategy-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .strategy-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .hidden-mobile {
        display: none !important;
    }

    /* 전체 컨테이너를 세로로 정렬하고 가운데 맞춤 */
    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    /* 버튼 그룹 컨테이너를 세로로 정렬 */
    .cta-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%; /* 너비를 100%로 설정하여 가로로 꽉 차게 만듭니다. */
        margin: 1rem 0; /* 상하 여백 조정 */
    }

    /* 각 버튼의 너비를 꽉 차게 설정 */
    .cta-button {
        width: 100%;
        max-width: 300px;
        font-size: 0.9rem;
    }

    /* ESG 연락처 정보 컨테이너를 세로로 정렬 */
    .esg-contact-info {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 1rem 0;
        gap: 0.5rem; /* 항목 간 간격 조정 */
    }

    /* 각 연락처 항목의 너비를 꽉 차게 설정 */
    .esg-contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center; /* 텍스트와 아이콘을 가운데 정렬 */
        padding: 1rem; /* 내부 여백 조정 */
    }
}