header {
  text-align: center;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

header h1 {
  margin-bottom: 5px;
  font-size: 2.5rem;
}
.back-button {
    position: fixed;
    top: 20px;
    left: 30px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.site-desc-main {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 10px auto 5px;
  text-align: center;
  color: #333;
}

.site-desc-sub {
  font-size: 1rem;
  max-width: 1000px;
  margin: 0 auto 20px;
  text-align: center;
  color: #555;
  line-height: 1.5;
}

main.homepage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
main button {
    top: 20px;
    left: 20px;
    margin-top: 10px;    
    padding: 10px 15px;
    font-size: 14px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
main button:hover {
    background-color: #000000a8;
}
main img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  display: block;
}

    body {
      font-family: Arial, sans-serif;
      background: #f7f7f7;
      margin: 0;
      padding: 20px;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      max-width: 1000px;
      margin: 0 auto;
      margin-bottom: 40px;
    }
    .card {
        background: #ffffff;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
        transition: transform 0.1s ease, box-shadow 0.2s ease;
        height: 500px;
        }

        .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        .teaser {
        margin-top: auto;
        font-size: 0.9rem;
        color: #666;
        }


.card img {
  width: 100%;
  height: 330px; 
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 10px;
}

    .name {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 4px;
    }

    .tagline {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 8px;
    }

    .bio {
        font-size: 0.95rem;
        line-height: 1.5;
    }

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto;
}

.page-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.1s ease, box-shadow 0.5s ease;
}

.page-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.page-card h2 {
  margin: 8px 0 4px;
  font-size: 1.4rem;
}

.page-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px 10px;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
footer a {
  color: #007BFF;
  text-decoration: none;
}
.profile {
  max-width: 800px;
  margin: 0 auto;
}

.profile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.bio-section {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}



@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .back-button {
    top: 10px;
    left: 20px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .profile-img {
    max-height: 350px;
  }

  .bio-section {
    padding: 15px;
    font-size: 1rem;
  }

  .profile {
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-card img {
    height: 200px;
  }
}
@media (max-width: 600px) {
  footer {
    font-size: 0.85rem;
    padding: 15px 5px;
  }
}
.top-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  background: #ffffff;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.top-nav a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
  font-size: 1rem;
}

.top-nav a:hover {
  color: #000;
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }

  .top-nav a {
    font-size: 1.1rem;
    padding: 5px 0;
  }
}
.top-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.top-nav a {
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  text-decoration: none;
  color: #444;
  font-weight: 600;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.top-nav a:hover {
  background: #e8e8e8;
  border-color: #cfcfcf;
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
  }

  .top-nav a {
    width: 80%;
    text-align: center;
  }
}
.back-button {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 14px;
  margin: 10px 0 20px 0;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  color: #444;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #e8e8e8;
  border-color: #cfcfcf;
}
@media (max-width: 600px) {
  .back-button {
    width: fit-content;
    margin: 10px auto 20px auto;
    display: block;
  }
}
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    font-size: 14px;
    z-index: 9999;
}

@media (max-width: 600px) {
    .back-button {
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    body {
        padding-top: 70px !important;
    }
}



