* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
    padding-top: 60px; /* Adjust based on nav height */
}

.container {
    width: 80%;
    max-width: 1200px; 
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: #ffffff;
    color: #000000;
    padding: 20px 0;
    text-align: left;
    max-width: 1200px; /* 최대 너비 */
    margin: 0 auto;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

header h3 a {
    color: #000000;
    text-decoration: none;
}

header h3 a:hover {
    text-decoration: none;
    color: #5F5F5F !important;
}

header h3 a:visited {
    color: #000000;
}

header h3 a:focus {
    outline: none;
}

.profile {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px; 
    margin: 0 auto;
    box-sizing: border-box; 
}

.profile-image {
    margin-left: 10px;
}

.profile-image img {
    flex: 0 0 200px;
    width: 200px; /* Adjust the width of the image */
    height: auto;
}

.profile .bio {
    flex: 1;
    padding-right: 20px;
    box-sizing: border-box; /* 박스 모델을 크기에 맞게 조정 */
}

.research-interests {
    background: #ffffff;
    padding: 20px;
    margin-top: 20px;
    max-width: 1200px; 
    margin: 0 auto;
}

.research-interests h2 {
    margin-bottom: 10px;
}

/*===================================================================================================
 * Project styles
 ====================================================================================================*/
.projects {
    background: #ffffff;
    padding: 20px;
    margin-top: 20px;
    max-width: 1200px; 
    margin: 0 auto;
}

.projects h2 {
    margin-top: 50px;
    margin-bottom: 20px;
}

.project h3 a {
    color: #000000;
    text-decoration: none;
}

.project h3 a:hover {
    text-decoration: none;
    color: #5F5F5F !important;
}

.project h3 a:visited {
    color: #000000;
}

.project h3 a:focus {
    outline: none;
}

.project p{
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left : 5px;
    color : #000000;
}

.project .content {
    justify-content: space-between;
    padding-left: 5px !important;
}

.project .text {
    flex: 6; 
    margin-right: 0px !important;
}

.project .image {
    flex: 4;
    display: flex;
    justify-content: flex-end;
}

.project .image img {
    max-width: 100%;
    height: auto;
    margin: 0;
}

.project .bullet::before {
    content: "• ";
    font-size: 1.2em;
    color: black;
}

/*===================================================================================================
 * Publications styles
 ====================================================================================================*/
 .Publications {
    background: #ffffff;
    padding: 20px;
    margin-top: 20px;
    max-width: 1200px; 
    margin: 0 auto;
}

.Publications h2 {
    margin-top: 0px;
    margin-bottom: 10px;
}

.Publications.content {
    justify-content: space-between;
    padding-left: 5px !important;
}

.Publications.text {
    flex: 6; 
    margin-right: 0px !important;
}

.Publications.bullet::before {
    content: "• ";
    font-size: 1.2em;
    color: black;
}


.ref-list{
    list-style:none;          /* 기본 숫자 숨김 */
    counter-reset:refs;       /* 카운터 초기화 */
    margin:0;
    padding:0;
}

.ref-list li{
    counter-increment:refs;   /* 항목마다 +1 */
    margin:0 0 8px;
    padding-left:2.6em;       /* 번호 폭 */
    text-indent:-1.6em;       /* hanging indent */
    line-height:1.45;
}

.ref-list li::before{
    content:"[" counter(refs) "] ";
    font-weight:bold;
}

.ref-list li a {
    color: #000000;
    text-decoration: none;
}

.ref-list li:hover {
    text-decoration: none;
    color: #5F5F5F !important;
}

.ref-list li a:hover {
    text-decoration: none;
    color: #5F5F5F !important;
}

.ref-list li:visited {
    color: #000000;
}

.ref-list li:focus {
    outline: none;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/*===================================================================================================
 * Slide
 ====================================================================================================*/
.slider-container {
    position: relative;
    width: 600px;     /* 원하는 슬라이더 크기에 맞게 */
    height: 350px;    /* 원하는 슬라이더 크기에 맞게 */
    margin: 0 auto;   /* 가운데 정렬 */
    overflow: hidden; /* 넘치면 숨김 */
    border: 1px solid #ccc;
    position: relative;
  }
  
  /* 실제 슬라이드들을 가로로 일렬 배치 */
  .slide-track {
    display: flex;
    /* 슬라이드 전환 시 움직임(트랜스폼) 애니메이션 */
    transition: transform 0.5s ease;
  }
  
  /* 각각의 슬라이드 */
  .slide {
    min-width: 100%; /* 부모 .slider-container의 100% 차지 */
    box-sizing: border-box;
  }
  
  /* 슬라이드 내부 이미지 */
  .slide img {
    width: 100%;      /* 부모의 너비에 맞춤 */
    height: 100%;     /* 높이는 자동 → 원본 비율 유지 */
    object-fit: contain;  /* (있어도 문제 없지만) height:auto에서는 영향이 적음 */
    display: block;   /* 불필요한 공백 제거를 위해 block 지정 */
  }
  
  /* 화살표 버튼 - 처음엔 안보이고, 호버 시 노출 (투명도) */
  .arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .slider-container:hover .arrow-btn {
    opacity: 1;
  }
  
  /* Prev button은 왼쪽, Next button은 오른쪽 */
  .prev-btn {
    left: 10px;
  }
  .next-btn {
    right: 10px;
  }
  

/*===================================================================================================
 * Education styles
 ====================================================================================================*/

 /*===================================================================================================
 * Work Experience styles
 ====================================================================================================*/

 /*===================================================================================================
 * Scholarship styles
 ====================================================================================================*/

ul {
    list-style: none;
}

ul li {
    padding: 10px 0;
}

/*===================================================================================================
 * Button styles
 ====================================================================================================*/

.button {
    background-color: #ffffff; 
    color: #000000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
}

.button:hover {
    background-color: #ffffff;
}

/* Fixed navigation bar styles */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 1000; /* Ensures the nav stays on top */
    border-bottom: 2px solid #ccc; /* Add a bottom border */
}

.fixed-nav .nav-left, .fixed-nav .nav-right {
    display: flex;
}

.fixed-nav .button {
    background-color: #ffffff; /* Button background */
    color: #000000; /* Button text color */
    padding: 10px 20px; /* Padding inside buttons */
    text-decoration: none; /* Remove underline from links */
    border-radius: 5px; /* Rounded corners */
    margin: 0 10px; /* Space between buttons */
}

.fixed-nav .button:hover {
    color : #5F5F5F;
    background-color: #ffffff; /* Change color on hover */
}

.fixed-nav .button.active {
    color: #e63946; /* Text color for active page (e.g., red) */
}

/* (1) 드롭다운 부모 컨테이너 */
.dropdown {
    position: relative;   
    display: inline-block;  /* 인라인 블록(버튼 옆에 맞춰 배치) */
    top: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    z-index: 1000; /* Ensures the nav stays on top */
    white-space: nowrap;    /* 한 줄만 사용 */
}

/* (2) 실제 드롭다운 목록 */
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;               /* ← 부모의 오른쪽에 붙임 */
    left: auto;             /* 기존 left 값 무효화 */
    min-width: 160px;
    background: #f9f9f9;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    z-index: 999;

    /* 기본 숨김 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
    
    white-space: nowrap;    /* 한 줄만 사용 */
}

/* (3) 드롭다운 트리거(hover·포커스) */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);        /* 아래로 “촤라락” */
}

/* (4) 내부 링크 스타일 */
.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;

    /* 너무 길면 말줄임 처리 */
    overflow: hidden;
    text-overflow: ellipsis; /* … 표시 */
}
.dropdown-content a:hover {
    background: #eee;
}

.fixed-nav .dropdown-content a.active {
    color: #e63946; /* Text color for active page (e.g., red) */
}
