:root {
  --blue: #123f91;
  --blue-dark: #102d63;
  --blue-soft: #edf5ff;
  --text: #151922;
  --muted: #657084;
  --line: #e5e9f1;
  --paper: #ffffff;
  --soft-bg: #f7f9fc;
  --footer: #263242;
  --shadow: 0 18px 45px rgba(17, 31, 56, 0.08);
  --radius: 18px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "SUIT", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid #eef1f5;
  background: #fbfcfe;
  font-size: 12px;
  color: #4a5568;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.topbar__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: inline-block;
  position: relative;
}

.topbar__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--blue);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__links a {
  transition: color 0.2s ease;
}

.topbar__links a:hover {
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 35px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 176px;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.main-menu,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: block;
  padding: 30px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link,
.nav-link.is-active {
  color: var(--blue);
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.submenu {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  z-index: 30;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 112px;
  background: #2d61a8;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.submenu a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.submenu a:hover,
.submenu a:focus {
  background: rgba(255, 255, 255, 0.12);
}

.submenu--wide a {
  padding-inline: 14px;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-item:first-child .submenu {
  left: 0;
  transform: translate(0, 8px);
}

.nav-item:first-child:hover .submenu,
.nav-item:first-child:focus-within .submenu {
  transform: translate(0, 0);
}

.nav-item:nth-last-child(-n + 2) .submenu {
  right: 0;
  left: auto;
  transform: translate(0, 8px);
}

.nav-item:nth-last-child(-n + 2):hover .submenu,
.nav-item:nth-last-child(-n + 2):focus-within .submenu {
  transform: translate(0, 0);
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(235, 245, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0.46) 100%),
    #f2f7ff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(68%, 920px);
  background:
    linear-gradient(90deg, rgba(242, 247, 255, 1) 0%, rgba(242, 247, 255, 0.35) 28%, rgba(242, 247, 255, 0) 56%),
    url("images/sb1.png");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, cover;
  opacity: 0.96;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: 300px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
}

.hero__content {
  transform: translateX(50px);
}

.hero__center-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: -0.04em;
  pointer-events: none;
  text-shadow: 0 8px 24px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero__center-title span {
  display: inline-block;
  color: rgba(18, 63, 145, 0.72);
  animation: heroLetterWave 2.8s ease-in-out infinite;
}

.hero__center-title .space {
  margin-left: 0.35em;
}

.hero__center-title span:nth-child(1) {
  animation-delay: 0s;
}

.hero__center-title span:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__center-title span:nth-child(3) {
  animation-delay: 0.16s;
}

.hero__center-title span:nth-child(4) {
  animation-delay: 0.24s;
}

.hero__center-title span:nth-child(5) {
  animation-delay: 0.32s;
}

.hero__center-title span:nth-child(6) {
  animation-delay: 0.4s;
}

.hero__center-title span:nth-child(7) {
  animation-delay: 0.48s;
}

.hero__center-title span:nth-child(8) {
  animation-delay: 0.56s;
}

.hero__center-title span:nth-child(9) {
  animation-delay: 0.64s;
}

.hero__center-title span:nth-child(10) {
  animation-delay: 0.72s;
}

.hero__center-title span:nth-child(11) {
  animation-delay: 0.8s;
}

.hero__center-title--sub {
  opacity: 0.82;
}

@keyframes heroLetterWave {
  0%,
  100% {
    color: rgba(18, 63, 145, 0.66);
  }

  50% {
    color: #0b7fbd;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.hero h1 strong {
  color: var(--blue);
}

.hero__text {
  max-width: 520px;
  margin: 18px 0 0;
  color: #333d50;
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(18, 63, 145, 0.22);
}

.btn--outline {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
}

.btn--wide {
  min-width: 220px;
}

.hero__visual {
  display: none;
}

.strength-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -60px;
  padding: 30px 48px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.strength-card article {
  display: flex;
  align-items: center;
  gap: 18px;
}

.strength-card h2 {
  margin: 0 0 5px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.strength-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sprite-icon,
.course-icon {
  display: inline-block;
  flex: 0 0 auto;
  background-image: url("images/bgi.png");
  background-repeat: no-repeat;
  background-size: 1672px 941px;
}

.sprite-icon {
  width: 68px;
  height: 68px;
}

.icon-teacher {
  background-position: -574px -438px;
}

.icon-practice {
  background-position: -694px -438px;
}

.icon-certificate {
  background-position: -808px -438px;
}

.icon-care {
  background-position: -925px -438px;
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.course-card {
  min-height: 378px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98)),
    url("images/bgi.png");
  background-size: auto, 1672px 941px;
  background-position: center, -710px -70px;
  box-shadow: 0 12px 28px rgba(23, 37, 64, 0.035);
}

.tag {
  align-self: flex-start;
  min-width: 44px;
  padding: 5px 11px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tag--green {
  background: #24aa62;
}

.tag--blue {
  background: #2261c9;
}

.tag--purple {
  background: #7d6ae5;
}

.tag--orange {
  background: #ff972c;
}

.course-icon {
  width: 86px;
  height: 76px;
  margin: 10px 0 16px;
}

.course-icon--accounting2 {
  background-position: -1088px -442px;
}

.course-icon--accounting1 {
  background-position: -1244px -442px;
}

.course-icon--tax {
  background-position: -1405px -442px;
}

.course-icon--office {
  background-position: -1553px -442px;
}

.course-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.course-card p {
  margin: 0;
  color: #566173;
  font-size: 15px;
}

.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.chips span {
  padding: 6px 13px;
  border-radius: 999px;
  background: #f1f3f6;
  color: #5d6674;
  font-size: 13px;
  font-weight: 600;
}

.course-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
}

.course-card a::after {
  content: " >";
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.reason {
  padding: 48px 0;
}

.reason__box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.1fr 150px;
  gap: 24px;
  align-items: center;
  min-height: 145px;
  padding: 24px 42px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 50%, rgba(85, 145, 230, 0.24), transparent 22%),
    linear-gradient(90deg, #112d58 0%, #113466 55%, #17497f 100%);
}

.reason__box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 12px);
  background-size: 18px 18px;
  opacity: 1;
}

.reason__box > * {
  position: relative;
  z-index: 1;
}

.reason__title span {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reason h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.05em;
}

.reason h2 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  z-index: 0;
}

.reason h2 em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: 1px;
  height: 9px;
  border-radius: 999px;
  background: rgba(90, 170, 255, 0.42);
  transform: rotate(-1.5deg);
  z-index: -1;
}

.reason__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 18px 22px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reason__list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reason__list li::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-image: url("images/bgi.png");
  background-repeat: no-repeat;
  background-size: 1672px 941px;
  background-position: -30px -628px;
  flex: 0 0 auto;
}

.reason__badge {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 34px rgba(2, 13, 35, 0.16);
}

.reason__badge span {
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.reason__badge strong {
  display: block;
  margin-top: -26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.info-section {
  padding-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 54px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.panel-head a {
  color: #747f90;
  font-size: 13px;
}

.notice-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  color: #3f4858;
}

.notice-list a {
  position: relative;
  padding-left: 14px;
}

.notice-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3f4858;
}

.notice-list time {
  color: #8791a1;
  font-size: 13px;
}

.map-preview {
  height: 118px;
  border-radius: 6px;
  background-image: url("images/ya.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid #e8ebef;
}

.address {
  margin: 20px 0 10px;
  color: #3f4858;
  font-weight: 600;
}

.transport {
  margin: 0;
  color: #4d5868;
}

.hidden-anchor {
  height: 0;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(237, 245, 255, 0.96), rgba(255, 255, 255, 0.72)),
    #f3f7fd;
  border-bottom: 1px solid var(--line);
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 620px);
  background:
    linear-gradient(90deg, rgba(243, 247, 253, 1), rgba(243, 247, 253, 0.2)),
    url("images/sb1.png");
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
  background-position: center, right center;
  opacity: 0.24;
}

.sub-hero__inner {
  position: relative;
  z-index: 1;
  padding: 24px 0 16px;
  transform: translateX(50px);
}

.sub-hero p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sub-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  color: #7a8494;
  font-size: 13px;
}

.breadcrumb span::before,
.breadcrumb strong::before {
  content: "/";
  margin-right: 9px;
  color: #b4bdca;
}

.breadcrumb strong {
  color: var(--blue);
}

.sub-section {
  padding: 34px 0 90px;
}

.greeting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.greeting-card,
.aside-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 31, 56, 0.04);
}

.greeting-card {
  padding: 48px 54px;
}

.greeting-title {
  padding-bottom: 28px;
  border-bottom: 1px solid #edf1f6;
}

.greeting-title span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.greeting-title h2 {
  max-width: 760px;
  margin: 0;
  font-size: 30px;
  line-height: 1.38;
  letter-spacing: -0.05em;
}

.greeting-copy {
  display: grid;
  gap: 18px;
  padding-top: 30px;
  color: #445064;
  font-size: 16px;
}

.greeting-copy p {
  margin: 0;
}

.signature {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 34px;
  color: #5d6674;
}

.signature strong {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0.12em;
}

.sub-aside {
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 24px;
}

.aside-card--blue {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-color: transparent;
}

.aside-card--blue span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.aside-card--blue strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.2;
}

.aside-card--blue p,
.aside-card p {
  margin: 12px 0 0;
}

.aside-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.subpage-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.side-menu {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 31, 56, 0.04);
}

.side-menu h2 {
  margin: 0;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  font-size: 22px;
  letter-spacing: -0.04em;
}

.side-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid #eef1f5;
  color: #3f4858;
  font-weight: 600;
}

.side-menu li:last-child a {
  border-bottom: 0;
}

.side-menu a::after {
  content: ">";
  color: #b5bdca;
  font-size: 12px;
}

.side-menu a:hover,
.side-menu a.active {
  color: var(--blue);
  background: #e8f0ff;
  font-weight: 700;
}

.sub-content {
  min-height: 560px;
  padding: 8px 0 0;
}

.welcome-heading {
  padding-bottom: 24px;
  border-bottom: 2px solid #eef2f7;
}

.welcome-heading span {
  display: block;
  margin-bottom: 6px;
  color: #a67929;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.welcome-heading h2 {
  margin: 0;
  color: #20b1b2;
  font-size: 43px;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.welcome-heading p {
  margin: 18px 0 0;
  color: #606a7b;
  font-size: 17px;
  font-weight: 600;
}

.welcome-body {
  display: grid;
  gap: 18px;
  padding: 28px 0 18px;
  color: #555f70;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.78;
}

.welcome-body p {
  margin: 0;
}

.director-sign {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: end;
  align-items: end;
  gap: 0;
  margin-top: 18px;
}

.director-sign p {
  grid-column: 1 / 2;
  margin: 0 18px 10px 0;
  text-align: right;
  color: #4f5969;
  font-size: 17px;
  font-weight: 700;
}

.director-sign strong {
  margin-left: 10px;
  color: #8b5b24;
  font-size: 21px;
  letter-spacing: 0.08em;
}

.director-photo {
  width: 112px;
  height: 150px;
  padding: 6px;
  border: 1px solid #b9c1cd;
  background: #fff;
}

.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 116px;
  margin-left: -1px;
  margin-bottom: 12px;
  padding-left: 16px;
  color: #fff;
  background: #22b8bd;
  font-size: 19px;
  font-weight: 800;
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%, 18% 50%);
}

.history-head {
  position: relative;
  margin-bottom: 32px;
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 24%, rgba(32, 177, 178, 0.18), transparent 28%),
    linear-gradient(135deg, #f3f8ff, #ffffff);
  border: 1px solid #dfe8f5;
}

.history-head::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 18px solid rgba(18, 63, 145, 0.07);
}

.history-head span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-head h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #162033;
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: -0.055em;
}

.history-head p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 12px 0 0;
  color: #667084;
  font-size: 15px;
}

.history-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 154px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(32, 177, 178, 0.2));
}

.history-year {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding: 22px 26px;
  border: 1px solid #e5ebf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 31, 56, 0.035);
}

.history-year::before {
  content: "";
  position: absolute;
  left: 146px;
  top: 31px;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 63, 145, 0.18);
}

.history-year h3 {
  margin: 0;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.history-year ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-year li {
  position: relative;
  padding-left: 14px;
  color: #485468;
  font-size: 15px;
  line-height: 1.6;
}

.history-year li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #20b1b2;
}

.profile-content {
  display: grid;
  gap: 24px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid #dfe8f5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(32, 177, 178, 0.16), transparent 28%),
    linear-gradient(135deg, #f6fbff, #fff);
  box-shadow: 0 14px 32px rgba(17, 31, 56, 0.045);
}

.profile-photo {
  width: 132px;
  height: 168px;
  padding: 8px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #d7e0ec;
  box-shadow: 0 12px 24px rgba(17, 31, 56, 0.08);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.profile-hero-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-hero-card h2 {
  margin: 0;
  color: #162033;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.profile-hero-card p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #5d6674;
  font-size: 15px;
}

.profile-section {
  padding: 28px 30px;
  border: 1px solid #e5ebf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 31, 56, 0.03);
}

.profile-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 22px;
  letter-spacing: -0.045em;
}

.profile-section h3::before {
  content: "";
  width: 9px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), #20b1b2);
}

.career-block + .career-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed #dbe3ef;
}

.career-block h4 {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
}

.profile-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.profile-list li {
  position: relative;
  padding-left: 15px;
  color: #485468;
  font-size: 14px;
  line-height: 1.65;
}

.profile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #20b1b2;
}

.dream-content {
  display: grid;
  gap: 24px;
}

.dream-head {
  position: relative;
  overflow: hidden;
  padding: 20px 30px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: 0 18px 36px rgba(17, 31, 56, 0.08);
}

.dream-head::after {
  content: "Award";
  position: absolute;
  right: 34px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.dream-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dream-head h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.dream-head p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.dream-timeline {
  display: grid;
  gap: 20px;
}

.dream-year {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid #e2e9f4;
  border-radius: 20px;
  background:
    linear-gradient(90deg, #f5f9ff 0 118px, #fff 118px);
  box-shadow: 0 12px 28px rgba(17, 31, 56, 0.035);
}

.dream-year h3 {
  position: sticky;
  top: 120px;
  margin: 0;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dream-events {
  display: grid;
  gap: 14px;
}

.dream-event {
  padding: 20px 22px;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  background: #fff;
}

.dream-event h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #172033;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.dream-event h4::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 34%, transparent 36%),
    linear-gradient(135deg, #20b1b2, var(--blue));
}

.dream-event ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dream-event li {
  position: relative;
  padding-left: 14px;
  color: #4c586b;
  font-size: 14px;
  line-height: 1.62;
}

.dream-event li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #20b1b2;
}

.location-content {
  display: grid;
  gap: 24px;
}

.location-head {
  position: relative;
  overflow: hidden;
  padding: 20px 30px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #102b56, #1d5aa7);
  box-shadow: 0 18px 36px rgba(17, 31, 56, 0.08);
}

.location-head::after {
  content: "Map";
  position: absolute;
  right: 34px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.13);
  font-size: 66px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.location-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-head h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.location-head p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.location-map {
  overflow: hidden;
  border: 1px solid #e2e9f4;
  border-radius: 22px;
  background: #f5f8fc;
  box-shadow: 0 16px 34px rgba(17, 31, 56, 0.06);
}

.location-map img {
  display: block;
  width: 100%;
  height: auto;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.location-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 24px 26px;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(32, 177, 178, 0.08), transparent 42%),
    #fff;
  box-shadow: 0 12px 28px rgba(17, 31, 56, 0.035);
}

.location-card--wide {
  grid-column: span 2;
}

.location-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(29, 90, 167, 0.08);
}

.location-card span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.location-card h3 {
  margin: 14px 0 8px;
  color: #172033;
  font-size: 18px;
  letter-spacing: -0.045em;
}

.location-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #4c586b;
  font-size: 15px;
  line-height: 1.68;
}

.exam-content {
  display: grid;
  gap: 24px;
}

.exam-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  padding: 20px 30px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #102b56, #17499c 58%, #20b1b2);
  box-shadow: 0 18px 36px rgba(17, 31, 56, 0.08);
}

.exam-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exam-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.exam-head p {
  max-width: 650px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.exam-head__badge {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  backdrop-filter: blur(10px);
}

.exam-schedule-card {
  padding: 26px;
  border: 1px solid #e2e9f4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 31, 56, 0.06);
}

.exam-schedule-card__title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.exam-schedule-card__title span {
  display: inline-block;
  margin-bottom: 6px;
  color: #20a5a8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exam-schedule-card__title h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.exam-schedule-card__title p {
  margin: 0 0 3px;
  color: #657084;
  font-size: 13px;
  white-space: nowrap;
}

.exam-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #d9e2ee;
  border-radius: 18px;
  background: #fff;
}

.exam-table-wrap:first-of-type {
  margin-top: 0;
}

.exam-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  color: #4a5568;
  font-size: 14px;
  text-align: center;
}

.exam-table caption {
  padding: 16px 20px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: left;
}

.exam-table th,
.exam-table td {
  padding: 12px 14px;
  border-right: 1px solid #d9e2ee;
  border-bottom: 1px solid #d9e2ee;
  vertical-align: middle;
}

.exam-table thead th {
  color: #263242;
  background: #f2f6fb;
  font-size: 14px;
  font-weight: 900;
}

.exam-table thead th:nth-child(5) {
  color: #d71515;
}

.exam-table tr:last-child td,
.exam-table tr:last-child th {
  border-bottom: 0;
}

.exam-table th:last-child,
.exam-table td:last-child {
  border-right: 0;
}

.exam-name {
  color: var(--blue);
  background:
    linear-gradient(180deg, #f7fbff, #eef5ff);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.exam-agency {
  color: #526073;
  background: #fbfcfe;
  font-weight: 700;
  line-height: 1.5;
}

.exam-date {
  color: #d71515;
  font-weight: 900;
}

.computer-schedule-card {
  background:
    radial-gradient(circle at 94% 8%, rgba(32, 177, 178, 0.08), transparent 28%),
    #fff;
}

.computer-schedule-title {
  margin: 0 0 18px;
  color: #d71515;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
}

.computer-table {
  min-width: 980px;
}

.computer-table caption {
  display: none;
}

.computer-table thead th {
  color: #0a7f1e;
}

.computer-table thead th:first-child {
  color: #4a5568;
}

.computer-table th,
.computer-table td {
  padding: 14px 12px;
  font-size: 15px;
  line-height: 1.35;
}

.computer-row-head {
  color: #596273;
  background: #f0f3f7;
  font-size: 16px;
  font-weight: 900;
}

.result-date {
  color: #004dff;
  font-weight: 900;
}

.exam-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #dce7f6;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 63, 145, 0.07), rgba(32, 177, 178, 0.06));
}

.exam-note strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 54px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.exam-note p {
  margin: 0;
  color: #4c586b;
  font-size: 14px;
}

.board-content {
  display: grid;
  gap: 22px;
}

.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px 22px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #102b56, #17499c 60%, #20b1b2);
  box-shadow: 0 18px 36px rgba(17, 31, 56, 0.08);
}

.board-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.board-head p {
  max-width: 660px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.board-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 84px;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  color: #102b56;
  background: linear-gradient(135deg, #ffffff 0%, #d6eaff 100%);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 3px rgba(255,255,255,0.6) inset;
  transition: all .2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.board-write::before {
  content: "✏";
  font-size: 13px;
  line-height: 1;
}
.board-write::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.board-write:hover {
  background: linear-gradient(135deg, #ffffff 0%, #b8d9ff 100%);
  color: #0a1e3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,43,86,0.25), 0 1px 3px rgba(255,255,255,0.7) inset;
}
.board-write:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e2e9f4;
  border-radius: 18px;
  background: #f8fbff;
}

.board-toolbar p {
  margin: 0;
  color: #526073;
  font-size: 14px;
}

.board-toolbar strong {
  color: var(--blue);
}

.board-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-search select,
.board-search input {
  height: 38px;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  color: #3f4858;
  background: #fff;
  font: inherit;
}

.board-search select {
  min-width: 88px;
  padding: 0 28px 0 12px;
}

.board-search input {
  width: 220px;
  padding: 0 12px;
}

.board-search button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.board-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 31, 56, 0.05);
}

.board-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  color: #526073;
  font-size: 14px;
  text-align: center;
}

.board-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.board-table th,
.board-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #e8edf5;
  vertical-align: middle;
}

.board-table thead th {
  color: #263242;
  background: #f2f6fb;
  font-weight: 900;
}

.board-table tbody tr:last-child td {
  border-bottom: 0;
}

.board-table tbody tr:hover {
  background: #fbfdff;
}

.notice-row {
  background: #f8fbff;
}

.board-title {
  text-align: left;
}

.board-title a {
  color: #202838;
  font-weight: 800;
}

.board-title a:hover {
  color: var(--blue);
}

.board-chip,
.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.board-chip {
  color: var(--blue);
  background: #eef5ff;
}

.file-badge {
  color: #167a7c;
  background: #e9f8f8;
}

.board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.board-pagination a,
.board-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  color: #526073;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.board-pagination strong {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.info-content {
  display: grid;
  gap: 24px;
}

.info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  padding: 20px 30px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #102b56, #17499c 60%, #20b1b2);
  box-shadow: 0 18px 36px rgba(17, 31, 56, 0.08);
}

.info-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.info-head p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.info-head__mark {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  backdrop-filter: blur(10px);
}

.exam-info-section {
  padding: 28px;
  border: 1px solid #e2e9f4;
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 8%, rgba(32, 177, 178, 0.08), transparent 26%),
    #fff;
  box-shadow: 0 16px 34px rgba(17, 31, 56, 0.05);
}

.exam-info-section__title {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f7;
}

.exam-info-section__title span {
  display: inline-block;
  margin-bottom: 6px;
  color: #20a5a8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exam-info-section__title h3 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-button-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid #dce7f6;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 63, 145, 0.07), rgba(32, 177, 178, 0.06)),
    #fff;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-button-card::after {
  content: ">";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.site-button-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 63, 145, 0.34);
  box-shadow: 0 16px 30px rgba(17, 31, 56, 0.08);
}

.site-button-card span {
  color: #202838;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-button-card strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.gallery-content {
  display: grid;
  gap: 22px;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #102b56, #17499c 60%, #20b1b2);
  box-shadow: 0 18px 36px rgba(17, 31, 56, 0.08);
}

.gallery-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.gallery-head p {
  max-width: 660px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e2e9f4;
  border-radius: 18px;
  background: #f8fbff;
}

.gallery-toolbar p {
  margin: 0;
  color: #526073;
  font-size: 14px;
}

.gallery-toolbar strong {
  color: var(--blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 31, 56, 0.05);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 63, 145, 0.3);
  box-shadow: 0 18px 34px rgba(17, 31, 56, 0.1);
}

.gallery-card--featured {
  grid-column: span 2;
}

.gallery-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 63, 145, 0.13), rgba(32, 177, 178, 0.12)),
    #f3f7fc;
}

.gallery-thumb::after {
  content: "PHOTO";
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 63, 145, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb--class img {
  opacity: 0.8;
}

.gallery-thumb--pattern {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.85) 0 9%, transparent 10%),
    radial-gradient(circle at 74% 70%, rgba(32, 177, 178, 0.28) 0 15%, transparent 16%),
    linear-gradient(135deg, #edf5ff, #dcecff 48%, #fff);
}

.gallery-thumb--computer {
  background:
    linear-gradient(135deg, rgba(16, 43, 86, 0.86), rgba(18, 63, 145, 0.72)),
    url("images/bgi.png");
  background-size: auto, 980px 552px;
  background-position: center, -260px -120px;
}

.gallery-thumb--computer::before {
  content: "";
  width: 82px;
  height: 58px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 0 -12px rgba(255, 255, 255, 0.9);
}

.gallery-thumb--contest {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.78), transparent 15%),
    linear-gradient(135deg, #102b56, #1d5aa7 52%, #20b1b2);
}

.gallery-thumb--contest::before {
  content: "";
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 28%, transparent 30%),
    conic-gradient(from 45deg, #ffd36a, #fff0b2, #c8922b, #ffd36a);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.12);
}

.gallery-thumb--certificate,
.gallery-thumb--award {
  background:
    linear-gradient(135deg, #f8fbff, #eaf2ff);
}

.gallery-thumb--certificate::before,
.gallery-thumb--award::before {
  content: "";
  width: 44%;
  height: 64%;
  border: 8px solid #fff;
  border-radius: 10px;
  background:
    linear-gradient(#d9e5f5 0 10%, transparent 10% 18%, #d9e5f5 18% 23%, transparent 23% 34%, #d9e5f5 34% 39%, transparent 39%),
    #fff;
  box-shadow: 0 18px 34px rgba(17, 31, 56, 0.16);
}

.gallery-thumb--award {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 211, 106, 0.35), transparent 18%),
    linear-gradient(135deg, #102b56, #1d5aa7);
}

.gallery-info {
  padding: 18px 18px 20px;
}

.gallery-info span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 900;
}

.gallery-info h3 {
  margin: 12px 0 8px;
  color: #202838;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.gallery-info p {
  margin: 0;
  color: #697487;
  font-size: 13px;
}

.footer {
  color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(38, 50, 66, 0.96), rgba(38, 50, 66, 0.96)),
    url("images/bgi.png");
  background-size: auto, 1672px 941px;
  background-position: center, -1362px -70px;
}

.footer__contact {
  text-align: right;
  flex: 0 0 auto;
}

.footer__contact span {
  display: block;
  font-size: 13px;
}

.footer__contact strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
}

.footer__copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px 0;
  font-size: 13px;
}

.footer__info p {
  margin: 0 0 6px;
}

.footer__info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .header__inner {
    gap: 18px;
  }

  .hero__content {
    transform: translateX(50px);
  }

  .hero__visual {
    margin-right: 0;
  }

  .main-nav {
    font-size: 14px;
  }

  .main-menu {
    gap: 28px;
  }

  .strength-card,
  .course-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .header__inner {
    min-height: 72px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 35px rgba(17, 31, 56, 0.1);
  }

  .main-menu {
    display: grid;
    align-items: stretch;
    gap: 0;
    justify-content: stretch;
  }

  .nav-item {
    border-bottom: 1px solid #f0f2f5;
  }

  .nav-link {
    padding: 12px 4px 8px;
  }

  .nav-link::after {
    display: none;
  }

  .submenu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
    min-width: 0;
    padding: 0 0 12px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item:first-child .submenu,
  .nav-item:nth-last-child(-n + 2) .submenu {
    right: auto;
    left: auto;
    transform: none;
  }

  .submenu a {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2d61a8;
    font-size: 12px;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .sub-hero__inner {
    padding: 22px 0 18px;
    transform: translateX(50px);
  }

  .sub-hero::after {
    width: 100%;
    opacity: 0.12;
  }

  .greeting-layout {
    grid-template-columns: 1fr;
  }

  .greeting-card {
    padding: 34px 28px;
  }

  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .side-menu ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .side-menu a {
    border-right: 1px solid #eef1f5;
  }

  .hero::after {
    width: 100%;
    opacity: 0.16;
  }

  .hero__content {
    transform: none;
  }

  .sub-hero__inner {
    transform: none;
  }

  .hero__center-title {
    display: none;
  }

  .hero__visual {
    justify-self: stretch;
    margin-right: 0;
    width: 100%;
  }

  .strength-card {
    margin-top: -44px;
    padding: 26px;
  }

  .reason__box {
    grid-template-columns: 1fr;
  }

  .reason__box {
    padding: 26px 22px;
  }

  .reason__badge {
    justify-self: start;
    width: 86px;
    height: 86px;
  }

  .reason__badge span {
    font-size: 24px;
  }

  .reason__badge strong {
    margin-top: -22px;
    font-size: 11px;
  }

  .reason__box::after {
    width: 100%;
    opacity: 0.26;
  }

  .footer__copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer__contact {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .logo img {
    width: 150px;
    height: auto;
  }

  .hero h1 {
    font-size: 30px;
  }

  .sub-hero h1 {
    font-size: 30px;
  }

  .sub-section {
    padding: 28px 0 58px;
  }

  .greeting-title h2 {
    font-size: 23px;
  }

  .greeting-copy {
    font-size: 14px;
  }

  .welcome-heading span {
    font-size: 22px;
  }

  .welcome-heading h2 {
    font-size: 34px;
  }

  .welcome-heading p,
  .welcome-body,
  .director-sign p {
    font-size: 14px;
  }

  .history-head {
    padding: 28px 24px;
  }

  .history-head h2 {
    font-size: 24px;
  }

  .history-timeline::before {
    left: 28px;
  }

  .history-year {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 22px 22px 58px;
  }

  .history-year::before {
    left: 20px;
  }

  .history-year h3 {
    font-size: 24px;
  }

  .profile-hero-card,
  .profile-list--columns {
    grid-template-columns: 1fr;
  }

  .profile-section {
    padding: 24px 22px;
  }

  .dream-head {
    padding: 28px 24px;
  }

  .dream-head h2 {
    font-size: 24px;
  }

  .location-head {
    padding: 28px 24px;
  }

  .location-head h2 {
    font-size: 24px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-card--wide {
    grid-column: auto;
  }

  .exam-head {
    align-items: flex-start;
    padding: 28px 24px;
  }

  .exam-head h2 {
    font-size: 24px;
  }

  .exam-head__badge {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 19px;
  }

  .board-head {
    align-items: flex-start;
    padding: 28px 24px;
  }

  .board-head h2 {
    font-size: 24px;
  }

  .board-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-search {
    width: 100%;
  }

  .board-search input {
    flex: 1;
    width: auto;
  }

  .info-head {
    align-items: flex-start;
    padding: 28px 24px;
  }

  .info-head h2 {
    font-size: 24px;
  }

  .info-head__mark {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 17px;
  }

  .site-grid,
  .site-grid--compact {
    grid-template-columns: 1fr;
  }

  .gallery-head {
    align-items: flex-start;
    padding: 28px 24px;
  }

  .gallery-head h2 {
    font-size: 24px;
  }

  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card--featured {
    grid-column: span 1;
  }

  .exam-schedule-card {
    padding: 20px;
  }

  .exam-schedule-card__title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .exam-schedule-card__title p {
    white-space: normal;
  }

  .dream-year {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .dream-year h3 {
    position: static;
  }

  .director-sign {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }

  .director-sign p {
    text-align: left;
    margin: 0;
  }

  .exam-head {
    flex-direction: column;
  }

  .board-head {
    flex-direction: column;
  }

  .info-head {
    flex-direction: column;
  }

  .exam-info-section {
    padding: 22px;
  }

  .site-button-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-head {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .board-write {
    width: 100%;
  }

  .board-search {
    align-items: stretch;
    flex-direction: column;
  }

  .board-search select,
  .board-search input,
  .board-search button {
    width: 100%;
  }

  .board-table {
    min-width: 720px;
    font-size: 13px;
  }

  .board-table th,
  .board-table td {
    padding: 12px 10px;
  }

  .exam-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .exam-table {
    min-width: 720px;
    font-size: 13px;
  }

  .exam-table caption {
    font-size: 15px;
  }

  .exam-table th,
  .exam-table td {
    padding: 10px 11px;
  }

  .computer-schedule-title {
    font-size: 18px;
    text-align: left;
  }

  .computer-table {
    min-width: 860px;
  }

  .computer-table th,
  .computer-table td {
    font-size: 13px;
  }

  .director-badge {
    margin-left: 0;
  }

  .signature {
    justify-content: flex-start;
  }

  .eyebrow,
  .hero__text {
    font-size: 15px;
  }

  .hero__actions {
    display: grid;
  }

  .btn {
    min-height: 46px;
    padding: 0 20px;
  }

  .strength-card,
  .course-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .strength-card article {
    align-items: flex-start;
  }

  .section {
    padding: 66px 0;
  }

  .section-title h2,
  .reason h2 {
    font-size: 22px;
  }

  .course-card {
    min-height: auto;
  }

  .reason {
    padding: 38px 0;
  }

  .reason__list {
    font-size: 13px;
  }

  .notice-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer__contact strong {
    font-size: 24px;
  }

  .side-menu ul {
    grid-template-columns: 1fr;
  }

  .side-menu a {
    border-right: 0;
  }

  .welcome-heading h2 {
    font-size: 28px;
  }
}
