@import url("./common.css");

/* 메인 히어로 섹션 - 개선된 버전 */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 111px;
    /* 헤더 높이만큼 조정 */
    position: relative;
    overflow: hidden;
    touch-action: pan-y; 
}

/* 슬라이드 이미지들 - 개선된 애니메이션 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slide video {
    width: 100vw;
    height: calc(100vh - var(--header-height));
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

.slide:not(:has(video)).active {
    animation: heroSlideAnimation 5s ease-in-out forwards;
}

.slide.last-active {
    opacity: 0;
    /* 사라지게 함 */

}

.slide:not(:has(video)).last-active {
    transform: scale(1.1);
    /* active가 해제된 후에도 scale(1.1)을 유지 */
    transition: opacity 1s ease-in-out;
    /* opacity만 전환 */
}

@keyframes heroSlideAnimation {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 히어로 컨텐츠 - 개선된 레이아웃 */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-content-obj1 {
    opacity: 0;
    animation: heroContentFadeIn 1.2s ease-out 0.5s forwards;
}

.hero-content-obj2 {
    opacity: 0;
    animation: heroContentFadeIn 1.2s ease-out 0.7s forwards;
}

.hero-content-obj3 {
    opacity: 0;
    animation: heroContentFadeIn 1.2s ease-out 0.9s forwards;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slides-txt {
    display: none;
}

.slides-txt.active {
    display: block;
}

/* 히어로 타이틀 - 강화된 타이포그래피 */
.hero h1 {
    position: relative;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.125rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* 히어로 서브타이틀 - 개선된 스타일 */
.hero p {
    /*margin-bottom: 170px;*/
    margin-bottom: 13.27%;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.3125rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* CTA 버튼 그룹 - 새로 추가 */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 히어로 인디케이터 - 개선된 디자인 */
.hero-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    background: #D9D9D9;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero-indicator.active {
    width: 175px;
    height: 6px;
    /*box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);*/
}

.hero-indicator.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    animation: indicatorProgress 5s linear;
}

@keyframes indicatorProgress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.scroll-down {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.scroll-down .line {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: block;
    margin: 0 auto;
    width: 1px;
    height: 30px;
    background: #fff;
    animation: scrollroll 2s linear infinite;
}

.scroll-down .line>span {
    position: absolute;
    top: -30px;
    left: -60px;
    width: 120px;
}

@keyframes scrollroll {

    0%,
    100% {
        height: 30px;
    }

    50% {
        height: 10px;
    }

}

/*.hero-indicator:hover:not(.active) {*/
/*    background: rgba(255, 255, 255, 0.5);*/
/*    transform: scaleY(1.5);*/
/*}*/

/* 통계 카드 섹션 */
.stats-section {
    background: white;
    padding: 200px 0;
    height: 1098px;
}

.stats-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 55px;
    gap: 0;
}

.stats-left {
    flex: 0 0 320px;
    transform: translateY(-50px);
    transition: transform .3s ease-in-out;
}

.stats-section.motion .stats-left {
    transform: translate(0);
}


.stats-subtitle {
    background: linear-gradient(90deg, #1281be 12.981%, #66a627 85.096%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.stats-main-title {
    color: #000000;
    font-size: 52px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.stats-right {
    flex: 1;
    max-width: 880px;
    padding-top: 0;
    transform: translateY(-50px);
    transition: transform .3s ease-in-out;
}

.stats-section.motion .stats-right {
    transform: translate(0);
}

.stats-title {
    color: #000000;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    text-transform: uppercase;
}

.stats-description {
    color: #333333;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.stats-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    margin-left: 320px;
    /* auto에서 stats-left 너비만큼 설정 */
    width: 880px;
    max-width: calc(100vw - 320px);
    height: 410px;
}

.stat-card {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, height .3s linear 0.5s;
    width: 205px;
    height: 200px;
}

/* 각 카드별 크기 및 색상 - Figma 디자인 기준 */
.stat-card.blue-green {
    background: linear-gradient(225deg, #1057EF, #5E955E);
    transition-property: height;
    transition-delay: 0.1s;
}

.motion .stat-card.blue-green {
    height: 320px;
}

.stat-card.orange-red {
    background: linear-gradient(225deg, #9E6BA4, #DB8B45);
    transition-property: height;
    transition-delay: 0.2s;
}

.motion .stat-card.orange-red {
    height: 220px;
}

.stat-card.green-blue {
    background: linear-gradient(225deg, #21DE6D, #784AD2);
    transition-property: height;
    transition-delay: 0.3s;
}

.motion .stat-card.green-blue {
    height: 410px;
}

.stat-card.purple {
    background: linear-gradient(225deg, #7656FF, #DF8ACC);
    transition-property: height;
    transition-delay: 0.4s;
}

.motion .stat-card.purple {
    height: 270px;
}

.stat-number {
    /*font-family: 'Roboto', 'Arial Black', sans-serif;*/
    font-size: 72px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.stat-number sup {
    margin-left: 2px;
    font-size: 46px;
    line-height: 0;
}

.stat-number span {
    margin-left: 2px;
    font-size: 0.9em;
}

.stat-label {
    font-size: 22px;
    opacity: 1;
    line-height: 1.3;
    font-weight: 400;
    white-space: pre-line;
    text-align: center;
}

.stats-desc {
    margin-left: 320px;
}

.stats-desc li {
    list-style: none;
    font-weight: 400;
    font-size: 10px;
    line-height: 16px;
    color: #8f8f8f;
}

.stats-desc li+li {
    margin-top: 7px;
}

/*!* 카드 호버 효과 *!*/
/*.stat-card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);*/
/*}*/

/* 반응형 개선 - 모바일 헤더 높이 조정 */

@media (max-width: 968px) {

    /* 히어로 섹션 패딩 조정 */
    .hero {
        margin-top: 60px;
        /* 모바일 헤더 높이에 맞춤 */
    }

    /* stats-section 스타일 - Figma 디자인 적용 */
    .stats-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 120px 20px;
        height: auto;
    }

    .stats-container {
        padding: 0;
        margin: 0 auto;
    }

    .stats-header {
        flex-direction: column;
        text-align: center;
        gap: 55px;
        align-items: center;
        justify-content: center;
        margin-bottom: 55px;
    }

    .stats-left {
        flex: none;
        text-align: center;
        width: 240px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-subtitle {
        background: linear-gradient(90deg, #1281be 12.981%, #66a627 85.096%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 16px;
        font-weight: bold;
        margin: 0;
        text-align: center;
        text-transform: uppercase;
    }

    .stats-main-title {
        font-size: 36px;
        font-weight: 800;
        text-align: center;
        margin: 0;
        color: #000000;
        line-height: 1;
    }

    .stats-right {
        text-align: center;
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .stats-title {
        margin: 0;
        text-align: center;
        font-weight: bold;
        font-size: 18px;
        color: #000000;
        text-transform: uppercase;
    }

    .stats-description {
        text-align: center;
        margin: 0;
        font-size: 18px;
        color: #333333;
        line-height: 1.3;
    }

    /* Figma 비대칭 레이아웃 */
    .stats-cards {
        display: flex;
        flex-wrap: wrap;
        margin: 0 auto;
        width: 315px;
        height: 332px;
    }

    /* box1 - 77 전국지점수 */
    .stat-card.blue-green {
        /* position: absolute; */
        /* top: 0; */
        /* left: 0px; */
        width: 140px !important;
        height: 185px !important;
        background: linear-gradient(225deg, #1057EF, #5E955E);
        order: 1;
    }

    /* box2 - 30+ 교육 노하우 */
    .stat-card.orange-red {
        /* position: absolute; */
        /* left: 150px; */
        /* top: 0; */
        width: 140px !important;
        height: 137px !important;
        background: linear-gradient(225deg, #9E6BA4, #DB8B45);
        order: 1;
    }

    /* box3 - 300 강사/연구진 출제진 수 */
    .stat-card.green-blue {
        /* position: absolute; */
        /* left: 150px; */
        /* top: 147px; */
        margin-top: -45px;
        width: 140px !important;
        height: 185px !important;
        background: linear-gradient(225deg, #21DE6D, #784AD2);
        order: 4;
    }

    /* box4 - 5만 누적회원수 */
    .stat-card.purple {
        /* position: absolute; */
        /* top: 192px; */
        /* left: 0; */
        width: 140px !important;
        height: 140px !important;
        background: linear-gradient(225deg, #7656FF, #DF8ACC);
        order: 3;
    }

    .stat-card {
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
        padding: 20px 15px;
    }

    .stat-number {
        /*font-family: 'Roboto', sans-serif;*/
        font-size: 36px;
        font-weight: 900;
        margin-bottom: 5px;
        line-height: 1;
    }

    .stat-label {
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
        font-weight: 400;
    }

    .stats-desc {
        margin: 35px 0 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 120px 20px;
        height: auto;
    }

    .stats-container {
        text-align: center;
    }

    .stats-header {
        text-align: center;
        align-items: center;
        gap: 0px;
    }

    .stats-left,
    .stats-right {
        text-align: center;
        align-items: center;
        margin-top: 20px;
    }

    .stats-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .stats-main-title {
        font-size: 36px;
        line-height: 1.2;
        text-align: center;
        margin: 0 auto;
    }

    .stats-title {
        font-size: 18px;
        text-align: center;
        /* margin: 0 auto 15px auto; */
    }

    .stats-description {
        font-size: 15px;
        max-width: 500px;
        text-align: center;
        margin: 0 auto;
    }

    .stats-cards {
        gap: 12px;
        max-width: 350px;
        margin: 0 auto;
    }

    .stat-card {
        height: 160px !important;
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 36px;
        margin-bottom: 5px;
        letter-spacing: -0.01em;
    }

    .stat-number sup {
        position: relative;
        top: -4px;
        margin-left: -1px;
        font-size: 36px;
        line-height: 0;
        vertical-align: middle;

    }

    .stat-label {
        font-size: 16px;
        line-height: 1.3;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-container {
        height: auto;
        text-align: center;
    }

    .stats-main-title {
        font-size: 36px;
        line-height: 1.3;
        text-align: center;
        margin: 0 auto;
    }

    .stats-title {
        font-size: 18px;
        text-align: center;
        /* margin: 0 auto 15px auto; */
    }

    .stats-description {
        font-size: 18px;
        max-width: 400px;
        text-align: center;
        margin: 0 auto;
    }

    .stats-cards {
        gap: 10px;
        margin: 0 auto;
    }

    .stat-card {
        height: 140px !important;
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 36px;
        letter-spacing: -0.01em;
    }

    .stat-label {
        font-size: 14px;
        text-align: center;
    }

    .stats-header {
        margin-bottom: 55px;
    }
}

/* 교육 서비스 섹션 */
.education-section {
    margin: 0 auto;
    padding: 0;
    background: white;
}

.education-container {
    margin: 0 auto;
    display: flex;
    min-height: 250px;
    overflow: hidden;
}

.education-item {
    position: relative;
    /*clip-path: inset(0 0 0 0);*/
    flex: 1 1 25%;
    /* width: 25%; */
    height: 550px;
    overflow: hidden;
    transition: all .3s ease-in-out;
}

.education-item+.education-item {
    margin-left: 5px;
}

.education-content {
    position: absolute;
    top: 410px;
    left: 30px;
}

.education-content .education-title {
    text-align: left;
    color: #fff;
    font-size: 36px;
}

.education-content .education-description {
    margin-top: 25px;
    opacity: 0;
    color: #fff;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.4;
}

.in-container .education-item {
    /* width: 15%; */
    flex: 1 1 15%;
}

.in-container .education-item.active {
    flex: 1 1 calc(55% - 15px);
    /* width: calc(55% - 15px); */
    /*clip-path: inset(0 0 0 0);*/
}

.education-container:not(.in-container) .education-item .education-background {
    background-size: auto 100%;
}

.education-item.active .education-content {
    top: 277px;
    left: 50px;
}

.education-item.active .education-content .education-description {
    opacity: 1;
}

.education-item .education-background img {
    opacity: 0;
}

.education-item .education-background {
    height: 550px;
    background-size: auto 100%;
    background-position: 93% 50%;
    background-repeat: no-repeat;
    /* transition: all 1s ease-in-out 1s; */
}

.education-item.active .education-background {
    background-size: contain 100%;
}

.education-item:nth-child(1) .education-background {
    background-image: url('../images/main/edu_image_01.png');
}

.education-item:nth-child(2) .education-background {
    background-image: url('../images/main/edu_image_02.png');
}

.education-item:nth-child(3) .education-background {
    background-image: url('../images/main/edu_image_03.png');
}

.education-item:nth-child(4) .education-background {
    background-image: url('../images/main/edu_image_04.png');
}

/* 1280px 이하에서 텍스트 크기 축소 */
@media (max-width: 1280px) and (min-width: 969px) {
    .education-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .education-description {
        font-size: 18px;
        line-height: 1.5;
    }

    .education-content {
        top: 50%;
        left: 60px;
        width: 100%;
        transform: translateY(-50%);
    }
}

/* 반응형 */
@media (max-width: 968px) {
    .education-section {
        position: relative;
        overflow: hidden;
    }

    .education-container {
        display: block;
        position: relative;
        min-height: 400px;
        max-width: 100%;
    }

    /* 모바일 반응형 - transition 제거 */
    .education-item {
        /* position: absolute; */
        /* top: 0; */
        /* left: 0; */
        /* width: 100%; */
        /* height: 100%; */
        /* border: none; */
        /* opacity: 0; */
        /* transform: translateX(100%); */
        /* transition 제거 */
        /* min-height: 400px; */
        /* max-height: 400px; */
    }

    .education-item.active {
        /* opacity: 1; */
        /* transform: translateX(0); */
    }

    .education-item .education-background {
        background-position: 50% 50%;
    }

    .education-item.collapsed {
        flex: none;
        min-height: 400px;
    }

    .education-basic-content {
        display: none;
    }

    .education-content {
        position: relative;
        z-index: 2;
        /* padding: 50px 40px 50px 60px; */
        max-width: none;
    }

    .education-title {
        font-size: 32px;
        font-weight: 800;
        margin-left: 0;
        text-align: left;
        margin-bottom: 25px;
    }

    .education-description {
        font-size: 16px;
        text-align: left;
        margin-left: 0;
        line-height: 1.7;
    }

    .education-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

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

    /* 슬라이드 네비게이션 */
    .education-nav.swiper-pagination {
        position: absolute;
        bottom: 20px;
        /*left: 50%;*/
        transform: none;
        display: flex;
        justify-content: center;
        gap: 4px;
        z-index: 10;
    }

    .education-nav.swiper-pagination>span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .education-nav.swiper-pagination>span.swiper-pagination-bullet-active {
        background: white;
    }
}

@media (max-width: 768px) {
    .education-content {
        /* padding: 40px 30px 40px 45px; */
    }

    .education-title {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .education-description {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* 데스크톱에서는 네비게이션 숨기기 */
@media (min-width: 969px) {
    .education-nav {
        display: none;
    }
}

/* 뉴스 섹션 */
.news-section {
    background: white;
    padding: 200px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 55px;
}

.news-left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-subtitle {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.news-subtitle>span {
    background: linear-gradient(90deg, #1281be 12.981%, #66a627 85.096%) text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-main-title {
    color: #000000;
    font-size: 52px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.news-right {
    flex: 1;
    max-width: 900px;
    margin-top: -30px;
}

.news-item {
    display: flex;
    align-items: start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #ced0d1;
    position: relative;
}

.news-item:first-child {
    padding-top: 0;
    padding-bottom: 30px;
}

.news-item:last-child {
    border-bottom: 1px solid #ced0d1;
}

.news-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-text {
    color: #000000;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.news-date {
    color: #888888;
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
}

.news-image {
    width: 207px;
    height: 137px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: #6e6e6e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 뉴스 로딩 및 에러 상태 */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.news-loading p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.news-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.news-error p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.retry-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.retry-button:hover {
    background: #45a049;
}

/* 뉴스 항목 페이드 인 애니메이션 */
.news-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 - news-section */
@media (max-width: 968px) {
    .news-section {
        padding: 120px 0;
    }

    .news-container {
        padding: 0 30px;
    }

    .news-header {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        align-items: center;
        justify-content: center;
    }

    .news-left {
        flex: none;
        text-align: center;
        width: 100%;
        align-items: center;
        max-width: none;
    }

    .news-subtitle {
        font-size: 18px;
        text-align: center;
    }

    .news-main-title {
        font-size: 40px;
        text-align: center;
        margin: 0 auto;
    }

    .news-right {
        width: 100%;
        max-width: none;
        margin-top: 0px;
    }

    .news-item {
        display: flex;
        flex-direction: row;
        align-items: start;
        justify-content: space-between;
        gap: 10px;
        padding: 30px 0;
        border-bottom: 1px solid #ced0d1;
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }

    .news-text {
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        line-height: 1.3;
        margin: 0;
    }

    .news-date {
        font-size: 14px;
        color: #888888;
        line-height: 1.3;
        margin: 0;
    }

    .news-image {
        width: 138px;
        height: 100px;
        border-radius: 10px;
        flex-shrink: 0;
        background: #6e6e6e;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 120px 0;
    }

    .news-container {
        padding: 0 30px;
    }

    .news-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .news-main-title {
        font-size: 36px;
        text-align: center;
        margin: 0 auto;
        line-height: 1.2;
    }

    .news-left,
    .news-right {
        text-align: center;
        align-items: center;
    }

    .news-item {
        display: flex;
        flex-direction: row;
        align-items: start;
        gap: 10px;
        padding: 30px 0;
        border-bottom: 1px solid #ced0d1;
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }

    .news-text {
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        line-height: 1.3;
        margin: 0;
    }

    .news-date {
        font-size: 14px;
        color: #888888;
        line-height: 1.3;
        margin: 0;
    }

    .news-image {
        width: 138px;
        height: 100px;
        border-radius: 10px;
        flex-shrink: 0;
        background: #6e6e6e;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 0 30px;
        text-align: center;
    }

    .news-main-title {
        font-size: 36px;
        line-height: 1.3;
        text-align: center;
        margin: 0 auto;
    }

    .news-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .news-left {
        gap: 10px;
    }

    .news-item {
        display: flex;
        flex-direction: row;
        align-items: start;
        gap: 10px;
        padding: 30px 0;
        border-bottom: 1px solid #ced0d1;
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }

    .news-text {
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        line-height: 1.5;
        margin: 0;
    }

    .news-date {
        font-size: 14px;
        color: #888888;
        line-height: 1.3;
        margin: 0;
    }

    .news-image {
        width: 138px;
        height: 100px;
        border-radius: 10px;
        flex-shrink: 0;
        background: #6e6e6e;
    }

    .news-section {
        padding: 120px 0;
    }
}

/* 아주 작은 화면을 위한 추가 반응형 (360px 이하) */
/* @media (max-width: 360px) {
    .news-container {
        padding: 0 8px;
    }

    .news-main-title {
        font-size: 36px;
        text-align: center;
        margin: 0 auto;
    }

    .news-subtitle {
        text-align: center;
    }

    .news-item {
        max-width: 300px;
        margin: 0 auto;
    }

    .news-text {
        font-size: 12px;
    }
} */

/* 뉴스 로딩/에러 상태도 중앙 정렬 */
@media (max-width: 968px) {

    .news-loading,
    .news-error,
    .news-empty {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
}

/* 하단 CTA 섹션 */
.cta-section {
    background: url('../images/main/co4.png') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
}

.cta-title {
    /*font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;*/
    font-size: 60px;
    font-weight: bold;
    margin: 0 0 25px 0;
    line-height: 1.2;
    text-align: center;
    color: white;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

.cta-title .highlight {
    color: #61FF01;
    font-weight: bold;
}

.cta-description {
    /*font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;*/
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: white;
    text-align: center;
    line-height: 1;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
    align-items: center;
}

.cta-button {
    width: 274px;
    height: 58px;
    border: 1px solid #86888b;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    /*font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;*/
    font-size: 20px;
    font-weight: bold;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 반응형 - CTA 섹션 */
@media (max-width: 968px) {
    .cta-section {
        padding: 80px 0;
        min-height: 400px;
    }

    .cta-content {
        gap: 30px;
        padding: 0 15px;
    }

    .cta-title {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .cta-description {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 280px;
        height: 58px;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
        min-height: 350px;
        background: url('../images/main/c04_bg2.png') center 116% /contain no-repeat, url('../images/main/c04_bg.png') center/cover no-repeat;
        
    }
    .cta-section::before{
        background: rgba(0, 0, 0, 0.5)
    }

    .cta-content {
        gap: 25px;
        padding: 0 20px;
    }

    .cta-title {
        font-size: 36px;
        margin-bottom: 0;
    }

    .cta-description {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-button {
        width: 260px;
        height: 52px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 100px 0;
        min-height: 320px;
    }

    .cta-section::before{
        background: rgba(0, 0, 0, 0.5)
    }
    

    .cta-content {
        gap: 0px;
        /* padding: 0 15px; */
    }

    .cta-title {
        font-size: 24px;
        margin-bottom: 25px;
        /* padding: 0 40px; */
    }

    .cta-description {
        font-size: 18px;
        font-weight: 300;
        line-height: 120%;
        /* padding: 0 40px; */
    }

    .cta-button {
        width: 274px;
        height: 58px;
        padding: 19px 0;
        font-size: 20px;
        font-weight: 700;
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 60px;
        align-items: center;
    }
}

/* Hero 모바일 반응형 - Figma 디자인 적용 */
@media (max-width: 968px) {
    .hero {
        margin-top: 60px;
        /* min-height: 580px; */
        padding: 40px 0;
    }

    .hero-content {
        padding: 0 30px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 36px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 30px;
        text-align: center;
        /*font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;*/
        letter-spacing: -0.02em;
    }

    .hero p {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-bottom: 50px;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 400;
        font-size: 18px;
        line-height: 1.4;
        /*font-family: 'Noto Sans', sans-serif; asdf*/
    }
}

@media (max-width: 768px) {
    .hero {
        /* min-height: 520px; */
        height: 500px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .hero p {
        margin-bottom: 45px;
        max-width: 350px;
        font-size: 16px;
    }

    .hero-indicator {
        width: 8px;
        height: 8px;
    }

    .hero-indicator.active {
        width: 165px;
    }

    .hero-indicators {
        gap: 6px;
    }

    .stats-grid {
        justify-content: center;
    }

    .education-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        /* min-height: 580px; */
    }

    .hero-content {
        /* padding: 0 15px; */
    }

    .hero h1 {
        font-size: 36px;
        margin-bottom: 25px;
        /* min-width: 360px; */
    }

    .hero p {
        margin-bottom: 106px;
        max-width: 320px;
        font-size: 17px;
    }
}

/* 교육 서비스 섹션 헤더 - 모바일용 */
.education-header {
    display: none;
    /* 데스크톱에서는 숨김 */
    background: white;
    padding: 80px 0 60px 0;
    text-align: center;
    /*border-bottom: 1px solid #f0f0f0;*/
}

.education-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.education-subtitle {
    color: #1281BE;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.education-subtitle>span {
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background: linear-gradient(90deg, rgb(18, 129, 190) 12.981%, rgb(102, 166, 39) 85.096%) text;
}

.education-main-title {
    color: #333;
    font-size: 42px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* 교육 서비스 섹션 */
.education-section {
    padding: 0;
    background: white;
}


/* 반응형 - 모바일에서 헤더 표시 및 슬라이드 활성화 */
@media (max-width: 968px) {

    /* 헤더 표시 */
    .education-header {
        display: block;
        /* 모바일에서 표시 */
    }

    /* 슬라이드 레이아웃 */
    .education-section {
        position: relative;
        overflow: hidden;
        padding-top: 0;
        /* 헤더가 있으니 상단 패딩 제거 */
    }

    .education-container {
        display: flex;
        position: relative;
        padding: 0 20px;
        min-height: 450px;
        /* 높이 약간 증가 */
        max-width: 100%;
        /* 무한 슬라이드를 위한 설정 */
        width: 100%;
        overflow: hidden;
    }

    /* 슬라이드 래퍼 추가 */
    .education-slides-wrapper {
        display: flex;
        width: 100%;
        transition: transform 0.5s ease;
        will-change: transform;
    }

    .education-item {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        height: 450px;
        border: none;
        /* 기존 absolute 포지셔닝 제거 */
        opacity: 1;
        transform: none;
        min-height: 450px;
        max-height: 450px;
        /* 카드 스타일 */
        background: white;
        border-radius: 12px;
        margin: 0 8px;
        /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);*/
        overflow: hidden;
    }

    /*.education-item + .education-item {*/
    /*    margin-left: 0;*/
    /*}*/

    .education-item.active {
        /* active 클래스 효과 제거 (모든 카드가 보여야 함) */
    }

    .education-content {
        position: absolute;
        top: 60px;
        left: 45px;
        max-width: none;
        color: white;
        z-index: 2;
    }

    .education-content .education-title {
        font-size: 28px;
        font-weight: 800;
        margin-left: 0;
        text-align: left;
        margin-bottom: 20px;
        color: white;
    }

    .education-content .education-description {
        margin-top: 0;
        font-size: 16px;
        text-align: left;
        margin-left: 0;
        line-height: 1.6;
        color: white;
        opacity: 0.95;
    }

    .education-item .education-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        transform: none;
        background: none;
    }

    .education-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); */
        z-index: 1;
    }

    .education-item .education-background img {
        width: 100%;
        height: 100%;
        /* object-fit: none; */
        object-position: 81% 50%;
        opacity: 1;
    }

    /* 슬라이드 네비게이션 */
    .education-nav.swiper-pagination {
        position: absolute;
        bottom: 30px;
        display: flex;
        justify-content: center;
        gap: 6px;
        z-index: 10;
    }

    .education-nav.swiper-pagination>span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .education-nav.swiper-pagination>span.swiper-pagination-bullet-active {
        background: white;
        border-color: white;

    }
}

@media (max-width: 768px) {
    .education-header {
        padding: 60px 0 40px 0;
    }

    .education-main-title {
        font-size: 36px;
    }

    .education-subtitle {
        font-size: 16px;
    }

    .education-container {
        min-height: 400px;
    }

    .education-item {
        min-height: 400px;
        max-height: 400px;
    }

    .education-content {
        /* padding: 40px 30px 40px 45px; */
    }

    .education-content .education-title {
        margin-bottom: 15px;
        font-weight: 800;
        font-size: 28px;
    }

    .education-description {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .education-background {
        position: relative;
    }

    .education-background:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);

    }

    .education-header {
        padding: 0px 0 30px 0;
    }

    .education-main-title {
        font-size: 36px;
    }

    .education-subtitle {
        font-size: 16px;
    }

    .education-content{
        left: 25px;
    }

    .education-content .education-title {
        margin-bottom: 0px;
        font-weight: 800;
        font-size: 28px;
    }

    .education-content .education-description {
        margin-top: 15px;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
    }

    .education-description p {
        font-weight: 500;
        line-height: 1.5;
    }

    /*.education-content {*/
    /*    top: 35%;*/
    /*    left: 0px;*/
    /*    padding: 0 0 0 25px;*/
    /*    width: 100%;*/
    /*}*/
}

/* 데스크톱에서는 네비게이션과 헤더 숨기기 */
@media (min-width: 969px) {
    .education-nav {
        display: none;
    }

    .education-header {
        display: none;
    }
}