/* about.css */

/* 공통 섹션 스타일 */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    color: #222;
}

/* 히어로 섹션 */
.hero-section {
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    color: #333;
    padding: 100px 20px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-section .hero-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
    color: white;
}

.hero-section .hero-content p {
    font-size: 18px;
    opacity: 0.9;
    color: white;
}

/* 그리드 사진 레이아웃 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-grid figure {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.photo-grid img {
    width: 100%;
    border-radius: 6px;
}

.photo-grid figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

/* 특허 이미지 나열 */
.patent-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.patent-gallery img {
    width: 200px;
    border-radius: 8px;
    background-color: #f5f5f5;
    padding: 10px;
}

.patent-gallery figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
    text-align: center; /* ✅ 가운데 정렬 */
}

.patent-gallery figure {
    text-align: center;
    display: block; /* ✅ flex 같은 거 무력화 */
}
/* 타임라인 */
.timeline {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
    color: #444;
    font-weight: 600;
}

.timeline li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.timeline li::before {
    content: "\2022"; /* bullet dot */
    color: #f5a623;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* 텍스트 본문 */
.overview-text p,
.section p,
.section ul {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.section ul {
    padding-left: 20px;
}


/* 반응형 */
@media screen and (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-section .hero-content h1 {
        font-size: 30px;
    }

    .section h2 {
        font-size: 24px;
    }

    .patent-gallery img {
        width: 150px;
    }
}

/* 어두운 반투명 배경 + 텍스트 대비 효과 */
.hero-content.dark-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 어두운 회색 */
    padding: 40px 20px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content.dark-overlay h1,
.hero-content.dark-overlay p {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* 공장 사진 전용 레이아웃 */
.factory-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.factory-gallery figure {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    height: 260px; /* 고정 높이 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.factory-gallery img {
    width: 100%;
    height: 200px;         /* 높이 고정 */
    object-fit: cover;     /* 비율 유지하면서 자르기 */
    border-radius: 6px;
}

.factory-gallery figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    /* section 본문 여백 및 폰트 크기 조정 */
    .section {
        padding: 30px 15px;
        border-radius: 8px;
    }

    .overview-text p,
    .section p,
    .section ul {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 그리드 사진: 간격 줄이기 */
    .photo-grid {
        gap: 12px;
    }

    .photo-grid figcaption {
        font-size: 13px;
    }

    /* 특허 이미지 */
    .patent-gallery {
        gap: 12px;
    }

    .patent-gallery img {
        width: 240px;
    }

    .patent-gallery figcaption {
        font-size: 13px;
    }

    /* 타임라인 여백 줄이기 */
    .timeline li {
        margin-bottom: 6px;
        padding-left: 16px;
    }

    .timeline li::before {
        top: 1px;
    }

    /* 공장 사진 레이아웃 변경: 1~2열 */
    .factory-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .factory-gallery figure {
        height: auto;
        padding: 10px;
    }

    .factory-gallery img {
        height: 240px; /* ✅ 충분한 시원한 크기 */
        object-fit: cover;
        border-radius: 6px;
    }

    .factory-gallery figcaption {
        font-size: 14px;
        margin-top: 8px;
    }
}