
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3568d4;
  --primary-dark: #244a9c;
  --text: #17233c;
  --muted: #718096;
  --background: #f3f7ff;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.9);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #dceaff, transparent 35%),
    radial-gradient(circle at 90% 45%, #e6e0ff, transparent 30%),
    var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  width: min(1200px, calc(100% - 40px));
  margin: 20px auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(50, 80, 140, 0.08);
  position: sticky;
  top: 12px;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary);
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  font-size: 14px;
}

.logo small {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

/* 메뉴 */

.nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  color: #52617a;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

/* 로그인 및 햄버거 버튼 */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.login-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.login-button {
  flex-shrink: 0;
}

.login-button:hover {
  color: white;
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  color: var(--text);
  padding: 5px;
  line-height: 1;
}

/* 메인 화면 */

.hero {
  width: min(1200px, calc(100% - 40px));
  min-height: 390px;
  margin: 30px auto 75px;
  padding: 65px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(50, 80, 140, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 13px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  margin: 18px 0 25px;
  color: var(--muted);
}

.hero-decoration {
  width: 290px;
  height: 290px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.decoration-circle {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9fc4ff, #c9bbff);
  opacity: 0.6;
  filter: blur(2px);
}

.decoration-text {
  position: relative;
  color: white;
  font-size: 75px;
  font-weight: 900;
  letter-spacing: -5px;
  text-shadow: 0 5px 25px rgba(45, 90, 180, 0.2);
}

/* 섹션 */

.section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 85px;
  scroll-margin-top: 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading h2 {
  font-size: 29px;
  letter-spacing: -1px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 13px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.content-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 35px rgba(50, 80, 140, 0.06);
}

.info-card {
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover,
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(50, 80, 140, 0.12);
}

.card-icon {
  display: block;
  font-size: 30px;
  margin-bottom: 15px;
}

.info-card h3,
.content-card h3 {
  font-size: 19px;
  margin-bottom: 7px;
}

.info-card p,
.content-card p {
  font-size: 13px;
  color: var(--muted);
}

.coming-soon {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #eaf0ff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

/* 뉴스 및 영상 */

.content-card {
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-placeholder {
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c8dcff, #e3dcff);
  color: #5277bb;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
}

.content-body {
  padding: 22px;
}

.content-category {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* 동아리 */

.feature-panel {
  min-height: 190px;
  padding: 35px;
  border-radius: 24px;
  background: linear-gradient(115deg, #dceaff, #e8e3ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-panel h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.feature-panel p {
  color: #65748d;
  font-size: 13px;
}

.feature-symbol {
  color: rgba(53, 104, 212, 0.45);
  font-size: 45px;
  font-weight: 900;
}

/* 설정 */

.settings-section {
  margin-bottom: 80px;
}

/* 푸터 */

.footer {
  padding: 45px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid white;
}

.footer strong {
  font-size: 16px;
}

.footer p {
  margin: 7px 0;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer small {
  color: var(--muted);
  font-size: 11px;
}

/* 태블릿 및 모바일 */

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 12px 5px;
    border-top: 1px solid rgba(100, 130, 180, 0.12);
  }

  .three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 휴대폰 */

@media (max-width: 600px) {
  .header {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 12px 15px;
    gap: 10px;
  }

  .logo {
    gap: 8px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .logo strong {
    font-size: 13px;
  }

  .logo small {
    font-size: 11px;
  }

  .header-actions {
    gap: 8px;
  }

  .login-button {
    padding: 9px 13px;
    font-size: 12px;
    border-radius: 10px;
  }

  .menu-toggle {
    font-size: 25px;
    padding: 3px;
  }

  .hero {
    width: calc(100% - 24px);
    min-height: 350px;
    margin: 20px auto 55px;
    padding: 35px 25px;
  }

  .hero-decoration {
    position: absolute;
    right: -100px;
    bottom: -80px;
    opacity: 0.35;
  }

  .hero h1 {
    font-size: 39px;
  }

  .section {
    width: calc(100% - 30px);
    margin-bottom: 60px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .three-columns,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 23px;
  }

  .feature-panel {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .feature-symbol {
    font-size: 35px;
  }
}

/* 급식 카드 레이아웃 */

#school .school-life-card-grid > .meal-card {
  grid-column: auto !important;
  min-width: 0;
}
