/* 서브페이지 공통 스타일 */

/* 서브페이지에서는 헤더가 처음부터 스크롤된 상태로 표시 */
body {
    padding-top: 0;
}

#header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0;
}

#header .inner {
    height: 60px;
}

#header .logo {
    transform: none;
    margin-top: 0;
}

#header .logo img.logo-white {
    opacity: 0;
}

#header .logo img.logo-color {
    opacity: 1;
    height: 45px;
}

#header .gnb {
    transform: none;
    margin-top: 0;
}

#header .gnb a {
    color: var(--text-color);
    font-size: 14px;
}

#header .header-download {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 13px;
    transform: none;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.2);
    margin-top: 0;
}

#header .header-download i {
    font-size: 14px;
}

#header .header-right {
    transform: none;
}

/* 모바일에서는 transform 제거 */
@media (max-width: 768px) {
    #header .header-right {
        transform: none;
    }
}

#header .mobile-menu-btn span {
    background: var(--text-color);
}

/* 서브 비주얼 */
.sub-visual {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px; /* 헤더 높이만큼 여백 */
}

.sub-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.05;
}

.visual-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.visual-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.visual-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* 브레드크럼 */
.breadcrumb {
    background: #f8f8f8;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .inner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    color: #999;
    font-size: 12px;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* 컨텐츠 섹션 */
.content-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 회사소개 페이지 */
.company-info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.info-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.text-area h4 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.text-area .lead {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.info-table {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
}

.info-table table {
    width: 100%;
}

.info-table th,
.info-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    width: 35%;
    font-weight: 600;
    color: #333;
    background: rgba(78, 205, 196, 0.05);
}

.info-table td {
    color: #555;
    line-height: 1.6;
}

/* 경영이념 섹션 */
.ideology-section {
    background: #f8f8f8;
    padding: 80px 0;
    margin: 0 -999px;
    padding-left: 999px;
    padding-right: 999px;
}

.sub-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.sub-title .highlight {
    color: var(--primary-color);
}

.ideology-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ideology-item {
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ideology-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.15);
}

.icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ideology-item h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.ideology-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 핵심가치 섹션 */
.value-section {
    padding: 80px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 40px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--primary-color);
    background: rgba(78, 205, 196, 0.03);
}

.value-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.value-item p {
    font-size: 14px;
    color: #666;
}

/* 대표 인사말 페이지 */
.ceo-message-content {
    max-width: 1200px;
    margin: 0 auto;
}

.message-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.ceo-image {
    flex: 0 0 300px;
}

.ceo-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.message-content {
    flex: 1;
}

.message-header h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
    margin-bottom: 40px;
}

.message-header .highlight {
    color: var(--primary-color);
}

.message-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.signature {
    text-align: right;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.signature .position {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.signature .name {
    font-size: 20px;
    color: #333;
}

.signature .name strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* 비전 섹션 */
.vision-section {
    background: #f8f8f8;
    padding: 80px 40px;
    border-radius: 12px;
    margin-bottom: 80px;
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.vision-item {
    text-align: center;
}

.vision-item .icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-item h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.vision-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* 핵심가치 카드 */
.core-values {
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.value-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.value-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
}

.cta-button:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.4);
}

.cta-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* 반응형 */
@media (max-width: 1024px) {
    .info-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ideology-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .message-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .ceo-image {
        flex: none;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .sub-visual {
        height: 300px;
        margin-top: 80px;
    }
    
    .visual-content h2 {
        font-size: 36px;
    }
    
    .visual-content p {
        font-size: 16px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .text-area h4 {
        font-size: 36px;
    }
    
    .value-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section h3 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .signature {
        text-align: center;
    }
}

/* CEO Message Page Styles */
.ceo-message-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.ceo-message-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 60px;
}

.ceo-profile {
    flex: 0 0 400px;
}

.ceo-photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ceo-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.ceo-info {
    flex: 1;
}

.ceo-history {
    margin-bottom: 40px;
}

.ceo-history h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.history-image {
    margin-bottom: 30px;
}

.history-image img {
    max-width: 100%;
    height: auto;
}

.ceo-message-text {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ceo-message-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.ceo-signature {
    margin-top: 40px;
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ceo-signature p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.ceo-signature strong {
    font-weight: 700;
    color: #4ECDC4;
}

/* Responsive for CEO Message */
@media (max-width: 1024px) {
    .ceo-message-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .ceo-profile {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ceo-message-section {
        padding: 60px 0;
    }
    
    .ceo-message-text {
        padding: 30px 20px;
    }
    
    .ceo-message-text p {
        font-size: 15px;
    }
    
    .ceo-signature {
        text-align: center;
    }
}

/* 모바일 헤더 스타일 오버라이드 */
@media (max-width: 768px) {
    /* 헤더 모바일 스타일 조정 */
    #header .logo {
        transform: none !important;
        margin-top: 0 !important;
    }
    
    #header .gnb {
        transform: none !important;
    }
    
    #header .header-right {
        transform: none !important;
        gap: 10px;
    }
    
    #header .header-download {
        transform: none !important;
        margin-top: 0 !important;
    }
    
    /* 모바일 메뉴 버튼 위치 조정 */
    #header .mobile-menu-btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
