@charset "utf-8";

.sub-page .container {
    max-width: 1472px;
}

/* 제목 파란 점 */
.sub-page .section-title {
    font-size: 30px;
    font-weight: 700;
    color: #212121;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.sub-page .section-title::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: #2563EB;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .sub-page .section-title { font-size: 24px; gap: 10px; margin-bottom: 30px; }
    .sub-page .section-title::before { width: 14px; height: 14px; }
}

/* 컨설팅 인트로 배너 */
.consult-intro-banner {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consult-intro-banner .banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}


.consult-intro-banner .banner-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.consult-intro-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.consult-intro-banner .banner-content p {
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 700;
    word-break: keep-all;
}

.consult-intro-banner .btn-consult-inquiry {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 22px;
    transition: all 0.3s ease;
}

.consult-intro-banner .btn-consult-inquiry:hover {
    background: #000;
}

/* 컨설팅 그리드 및 카드 */
.consult-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.consult-card {
    position: relative;
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 30px;
    overflow: hidden;
    height: 245px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consult-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

.consult-card .text-area {
    position: relative;
    z-index: 10;
    width: 80%;
    height: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consult-card .text-area h3 {
    font-size: 26px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 25px;
    line-height: 1.2;
    word-break: keep-all;
}

.consult-card .text-area p {
    font-size: 18px;
    color: #696969;
    line-height: 1.3;
    word-break: keep-all;
    font-weight: 400;
}

.consult-card .img-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.consult-card .img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.consult-card .img-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #fff 0%, #fff 5%, transparent 60%);
    z-index: 2;
}

/* 기대효과 박스 */
.consult-effect-box {
    background: #EAF0FD;
    border-radius: 10px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consult-effect-box .effect-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212121;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.consult-effect-box .effect-header i {
    font-size: 20px;
}

.consult-effect-box .effect-text {
    font-size: 16px;
    color: #212121;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .consult-grid { grid-template-columns: 1fr; }
    .consult-card { height: auto; flex-direction: column; }
    .consult-card .img-area { width: 100%; height: 250px; }
    .consult-card .img-area::before {
        width: 100%; height: 100px;
        background: linear-gradient(to bottom, #fff, transparent);
    }
    .consult-card .text-area { padding: 30px; }
    .consult-card .text-area h3 { font-size: 22px; }
    .consult-intro-banner { height: auto; padding: 60px 0; }
    .consult-intro-banner .banner-content p { font-size: 18px; }
}

@media (max-width: 768px) {
    .consult-effect-box { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* 안전보건교육 전용 스타일 */
.education-card {
    background: #fff;
    border: 1px solid #C0C0C0;
    border-radius: 10px;
    padding: 30px 45px;
    display: flex;
    align-items: center;
    gap: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.education-card .img-wrap {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #eee;
}

.education-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-card .text-area {
    flex: 1;
}

.education-card .title-badge {
    display: inline-block;
    border: 1.5px solid #2563EB;
    color: #2563EB;
    border-radius: 50px;
    padding: 8px 30px;
    font-size: 22px;
    font-weight: 700;
}

.education-card .desc {
    font-size: 18px;
    color: #212121;
    font-weight: 400;
    line-height: 1.4;
}

.education-card .program-list li {
    font-size: 18px;
    color: #212121;
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    .education-card .title-badge { font-size: 18px; padding: 6px 20px; }
    .education-card .desc { font-size: 16px; }
    .education-card .program-list li { font-size: 15px; }
}

@media (max-width: 768px) {
    .consult-effect-box { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.reveal-active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Add delays for staggered effect */
.reveal-active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-active > *:nth-child(2) { transition-delay: 0.25s; }
.reveal-active > *:nth-child(3) { transition-delay: 0.4s; }

/* Premium Interaction Effects */
.education-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.education-card:hover {
    border-color: #2563EB;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* Detailed Responsive Adjustments */
@media (max-width: 768px) {
    .education-card {
        padding: 30px 20px;
        border-radius: 12px;
    }
    .education-card:hover {
        transform: translateY(-5px); /* On mobile, translate Y instead of X */
    }
    .education-card .title-badge {
        font-size: 17px;
        padding: 6px 15px;
    }
    .education-card .desc {
        font-size: 15px;
        margin-top: 15px;
    }
    .education-card .program-list {
        text-align: left;
        display: inline-block;
        margin: 0 auto;
    }
    .education-card .program-list li {
        font-size: 14px;
        text-align: left;
    }
    .consult-intro-banner .banner-content p {
        font-size: 16px !important;
    }
}

/* Base state for reveal elements */
[class*="reveal"] {
    will-change: transform, opacity;
}
