/* css/style.css */

/* 1. 글로벌 변수 설정 (CSS Variables) */
:root {
    --color-primary: #1a120f;
    /* Dark Navy: 메인 배경 및 주요 컬러 */
    --color-gold: #c58361;
    /* Gold: 포인트 및 버튼 컬러 */
    --color-white: #fdfbf7;
    --color-light-gray: #F4F5F7;
    --color-text: #333333;

    /* 타이포그래피 (Pretendard 우선 적용) */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', sans-serif;
}

/* 2. 글로벌 초기화 (Reset) */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* 반응형 대응을 위한 box-sizing */
}

body,
h1,
h2,
h3,
h4,
p,
ul,
li,
figure,
figcaption {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
    /* 기본 불릿 제거 */
}

a {
    text-decoration: none;
    /* 링크 밑줄 제거 */
    color: inherit;
}

body {
    background-color: #1a120f;
    color: #fdfbf7;
    line-height: 1.6;
    overflow-x: hidden;
    /* 가로 스크롤 방지 */
}

/* 3. 공통 컴포넌트: 버튼 (Gold 테마 적용) */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    /* 약간의 둥근 모서리로 부드러운 느낌 제공 */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-gold.solid {
    background-color: #2c211c;
    color: var(--color-white);
    border: 1px solid var(--color-gold);
}

.btn-gold.solid:hover {
    background-color: #3b2c25;
    /* 호버 시 약간 짙은 브라운 */
    border-color: var(--color-gold);
}

.btn-gold.outline {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-gold.outline:hover {
    background-color: #2c211c;
    color: var(--color-white);
}

/* 4. GNB (Global Navigation Bar) */
.gnb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Glassmorphism 효과 */
    background: rgba(26, 18, 15, 0.85);
    /* Dark Navy 기반 반투명 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari 지원 */
    border-bottom: 1px solid rgba(197, 131, 97, 0.2);
    /* 하단에 은은한 골드 라인 */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.gnb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

/* logo_gold.png: 심볼+법인명 통합 가로형 이미지 (4:1 비율) */
.navbar-logo {
    height: auto;
    max-height: 70px;
    min-width: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(197, 131, 97, 0.45));
    transition: filter 0.3s ease;
}

.logo a:hover .navbar-logo,
.logo a:focus .navbar-logo {
    filter: drop-shadow(0 2px 16px rgba(220, 170, 60, 0.75));
}

@media screen and (max-width: 1024px) {
    .navbar-logo {
        max-height: 56px;
        min-width: 180px;
    }
}

@media screen and (max-width: 768px) {
    .navbar-logo {
        max-height: 46px;
        min-width: 150px;
    }
}

.main-menu ul {
    display: flex;
    gap: 2.5rem;
}

.main-menu a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: var(--color-gold);
}

.util-menu {
    display: flex;
    gap: 1rem;
}

/* GNB: 모바일 햄버거 버튼 (데스크톱에선 숨김) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-gold);
    /* 햄버거 라인도 골드로 포인트 */
    transition: all 0.3s ease;
}

/* 5. 대문 (Hero Section Video Update) */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    color: var(--color-white);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 18, 15, 0.6);
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    /* 요청하신 오버레이 역할 */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    word-break: keep-all;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title::after {
    content: '.';
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-light-gray);
    line-height: 1.6;
    word-break: keep-all;
    opacity: 0.9;
    letter-spacing: -0.02em;
}

/* 6. 스크롤 인디케이터 애니메이션 */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    position: relative;
    opacity: 0.8;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
    animation: scrollWheel 2s infinite ease-in-out;
}

.scroll-indicator .text {
    font-size: 0.75rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite ease-in-out;
}

/* Scroll Fade In 애니메이션 공통 클래스 */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, 5px);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

/* 6.5 메인 페이지 전용 섹션들 */
.section {
    padding: 8rem 2rem;
}

/* Vision 섹션 */
.vision-section {
    background-color: transparent;
}

.vision-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.vision-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vision-text {
    flex: 1;
}

.vision-text p {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    word-break: keep-all;
}

/* Press 섹션 */
.press-section {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-title-white {
    color: var(--color-white) !important;
}

.section-title-white::after {
    background-color: var(--color-gold);
}

.feed-card-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feed-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    color: #e2e8f0;
    border: 1px solid rgba(197, 131, 97, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feed-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feed-card:hover .feed-thumb img {
    transform: scale(1.05);
}

.feed-info {
    padding: 1.5rem;
    text-align: left;
}

.feed-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.feed-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--color-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-date {
    display: block;
    font-size: 0.9rem;
    color: #999;
}

/* Contact 섹션 (Dual Banner) */
.contact-section {
    background-color: transparent;
}

.dual-banner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}

/* Single Banner Layout */
.single-banner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
}

.banner-box {
    flex: 1;
    padding: 4rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 131, 97, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.join-box {
    background-color: rgba(255, 255, 255, 0.05);
}

.invest-box {
    background: linear-gradient(135deg, #2c211c 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border: none;
}

.banner-box h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.join-box h3 {
    color: #c58361;
}

.invest-box h3 {
    color: var(--color-gold);
}

.banner-box p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    word-break: keep-all;
    color: #e2e8f0;
}

.join-box p {
    color: #e2e8f0;
}

.invest-box p {
    color: var(--color-light-gray);
}

/* 7. 서브페이지 공통 스타일 (Subpage Layout) */
.subpage-header {
    height: 350px;
    padding-top: 80px;
    /* GNB 공간 확보 */
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c211c 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.subpage-header-content {
    animation: fadeInUp 1s ease-out forwards;
}

.subpage-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.subpage-title.eng-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    font-family: 'Inter', 'Outfit', 'Pretendard', sans-serif;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.subpage-desc {
    font-size: 1.2rem;
    color: var(--color-light-gray);
    opacity: 0.9;
}

/* 8. 공통 섹션 레이아웃 */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-bg-light {
    background-color: transparent;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    word-break: keep-all;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 1rem auto 0;
}

/* 9. 협회 소개: 타임라인 (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(197, 131, 97, 0.1), var(--color-gold), rgba(197, 131, 97, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
    text-align: left;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 0;
    right: -8.5px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: var(--color-gold);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 3px rgba(197, 131, 97, 0.3);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8.5px;
}

.timeline-date {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 131, 97, 0.2);
    color: #e2e8f0;
}

.timeline-list {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.timeline-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-white);
    font-weight: 500;
    word-break: keep-all;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold);
    font-weight: bold;
}

.timeline-list li span {
    color: var(--color-gold);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* 10. 협회 소개: 조직도 (Org Grid) */
.org-row {
    margin-bottom: 4rem;
}

.org-row-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.org-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.org-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 131, 97, 0.2);
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.org-card:hover {
    transform: translateY(-5px);
}

.org-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--color-light-gray);
}

.org-info {
    padding: 1.2rem;
}

.org-role {
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.org-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
}

.org-grid.small .org-card {
    width: 180px;
}

.org-grid.small .org-card img {
    height: 120px;
}

/* 10.5 조직도: 명품 이력서 스타일 프로필 */
.profile-history-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    text-align: left;
}

.profile-history-item {
    margin-bottom: 1.5rem;
}

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

.history-year {
    display: block;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.history-detail {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    word-break: keep-all;
    line-height: 1.5;
}

/* 11. 주요 사업: 카드 (Info Card) */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 131, 97, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.info-card-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #c58361;
}

.info-card p {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
    word-break: keep-all;
}

/* 13. 반응형 (Responsive) */
@media screen and (max-width: 1024px) {
    .main-menu ul {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .vision-container {
        flex-direction: column;
    }

    .vision-image {
        width: 100%;
        max-height: 400px;
    }

    .dual-banner {

/* Single Banner Layout */
.single-banner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
}

        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 18, 15, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, border-color 0.4s ease;
        border-top: 1px solid transparent;
        display: flex;
        justify-content: center;
    }
    
    .main-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
        transition: padding 0.4s ease;
    }

    .main-menu.show {
        max-height: 400px;
        border-top-color: rgba(197, 131, 97, 0.2);
    }

    .main-menu.show ul {
        padding: 2rem 0;
    }

    .util-menu {
        display: none;
    }

    .gnb-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .subpage-title {
        font-size: 2.2rem;
    }

    .subpage-title.eng-title {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    /* 타임라인 반응형: 세로선 좌측으로 붙이기 */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-dot {
        left: 11px !important;
        right: auto !important;
    }

    .hantoo-title {
        font-size: 1.8rem;
    }

    .banner-box {
        padding: 3rem 1.5rem;
    }

    /* 모바일 조직도 (Org Chart) 반응형 개조: 수직 스택 및 단일 중앙선 */
    .org-level-2 {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .org-side-card, .org-core-card {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        order: 0;
    }
    
    .org-core-card {
        order: -1; /* 집행회장 카드를 최상단 배치 */
    }
    
    /* 모바일에서는 세로 레이아웃에 맞춰 gap을 유지 */
    .org-level-2 {
        gap: 3rem !important; /* 모바일 전용 갭 보정 */
    }
    .org-side-card {
        padding: 1.5rem !important;
    }
    .org-side-card h4 {
        font-size: 1.15rem !important;
    }
}

/* 14. Global Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(197, 131, 97, 0.2);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer-info p {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-info .copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.5;
    font-weight: 300;
}