/* assets/css/style.css */

/* — Reset & Base Styles — */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  color: #333;
  background-color: #fafafa;
}

/* — Utility Containers — */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* — Navigation — */
.site-nav {
  background-color: #004080;
}

.site-nav nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.site-nav nav li {
  margin: 0;
}

.site-nav nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.site-nav nav a:hover,
.site-nav nav a.active {
  background-color: #002a60;
}

/* — Hero Section — */
.hero {
  background-color: #e6f0fa;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #004080;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0.5rem auto 1.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  background-color: #004080;
  color: #fff;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #002a60;
}

/* — Main Content — */
.content h2 {
  font-size: 1.75rem;
  color: #004080;
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 1rem;
  color: #555;
}

/* — Highlights Grid — */
.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card h3 {
  color: #004080;
  margin-bottom: 0.5rem;
}

.card p {
  color: #555;
}

/* — Footer — */
.site-footer {
  background-color: #f4f4f4;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.site-footer p {
  color: #666;
  margin: 0.5rem 0;
}

.site-footer a {
  color: #004080;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Make the footer stick to the bottom of the viewport */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main.content {
  flex: 1 0 auto;
  min-height: 0;
}

.site-footer {
  flex-shrink: 0;
}

/* — Responsive Tweaks — */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .site-nav nav ul {
    flex-direction: column;
  }

  .site-nav nav a {
    text-align: center;
  }
}

.bio-section {
  background-color: #e6f0fa; /* light blue background */
  padding: 4rem 1rem;         /* space around the content */
  text-align: center;         /* center-align text */
}

/* Bio wrapper: side-by-side on desktop, stacked on mobile */
.bio-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr; /* photo column + text column */
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* or 50% for circle */
  object-fit: cover;
}

/* Card styles for bio text */
.bio-text.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: none;
}

/* On very small screens, stack them vertically */
@media (max-width: 600px) {
  .bio-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .bio-text.card {
    max-width: 90%;
  }
}
