/* HOYO Solution Inc. - Official Responsive Stylesheet */
:root {
  --primary-color: #0c2340;
  --primary-light: #1d3557;
  --secondary-color: #0284c7;
  --accent-color: #059669;
  --accent-light: #ecfdf5;
  --ai-purple: #6366f1;
  --ai-purple-light: #eef2ff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 85px 0 95px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f5f3ff 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 860px;
}

.badge-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
}

.badge-green {
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-purple {
  background-color: var(--ai-purple-light);
  color: var(--ai-purple);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 34px;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-purple {
  background-color: var(--ai-purple);
  color: #ffffff;
}

.btn-purple:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
}

/* Sections */
.section {
  padding: 85px 0;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px;
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-purple {
  background-color: var(--ai-purple-light);
  color: var(--ai-purple);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--primary-color);
}

/* Architecture Highlight Box */
.arch-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

.arch-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.arch-header h3 {
  font-size: 1.55rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.arch-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.arch-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.flow-step {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  position: relative;
}

.flow-step h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.flow-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ai-purple);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Department Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.dept-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.dept-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dept-rag {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 600;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.spec-table th, .spec-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.spec-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: var(--primary-color);
  width: 25%;
}

.spec-table td {
  background-color: #ffffff;
  color: var(--text-main);
}

/* Notice Table */
.notice-table-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
}

.notice-table th,
.notice-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.notice-table th {
  background-color: var(--bg-alt);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.notice-table td {
  font-size: 0.95rem;
}

.notice-table tr:hover td {
  background-color: #f8fafc;
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  background-color: #e2e8f0;
  color: #475569;
}

/* Contact Banner */
.contact-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 55px 40px;
  text-align: center;
  margin-top: 50px;
}

.contact-banner h2 {
  font-size: 1.95rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.contact-banner p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #94a3b8;
  padding: 65px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 800;
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 440px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .arch-flow, .dept-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 8px 0;
  }
}

/* Brand Logo Styling */
.brand-logo img {
  height: 40px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Notice Table Interactive Row */
.notice-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.notice-table tbody tr:hover {
  background-color: #f1f5f9 !important;
}

.notice-table tbody tr:hover .notice-title-text {
  color: var(--secondary-color);
}

.view-btn-cell {
  text-align: right;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-color);
  background-color: #f0f7ff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.notice-table tbody tr:hover .btn-view {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background-color: #ffffff;
}

.modal-title-area {
  flex-grow: 1;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--bg-alt);
  color: var(--text-main);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 0.98rem;
}

.modal-content-text {
  margin-bottom: 24px;
}

.modal-content-text p {
  margin-bottom: 14px;
}

/* Attachment Box inside Modal */
.modal-attachment-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.attachment-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.attachment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.attachment-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  width: 38px;
  height: 38px;
  background-color: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.file-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.attachment-buttons {
  display: flex;
  gap: 10px;
}

.btn-preview {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-preview:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-download {
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-download:hover {
  background-color: #0369a1;
}

/* Document Preview Panel */
.preview-panel {
  display: none;
  margin-top: 18px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.preview-panel.open {
  display: block;
}

.preview-panel-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
}

.preview-sheet {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #f8fafc;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
