/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: #f9fafb;
  color: #222;
  line-height: 1.6;
}

/* Layout */
.container {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
}

/* Header */
.site-header {
  background: #0d6efd;
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.site-header nav a:hover {
  color: #ffc107;
}

/* Footer */
.site-footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Post cards */
.post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  padding: 20px;
  margin-bottom: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.post-card h3 {
  margin-bottom: 10px;
  color: #0d6efd;
  font-size: 1.3rem;
}

.post-card h3 a {
  text-decoration: none;
  color: inherit;
}

.post-card p.meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.post-card .btn {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.post-card .btn:hover {
  background: #0b5ed7;
}

/* Submit form */
form {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

form h2 {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 3px rgba(13,110,253,0.3);
}

form button {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background: #0b5ed7;
}
.post-image-wrapper {
    width: 100%;
    height: 300px; /* Fixed height for all images */
    overflow: hidden;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio, crops excess */
    object-position: center; /* Center the image */
}

/* Responsive */
@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .site-header nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .container {
    width: 95%;
  }
}
