/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
  padding-bottom: 100px; /* Slightly more than footer height */
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-size: 2em;
  color: #444;
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
}

nav a:hover {
  color: #e67e22;
}

/* Main content */
.content-container {
  margin-top: 30px;
}

.post {
  background: #fff;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.post img {
  width: 100%;
  height: auto;
  display: block;
}

.post .text {
  padding: 20px;
}

.post h2 {
  color: #333;
  margin-bottom: 10px;
}

/* Footer - Fixed at Bottom */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  text-align: center;
  z-index: 999;
  min-height: 90px;         /* Enough room for the ad */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.adsense-container {
  width: 100%;
  max-width: 970px;         /* Optional: controls width on desktop */
  margin: 0 auto;
  height: 90px;             /* Ensure enough space for the ad */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .site-title {
    font-size: 1.5em;
  }
}
