:root {
  --blue-main: #2c3658;
  --blue-light: #e9e9e9;
  --text-dark: #1f2937;
  --white: #ffffff;
}

/* Base */
body {
  margin: 0;
  font-family: "Futura", sans-serif;
  background: var(--blue-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

/* Header */
.site-header {
  background: #2c3658;
  color: var(--white);
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 1001;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Navigation Links */
.nav {
  display: flex;
  gap: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav a {
  color: var(--white);
  text-decoration: none;
}


/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Main Body */
main.container {
  background: var(--white);
  padding: 2rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  color: #4b5563;
}

/* Mission Section */
.mission-section {
  margin-top: 3rem;
}

.mission-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.mission-text {
  flex: 1;
}

.mission-title {
  font-style: italic;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: var(--text-dark);
}

.mission-quote {
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.mission-photo {
  flex-shrink: 0;
  width: 300px;
  height: 375px;
  overflow: hidden;
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mission-description {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Hide nav by default */
  .nav {
    display: flex;
    flex-direction: column;
    background: #2c3658;
    padding: 0;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: auto;
    min-width: fit-content;
    height: 100vh;
    z-index: 999;
    justify-content: flex-start;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  /* Show nav when toggled */
  .nav.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    left: auto;
  }

  /* Hamburger visible */
  .hamburger {
    display: block;
    z-index: 1000;
    position: relative;
  }

  /* Stack nav items vertically */
  .nav a {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    display: block;
    white-space: nowrap;
  }

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


  /* Header content spacing */
  .header-inner {
    flex-wrap: wrap;
  }

  /* Logo alignment on mobile */
  .gp-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gp-logo {
    object-fit: contain;
    object-position: center;
  }

  /* Scroll to Top Button - Mobile */
  .scroll-to-top {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    left: auto !important;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Main container padding on mobile */
  main.container {
    padding: 1rem;
  }

  /* Mission Section - Mobile */
  .mission-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mission-photo {
    width: 100%;
    max-width: 450px;
    height: 562px;
    margin: 0 auto;
  }

  .mission-title {
    font-size: 1.25rem;
  }
}

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

.gp-logo-link:hover,
.gp-logo-link:active,
.gp-logo-link:visited {
  text-decoration: none;
  color: inherit;
}

.gp-logo {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: contain;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #2c3658;
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  padding: 0;
}

.scroll-to-top:hover {
  background: #1e2a47;
}

.scroll-to-top:active {
  transform: scale(0.95);
}

/* Blog Entries */
.blog-entries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-entry {
  display: flex;
  background: var(--white);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.blog-entry:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-entry-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  overflow: hidden;
  background: var(--blue-light);
}

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

.blog-entry-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-entry-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.blog-entry-title a {
  color: var(--blue-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-entry-title a:hover {
  color: #1e2a47;
  text-decoration: underline;
}

.blog-entry-excerpt {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Styles for Blog */
@media (max-width: 768px) {
  .blog-entry {
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-entry-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    box-sizing: border-box;
  }

  .blog-entry-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blog-entry-content {
    padding: 1rem;
    box-sizing: border-box;
  }

  .blog-entry-title {
    font-size: 1.25rem;
  }
}
