/* style.css 4/30/25*/

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}
 header {
width: 100vw; 
 }

header, footer {
  background-color: var(--primary);
  color: black;
  text-align: center;
  padding: 1em;
  background-size: cover; 
  max-width: 100%;
  width: 100vw;

}



main {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

#blog-posts, #related-posts {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.blog-post {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  padding: 15px;
  transition: transform 0.3s;
}

.blog-post.featured {
  border: 2px solid #f39c12;
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  max-width: 100%;
  display: block;
  border-radius: 5px;
}

.blog-post h2 {
  margin-top: 0;
}

.blog-post p {
  line-height: 1.6em;
}
/* ==== BUTTON STYLING ==== */
button {
  padding: 8px 16px;
  margin: 5px;
  background-color: #000000;
  color: white;
      border: none;
      border-style: solid;
      border-color: white;
  border-radius: 5px;
  cursor: pointer;
      transition: background-color 0.3s;
}

button:hover {
  background-color: #800000;
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

input[type=search] {
  padding: 10px;
  margin: 10px 0;
  width: 80%;
  max-width: 400px;
}

/* Dark Mode Variables;-Backgrounds  */
:root {
  --background: #f8f9fa;
  --text: #000000;
  --primary: #C7AB84;
}

.dark-mode {
  --background: #121212;
  --text: #e0e0e0;
  --primary: #A4D8D8;
}
/* t-e0e0e0 P-1a73e8 */
.post {
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
.post h2 {
  margin: 0 0 10px;
}
.link {
    display: inline-block;
    padding: 6px 15px;
    font-size: 14px;
    color: #fff;
    background-color: #000000;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border-style: solid;
    border-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.link:hover {
    background-color: #800000;
}