.calc {
  border: 1px solid black;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.calc tr {
  height: 50px;
}

.calc td {
  width: 100px;
  border: 1px solid black;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
}

.calc td.univName, .calc td.admissionTypeName {
  position: relative; /* 이미지 위치 기준 부모 */
}

/* 심볼 이미지 - 위쪽 중앙에 표시 */
.calc td.univName img.symbol {
  display: none;
  position: absolute;
  left: 50%;                /* 가로 중앙 */
  top: -90px;               /* td 위쪽으로 위치 (이미지 높이에 맞게 조정) */
  transform: translateX(-50%);
  cursor: pointer;
}

.item {
  width: 60px;
  height: 28px;
  line-height: 28px;
  padding: 0 6px;
  box-sizing: border-box;
  text-align: center;
}

.title {
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
}

.readitem {
  display: none;
}

.percent:not(:empty)::after {
  content: "%";
}

.percent:not(:empty)[data-full="true"]::after {
  /* content: "% (미달)"; */
  content: "%";
}

.meetsCutoff-value {
  display: inline-block;
}

.meetsCutoff-desc {
  width: 120px;
  display: inline-block;
  text-align: left;
}

/* 그래프 막대 기본 스타일 */
.bar-container {
    position: relative;
    width: 100%;
    height: 10px; /* 막대 높이 낮춤 */
    background-color: lightgray; /* 배경색, 필요시 제거 */
    border-radius: 3px;
    overflow: hidden; /* 막대가 셀을 벗어나지 않도록 */
    border: 1px solid black;
}

.bar-fill {
    height: 100%;
    background-color: green; /* 막대 색 */
    border-radius: 3px 0 0 3px;
}

.red-line {
    position: absolute;
    top: 0px; /* 막대 안쪽으로 맞춤 */
    width: 8px;
    height: 14px; /* 막대 높이보다 조금 길게 */
    background-color: red;
    transform: translateX(-50%);
}

.red-label {
    position: absolute;
    top: 16px; /* 막대 아래쪽에 위치 */
    transform: translateX(-50%);
    font-size: 10px;
    color: red;
    white-space: nowrap;
}

.yellow-line {
    position: absolute;
    top: 0px; /* 막대 안쪽으로 맞춤 */
    width: 8px;
    height: 14px; /* 막대 높이보다 조금 길게 */
    background-color: yellow;
    transform: translateX(-50%);
}

/* .focus {
  color: yellow;
  filter: drop-shadow(0 0 2px black);
} */

.focus1 {
  width: 80px;
  background-color: rgba(0, 0, 0, 0.05); /* 배경 색상 */
  color: red;            /* 글자 색상 */
  display: inline-block;    /* 글자 크기만큼 영역 유지 */
  padding: 3px 0px;         /* 여백 (선택 사항) */
  border-radius: 5px;       /* 모서리 둥글게 (선택 사항) */
}

.focus2 {
  width: 80px;
  background-color: black; /* 배경 색상 */
  color: yellow;            /* 글자 색상 */
  display: inline-block;    /* 글자 크기만큼 영역 유지 */
  padding: 3px;         /* 여백 (선택 사항) */
  border-radius: 5px;       /* 모서리 둥글게 (선택 사항) */
}

/* .focus {
  color: yellow;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
  font-weight: bold;
} */

.focus1:empty, .focus2:empty {
  display: none;
}

.ratio-slider {
  appearance: none;
  width: 100px;
  height: 6px;
  background: linear-gradient(to right, rgba(255,0,0,0.3) 0%, rgba(0,0,255,0.3) 100%);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}

.ratio-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.ratio-slider::-webkit-slider-thumb:hover {
  background: #ff5722;
}

.meetsCutoff-slider {
  appearance: none;
  width: 100px;
  height: 6px;
  background: linear-gradient(to right, rgba(0, 102, 204, 0.4) 0%, rgba(0, 204, 102, 0.4) 100%);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}

.meetsCutoff-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.meetsCutoff-slider::-webkit-slider-thumb:hover {
  background: #00cc99;
}

td.univName {
  position: relative; /* img 위치 기준이 될 부모 */
}

td.univName img.symbol {
  display: none;
  position: absolute;
  left: 18px;          /* 왼쪽 여백 (조정 가능) */
  top: 50%;            /* 수직 가운데 정렬 */
  transform: translateY(-50%);
  cursor: pointer;
}

td.univName img.link {
  display: none;
  position: absolute;
  right: 25px;          /* 오른쪽 여백 (조정 가능) */
  top: 50%;            /* 수직 가운데 정렬 */
  transform: translateY(-50%);
  cursor: pointer;
}

/* 상단 알림 문구 */
.top-guide {
  width: 1040px;
  margin: 50px auto 0;
  text-align: center;
  background-color: #fafafa; /* 밝고 깔끔한 회백색 배경 */
  border: 1px solid #e5e7eb; /* 연한 회색 테두리 */
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b; /* 짙은 남회색 */
  letter-spacing: -0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); /* 은은한 그림자 */
  backdrop-filter: blur(2px); /* 미세한 유리 느낌 (지원 브라우저에서만) */
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* 반응형 제외 (PC 기준 고정) */
@media (min-width: 1040px) {
  .top-guide {
    width: 1040px;
  }
}

/* 공지 / 설명 박스 */
.notice-box {
  width: 1040px;
  background: #f9fbff;                /* 부드러운 하늘색 톤 */
  border: 1px solid #d0e2ff;          /* 파란빛 연한 테두리 */
  border-radius: 12px;
  padding: 20px 25px;
  margin-top: 30px;
  text-align: left;
  line-height: 1.7;
  font-size: 15px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 은은한 그림자 */
}

/* 제목 */
.notice-box b {
  display: inline-block;
  font-size: 16px;
  color: #1e3a8a;  /* 진한 파랑 */
  margin-bottom: 10px;
}

/* 용어 강조 */
.notice-box .term {
  font-weight: 600;
  color: #0f172a; /* 짙은 남색 */
}

/* 링크 스타일 */
.notice-box a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.notice-box a:hover {
  color: #ff5722;
}

/* 단락 간격 */
.notice-box p {
  margin: 12px 0;
}

/* 하단 응원 이미지 부모 div 중앙 정렬 */
.settings-cheer-container {        /* 부모 div */
  display: flex;
  justify-content: center;         /* 가로 중앙 정렬 */
  align-items: center;             /* 세로 중앙 정렬 (높이 있을 때도 중앙) */
  margin-top: 40px;                /* 위쪽 여백 */
}

/* 하단 응원 이미지 중앙 배치 */
.settings-cheer {
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 마우스 오버 시 살짝 강조 */
.settings-cheer:hover {
  transform: scale(1.05);
  opacity: 1;
}

.memoBlock {
  display: table-row;
}

.memo {
  width: 100%;
  height: 100px;
  margin: 0;
  border: 0;
  outline: none;           /* 포커스 시 테두리 제거 */
  resize: none;            /* 크기 조절 핸들 제거 (선택사항) */
  overflow: hidden;        /* 스크롤 숨김 */
  font-size: 14px;         /* 보기 좋은 기본 글자 크기 */
  font-family: inherit;    /* 페이지 기본 폰트 사용 */
  padding: 8px;            /* 내용 여백 */
  box-sizing: border-box;  /* 패딩 포함 너비 계산 */
}

.memo-readItem {
  display: none;
  top: 0;                      /* 수직정렬: 위로 붙임 */
  left: 0;
  text-align: left;
  white-space: pre-wrap;       /* 줄바꿈 유지 + 자동 줄바꿈 */
  word-wrap: break-word;       /* 긴 단어도 줄바꿈 */
  font-size: 14px;             /* 보기 좋은 기본 글자 크기 */
  font-family: inherit;        /* 페이지 기본 폰트 사용 */
  padding: 8px;                /* 내용 여백 */
  margin: 0px;
}


/* btns 스타일: mCalcUnit.css 디자인 적용 */
.btns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0px;
}

.btns > div {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btns a {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-grow: 1;
    flex-basis: 0;
    background-color: white;
    text-decoration: none;
    text-align: center;
    color: #333;
}

/* 버튼별 색상 및 hover 효과 */
.btns a.upBtn, .btns a.downBtn {
    color: #17a2b8;
    border-color: #17a2b8;
}
.btns a.upBtn:hover, .btns a.downBtn:hover {
    color: white;
    background-color: #138496;
    border-color: #117a8b;
}

.btns a.resetBtn, .btns a.reviewModBtn {
    color: #007bff;
    border-color: #007bff;
}

.btns a.resetBtn:hover, .btns a.reviewModBtn:hover {
    color: white;
    background-color: #0069d9;
    border-color: #0062cc;
}

.btns a.delBtn {
    color: #dc3545;
    border-color: #dc3545;
}

.btns a.delBtn:hover {
    color: white;
    background-color: #c82333;
    border-color: #bd2130;
}

.btns a.cpt1Btn, .btns a.cpUrlBtn {
    color: #6c757d;
    border-color: #6c757d;
}
.btns a.cpt1Btn:hover, .btns a.cpUrlBtn:hover {
    color: white;
    background-color: #5a6268;
    border-color: #545b62;
}

.btns a.save1Btn, .btns a.share1Btn {
    color: #007bff;
    border-color: #007bff;
}
.btns a.save1Btn:hover, .btns a.share1Btn:hover {
    color: white;
    background-color: #0069d9;
    border-color: #0062cc;
}

.univDept2 {
  display: none;
}

.bg0 {
  background-color: #f4f4f5;
}

.bg1 {
  background-color: #f4f4f5;
}

.bg2 {
  background-color: #f4f4f5;
}

.bg3 {
  background-color: #f4f4f5;
}

.result-bars {
  position: absolute;
  top: -55px;          /* 전형구분 셀 위로 50px */
  left: 50%;
  transform: translateX(-50%); /* 가운데 정렬 */
  display: flex;
  flex-direction: column;   /* 세로로 쌓기 */
  justify-content: flex-end;
  align-items: center;
  gap: 1px;
}

.result-bar {
  width: 20px;
  height: 3px;
  background-color: white;
  border-radius: 0px;
}

.result-bar-green {
  background-color: #16F525;
}

.result-bar-blue {
  background-color: #92A5F7;
}

.calc-block .top-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0px; /* Increased padding for better spacing */
  font-size: 15px; /* Slightly adjusted font size */
  /* font-weight: bold; */
  color: #374151; /* Darker text color for better contrast */
}

.calc-block .top-title-left {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between elements in the left section */
    font-size: 13px; /* Smaller font for date */
    color: #9ca3af; /* Even lighter color for date */
}

.calc-block .top-title-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between elements in the right section */
    font-weight: normal; /* Reset font-weight for right section elements */
    color: #6b7280; /* Lighter color for secondary info */
}

.calc-block .top-title .review {
    color: #374151; /* Dark text color for readability on white background */
    /* font-weight: bold; */
}

.review-bubble {
    position: relative;
    background: white; /* White background */
    color: #374151; /* Dark text color */
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db; /* Light gray border */
}

.review-bubble::after {
    content: '';
    position: absolute;
    top: 45%;
    right: -6px; /* Adjusted position to align with border */
    transform: translateY(-50%) rotate(-135deg);
    border-width: 6px; /* Keep border width */
    border-style: solid;
    border-color: transparent transparent transparent white; /* White tail */
    border-left-color: #d1d5db; /* Border for the tail, matching bubble border */
}

.calc-block .top-title .nkNm {
    color: #374151;
    /* font-weight: bold; */
}

.calc-block .top-title .modDt {
    font-size: 13px; /* Smaller font for date */
    color: #9ca3af; /* Even lighter color for date */
}

/* ------------------------------------------------------------------- */

/* 검색 영역 스타일 */
#s_block {
  width: 1040px;
  margin: 40px auto 0;
  background-color: #f9fbff;
  border: 1px solid #d0e2ff;
  border-radius: 10px;
  padding: 20px 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: 15px;
  color: #1e293b;
}

#s_block > *:nth-child(2)::after {
  content: "";
  flex-basis: 100%;
  width: 0;
  order: 1;
}

#s_block span {
  font-weight: 500;
  color: #1e3a8a;
  text-align: right;
}

#s_block input[type="text"] {
  width: 140px;
}

#s_block input[type="text"],
#s_block select {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 5px 8px;
  height: 32px;
  font-size: 14px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

#s_block input[type="text"]:focus,
#s_block select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}

#s_block button.search-button {
  padding: 5px 16px;
  background-color: #6c757d; /* A neutral gray color */
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 74px;
  height: 74px;
  box-sizing: border-box;
  margin-left: 10px; /* Add some space between the two buttons */
}

#s_block button.search-button:hover {
  background-color: #5a6268; /* Darker gray on hover */
}

#s_block button#s_btn {
  padding: 5px 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 74px;
  height: 74px;
  box-sizing: border-box;
}

#s_block button#s_btn:hover {
  background-color: #1d4ed8;
}

#l_block {
  margin-top: 50px;
}

/* Pagination styles */
#p_block {
  margin-top: 50px;
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  margin: 0 4px;
  height: 40px;
  line-height: 24px;
  box-sizing: border-box;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

.pagination span.pages {
    display: flex;
    padding: 0;
    height: 40px;
    line-height: 24px;
    box-sizing: border-box;
}

#g_block {
  margin-top: 100px;
}

#s_left {
  width: 860px;
  display: flex;
  flex-wrap: wrap;          /* 여러 항목이 넘치면 다음 줄로 */
  align-items: center;
  gap: 10px 16px;           /* 간격 */
}

#s_right {
  display: flex;
  align-items: center;
}

/* 공지 / 설명 박스 */
.notice-box {
  width: 1040px;
  background: #f9fbff;                /* 부드러운 하늘색 톤 */
  border: 1px solid #d0e2ff;          /* 파란빛 연한 테두리 */
  border-radius: 12px;
  padding: 20px 25px;
  margin-top: 30px;
  text-align: left;
  line-height: 1.7;
  font-size: 15px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 은은한 그림자 */
}

/* 제목 */
.notice-box b {
  display: inline-block;
  font-size: 16px;
  color: #1e3a8a;  /* 진한 파랑 */
  margin-bottom: 10px;
}

/* 용어 강조 */
.notice-box .term {
  font-weight: 600;
  color: #0f172a; /* 짙은 남색 */
}

/* 링크 스타일 */
.notice-box a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.notice-box a:hover {
  color: #ff5722;
}

/* 단락 간격 */
.notice-box p {
  margin: 12px 0;
}

/* ------------------- */

.likeIcon, .goodIcon {
  cursor: pointer;
}

#s_block button.myCalc-button {
  padding: 5px 11px;
  background-color: #8A2BE2; /* BlueViolet */
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  height: 32px;
  box-sizing: border-box;
}

#s_block button.myCalc-button:hover {
  background-color: #7B1FA2; /* Darker shade of BlueViolet */
}
