/**
  * styles.css
 */

/**
 * TABLE OF CONTENTS
 *
 * 1. CSS Variables & Design Tokens
 * 2. Base & Reset Styles
 * 3. Typography
 * 4. Layout & Containers
 * 5. Header & Navigation
 * 6. Buttons
 * 7. Page Headers & Hero Sections
 * 8. Search & Filters
 * 9. Cards & Content Blocks
 * 10. Ideas Grid & Display
 * 11. Tags & Badges
 * 12. Idea Detail Page
 * 13. About Page & Benefits
 * 14. Grant Projects Page
 * 15. Footer
 * 16. Utility Classes
 * 17. Responsive Design
 * 18. Project Spotlight Slider
 */

/**
 * 1. CSS VARIABLES & DESIGN TOKENS
 * Used across all pages for consistent theming
 */
:root {
  /* Color Palette */
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 0%);
  --accent-rgb: 241, 242, 243;

  /* Text Colors */
  --text-secondary: hsl(0 0% 20%);
  --text-muted: hsl(0 0% 45%);

  /* Brand Colors */
  --primary: hsl(279 91% 25%);
  --primary-foreground: hsl(0 0% 100%);
  --primary-hover: hsl(274 41% 48%);
  --secondary: hsl(240 5% 96%);
  --accent-light: hsl(240 5% 96%);

  /* UI Elements */
  --border: hsl(240 5% 92%);
  --ring: hsl(279 91% 25%);

  /* Border Radius */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition-base: all 0.3s ease;
}

/*
 * 2. BASE & RESET STYLES
 * Applied to all pages
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
 * 3. TYPOGRAPHY
 * Used across all pages for headings, paragraphs, and links
 */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-hover);
}

/**
 * 4. LAYOUT & CONTAINERS
 * Main container used on all pages
 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/**
 * 5. HEADER & NAVIGATION
 * Used on: All pages
 */

/* Header Container */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  z-index: 3;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  letter-spacing: -0.01em;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Mobile Navigation Menu */
.menu {
  clear: both;
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
  background-color: var(--background);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  border-radius: var(--radius);
}

.menu a:last-child {
  border-bottom: none;
}

.menu a:hover,
.menu a.active {
  background-color: rgba(var(--accent-rgb), 0.4);
  color: var(--foreground);
}

/* Hamburger Menu Icon */
.menu-icon {
  cursor: pointer;
  display: inline-block;
  padding: 1rem;
  position: relative;
  user-select: none;
  z-index: 3;
}

.menu-icon .navicon {
  background: var(--foreground);
  display: block;
  height: 2px;
  width: 18px;
  position: relative;
  transition: background 0.2s ease;
}

.menu-icon .navicon:before,
.menu-icon .navicon:after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--foreground);
  position: absolute;
  transition: all 0.2s ease;
}

.menu-icon .navicon:before {
  top: 5px;
}
.menu-icon .navicon:after {
  top: -5px;
}

/* Menu Toggle Functionality */
.menu-btn {
  display: none;
}

.menu-btn:checked ~ .menu {
  max-height: 500px;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
  top: 0;
}

.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
  top: 0;
}

/* Desktop Navigation (1024px+) */
@media (min-width: 1024px) {
  .menu {
    max-height: none;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .menu a {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-secondary);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .menu a:hover {
    background-color: rgba(var(--accent-rgb), 0.5);
    color: var(--foreground);
  }

  .menu a.active {
    background-color: rgba(var(--accent-rgb), 0.5);
    color: var(--foreground);
    font-weight: 600;
  }

  .menu-icon {
    display: none;
  }
}

/**
 * 6. BUTTONS
 * Reusable button styles used across all pages
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  min-height: 2.5rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Primary Button - Purple with white text */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primary-foreground);
}

/* Secondary Button - White with purple text */
.btn-secondary {
  background-color: var(--background);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  color: var(--primary);
}

/* Button Size Variants */
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  min-height: 2rem;
}

.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
}

/**
 * 7. PAGE HEADERS & HERO SECTIONS
 *Used on: All pages except home (home has enhanced hero)
 */

/* Standard Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--primary-foreground);
  padding: 3rem 0;
  text-align: center;
}

.page-header h2 {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--primary-foreground);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Standard Hero Section */
.hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-foreground);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Hero - Home Page Only */
body.home .enhanced-hero {
  position: relative;
  background: none;
  color: var(--primary-foreground);
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

body.home .enhanced-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../../public/images/home-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.home .enhanced-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    hsla(279, 91%, 25%, 0.85),
    hsla(274, 41%, 48%, 0.65)
  );
  mix-blend-mode: multiply;
}

body.home .enhanced-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 4rem 2rem;
}

body.home .enhanced-hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--primary-foreground);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.home .enhanced-hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  color: hsl(0 0% 100% / 0.9);
}

body.home .enhanced-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Home Page Layout Adjustments */
body.home .about-content {
  padding-top: 4rem;
}

body.home footer {
  margin-top: 0;
}

/**
 * 8. SEARCH & FILTERS
 * Used on: ai-idea-book.html
 */

/* Filter Section Container */
.filters {
  background-color: var(--accent-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.filters h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Search Bar */
.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.search-bar button {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-base);
}

.search-bar button:hover {
  background-color: var(--primary-hover);
}

/* Filter Overlay Menu */
.filter-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.filter-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.filter-menu-content {
  background-color: var(--background);
  color: var(--foreground);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.filter-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-menu-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-filter-menu {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-filter-menu:hover {
  color: var(--primary);
}

/* Filter Groups Layout */
.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text, #333);
  text-align: left;
}

.filter-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border, #ccc);
  border-radius: var(--radius, 6px);
  background-color: var(--background, #fff);
  color: var(--foreground, #000);
  appearance: none;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#clear-filters {
  align-self: flex-end;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .filter-menu-content {
    width: 95%;
    padding: 1.5rem;
  }
}

/**
 * 9. CARDS & CONTENT BLOCKS
 * Reusable card components used on multiple pages
 */

/* Standard Content Card */
.content-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--accent-light);
}

.card-header h3 {
  margin: 0;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h3 i {
  color: var(--primary);
}

.card-body {
  padding: 1.5rem;
}

/* Rich Text Content */
.rich-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/**
 * 10. IDEAS GRID & DISPLAY
 * Used on: ai-idea-book.html and idea-detail.html (related ideas)
 */

/* Ideas Section Container */
.ideas {
  padding: 3rem 0;
}

.ideas h3 {
  margin-bottom: 1rem;
}

.results-count {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Ideas Grid Layout */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ideas-grid .no-results {
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 768px) {
  .ideas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ideas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Idea Card */
.idea-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.idea-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

/* Card Header Section - with colored accent bar */
.idea-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: var(--accent-light);
}

.department-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.idea-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Card Body Content */
.idea-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.idea-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.idea-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.idea-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.6;
}

/* Tags Section - More text-like */
.idea-tags {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.idea-tags h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.idea-resource {
  padding: 1rem 1.5rem;
  background-color: var(--accent-light);
  border-top: 1px solid var(--border);
}

/* No Results Message */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
  grid-column: 1 / -1;
  width: 100%;
}

.no-results h3 {
  color: var(--foreground);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  width: 100%;
  text-align: center;
}

.no-results p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* Related Ideas Section */
.related-ideas {
  background-color: var(--background);
  padding: 0;
  margin-top: 2rem;
}

.related-ideas-header {
  background-color: var(--accent-light);
  padding: 2rem 0;
  text-align: center;
}

.related-ideas-header .section-title {
  margin: 0;
  font-size: 1.75rem;
  color: var(--foreground);
}

.related-ideas .ideas-grid {
  padding: 3rem 0;
}

.section-muted {
  background-color: transparent;
}

/**
 * 11. TAGS & BADGES
 * Used on: ai-idea-book.html and idea-detail.html
 */

/* Tags List */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  line-height: 1.6;
}

.tag {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  display: inline;
}

.tag::after {
  content: ", ";
  margin-right: 0.25rem;
}

.tag:last-child::after {
  content: "";
  margin-right: 0;
}

/* Department Badge */
.department-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/**
   12. IDEA DETAIL PAGE
   Used on: idea-detail.html
  */

/* Idea Metadata Bar */
.idea-meta-bar {
  background-color: var(--accent-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.idea-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.idea-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.idea-meta-item i {
  color: var(--primary);
}

/* Content Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Resource Viewer */
.resource-viewer {
  width: 100%;
}

/* Resource Buttons */
.resource-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
  padding: 0;
}

/* Resource Link Button Style */
.resource-link,
.resource-content .resource-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  flex: 1 1 auto;
  min-width: 140px;
}

.resource-link:hover,
.resource-content .resource-buttons a:hover {
  background-color: var(--primary-hover);
  color: var(--primary-foreground);
}

/* Resource Message Styles */
.resource-message {
  padding: 2rem;
  text-align: center;
  background-color: var(--secondary);
  border-radius: var(--radius);
  margin: 1rem 0;
}

.resource-message p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.resource-message p:last-child {
  margin-bottom: 0;
}

/* Resource Actions */
.resource-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

/* Resource Content Buttons */
.resource-content .resource-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .resource-link,
  .resource-content .resource-buttons a {
    font-size: 0.8125rem;
    padding: 0.4rem 0.8rem;
  }
}

/**
 * 13. ABOUT PAGE & BENEFITS
 * Used on: index.html (home page)
 */

/* About Content Section */
.about-content {
  padding: 3rem 0;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section:last-child {
  margin-bottom: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
}

.benefit-card .icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.benefit-card h4 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mission Cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mission-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.mission-card:hover {
  box-shadow: var(--shadow-md);
}

.mission-card-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.mission-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.mission-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* CTA Buttons Container */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/**
 * 14. GRANT PROJECTS PAGE
 * Used on: grant-projects.html
 */

/* Grant Projects Grid */
.grant-projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .grant-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grant-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grant-project-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.grant-project-card:hover {
  box-shadow: var(--shadow-md);
}

.grant-project-card .icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.grant-project-card h4 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.grant-project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Featured Projects Section */
.featured-projects {
  margin-top: 3rem;
}

/* Featured Projects Header with Button */
.featured-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-projects-header h2 {
  font-size: 2rem;
  margin-bottom: 0;
  color: var(--foreground);
}

.featured-projects-header .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .featured-projects-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Projects Accordion */
.projects-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each accordion item (faculty group) */
.project-group {
  background-color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  scroll-margin-top: 100px;
}

.project-group:hover {
  box-shadow: var(--shadow-md);
}

/* Accordion Header (clickable) */
.project-header {
  width: 100%;
  text-align: left;
  background-color: transparent;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: none;
  transition: background-color 0.2s ease;
}

.project-header:hover {
  background-color: var(--secondary);
}

.project-header-text {
  flex: 1;
  min-width: 0;
}

.project-header-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.25rem 0;
}

.project-header-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.project-avatars {
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  background-color: var(--background);
  user-select: none;
  -webkit-user-drag: none;
}

/* Chevron icon rotation */
.project-header .chevron {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.project-group.active .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .project-group {
    scroll-margin-top: 80px;
  }

  .project-header {
    padding: 1rem;
  }
  
  .avatar {
    width: 2rem;
    height: 2rem;
    border-width: 1px;
  }
  
  .project-avatars {
    gap: 0.375rem;
  }
  
  .project-header-right {
    gap: 0.75rem;
  }
  
  .project-header-text h3 {
    font-size: 1rem;
  }
  
  .project-header-text p {
    font-size: 0.8125rem;
  }
}

/* Accordion Content (hidden by default) */
.project-content {
  display: none;
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

/* Active (expanded) state */
.project-group.active .project-content {
  display: block;
}

/* Project Description Section */
.project-description {
  padding: 1.5rem;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.project-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Project Links Section */
.project-links-section {
  padding: 1.5rem;
  background-color: var(--accent-light);
}

.subproject-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subproject-list li {
  color: var(--primary);
}

.subproject-list li a {
  color: var(--primary);
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.subproject-list li a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* External link icon */
.subproject-list li a::after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  margin-left: 0.375rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.subproject-list li a:hover::after {
  opacity: 1;
}

/**
 * 15. FOOTER
 * Used on: All pages
 */
footer {
  background-color: var(--accent-light);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

/**
 * 16. UTILITY CLASSES
 * Reusable utility classes
 */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
}

.back-to-top-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/**
 * 17. RESPONSIVE DESIGN
 * Mobile-specific adjustments
 */

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .page-header {
    padding: 2rem 0;
  }

  .idea-meta-list {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/**
 * 18. PROJECT SPOTLIGHT SLIDER
 */

.project-spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.project-spotlight-header h2 {
  margin-bottom: 0;
}

.spotlight-header-controls {
  display: none;
  gap: 0.5rem;
}

.project-spotlight-slider {
  position: relative;
  margin: 0;
}

.spotlight-track {
  overflow: hidden;
}

.spotlight-slides {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.spotlight-slide {
  width: calc(50% - 0.75rem);
  flex-shrink: 0;
  padding: 2.5rem;
  min-height: 280px;
  background-color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.spotlight-slide:hover {
  background-color: var(--secondary);
}

.spotlight-slide h4 {
  color: var(--foreground);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: left;
  line-height: 1.4;
}

.spotlight-slide p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  text-align: left;
  flex: 1;
}

.spotlight-nav {
  background-color: var(--background);
  border: 1px solid var(--border);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.spotlight-nav:hover:not(:disabled) {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.spotlight-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.spotlight-desktop-controls {
  display: flex;
}

.spotlight-desktop-controls .spotlight-nav.prev {
  position: absolute;
  left: -3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.spotlight-desktop-controls .spotlight-nav.next {
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Prevent horizontal scroll on body */
body {
  overflow-x: hidden;
}

/* Tablet - show header controls, hide desktop controls */
@media (max-width: 1280px) {
  .spotlight-header-controls {
    display: flex;
  }
  
  .spotlight-desktop-controls {
    display: none;
  }
}

/* Medium screens - show 2 at a time */
@media (max-width: 1024px) {
  .spotlight-slide {
    width: calc(50% - 0.75rem);
    padding: 2rem;
  }
}

/* Mobile - show 1 at a time */
@media (max-width: 768px) {
  .spotlight-slide {
    width: 100%;
    padding: 1.5rem;
    min-height: 240px;
  }
  
  .spotlight-slides {
    gap: 1rem;
  }
  
  .spotlight-nav {
    width: 2rem;
    height: 2rem;
  }
}
