/* =========================================================================
   Shared chrome for the 한국미래대학교 decoy site — header/nav/hero/footer,
   notice board, sidebar boxes, login form, and modal styles. Every page
   under public/ links this file so the "university portal" look stays
   consistent without copy-pasting the whole block into each page.
========================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: #f4f6f9;
  color: #333333;
  font-family: 'Malgun Gothic', '맑은 고딕', helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  border-top: 5px solid #003366; /* Deep Navy school color */
  border-bottom: 1px solid #e1e4e8;
}
.header-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.school-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #003366;
}
.school-logo svg {
  fill: #003366;
}
.logo-text h1 {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.5px;
}
.logo-text p {
  font-size: 11px;
  color: #666666;
  text-transform: uppercase;
}
.top-links {
  font-size: 12px;
  color: #666666;
}
.top-links a {
  color: #666666;
  text-decoration: none;
  margin-left: 10px;
}
.top-links a:hover {
  text-decoration: underline;
}

nav {
  background-color: #003366;
  color: #ffffff;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  list-style: none;
}
.nav-container li {
  position: relative;
}
.nav-container a {
  display: block;
  padding: 14px 24px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.2s;
}
.nav-container a:hover {
  background-color: #002244;
}
.nav-container a.active {
  background-color: #002244;
  box-shadow: inset 0 -3px 0 #f59e0b;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #002244 0%, #004488 100%);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 4px solid #f59e0b; /* Accent Gold line */
}
.hero-container {
  max-width: 1100px;
  margin: 0 auto;
}
.hero-container h2 {
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-container p {
  font-size: 14px;
  color: #b0c4de;
}

/* Main Content Layout */
.main-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Single-column content page variant (no sidebar) */
.main-wrapper.single-col {
  grid-template-columns: 1fr;
  max-width: 800px;
}

/* Left Column: Board/Notice */
.content-box {
  background-color: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 25px;
}
.box-title {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 8px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.content-box + .content-box {
  margin-top: 20px;
}
.content-box p {
  margin-bottom: 12px;
  color: #444444;
}
.content-box h3 {
  font-size: 15px;
  color: #003366;
  margin: 18px 0 8px;
}
.content-box ul.plain-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
  color: #444444;
}
.content-box ul.plain-list li {
  margin-bottom: 4px;
}
.content-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0 16px;
}
.content-box table th, .content-box table td {
  border: 1px solid #e1e4e8;
  padding: 8px 10px;
  text-align: left;
}
.content-box table th {
  background-color: #f4f6f9;
  color: #003366;
}

.board-list {
  list-style: none;
}
.board-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5px;
  border-bottom: 1px dashed #e1e4e8;
}
.board-item:last-child {
  border-bottom: none;
}
.board-item a {
  color: #333333;
  text-decoration: none;
  font-size: 14px;
}
.board-item a:hover {
  color: #003366;
  text-decoration: underline;
}
.board-item .date {
  color: #888888;
  font-size: 12px;
  font-family: monospace;
}
.badge-notice {
  background-color: #e06666;
  color: #ffffff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  margin-right: 5px;
}

/* Right Column: Sidebar (Login & Quick links) */
.sidebar-box {
  background-color: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-title {
  font-size: 15px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 12px;
  border-left: 4px solid #003366;
  padding-left: 8px;
}

/* Login Form (Looks legacy, very tempting for scanners) */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-size: 13px;
}
.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
}
.login-form button:hover {
  background-color: #002244;
}
.login-form .form-note {
  font-size: 11px;
  color: #888888;
  margin-top: 8px;
  text-align: center;
}
.login-form-status {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  display: none;
}
.login-form-status.show {
  display: block;
}
.login-form-status.err {
  background-color: #fdecea;
  color: #b02a1e;
  border: 1px solid #f5c6c2;
}

/* Standalone full-page login variant (login.html / webmail.html) */
.login-page-wrapper {
  max-width: 380px;
  margin: 50px auto 60px;
  padding: 0 20px;
}
.login-page-wrapper .sidebar-box {
  margin-bottom: 0;
}
.login-page-back {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #888888;
  text-decoration: none;
}
.login-page-back:hover {
  text-decoration: underline;
}

/* Quick Links */
.quick-links {
  list-style: none;
}
.quick-links li {
  margin-bottom: 8px;
}
.quick-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.quick-links a:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
  color: #003366;
}
.quick-links svg {
  fill: #003366;
}

/* Footer */
footer {
  background-color: #2e353d;
  color: #a0aab5;
  padding: 30px 20px;
  border-top: 1px solid #1a1f24;
  font-size: 12px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
.footer-text p {
  margin-bottom: 5px;
}

/* Modal Overlay (Clean & Official Notice Box style) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  border-top: 6px solid #003366;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  position: relative;
  padding: 25px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888888;
}
.modal-close:hover {
  color: #333333;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 15px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 10px;
}
.modal-body {
  text-align: center;
}
.modal-body p {
  font-size: 13px;
  color: #555555;
  text-align: left;
  background-color: #f8f9fa;
  padding: 10px 12px;
  border-left: 3px solid #f59e0b;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}
.qr-container {
  background: #ffffff;
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.qr-container img {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: contain;
}
