* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a3a52;
  --secondary-color: #2a5a7a;
  --accent-color: #00a86b;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --border-color: #ddd;
  --text-color: #444;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* Header and Navigation */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.header-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Navigation Menu */
nav {
  flex: 1;
  min-width: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  color: var(--accent-color);
  background-color: rgba(0, 168, 107, 0.1);
}

nav a.active {
  border-bottom: 2px solid var(--accent-color);
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

/* Section Styling */
section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Section Title Styling */
.section-title {
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.2rem !important;
  border-bottom: 3px solid var(--accent-color) !important;
  padding-bottom: 1rem !important;
}

section h2 {
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about-merit-link,
.about-merit-link:hover,
.about-merit-link:focus {
  text-decoration: none;
  font-weight: 700;
}

/* Mianus Accelerator Section */
.accelerator-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.accelerator-header h1 {
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent-color) !important;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accelerator-subtitle {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.accelerator-logo-small {
  height: 120px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  flex-grow: 0;
}

/* About Us Section */
#about p {
  font-size: 1.1rem;
  max-width: 900px;
}

/* Investment Approach Section */
.strategy-subtitle {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.approach-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.approach-card {
  padding: 2rem;
  background-color: var(--light-gray);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.approach-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Partner Section */
.partner-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 1rem;
}

.partner-header h1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.partner-header a {
  display: inline-flex;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.partner-header a:hover {
  opacity: 0.8;
}

.partner-logo-title {
  height: 130px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
}

.partner-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.partner-text {
  flex: 1;
}

.partner-text h2 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.partner-text p + h2 {
  margin-top: 2rem;
}

.partner-highlights {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.partner-highlights li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

.partner-highlights li::marker {
  color: var(--accent-color);
}

.partner-text p {
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.partner-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0 1rem;
}

.partner-logo-section {
  flex: 0 0 auto;
}

.partner-logo {
  max-width: 250px;
  height: auto;
  object-fit: contain;
}

.partner-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.partner-link:hover {
  opacity: 0.8;
}

/* Leadership Section */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-image {
  width: 100%;
  height: 140px;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--secondary-color);
  overflow: hidden;
}

.team-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  padding: 1.2rem;
  text-align: center;
}

.team-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.team-title {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Bio Modal */
.bio-modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.bio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bio-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.bio-image {
  width: 150px;
  height: 150px;
  background-color: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* LinkedIn button shown under the bio image in the modal */
.bio-image .linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.6rem;
  padding: 0.35rem 0.6rem;
  background: white;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.bio-image .linkedin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.bio-image .linkedin-button img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Small clickable LinkedIn icon (no text) used in bio modal */
.bio-image .linkedin-icon {
  display: inline-block;
  margin-top: 0.6rem;
}

.bio-image .linkedin-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

/* LinkedIn icon inside bio image */
.bio-image {
  position: relative;
}

.bio-image .bio-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bio-image a.linkedin {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none;
}

.bio-image a.linkedin svg {
  width: 18px;
  height: 18px;
  fill: #0A66C2;
}

.bio-info h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.bio-title {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bio-close {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

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

/* News Section */
.news-list {
  list-style: none;
  margin-top: 2rem;
  max-width: 800px;
}

.news-item {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-color);
}

.news-item:hover {
  background-color: var(--light-gray);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.news-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.2rem;
}

/* News Modal */
.news-modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.news-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-content h2 {
  color: var(--primary-color);
  margin-top: 0;
}

.news-content .news-date {
  display: block;
  margin-bottom: 1rem;
}

.news-close {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

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

/* Contact Section */
.contact-info {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  margin-top: 2rem;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  .section-title {
    font-size: 0.95rem !important;
  }

  .partner-header {
    flex-direction: column;
    gap: 1rem;
  }

  .partner-header h1 {
    flex-direction: column;
    gap: 0.5rem;
  }

  .partner-logo-title {
    max-width: 80px;
  }

  .leadership-grid,
  .approach-points {
    grid-template-columns: 1fr;
  }

  .partner-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .partner-logo-section {
    text-align: center;
  }

  .partner-logo {
    max-width: 200px;
  }

  .bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-image {
    width: 120px;
    height: 120px;
  }
}
