/* COMMON */
:root {
  --main-color: #245C45;
  --bg-color: #FDFEFC;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 6.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  padding: 3rem 0;
  /* 헤더가 fixed 라 헤더 높이(--header-h, main.js 에서 측정)만큼 내려준다 */
  padding-top: calc(var(--header-h, 0px) + 3rem);
}

/* HEADER */
header {
  padding: 2rem 0 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--main-color);
  border-radius: 0 0 2rem 2rem;
}
header .title_wrap h1 {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--bg-color);
  line-height: 1.2;
}
header .title_wrap p {
  font-size: 1.6rem;
  color: #F0F5F0;
  margin-top: .8rem;
  line-height: 2rem
}
header .title_wrap.flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
header .title_wrap.flex button {
  margin-top: .9rem;
}
header .title_wrap.flex button img {
  width: 2.4rem;
}
header .search_wrap {
  background: #F0F5F0;
  border-radius: 5rem;
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}
header .search_wrap input {
  width: 100%;
  font-size: 1.5rem;
}
header .search_wrap button img,
header .search_wrap span img {
  width: 2rem;
}
header a.search_wrap input {
  pointer-events: none;
}

header.back .inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
header.back .inner button {
  margin-top: .6rem;
}
header.back .inner button img {
  width: 2.4rem;
}

header .exp {
  font-size: 1.6rem;
  line-height: 2rem;
  color: #F0F5F0;
  margin-top: .5rem;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid var(--main-color);
  background: var(--bg-color);
}
footer ul {
  display: flex;
  justify-content: space-evenly;
  gap: 2.8rem;
}
footer ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.3rem 0;
}
footer ul li a img {
  width: 2.4rem;
  aspect-ratio: 1 / 1;
}
footer ul li a p {
  font-size: 1rem;
  font-weight: 600;
  color: #D8E2D9;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* MAIN */
.common_link_box {
  margin-bottom: 3rem;
  scroll-margin-top: 12rem;
}
.common_link_box h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.common_link_box h2 i {
  display: block;
  width: .4rem;
  height: 1.8rem;
  border-radius: 3rem;
  background: var(--main-color);
}
.common_link_box ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.common_link_box ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.6rem;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  border-radius: 1rem;
  background: #fff;
}
.common_link_box ul li a p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4rem;
}
.common_link_box ul li a img {
  width: 1.6rem;
}

.common_link_list h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.common_link_list ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.common_link_list ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  border-radius: 1rem;
  padding: 2rem 1.6rem;
  background: #fff;
}
.common_link_list ul li a p {
  font-size: 1.4rem;
  font-weight: 500;
}
.common_link_list ul li a img {
  width: 2rem;
}

.common_link_exp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.common_link_exp li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  padding: 2rem 1.6rem;
  border-radius: 1rem;
  background: #fff;
}
.common_link_exp li a .text_box {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.common_link_exp li a .text_box p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6rem;
}
.common_link_exp li a .text_box span {
  display: block;
  font-size: 1.2rem;
  color: #66756B;
  line-height: 1.3;
}
.common_link_exp li a img {
  width: 2rem;
}

.common_notice p {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: #66756B;
  line-height: 1.6rem;
  margin-top: 4rem;
}

/* index.php */


/* search.php */
.search .result_view h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.search .result_view h2 b {
  color: var(--main-color);
}
.empty_view .text_box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100dvh - 37rem);
}
.empty_view .text_box h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.empty_view .text_box p {
  font-size: 1.6rem;
  color: #66756B;
}
.empty_view .text_box a {
  display: block;
  margin-top: 2rem;
  padding: 1.4rem 2.4rem;
  border: 1px solid var(--main-color);
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
}
.filter_empty {
  display: none;
}

/* loans_detail.php */
.loans_detail .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.loans_detail .list_wrap ul li h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.loans_detail .list_wrap ul li h2 i {
  display: block;
  width: .4rem;
  height: 1.8rem;
  border-radius: 3rem;
  background: var(--main-color);
}
.loans_detail .list_wrap ul li p {
  font-size: 1.4rem;
  line-height: 2rem;
  color: #66756B;
}
.loans_detail .list_wrap ul li p b {
  font-weight: 500;
  color: #202C25; 
}
.loans_detail .list_wrap ul li .warning_wrap {
  background: #DDECE2;
  border-radius: 1rem;
  padding: 1.6rem;
  margin-top: 1rem;
}
.loans_detail .list_wrap ul li .warning_wrap h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.loans_detail .list_wrap ul li .link_wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.loans_detail .list_wrap ul li .link_wrap a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  border-radius: 1rem;
  padding: 2rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  background: #fff;
  line-height: 1.6rem;
}
.loans_detail .list_wrap ul li .link_wrap a img {
  width: 2rem;
}

/* resources.php */
.resources .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.resources .list_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  background: #fff;
  padding: 2rem 1.6rem;
}
.resources .list_wrap ul li a .text_box {
  display: flex;
  flex-direction: column;
}
.resources .list_wrap ul li a .text_box span {
  display: block;
  font-size: 1.2rem;
  color: #66756B;
  margin-bottom: .3rem;
}
.resources .list_wrap ul li a .text_box h2 {
  font-size: 1.4rem;
  font-weight: 500;
}
.resources .list_wrap ul li a .text_box p {
  font-size: 1.2rem;
  column-rule: #66756B;
  margin-top: .7rem;
  line-height: 1.7rem;
}
.resources .list_wrap ul li a img {
  width: 2rem;
}
.resources .detail_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.resources .detail_wrap ul li h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.resources .detail_wrap ul li h2 i {
  width: .4rem;
  height: 1.8rem;
  background: var(--main-color);
  border-radius: 3rem;
}
.resources .detail_wrap ul li p {
  font-size: 1.4rem;
  line-height: 2rem;
  color: #66756B;
}
.resources .detail_wrap .more_btn {
  display: block;
  background: var(--main-color);
  border-radius: 1rem;
  text-align: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1.6rem 0;
  margin-top: 4rem;
}
.resources .seq_list_wrap .alphabet_wrap {
  margin-bottom: 3rem;
}
.resources .seq_list_wrap .alphabet_wrap h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.resources .seq_list_wrap .alphabet_wrap h2 i {
  width: .4rem;
  height: 1.8rem;
  border-radius: 3rem;
  background: var(--main-color);
}
.resources .seq_list_wrap .alphabet_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.resources .seq_list_wrap .alphabet_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  border-radius: 1rem;
  padding: 2rem 1.6rem;
}
.resources .seq_list_wrap .alphabet_wrap ul li a .text_box h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: .8rem;
}
.resources .seq_list_wrap .alphabet_wrap ul li a .text_box p {
  font-size: 1.2rem;
  color: #66756B;
}
.resources .seq_list_wrap .alphabet_wrap ul li a img {
  width: 2rem;
}
.resources .warning_wrap {
  background: #DDECE2;
  border-radius: 1rem;
  padding: 1.6rem;
  margin-top: 3rem;
}
.resources .warning_wrap h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.resources .warning_wrap p {
  font-size: 1.4rem;
  color: #66756B;
  line-height: 2rem;
}

/* calculator.php */
.calculator .calc_wrap {
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  background: #fff;
  border-radius: 1rem;
  padding: 2.4rem 1.6rem;
}
.calculator .calc_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.calculator .calc_wrap ul li label {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: .6rem;
}
.calculator .calc_wrap ul li input {
  width: 100%;
  background: #F0F5F0;
  border-radius: 1rem;
  padding: 1.6rem;
  font-size: 1.5rem;
}
.calculator .calc_wrap .calc_btn {
  width: 100%;
  display: block;
  background: var(--main-color);
  text-align: center;
  color: #fff;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1.6rem 0;
  margin-top: 3rem;
}
.calculator .calc_error {
  display: none;
  font-size: 1.3rem;
  color: #D9483B;
  line-height: 1.8rem;
  margin-top: 1.6rem;
}
.calculator .debt_wrap h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.calculator .debt_wrap h3:last-child {
  margin: 3rem 0 1.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid #D8E2D9;
}
.calculator .debt_wrap .debt_list {
  gap: 1.2rem;
}
.calculator .debt_wrap .debt_item {
  border: 1px solid #D8E2D9;
  border-radius: 1rem;
  padding: 1.6rem;
}
.calculator .debt_wrap .debt_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.calculator .debt_wrap .debt_head b {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
}
.calculator .debt_wrap .debt_del {
  font-size: 1.2rem;
  color: #66756B;
  text-decoration: underline;
}
.calculator .debt_wrap .debt_item ul {
  gap: 1.2rem;
}
.calculator .debt_wrap .debt_add {
  display: block;
  width: 100%;
  border: 1px dashed var(--main-color);
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
  padding: 1.4rem 0;
  margin-top: 1.2rem;
}
.calculator .result_wrap {
  display: none;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  background: #fff;
  border-radius: 1rem;
  padding: 2.4rem 1.6rem;
  margin-top: 1rem;
}
.calculator .result_wrap .result_title {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}
.calculator .result_wrap .result_note {
  font-size: 1.2rem;
  color: #66756B;
  line-height: 1.6rem;
  margin-top: 1.6rem;
}
.calculator .result_wrap .payment_wrap {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #D8E2D9;
}
.calculator .result_wrap .payment_wrap span {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
}
.calculator .result_wrap .payment_wrap p {
  font-size: 4rem;
  font-weight: 700;
  color: var(--main-color);
  margin-top: 2rem;
}
.calculator .result_wrap .detail_wrap ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px dashed #D8E2D9;
}
.calculator .result_wrap .detail_wrap ul li span {
  display: block;
  font-size: 1.4rem;
  color: #66756B;
}
.calculator .result_wrap .detail_wrap ul li p {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: right;
}
.calculator .result_wrap .detail_wrap ul li {
  gap: 1rem;
}
.calculator .reset_btn {
  display: none;
  width: 100%;
  border: 1px solid var(--main-color);
  border-radius: 1rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-color);
  padding: 1.6rem 0;
  margin-top: 3rem;
}

/* 아코디언 (more.php, resources_basics/guide/protection/glossary.php) */
.acc_list ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.acc_list ul li {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #D8E2D9;
  padding: 2rem 1.6rem;
}
.acc_list ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
}
.acc_list ul li .title_wrap h2,
.acc_list ul li .title_wrap h3 {
  font-size: 1.4rem;
  font-weight: 500;
}
.acc_list ul li .title_wrap .text_box p {
  font-size: 1.2rem;
  color: #66756B;
  margin-top: .8rem;
}
.acc_list ul li .title_wrap img {
  width: 2rem;
  transition: transform .25s;
}
.acc_list ul li .title_wrap.on img {
  transform: rotate(180deg);
}
.acc_list ul li .content_wrap {
  display: none;
  padding-top: 2rem;
}
.acc_list ul li .content_wrap p {
  font-size: 1.2rem;
  font-weight: 300;
  color: #66756B;
  line-height: 2rem
}
.acc_list ul li .content_wrap p b {
  font-weight: 500;
}
.acc_list ul li .content_wrap p a {
  color: inherit;
}
.acc_list ul li .content_wrap .link_wrap {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.2rem;
}
.acc_list ul li .content_wrap .link_wrap a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--main-color);
  text-decoration: underline;
  line-height: 1.8rem;
}
