﻿/*
Theme Name: World Bulgyo University
Theme URI: https://worldbulgyouniversity.org/
Author: World Bulgyo University
Description: Custom WordPress theme for World Bulgyo University.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: wbu
*/

:root {
  --navy: #0b2340;
  --navy-2: #142f4b;
  --gold: #c69b3d;
  --gold-soft: #efd88d;
  --ivory: #fbf7ee;
  --paper: #fffdf8;
  --brown: #806247;
  --green: #6f9277;
  --ink: #1f2a37;
  --muted: #687485;
  --line: rgba(11, 35, 64, .12);
  --shadow: 0 24px 70px rgba(11, 35, 64, .12);
  --container: 1200px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .33;
  background:
    radial-gradient(circle at 15% 18%, rgba(198, 155, 61, .14), transparent 28%),
    linear-gradient(90deg, rgba(111, 146, 119, .06), transparent 38%),
    repeating-radial-gradient(circle at 100% 0%, rgba(11, 35, 64, .055) 0 1px, transparent 1px 18px);
  z-index: -1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Playfair Display", "Noto Sans KR", serif;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { font-size: 1.45rem; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 760px; }
.section { padding: 92px 0; }
.section.paper { background: var(--paper); }
.section.dark {
  background: var(--navy);
  color: rgba(255, 249, 234, .78);
}
.section.dark h2, .section.dark h3 { color: #fff9ea; }
.section.dark .lead { color: rgba(255, 249, 234, .72); }
.section.dark .card h3 { color: var(--navy); }
.section.dark .card p { color: var(--muted); }
.section.dark .card small { color: var(--gold); }
.section-header { max-width: 820px; margin-bottom: 44px; }
.section-header p { margin-top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 35, 64, .97);
  color: #fff9ea;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: max-content; }
.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: rgba(255,255,255,.96);
  border-radius: 50%;
  padding: 5px;
}
.brand strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 21px;
  font-size: .91rem;
  font-weight: 700;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a { color: rgba(255, 249, 234, .86); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-apply {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #17130d !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #17130d; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-dark { background: var(--navy); color: white; }
.btn-light { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline { background: transparent; color: #fff9ea; border-color: rgba(255,249,234,.42); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101820;
  padding: 104px 0 72px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,22,38,.92), rgba(8,22,38,.56) 54%, rgba(8,22,38,.2)),
    var(--hero-image, url("images/?멸퀎遺덇탳??숆탳 罹좏띁???ъ쭊.jpg")) center / cover;
  transform: scale(1.02);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff9ea; max-width: 900px; }
.page-hero p { margin-top: 22px; color: rgba(255,249,234,.78); font-size: 1.18rem; max-width: 760px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,248,.94);
  padding: 28px;
  box-shadow: 0 14px 44px rgba(11,35,64,.06);
}
.card.gold-line { border-top: 3px solid var(--gold); }
.card.green-line { border-top: 3px solid var(--green); }
.card small {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card p, .rich-text p, .timeline p, .policy-card p { color: var(--muted); margin-top: 12px; }
.rich-text ul, .card ul, .policy-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.rich-text li, .card li, .policy-card li { margin: 8px 0; }
.notice {
  border-left: 4px solid var(--gold);
  background: rgba(198, 155, 61, .1);
  padding: 20px 22px;
  border-radius: var(--radius);
  color: var(--ink);
}
.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.compact-list span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.66);
  color: var(--muted);
}
.stat { font-size: 2.2rem; color: var(--gold); font-family: "Playfair Display", serif; }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 58px;
  align-items: center;
}
.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--navy);
  aspect-ratio: 4 / 5;
}
.image-frame.wide { aspect-ratio: 16 / 10; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.quote {
  margin: 28px 0;
  padding-left: 24px;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.24;
}
.signature { margin-top: 28px; color: var(--navy); font-weight: 800; }
.signature span { display: block; color: var(--muted); font-weight: 500; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--navy); background: #f7f1e6; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.timeline { display: grid; gap: 16px; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.timeline-date { color: var(--gold); font-weight: 900; }

.steps { counter-reset: steps; display: grid; gap: 16px; }
.step {
  counter-increment: steps;
  position: relative;
  padding: 24px 24px 24px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.step::before {
  content: counter(steps);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.policy-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.side-nav {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.side-nav a { color: var(--muted); font-weight: 700; }
.side-nav a:hover { color: var(--navy); }
details.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
details.policy-card + details.policy-card { margin-top: 14px; }
details.policy-card summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--navy);
  font-weight: 900;
  list-style: none;
}
details.policy-card summary::-webkit-details-marker { display: none; }
details.policy-card summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details.policy-card[open] summary::after { content: "-"; }
details.policy-card p { padding: 0 32px 18px; }
details.policy-card ul {
  margin: 0;
  padding: 6px 32px 28px 52px;
}
details.policy-card li { margin: 10px 0; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-card { display: grid; gap: 10px; }
.contact-card strong { color: var(--navy); }
form { display: grid; gap: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.map {
  min-height: 300px;
  border: 1px dashed rgba(11,35,64,.28);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(111,146,119,.18), rgba(198,155,61,.14)),
    repeating-linear-gradient(45deg, rgba(11,35,64,.035) 0 1px, transparent 1px 14px);
  text-align: center;
  padding: 24px;
}
.map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
}
.map.has-embed {
  display: block;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: var(--paper);
}

footer {
  background: #111b27;
  color: rgba(255,249,234,.76);
  padding: 64px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand { color: #fff9ea; font-family: "Playfair Display", serif; font-size: 1.5rem; }
.footer-grid h4 { margin: 0 0 14px; color: #fff9ea; }
.footer-grid a, .footer-grid p { color: rgba(255,249,234,.7); }
.footer-links { display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .92rem;
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .grid-4, .grid-3, .grid-2, .split, .contact-grid, .policy-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--container)); }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 1rem; }
  .section { padding: 70px 0; }
  .page-hero { min-height: 380px; padding: 82px 0 56px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

