/* =============================================
   회사소개 페이지 전용 CSS
   company_about.css
   ============================================= */

/* 섹션 A: 히어로 배너 */
.about-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 60, 40, 0.7) 0%, rgba(0, 80, 120, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 900px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-subtitle .highlight {
    color: #7cff7c;
    font-weight: 700;
}

/* 공통 섹션 스타일 */
.about-section {
    padding: 80px 0;
}

.about-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 50px;
}

.about-section .section-title span {
    color: #000;
}

.section-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* 섹션 B: 핵심 역량 */
.competencies-section {
    background: #f8fafb;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.competency-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8eef3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.competency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.competency-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #f0f7f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e8de;
}

.competency-icon svg {
    width: 32px;
    height: 32px;
    color: #00915a;
}

.competency-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
}

.competency-description {
    font-size: 0.9rem;
    color: #5a6a7a;
    line-height: 1.65;
    word-break: keep-all;
}

/* 섹션 C: 연혁 타임라인 */
.timeline-section {
    background: #f5f7f9;
    position: relative;
    overflow: hidden;
}

.timeline-section .container {
    display: flex;
    position: relative;
}

.timeline-wrapper {
    flex: 1;
    max-width: 700px;
    background: #fff;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.timeline-bg-image {
    flex: 0 0 400px;
    background-image: url('../images/nscreen_timeline.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
}

.timeline-vertical {
    margin: 0;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.timeline-year-col {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 20px;
    padding-top: 2px;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00915a;
}

.timeline-line-col {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #00bf60;
    border-radius: 50%;
    z-index: 1;
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-connector {
    width: 2px;
    flex-grow: 1;
    background: #e0e0e0;
    min-height: 20px;
    margin-top: 4px;
}

.timeline-content-col {
    flex: 1;
    padding-left: 20px;
}

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

.timeline-events li {
    font-size: 0.9rem;
    color: #333;
    padding: 4px 0;
    line-height: 1.6;
}

.timeline-events li::before {
    content: none;
}

/* 섹션 D: 회사 정보 */
.company-info-section {
    background: #fff;
}

.company-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.company-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
}

.company-info-table tr {
    border-bottom: 1px solid #eee;
}

.company-info-table tr:last-child {
    border-bottom: none;
}

.company-info-table th,
.company-info-table td {
    padding: 18px 15px;
    vertical-align: middle;
}

.company-info-table th {
    width: 130px;
    text-align: left;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: #00bf60;
    flex-shrink: 0;
}

.company-info-table td {
    color: #555;
}

.company-info-table td a {
    color: #0080FF;
    text-decoration: none;
}

.company-info-table td a:hover {
    text-decoration: underline;
}

.company-map {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* 반응형 디자인 - 태블릿 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-info-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline-section .container {
        flex-direction: column;
    }

    .timeline-wrapper {
        max-width: 100%;
    }

    .timeline-bg-image {
        display: none;
    }

    .timeline-year-col {
        width: 70px;
        padding-right: 16px;
    }

    .timeline-year {
        font-size: 1.1rem;
    }

    .timeline-content-col {
        padding-left: 16px;
    }
}

/* 반응형 디자인 - 모바일 */
@media (max-width: 768px) {
    .about-hero {
        min-height: 280px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-subtitle .highlight {
        display: inline;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-section .section-title {
        font-size: 1.6rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .competency-card {
        padding: 30px 25px;
    }

    .competency-icon {
        width: 56px;
        height: 56px;
    }

    .competency-icon svg {
        width: 28px;
        height: 28px;
    }

    .timeline-wrapper {
        padding: 24px;
    }

    .timeline-row {
        flex-wrap: wrap;
    }

    .timeline-year-col {
        width: auto;
        text-align: left;
        padding-right: 12px;
        padding-top: 0;
        order: 2;
    }

    .timeline-line-col {
        order: 1;
        margin-right: 0;
    }

    .timeline-content-col {
        width: 100%;
        order: 3;
        padding-left: 32px;
        padding-top: 8px;
    }

    .timeline-year {
        font-size: 1rem;
    }

    .timeline-events li {
        font-size: 0.85rem;
        padding: 3px 0;
    }

    .company-info-card {
        padding: 20px;
    }

    .company-info-table th,
    .company-info-table td {
        padding: 15px 10px;
        display: block;
        width: 100%;
    }

    .company-info-table th {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .company-info-table td {
        padding-top: 5px;
    }

    .company-info-table tr {
        display: block;
        padding: 10px 0;
    }
}

/* 접근성 - 포커스 스타일 */
.competency-card:focus-within {
    outline: 3px solid #00bf60;
    outline-offset: 2px;
}

.company-info-table td a:focus {
    outline: 2px solid #0080FF;
    outline-offset: 2px;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.competency-card,
.timeline-content,
.company-info-card {
    animation: fadeInUp 0.6s ease-out;
}

.competencies-grid .competency-card:nth-child(2) {
    animation-delay: 0.1s;
}

.competencies-grid .competency-card:nth-child(3) {
    animation-delay: 0.2s;
}

.competencies-grid .competency-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* 다크 모드 대비 */
@media (prefers-color-scheme: dark) {
    /* 다크모드 미구현 - 필요시 추가 */
}

/* 고대비 모드 */
@media (prefers-contrast: high) {
    .competency-card {
        border: 2px solid #333;
    }

    .timeline-content {
        border: 2px solid #333;
    }

    .company-info-card {
        border: 2px solid #333;
    }
}

/* 애니메이션 감소 모드 */
@media (prefers-reduced-motion: reduce) {
    .competency-card,
    .timeline-content,
    .company-info-card {
        animation: none;
    }

    .competency-card:hover {
        transform: none;
    }
}
