*{
    margin: 0;
    padding: 0;
    /* letter-spacing: -1px; */
 }
 
 li{
     list-style-type: none;
 }
 
 input[type="checkbox"] {
     cursor: pointer; 
 } 
 
 body{
     background-image: white;
     
 }
 
a{
  color: black;
}
 a:hover{
     cursor: pointer;
 }
 
 .login_wrap{
     height: 100%;
 }

 .content{
    width: 100%;
    overflow: hidden;
    position: relative; 
    padding-top: 75px;
}
 
 
 /* --------------------------------------------------------topmenu----------------------------------------------------------- */
 


/* 컨테이너 */
.default_container {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: auto;
}

.container1 {
    background-image: url(../../assets/image/background/association_intro/firstimg4.jpg);
  background-size: 100% auto;
  background-image: contain;
  /* background-repeat: no-repeat; */
  background-position: center center;
  /* background-color: #F2F6F7; */
  
}

.container1_wrap1_background{
  width: 100%;
  /* background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)); */
}

.container1_wrap1 {
  max-width: 1300px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  padding: 100px 0 165px 0px;
}

.container1_wrap1_box1 {
  width: 50%;
  height: auto;
  float: left;
  padding: 18px 14px;
  box-sizing: border-box;
  position: relative;
}
.media_header{
  float: left;
  display: flex;
  justify-content: space-between;
  align-items: center;   /* ✅ 전체 헤더 수직 가운데 정렬 */
  gap: 20px;
  margin-bottom: 30px;
}
.media_header .title {
  font-size: 40px;
  font-weight: 700;
  color: #222;
}

.media_header .desc {
  font-size: 16px;
  color: #666;
  margin-top: 4px;
}

.container1_wrap1_box2 {
  width: 50%;
  float: left;
  box-sizing: border-box;
}

/* 미디어 소식 */
#mediaSwiper {
  width: 100%;
  position: relative; /* ✅ 오버레이 기준 */
  float: left;
}

#mediaSwiper .swiper-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, .35);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

.slider-controls button {
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}


.media_etc {
  float: right;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -1px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 5px;
  color: #222;
  border: 1px solid #E0E0E0;
  padding: 8px 13px;
}

.media_etc img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.rank-strip .media_etc{
  margin-top: 6px !important;
}

/* 랭킹 스트립 공통 */
.rank-strip {
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.rank-strip__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 10px;
  position: relative;
}

.rank-strip__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #CED2DE;
}

.rank-title {
  margin: 0;
  color: #111;
}

.rank-tabs {
  display: flex;
  gap: 5px;
  position: relative;
  z-index: 2;
}

.rank-tab {
  position: relative;
  background: none;
  border: 0;
  padding: 4px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  transition: color .2s;
}

.rank-tab:hover {
  color: #1a237e;
}

.rank-tab.active {
  color: #1a237e;
  font-weight: 700;
}

.rank-tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1a237e;
  border-radius: 2px;
}

.rank-swiper {
  padding: 5px 0;
}

.rank-swiper .swiper-slide {
  width: auto;
}

/* 중앙 오버레이 화살표 (랭킹/대회일정 공통) */
.strip-controls {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.strip-controls .strip-prev,
.strip-controls .strip-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.strip-controls .strip-prev {
  left: 8px;
}

.strip-controls .strip-next {
  right: 8px;
}

/* Swiper 상태 클래스에 따른 자동 숨김 */
.strip-controls .swiper-button-disabled,
.strip-controls .swiper-button-lock {
  display: none !important;
}

/* 랭킹 카드 */
.rank-card {
  position: relative;
  width: 141px;
  height: 210px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../image/ranking_card.png') no-repeat center 55% / 80%;
  opacity: .4;
  z-index: 1;
}

.rank-card__top {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.rank-label {
  font-size: 11px;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: .4px;
}

.rank-no {
  font-size: 18px;
  font-weight: 800;
  color: #1a237e;
}

.rank-photo-wrap {
  position: relative;
  margin-top: 42px;
  z-index: 3;
}

.rank-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  margin-top: 6px;
}

.rank-info {
  position: relative;
  z-index: 3;
  margin-top: 3px;
}

.rank-name {
  font-size: 16px;
  color: #000;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.rank-sep {
  width: 60%;
  height: 1px;
  margin: 0 auto 8px;
  background: #c5cae9;
}

.rank-points {
  font-size: 13px;
  font-weight: 600;
  color: #37474f;
}

/* 사진 없을 때: 원형 유지 + 기존 크기와 동일(80x80) */
.rank-photo--noimg{
  width: 80px;
  height: 80px;
  border-radius: 50%;                  /* ✅ 원형 유지 */
  background: #f0f0f0;
  display: flex;
  align-items: center;                 /* 가운데 정렬 */
  justify-content: center;
  color: #9aa0a6;
  font-size: 11px;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);/* ✅ 기존 그림자 톤 맞춤 */
  margin: 0 auto;
  margin-top: 53px;                     /* ✅ 기존 .rank-photo와 동일 여백 */
}

/* 공지 헤더 바 */
.container2_wrap1 {
  width: 100%;
  background: #263763;
  overflow: hidden;
}

.container2_wrap1_box1 {
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
}

.notice_title {
  font-weight: bold;
  float: left;
  padding: 19px 0 21px;
  font-size: 20px;
}

.notice_etc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  float: right;
  padding: 24px 0;
}

.notice_etc img {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  top: 1px;
  filter: invert(1);
}

/* 공지 리스트 */
.container2_wrap2 {
  max-width: 1000px;
  margin: 50px auto 0;
  padding-bottom: 150px;
  margin-top: 70px;
}

.board_preview_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.board_preview_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border: 1px solid #E0E0E0;
  box-sizing: border-box;
  margin: 15px 0;
}

.board_title {
  font-size: 16px;
  color: #222;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  margin-right: 20px;
}

.board_date {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

/* 대회일정 */
.container2_wrap3 {
  width: 100%;
  overflow: hidden;
  background: #F4F4F4;
}

.container2_wrap3_box1 {
  max-width: 1200px;
  overflow: hidden;
  margin: 0 auto;
}

/* =========================
   대회일정 (전체 교체본)
   ========================= */

/* 섹션 래퍼 */
.container2_wrap3 {
  width: 100%;
  overflow: hidden;
  background: #F4F4F4;
}

.container2_wrap3_box1 {
  max-width: 1200px;
  overflow: hidden;
  margin: 0 auto;
  padding-bottom: 150px;
}

/* 헤더 */
.schedule_header {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* ✅ 전체 헤더 수직 가운데 정렬 */
  gap: 16px;
  margin-bottom: 14px;
  padding: 70px 0 50px 0px;
}

.schedule_header .left {
  display: flex;
  align-items: center;   /* ✅ 제목과 설명을 수평 가운데 정렬 */
  gap: 12px;
}

.schedule_header .title {
  font-size: 40px;
  font-weight: 700;
  color: #222;
}

.schedule_header .desc {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}


.state_select{
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  background: #fff;
  margin-top: 15px;
}

/* ===== 검색바 영역 ===== */
.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;
}



/* =========================
   대회일정 (전체 교체본)
   ========================= */

/* 섹션 래퍼 */
.container2_wrap4 {
  width: 100%;
  overflow: hidden;
}



.container2_wrap4_box1 {
  max-width: 1200px;
  overflow: hidden;
  margin: 0 auto;
  margin-top: 0px;
  padding: 18px;
  padding-bottom: 50px;
}


.info_etc{
  border: 1px solid #E0E0E0;
  padding: 10px 20px;
}


/* 통계 + 산하협회 블록 */
.gw-stats-and-subs{ width:100%; max-width:1200px; margin:24px auto 0; }

/* 통계 3박스 */
.gw-stats{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 18px;
    margin: 0 auto;
    width: 70%;
    margin-bottom: 100px;
}

.gw-stat{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  padding: 30px 30px 20px 30px;
}

.gw-stat .stat-title{ font-size:16px; color:#555; margin-bottom:6px; letter-spacing:-0.2px; }
.gw-stat .stat-number{ font-size:30px; font-weight:800; color:#1a237e; line-height:1.1; }
.gw-stat .stat-sub{ font-size:11px; color:#888; margin-top:6px; }

/* 산하협회 헤더 + 컨트롤 재사용 */
.gw-subassoc .subassoc-header{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  margin: 16px 0 10px;
}
.gw-subassoc .title{ font-size:16px; font-weight:500; color:#222; letter-spacing: -1px; }

/* 컨트롤 버튼: 기존 strip-controls 톤 재사용 */
.gw-subassoc .strip-controls{ position:relative; display:flex; gap:8px; }
.gw-subassoc .strip-controls .strip-prev,
.gw-subassoc .strip-controls .strip-next{
  width:36px; height:36px; border-radius:50%; border:0; cursor:pointer;
  background: rgba(255,255,255,.95); box-shadow:0 2px 6px rgba(0,0,0,.18);
  display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700;
}

/* 서브협회 카드 (4개씩) */
.subassoc-swiper{ 
  position:relative;
}
.subassoc-swiper .swiper-slide{ width:auto; }

.subassoc-card{
  width: 260px;            /* 4개 보기용 권장 폭(반응형에서 조절) */
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:14px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.subassoc-card .ko{
  font-size:15px; font-weight:700; color:#222;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.subassoc-card .en{
  margin-top:4px; font-size:12px; color:#777; letter-spacing:.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* --- gw-subassoc 헤더 안 strip-controls 스코프 리셋 --- */
.gw-subassoc .subassoc-header .strip-controls{
  position: static;         /* 전역 absolute 무효화 */
  inset: auto;              /* 전역 inset:0 무효화 */
  pointer-events: auto;     /* 전역 pointer-events:none 무효화 */
  display: flex;
  gap: 8px;
}

.gw-subassoc .subassoc-header .strip-controls .strip-prev,
.gw-subassoc .subassoc-header .strip-controls .strip-next{
  position: static;         /* 전역 absolute 무효화 (헤더 안에 자연 배치) */
  transform: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;              /* 화살표 색 명시 */
}

.gw-subassoc .subassoc-header .strip-controls .strip-prev span,
.gw-subassoc .subassoc-header .strip-controls .strip-next span{
  line-height: 1;
}

/* 카드 전체를 a로 바꿨으므로 링크 색상 오버라이드 (전역 a{color:white;} 무시) */
.subassoc-card{
  display: block;
  width: 260px;
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:14px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  color: inherit;             /* 부모색을 상속 */
  text-decoration: none;      /* 밑줄 제거 */
}

.subassoc-card .ko{
  color:#222;
}
.subassoc-card .en{
  color:#777;
}
.subassoc-swiper {
  position: relative;
  padding: 20px 8px; /* 카드 상하 공간 */
}

/* 카드 */
.subassoc-card {
  width: 260px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.subassoc-card .ko {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.subassoc-card .en {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

/* 좌우 화살표 (카드 양옆에 배치) */
.subassoc-swiper .strip-prev,
.subassoc-swiper .strip-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  z-index: 10;
}

/* hover 효과 */
.strip-prev:hover,
.strip-next:hover,#mediaSwiper .slider-controls button:hover {
  background: #1a237e;
  color: #fff;
}



/* 양쪽 위치 지정 */
.subassoc-swiper .strip-prev { left: 10px; }  /* 컨테이너 밖으로 약간 */
.subassoc-swiper .strip-next { right: 10px; }

/* 버튼 안 글자 보정 */
.subassoc-swiper .strip-prev span,
.subassoc-swiper .strip-next span {
  display: block;
  line-height: 1;
}


/* 기본은 탭 보이기, 셀렉트 숨김 */
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rank-filter-m { display: none; }

/* 스크린리더용 숨김 */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }


  /*
*
* ==========================================
* PC
* ==========================================
*
*/

@media screen and (min-width:911px){


}



  /*
*
* ==========================================
* 모바일 
* ==========================================
*
*/
   
@media screen and (min-width:0px) and (max-width:910px){

    .rank-tabs { display: none; }
  .rank-filter-m { display: block; }

  .content{
    padding-top: 0px;
  }
  .container1_wrap1{
padding: 85px 0 50px 0px;
  }
  .container1{
    background-size: auto;
  }

.container1_wrap1_box1{
  width: 100%;
}
.container1_wrap1_box2{
  width: 100%;
}

.media_header{
  margin-bottom: 20px;
}

.media_header .title{
 font-size: 30px;
 letter-spacing: -1px;
}
.media_header .desc{
 font-size: 14px;
 letter-spacing: -1px;
}

.container2_wrap1{
  padding: 0px 18px 0px 18px;
  box-sizing: border-box;
}
.container2_wrap2{
  padding: 0px 18px 0px 18px;
  box-sizing: border-box;
  margin-top: 50px;
  margin-bottom: 50px;
}

.schedule_header{
  padding: 50px 18px 0px 18px;
  box-sizing: border-box;
}

.schedule_header .title{
  font-size: 30px;
}
.schedule_header .desc{
  display: none;
}
.schedule-swiper{
  padding: 0px 18px 0px 18px;
  box-sizing: border-box;
}

.container2_wrap3_box1{
  padding: 18px;
  margin-bottom: 50px;
  padding-bottom: 0px;
}
.info_etc{
  padding: 8px 15px;
}

.gw-stats-and-subs{
  padding: 0px 18px;
  box-sizing: border-box;

}

.gw-stats{
  grid-template-columns: auto;
}

.board_preview_item{
  padding: 10px 20px;
}

.board_title{
  font-size: 15px;
}
 /* 월 헤더 줄을 세로 스택으로 */
  .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;
  }
}


/* 산하시군 18개 width패치 */

/* (중요) 기존 고정폭 제거: 260px → 100% 로 바꿔 화면폭에 ‘꽉 차게’ */
.subassoc-card{
  display: block;
  width: 100%;            /* ✅ 화면폭 분할값을 100%로 채움 */
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:14px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  color: inherit;
  text-decoration: none;
  text-align: center;
}

/* (중요) auto 폭 강제 금지 — 스와이퍼가 칸폭을 계산하게 둠 */
.subassoc-swiper .swiper-slide{
  /* width:auto; ← 이 줄이 있었다면 제거 */
  display: flex;          /* 카드가 높이를 꽉 채우도록 */
}
.subassoc-swiper .swiper-slide > .subassoc-card{
  width: 100%;
}

/* 모바일에서도 여백 포함해 꽉 차도록 컨테이너 패딩만 유지 */
.subassoc-swiper { 
  position: relative; 
  padding: 20px 8px;
}

/* 좌우 버튼은 그대로 사용하되, 필요 없을 땐 비활성화 처리 */
#subPrev.swiper-button-disabled,
#subNext.swiper-button-disabled{
  opacity: 0;
  pointer-events: none;
}
.contest_card {
  position: relative;
  width: 100%;
  height: 100%;
  /* 슬라이드 내부 레이아웃이 세로 스택이라면 flex-direction:column; 써도 됨 */
  display: flex;
  flex-direction: column;
}

.contest_thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;  /* 썸네일 비율은 너 스타일 맞춰서 */
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  background: #f5f5f5;
  height: 700px;
}
.contest_thumb.is-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  color:#999;
  font-size:14px;
  font-weight:500;
}
.contest_thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.contest_lines {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color:#222;
}
.contest_lines .line.title {
  font-size: 15px;
  font-weight: 700;
  color:#000;
  margin-bottom:4px;
}
.contest_lines .line.title a {
  color: inherit;
  text-decoration: none;
}
.contest_lines .k {
  display:inline-block;
  min-width: 36px;
  font-weight:600;
  color:#555;
}
.contest_lines .v {
  color:#000;
  font-weight:400;
  margin-left:4px;
}

/* 상태 버튼 (라인처럼 아래에 붙지만 디자인은 버튼형) */
.status_btn {
  display: inline-block;
  margin-top: 25px;
  padding: 5px 10px;
  font-size: 13px;
  color: #fff;
  border-radius: 3px;
  text-align: center;
  user-select: none;
  transition: 0.2s;
  width: 50px;
}

/* =========================
   팝업 레이어 전체
   ========================= */

#popup-layer-root {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  pointer-events: none; /* 배경 클릭 막기 */
  font-family: 'Noto Sans KR', sans-serif;

  /* PC 기본: 가운데 배열 / 가로 나란히 */
  display: flex;
  flex-direction: row;
  align-items: center;      /* 수직 중앙 */
  justify-content: center;  /* 수평 중앙 */
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

/* =========================
   개별 팝업 공통 박스
   ========================= */

.site-popup {
  pointer-events: auto; /* 이 박스는 클릭 가능 */
  background: transparent;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;

  /* 🔁 공통 사이즈: 여기 한 군데에서만 관리 */
  max-width: 400px;
  width: 400px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
  animation: popupFade .25s ease both;

  display: flex;
  flex-direction: column;
}

/* 팝업 안 내용 래퍼 */
.site-popup-inner {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 260px;

  /* 전체 카드 최대 높이 */
  max-height: 80vh;
  overflow: hidden;
  box-sizing: border-box;
}

/* =========================
   헤더 (제목)
   ========================= */
.popup-header {
  flex-shrink: 0;
  padding: 16px 16px 8px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.popup-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #111;
  word-break: keep-all;
  text-align: center;
  margin: 0;
}

/* =========================
   바디 공통 래퍼
   ========================= */
.popup-body {
  flex: 1 1 auto;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* header+footer 뺀 만큼의 영역 제한 */
  max-height: calc(80vh - 110px);

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ---- 타입1: 이미지 ---- */
.popup-body-image {
  flex: 1 1 auto;
  min-height: 200px;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.popup-image-main {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.popup-empty-msg {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 20px;
}

/* ---- 타입2: 텍스트 ---- */
.popup-body-text {
  flex: 1 1 auto;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
  color: #222;
  overflow-y: auto;
}
.popup-text-content {
  font-size: 0.95rem;
  line-height: 1.5rem;
  color: #333;
  word-break: keep-all;
}
.popup-text-content a {
  color: #1a237e;
  text-decoration: underline;
}

/* ---- 타입3: 대회 초청 ---- */
.popup-body-invite {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0;
  overflow: hidden; /* iframe이 꽉 차게 */
}
.popup-invite-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
  display: block;
  min-height: 600px; /* 공통 기본 높이. (type=3만 따로 안건드림) */
}

/* =========================
   푸터
   ========================= */
.popup-footer {
  flex-shrink: 0;
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.4;
  color: #444;
}

.hide7-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #444;
  user-select: none;
}
.hide7-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1a237e;
}

.popup-close-btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #1a237e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.popup-close-btn:hover {
  background: #000;
  color: #fff;
}

/* =========================
   애니메이션
   ========================= */
@keyframes popupFade {
  0%   { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* =========================
   링크 색 보정 (전역 a {color:white} 같은 전역 룰 무시)
   ========================= */
.site-popup a {
  color: #1a237e;
  text-decoration: none;
}
.site-popup a:hover {
  text-decoration: underline;
}

/* =========================
   모바일 (<910px)
   ========================= */
@media (max-width: 910px) {

  #popup-layer-root {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    height: 100vh;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
  }

  .site-popup {
    width: 90%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-shadow:
      0 20px 50px rgba(0,0,0,0.35),
      0 6px 16px rgba(0,0,0,0.28);
  }

  .site-popup-inner {
    max-height: 80vh;
  }

  .popup-body {
    max-height: calc(80vh - 110px);
  }

  .popup-invite-frame {
    min-height: 60vh; /* 모바일에서 너무 길지 않게 */
  }
}
/* ===== 공지 미리보기 링크 색/레이아웃 복구 (전역 a{color:white} 무시) ===== */
.container2_wrap2 .board_preview_item a.board_link{
  color: inherit;               /* 부모 색(#222/#666) 상속 */
  text-decoration: none;
  display: flex;                /* li 내부 배치 유지 */
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.container2_wrap2 .board_preview_item a.board_link:hover .board_title{
  text-decoration: underline;   /* 호버 시 제목만 밑줄 */
}
.container2_wrap2 .board_title{ color:#222; }
.container2_wrap2 .board_date{  color:#666; }
/* =========================
   상단 타이틀바 (n월 경기일정 / 더보기)
   ========================= */
.contest-topbar{
  width: 100%;
  height: 50px;
  background: #263763;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
  margin-bottom: 16px;
}
.topbar-left{
  float: left;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.topbar-right{
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  opacity: .95;
}
.topbar-right img{
  width: 18px;
  height: 18px;
  display: block;
}

/* =========================
   state select → 가로 탭(picker)
   ========================= */
.state_picker{
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}
.state_picker .pick{
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: .15s;
  white-space: nowrap;
}
.state_picker .pick.active{
  background: #263763;
  border-color: #263763;
  color: #fff;
  font-weight: 600;
}
.state_picker .pick:hover{
  border-color: #263763;
}

/* =========================
   모바일: 필터를 아래줄로 내리기
   ========================= */
@media screen and (max-width:910px){
  .schedule_header{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 50px 0 30px 0;
  }
  .schedule_header .left{
    width: 100%;
  }
  .schedule_header .right{
    width: 100%;
  }
  .state_picker{
    width: 100%;
    flex-wrap: wrap;   /* ✅ 모바일에서 자동 줄바꿈 */
    gap: 8px;
  }
  .state_picker .pick{
    font-size: 12px;
    padding: 7px 10px;
    margin-top: 10px;
  }

  .contest-topbar{
    height: 46px;
    padding: 0 10px;
  }
  .topbar-left{ font-size: 14px; }
  .topbar-right{ font-size: 12px; }
}
/* 랭킹 스트립(남/여) 높이 유지 */
.rank-strip {
  /* 네 카드 높이에 맞춰 숫자만 조절 */
  min-height: 220px;     /* PC 기준 */
  position: relative;
}

/* swiper 자체도 최소 높이 유지 */
.rank-strip .rank-swiper {
  min-height: 220px;
}

/* 빈 결과 슬라이드가 가운데 오게 */
.rank-strip .rank-empty {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}