/* home.css */
/* Hero Banner */
main {
    padding-top: 0 !important;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    overflow: hidden;
}

.hero-banner__slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-banner__slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.hero-banner__slide.active {
    display: block !important;
    opacity: 1;
}

.hero-banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner__text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    width: 80%;
    padding: 30px 40px;
    max-width: 600px;
    box-sizing: border-box;
    border-radius: 8px;
}

.hero-banner__text-overlay h2 span,
.hero-banner__text-overlay p span,
.hero-banner__text-overlay .hero-banner__button {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    white-space: nowrap;
}

.hero-banner__text-overlay h2 span:nth-child(3) {
    margin-left: -30px;
}

.hero-banner__text-overlay p span {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 20px;
}


.hero-banner__slide.active .hero-banner__text-overlay h2 span,
.hero-banner__slide.active .hero-banner__text-overlay p span,
.hero-banner__slide.active .hero-banner__text-overlay .hero-banner__button {
    opacity: 1;
    transform: translateY(0);
}

.hero-banner__headline {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

.hero-banner__headline span {
    display: block;
}

.hero-banner__subtext {
    font-size: 1.5rem;
    margin-top: 60px;
}

.hero-banner__button {
    display: inline-block;
    margin-top: 50px;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.hero-banner__button:hover {
    background-color: #fff;
    color: #333;
}

.hero-banner__controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 재생/일시정지 버튼 스타일 */
.control-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    transition: transform 0.2s ease-in-out;
    background: transparent;
    border: none;
}

.control-button .icon {
    display: inline-block;
    vertical-align: middle;
}

.hero-banner__progress-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #fff;
}

.hero-banner__progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.hero-banner__progress-bar-inner {
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 3s linear;
}

.control-button .icon {
    display: inline-block;
}

/* News Section Title */
.news-title {
    text-align: center;
    font-size: 5rem;
    font-weight: bold;
    color: #333;
    margin-top: 80px;
    margin-bottom: 40px;
}

/* News Grid Specific Styles */
#news.content-section {
    padding: 0;
    max-width: none;
    background-color: #ffffff;
    overflow: hidden;
}

.news-carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0 80px;
    position: relative;
    overflow: hidden;
}

.news-grid {
    display: flex;
    gap: 30px;
    padding: 0;
    overflow: visible;
    transition: transform 0.6s ease-in-out;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    display: block;
    width: 380px;
    opacity: 1;
}

.news-card.center {
    /* 모든 카드 동일 */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 24px;
}

.news-card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

.news-card-content .news-category {
    display: none;
}

.news-card-content .news-info-item {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.news-card-content .news-info-item strong {
    color: #ff6a00;
    font-weight: 500;
    flex-shrink: 0;
    width: 35px;
    text-align: right;
}

.news-carousel-controls {
    display: none;
}

/* Solutions Section (IDENTITY) */
#solutions.content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 5rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 40px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.solution-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 40px 30px;
    min-height: auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s, opacity 0.6s ease-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
}

.solution-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-item:nth-child(1) { transition-delay: 0s; }
.solution-item:nth-child(2) { transition-delay: 0.2s; }
.solution-item:nth-child(3) { transition-delay: 0.4s; }
.solution-item:nth-child(4) { transition-delay: 0.6s; }

.solution-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-type {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.solution-item h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6a00;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.solution-item p {
    font-size: 1rem;
    color: #555;
    line-height: 2.4;
    flex-grow: 1;
    margin-bottom: 0;
    padding-bottom: 0;
}


.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6a00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #e55c00;
}

/* Seamless Section (STRENGTHS) */
#seamless-section.content-section {
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

.seamless-item {
    background-color: #e65c00;
    color: #fff;
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.seamless-item:last-child {
    margin-bottom: 0;
}

/* STRENGTHS 섹션 3단 구조 스타일 */
.seamless-title {
    margin: 0;
    flex-basis: 45%;
    text-align: left;
    white-space: normal;
    display: flex;
    flex-direction: column;
}

.seamless-title span {
    display: block;
    line-height: 1.1;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.seamless-title .main-line {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    white-space: nowrap;
    font-family: 'Pretendard', sans-serif;
}

.seamless-title .sub-line {
    font-size: 1.2rem;
    font-weight: normal;
    opacity: 0.9;
    font-family: 'Pretendard', sans-serif;
}

.seamless-item p.seamless-text {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-top: auto;
    margin-bottom: auto;
    flex-basis: 55%;
    text-align: left;
    white-space: normal;
}

.seamless-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.seamless-item:nth-child(2) {
    transition-delay: 0.2s;
}

.seamless-item:nth-child(3) {
    transition-delay: 0.4s;
}

/* Global Presence 섹션 스타일 (세계 지도) */
#stats-section.content-section {
    padding: 0;
    max-width: none;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f8f8f8;
    overflow: hidden;
    margin-top: 80px;
    margin-bottom: 80px;
}

.global-presence-map {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 90%;
    height: auto;
    opacity: 0.1;
}

.global-presence-map.animate .map-image {
    opacity: 0.3;
}

.global-presence-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.global-presence-text h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
}

.global-presence-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 10px;
}

.global-presence-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-bottom: 50px;
}

.stat-item {
    text-align: center;
    flex-basis: 30%;
}

.stat-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-prefix {
    font-size: 6rem;
    font-weight: bold;
    color: #ff6a00;
    margin-right: 8px;
}

.stat-suffix {
    font-size: 6rem;
    font-weight: bold;
    color: #ff6a00;
}

.stat-number {
    font-size: 6rem;
    font-weight: bold;
    color: #ff6a00;
    display: inline-block;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
}

/* ==============================
   모바일 반응형 디자인 (768px 이하)
   ============================== */
@media (max-width: 768px) {
    /* Hero Banner */
    .hero-banner {
        margin-top: 70px;
        height: 60vh;
    }

    .hero-banner__headline {
        font-size: 2rem;
    }

    .hero-banner__text-overlay p span {
        margin-left: -15px;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .hero-banner__subtext {
        font-size: 1rem;
        margin-top: 25px;
    }

    .hero-banner__button {
        font-size: 0.9rem;
        padding: 10px 20px;
        font-weight: bold;
    }

    /* News Section */
    .news-title {
        font-size: 2.5rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .news-carousel-wrapper {
        padding: 20px 15px 40px;
        overflow: hidden;
    }

    .news-grid {
        flex-direction: column;
        gap: 20px;
        transform: none !important;
        overflow-x: hidden !important;
        padding-bottom: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .news-card {
        width: 100% !important;
        flex-shrink: 1;
    }

    .news-card img {
        height: 200px;
    }

    /* Solutions Section */
    #solutions.content-section {
        padding: 40px 15px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .solution-item {
        padding: 30px 20px;
        min-height: auto;
        gap: 15px;
    }

    .solution-item h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .solution-item p {
        font-size: 0.9rem;
        line-height: 2.0;
        margin-bottom: 0;
        padding-bottom: 0;
    }


    .read-more-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Seamless Section */
    #seamless-section.content-section {
        padding: 40px 15px;
    }

    .seamless-item {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .seamless-title {
        font-size: 1.8rem;
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    .seamless-text {
        font-size: 1rem;
        flex-basis: 100%;
    }

    /* Global Presence */
    #stats-section.content-section {
        min-height: 400px;
        padding: 40px 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .global-presence-content {
        margin-left: 0;
        text-align: center;
    }

    .global-presence-text h2 {
        font-size: 2rem;
    }

    .global-presence-text p {
        font-size: 1rem;
    }

    .global-presence-stats {
        flex-direction: column;
        margin-top: 40px;
        gap: 30px;
    }

    .stat-item {
        flex-basis: 100%;
        text-align: center;
    }

    .stat-prefix {
        font-size: 3.5rem;
        margin-right: 6px;
    }

    .stat-suffix {
        font-size: 3.5rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* ======================
   작은 모바일 (480px 이하)
   ====================== */
@media (max-width: 480px) {
    .hero-banner {
        margin-top: 60px;
        height: 50vh;
    }

    .hero-banner__headline {
        font-size: 1.5rem;
    }

    .hero-banner__text-overlay p span {
        margin-left: -10px;
    }

    .hero-banner__subtext {
        font-size: 0.9rem;
        /* 반응형에서도 간격 조정 */
        margin-top: 20px;
    }

    .hero-banner__button {
        /* 반응형에서도 폰트 두께 볼드체 적용 */
        font-weight: bold;
    }

    .news-title,
    .section-title {
        font-size: 2rem;
    }

    .global-presence-text h2 {
        font-size: 1.5rem;
    }

    .stat-prefix {
        font-size: 3rem;
        margin-right: 5px;
    }

    .stat-suffix {
        font-size: 3rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}