@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --primary: #E8742A;
  --primary-dark: #C45C18;
  --primary-light: #FEE4C7;
  --accent: #D4884A;
  --dark: #3D1F0F;
  --cream: #FFF8F0;
  --text-main: #2D1F0A;
  --text-muted: #8B7355;
  --border: #E8D5BB;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  background: var(--white);
  margin: 0;
}

/* ── Navbar ── */
.navbar-ddaboong {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.navbar-ddaboong .navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark) !important;
}
.navbar-ddaboong .nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  font-size: .92rem;
}
.navbar-ddaboong .nav-link:hover,
.navbar-ddaboong .nav-link.active {
  color: var(--primary) !important;
}
.navbar-ddaboong .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #3D1F0F 0%, #6B3F2A 60%, #A05A2C 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; font-weight: 700; color: white; line-height: 1.3; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; }

/* ── Section ── */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.section-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Cards ── */
.card-warm {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(61,31,15,.07);
}
.card-warm:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61,31,15,.14);
}
.card-warm .card-body { padding: 1.4rem; }
.card-warm .card-tag {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: .6rem;
}

/* ── Value icons section ── */
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

/* ── Buttons ── */
.btn-primary-warm {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-primary-warm:hover { background: var(--primary-dark); color: white; }
.btn-outline-warm {
  background: transparent;
  border: 2px solid white;
  border-radius: 8px;
  padding: 10px 28px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-outline-warm:hover { background: white; color: var(--dark); }

/* ── Footer ── */
.footer-main {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer-main a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-main a:hover { color: var(--primary); }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; }
.footer-divider { border-color: rgba(255,255,255,.15); }
.footer-bottom { color: rgba(255,255,255,.4); font-size: .85rem; }

/* ── Notice/News list ── */
.post-list-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  transition: background .15s;
}
.post-list-item:hover { background: var(--cream); }
.post-list-item a { color: var(--text-main); text-decoration: none; font-weight: 500; }
.post-list-item a:hover { color: var(--primary); }
.post-badge-pinned {
  background: var(--primary);
  color: white;
  font-size: .7rem;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
}
.pagination .page-link { color: var(--primary); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Apply form ── */
.apply-section { background: var(--cream); min-height: 70vh; }
.form-label { font-weight: 500; color: var(--dark); }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(232,116,42,.2);
}

/* ── Page header ── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #5a2d1a 100%);
  padding: 3rem 0 2.5rem;
  color: white;
}
.page-header h1 { font-size: 2rem; font-weight: 700; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a {
  color: rgba(255,255,255,.7);
}
.page-header .breadcrumb-item.active { color: var(--accent); }

/* ── Course card ── */
.course-status-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.badge-open { background: #22C55E; color: white; }
.badge-planned { background: #3B82F6; color: white; }
.badge-closed { background: #9CA3AF; color: white; }


.course-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--cream);
}

.btn-detail-warm {
  background: white;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 10px 22px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}

.btn-detail-warm:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.course-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.course-modal-content .modal-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.course-modal-content .modal-title {
  font-weight: 700;
  color: var(--dark);
}

.course-meta-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  font-size: .9rem;
  color: var(--text-main);
}

.course-meta-box > div + div {
  margin-top: .35rem;
}

.course-content {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.course-content p {
  margin-bottom: 1rem;
}

.course-content h1,
.course-content h2,
.course-content h3 {
  color: var(--dark);
  font-weight: 700;
  margin: 1.2rem 0 .7rem;
}

.course-content ul,
.course-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.course-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: .8rem 0;
}

.course-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1rem 0;
}


@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
}
