/* 1. 웹폰트 및 기본 변수 설정 (유지) */
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700; font-display: swap;
}

:root {
    --white: #ffffff;
    --dark-grey: #333333;
    --primary-green: #03a94d;
    --primary-green-opacity: rgba(3, 169, 77, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; letter-spacing: -0.02em; }

body {
    background-color: var(--white);
    overflow: hidden; height: 100vh;
    display: flex; justify-content: center; align-items: center;
}

/* --- 배경 이미지 배치 수정 --- */
.bg-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.bg-img {
    position: absolute;
    opacity: 0.7;
}

/* 좌측 하단 큰 형태 */
.bg-1 {
    bottom: -120px;
    left: -100px;
    width: 350px;
    transform: rotate(-10deg);
    filter: blur(4px);
}

/* 우측 상단: 배너와 겹치지 않게 화면 우측 끝으로 배치 */
.bg-2 {
    bottom: 50%;
    right: -70px;
    width: 300px;
    transform: rotate(15deg);
    filter: blur(4px);
}

/* 우측 하단 */
.bg-3 {
    bottom: -80px;
    right: -50px;
    width: 250px;
    filter: blur(4px);
}

/* --- 메인 레이아웃 --- */
.container {
    width: 1200px;
    max-width: 95%;
    padding: 0 40px;
    z-index: 10;
}

/* 헤더 */
.header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--primary-green-opacity);
    padding: 0 0 30px 0;
    position: relative;
    background: var(--white);
}

.logo { height: 40px; }

.content-wrapper { display: flex; gap: 24px; height: 550px; }

/* 좌측 배너 이미지 */
.main-banner {
    flex: 1;
    background-image: url('./images/ESGImage.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    position: relative;
    padding: 60px 40px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banner-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.banner-text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 배너 오버레이 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    border-radius: 40px;
}

/* 나머지 카드 스타일 */
.service-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }

.service-card {
    background: var(--white);
    border: 1.5px solid var(--primary-green-opacity);
    padding: 40px 30px;
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card.top-left { border-radius: 80px 20px 20px 20px; }
.service-card.top-right { border-radius: 20px 80px 20px 20px; }
.service-card.bottom-left { border-radius: 20px 20px 20px 80px; }
.service-card.bottom-right { border-radius: 20px 20px 80px 20px; }

.badge {
    position: absolute; top: 25px;
    background: #e8f5ed; color: var(--primary-green);
    padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
}
.top-left .badge, .bottom-left .badge { right: 25px; }
.top-right .badge, .bottom-right .badge { left: 25px; }

.icon-box { width: 80px; height: 80px; margin-top: 15px; margin-bottom: 20px; position: relative; }
.icon-box img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; transition: opacity 0.3s ease; }
.hover-icon { opacity: 0; }

.service-card h2 { font-size: 20px; font-weight: 700; color: var(--dark-grey); line-height: 1.4; }

.service-card:hover {
    background-color: #7edeb2; border-color: transparent;
    transform: translateY(-8px); box-shadow: 0 15px 35px rgba(3, 169, 77, 0.2);
}
.service-card:hover h2, .service-card:hover .badge { color: var(--white); }
.service-card:hover .badge { background: var(--primary-green); }
.service-card:hover .default-icon { opacity: 0; }
.service-card:hover .hover-icon { opacity: 1; }