/* ==========================================================================
   UH Mānoa Mechanical Engineering (ME 481-482 Temporary Site)
   Palette: Modern Neutral Base with UH Mānoa Green (#004D25)
   ========================================================================== */

:root {
  /* UH Mānoa Branding */
  --uh-green: #004D25;
  --uh-green-hover: #003318;
  --uh-green-light: #EBF3EE;
  
  /* Neutral Color System */
  --bg-page: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  
  /* Typography */
  --text-main: #334155;
  --text-heading: #0F172A;
  --text-muted: #64748B;
  
  /* Components */
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 2.5rem 1rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header & Prominent PDF Section
   -------------------------------------------------------------------------- */
.course-header {
  background-color: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  border-top: 6px solid var(--uh-green);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.dept-tag {
  color: var(--uh-green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.course-header h1 {
  margin: 0 0 0.25rem 0;
  color: var(--text-heading);
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

.course-header .subtitle {
  margin: 0 0 1.75rem 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Prominent PDF Buttons */
.prominent-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--uh-green);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.hero-pdf-btn:hover {
  background-color: var(--uh-green-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hero-pdf-btn-alt {
  background-color: var(--uh-green-light);
  color: var(--uh-green);
  border: 1px solid var(--uh-green);
}

.hero-pdf-btn-alt:hover {
  background-color: #DFEDE3;
}

/* --------------------------------------------------------------------------
   Downloadable File Cards
   -------------------------------------------------------------------------- */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.section-card h2 {
  margin: 0 0 0.25rem 0;
  color: var(--text-heading);
  font-size: 1.35rem;
}

.section-desc {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* File List & Items */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.file-card:hover {
  border-color: var(--border-hover);
  background-color: #F1F5F9;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #E2E8F0;
  color: var(--text-main);
  border-radius: 6px;
  flex-shrink: 0;
}

.assignment-icon {
  background-color: var(--uh-green-light);
  color: var(--uh-green);
}

.file-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.file-title {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.file-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Download Button Link */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--uh-green);
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.download-btn:hover {
  border-color: var(--uh-green);
  background-color: var(--uh-green-light);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  body {
    padding: 1rem 0.5rem;
  }

  .course-header {
    padding: 1.5rem 1.25rem;
  }

  .file-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

.header-top {
  display: flex;
  flex-direction:column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.lab-logo {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-titles h1 {
  margin: 0;
}

.header-titles .subtitle {
  margin: 0.25rem 0 0 0;
}

@media (max-width: 640px) {
  .course-header {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify_content: center;
    width: 100%;
  }

  .lab-logo {
    height: 100px;
    margin: 0 auto 0.75rem auto;
    display: block;
  }

  .header-titles {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .header-titles h1 {
    font-size: 1.5rem;
  }

  .prominent-actions {
    grid-template-columns: 1fr;
  }
}

unnouncements-scroll-list {
  max-height: 320px; /* Limits height to ~3-4 visible items */
  overflow-y: auto;
  padding-right: 8px;
}

/* Individual Announcement Entry */
.announcement-item {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.announcement-title {
  font-weight: bold;
}

.announcement-date {
  font-size: 0.85em;
  color: #666;
}

.announcement-body {
  margin: 4px 0 8px 0;
}

.announcement-link {
  display: inline-block;
  font-size: 0.9em;
  color: #0056b3;
  text-decoration: underline;
}
