/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fafc;
  color: #333;
  line-height: 1.7;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  z-index: 1000;
}

header h1 {
  font-size: 1.6rem;
  color: #004aad;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover {
  color: #004aad;
}

.subscribe-btn {
  background-color: #004aad;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.subscribe-btn:hover {
  background-color: #003080;
}

/* ===== Main Content ===== */
.container {
  max-width: 1300px;
  margin: 120px auto 60px auto;
  padding: 0 20px;
  text-align: center;
}

.container h1 {
  color: #004aad;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #004aad;
  display: inline-block;
  padding-bottom: 8px;
}

/* ===== Facts Grid ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  justify-items: center;
  align-items: start;
}

.fact-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 600px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.fact-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.fact-item p {
  padding: 18px 22px;
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

.fact-item strong {
  color: #004aad;
}

.fact-item em {
  color: #666;
}

/* ===== Footer ===== */
footer {
  background-color: #f8f9fa;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
}

footer p {
  margin: 6px 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .facts-grid {
    gap: 30px;
  }

  .fact-item img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fact-item {
    max-width: 90%;
  }

  .container h1 {
    font-size: 24px;
  }
}
