/* Business Detail Page Specific Styles */
.hero-sub {
    background-size: cover;
    background-position: center;
    height: 300px; /* 서브 히어로 높이 */
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 어두운 오버레이 */
}

.hero-sub h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.hero-sub p {
    font-size: 1.2em;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
}

.content-left-align {
    text-align: left; /* 섹션 내 콘텐츠 왼쪽 정렬 */
}

.content-left-align h2 {
    text-align: center; /* 섹션 제목은 중앙 정렬 */
    margin-bottom: 50px;
}

.content-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start; /* 상단 정렬 */
    margin-bottom: 50px;
}

.content-wrapper .text-content {
    flex: 2;
}

.content-wrapper .text-content h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #007bff;
}

.content-wrapper .text-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.content-wrapper .text-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #666;
}

.content-wrapper .text-content ul li {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.content-wrapper .image-content {
    flex: 1;
    min-width: 350px;
}

.content-wrapper .image-content img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* css/business-detail.css 파일 내에 추가 */
#ai-background-images {
    /* 이 섹션 자체에 대한 패딩이나 마진 */
    padding: 0; /* 배경 이미지이므로 패딩 없음 */
    margin-bottom: 50px; /* 다음 섹션과의 간격 */
}

#ai-background-images .container {
    padding: 0; /* 컨테이너의 좌우 패딩만 유지하고 상하 패딩은 제거 */
}

.ai-back-image {
    width: 100%;
    /* height: auto; */ /* 이미지 자체의 비율 유지 */
    overflow: hidden;
    margin-bottom: 20px; /* 각 이미지 사이 간격 */
    border-radius: 8px; /* 선택 사항: 모서리 둥글게 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 선택 사항: 그림자 효과 */
}

.ai-back-image:last-child {
    margin-bottom: 0; /* 마지막 이미지에는 하단 간격 없음 */
}

.ai-back-image img {
    display: block; /* 이미지 하단 여백 제거 */
    width: 100%;
    height: auto;
}

/* 모바일 반응형 (필요시) */
@media (max-width: 768px) {
    .ai-back-image {
        margin-bottom: 15px;
    }
}

/* Reverse Order for alternating layout */
.content-wrapper.reverse-order {
    flex-direction: row-reverse;
}

/* Process Flow Section */
.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.flow-item {
    background-color: #f8f8f8;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.flow-item:hover {
    transform: translateY(-5px);
}

.flow-item img {
    height: 80px;
    margin-bottom: 20px;
}

.flow-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #007bff;
}

.flow-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Benefit Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.benefit-item {
    background-color: #eaf7ff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item img {
    height: 70px;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.benefit-item p {
    font-size: 0.95em;
    color: #666;
}


/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-wrapper .text-content,
    .content-wrapper .image-content {
        width: 100%;
        min-width: unset;
    }

    .content-wrapper .text-content h3 {
        text-align: center;
    }

    .content-wrapper .text-content ul {
        text-align: left;
        margin: 20px auto;
        max-width: 80%;
    }

    .content-wrapper.reverse-order {
        flex-direction: column; /* 모바일에서는 순서 동일하게 */
    }

    .process-flow,
    .benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 너비 조정 */
    }
}

@media (max-width: 768px) {
    .hero-sub {
        height: 250px;
    }
    .hero-sub h1 {
        font-size: 2.2em;
    }
    .hero-sub p {
        font-size: 1.0em;
    }
    .content-left-align h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .content-wrapper {
        gap: 30px;
        margin-bottom: 40px;
    }
    .content-wrapper .text-content h3 {
        font-size: 1.5em;
    }
    .content-wrapper .text-content p,
    .content-wrapper .text-content ul li {
        font-size: 1em;
    }
    .process-flow,
    .benefit-grid {
        grid-template-columns: 1fr; /* 모바일에서는 한 줄에 하나씩 */
    }
}

@media (max-width: 480px) {
    .hero-sub {
        height: 200px;
    }
    .hero-sub h1 {
        font-size: 1.8em;
    }
    .hero-sub p {
        font-size: 0.9em;
    }
    .content-left-align h2 {
        font-size: 1.8em;
    }
    .content-wrapper .text-content h3 {
        font-size: 1.3em;
    }
    .content-wrapper .text-content p,
    .content-wrapper .text-content ul li {
        font-size: 0.9em;
    }
    .flow-item h3 {
        font-size: 1.2em;
    }
    .flow-item p {
        font-size: 0.85em;
    }
}