/* Base styles following INSEAD brand colours and typography */

/* Fonts are loaded in the HTML via Google Fonts. */

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* Header and navigation */
.site-header {
  background-color: #00663E; /* INSEAD dark green */
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.brand-title {
  margin: 0;
  font-family: "Roboto Slab", "Roboto", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  opacity: 0.8;
}

.site-nav .active {
  border-bottom: 2px solid #ffffff;
}

/* Hero section */
.hero {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.hero h2 {
  font-family: "Roboto Slab", "Roboto", Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00663E;
}

.hero p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background: #f5f5f5;
  color: #555555;
  font-size: 0.8rem;
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

/* Honorees page styles */
.search-bar {
  text-align: center;
  margin: 1.5rem 0;
}

#searchInput {
  width: 60%;
  max-width: 400px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
}

.honorees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin: 0 0 0.3rem;
  font-family: "Roboto Slab", "Roboto", Arial, sans-serif;
  font-size: 1.2rem;
  color: #00663E;
}

.card-content p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #555555;
}

.card-content .meta {
  margin-top: auto;
  font-size: 0.75rem;
  color: #777777;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal h3 {
  margin-top: 0;
  font-family: "Roboto Slab", "Roboto", Arial, sans-serif;
  color: #00663E;
  font-size: 1.6rem;
}

.modal img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.modal p {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  color: #444444;
}

.modal .meta {
  font-size: 0.85rem;
  color: #777777;
  margin-top: 0.4rem;
}

/* LinkedIn button styles – apply globally so buttons can be reused outside modals */
a.linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #0a66c2; /* LinkedIn blue */
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  margin-top: 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

a.linkedin-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

a.linkedin-button:hover {
  background: #084e96;
}

/* Keep modal-specific button declarations for backwards compatibility */
.modal a.linkedin-button {
  margin-top: 0.8rem;
}

/* General call-to-action buttons on home page */
.cta-button {
  display: inline-block;
  background: #00663E;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  margin: 0.2rem;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #004e37;
}

/* Founders section on About page */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 1rem;
}

.founder-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.founder-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.founder-card h3 {
  margin: 0 0 0.4rem;
  font-family: "Roboto Slab", "Roboto", Arial, sans-serif;
  color: #00663E;
}

.founder-card p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #444444;
}

.founder-card .meta {
  font-size: 0.8rem;
  color: #777777;
}

.modal .close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.6rem;
  color: #666666;
  cursor: pointer;
}
