@import url("basic_css.css");


.contents {
  position: relative;
  width: 100%;
  /* margin-top: 44px; */
  overflow: hidden;
}

a{
  color: black;
}


/* ===== 검색바 영역 ===== */
.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;
}

.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;
}
.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;
}
.contest-title {
  font-size: 16px;
  font-weight: 700;
  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;
}

/* 하단 3열 구조 */
.contest-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 12px 30px 40px;
  font-size: 14px;
}
.contest-info-label {
  color: #6D6D6D;
  padding-bottom: 4px;
}
.contest-info-value {
  color: #000;
}


.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-header-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 30px 0 16px;
  gap: 12px;
}

/* 왼쪽: "10월 경기일정" */
.month-header-left {
  flex: 1 1 auto;
  margin-top: 5px;
}
.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;
}

/* 오른쪽: 검색폼 가로 배치 */
.month-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  height: 34px;
}

.contest-search-form-inline{
  height: 100%;
}
.contest-info-desktop {
  display: grid; /* 너가 원래 .contest-info-grid에 display:grid 줬잖아. 그대로 */
}
.contest-info-mobile {
  display: none;
}



/*
*
* ==========================================
*  데스크탑
* ==========================================
*
*/
@media screen and (min-width:911px) {

  /* ============================================================================================================================= */
  /* 메인화면1 - 소개 */

  .content1 {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: 200px;
    position: relative;
    /* background-image: url(../img/background/sejong.jpg); */
    /* background-size: 100% 100%; */
    /* background-image: contain; */
    /* background-repeat: no-repeat; */
    overflow: hidden;
    /* background-position: center center; */
    /* color: white; */
    background: linear-gradient(-45deg, #1d2c41, #B7C9D9, #4FA3F0, #22131a);
    background-size: 400% 400%;
    animation: AnimationName 20s ease infinite;
    -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;
  }

  /* .s1_arrow{
	display:block; 
	position:absolute; 
	bottom: 18.4%;
	right: calc(50% - 4px);
	text-align:center; 
  }
  
  .scroll-arrow 
  {
	width:4px; 
	height:4px; 
	border-right: 3px solid white; 
	border-bottom: 3px solid white;
	transform: rotate(45deg); 
	-webkit-transform: rotate(45deg); 
	-moz-transform: rotate(45deg); 
	-o-transform: rotate(45deg);  
	-ms-transform: rotate(45deg);
	animation: arrow-wave 1s infinite; animation-direction: alternate;
  }
  
   .scroll-arrow:nth-child(1) {
	 animation-delay: 0.1s;
	}
  
   .scroll-arrow:nth-child(2) {
	 margin-top:6px; 
	 animation-delay: 0.2s;
	}
  
   .scroll-arrow:nth-child(3) {
	 margin-top:6px; 
	 animation-delay: 0.3s;
	}
  
   @keyframes arrow-wave {
   0% {opacity: 0;}
   50% {opacity: .5;}
   100% {opacity: 1;}
   }
  
   @keyframes arrow_down{
   0%{top:50px;}
   50%{top:30px;}
   100%{top:50px;}
   }

/* ============================================================================================================================= */
  /* 메인화면2 */

  .content2 {
    position: relative;
    width: 100%;
    height: 50px;
    z-index: 13;
    background: white;
    /* transition: all 0.5s; */
    box-sizing: border-box;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    color: #4a5160;
  }

  .content2_active {
    position: fixed;
    top: 0px;
    z-index: 7900;
  }

  .content2 img {
    position: absolute;
    display: block;
    width: 180px;
    height: 40px;
    margin: 5px 0px;
    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: 0px;
    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%;
    /* height: 100vh; */
    /* min-height: 1080px; */
    padding-bottom: 100px;
    z-index: 12;
    padding-top: 100px;
  }
  .container {
    width: 1000px;
    margin: 0 auto;
    height: 100%;
  }


}


/*
*
* ==========================================
*  모바일
* ==========================================
*
*/
@media screen and (min-width:0px) and (max-width:910px){
/* @media screen and (max-width:1024px) { */


  /* ============================================================================================================================= */
  /* 메인화면1 - 소개 */

  .content1 {
    position: relative;
    width: 100%;
    height: 210px;
    position: relative;
    background-image: url(../image/background/sejong.jpg);
    background-size: 100% auto;
    background-image: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    background-position: center center;
    /* color: white; */
  }

  .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;
    /* line-height: 70px; */
    letter-spacing: -2px;
    /* background-color: aqua; */
  }

  .content1_text {
    position: absolute;
    width: calc(100% - 50px);
    padding: 0px 25px;
    height: 100%;
    top: calc(50% - 100px);
    text-align: center;
  }



  .content1 .underline_wrap {
    width: 100%;
    height: 15px;
    position: relative;
    float: left;
    /* background-color: aqua; */
  }

  .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 {
    display: none;
  }

  .content2 img {
    display: none;
  }

  .menu_plus2 {
    display: none;
  }

  .menu_plus2 .i {
    display: none;
  }

  .x_img {
    display: none;
  }

  .list_img {
    display: none;
  }

  .menu_plus2_active {
    display: none;
  }

  .content2 .text_wrap {
    width: 100%;
    /* min-width: 1000px;
    max-width: 1000px; */
    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-weight: bold; */
    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);
    /* height: 550px; */
    padding: 0px 25px;
    position: relative;
    z-index: 11;
    margin-top: 0px;
    /* min-height: 1600px; */
    margin-bottom: 50px;
        padding-top: 100px;
  }
 /* 월 헤더 줄을 세로 스택으로 */
  .month-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 20px 0 12px;
    margin-bottom: 30px;
  }

  .month-header-left {
    flex: 0 0 auto;
  }

  .month-title-inline {
    font-size: 16px;
    line-height: 1.4;
    border-left-width: 3px;
    padding-left: 6px;
  }

  .month-header-right {
    flex: 0 0 auto;
    width: 100%;
  }

  /* 검색폼: 모바일에서는 블록형 */
  .contest-search-form-inline {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 연도/월 한 줄 */
    gap: 8px 8px;
  }

  /* 년, 월 select 둘은 첫 줄에 1/2씩 */
  #searchYear,
  #searchMonth {
    width: 100%;
  }

  /* 검색어는 100% 한 줄 차지하게 2칸 span */
  #searchKeyword {
    grid-column: 1 / span 2;
    width: 100%;
  }

  /* 검색 버튼도 100% 한 줄 전체 */
  #btnSearch {
    grid-column: 1 / span 2;
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 10px 0;
  }

  .contest-input {
    font-size: 14px;
    padding: 8px 10px;
  }

  .contest-btn-search {
    padding: 10px 10px;
    font-size: 14px;
  }

  /* 두 번째 이후 월제목 */
  .month-title {
    font-size: 16px;
    margin: 28px 0 12px 0;
    border-left-width: 3px;
    padding-left: 6px;
  }

  /* 카드 여백 조금 줄임 */
  .contest-item-box {
    /* border-radius: 4px; */
    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: 12px 14px 8px 14px;
  }

  .contest-title a {
    font-size: 15px;
    line-height: 1.4;
  }

  .contest-apply-btn {
    font-size: 13px;
    padding: 7px 12px;
    margin-top: 8px;
  }

  /* info grid: 모바일에서는 세로형 2컬럼 구조로 바꾸기
     형태:
     대회기간   2025.10.01 ~ 10.02
     장소       춘천CC
     신청기간   2025.09.10 ~ 09.25
  */
  .contest-info-grid {
    grid-template-columns: auto 1fr;
    text-align: left;
    row-gap: 8px;
    column-gap: 10px;
    font-size: 13px;
    padding: 10px 14px 14px;
  }

  .contest-info-label {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 13px;
    line-height: 1.4;
    min-width: 70px;
    white-space: nowrap;
  }

  .contest-info-value {
    padding-top: 0;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
  }

  .no-result {
    font-size: 13px;
    padding: 32px 0;
  }

    /* PC 버전 테이블은 모바일에서 숨김 */
  .contest-info-desktop {
    display: none;
  }

  /* 모바일 버전만 보이게 */
  .contest-info-mobile {
    display: block;
    padding: 10px 12px 30px 20px; /* PC랑 비슷하게 맞춰도 되고, 모바일용으로 줄이고 싶으면 조절 */
    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: 5px;
  }

  .contest-info-mobile-label {
    color: #6D6D6D;
    min-width: 70px;
    white-space: nowrap;
  }

  .contest-info-mobile-value {
    color: #000;
    word-break: break-word;
  }

  /* 모바일에서 카드 패딩도 약간 줄이고 싶으면 여기서 override 가능 */
  .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-header-bar {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  .contest-search-form {
    width: 100%;
    overflow: hidden; /* float 해제용 */
  }
  #searchKeyword{
    grid-column: none;
  }
  #btnSearch{
    grid-column: none;
  }
  .contest-search-form-inline{
    display: block;
  }
  .month-header-right{
    display: block;
  }
  /* 공통 */
  .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;
  }

  /* 검색 버튼 */
  .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: 0px !important;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 12px !important;
  }

}
