/* Saint Luke's College of Theology */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --burgundy: #8C2542;
  --burgundy-hover: #A43058;
  --burgundy-wash: #FDF5F8;
  --gold: #B8963E;
  --gold-light: #D4AB5A;
  --gold-pale: #F5ECD4;
  --white: #ffffff;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D4D4D8;
  --gray-500: #71717A;
  --gray-600: #52525B;
  --gray-700: #3F3F46;
  --gray-800: #27272A;
  --gray-900: #18181B;
  --text: #27272A;
  --text-secondary: #52525B;
  --text-muted: #71717A;
  --border: #E4E4E7;
  --sidebar-w: 272px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.72;
  font-size: 16px;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-w))); }

.sidebar-toggle {
  position: fixed;
  top: 1.1rem;
  left: var(--sidebar-w);
  z-index: 101;
  width: 28px; height: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: left 0.3s cubic-bezier(0.16,1,0.3,1), background 0.15s;
  color: var(--gray-500);
  font-size: 0.7rem;
  padding: 0;
}
.sidebar-toggle:hover { background: var(--gray-50); color: var(--burgundy); }
.sidebar.collapsed ~ .sidebar-toggle { left: 0; border-left: 1px solid var(--border); }
.sidebar.collapsed ~ .sidebar-toggle .arrow-icon { transform: rotate(180deg); }
.arrow-icon { transition: transform 0.3s; display: block; line-height: 1; }

.sidebar-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: block;
  flex-shrink: 0;
}
.sidebar-logo img { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto; }

.sidebar-nav { padding: 0.75rem 0; flex: 1; }

.nav-group { margin-bottom: 0.15rem; }
.nav-group-label {
  padding: 0.55rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 0.6rem;
}

.nav-link {
  display: flex; align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.12s;
  border-left: 3px solid transparent;
  font-weight: 400;
}
.nav-link:hover { color: var(--burgundy); background: var(--burgundy-wash); }
.nav-link.active {
  color: var(--burgundy);
  background: var(--burgundy-wash);
  border-left-color: var(--burgundy);
  font-weight: 600;
}
.nav-link-sub { padding-left: 2rem; font-size: 0.84rem; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-footer p { font-size: 0.75rem; color: var(--gray-500); line-height: 1.6; margin: 0; }
.sidebar-footer a { color: var(--burgundy); text-decoration: none; }

/* ── Main ── */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.16,1,0.3,1);
  animation: pageFadeIn 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
.sidebar.collapsed ~ .main { margin-left: 0; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .main { animation: none; }
}

/* ── Hero (homepage) ── */
.hero {
  position: relative;
  padding: 6rem 4rem 5rem;
  background: var(--gray-900);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(140,37,66,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(184,150,62,0.08) 0%, transparent 45%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 600; line-height: 1.18;
  letter-spacing: -0.02em; margin-bottom: 1.5rem; color: var(--white);
}
.hero-text {
  font-size: 1.06rem; line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 580px; margin-bottom: 2rem;
}
.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 0.97rem;
  color: rgba(255,255,255,0.35);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem; margin-top: 2.5rem;
  max-width: 500px; line-height: 1.7;
  background: transparent; border-radius: 0;
  padding: 0 0 0 1.25rem;
}
.hero-quote cite {
  display: block; font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; margin-top: 0.5rem;
  color: rgba(255,255,255,0.25);
}
.hero-quote p { color: rgba(255,255,255,0.35); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.78rem 1.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.87rem;
  text-decoration: none; border-radius: 6px;
  transition: all 0.25s; letter-spacing: 0.01em;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,150,62,0.3);
}
.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.18);
  margin-left: 0.6rem;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }

/* ── Glance bar ── */
.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.glance-item {
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.glance-item:last-child { border-right: none; }
.glance-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: var(--burgundy); line-height: 1;
}
.glance-label {
  font-size: 0.72rem; color: var(--text-muted);
  margin-top: 0.35rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 500;
}

/* ── Page header (interior) ── */
.page-header {
  padding: 4rem 4rem 3rem;
  border-bottom: none;
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(140,37,66,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(184,150,62,0.08) 0%, transparent 45%);
  pointer-events: none;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white); margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  position: relative;
}
.page-header .page-subtitle {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  font-weight: 400; letter-spacing: 0.03em;
  position: relative;
}

/* ── Content sections ── */
.section { padding: 4.5rem 4rem; }
.section-wide { padding: 4.5rem 4rem; }
.section-alt {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-area {
  padding: 3.5rem 4rem 4.5rem;
}

.section-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gray-900); line-height: 1.2;
  font-weight: 600; letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-top: 2.5rem; margin-bottom: 0.6rem; color: var(--burgundy); }
h4 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

p { color: var(--text-secondary); margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--burgundy); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--burgundy-hover); }
strong { color: var(--text); font-weight: 600; }

blockquote {
  margin: 2rem 0; padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
blockquote p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5em; }

hr { border: none; height: 1px; background: var(--border); margin: 3rem 0; }
::selection { background: var(--gold-pale); color: var(--burgundy); }

/* ── Callout box ── */
.callout-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}
.callout-box p { font-size: 0.95rem; }
.callout-box.important { border-left-color: var(--burgundy); background: var(--burgundy-wash); }

/* ── Tables ── */
table {
  width: 100%; border-collapse: collapse;
  margin: 2rem 0; font-size: 0.92rem;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
thead th {
  background: var(--gray-900); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.8rem; text-align: left;
  padding: 0.9rem 1.1rem; letter-spacing: 0.04em;
  text-transform: uppercase;
}
tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

.course-matrix td, .course-matrix th { text-align: center; vertical-align: top; padding: 1.1rem; }
.course-matrix td:first-child, .course-matrix th:first-child {
  text-align: left; font-weight: 600;
  background: var(--gray-50); color: var(--text);
}
.course-matrix td p { margin-bottom: 0.25em; font-size: 0.88rem; }
.course-matrix td p:first-child { font-weight: 700; color: var(--burgundy); }

/* ── Leadership cards ── */
.leadership-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin: 2.5rem 0;
}
.leader-card {
  text-align: center; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 2.5rem 1.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.leader-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: transparent; }
.leader-photo {
  width: 140px; height: 210px;
  margin: 0 auto 1.5rem;
  border-radius: 8px; overflow: hidden;
  background: var(--gray-100);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--text-muted); font-size: 0.78rem;
}
.leader-card h3 { font-size: 1.2rem; margin: 0 0 0.25rem; color: var(--gray-900); }
.leader-card .leader-title { color: var(--gold); font-weight: 600; font-size: 0.85rem; }

/* ── Lists ── */
ul, ol { margin: 1rem 0 1.5rem 1.2rem; }
li { margin-bottom: 0.5rem; color: var(--text-secondary); }
li::marker { color: var(--gold); }

/* ── Cards ── */
.card-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2.25rem;
}
.card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.75rem 1.5rem; background: var(--white);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.card:hover { border-color: transparent; box-shadow: 0 8px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }
.card-label {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--gray-900); margin: 0 0 0.6rem; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.feature-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.75rem 1.5rem; background: var(--white);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.feature-card:hover { border-color: transparent; box-shadow: 0 8px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }
.feature-card h3 { font-size: 1.1rem; color: var(--gray-900); margin: 0 0 0.6rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 4rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap; margin-top: auto;
}
.footer-left h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gray-900); margin-bottom: 0.4rem; }
.footer-left p, .footer-right p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 0.2rem; }
.footer-left a { color: var(--burgundy); text-decoration: none; }
.footer-right { max-width: 420px; text-align: right; }
.footer-right p { font-size: 0.76rem; color: var(--gray-500); }
.footer-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic; color: var(--gray-300);
  font-size: 0.85rem; margin-top: 0.4rem;
}

/* ── Mobile ── */
.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem; align-items: center; gap: 0.75rem;
}
.mobile-bar img { height: 34px; }
.mobile-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-btn span { display: block; width: 16px; height: 2px; background: var(--gray-700); margin: 3px 0; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.2); z-index: 99; }
.sidebar.mobile-open ~ .overlay { display: block; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.08); }
  .sidebar-toggle { display: none; }
  .mobile-bar { display: flex; }
  .main { margin-left: 0; }
  .hero { padding: 3.5rem 1.75rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .page-header { padding: 2.5rem 1.5rem 2rem; }
  .section, .section-wide, .content-area { padding: 2.5rem 1.5rem; }
  .card-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(2) { border-right: none; }
  .leadership-grid { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
  .site-footer { padding: 2rem 1.5rem; flex-direction: column; }
  .footer-right { text-align: left; }
  table { font-size: 0.84rem; }
  thead th, tbody td { padding: 0.65rem 0.75rem; }
}

/* ── Course 1 Preview pages ── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.course-card {
  background: var(--gray-50, #f7f5f0);
  border: 1px solid var(--border, #e5e0d5);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.course-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted, #6b6357);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.course-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.18rem;
  line-height: 1.3;
}
.course-card h3 a {
  color: var(--navy, #1a2d4f);
  text-decoration: none;
}
.course-card h3 a:hover { text-decoration: underline; }
.course-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}
.course-card-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.course-card-links .btn {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Course content pages ( textbook / assignment ) */
.course-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--gray-50, #f7f5f0);
  border: 1px solid var(--border, #e5e0d5);
  border-radius: 6px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.course-toolbar-link,
.course-toolbar-audio {
  color: var(--navy, #1a2d4f);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.course-toolbar-link:hover,
.course-toolbar-audio:hover { text-decoration: underline; }
.course-toolbar-audio {
  background: var(--gold, #b8963f);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
}
.course-toolbar-audio:hover {
  text-decoration: none;
  background: #a1832f;
}

.course-content {
  font-size: 1rem;
  line-height: 1.72;
}
.course-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border, #e5e0d5);
  font-size: 1.55rem;
  color: var(--navy, #1a2d4f);
}
.course-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1rem;
}
.course-content h3 {
  margin-top: 1.75rem;
  font-size: 1.22rem;
  color: var(--navy, #1a2d4f);
}
.course-content h4 {
  margin-top: 1.2rem;
  font-size: 1.04rem;
  color: var(--text, #2a2418);
}
.course-content p { margin: 0.85rem 0; }
.course-content blockquote {
  border-left: 3px solid var(--gold, #b8963f);
  padding: 0.25rem 0 0.25rem 1.1rem;
  margin: 1.2rem 0;
  color: var(--text-muted, #6b6357);
  font-style: italic;
}
.course-content ul,
.course-content ol { padding-left: 1.4rem; margin: 0.85rem 0; }
.course-content li { margin: 0.35rem 0; }

.course-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e5e0d5);
  flex-wrap: wrap;
}
.course-nav-prev,
.course-nav-next {
  color: var(--navy, #1a2d4f);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border, #e5e0d5);
  border-radius: 4px;
  background: var(--gray-50, #f7f5f0);
}
.course-nav-prev:hover,
.course-nav-next:hover { background: #efeadd; }

@media (max-width: 800px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-toolbar { flex-direction: column; align-items: stretch; }
  .course-toolbar-audio { text-align: center; }
  .course-nav { flex-direction: column; }
}
