@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #222222;
    background-color: #FCFCFC;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.figma-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    padding-top: 57px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.figma-main-banner {
    width: 100%;
    height: 90vh; /* Use viewport height for responsiveness */
    max-height: 1080px; /* Max height for very large screens */
    min-height: 400px; /* Min height for very small screens */
    position: relative;
    overflow: hidden;
}

/* Media Queries for smaller screens */
@media (max-width: 1280px) {
    .figma-main-banner {
        height: 70vh;
        min-height: 350px;
    }
}

@media (max-width: 1280px) {
    .figma-main-banner {
        height: 60vh;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .figma-main-banner {
        height: 50vh;
        min-height: 250px;
    }
}

.swiper-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.banner-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 30px;
}

.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.figma-section {
    width: 100%;
    max-width: 1440px;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 64px;
}

.figma-section-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-heading {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #00754A;
}

.main-heading {
    font-family: 'Ria Sans', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #222222;
    line-height: 1.5;
    letter-spacing: -0.04em;
    margin: 0;
}

/* 참여자 섹션 스타일 */
.participant-section {
    max-width: 100%;
    padding: 120px 60px;
    background: #FCFCFC;
}

.participant-container {
    display: flex;
    gap: 60px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 600px;
}

/* 좌측 영역 */
.participant-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.participant-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participant-header .sub-heading {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #00754A;
}

.participant-header .main-heading {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #222222;
    line-height: 1.4;
    margin: 0;
}

/* 탭 버튼 */
.participant-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E5E5E5;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.tab-button:first-child {
    border-top: 1px solid #E5E5E5;
}

.tab-button .tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button .tab-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.tab-button .tab-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #666666;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    border-bottom-color: #00754A;
}

.tab-button.active .tab-icon img,
.tab-button:hover .tab-icon img {
    opacity: 1;
    filter: invert(34%) sepia(98%) saturate(1453%) hue-rotate(130deg) brightness(94%) contrast(101%);
}

.tab-button.active .tab-text,
.tab-button:hover .tab-text {
    color: #00754A;
}

/* 우측 패널 영역 */
.participant-right {
    flex: 1;
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.participant-panels {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.6s ease;
}

.panel {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}


/* 기본 배경 위치 */
.panel:nth-child(1) .panel-background { background-position: 0% center; }
.panel:nth-child(2) .panel-background { background-position: 50% center; }
.panel:nth-child(3) .panel-background { background-position: 100% center; }

.panel.active {
    width: 100%;
    left: 0 !important;
    z-index: 10;
}

.panel-background {
    position: absolute;
    inset: 0;
    background-size: 300% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

/* 각 패널별 배경 위치 */
.panel:nth-child(1) .panel-background {
    background-position: 0% center;
}

.panel:nth-child(2) .panel-background {
    background-position: 50% center;
}

.panel:nth-child(3) .panel-background {
    background-position: 100% center;
}

.panel.active {
    flex: 2.2; /* 확장되는 패널 비율 */
    z-index: 10;
}

.panel:not(.active) {
    flex: 0.9; /* 줄어드는 비활성 패널 비율 */
}

.panel.active .panel-content {
    opacity: 1;
    visibility: visible;
}

/* 비활성 패널은 살짝 어둡게 */
.panel:not(.active)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    transition: all 0.4s ease;
}

/* 활성화된 패널은 해당 부분을 크게 */
.panel:nth-child(1).active .panel-background {
    background-position: 0% center;
    background-size: 100% 100%;
}

.panel:nth-child(2).active .panel-background {
    background-position: center center;
    background-size: 100% 100%;
}

.panel:nth-child(3).active .panel-background {
    background-position: 100% center;
    background-size: 100% 100%;
}

.panel-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.panel.active .panel-background img {
    transform: scale(1.05);
}

.panel-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

/* 패널 콘텐츠 */
.panel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease 0.2s;
}

.panel.active .panel-content {
    opacity: 1;
    visibility: visible;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.panel-header h3 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0;
}

.panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-close img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.panel-description {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0;
}

.panel-details h4 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #FFFFFF;
    margin: 0 0 16px 0;
}

.panel-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-details ul li {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.panel-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00754A;
    font-weight: 700;
}

.panel-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.panel-buttons .btn-outline {
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #222222;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.panel-buttons .btn-outline:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

.panel-buttons .btn-primary {
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 16px;
    background-color: #00754A;
    border: 1px solid #00754A;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.panel-buttons .btn-primary:hover {
    background-color: #005A38;
    border-color: #005A38;
}

.panel-buttons .btn-primary img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* 비활성 패널은 콘텐츠 숨김 */
.panel:not(.active) .panel-content {
    display: none;
}

/* 반응형 */
@media (max-width: 1200px) {
    .participant-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .participant-left {
        flex: none;
        width: 100%;
    }
    
    .participant-right {
        min-height: 500px;
    }
}

@media (max-width: 1280px) {
    .participant-section {
        padding: 60px 20px;
    }
    
    .participant-header .main-heading {
        font-size: 28px;
    }
    
    .tab-button .tab-text {
        font-size: 18px;
    }
    
    .panel-buttons {
        flex-direction: column;
    }
    
    .panel-buttons .btn-outline,
    .panel-buttons .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.pana-accordion {
  width: 952px;
  height: 820px;
  margin: 20px auto;
  position: relative;
  overflow: hidden
}

.pana-accordion .pana-accordion-wrap {
  margin-left: -1px;
  position: relative;
  width: 952px;
  height: 820px;
}

.pana-accordion .pana-accordion-wrap .pana-accordion-item {
  display: flex;
  flex-direction: column;
  justify-content: between;
  border-left: 2px solid #FCFCFC;
  height: 820px;
  overflow: hidden;
  float: left;
  position: absolute;
  left: 0;
  top: 0;
  padding: 36px 54px;
}

.pana-accordion .pana-accordion-wrap .pana-accordion-item .pana-content {
	z-index: 1;
}
.pana-accordion-item {
    box-sizing: border-box;
}

.pana-accordion-item .panel-body {
    display: none;
}

.pana-accordion-item.active .panel-body {
    display: block;
}

.pana-accordion-item .panel-buttons {
    display: none;
}

.pana-accordion-item.active .panel-buttons {
    display: flex; 
    z-index: 1;
}

.pana-accordion-item .panel-header h3 {
    cursor: pointer;
    font-size: 24px;
    margin: 0;
}

.news{padding:120px 0}
.news .board-list{margin-top:18px}

.participation-guide{padding:80px 0}
.participation-guide .logo-area{height:220px;background-repeat:no-repeat;background-position:center}
.hashtags{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
.tag{display:inline-block;background:#f1f5f9;padding:8px 12px;border-radius:20px;color:var(--muted);font-size:14px}
.action-btn{display:inline-block;margin-top:28px;padding:16px 36px;border-radius:8px;background:var(--accent);color:#fff;border:0;cursor:pointer}