/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #040813;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

/* ===== Layout ===== */
.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ===== Hero / Header ===== */
.site-header {
  position: relative;
  height: 360px;
  overflow: hidden;
  color: #fff;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero-bg.jpg") center/cover no-repeat;
  filter: brightness(0.45);
}

.header-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* top bar */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-mark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* nav */
.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #f9fafb;
  opacity: 0.8;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.1s ease;
  backdrop-filter: blur(8px);
}

.main-nav a:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.55);
  transform: translateY(-1px);
}

.main-nav a.active {
  opacity: 1;
  background: rgba(15, 23, 42, 0.9);
}

/* hero title */
.header-main {
  text-align: center;
  margin-bottom: 24px;
}

.header-main h1 {
  font-size: 52px;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.header-main p {
  margin: 0;
  font-size: 17px;
  opacity: 0.9;
}

/* ===== Sections ===== */
.section {
  margin-top: 40px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.section-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 15px;
  color: #9ca3af;
  margin: 0 0 20px;
}

/* text blocks */
.lead {
  font-size: 17px;
  color: #d1d5db;
}

/* buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  color: #f9fafb;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(31, 41, 55, 0.8);
}

/* cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: radial-gradient(circle at top, #111827 0, #020617 52%);
  border-radius: 20px;
  padding: 14px 14px 18px;
  border: 1px solid rgba(55, 65, 81, 0.8);
}

.card img {
  width: 100%;
  border-radius: 16px;
  display: block;
  margin-bottom: 10px;
}

.card-title {
  font-size: 16px;
  margin: 0 0 4px;
}

.card-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 14px;
}

/* badges / chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #334155;
  color: #cbd5f5;
}

/* ===== Embeds ===== */
.embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.embed-box iframe {
  width: 100%;
  height: 340px;
  border-radius: 18px;
  border: none;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 26px;
}

.contact-card {
  background: #020617;
  border-radius: 20px;
  padding: 18px 18px 22px;
  border: 1px solid #1f2937;
}

.contact-card h3 {
  margin-top: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #111827;
  padding-top: 18px;
  margin-top: 48px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid,
  .embed-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 20px 16px;
  }

  .main-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-main h1 {
    font-size: 36px;
  }
}
.card img {
    width: 100%;
    height: 220px;         /* 원하는 높이 */
    object-fit: cover;     /* 자동 crop + 통일된 비율 유지 */
    border-radius: 16px;
    display: block;
    margin-bottom: 10px;
}
