/* ============================================
   PROJECT DETAIL PAGE — project.css
   ============================================ */

.pd-page {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--bg);
}

.pd-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  animation: pd-fade-up 0.6s ease both;
}

@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Back link */
.pd-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 48px;
  transition: color var(--transition);
}

.pd-back:hover {
  color: var(--accent);
}

/* Header */
.pd-header {
  margin-bottom: 56px;
}

.pd-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: -12px;
}

.pd-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Institution subtitle on academic pages */
.ac-institution {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* Year badge — smaller than project number */
.ac-year {
  font-size: 14px !important;
  font-weight: 600 !important;
  opacity: 0.5 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px !important;
}

/* Two-column body */
.pd-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* Main content */
.pd-overview {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 40px;
}

.pd-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.pd-section:last-child {
  border-bottom: none;
}

.pd-section-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.pd-section-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* Sidebar */
.pd-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-highlights-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pd-highlights-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pd-highlight-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pd-highlight-item:last-child {
  margin-bottom: 0;
}

.pd-github-btn {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   COURSES ACCORDION
   ============================================ */

.ac-courses-section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 2px solid var(--border);
}

.ac-courses-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.ac-courses-empty {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.ac-courses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-course-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ac-course-item:hover {
  border-color: var(--accent-border);
}

.ac-course-item.open {
  border-color: var(--accent-border);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.ac-course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.ac-course-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.ac-course-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ac-course-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-course-semester {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ac-course-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.ac-course-item.open .ac-course-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.ac-course-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.ac-course-body.open {
  max-height: 600px;
}

.ac-course-body-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
}

.ac-course-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  padding-top: 20px;
}
