/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== PAGE LAYOUT FIX ===== */
html, body {
  height: 100%;
}

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

footer {
  margin-top: auto;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f7fa;
  color: #1e1e1e;
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
nav {
  background: #0d1b2a;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: 0.2s;
}

nav a:hover {
  color: #4db8ff;
}

/* ===== HERO ===== */
.hero {
  background: #3a6ea5;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
}

.hero p {
  font-size: 22px;
  margin-top: 10px;
}

.hero .btn {
  margin-top: 25px;
  display: inline-block;
  padding: 12px 30px;
  background: #4db8ff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #66c9ff;
}

/* ===== SECTIONS ===== */
section {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

section h2 {
  margin-bottom: 25px;
  font-size: 32px;
  text-align: center;
}

/* ===== BLOG LIST ===== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.blog-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card a {
  color: #3a6ea5;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

.blog-card small {
  display: block;
  margin-top: 10px;
  color: #777;
}

/* ===== BLOG POST PAGE ===== */
.post-container {
  max-width: 850px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-container h1 {
  margin-bottom: 10px;
  font-size: 36px;
}

.post-container .date {
  color: #777;
  margin-bottom: 25px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 25px;
  background: #0d1b2a;
  color: white;
  margin-top: 50px;
}