/* shared layout: header, footer, nav, utility, cards, cta, toast */

@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cafe24Gowoonbam';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.1/Cafe24Oneprettynight.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fafaf8;
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  position: relative;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: inline-block;
  font-family: 'Cafe24Gowoonbam', 'GMarketSans', sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.header-subline-wrap {
  border-top: 1px solid #245840;
  background: #2d6a4f;
}

.header-subline {
  margin: 0;
  padding: 10px 0;
  font-size: 12px;
  color: #ffffff;
  text-align: center;
}

.apply-reviews-head .about-section-title {
    margin: 0 0 6px;
    color: #fff;
  }

.apply-reviews-head .about-section-subtitle {
    margin: 0;
    color: #aaa;
  }

.apply-reviews-actions .review-view-all {
    color: #fff;
  }

.apply-reviews-actions .review-view-all:hover {
    color: #d9e8ff;
  }

.apply-reviews-track .review-card {
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
  }

.apply-qna-head .about-section-title {
    margin-top: 8px;
  }

.faculty-eyebrow + .faculty-copy-title,
.about-greeting-title-small + .about-greeting-title {
  margin-top: 18px;
}

.faculty-copy-title + p,
.about-section-title + .about-section-subtitle,
.about-greeting-title + .about-greeting-text {
  margin-top: 18px;
}

.faculty-card {
  width: min(100%, 208px);
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: none;
}

.faculty-card-featured {
  box-shadow: none;
}

.faculty-portrait {
  position: relative;
  width: min(100%, 208px);
  padding-bottom: 22px;
}

.faculty-photo,
.faculty-mark {
  width: 100%;
  height: 192px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf2ef 0%, #dfe8e2 100%);
  border: 1px solid #c8d4ce;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
}

.faculty-photo-primary {
  background: linear-gradient(180deg, #edf4f0 0%, #dfe8e3 100%);
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.faculty-photo-primary img {
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.92) brightness(1.01) contrast(0.98);
}

.faculty-photo-highlight {
  width: 100%;
  height: 192px;
}

.faculty-photo-enhance {
  height: 192px;
}

.faculty-photo-enhance img {
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.14);
  transform-origin: center 30%;
}

.faculty-photo-highlight img {
  object-fit: cover;
  object-position: center 16%;
  transform: scale(1.04);
}

.faculty-mark {
  padding: 24px;
}

.faculty-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0) brightness(1.02) opacity(0.9);
}

.faculty-badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  min-width: 0;
  max-width: none;
  padding: 12px 16px 11px;
  border-radius: 20px;
  background: #1f9a4c;
  color: #ffffff;
  box-shadow: 0 10px 16px rgba(31, 154, 76, 0.24);
}

.faculty-badge strong {
  display: block;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.12;
  letter-spacing: -0.6px;
  word-break: keep-all;
  white-space: nowrap;
}

.kpis {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.kpi {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 9px;
}

.kpi strong {
  color: var(--brand);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--brand);
  color: var(--brand);
}

.price {
  font-weight: 900;
  color: var(--ok);
}

.reviews-grid .review-card-text,
.apply-reviews-track .review-card-text,
.section#reviews .review-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-grid .review-card-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.reviews-hero-badges .apply-banner-badge {
  background: #33354f;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-grid .card {
  padding: 20px;
}

.form-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.input,
.select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  background: #fff;
}

.site-footer {
  margin-top: 0;
  padding: 52px 0 44px;
  border-top: 0;
  color: #d4dbe6;
  background: linear-gradient(180deg, #0d1b2a 0%, #0a1624 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(420px, 560px);
  justify-content: space-between;
  gap: 22px 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  width: 160px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #cdd6e2;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf2fa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.footer-pill:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-pill-admin {
  border-color: #ffffff;
  background: #ffffff;
  color: #0f1d30;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-line {
  margin: 0;
  display: grid;
  gap: 3px;
  font-size: 15px;
  line-height: 1.45;
  color: #d4dbe6;
}

.footer-line-wide {
  grid-column: 1 / -1;
}

.footer-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7f94ab;
}

.footer-line a {
  color: #eef4fb;
  text-decoration: none;
}

.footer-line a:hover {
  color: #ffffff;
}

.footer-line em {
  font-style: italic;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #90a0b6;
}

.cta-strip {
  margin-top: 18px;
  background:
    radial-gradient(circle at left center, rgba(22, 144, 79, 0.12) 0, rgba(22, 144, 79, 0) 34%),
    linear-gradient(180deg, #eef9f2 0%, #f8fcf8 100%);
  color: #12351f;
  padding: 28px 0;
  border-top: 1px solid rgba(22, 144, 79, 0.14);
  border-bottom: 1px solid rgba(22, 144, 79, 0.14);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  color: #12351f;
}

.cta-copy h2 span {
  color: #16904f;
  font-weight: 900;
}

.cta-copy p {
  margin: 0;
  color: #385845;
  font-size: 15px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-strip .btn-accent {
  background: linear-gradient(180deg, #28b15f 0%, #16904f 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(14, 109, 58, 0.22);
}

.cta-strip .btn-accent:hover {
  background: linear-gradient(180deg, #32c86c 0%, #1a9a58 100%);
}

.cta-strip .btn-ghost {
  border-color: rgba(22, 144, 79, 0.28);
  color: #16904f;
  background: rgba(22, 144, 79, 0.06);
}

.cta-strip .btn-ghost:hover {
  background: rgba(22, 144, 79, 0.11);
}

.news-strip {
  padding: 42px 0 0;
  background:
    radial-gradient(circle at top left, rgba(209, 235, 255, 0.85) 0, rgba(209, 235, 255, 0) 38%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.news-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(32, 88, 198, 0.08);
  color: #1e5ac6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.news-title {
  margin-bottom: 0;
}

.news-subtitle {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #617487;
}

.news-grid {
  gap: 18px;
}

.news-card {
  padding: 22px 22px 24px;
  border: 1px solid rgba(33, 78, 149, 0.08);
  box-shadow: 0 16px 32px rgba(35, 68, 115, 0.08);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #10387a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.news-date {
  font-size: 13px;
  font-weight: 700;
  color: #7d8da0;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.7px;
  color: #132238;
}

.news-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #4f6072;
}

@media (max-width: 700px) {

  .news-strip {
      padding-top: 42px;
    }
  .news-head {
      align-items: flex-start;
      flex-direction: column;
      margin-bottom: 20px;
    }
  .news-subtitle {
      max-width: none;
      font-size: 14px;
    }
  .news-card {
      padding: 20px 18px 22px;
    }
  .news-card h3 {
      font-size: 19px;
    }
  .footer-inner {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  .footer-info {
      padding-left: 0;
      border-left: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 16px;
    }
  .footer-meta-row {
      align-items: flex-start;
    }
  .footer-info-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  .footer-line {
      font-size: 14px;
    }
  .footer-pill {
      font-size: 12px;
      min-height: 32px;
      padding: 7px 12px;
    }
  .faculty-photo,
    .faculty-mark {
      height: 186px;
    }
  .faculty-badge {
      min-width: 320px;
      max-width: 320px;
      border-radius: 22px;
    }
  .cta-inner {
      flex-direction: column;
      align-items: flex-start;
    }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 980px) {

  .benefits-grid,
    .guide-grid {
      grid-template-columns: 1fr;
    }
  .site-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fff;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 8px 20px;
      z-index: 30;
      box-shadow: 0 12px 24px rgba(29, 42, 74, 0.08);
    }
  .site-nav.is-open {
      display: flex;
    }
  .site-nav a {
      padding: 14px 4px;
      border-bottom: 1px solid var(--line);
      font-size: 16px;
    }
  .site-nav a:last-child {
      border-bottom: 0;
    }
  .nav-toggle {
      display: inline-flex;
    }
  .header-subline {
      font-size: 11px;
      padding: 7px 0 8px;
      text-align: center;
    }
}

.faculty-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.faculty-modal[hidden] {
  display: none;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.transit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.transit-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.transit-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transit-text strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
}

.transit-text span {
  font-size: 13px;
  color: #999;
}

/* 모바일 반응형 */
@media (max-width: 980px) {

  .facilities-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
    }
}

@media (max-width: 700px) {

  .facilities-grid {
      grid-template-columns: 1fr;
    }
}

/* ========== MOBILE MAIN PAGE OPTIMIZATIONS ========== */
@media (max-width: 600px) {

  .container {
      padding-left: 16px;
      padding-right: 16px;
    }
  .brand-text {
      font-size: 16px;
    }
  .brand-logo {
      width: 38px;
      height: 38px;
    }
  .site-header .inner {
      height: 64px;
      gap: 10px;
    }
  .section,
    .faculty-strip,
    .news-strip {
      padding: 36px 0 !important;
    }
  .section-title,
    .faculty-copy-title {
      font-size: 22px !important;
    }
  .section-subtitle,
    .news-subtitle,
    .review-subtitle {
      font-size: 13px !important;
    }
  .cta-strip {
      padding: 32px 0 !important;
    }
  .cta-inner {
      flex-direction: column;
      align-items: stretch !important;
      gap: 16px;
      text-align: center;
    }
  .cta-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  .cta-actions .btn {
      width: 100%;
      min-height: 52px;
      font-size: 15px;
    }
  .cta-copy h2 {
      font-size: 20px !important;
    }
  .cta-copy p {
      font-size: 13px !important;
    }
}
