@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&family=Roboto:wght@700&display=swap');
html {
    /* 기본 16px의 62.5% = 10px (계산을 쉽게 하기 위함. 1rem = 10px) */
    font-size: 62.5%;
}
@property --p {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* 스크롤 스냅을 위한 컨테이너 스타일  */
.container {
    font-family: 'Noto Sans KR', sans-serif;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
}

/* 3. 각 전체 화면 섹션의 공통 스타일 */
.full-page {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
}
/* 5. 새로운 내용 섹션 스타일  */
.content-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #f0f0f0;
    padding: 2rem 5vw 4rem 10vw;
    box-sizing: border-box;
    z-index: 1;
}

.content-section h2 {
    font-size: 3rem;
}

/* 1. 새로 추가한 배경 원 스타일 */
.vision-background-circle {
    display: block;
    width: 60vw;
    height: 60vw;
    background-image: conic-gradient(#e0e0e0 var(--p), transparent var(--p));
    border-radius: 50%;
    position: absolute;
    top: -50vh;
    left: -25vw;
    z-index: 0;
    --p: 0deg;
    transition: --p 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-section {
    position: relative; /*hidden???*/
    width: 100%;
    /*height: 100vh;*/
    overflow: hidden;
    border-top-left-radius: 350px;
    border-bottom-right-radius: 350px;
    z-index: 2;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenBurnsZoom 12s infinite alternate ease-in-out;
}

.slide.is-visible {
    opacity: 1;
}

/* 확대 효과를 위한 CSS 애니메이션 */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* --- 메인 페이지 헤더 스타일 --- */
header {
    width: 100%;
    padding: 10px 30px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    height: 70px;
}

header .header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
header .header-logo img {
    height: 50px;
    display: block;
}
header nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
nav a {
    text-decoration: none;
    margin: 0 20px;
    font-weight: 400;
    font-size: 1.8rem;
}
nav a span {
    position: relative;
    color: white;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.9);
    padding-bottom: 5px;
    transition: color 0.3s ease;
    font-size: inherit;
}
nav a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: #6FBA2C;
    transition: width 0.3s ease-in-out;
}
nav a:hover span::after {
    width: 100%;
}


/* 텍스트 위치 및 스타일 수정 */
.hero-text {
    position: relative;
    left: 100px;
    bottom: 45vh;
    color: white;
    text-align: left;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3.9rem;
    font-weight: 700;
    margin: 0;
}
.hero-text p {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 10px;
}
.progress-bar-container {
    position: absolute;
    top: -20px;
    left: 0;
    width: 520px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}
.progress-bar {
    width: 0;
    height: 100%;
    background-color: #6FBA2C;
}
.progress-bar.active {
    animation: fillProgress 3.9s linear forwards;
}

@keyframes fillProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* 스크롤 인디케이터 텍스트로 변경 및 애니메이션 */
.scroll-indicator {
    font-size: 1.4rem;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.7);
    font-weight: 700;
    letter-spacing: 2px;
    animation: colorFade 4s linear infinite;
}

@keyframes colorFade {
    0%, 100% {
        color: rgba(255, 255, 255, 0.8);
    }
    50% {
        color: rgba(0, 0, 0, 0.8);
    }
}

/* 페이지 나머지 컨텐츠 확인용 */
.content {
    height: 1000px;
    padding: 50px;
}

/* 기존 content-section 스타일 수정 */
.content-section {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 5vw 4rem 7vw;
    box-sizing: border-box;
    z-index: 1;
}

.section-header img {
    height: 50px;
}

.section-content {
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(-4rem);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.3s;
    text-align: left;
}

.section-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin: 0;
    flex-shrink: 0;
}

.section-content p {
    font-size: 2rem;
    color: #757575;
    line-height: 1.6;
    max-width: 50rem;
    text-align: left;
}

/* 비전 이미지 컨테이너 */
.vision-image-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    margin: -4rem 5vw 0 auto;
    transform: none;
}
.vision-image-container img {
    max-width: 50vw;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(6rem);
    transition: opacity 1.7s ease-out, transform 1.7s ease-out;
}
.content-section.is-visible .vision-background-circle {
    --p: 360deg;
}
.content-section.is-visible .section-content {
    opacity: 1;
    transform: translateY(0);
}
.content-section.is-visible .vision-image-container img {
    opacity: 1;
    transform: translateY(0);
}


/* View more 버튼 */
.view-more {
    font-size: 1.6rem;
    position: absolute;
    bottom: 5vw;
    right: 10vw;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.view-more:hover {
    background-color: #DD5D36;
    color: #fff;
    border-color: #DD5D36;
}


/* 3번째 섹션 스타일 */
.third-section .section-content {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    width: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 100px 250px;
}
.third-section .section-content h1,
.third-section .section-content p {
    flex-shrink: 0;
    max-width: 1000px;
    text-align: left;
}
.third-section.is-visible .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* 카드 기본 스타일 (사각형) */
.card {
    position: relative;
    width: 280px;
    height: 280px;
    background-color: #ffffff;
    border-radius: 40px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    transition: border-radius 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.4s ease-in-out,
    transform 0.4s ease-in-out;
}
.card:hover {
    border-radius: 50%;
    transform: scale(1.05);
    background-color: #0080FF;
}
.card:hover::before {
    opacity: 0.1;
}
.card-content, .card-image {
    position: relative;
    z-index: 2;
}

.card-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.6rem;
    margin-top: 60px;
    margin-bottom: 40px;
    transition: color 0.4s ease-in-out;
}

.card:hover .card-content h2 {
    color: #ffffff;
}
.third-section .card-content p {
    font-size: 1.8rem;
    line-height: 1.5;
    opacity: 0;
    color: #777777;
    transition: color 0.4s ease-in-out, opacity 0.4s ease-in-out;
}
.card:hover .card-content p {
    opacity: 1;
    color: #dcdcdc;
}
.card-container {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    margin-top: -60px;
}






/* 마지막 섹션 (푸터) 스타일 */
.contact-section {
    height: auto;
    min-height: 50px;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px 50px;
    box-sizing: border-box;
    background-color: #f7f7f7;
}

/* 푸터 내부 스타일 */
.contact-section footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 저작권 텍스트 스타일  */
.copyright {
    font-size: 1.5rem;
    color: #888;
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}


/* --- 서브 페이지 (Our Vision) 스타일 (수정) --- */
.sub-page {
    background-color: #ffffff;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 서브 페이지 헤더 (새로운 스타일) */
.sub-page-header {
    background-color: #ffffff;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 👈 nav 메뉴를 헤더의 중앙에 강제 배치하여 모든 페이지의 위치를 통일합니다. */
.sub-page-header nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header-logo img {
    height: 30px;
    display: block;
}

.sub-page-header nav a span {
    color: #3c3c3c;
    text-shadow: none;
}

.sub-page-header nav a.active span::after {
    width: 100%;
    background-color: #6FBA2C;
}

.sub-page-content {
    /*max-width: 900px;*/
    padding-left: 10vw;
    padding-right: 10vw;
    margin: 10px auto;
    padding: 0 20px;
}

.sub-page-content h1 {
    font-family: 'Ubuntu', sans-serif;
}

.sub-page-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 4em;
}



/* --- Our Vision 페이지 스크롤 애니메이션 스타일 --- */
.vision-section {
    padding: 0;
    margin: 0;
}

.vision-sticky-wrapper {
    height: 300vh;
}
.vision-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.vision-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.vision-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-only {
    display: none;
}
.vision-main-title,
.vision-subtitle,
.vision-text-1,
.vision-text-2 {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.vision-main-title,
.vision-subtitle {
    font-family: 'Ubuntu', sans-serif;
    color: #373737;
    font-weight: 1000;
    transform: translateX(-50px);
}
.vision-text-1,
.vision-text-2 {
    color: #707070;
    text-align: right;
    font-size: 1.8rem !important;
    transform: translateY(50px);
}
.vision-main-title {
    left: 9%;
    top: 15%;
    font-size: 4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.vision-subtitle {
    left: 42%;
    top: 63%;
    font-size: 3.5rem;
}
.vision-text-1 {
    left: 9%;
    top: 41%;
    max-width: 900px;
}
.vision-text-2 {
    right: 9%;
    top: 66%;
    max-width: 700px;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}



/* --- Our Direction 섹션 스타일 --- */
.direction-section {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 100px 80px;
    box-sizing: border-box;
    overflow: hidden;
}

.direction-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.direction-intro {
    font-family: 'Ubuntu', sans-serif;
    font-size: 3.7rem;
    font-weight: bold;
    color: #333;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
    position: absolute;
    top: -20vh;
    right: 5vw;
    z-index: 2;
}

/* 2. Sustainable Future  */
.direction-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Roboto', sans-serif;
    font-size: 4.2rem;
    font-weight: 1000;
    color: #222;
    margin-top: 10px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s; /* 0.2초 딜레이 */
    position: absolute;
    top: -3vh;
    left: 5vw;
    z-index: 2;
}

.direction-text {
    font-size: 1.8rem;
    position: absolute;
    color: #707070;
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    text-align: right;
    right: 5vw;
    top: -10vh;
    z-index: 4;
    transform: translateY(30px);
}

/* 3. 원 애니메이션 */
.direction-circles-container {
    margin-top: 80px;
    position: relative;
    height: 300px;
}
.deco-circles {
    position: absolute;
    top: -60px;
    right: -1000px;
    width: 1500px;
    height: 1500px;
    z-index: 1;
}
.deco-circles svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: scaleY(-1);
}
.deco-circles svg circle {
    fill: none;
    stroke: rgba(208, 208, 208, 0.3);
    stroke-width: 1.5;
    stroke-dasharray: 623;
    stroke-dashoffset: 623;
    transition: stroke-dashoffset 1.5s ease-in-out;
}
/* 각 원의 둘레에 맞게 dasharray, dashoffset 조정 */
.deco-circles svg:nth-child(2) circle { stroke-dasharray: 497; stroke-dashoffset: 497; }
.deco-circles svg:nth-child(3) circle { stroke-dasharray: 371; stroke-dashoffset: 371; }


/* 카드들을 담는 컨테이너 */
.topic-circles {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* 카드 기본 스타일 */
.topic-card {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    color: white;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
}
.topic-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #008037;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease-in-out;
}
.topic-card.card-bg-1::before {
    background-image: url('../images/card-bg-1.jpg');
}
.topic-card.card-bg-2::before {
    background-image: url('../images/card-2.jpg');
}
.topic-card.card-bg-3::before {
    background-image: url('../images/card-3.jpg');
}

.topic-card h2, .topic-card p {
    position: relative;
    z-index: 3;
    transition: all 0.4s ease-in-out;
}
.topic-card h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.75);
    font-size: 2.5rem;
    margin: 0;
}
.topic-card p {
    margin-bottom: 15px;
    font-size: 1.8rem;
    line-height: 1.6;
    opacity: 0;
}

.topic-card:hover::before {
    opacity: 0.5;
}
.topic-card:hover::after {
    opacity: 1;
}
.topic-card:hover h2 {
    transform: translateY(-110px);
}
.topic-card:hover p {
    opacity: 1;
}




/* --- 섹션이 보일 때 애니메이션 실행 --- */
.direction-section.is-visible .deco-circles svg circle {
    stroke-dashoffset: 0;
    transition-delay: 0s;
}
/* 2. Our Direction 나타나기 */
.direction-section.is-visible .direction-intro {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.2s;
}

/* 3. direction-text 나타나기 */
.direction-section.is-visible .direction-text {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.4s;
}

/* 4. Sustainable Future 나타나기 */
.direction-section.is-visible .direction-title {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.7s;
}

/* 5. 콘텐츠 원들(topic-circles)이 순차적으로 나타나기 */
.direction-section.is-visible .topic-card {
    opacity: 1;
    transform: translateY(0);
}
.direction-section.is-visible .topic-card:nth-child(1) { transition-delay: 1.4s; }
.direction-section.is-visible .topic-card:nth-child(2) { transition-delay: 1.5s; }
.direction-section.is-visible .topic-card:nth-child(3) { transition-delay: 1.6s; }




/* --- Strategy 섹션 스타일 (애니메이션 적용) --- */
.strategy-section {
    margin-top: 50px 0 20px;
    width: 100%;
    padding: 100px 100px 100px;
    box-sizing: border-box;
    background-color: #ffffff;
    overflow: hidden;
}
.strategy-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.strategy-content h1,
.strategy-content h2,
.strategy-content p {
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.strategy-content h1 {
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    color: #222;
    margin-bottom: 20px;
    font-size: 3.7rem;
    font-weight: 900;
    left: 15vw;
    z-index: 2;
    transform: translateY(-50px);
}
.strategy-content h2 {
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    color: #222;
    margin-bottom: 20px;
    font-size: 4.2rem;
    font-weight: 1000;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    left: 15vw;
    z-index: 2;
    transform: translateX(-50px);
    transition-delay: 0.6s;
}
.strategy-content p {
    text-align: right;
    font-size: 1.8rem;
    color: #555;
    line-height: 2;
    right: 15vw;
    top: 4vh;
    z-index: 2;
    transform: translateY(50px);
    transition-delay: 0.8s;
}
.strategy-section.is-visible .strategy-content h1,
.strategy-section.is-visible .strategy-content h2,
.strategy-section.is-visible .strategy-content p {
    opacity: 1;
    transform: translate(0, 0);
}


.goal-combined-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 50px 50px;
    box-sizing: border-box;
    background-color: #ffffff;
    overflow: hidden;
}

.expanding-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #008037;
    z-index: 1;
    transition: width 1.5s ease-in-out, height 1.2s ease-in-out 1.5s;
}
.goal-combined-section.is-visible .expanding-background {
    width: 100%;
    height: 100%;
}
.goal-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
.goal-intro-text h2,
.goal-intro-text h1,
.goal-intro-text p,
.goal-cards-container,
.goal-message-container{
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}
.goal-intro-text h2 {
    transform: translateY(-30px);
    transition-delay: 2.7s;
}

.goal-intro-text h1 {
    transform: translateX(-30px);
    transition-delay: 2.9s;
}
.goal-intro-text p {
    transform: translateY(30px);
    transition-delay: 3.1s;
}
.goal-cards-container {
    transform: translateY(30px);
    transition-delay: 3.3s;
}
.goal-message-container {
    transform: translateY(-30px);
    transition-delay: 3.5s;
}

.goal-combined-section.is-visible .goal-intro-text h2,
.goal-combined-section.is-visible .goal-intro-text h1,
.goal-combined-section.is-visible .goal-intro-text p,
.goal-combined-section.is-visible .goal-cards-container,
.goal-combined-section.is-visible .goal-message-container{
    opacity: 1;
    transform: translate(0, 0);
}


/* --- 5. 내부 콘텐츠 스타일 및 위치 조정 --- */
.goal-intro-text h2 {
    position: relative;
    text-align: center;
    /*right: 270px;*/
    font-family: 'Ubuntu', sans-serif;
    font-size: 3.7rem;
    font-weight: normal;
    color: #fff400;
}
.goal-intro-text h1 {
    position: relative;
    font-family: 'Ubuntu', sans-serif;
    font-size: 4.2rem;
    font-weight: 1000;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    bottom: 25px;
}
.goal-intro-text p {
    position: relative;
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 50px;
}
.goal-cards-container {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.goal-card {
    position: relative;
    width: 300px;
}
.goal-card h2 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.goal-card .card-content {
    position: absolute;
    width: 280px;
    max-height: 400px;
    padding: 10px;
    opacity: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    /*border-radius: 0 0 10px 10px;*/
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;

}
.card-content p {
    position: relative;
    text-align: center;
    font-size: 1.6rem;
    color: white;
    line-height: 1.6;
    /*padding: 10px 10px;*/
    margin: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.goal-card:hover .card-content {
    /*max-height: 400px;*/
    opacity: 1;
    /*padding: 10px;*/
}
.goal-card:hover .card-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}


.goal-message-container {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 180px;
}
.goal-message {
    font-size: 2.2rem !important;
    color: #f7f7f7;
    padding: 10px 5px;
    margin: 0;
}



/* --- 최상단으로 이동하는 Top 버튼 --- */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;

    /* 버튼 디자인 */
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;

    /* 부드럽게 나타나는 효과 */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#scrollTopBtn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}



/* --- The Hub 페이지 이미지 갤러리--- */
.hub-gallery {
    margin-top: 50px;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
}

.gallery-item:last-child {
    margin-bottom: 50px;
}

.gallery-item img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
    /* 기본 불투명도를 90%로 설정 */
    opacity: 0.7;
    transition: opacity 0.4s ease-out;
}

.gallery-item:hover img,
.gallery-item:focus img{
    opacity: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    width: 33.33%;
    background-color: white;
    height: 100%;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
}

.overlay-left { left: 0; }
.overlay-right { right: 0; }

.overlay-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    color: #333;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    text-align: center;
}

.overlay-text h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.8rem;
}

.overlay-text p {
    font-size: 1.6rem;
    line-height: 1.6;
}

.overlay-details .detail-item span {
    font-size: 1.5rem;
}

.overlay-text iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-item:hover .image-overlay,
.gallery-item:focus .image-overlay{
    transform: translateY(0);
}

.gallery-item:hover .overlay-text,
.gallery-item:focus .overlay-text{
    opacity: 1;
    transition-delay: 0.1s;
}

.overlay-divider {
    border: none;
    height: 1px;
    background-color: #e0e0e0; /* 연한 회색 */
    margin: 20px auto;
    width: 80%;
}

.overlay-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

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

.detail-item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.detail-item span {
    font-size: 1rem;
    color: #555;
}

.root_daum_roughmap {
    width: 100% !important;
    height: 100% !important;
}
.image-overlay .overlay-text {
    padding: 0;
}

.the-hub-page #scrollTopBtn {
    background-color: transparent;
    color: #808080;
    border: 1px solid #808080;
    bottom: 60px;
}

.the-hub-page #scrollTopBtn:hover {
    background-color: rgba(128, 128, 128, 0.2);
    color: #505050;
    border-color: #505050;
}





.news-page {
    background-color: #f5f5f5;
}

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

.news-title-section {
    margin-bottom: 30px;
}

.news-title-section h1 {
    font-size: 2.8rem;
    margin: 0;
    color: #333;
    font-weight: 700;
}

.category-nav {
    margin-bottom: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.category-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
}

.category-nav li {
    display: inline-block;
    /*gap: 5px;*/
}

.category-nav a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1.7rem;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: block;
}

.category-nav li.active a {
    background-color: #00529b;
    color: #fff;
}

.category-nav a:hover {
    background-color: #00529b;
    color: #fff;
}

/* 게시글 그리드 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 개별 게시글 아이템 */
.post-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #00529b;
}

.post-item .category {
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 15px;
}

/* 카테고리 색상 구분 */
.post-item .category.notice {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.post-item .category.press {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.post-item .post-title {
    font-size: 1.8rem;
    margin: 0 0 12px 0;
    color: #222;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    min-height: 3em;
}

.post-item .post-date {
    font-size: 1.3rem;
    color: #999;
    margin: 0;
}
.post-item.hidden {
    display: none;
}
/* 모달(팝업) 스타일 */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    padding: 50px;
    border-radius: 15px;
    width: 65%;
    max-width: 850px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

/* 모달 내부 콘텐츠 스타일 */
#modal-body .category {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 15px;
    border-radius: 15px;
}

#modal-body .category.notice {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    font-size: 1.5rem;
}

#modal-body .category.press {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    font-size: 1.5rem;
}

#modal-body h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.4;
    font-weight: 700;
}

#modal-body .date {
    font-size: 1.3rem;
    color: #888;
    border-bottom: 2px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

#modal-body p {
    font-size: 1.5rem;
    line-height: 1.9;
    color: #444;
}





/* --- Contact 페이지 레이아웃 및 폼 스타일 --- */
.contact-container {
    background-image: url('../images/outlook.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 40px;
    border-radius: 20px;
    box-sizing: border-box;
}

.contact-form {
    width: 90%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

/* 오른쪽 이미지 영역 */
.contact-image {
    display: none;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #333;
    font-size: 1.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1.5rem;
    font-family: 'Noto Sans KR', sans-serif;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #008037;
    outline: none;
}

.submit-btn {
    width: 100%;
    background-color: #008037;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #00662c;
}

.contact-intro {
    text-align: center;
}

.contact-intro p {
    margin-top: 40px;
    font-size: 1.7rem;
}

/* --- Contact 페이지: 오시는 길 --- */
.location-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 100px;
    padding: 0 200px;
    margin-bottom: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 3.2rem;
    color: #333;
}

.location-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.location-content-wrapper .map-container {
    flex: 1;
    position: relative;
    width: 100%;
    padding-top: 40%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.bus-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

/* 라벨 색상 지정 */
.bus-label.jiseon {
    background-color: #2ca600; /* 지선 (초록색) */
    font-size: 1.8rem;
}
.bus-label.geuphaeng {
    background-color: #E60012; /* 급행 (빨간색) */
    font-size: 1.8rem;
}
.bus-label.ganseon {
    background-color: #0e6dea; /* 간선 (파랑) */
    font-size: 1.8rem;
}
.bus-station p {
    font-size: 1.6rem;
    color: #777;
    margin-top: 15px;
}

.info-container.car-info {
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

/* 상세 설명 텍스트 스타일 */
.direction-details p {
    font-size: 1.6rem;
    color: #555;
    margin: 0 0 5px 0;
    line-height: 1.6;
}

/* '대구 시내 출발', '고속도로 이용' 소제목 스타일 */
.direction-subtitle {
    font-size: 1.9rem;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 8px;
}

.direction-details .direction-subtitle:first-child {
    margin-top: 0;
}

.sub_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sc_tit {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.map_section {
    position: relative;
    margin-bottom: 50px;
}

.map_place {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.map_place iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map_text_box {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: -80px auto 0; /* 지도를 살짝 덮도록 위로 올림 */
    position: relative;
    z-index: 2;
}

.map_text_box .address {
    font-size: 2.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.map_text_box .contact-info {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 25px;
}

.map_text_box .contact-info span {
    margin: 0 15px;
}

.map_text_box .contact-info strong {
    font-weight: 700;
    color: #007bff;
    margin-right: 8px;
}


.map_buttons ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.map_buttons a {
    display: block;
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.map_buttons a:hover {
    background-color: rgb(0, 122, 253);
    border-color: #ffffff;
    color: #ffffff;
}

/* --- 교통편 정보 --- */
.transport_section {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.transport_section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transport_section li {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.transport_section li:last-child {
    border-bottom: none;
}
.mobile-only2,
.mobile-only3 {
    display: none;
}
.transport-icon {
    width: 80px;
    flex-shrink: 0;
    margin-right: 50px;
    margin-left: 50px;

}
.transport-icon img {
    width: 100%;
    height: auto;
}

.transport-info h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.transport-info p {
    font-size: 1.8rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 10px 0;
}

.transport-info .bus-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
}

.subway-line {
    display: inline-block;
    width: 60px;
    padding: 4px 4px;
    border-radius: 20px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}
.subway-line.line-2 {
    background-color: #31B404;

}
.subway-line.line2 p{
    font-size: 1.4rem;
}

/* 버스 라벨 재사용 (기존 스타일과 동일) */
.bus-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    min-width: 40px;
    flex-shrink: 0;
}
.bus-label.jiseon { background-color: #2ca600; }
.bus-label.geuphaeng { background-color: #E60012; }
.bus-label.ganseon { background-color: #0e6dea; }




/*모바일 전용 추가 css*/
@media (max-width: 1536px) {
    .vision-main-title {
        left: 9%;
        top: 13%;
        font-size: 4.2rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .vision-subtitle {
        left: 41%;
        top: 63%;
        font-size: 3.7rem;
    }
    .vision-text-1 {
        left: 8%;
        top: 38%;
        max-width: 900px;
    }
    .vision-text-2 {
        right: 8%;
        top: 64%;
        max-width: 700px;
    }
    .vision-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .vision-text-1 {
        font-size: 1.8rem !important;

    }
    .vision-text-2 {
        font-size: 1.8rem !important;
    }
}


@media (max-width: 1475px) {
    .vision-main-title {
        left: 9%;
        top: 13%;
        font-size: 4.2rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .vision-subtitle {
        left: 41%;
        top: 63%;
        font-size: 3.7rem;
    }
    .vision-text-1 {
        left: 8%;
        top: 38%;
        max-width: 900px;
    }
    .vision-text-2 {
        right: 8%;
        top: 64%;
        max-width: 700px;
    }
    .vision-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .vision-text-1 {
        font-size: 1.7rem !important;

    }
    .vision-text-2 {
        font-size: 1.7rem !important;
    }
    .overlay-details {
        margin-top: -50px;
    }
/*    -------------------------------------------test*/


    /*news 페이지 모바일 버전*/
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .modal-content {
        width: 80%;
        padding: 40px;
    }

    /* ===== Contact 페이지 (모바일 수정) ===== */
    .contact-form {
        width: 100%;
        margin-top: -30px;
        max-width: 600px;
    }
    .contact-container {
        width: 96%;
        margin: 0 auto;
        flex-direction: column;
        gap: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 31px 37vw 0 0;
        border-radius: 20px;
        box-sizing: border-box;
    }
    .contact-intro {
        width: 100%;
    }
    .contact-intro h1 {
        font-size: 2.7rem;
    }
    .contact-intro p {
        font-size: 1.7rem;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .form-group {
        margin-top: 5vh;
        width: 100%;
    }
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 1.4rem;
        padding: 12px;
    }
    form label {
        text-align: left;
        display: block;
        width: 100%;
    }
    .submit-btn {
        font-size: 1.5rem;
        padding: 12px 15px;
    }
}

/*좌우 조절하기(축소)*/
@media (max-width: 1200px) {
    .vision-main-title {
        left: 8%;
        top: 13%;
        font-size: 4.2rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .vision-subtitle {
        left: 38%;
        top: 63%;
        font-size: 3.7rem;
    }
    .vision-text-1 {
        left: 7%;
        top: 38%;
        max-width: 900px;
    }
    .vision-text-2 {
        right: 7%;
        top: 62%;
        max-width: 700px;
    }
    .vision-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .vision-text-1 {
        font-size: 1.6rem !important;

    }
    .vision-text-2 {
        font-size: 1.6rem !important;
    }

    /* ===== Hub 갤러리 (1200px 이하) ===== */
    .gallery-item img {
        height: 40vh;
    }
    .image-overlay {
        width: 40%;
    }
    .overlay-text {
        padding: 20px;
    }
    .overlay-text h2 {
        font-size: 2.3rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    .overlay-text p {
        font-size: 1.6rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    .overlay-details {
        margin-top: 0;
        padding-top: 15px;
    }
    .detail-item img {
        width: 20px;
        height: 20px;
    }
    .detail-item span {
        font-size: 1.2rem;
    }
    .overlay-divider {
        margin: 15px auto;
    }
}




@media (max-width: 1100px) {
    html, body {
        min-width: 100%;
    }

    html {
        font-size: 55%;
    }

    .full-page.content-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: auto;
        min-height: auto;
        padding: 10px 5px 20px 5px;
        box-sizing: border-box;
    }
    .container {
        scroll-snap-type: none;
    }
    header {
        position: absolute;
        width: 100%;
        height: auto;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    header .header-logo {
        position: static;
        transform: none;
    }
    header .header-logo img {
        height: 35px;
    }
    header nav {
        padding: 10px;
        display: flex;
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    header nav a {
        margin: 0;
        font-size: 15px;
    }
    .hero-section {
        height: auto;
        border-radius: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 50px;
        box-sizing: border-box;
    }
    .slider-container {
        width: 100%;
        height: 100vw;
        max-height: 500px;
    }
    .slide {
        animation: none;
    }
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hero-text {
        position: absolute;
        width: 90%;
        text-align: center;
        left: 50%;
        top: 410px;
        transform: translateX(-50%);
    }
    .hero-text h1 {
        font-size: 3rem;
        text-align: center;
    }
    .hero-text p {
        font-size: 2rem;
        text-align: center;
    }
    .progress-bar-container {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }
    .scroll-indicator {
        top: 500px;
    }
    .sub-page-header {
        position: relative;
        width: 100%;
        height: 60px;
        padding: 0 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        box-sizing: border-box;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    .sub-page-header nav {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-43%, -50%);
        width: auto;
        gap: 18px;
    }
    .sub-page-header nav a {
        margin: 0;
        font-size: 11px;
        white-space: nowrap;
    }
    .sub-page-content {
        display: flex;
        flex-direction: column; /* 콘텐츠를 세로로 쌓음 */
        align-items: center; /* 콘텐츠를 가로 중앙에 정렬 */
        text-align: center; /* 모든 텍스트를 중앙 정렬 */
    }
    /* Vision 섹션 독립 스타일 */
    .vision-sticky-container {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
        margin-top: -50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    /* Vision 섹션 내부의 텍스트 요소들 */
    .vision-sticky-container h1,
    .vision-sticky-container h2,
    .vision-sticky-container p {
        text-align: center;
    }
    .vision-background-circle {
        display: none;
    }
    .section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .section-content p {
        text-align: center;
    }
    .vision-image-container {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 5vw 0 auto;
        margin-top: 40px;
    }
    .vision-image-container img {
        max-width: 75%;
        height: auto;
        /*margin-top: 460px;*/
    }


    /* ===== Our Vision 섹션 수정 ===== */
    .vision-section {
        padding-top: 80px;
    }
    .vision-sticky-wrapper {
        height: auto;
    }
    .vision-sticky-container {
        position: static;
        height: auto;
        padding: 20px;
    }
    .vision-video-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        margin-bottom: 30px;
    }
    .vision-video-container video {
        width: 100%;
        height: auto;
    }
    .vision-main-title,
    .vision-text-1,
    .vision-subtitle,
    .vision-text-2 {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        text-align: center;
        max-width: 100%;
        margin: 20px auto;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    .vision-main-title {
        font-size: 2.5rem;
    }
    .vision-subtitle {
        font-size: 2rem;
    }
    .vision-text-1,
    .vision-text-2 {
        font-size: 1rem;
        text-align: center;
    }
    /* ===== Direction 섹션 (모바일 수정) ===== */
    .direction-section {
        height: 400px;
        min-height: auto;
        padding: 10px 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .direction-content {
        width: 96%;
        max-width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .direction-intro,
    .direction-title,
    .direction-text {
        position: static !important;
        transform: none !important;
        text-align: center;
        margin: 10px auto;
        opacity: 1 !important;
        transition: none !important;
    }

    .direction-intro {
        font-size: 2rem;
    }

    .direction-title {
        font-size: 2.8rem;
        text-shadow: none;
    }

    .direction-text {
        font-size: 1.6rem;
        margin: 5px auto;
    }

    .deco-circles {
        width: 150px;
        height: 150px;
        display: none;
    }

    .topic-circles {
        opacity: 1 !important;
        transform: none !important;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        position: static;
        margin-top: 5px;
        width: 100%;
    }

    .topic-card {
        width: 29vw;
        height: 35vw;
        max-width: 150px;
        max-height: 180px;
        padding: 5px;
        border-radius: 20px;
        opacity: 1 !important;
        transform: none !important;
        background-color: #008037;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .topic-card::before,
    .topic-card::after {
        display: none;
    }

    .topic-card h2 {
        font-size: 1.4rem;
        color: white;
        transform: none;
        margin-bottom: 5px;
    }

    .topic-card p {
        font-size: 1rem;
        line-height: 1.4;
        color: white;
        opacity: 1;
    }

    .topic-card:hover,
    .topic-card:hover h2,
    .topic-card:hover p {
        transform: none;
        opacity: 1;
    }

    /* ===== Strategy 섹션 (모바일 수정) ===== */
    .strategy-section {
        margin-top: 40px;
        background-color: #ffffff;
        padding: 40px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .strategy-content {
        width: 100%;
        max-width: 100%;
        margin-top: -5vh;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .strategy-content h1,
    .strategy-content h2,
    .strategy-content p {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        text-align: center;
        margin-top: 20px;
        width: 100%;
    }

    .strategy-content h1 {
        font-size: 2.2rem;
        margin: 15px auto;
    }

    .strategy-content h2 {
        font-size: 2.6rem;
        margin: 15px auto;
    }

    .strategy-content p {
        font-size: 1.6rem;
        line-height: 1.6;
        margin: 30px auto 15px auto;
    }

    /* ===== Goal 섹션 (모바일 수정) ===== */
    .goal-combined-section {
        padding: 50px 20px;
        background-color: #008037;
        color: white;
    }

    .expanding-background {
        display: none;
    }

    .goal-intro-text h2,
    .goal-intro-text h1,
    .goal-intro-text p {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        text-align: center;
        margin: 15px auto;
    }

    .goal-intro-text h2 {
        font-size: 2.5rem;
        color: #fff400;
    }

    .goal-intro-text h1 {
        font-size: 2.8rem;
    }

    .goal-intro-text p {
        font-size: 1.6rem;
    }

    .goal-cards-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        margin-top: 40px;
        transition-delay: 0.5s;
    }

    .goal-card {
        width: 85vw;
        max-width: 350px;
        text-align: center;
    }

    .goal-card h2 {
        font-size: 1.7rem;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        cursor: pointer;
    }

    .goal-card .card-content {
        position: static;
        transform: none;
        width: 100%;
        padding: 0 10px;
        background-color: transparent;
        box-shadow: none;
        box-sizing: border-box;
    }

    .goal-card:hover .card-content {
        opacity: 1;
        max-height: 100px;
        padding: 10px 10px;
    }

    .card-content p {
        font-size: 1.4rem;
        text-align: center;
        margin: 0;
        padding: 0;
        color: white;
    }

    .goal-message-container {
        transition-delay: 0.5s;
        margin-top: 40px;
    }


    /* ===== The Hub 섹션 (카드) 수정 ===== */
    .third-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: auto;
        padding: 10px 5px 30px 5px;
        box-sizing: border-box;
    }

    .third-section .section-content {
        padding: 50px 20px;
        align-items: center;
        text-align: center;
    }

    .third-section .section-content h1,
    .third-section .section-content p {
        text-align: center;
    }

    .card-container {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        margin: 20px 15px 0 15px;
    }

    .card {
        width: 24vw;
        height: 24vw;
        max-width: 250px;
        max-height: 250px;
        border-radius: 20px;
        padding: 5px;
    }

    .card:hover {
        transform: scale(1.05);
        border-radius: 20px;
    }

    .card-content h2 {
        font-size: 2rem;
        margin-top: 30%;
        margin-bottom: 10px;
    }

    .third-section .card-content p {
        font-size: 1.6rem;
        opacity: 0;
        margin-top: 25%;
    }

    .card:hover .card-content p {
        opacity: 1;

    }

    .view-more {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 50px auto 20px;
        display: block;
        width: 60%;
        text-align: center;
    }

    #scrollTopBtn {
        position: fixed;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
    }


    /*news 페이지 모바일 버전*/

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .modal-content {
        width: 80%;
        padding: 40px;
    }


    /* ===== Contact 페이지 (모바일 수정) ===== */
    .contact-form {
        width: 100%;
        margin-top: -30px;
        max-width: 600px;
    }

    .contact-container {
        width: 96%;
        margin: 0 auto;
        flex-direction: column;
        gap: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 31px 37vw 0 0;
        border-radius: 20px;
        box-sizing: border-box;
        background-position: right center;
    }

    .contact-intro {
        width: 100%;
    }

    .contact-intro h1 {
        font-size: 2.7rem;
    }

    .contact-intro p {
        font-size: 1.7rem;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .form-group {
        margin-top: 5vh;
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 1.4rem;
        padding: 12px;
    }

    form label {
        text-align: left;
        display: block;
        width: 100%;
    }


    .submit-btn {
        font-size: 1.5rem;
        padding: 12px 15px;
    }


    /* ===== 푸터 ===== */

    .contact-section {
        padding: 10px;
    }

    .contact-section footer, .copyright {
        position: static;
        transform: none;
    }

    .copyright {
        font-size: 1.4rem;
        color: #888;
        position: absolute;
        left: 50%;
        top: 20%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
    }
}

/*뉴스페이지 더 작은 버전*/
@media (max-width: 768px) {
    .hero-text {
        position: absolute;
        width: 90%;
        text-align: center;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
    }

    .hero-text h1 {
        text-align: center;
        font-size: 3rem;
    }

    .hero-text p {
        text-align: center;
        font-size: 1.6rem;
    }
    .scroll-indicator {
        bottom: 10px;
    }

    .news-main-container {
        width: 90%;
        padding: 30px 15px;
    }

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

    .category-nav ul {
        flex-wrap: wrap;
        /*gap: 0px;*/
        justify-content: center;
    }

    .category-nav a {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 90%;
        padding: 30px 20px;
    }

    #modal-body h2 {
        font-size: 1.5rem;
    }

    #modal-body p {
        font-size: 1rem;
    }
    .goal-message {
        font-size: 2rem !important;
    }

    .card-container {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        margin: 20px 10px 0 10px;
    }

    .card {
        width: 25vw;
        height: 25vw;
        max-width: 220px;
        max-height: 220px;
        border-radius: 20px;
        padding: 5px;
    }

    .card:hover {
        transform: scale(1.05);
        border-radius: 20px;
    }

    .card-content h2 {
        font-size: 2rem;
        margin-top: 30%;
        margin-bottom: 10px;
    }

    .third-section .card-content p {
        font-size: 1.4rem;
        opacity: 0;
        margin-top: 25%;
    }

    .card:hover .card-content p {
        opacity: 1;
    }

    .image-overlay {
        width: 45% ;
    }
    .contact-form {
        width: 100%;
        margin-top:20px;
        max-width: 600px;
    }

    .contact-container {
        width: 96%;
        margin: 0 auto;
        flex-direction: column;
        gap: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 20px;
        border-radius: 20px;
        box-sizing: border-box;
    }
    .contact-intro h1 {
        font-size: 2.7rem;
    }

    .form-group {
        margin-top: 5vh;
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 1.2rem;
        padding: 12px;
    }
    form label{
        text-align: left;
        display: block;
        width: 100%;
    }

    .image-overlay {
        width: 50%;
    }
    .mobile-only2 {
        display: initial;
    }
}


@media (max-width: 555px) {
    .mobile-only,
    .mobile-only3{
        display: initial;
    }
    .vision-text-1,
    .vision-text-2 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        margin-top: -3px;
    }
    .card {
        width: 80%;
        max-width: 350px;
        height: 200px;
        border-radius: 45px;
    }

    .card-content h2 {
        font-family: 'Roboto', sans-serif;
        font-size: 2.6rem;
        margin-top: 40px;
        margin-bottom: 15px;

        transition: color 0.4s ease-in-out;
    }

    .third-section .card-content p {
        font-size: 1.6rem;
        line-height: 1.4;
        opacity: 0;
        color: #777777;
        transition: color 0.4s ease-in-out, opacity 0.4s ease-in-out;
        margin-top: 40px;
    }
    .hero-text {
        position: absolute;
        width: 90%;
        text-align: center;
        left: 50%;
        top : 350px ;
        transform: translateX(-50%);
    }
    .scroll-indicator {
        top: 420px ;
    }

    /* ===== Hub 갤러리  ===== */
    .image-overlay {
        width: 100%;
    }
    .overlay-text h2 {
        font-size: 2.5rem;
    }
    .overlay-text p {
        font-size: 1.8rem;
    }

    .detail-item span {
        font-size: 1.4rem;
    }

    .detail-item img {
        width: 15px;
        height: 15px;
        margin-right: 8px;
    }
    .map_buttons ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 10px;
    }

    .map_buttons li {
        flex: 1;
        text-align: center;
    }

    .map_buttons a {
        display: block;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 30px;
        text-decoration: none;
        color: #333;
        font-size: 1.6rem;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    .map_text_box .contact-info span {
        margin: 0 3px;
    }

    .category-nav ul {
        flex-wrap: nowrap;
        width: 100%;
        padding: 0;
        gap: 2px;
        justify-content: center;
    }

    .category-nav li {
       flex-shrink: 0;
    }

    .category-nav a {
        padding: 8px 15px;
        text-align: center;
        font-size: 1.5rem;
        white-space: nowrap;
    }
    .transport-icon {
        width: 55px;
        flex-shrink: 0;
        /*margin-right: 10px;*/
        margin: 0 20px 0 20px;
        /*margin-left: 10px;*/
    }

}


@media (max-width: 400px) {
    .content-section h2 {
        font-size: 2.7rem;
    }
    .content-section p {
        font-size: 1.5rem;
    }
    .third-section .section-content p {
        font-size: 1.5rem;
    }

    .direction-section {
        height: auto;
        padding-bottom: 50px;
    }

    .topic-circles {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: -30px
    }

    .topic-card {
        flex-direction: row;
        justify-content: center;
        width: 140%;
        height: 100px;
        max-width: none;
        max-height: none;
    }

    .topic-card h2 {
        font-size: 1.6rem;
        margin-bottom: 0;
        margin-right: 10px;
    }

    .topic-card p {
        font-size: 1.1rem;
    }

    .hero-text {
        position: absolute;
        width: 90%;
        text-align: center;
        left: 50%;
        top: 300px;
        transform: translateX(-50%);
    }

    .hero-text p {
        text-align: center;
        font-size: 1.3rem;
    }

    .scroll-indicator {
        top: 370px;
    }
    .overlay-text p {
        font-size: 1.6rem;
    }
}


@media (max-width: 387px) {
    .map_text_box .address {
        font-size: 2.2rem;
        font-weight: 500;
        color: #333;
        margin-bottom: 15px;
    }

    .map_text_box .contact-info {
        font-size: 1.6rem;
        color: #555;
        margin-bottom: 25px;
    }

    .map_text_box .contact-info span {
        margin: 0 3px;
    }

    .map_buttons ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 10px;
    }

    .map_buttons li {
        flex: 1;
        text-align: center;
    }

    .transport-icon {
        width: 60px;
        flex-shrink: 0;
        margin-right: 10px;
        margin-left: 10px;
    }

    .transport-info h3 {
        font-size: 2rem;
        font-weight: 600;
        color: #333;
        margin: 0 0 20px 0;
    }

    .transport-info p {
        font-size: 1.6rem;
        color: #555;
        line-height: 1.8;
        margin: 0 0 5px 0;
    }

    .transport-info .bus-info p {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 1.6rem;
    }

    .subway-line {
        display: inline-block;
        width: 60px;
        padding: 4px 4px;
        border-radius: 20px;
        color: white;
        font-size: 1.6rem;
        font-weight: 700;
        text-align: center;
    }

    .subway-line.line-2 {
        background-color: #31B404;
    }

    .subway-line.line2 p {
        font-size: 1.6rem;
    }

    .bus-label {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 20px;
        color: white;
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        min-width: 30px;
        flex-shrink: 0;
    }
}
