@import url("basic_css.css");

.contents {
  position: relative;
  width: 100%;
  overflow: hidden;
}

a {
  color: black;
  text-decoration: none;
}

/* =========================
   공통
========================= */

/* 검색 영역 */
.contest-header-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.contest-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.contest-input {
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  padding: 6px 8px;
  line-height: 1.4;
  border-radius: 4px;
  height: 100%;
  box-sizing: border-box;
}

.contest-year,
.contest-month {
  min-width: 70px;
}

.contest-keyword {
  min-width: 140px;
}

.contest-btn-search {
  border: 1px solid #4365BA;
  background-color: #4365BA;
  color: #fff;
  font-size: 14px;
  padding: 5px 10px 7px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* 월 헤더 */
.month-header-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 30px 0 16px;
  gap: 12px;
}

.month-header-left {
  flex: 1 1 auto;
  margin-top: 5px;
}

.month-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  height: 34px;
}

.month-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 40px 0 10px 4px;
  letter-spacing: -0.5px;
  border-left: 4px solid #4365BA;
  padding-left: 8px;
}

.month-title-inline {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.5px;
  border-left: 4px solid #4365BA;
  padding-left: 8px;
  line-height: 1.3;
}

.contest-search-form-inline {
  height: 100%;
}

/* 리스트 */
.contest-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contest-item-box {
  width: 100%;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.05);
}

/* 상태바 */
.contest-status-bar {
  width: 100%;
  color: #fff;
  font-size: 15px;
  padding: 5px 5px 5px 20px;
  box-sizing: border-box;
}

.status-ing {
  background-color: #FF7373;
}

.status-closed {
  background-color: #A3A3A3;
}

.status-apply {
  background-color: #76C079;
}

.status-soon {
  background-color: #7CA9ED;
}

/* 제목/신청버튼 */
.contest-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px 20px 40px;
  gap: 12px;
  box-sizing: border-box;
}

.contest-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.contest-title a {
  color: #000;
}

.contest-apply-btn {
  background-color: #4365BA;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

/* PC 정보영역 */
.contest-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 12px 24px 40px;
  font-size: 14px;
  box-sizing: border-box;
}

.contest-info-label {
  color: #6D6D6D;
  padding-bottom: 4px;
}

.contest-info-value {
  color: #000;
}

.contest-info-desktop {
  display: grid;
}

.contest-info-mobile {
  display: none;
}

/* 하단 바로가기 버튼 */
.contest-shortcut-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 40px 30px 40px;
  box-sizing: border-box;
}

.contest-shortcut-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid #cfe3d5;
  background: linear-gradient(180deg, #f6fbf7 0%, #edf7ef 100%);
  color: #2f5e46;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
  white-space: normal;
  word-break: keep-all;
}

.contest-shortcut-btn:hover {
  background: linear-gradient(180deg, #4f8f69 0%, #3f7d59 100%);
  border-color: #3f7d59;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(63, 125, 89, 0.18);
}

.no-result {
  padding: 40px 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/*
*
* ==========================================
*  데스크탑
* ==========================================
*
*/
@media screen and (min-width: 911px) {

  /* 메인화면1 */
  .content1 {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(-45deg, #1d2c41, #B7C9D9, #4FA3F0, #22131a);
    background-size: 400% 400%;
    -webkit-animation: AnimationName 20s ease infinite;
    -moz-animation: AnimationName 20s ease infinite;
    -o-animation: AnimationName 20s ease infinite;
    animation: AnimationName 20s ease infinite;
  }

  @-webkit-keyframes AnimationName {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  @-moz-keyframes AnimationName {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  @-o-keyframes AnimationName {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  @keyframes AnimationName {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  .content1 .where {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 12px;
    width: 251px;
    height: 20px;
  }

  .content1_text_wrap {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    color: #fff;
  }

  .content1 span:nth-child(1) {
    display: block;
    width: 100%;
    height: 50px;
    font-size: 24px;
    float: left;
    margin-top: 30px;
    line-height: 70px;
    letter-spacing: -2px;
  }

  .content1_text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: calc(50% - 100px);
    text-align: center;
  }

  .content1 .underline_wrap {
    width: 100%;
    height: 30px;
    position: relative;
    float: left;
  }

  .content1 .underline1 {
    position: absolute;
    left: calc(50% - 10px);
    width: 20px;
    height: 1px;
    background-color: #fbd784;
    float: left;
    top: 15px;
  }

  .content1 span:nth-child(2) {
    display: block;
    width: 100%;
    height: 30px;
    font-size: 14px;
    float: left;
    line-height: 25px;
    margin-top: 30px;
    letter-spacing: -1px;
  }

  /* 메인화면2 */
  .content2 {
    position: relative;
    width: 100%;
    height: 50px;
    z-index: 13;
    background: white;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    color: #4a5160;
  }

  .content2_active {
    position: fixed;
    top: 0;
    z-index: 7900;
  }

  .content2 img {
    position: absolute;
    display: block;
    width: 180px;
    height: 40px;
    margin: 5px 0;
    left: -220px;
    transition: all 0.5s;
  }

  .menu_plus2 {
    transition: all 0.5s;
    position: absolute;
    width: 50px;
    float: right;
    height: 50px;
    right: -60px;
    text-align: center;
    z-index: 11;
    cursor: pointer;
  }

  .menu_plus2 .i {
    position: absolute;
    color: white;
    left: 0;
    width: 21px;
    height: 21px;
    margin: 14.5px 14.5px;
    background-repeat: no-repeat;
    background-image: cover;
  }

  .x_img {
    background-image: url(../image/icon/x_black.png);
  }

  .list_img {
    background-image: url(../image/icon/list_black.png);
  }

  .menu_plus2_active {
    width: 200px;
  }

  .content2 .text_wrap {
    width: 1000px;
    min-width: 1000px;
    max-width: 1000px;
    height: 100%;
    margin: 0 auto;
  }

  .content2 .text1 {
    width: 100%;
    height: 100%;
  }

  .content2 .text1 ul {
    width: 150px;
    height: 100%;
    margin: 0 auto;
  }

  .content2 .text1 li {
    display: block;
    width: 150px;
    float: left;
    box-sizing: border-box;
    height: 50px;
    text-align: center;
  }

  .content2 .text1 a {
    display: block;
    color: #4a5160;
    font-size: 14px;
    position: relative;
    margin-top: 16px;
    height: 18px;
    border-right: 1px solid #4a516056;
  }

  .content2 .text1 li:last-child a {
    border-right: none;
  }

  .content2 .text1 a:hover {
    color: #0070c9;
  }

  .content2 li:nth-child(1) a {
    color: #0070c9;
  }

  .content2 li:nth-child(1) a:after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 0;
    z-index: 8000;
    width: 100%;
    height: 1px;
    background: #0070c9;
  }

  /* 메인화면3 */
  .content3 {
    position: relative;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    z-index: 12;
  }

  .container {
    width: 1000px;
    margin: 0 auto;
    height: 100%;
  }
}

/*
*
* ==========================================
*  모바일
* ==========================================
*
*/
@media screen and (min-width: 0px) and (max-width: 910px) {

  /* 메인화면1 */
  .content1 {
    position: relative;
    width: 100%;
    height: 210px;
    background-image: url(../image/background/sejong.jpg);
    background-size: 100% auto;
    background-image: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    background-position: center center;
  }

  .content1 .where {
    display: none;
  }

  .content1_text_wrap {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  }

  .content1 span:nth-child(1) {
    display: block;
    width: 100%;
    height: 25px;
    font-size: 18px;
    float: left;
    margin-top: 70px;
    letter-spacing: -2px;
  }

  .content1_text {
    position: absolute;
    width: calc(100% - 50px);
    padding: 0 25px;
    height: 100%;
    top: calc(50% - 100px);
    text-align: center;
  }

  .content1 .underline_wrap {
    width: 100%;
    height: 15px;
    position: relative;
    float: left;
  }

  .content1 .underline1 {
    position: absolute;
    left: calc(50% - 5px);
    width: 10px;
    height: 1px;
    background-color: #fbd784;
    float: left;
    top: 7.5px;
  }

  .content1 span:nth-child(2) {
    display: block;
    width: 100%;
    height: 40px;
    font-size: 11px;
    float: left;
    line-height: 20px;
    margin-top: 20px;
    letter-spacing: -1px;
  }

  /* 메인화면2 */
  .content2 {
    position: relative;
    width: 100%;
    height: 50px;
    z-index: 13;
    background: white;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    color: #4a5160;
    -ms-overflow-style: none;
    overflow-y: hidden;
  }

  .content2::-webkit-scrollbar {
    display: none;
  }

  .content2_active,
  .content2 img,
  .menu_plus2,
  .menu_plus2 .i,
  .x_img,
  .list_img,
  .menu_plus2_active {
    display: none;
  }

  .content2 .text_wrap {
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .content2 .text1 {
    width: 100%;
    height: 100%;
  }

  .content2 .text1 ul {
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .content2 .text1 li {
    display: block;
    width: 200px;
    box-sizing: border-box;
    height: 50px;
    text-align: center;
    margin: 0 auto;
  }

  .content2 .text1 a {
    display: block;
    color: #4a5160;
    font-size: 14px;
    position: relative;
    margin-top: 16px;
    height: 18px;
    border-right: 1px solid #4a516056;
  }

  .content2 .text1 li:last-child a {
    border-right: none;
  }

  .content2 .text1 a:hover {
    color: #0070c9;
  }

  .content2 li:nth-child(1) a {
    color: #0070c9;
  }

  .content2 li:nth-child(1) a:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    z-index: 9000;
    width: 100%;
    height: 1px;
    background: #0070c9;
  }

  /* 메인화면3 */
  .container {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .content3 {
    width: calc(100% - 50px);
    padding: 100px 25px 0 25px;
    position: relative;
    z-index: 11;
    margin-top: 0;
    margin-bottom: 50px;
  }

  /* 월 헤더 */
  .month-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 20px 0 30px;
  }

  .month-header-left {
    flex: 0 0 auto;
  }

  .month-header-right {
    flex: 0 0 auto;
    width: 100%;
    display: block;
    height: auto;
  }

  .month-title {
    font-size: 16px;
    margin: 28px 0 12px 0;
    border-left-width: 3px;
    padding-left: 6px;
  }

  .month-title-inline {
    font-size: 16px;
    line-height: 1.4;
    border-left-width: 3px;
    padding-left: 6px;
  }

  /* 검색폼 */
  .contest-search-form-inline {
    display: block;
    width: 100%;
    height: auto;
  }

  .contest-header-bar {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  .contest-search-form {
    width: 100%;
    overflow: hidden;
  }

  .contest-input,
  .contest-btn-search {
    height: 36px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .contest-year {
    float: left;
    width: 49% !important;
    margin-right: 2%;
  }

  .contest-month {
    float: left;
    width: 49% !important;
    margin-right: 0;
  }

  .contest-keyword {
    float: left;
    width: 85% !important;
    margin-right: 2%;
    margin-top: 5px;
    min-width: 0;
  }

  .contest-btn-search {
    float: left;
    width: 13% !important;
    border: 1px solid #4365BA;
    background-color: #4365BA;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    padding: 0 !important;
    margin-top: 5px;
    font-size: 12px !important;
  }

  /* 카드 */
  .contest-item-box {
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.08),
      0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .contest-item-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 16px 20px;
    gap: 8px;
    font-size: 14px;
  }

  .contest-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .contest-title a {
    font-size: 14px;
  }

  .contest-apply-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* 모바일 정보영역 */
  .contest-info-desktop {
    display: none;
  }

  .contest-info-mobile {
    display: block;
    padding: 10px 20px 20px 20px;
    font-size: 12px;
    box-sizing: border-box;
  }

  .contest-info-mobile-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
    margin-bottom: 6px;
  }

  .contest-info-mobile-label {
    color: #6D6D6D;
    min-width: 70px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.4;
  }

  .contest-info-mobile-value {
    color: #000;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.4;
  }

/* 모바일 바로가기 버튼 - 스크롤 없이 한 줄 5개 */
.contest-shortcut-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.contest-shortcut-btn {
  width: calc((100% - 16px) / 5);
  flex: 0 0 calc((100% - 16px) / 5);
  height: 30px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 2px;
  line-height: 1.15;
  white-space: normal;
  word-break: keep-all;
  letter-spacing: -0.5px;

  border: 1px solid #cfe3d5;
  background: linear-gradient(180deg, #f6fbf7 0%, #edf7ef 100%);
  color: #2f5e46;
}

.contest-shortcut-btn:hover {
  background: linear-gradient(180deg, #4f8f69 0%, #3f7d59 100%);
  border-color: #3f7d59;
  color: #ffffff;
}

  .no-result {
    font-size: 13px;
    padding: 32px 0;
  }
}