/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter;
    background-color: white;
    color: #333;
    text-align: center;
    padding-top: 120px;
    /* 기본적으로 헤더 높이만큼 여백 추가 */
}

/* ---------- 헤더 및 내비게이션 스타일 ---------- */
/* 고정 헤더 스타일 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    color: white;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 헤더에 그림자 효과 */
    z-index: 1000;
    /* 다른 요소 위에 배치 */
    transition: padding 0.3s ease-in-out;
    /* 부드러운 애니메이션 효과 */
}

/* 로고 스타일 */
.logo {
    transition: opacity 0.3s ease-in-out;
    /* 부드러운 페이드 효과 */
}

.logo.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.logo img {
    width: auto;
    /* 원본 크기 유지 */
    max-width: 54%;
    /* 부모 요소 크기를 넘지 않도록 */
    height: auto;
    /* 비율 유지 */
    display: block;
    margin: 0 auto;
    /* 중앙 정렬 */
    margin-bottom: 20px;
    /* 로고 아래 여백 추가 */
}

/* 메뉴바 스타일 */
.menu {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.menu li {
    margin: 0 30px;
}

.menu a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: #ffcc00;
}

/* 클릭된 버튼(활성화된 메뉴) 스타일 */
.menu a.active {
    color: #007bff !important;
    /* 활성화된 메뉴 색 */
    font-weight: bold;
    /* 강조 효과 */
    border-bottom: 2px solid #007bff;
    /* 밑줄 추가 */
}

/* ---------- 공통 레이아웃 및 섹션 스타일 ---------- */
/* 메인 캔버스 레이아웃 */
.canvas {
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 공통 섹션 스타일 */
section {
    padding: 50px;
    text-align: center;
    background-color: white;
    margin: 20px auto;
    width: 100%;
}

#paragraph {
    text-align: justify;
    /* 텍스트 양쪽 정렬 */
    font-weight: 400;
    font-size: 20px;
    line-height: 1.8;
    /* 기본값 1.2~1.4보다 넓게 설정 */
    word-spacing: 2px;
    /* 단어 간격 조정 (필요시 조정) */
}

/* 제목 스타일 */
h2 {
    position: relative;
    display: inline-block;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

/* 제목 밑줄 효과 */
h2::after {
    content: "";
    display: block;
    width: 100%;
    /* 밑줄 길이 (필요하면 조정 가능) */
    height: 2px;
    background-color: #007bff;
    /* 파란색 */
    margin: 8px auto 0;
    /* 위 여백 추가, 중앙 정렬 */
}

/* 서브 제목 스타일 */
.sub-heading {
    font-size: 22px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

/* 이미지 스타일 (좌측 정렬) */
#paragraph img {
    display: block;
    margin: 0;
    /* 좌측 정렬 */
    max-width: 140px;
    /* 이미지 크기 조정 */
    height: auto;
}

/* 모든 sponsor logo wrapper를 좌측 정렬 */
#paragraph .sponsor-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    width: 100%;
    margin: 0; /* 좌측 정렬 유지를 위해 auto 제거 */
    padding: 0;
    text-align: left; /* 혹시 모를 내부 텍스트 대비 */
  }
  
  /* 모든 sponsor logo 이미지 크기 통일 */
  #paragraph .sponsor-logo img {
    height: 200px;
    max-width: 340px;
    object-fit: contain;
    margin: 0;
  }
  
  /* bronze sponsor 추가 마진 제거 */
  #paragraph .sponsor-logo.bronze img {
    margin: 0;
  }

/* ---------- 슬라이드쇼 스타일 ---------- */
/* 메인 슬라이드쇼 */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* 화면 가로 너비 100% */
    height: 280px;
    /* 기존 값 유지 */
    background-color: transparent;
    /* 배경색 제거 */
    margin: 0;
    /* 불필요한 여백 제거 */
    padding: 0;
    /* 불필요한 패딩 제거 */
}

/* 슬라이드쇼 컨테이너 */
.slideshow {
    position: relative;
    width: 100%;
    /* 부모 요소 크기와 동일하게 설정 */
    height: 360px;
    /* 동일한 높이 유지 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 슬라이드 이미지 */
.slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 비율 유지하면서 빈 공간 없이 채우기 */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* 첫 번째 이미지는 기본적으로 보이도록 설정 */
.slideshow img.active {
    opacity: 1;
}

/* 베뉴 페이지 전용 슬라이드쇼 */
#venue-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    /* canvas와 동일한 너비로 설정 */
    height: 280px;
    margin: 0 auto;
    padding: 0;
    /* 패딩 제거 */
}

.venue-slideshow {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* 박스 크기 계산 방식 명확히 지정 */
}

.venue-slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    max-width: 100%;
    /* 최대 너비 제한 */
    padding-left: 50px;
    /* 왼쪽 패딩만 추가 */
    padding-right: 50px;
    /* 오른쪽 패딩만 추가 */
}

.venue-slideshow img.active {
    opacity: 1;
}

/* 슬라이드쇼 내비게이션 */
.slideshow-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slideshow-navigation span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    /* 살짝 투명한 하얀색 */
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.slideshow-navigation span.active {
    background-color: rgba(255, 255, 255, 0.9);
    /* 활성화된 점도 하얀색(좀 더 진한) */
}

/* ---------- 베뉴 페이지 스타일 ---------- */
/* 베뉴 페이지의 h2 타이틀 특별 처리 */
h2.venue-title {
    display: block;
    width: 100%;
    text-align: left;
}

#paragraph h2.venue-title::after {
    margin-left: 0;
    margin-right: auto;
}

/* 베뉴 컨테이너 - 좌우 나란히 배치를 위한 플렉스 컨테이너 */
.venue-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
    justify-content: space-between;
}

/* 베뉴 정보 스타일 - 왼쪽 텍스트 영역 */
.venue-info {
    flex: 1;
    text-align: left;
    min-width: 45%;
}

.venue-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.venue-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.accommodation-note {
    margin-top: 20px;
}

/* 지도 컨테이너 스타일 - 오른쪽 지도 영역 */
.venue-map {
    flex: 1;
    border: 1px solid #ddd;
    height: 350px;
    position: relative;
    min-width: 45%;
    max-width: 55%;
}

/* 지도 하단 링크 스타일 */
.map-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ---------- 위원회 페이지 스타일 ---------- */
/* 위원회 목록 스타일 */
.committee-list {
    list-style-type: disc;
    text-align: left;
    padding-left: 20px;
    margin-bottom: 30px;
}

.committee-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ---------- 등록 페이지 스타일 ---------- */
/* 등록 테이블 스타일 */
.registration-table {
    width: 100%;
    margin-bottom: 30px;
    text-align: left;
}

.registration-row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #eee;
}

.registration-row.spacer {
    height: 20px;
    border-bottom: none;
}

.registration-header {
    width: 100%;
    padding: 12px 0;
    font-weight: 500;
    color: #333;
}

.registration-cell {
    padding: 12px 0;
    line-height: 1.5;
}

.registration-cell.category {
    flex: 1;
    color: #007bff;
    font-weight: 500;
}

.registration-cell.fees {
    flex: 1;
}

/* 노트 스타일 */
.note {
    font-style: italic;
    font-size: 0.9em;
    margin-top: 15px;
    color: #666;
}

/* ---------- 초록 제출 페이지 스타일 ---------- */
/* 제출 마감일 헤딩 스타일 */
.submission-heading {
    font-size: 24px;
    line-height: 1.4;
    text-align: left;
    display: block;
    width: 100%;
}

/* 취소선 텍스트 (연장된 날짜용) */
.strikethrough {
    text-decoration: line-through;
    color: #777;
}

/* 경고 텍스트 */
.highlight-warning {
    color: #d9534f;
}

/* 안내 목록 스타일 */
.instructions-list {
    list-style-type: decimal;
    text-align: left;
    padding-left: 20px;
    counter-reset: item;
}

.instructions-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    counter-increment: item;
}

.instructions-list ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 8px;
}

.instructions-list ul li {
    margin-bottom: 6px;
    counter-increment: none;
}

/* 초록 테이블 스타일 */
.abstract-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table-row {
    display: flex;
}

.table-row.header {
    background-color: #4a90e2;
    color: white;
    font-weight: 500;
}

.table-cell {
    padding: 10px;
    border: 1px solid #ddd;
    flex: 1;
}

.table-row:nth-child(even) {
    background-color: #f9f9f9;
}

/* ---------- 연락처 페이지 스타일 ---------- */
/* 연락처 정보 컨테이너 */
.contact-info {
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
}

/* 개별 연락처 스타일 */
.contact-person {
    margin-bottom: 25px;
}

.contact-person h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-person p {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 연락처 구분선 */
.contact-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 25px 0;
    width: 100%;
}

/* ---------- 공통 유틸리티 스타일 ---------- */
/* 링크 스타일 */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 강조 링크 스타일 */
.highlight-link {
    color: #4a90e2;
    font-weight: 500;
}

/* 날짜 강조 스타일 */
.highlight-date {
    color: #d9534f;
    font-weight: 600;
}

/* 푸터 기본 스타일 */
.new-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 0 0;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* 이 속성은 유지 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    align-items: flex-start;
    /* 상단 정렬을 위해 추가 */
}

/* 로고가 더 적은 공간을 차지하도록 footer-logo 스타일 업데이트 */
.footer-logo {
    flex: 1.5;
    /* flex: 0 0 50%에서 flex: 1로 변경 */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 50%;
    height: auto;
}

.logo-text {
    margin-top: 10px;
    font-size: 16px;
    color: #fff;
}

/* 모든 footer 섹션이 동일한 flex 속성을 갖도록 함 */
.footer-section {
    flex: 1;
    margin-bottom: 30px;
    min-width: 200px;
    text-align: left;
    padding: 0 0px;
    /* 간격을 위한 패딩 추가 */
}

.footer-section h3 {
    position: relative;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* 푸터 링크 스타일 */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    /* 변경: space-between에서 flex-start로 */
    align-items: center;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

/* 화살표 스타일 수정 */
.arrow {
    font-size: 16px;
    margin-left: 5px;
    /* 유지 */
    display: inline-block;
    width: 12px;
    /* 추가: 고정 너비 지정 */
}

/* 저작권 정보 스타일 */
.copyright {
    background-color: #222;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright p {
    font-size: 12px;
    margin: 0;
}

.copyright a {
    color: #007bff;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 소셜 미디어 아이콘 */
.social-icons {
    display: flex;
}

.social-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #444;
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

/* 드롭다운 메뉴 스타일 */
.menu li {
    margin: 0 30px;
    position: relative;
    /* 서브메뉴의 기준점 설정 */
}

/* 서브메뉴 컨테이너 기본 스타일 */
.sub-menu {
    position: absolute;
    top: 100%;
    /* 메인 메뉴 바로 아래 위치 */
    left: 0;
    width: 200px;
    /* 서브메뉴 너비 */
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 5px 0;
    display: none;
    /* 기본적으로 숨김 */
    z-index: 1001;
    /* 다른 요소 위에 표시되도록 z-index 설정 */
}

/* 서브메뉴 아이템 스타일 */
.sub-menu li {
    margin: 0;
    padding: 0;
    display: block;
    /* 가로가 아닌 세로로 표시 */
}

.sub-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    /* 구분선 추가 */
    font-size: 14px;
}

.sub-menu a:hover {
    background-color: #f5f5f5;
    /* 호버 시 배경색 변경 */
}

.sub-menu li:last-child a {
    border-bottom: none;
    /* 마지막 항목에는 구분선 없음 */
}

/* 화살표 아이콘 (드롭다운 표시용) */
.menu a.has-submenu:after {
    content: none;
}

a.no-click {
    pointer-events: none;
    cursor: default;
    color: #333; /* 클릭 불가능할 때 일반 텍스트처럼 보이도록 */
  }

/* 호버 시 서브메뉴 표시 */
.menu li:hover .sub-menu {
    display: block;
}

/* 회사 정보 스타일 */
.company-info {
    background-color: #fff;
    color: #333;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.company-info p {
    margin: 5px 0;
}

.company-links {
    margin-top: 10px;
}

.company-links a {
    color: #333;
    text-decoration: none;
}

.company-links span {
    margin: 0 10px;
    color: #333;
}

/* ---------- 모바일 반응형 스타일 ---------- */
@media (max-width: 768px) {

    /* 메뉴 반응형 */
    .menu {
        flex-wrap: wrap;
    }

    .menu li {
        margin: 0 10px;
    }

    /* 모바일 드롭다운 메뉴 스타일 */
    .sub-menu {
        position: static;
        /* 모바일에서는 absolute 대신 static으로 변경 */
        display: none;
        width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .menu li:hover .sub-menu {
        display: none;
        /* 모바일에서는 호버로 서브메뉴 표시하지 않음 */
    }

    /* JavaScript로 active 클래스 토글 시 서브메뉴 표시 */
    .menu li.active .sub-menu {
        display: block;
    }

    .sub-menu a {
        padding-left: 25px;
        /* 들여쓰기 효과 */
    }

    /* 베뉴 컨테이너 반응형 */
    .venue-container {
        flex-direction: column;
    }

    /* 등록 테이블 반응형 */
    .registration-row {
        flex-direction: column;
    }

    .registration-cell {
        width: 100%;
    }

    .registration-cell.category {
        padding-bottom: 5px;
    }

    .registration-cell.fees {
        padding-top: 0;
        padding-bottom: 15px;
    }

    /* 초록 테이블 반응형 */
    .table-row {
        flex-direction: column;
    }

    .table-cell {
        width: 100%;
        box-sizing: border-box;
    }

    .table-row.header {
        display: none;
    }

    .table-cell:first-child {
        font-weight: bold;
        background-color: #f5f5f5;
    }

    /* 연락처 반응형 */
    .contact-person h3 {
        font-size: 18px;
    }

    /* 푸터 반응형 */
    .footer-content {
        flex-direction: column;
    }

    .footer-logo,
    .footer-section {
        flex: 1 0 100%;
        margin-bottom: 30px;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        margin-top: 15px;
        justify-content: center;
    }

    .company-info {
        padding: 15px;
        font-size: 12px;
    }
}

.main-title {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: left;
    margin: 48px 0 16px 0;
    line-height: 1.5;
    color: #222;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}
.main-title::after {
    display: none;
}
@media (max-width: 768px) {
    .main-title {
        font-size: 1.4rem;
        margin: 32px 0 12px 0;
    }
}

.canvas > section:first-of-type {
  padding-bottom: 10px;
}

/* 연사 */

.speakers-section {
    max-width: 960px;
    margin-top: 80px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    color: #222;
  }

  .speakers-section h2 {
    margin-bottom: 80px;
  }
  
  .speakers-section .speaker {
    overflow: hidden;
    margin-bottom: 80px;
  }
  
  .speakers-section .speaker-photo {
    float: left;
    width: 180px;
    height: 240px;
    object-fit: cover;
    object-position: center;
    margin: 4px 24px 12px 0;
    border: 1px solid #444;
  }

  .speakers-section .speaker-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 16px;
    color: #222;
    text-align: left;
  }
  
  .speakers-section .speaker-bio p {
    margin-top: 1.4em;
    margin-bottom: 0.9em;
    font-size: 18px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    word-spacing: 1.5px;
    color: #333;
    text-align: justify;
  }
  
  .speakers-section .talk-title {
    margin-top: 10px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.6;
    color: #111;
    font-family: 'Inter', sans-serif;
    text-align: left;
  }
  
  .speakers-section .link {
    color: #0070c0;
    text-decoration: underline;
  }
  
  .speakers-section .clear {
    clear: both;
    height: 1px;
    margin-bottom: 12px;
  }
  
  /* 반응형 처리 */
  @media (max-width: 768px) {
    .speakers-section .speaker-photo {
      float: none;
      display: block;
      margin: 0 auto 20px;
      width: 100%;
      max-width: 300px;
    }
  
    .speakers-section .speaker-name,
    .speakers-section .talk-title {
      text-align: center;
    }
  
    .speakers-section .speaker-bio p {
      font-size: 17px;
    }
  }
  
  .fade-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
  }

  .fade-alert.hide {
    opacity: 0;
  }
