:root {
/* SNU Engineering Colors */
--snu-orange: #f78f1e;
--snu-orange-hover: #e07d15;
--snu-gray: #757575;
--snu-light-gray: #f8f9fa;
--snu-dark: #333333;

/* Bootstrap Customization */
--bs-primary: var(--snu-orange);
--bs-primary-rgb: 247, 143, 30;
--bs-font-sans-serif: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body {
font-family: var(--bs-font-sans-serif);
color: var(--snu-dark);
background-color: #fff;
-webkit-font-smoothing: antialiased;
}

@media (max-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    margin-top:20px;
    border-top:1px solid var(--snu-orange);
  }
}

/* Utility Classes Overrides */
.text-primary { color: var(--snu-orange) !important; }
.bg-primary { background-color: var(--snu-orange) !important; }
.border-primary { border-color: var(--snu-orange) !important; }

/* Button Overrides */
.btn-primary {
background-color: var(--snu-orange);
border-color: var(--snu-orange);
color: white;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
background-color: var(--snu-orange-hover) !important;
border-color: var(--snu-orange-hover) !important;
color: white !important;
}
.btn-outline-primary {
color: var(--snu-orange);
border-color: var(--snu-orange);
}
.btn-outline-primary:hover {
background-color: var(--snu-orange);
color: white;
}

/* Navbar Customization */
.navbar {
background-color: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand {
font-weight: 700;
letter-spacing: -0.5px;
}
.nav-link {
font-weight: 500;
color: var(--snu-gray);
transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
color: var(--snu-orange) !important;
}

/* Card Hover Effects */
.work-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: none;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
}
.work-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}
.work-card .card-img-top {
height: 200px;
object-fit: cover;
border-bottom: 1px solid #eee;
}

/* Details Page Specific */
.detail-hero-img {
max-height: 500px;
object-fit: contain;
background-color: white;
border: 1px solid #eee;
border-radius: 12px;
padding: 20px;
}

/* Tabs Customization (Hall of Fame) */

/* Fame List Item Customization */
.fame-list-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
border: 1px solid rgba(0,0,0,0.08);
margin-left: auto;
margin-right: auto;
max-width: 900px; /* 가독성을 위한 최대 넓이 제한 */
}
.fame-list-card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 24px rgba(0,0,0,0.06) !important;
}
.fame-img-wrap {
border-bottom: 1px solid rgba(0,0,0,0.05);
background-color: #f8f9fa;
position: relative;
}
.fame-abstract-box {
border-left: 3px solid var(--snu-orange);
}

/* Judging Page Layout */
.judge-panel {
position: sticky;
top: 90px; /* Offset for sticky header */
}
.rating-group .form-check-inline {
margin-right: 0.5rem;
}

/* Helper for SPA routing hiding */
.page-section { display: block; animation: fadeIn 0.4s ease-in-out; }

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer { background-color: white; border-top: 1px solid #eaeaea; }

/* Honors Medal */
.medal-gold {
  color: #FFD700;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.2)); /* 약간의 입체감 */
}
.medal-silver {
  color: #C0C0C0;
}
.medal-bronze {
  color: #CD7F32;
}

.selectbox-contest{
  font-weight: 600 !important;
  color: var(--snu-orange) !important;
  background-color: white !important;
}

.bg-box {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 30px;
  background-color: #e4e4e4 !important;
  font-size: 1.125rem;
  line-height: 1.5;
}


/* 메인 */
.section-poster{
  background-color: #3cc4c4;
  padding: 50px;
}
.section-contest{
  background-color: #f7f7f7;
  padding: 50px;
}
.apply-wrap{
  padding: 50px 0;
  text-align:center;
}
.apply-detail{cursor:pointer;}

.form-wrap{max-width: 400px;}


/* reviewer? */
.reviewer.nav-pills .nav-link{
  border-radius: 50px;       /* 둥근 캡슐 모양 */
}
.reviewer.nav-link.disabled {
  cursor: default;
  pointer-events: none; /* 클릭 이벤트 완전 차단 */
  opacity: 0.6;
}

.reviewer.nav-pills .nav-link.active {
  background-color: #0d6efd; /* 부트스트랩 기본 파랑 */
}

.page-left{
  max-height: 95vh;
}

/* 공모작 출품 */
.contest-title {
  display: block;
  /* 글자가 길어질 때 ... 처리하는 핵심 속성 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  /* 디자인 스타일링 */
  font-size: 0.85rem;
  color: #6c757d;       /* 차분한 회색조 */
  font-weight: 500;

  /* 제목 앞 보더 설정 */
  padding-left: 0.5rem;
  border-left: 2px solid #dee2e6; /* 은은한 회색 선 (포인트를 주려면 부트스트랩 기본 블루인 #0d6efd 등도 좋습니다) */
}


ul.member-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
ul.member-item > li {
  margin: 7px 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex: 1;
}
ul.member-item > li > label {
  min-width: 100px;
  font-weight: bold;
  display: flex;
  flex: none;
}

.thumbnail{
  max-width: 300px;
}
.content{
  width: 100%;
  height: 300px;
}
  .privacy-wrap{
  width: 100%;
  height: 300px;
  overflow-y:auto;
  padding: 10px;
}


.privacy-container {
  width: 100%;
  height: 300px;         /* 전체 고정 높이 */
  background: #f3f3f3;
  padding: 20px;         /* 상하좌우 20px 여백 확보 */
  box-sizing: border-box; /* 패딩이 높이에 포함되도록 설정 */
  display: flex;         /* 자식의 높이를 유연하게 제어하기 위해 flex 사용 */
  flex-direction: column;border-radius:6px;
}

.privacy-wrap {
  width: 100%;
  flex: 1;               /* 부모의 남은 영역을 모두 차지 */
  overflow-y: auto;      /* 높이 초과 시 이 영역에서만 스크롤 발생 */

  /* 하단 패딩이 잘리는 것을 방지하기 위한 핵심 설정 */
  display: flex;
  flex-direction: column;
}

/* 스크롤되는 내용의 가장 마지막 부분에 여백을 강제로 삽입 */
.privacy-wrap::after {
  content: "";
  display: block;
  min-height: 20px;      /* 하단 여백 20px 확보 */
  width: 100%;
}


.warning-box {
  margin:20px 0;
  border:1px dotted #f00;
  border-radius:10px;
  padding:10px;
}


.agree-box { margin-bottom:20px; display:flex; justify-content: space-between !important; align-items: center !important; flex-wrap: wrap !important;}

@media (max-width: 768px) {
  .agree-box { display:block; text-align:center; }
}


/********************* table *********************/
.table>:not(:last-child)>:last-child>* { border-bottom:none; }

table.table-cols {width:100%;border:0;border-color:transparent;border-collapse: collapse;border-spacing: 0;background:#fff;position:relative;}
table.table-cols th{text-align:left;}
table.table-cols td, table.table-cols th{padding:7px 10px;border:1px solid #ddd;vertical-align:middle;}
table.table-cols th {background:#fbfbfb;font-weight:500;}
table caption{visibility:hidden;overflow:hidden;width:1px;height:1px;font-size:0;line-height:0;padding:0 !important}

/* table side border */
table.table-cols.noside th:first-child, table.table-cols.noside td:first-child { border-left:none; }
table.table-cols.noside th:last-child, table.table-cols.noside td:last-child { border-right:none; }

table.table-cols > tbody + tbody {border-top:0px solid #f00 !important;}
table.table-cols.tcenter th, table.table-cols.tcenter td { text-align:center ;}
table.table-cols.thcenter th { text-align:center ;}
table.table-cols.tright th, table.table-cols.tright td { text-align:right;}


table.table-rows {width:100%;border:0;border-color:transparent;border-collapse: collapse;border-spacing: 0;background:#fff;position:relative;}
table.table-rows:before {border-top:1px solid #888;width:100%;height:1px;position:absolute;top:0;content:' '}
table.table-rows th{text-align:left;font-weight:500;}
table.table-rows td {padding:5px 5px;}
table.table-rows th {padding:8px 10px;}
table.padding-xs th {padding:8px 1px !important;}
table.table-rows td, table.table-rows th{border:1px solid #bbb;vertical-align:middle;}
table.table-rows thead tr:first-child th { border-bottom:none !important;}

table.table-rows th, table.table-rows thead td{background:#d5d5d5;font-weight:500;}
table caption{visibility:hidden;overflow:hidden;width:1px;height:1px;font-size:0;line-height:0;padding:0 !important}

table.table-rows.noside th:first-child, table.table-rows.noside td:first-child { border-left:none; }
table.table-rows.noside th:last-child, table.table-rows.noside td:last-child { border-right:none; }

table.table-rows.tcenter th, table.table-rows.tcenter td { text-align:center ;}
table.table-rows.tright th, table.table-rows.tright td { text-align:right;}

table.table-rows.thover tbody tr:hover { background-color:#f0f0f0; }
table.table-rows.novline td { border-left:none !important; border-right:none !important; }

table.noborder td { border:none !important; }

/********************* //table *********************/
