/* ===== base.css ===== */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.logo-img {
  width: 165px;
  height: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #333;
  background-color: #f5f5f5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 20px;
  height: 2px;
  background-color: #333;
  margin: 2px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  color: #333;
}

.btn:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.btn-secondary {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.btn-secondary:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* Footer */
.footer {
  background: #f8f9fa;
  color: #666;
  padding: 40px 0 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-info h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer-info p {
  margin-bottom: 5px;
  color: #666;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #333;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: #888;
  font-size: 12px;
}

/* Common page header */
.page-header {
  padding: 40px 0 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: #666;
}

/* Common section header */
.section-header {
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #FFC109;
  padding-bottom: 10px;
}

/* Generic loading / error / empty messages */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: #dc3545;
  font-size: 16px;
}

/* ===== Global responsive rules (nav + layout) ===== */

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }
}

/* Additional responsive design shared across pages */
@media (max-width: 768px) {

  .people-grid,
  .projects-grid,
  .gallery-grid,
  .requirements-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .application-steps {
    gap: 15px;
  }

  .step {
    flex-direction: column;
    gap: 10px;
  }

  .position-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .publication-filters,
  .gallery-filters {
    justify-content: flex-start;
  }

  .controls-wrapper {
    gap: 15px;
  }

  .search-box {
    max-width: 100%;
  }

  .filter-controls {
    gap: 10px;
  }

  .filter-controls select,
  .filter-controls button {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Compact Alumni Mobile Styles */
  .alumni-category .people-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .alumni-card {
    padding: 12px;
  }

  .alumni-card .person-name {
    font-size: 15px;
  }

  .alumni-card .next-position {
    font-size: 12px;
  }
}
