/* ===== 메인 비주얼 ===== */
.mvisual {
  position: relative;
  overflow: hidden;
  margin : 0 auto;
}

.mvisual-image {
  width: 100%;
  height: 680px;
  overflow: hidden;
  position: relative;
  background-image: url("../../../../images/s10/hsa/user/mvisual-1440.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 8px;
}

.mvisual-text {
  position: absolute;
  top: 327px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.mvisual-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

.mvisual-title-sub {
  font-size: 64px;
  font-weight: 600;
  color: var(--color-navy);
}

.mvisual-title-main {
  font-size: 64px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== 퀵메뉴 ===== */
/* 데스크탑: mvisual 하단 absolute 배치 */
.quick-menu {
  position: absolute;
  bottom: 37px;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0 34px;
  z-index: 20;
}

.quick-list {
  display: flex;
  gap: 14px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.quick-item {
  flex: 1;
  height: 140px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}


.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 0 32px;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.15s;
  border-radius: 8px;
}
.quick-link:hover {
  color:#1BA8DC; 
  box-shadow: 0 4px 20px rgba(27, 168, 220, 0.35);
}
.quick-link:active { 
    border: 1px solid var(--color-border);
    border:1px solid #1BA8DC; 
  }

/* ===== 학교찾기 ===== */
.school-search {
  margin: 0 26px;
  padding: 60px 0;
}

.school-search-inner {
  display: flex;
  align-items: center;
  gap: 74px;
  width: 100%;
}

/* 왼쪽: 타이틀 */
.school-search-left {
  flex: 0 0 292px;
  width: 292px;
  align-self: flex-start;
}

.school-search-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  word-break: keep-all;
}

.title-primary { color: var(--color-primary); }
.title-muted   { color: var(--color-footer-copy); }
.title-navy    { display: block; color: var(--color-navy); } /* 학교찾기 줄바꿈 */

/* 중앙: 학교 이미지 — 데스크탑 411×228px 고정 */
.school-image {
  flex: 0 0 411px;
  width: 411px;
  height: 228px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: url("../../../../images/s10/hsa/user/mbanner-500.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 오른쪽: 검색폼 */
.school-form-wrap {
  flex-shrink: 0;
  color:  #434342;
  font-size: 20px;
}

.school-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.select-school-type {
  width: 100%;
  height: 64px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='8' viewBox='0 0 17 9'%3E%3Cpolygon points='2,0 15,0 8.5,9' fill='%237B7F83'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.select-school-type:focus { outline: none; border-color: var(--color-primary); }
.select-school-type:hover {
  color: #1BA8DC;
  border-color: #1BA8DC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='8' viewBox='0 0 17 9'%3E%3Cpolygon points='2,0 15,0 8.5,9' fill='%231BA8DC'/%3E%3C/svg%3E");
}

/* 커스텀 셀렉트 */
.custom-select { position: relative; padding-bottom: 5px;}
.custom-select-btn { width: 100%; text-align: left; }
.custom-select-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #1BA8DC;
  border-top:none;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  list-style: none;
  overflow: hidden;
  margin-top: -1px;
  padding-bottom:10px;
  
}
.custom-select.is-open .custom-select-menu { display: block; }
.custom-select.is-open .custom-select-btn  { border-color: #1BA8DC; color: #1BA8DC; border-radius: 8px 8px 0 0; }
.custom-select-menu li {
  padding: 5px 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  min-height:50px;
}
.custom-select-menu li:hover  { background: none; color: #1BA8DC; }
.custom-select-menu li:active { color: #1BA8DC; }
.custom-select-menu li:active span { border: 1px solid #1BA8DC; border-radius: 8px; padding: 4px 10px; }
.custom-select-menu li.is-selected { color: #1BA8DC; font-weight: 700; }
.custom-select-menu li span { display: inline-block; }

/* 유형 버튼 */
.type-btn-group {
  display: flex;
  gap: 8px;
}

.btn-type {
  flex: 1;
  height: 64px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  transition: all 0.15s;
  white-space: nowrap;
  padding: 0 8px;
}

.btn-type:hover  { border-color: var(--color-primary); background: #1BA8DC; color: #ffffff; }
.btn-type:active { background: #1E5698; color: #ffffff; border-color: #1E5698; }

.btn-type.is-active {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #fff;
}

/* 학교명 검색 */
.school-search-row {
  display: flex;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius);
  overflow: hidden;
}

.input-school-name {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: none;
  font-size: 18px;
  color: var(--color-text);
  outline: none;
  background: #fff;
  font-weight: 600;
}

.input-school-name::placeholder { color: var(--color-text); }

.btn-school-search {
  width: 60px;
  height: 56px;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.school-search-row:hover               { border-color: #1BA8DC; }
.school-search-row:hover .btn-school-search { background: #1BA8DC; }
.school-search-row:active              { border-color: #1E5698; }
.school-search-row:active .btn-school-search,
.btn-school-search:active              { background: #1E5698; }

.btn-list {
  width: 200px;
  height: 60px;
  background: #fff;
  color: #1BA8DC;
  font-size: 24px;
  font-weight: 600;
  font-family: "Pretendard", sans-serif;
  border: 1px solid #1BA8DC;
  border-radius: 8px;
  cursor: pointer;
}

.btn-list:hover  { background: #1BA8DC; color: #fff; }
.btn-list:active { background: #1E5698; border-color: #1E5698; color: #fff; }

.btn-refer {
  font-size: 18px;
  width: 150px;
  height: 40px;
  margin-left: auto;
}

/* ===== 반응형 ===== */
/* Desktop v2: 1024px~1439px */
@media (min-width: 1440px) {
  .school-form-wrap { width: 486px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .container { max-width : 1024px; }
  .mvisual { max-width: 1024px; }
  .mvisual-image { height: 478px; background-image: url("../../../../images/s10/hsa/user/mvisual-1024.png"); }
  .mvisual-text { top: auto; bottom: 143px; }
  .logo { width: 213px; }
  .mvisual-title-sub  { font-size: 44px; }
  .mvisual-title-main { font-size: 44px; }
  .quick-menu { bottom: 16px; left: 62px; right: 62px; padding:0; }
  .quick-list { gap: 20px; }
  .quick-item {  height: 100px; }
  .quick-link { font-size: 20px; font-weight: 600; color: #434342; }
  .ic-m01 { width: 44px; height: 37px; }
  .ic-m02 { width: 32px; height: 28px; }
  .ic-m03 { width: 33px; height: 30px; }
  .ic-m04 { width: 34px; height: 48px; }
  .school-search-inner { gap: 39px; padding-left:0;padding-right:0; }
  .school-search-left { flex: 0 0 183px; width: 183px; }
  .school-image { flex: 0 0 276px; width: 276px; height: 178px; }
  .school-search-title { font-size: 40px; font-weight: 700; }
  .school-form-wrap   { width: 387px; }
  .select-school-type { width:100%; height: 50px; font-size: 18px; }
  .btn-type { width:100%; font-size: 18px; height: 50px; }
  .input-school-name { font-size: 18px; height: 50px; }
  .btn-school-search { height: 50px; }
}

/* Tablet: 500px~1023px */
@media (max-width: 1023px) {
  main {
    background: linear-gradient(to bottom, #FFFFFF, #C6E3F9, #C6E3F9, #FFFFFF, #FFFFFF);
    background-size: 100% 1000px;
    background-repeat: no-repeat;
  }
  /* 비주얼: 이미지 아래에 텍스트를 별도 영역으로 분리 */
  .mvisual {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .mvisual-image {
    width:100%;
    height: 222px;
    order: 1;
    position: static;
    background-image: url("../../../../images/s10/hsa/user/mvisual-500.png");
  }

  .mvisual-text {
    position: static;
    transform: none;
    order: 2;
    text-align: center;
    padding: 34px 16px 32px;
    pointer-events: auto;
    width: 100%;
  }

  .mvisual-title { align-items: center; }
  .mvisual-title-sub  { font-size: 42px; font-weight: 700; white-space: nowrap; }
  .mvisual-title-main { font-size: 42px; font-weight: 700; white-space: nowrap; }

  /* 퀵메뉴: 이미지(1) → 텍스트(2) → 퀵메뉴(3) 순서 / 그리드 2열 */
  .quick-menu {
    order: 3;
    position: static;
    padding: 0;
  }
  .quick-list {
    display: grid;
    gap: 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .quick-item {
    height: 100px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: none;
  }
  
  .quick-link {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
    gap: 12px;
  }

  .school-search { padding: 60px 0 ; margin: 0 ;  max-width: 460px; }
  .school-search-inner { flex-direction: column; align-items: stretch; gap: 27px; padding-left: 0; }

  /* 타이틀: 가운데 정렬 + 폭 해제 */
  .school-search-left {
    flex: none;
    width: 100%;
    text-align: center;
  }
  .title-navy { display: inline; } /* 태블릿에선 한 줄로 표시 */

  .school-search-title { font-size: 42px; font-weight: 700; }
  .school-image {
    max-width: 460px;
    width: 100%;
    max-height: 236px;
    padding-bottom: 0;
    background-image: url("../../../../images/s10/hsa/user/mbanner-500.png") ;
  }
  .school-form-wrap { margin-top:10px; max-width: 460px; }
  .school-form { gap: 25px; }
  .select-school-type, .btn-type, .input-school-name, .btn-school-search { height: 50px; }
  .ic-m01 { width: 44px; height: 37px; }
  .ic-m02 { width: 32px; height: 28px; }
  .ic-m03 { width: 33px; height: 30px; }
  .ic-m04 { width: 34px; height: 48px; }
}
@media (min-width: 500px) and (max-width: 1023px) {
  .quick-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile: ~500px */
@media (max-width: 499px) {
  main {
    background: linear-gradient(to bottom, #FFFFFF, #C6E3F9, #C6E3F9, #FFFFFF);
    background-size: 100% 880px;
    background-repeat: no-repeat;
  }
  .mvisual-image { width: 320px; height: 187px; background-image: url("../../../../images/s10/hsa/user/mvisual-360.png"); }
  .mvisual-title-sub  { font-size: 32px; }
  .mvisual-title-main { font-size: 32px; }
  .mvisual-text { bottom: 20px; }

  .quick-link { padding: 16px 14px; gap: 40px; font-weight:600; font-size: 20px; }
  .nav-panel { margin-left: 20px; }
  .nav-panel-item {font-size:20px;}
  .school-form { gap: 12px; }
  .school-form-wrap { max-width: 320px; display: flex; flex-direction: column; }
  .type-btn-group { display: flex; flex-direction: column; gap: 12px; }
  .type-btn-group .btn-type { flex: none; height: 50px; text-align:left;}
  .select-school-type, .btn-type, .input-school-name, .type-btn-group .btn-type { font-size: 16px; padding-left: 30px; font-weight: 600; }
  .btn-school-search {  width:50px; }
  .footer-logo {text-align:center;}
  .footer-logo img {width:201px; height:35px;}
  
  /* 260814 푸터 링크줄 - 1023px 이하 공통 규칙(layout.css)으로 일원화 */
  .footer-nav {
    justify-content: center;
    padding-bottom: 4px;
  }
}
