/* 기본 스타일 설정 */
* {
    font-family: 'Nanum Gothic', sans-serif;
    box-sizing: border-box;
}

a {
    text-decoration: none;  /* 밑줄 제거 */
    color: inherit;         /* 색상 부모 요소로 상속 (기본 텍스트 색상) */
}

a:hover {
    text-decoration: none;
    color: inherit;
}
/*---------------------------------------- Main 영역 ----------------------------------------*/

main {
    padding: 20px;
    min-width:900px;
}

main h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* html과 body에 100% 높이 설정 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    color: #000000;
}

/* 컨테이너 스타일 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

/* 슬라이더 스타일 */
.slider {
    position: relative;
    width: 48%;
    overflow: hidden;
    height: 100%; /* 슬라이더의 높이 설정 */
}

.slide {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    width: 100%;
    height: 100%;
}

.slide img {
    max-width: 100%; /* 이미지가 화면을 넘어가지 않도록 */
    max-height: 100%; /* 이미지가 화면을 넘어가지 않도록 */
    display: block; /* inline 요소로 설정되어 있으면 img 태그 주변에 여백이 생길 수 있기 때문에 block으로 변경 */
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

button {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*------------------------------------- 사이드 패널 스타일 -----------------------------------*/

.side-panels {
    display: flex;
    flex-direction: column; /* 세로로 배치 */
    width: 50%;
    gap: 10px;
}

.panel-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;  /* 화면 크기에 맞게 요소들을 자동으로 줄바꿈 */
}

/* 패널 */
.panel {
    padding: 10px;
    text-align: center;
    width: 30%;
    display: flex;
    flex-direction: column;  /* 자식 요소들이 세로로 쌓이도록 */
    align-items: center;     /* 자식 요소들을 가운데 정렬 */
    justify-content: flex-start;
}

/* 기수 정보 */
.jk-info {
    position: relative;
    width: 100%;
    padding-bottom: 100%;  /* 이미지 비율에 맞게 높이를 조정 */
}

.jk-image {
    width: 100%;
    height: 100%;  /* 이미지를 부모 컨테이너에 맞게 */
    object-fit: cover;  /* 이미지 비율 유지하면서 꽉 채움 */
    margin-top: 20px;
    position: relative;  /* 자식 요소인 .jk-details의 위치를 기준으로 설정 */
}

.jk-details {
    position: absolute;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* 패널 내 테이블 설정 */
.panel table {
    width: 100%;
}

.panel td {
    text-align: center;
}

.panel img {
    width: 100%;
    height: auto;
}

.panel b {
    text-decoration: underline;
    text-decoration-color: black;
    text-underline-offset: 15%;
    flex: 1;
}

/*---------------------------- guide 영역 스타일 ----------------------------*/

.guide {
    width: 100%;
    max-width: 1200px; /* 최대 너비를 1200px로 설정 */
    min-width:900px;
    padding: 20px;
    background-color: #fafafa; /* 더 연한 배경 색으로 변경 */
    margin: 0 auto; /* 수평 중앙 정렬 */
}

.guide h2 {
    font-size: 24px;
    color: #333; /* 글자 색 */
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd; /* 하단 선 추가 */
}


/*---------------------------- 소셜 아이콘 영역 ----------------------------*/

.icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    min-width:900px;
    margin: 0 auto;
}

.panel-icons {
    padding: 10px;
    text-align: center;
}

.panel-more-icons {
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;

    /* 오른쪽 끝(4번째 열)에 고정 배치 */
    grid-column: 4;
}


/* 유튜브 및 아이콘 스타일 */
.youtube-icon {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.naver-icon,
.kakao-icon {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.youtube-icon:hover,
.naver-icon:hover,
.kakao-icon:hover {
    transform: scale(1.1);
}

/* 4개의 패널을 위한 그리드 스타일 */
.four-panels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-width:900px;
}

.panel-item {
    text-align: center;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

