* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fb;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #52607a;
  --line: #dbe4f0;
  --primary: #0f3d91;
  --primary-dark: #082a66;
  --secondary: #1d74d8;
  --accent: #17a2b8;
  --soft: #eef4fb;
  --shadow: 0 14px 32px rgba(15, 61, 145, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--secondary);
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(29, 116, 216, 0.12), transparent 24%),
    linear-gradient(135deg, #071f4c 0%, #0f3d91 55%, #1d74d8 100%);
  color: #fff;
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: #cfe6ff;
}

.hero-desc {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 22px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-card li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: var(--bg);
}

.section-contact {
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.section-head {
  margin-bottom: 34px;
}

.section-label {
  margin: 0 0 10px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

.section-desc {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
}

.about-grid,
.tech-grid,
.article-grid,
.education-grid,
.partner-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.tech-card,
.article-card,
.program-card,
.partner-card,
.stat-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 28px;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--primary);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.tech-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tech-card {
  position: relative;
  padding: 28px 28px 26px;
  overflow: hidden;
}

.tech-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.tech-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--primary-dark);
}

.tech-card p {
  margin: 0;
  color: var(--muted);
}

.article-grid {
  grid-template-columns: repeat(2, 1fr);
}

.article-card {
  padding: 26px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--primary-dark);
}

.article-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.article-card a {
  font-weight: 700;
  color: var(--secondary);
}

.education-grid {
  grid-template-columns: repeat(4, 1fr);
}

.program-card {
  padding: 24px;
}

.program-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: var(--primary);
}

.program-card p {
  margin: 0;
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 600;
}

.partner-grid {
  grid-template-columns: repeat(5, 1fr);
}

.partner-card {
  min-height: 88px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
}

.notice-board {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.notice-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item:hover {
  background: #f8fbff;
}

.notice-title {
  font-weight: 700;
  color: var(--text);
}

.notice-date {
  color: var(--muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  padding: 28px;
}

.contact-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card strong {
  display: inline-block;
  min-width: 82px;
  color: var(--primary-dark);
}

.site-footer {
  background: #08172f;
  color: rgba(255, 255, 255, 0.88);
  padding: 28px 0;
}

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

.footer-inner strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact-grid,
  .about-grid,
  .tech-grid,
  .article-grid,
  .education-grid,
  .partner-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    gap: 12px 16px;
  }

  .hero {
    padding: 70px 0 56px;
  }

  .hero-grid,
  .about-grid,
  .tech-grid,
  .article-grid,
  .education-grid,
  .partner-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .notice-item {
    grid-template-columns: 1fr;
  }
}

.sub-hero {
  background: linear-gradient(135deg, #edf4fb 0%, #dfeefc 100%);
  padding: 74px 0 54px;
  border-bottom: 1px solid var(--line);
}

.sub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.2;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.sub-hero-desc {
  max-width: 820px;
}

.article-grid-full {
  grid-template-columns: repeat(2, 1fr);
}

.featured-article {
  min-height: 100%;
}

.magazine-list {
  display: grid;
  gap: 18px;
}

.magazine-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.magazine-meta,
.notice-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.magazine-item h3,
.notice-page-item h3,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.42;
  color: var(--primary-dark);
}

.magazine-item p,
.notice-page-item p,
.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.magazine-item a {
  font-weight: 700;
  color: var(--secondary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.notice-page-list {
  display: grid;
  gap: 18px;
}

.notice-page-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

@media (max-width: 1080px) {
  .category-grid,
  .article-grid-full {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .category-grid,
  .article-grid-full {
    grid-template-columns: 1fr;
  }
}
