.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 40px;
    border-bottom: 2px solid #1360ad;
    display: inline-block;
    padding-bottom: 5px;
    color: #1360ad;
}

.grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    background-color: var(--light-blue);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    color: #444;
    text-transform: uppercase;
    background-color: #a6d1f2;
}

.card-body {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 비율 */
    background-color: #f0f0f0;
    /* 로딩 전 배경색 */
    overflow: hidden;
}

.card-body img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out;
}

.section-title,
.card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.img-placeholder {
    filter: blur(10px);
    transform: scale(1.1);
    /* 블러 처리 시 외곽 흰선 방지 */
    z-index: 1;
}

/* 2. 실제 고화질 이미지: 처음엔 투명하게 */
.img-real {
    opacity: 0;
    z-index: 2;
}

/* 3. 로드 완료 후 클래스 (JS에서 추가) */
.img-real.loaded {
    opacity: 1;
}

.img-real.loaded+.img-placeholder {
    opacity: 0;
    filter: blur(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title:nth-of-type(1) {
    animation-delay: 0.1s;
}

.grid-2 .card:nth-child(1) {
    animation-delay: 0.2s;
}

.grid-2 .card:nth-child(2) {
    animation-delay: 0.3s;
}

/* 조립라인 제목 */
.section-title:nth-of-type(2) {
    animation-delay: 0.4s;
}

/* 조립라인 카드들 */
.grid-3:nth-of-type(2) .card:nth-child(1) {
    animation-delay: 0.5s;
}

.grid-3:nth-of-type(2) .card:nth-child(2) {
    animation-delay: 0.6s;
}

.grid-3:nth-of-type(2) .card:nth-child(3) {
    animation-delay: 0.7s;
}

.section-title:nth-of-type(3) {
    animation-delay: 0.8s;
}

.grid-3:nth-of-type(3) .card:nth-child(1) {
    animation-delay: 0.9s;
}

.grid-3:nth-of-type(3) .card:nth-child(2) {
    animation-delay: 1.0s;
}

.grid-3:nth-of-type(3) .card:nth-child(3) {
    animation-delay: 1.1s;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}