/* root palette */
:root {
  --primary-color: #0072bb;
  --secondary-color: #333;
  --background-color: #f9f9f9;
  --text-color: #333;
  --link-color: #0072bb;
  --accent-color: #f8f8f8;
  --border-color: #e0e0e0;
}

/* reset / base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

/* header + nav */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: .95rem;
  transition: color .3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* hero */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .3s;
}

.cta-button:hover {
  background: #005999;
}

/* generic section */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

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

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

.card h3 {
  font-size: 1.3rem;
  margin-bottom: .75rem;
  color: var(--secondary-color);
}

.card p {
  color: #666;
  margin-bottom: 1rem;
}

/* featured articles */
.featured-content {
  padding: 3rem 0;
}

.featured-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.featured-article {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.featured-article.with-image {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.featured-article img.article-image,
.article-image {
  max-height: 290px;
  width: auto;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.featured-article .article-text,
.article-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  flex: 1;
}

.featured-article h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.featured-article p {
  color: #666;
  margin-bottom: 1.5rem;
}

.featured-article a {
  color: var(--primary-color);
}

/* join‑pilot */
.join-pilot {
  background: var(--accent-color);
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}

.join-pilot h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.join-pilot p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #666;
}

 /* footer */
 footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 3rem 2rem;
  width: 100%; /* full width */
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-content{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem;
}
.footer-column h3{font-size:1.2rem;margin-bottom:1.5rem;}
.footer-column ul{list-style:none;}
.footer-column li{margin-bottom:.75rem;}
.footer-column a{
  color:#ddd;
  text-decoration:none;
  transition:color .3s;
}
.footer-column a:hover{color:#fff;text-decoration:underline;}
copyright{
  max-width:1200px;
  margin:2rem auto 0;
  padding-top:1.5rem;
  border-top:1px solid rgba(255,255,255,.1);
  text-align:center;
  color:#aaa;
  font-size:.9rem;
}

/* ---------- content‑width wrapper ---------- */
.hero,
.section,
.featured-content,
.join-pilot {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* responsive */
@media (max-width: 768px) {
  .navbar {
    padding: .75rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .card {
    flex-direction: column;
  }

  .card-content {
    align-items: center;
    text-align: center;
  }

  .featured-article.with-image {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-image {
    max-width: 100%;
    height: auto;
  }

  .article-text {
    align-items: center;
  }
}
