/* ==========================================
   1. GLOBAL & COMMON (모든 페이지 공통)
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
html { scroll-behavior: smooth;}
body { overflow-x: hidden; width: 100%;}

/* Header */
header { 
    width: 100%; 
    height: 80px; 
    background-color: #1a375f; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 0 50px;
}

/* LOGO */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
    cursor: pointer;
}

.logo img { 
    height: 45px; 
    width: auto; 
    display: block;
    transition: opacity 0.3s;
}

.logo a:hover img {
    opacity: 0.8;
}

/* Navigation */
.gnb {
    display: flex;
    align-items: center;
}


.menu-item {
    position: relative;
    padding: 0 15px; 
    text-align: center;
}

.menu-item > a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: block;
    line-height: 80px; 
    transition: opacity 0.3s; 
}

.menu-item > a:hover {
    opacity: 0.7;
}

.submenu {
    display: none; 
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a375f;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.menu-item:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 12px;
    color: #fff;
    font-size: 14px;

    transition: background 0.2s;

}

.submenu li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Groupware - 간격유지 */
.groupware {
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
}
.groupware-item {
    padding-left: 30px;
}

/* Footer */
footer { background: #1a375f; color: #fff; padding: 70px 0 30px; }

.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 50px; 
    margin-bottom: 30px;
}
.footer-info h4 { font-size: 20px; margin-bottom: 15px; }
.footer-contact p { margin-bottom: 8px; opacity: 0.8; text-align: right; }
.copyright { text-align: center; opacity: 0.5; font-size: 13px; }

/* ==========================================
   2. HOMEPAGE CONTENT (메인 페이지 전용)
   ========================================== */
.main-visual { 
    height: 800px;
    position: relative;
    overflow: hidden;
}

/* 슬라이드 내 이미지 설정 */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 55, 95, 0.6), rgba(26, 55, 95, 0.4)); /* 푸른색 계열의 그라데이션 필터 적용 */
    z-index: 2;
}

.main-visual .text-box {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1600px; 
    padding: 0 50px;   
    z-index: 3;
    text-align: left;  
    pointer-events: none;
}

.main-visual .text-box h2 {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.main-visual .text-box p {
    font-size: 22px;
    color: #eee;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}


.swiper { width: 100%; height: 100%; }

.swiper-slide { 
    display: flex; 
    align-items: center; /* ★ 세로 중앙 정렬 */
    justify-content: flex-start; /* 가로 왼쪽 정렬 */
    position: relative;
    height: 100%;
}

/* 텍스트 박스: 위치를 중앙보다 아래로 이동 */
.text-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    color: #fff;
    position: relative;
    z-index: 3;
    
    /* 텍스트 위치를 아래로 밀어줌 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 아래쪽 정렬 */
    padding-bottom: 150px; /* 바닥에서 150px 정도 띄움 (조절 가능) */
}

.text-box h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3); /* 가독성 확보 */
}

.text-box p {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.9;
}

.swiper-pagination { bottom: 80px !important; }

/* Quick Menu (아이콘 바탕색 연회색으로 고정) */
.gray-bg-wrapper {
    background-color: #f5f7f9;
    padding: 80px 0;
}

.quick-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}


.quick-item {
    flex: 1;
    background: #ffffff;
    padding: 40px 15px; 
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.quick-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: #005aab; 
}

.icon-circle {
    width: 65px; height: 65px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; font-size: 24px; color: #005aab;
    transition: all 0.3s ease;
}

.quick-item:hover .icon-circle {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}


.quick-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.quick-item p {
    font-size: 0.85rem; 
    color: #777;
    line-height: 1.4;
    word-break: keep-all;
}

.quick-item:hover h3, 
.quick-item:hover p {
    color: #fff; /* 호버 시 글자색 흰색으로 */
}

/* Intro Section */
.intro-section 
{
    padding: 120px 0; 
    text-align: center;
    background-color: #fff;
}

.intro-section h2 { font-size: 36px; margin-bottom: 10px; color: #222; }

.blue-text { color: #007bff; font-size: 18px; font-weight: 600; margin-bottom: 45px; display: block; }

.description, .partner-text { font-size: 19px; color: #555; line-height: 1.8; }


/* Partner Section */
.partner-section { 
    padding: 100px 0 150px; 
    background-color: #f1f5f9; 
    text-align: center; 
}

.section-title { 
    font-size: 24px; 
    color: #888; 
    margin-bottom: 60px; 
    font-weight: 500; 
}

.partner-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
    align-items: center; 
}


.partner-logo {
    background: transparent; 
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s ease, box-shadow 0.3s ease; /* 배경과 그림자만 변화 */
    padding: 0 !important; /* 패딩을 0으로 고정하여 내부 이미지 크기 유지 */
    border: none !important;
    overflow: hidden;
}

.partner-logo img 
{
    /* auto 대신 %를 사용하여 박스 크기에 맞춰 고정합니다 */
    width: 70%; 
    height: 60%;
    /* object-fit은 로고가 찌그러지지 않게 비율을 유지해줍니다 */
    object-fit: contain; 
    
    filter: grayscale(100%); 
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
    
    /* 마우스 올릴 때 떨림 방지 */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* [마우스 올렸을 때 효과] */
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    /* transform 설정을 아예 제거하여 크기 변동의 여지를 주지 않습니다 */
}

/* 2. 일반 로고: 배경 흰색 변화 */
.partner-logo:not(.eqc-hover):hover {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* 3. 이큐셀 로고: 배경 남색 변화 */
.partner-logo.eqc-hover:hover {
    background: #1a375f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 1. 이큐셀 평상시 상태: 여기서 사이즈를 줄여야 합니다 */
.partner-logo.eqc-hover img {
    width: 60% !important;  /* 평소 사이즈를 60%로 고정 */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.3;           /* 평소엔 은은하게 */
    transition: all 0.3s ease; /* 부드러운 변화 효과 */
}

.partner-logo.eqc-hover:hover img {
    filter: none;           /* 남색 배경 위에서 원래 색상 노출 */
    opacity: 1;             /* 선명하게 */
    /* width 설정을 지우거나 평소와 똑같이 맞추면 크기가 변하지 않습니다 */
    width: 60% !important;  
    transform: none !important; /* 혹시 모를 움직임 방지 */
}





@media (max-width: 1200px) {
    .container, .main-visual .text-box { padding: 0 20px; }
    .menu-item { padding: 0 10px; }
    .menu-item > a { font-size: 15px; }
    .groupware-item {padding-left: 15px;}
    .main-visual .text-box h2 { font-size: 36px; }
    .main-visual .text-box p { font-size: 18px; }
}

@media (max-width: 768px) {
    header { height: 70px; }
    .nav-container, .menu-item > a { line-height: 70px; }
}


@media (max-width: 1024px) {
    .quick-menu { flex-wrap: wrap; }
    .quick-item { flex: none; width: calc(33.33% - 15px); }
}  

@media (max-width: 600px) {
    .quick-item { width: calc(50% - 15px); }
}

