/* ========================================
   개선된 페이지 스타일 - 컴팩트 & 모던
   products.jsp, solutions.jsp, edu.jsp, 
   performance.jsp, overview.jsp, vision.jsp,
   competitiveness.jsp, history.jsp, organization.jsp
   ======================================== */

/* ==========================================
   공통 섹션 스타일
   ========================================== */
.page-section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.page-section .container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   페이지 헤더
   ========================================== */
.page-header {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: #667eea;
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #718096;
    line-height: 1.6;
}

/* ==========================================
   제품 카드 그리드 (Products)
   ========================================== */
.product-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

.product-header {
    padding: 2.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.product-header h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.product-header .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.product-body {
    padding: 2rem 2.5rem;
}

.product-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 제품 특징 테이블 */
.feature-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-table thead th {
    padding: 1rem;
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-table tbody tr {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-table tbody tr:hover {
    background: #f7fafc;
}

.feature-table tbody tr:last-child {
    border-bottom: none;
}

.feature-table tbody td {
    padding: 1.25rem 1rem;
    color: #4a5568;
    vertical-align: top;
    line-height: 1.6;
}

.feature-table tbody td:first-child {
    font-weight: 700;
    color: #667eea;
    text-align: center;
    width: 20%;
}

/* ==========================================
   솔루션 및 고객사 (Solutions)
   ========================================== */
.solution-content {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.solution-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.solution-intro h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.solution-intro h3 b {
    color: #667eea;
    font-size: 1.75rem;
    display: block;
    margin-top: 0.5rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.solution-item {
    background: #f7fafc;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.solution-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.solution-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.solution-item img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

/* ==========================================
   교육 과정 (Education)
   ========================================== */
.education-grid {
    display: grid;
    gap: 2rem;
}

.education-category {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header h3 i {
    font-size: 2rem;
}

.category-body {
    padding: 2rem 2.5rem;
}

.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 1rem;
    border-left: 4px solid #667eea;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   회사 정보 (Overview)
   ========================================== */
.company-overview {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.overview-image {
    text-align: center;
    margin-bottom: 3rem;
}

.overview-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.company-photo {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.company-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.info-table-wrapper {
    background: #f7fafc;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #e2e8f0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #667eea;
    width: 30%;
    background: white;
    font-size: 1rem;
}

.info-table td {
    padding: 1.25rem 1rem;
    color: #4a5568;
    line-height: 1.8;
}

.info-table td ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-table td ul li {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

/* ==========================================
   비전/조직도/연혁 (Vision/Organization/History)
   ========================================== */
.single-image-section {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.single-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   경쟁력 (Competitiveness)
   ========================================== */
.competitiveness-section {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.strength-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.strength-card:hover::before {
    top: -30%;
    right: -30%;
}

.strength-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.detail-list {
    background: #f7fafc;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.detail-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.detail-item p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   스크롤 버튼
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   반응형 디자인
   ========================================== */

@media (max-width: 1024px) {
    .page-section .container {
        max-width: 90%;
    }
    
    .solution-grid,
    .info-layout {
        grid-template-columns: 1fr;
    }
    
    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 5rem 0 3rem;
    }
    
    .page-section .container {
        max-width: 95%;
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .product-header,
    .product-body {
        padding: 1.5rem;
    }
    
    .solution-content,
    .company-overview,
    .single-image-section,
    .competitiveness-section {
        padding: 2rem 1.5rem;
    }
    
    .strength-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-table {
        font-size: 0.875rem;
    }
    
    .feature-table thead th,
    .feature-table tbody td {
        padding: 0.875rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.25rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-header h2 {
        font-size: 1.5rem;
    }
    
    .strength-card {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================
   인쇄 스타일
   ========================================== */

@media print {
    .scroll-to-top,
    .page-header {
        display: none;
    }
    
    .page-section {
        padding: 0;
    }
    
    .product-card,
    .solution-content,
    .company-overview {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}