:root {
  --blue: #06449a;
  --blue-bright: #0967d8;
  --ink: #082f63;
  --line: rgba(255, 255, 255, 0.42);
  --glass: rgba(5, 31, 59, 0.76);
  --glass-soft: rgba(12, 46, 78, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body.home-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
  background: #b9d4e7 url("/images/dk-home-background.png") center center / cover no-repeat fixed;
}

.home-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(235, 246, 255, 0.58) 0%, rgba(220, 236, 247, 0.15) 44%, rgba(4, 18, 31, 0.34) 100%),
    rgba(5, 24, 43, 0.08);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-header {
  width: min(100% - 48px, 1440px);
  height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-logo {
  display: block;
  width: min(310px, 28vw);
}

.home-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 68px);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.home-nav a {
  position: relative;
  padding: 12px 0;
}

.home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.home-nav a:hover::after,
.home-nav a:focus-visible::after {
  transform: scaleX(1);
}

.home-main {
  width: min(100% - 48px, 1060px);
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: clamp(34px, 6vh, 68px) 0 64px;
}

.home-shell {
  padding: 42px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(211, 229, 243, 0.13);
  box-shadow: 0 18px 46px rgba(0, 17, 36, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-intro {
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 18, 38, 0.7);
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  font-weight: 800;
}

.home-intro p {
  margin: 12px 0 32px;
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 500;
}

.home-intro p span {
  white-space: nowrap;
}

.home-console {
  display: grid;
  grid-template-columns: 1fr 1.08fr 0.92fr;
  gap: 16px;
  min-height: 334px;
}

.account-panel,
.notice-panel,
.quick-panel {
  min-width: 0;
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 35, 63, 0.68);
  box-shadow: 0 10px 24px rgba(0, 14, 31, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.account-panel {
  display: flex;
  align-items: center;
}

.home-login {
  width: 100%;
  display: grid;
  gap: 14px;
}

.home-login input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 6px;
  outline: none;
  color: #17283a;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.home-login input:focus {
  border-color: #74b6ff;
  box-shadow: 0 0 0 3px rgba(72, 155, 245, 0.26);
}

.home-login button,
.account-actions a {
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #0a6ddb, #034ba9);
  box-shadow: 0 8px 18px rgba(0, 34, 81, 0.3);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.home-login button:hover,
.home-login button:focus-visible,
.account-actions a:hover,
.account-actions a:focus-visible {
  background: #075bbd;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-heading h2 {
  margin: 0;
  font-size: 24px;
}

.panel-heading a {
  padding: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.notice-list {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.notice-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 5px 2px;
  border: 0;
  color: #fff;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.notice-item time {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(36, 106, 181, 0.82);
  font-size: 12px;
}

.notice-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.notice-item:hover span,
.notice-item:focus-visible span {
  text-decoration: underline;
}

.notice-empty {
  margin: 42px 0 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.quick-panel {
  display: grid;
  align-content: center;
  gap: 12px;
}

.quick-link {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  color: var(--blue);
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 14px rgba(0, 16, 35, 0.2);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateY(-2px);
  background: #fff;
}

.quick-arrow {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.quick-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: block;
}

.icon-user::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.icon-search::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 11px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.icon-document {
  width: 21px;
  height: 27px;
  margin-left: 3px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.icon-document::before,
.icon-document::after {
  content: "";
  position: absolute;
  right: 4px;
  left: 4px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.icon-document::before {
  top: 8px;
}

.icon-document::after {
  top: 18px;
  box-shadow: none;
}

.account-summary {
  width: 100%;
}

.account-greeting {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.4;
}

.account-greeting strong {
  color: #78bdff;
  font-size: 27px;
}

.account-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.account-status strong {
  color: #7bc0ff;
}

.education-status-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.education-status-detail small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.visit-counts,
.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.visit-counts a {
  display: flex;
  justify-content: space-between;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.account-actions a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.home-footer {
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

@media (max-width: 900px) {
  body.home-page {
    background-attachment: scroll;
  }

  .home-header {
    height: 88px;
  }

  .home-logo {
    width: 220px;
  }

  .home-nav {
    gap: 22px;
    font-size: 16px;
  }

  .home-main {
    padding-top: 42px;
  }

  .home-console {
    grid-template-columns: 1fr 1fr;
  }

  .notice-panel {
    border-right: 0;
  }

  .quick-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .home-header {
    width: calc(100% - 32px);
    height: auto;
    min-height: 78px;
    align-items: flex-start;
    padding: 14px 0;
  }

  .home-logo {
    width: 150px;
    margin-top: 4px;
  }

  .home-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 13px;
  }

  .home-nav a {
    padding: 7px 0;
  }

  .home-main {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 42px 0 70px;
  }

  .home-shell {
    padding: 32px 12px 12px;
  }

  .home-intro h1 {
    font-size: 38px;
  }

  .home-intro p {
    margin-bottom: 26px;
    font-size: 15px;
  }

  .home-console {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-panel,
  .notice-panel,
  .quick-panel {
    padding: 26px 22px;
  }

  .quick-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notice-panel {
    min-height: 290px;
  }

  .quick-link {
    min-height: 58px;
  }

  .home-footer {
    position: static;
    padding: 0 16px 18px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .home-header {
    display: block;
  }

  .home-logo {
    width: 160px;
  }

  .home-nav {
    margin-top: 10px;
    justify-content: space-between;
  }

  .home-intro h1 {
    font-size: 34px;
  }

  .notice-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
