/* =========================================
   OAKLAND UNIVERSITY COURSE WEBSITE
   Green and Gold Theme
   ========================================= */

:root {
  --bg: #f8faf8;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #64748b;

  /* University-inspired colors */
  --accent: #006633;
  --accent-dark: #004d26;
  --accent-soft: #e5f2e9;
  --gold: #B59A57;

  --border: #e2e8e0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* =========================================
   GENERAL
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  color: var(--text);

  background: radial-gradient(
    circle at top left,
    #edf7ef 0%,
    var(--bg) 38%,
    #ffffff 100%
  );

  line-height: 1.65;
}

/* =========================================
   NAVIGATION
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 22px;

  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;

  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* =========================================
   MAIN CONTAINER
   ========================================= */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 22px 70px;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--border);
}

/* University and semester */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.82rem;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Oakland University — Gold */
.eyebrow .university-name {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Fall 2026 — Bold Black */
.eyebrow .semester {
  color: #111111;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Main Course Title — Reduced Font Size */
.hero h1 {
  margin: 8px 0 14px;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 750;

  color: #1f2937;
}

/* Subtitle */
.subtitle {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.22rem;
}

/* Instructor Information */
.course-meta {
  margin-top: 28px;

  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.course-meta span {
  padding: 12px 14px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.72);
}

/* =========================================
   SECTIONS AND HEADINGS
   ========================================= */

.section {
  margin-top: 34px;
  scroll-margin-top: 90px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  color: var(--text);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text);
}

/* =========================================
   CARDS
   ========================================= */

.card,
.module-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

/* =========================================
   MODULE GRID
   ========================================= */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  padding: 24px;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);

  box-shadow:
    0 24px 55px rgba(0, 102, 51, 0.12);
}

.module-card p {
  color: var(--muted);
}

/* =========================================
   COURSE SCHEDULE
   ========================================= */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

/* Green Table Header */
#schedule table thead th {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

/* Alternating Rows */
tbody tr:nth-child(even) {
  background: #f8fbf9;
}

/* Row Hover */
tbody tr:hover {
  background: #edf7ef;
}

/* Remove Bottom Border on Last Row */
tr:last-child td {
  border-bottom: 0;
}

/* Lecture Number Column — Green */
#schedule table tbody td:first-child {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Schedule Note */
.schedule-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  text-align: center;
  padding: 34px 20px;

  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #ffffff;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 760px) {

  .container {
    padding-top: 26px;
  }

  .course-meta,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
  }

  .card,
  .module-card {
    border-radius: 20px;
    padding: 22px;
  }

  .eyebrow {
    gap: 6px;
  }

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

  .subtitle {
    font-size: 1.05rem;
  }

  th,
  td {
    padding: 12px;
  }
}
