body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f4f4f4;
}

header, footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: #fff;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

main {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.teasers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .teasers {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet and larger */
  }
}

@media (min-width: 1024px) {
  .teasers {
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns on desktop */
  }
}

.teaser {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: black;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.teaser img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  color: blue;
  text-decoration: none;
}

.back-btn:hover {
  text-decoration: underline;
}

/* Header container for logo and title */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  gap: 15px; /* Space between logo and title */
  padding: 10px 0;
}

/* Logo image styling */
.logo {
  width: 50px;
  height: 50px;
  object-fit: contain; /* Keep aspect ratio */
  border-radius: 50%; /* Optional: make it circular */
  background: white; /* Optional: background if logo has transparency */
  padding: 5px; /* Optional: some inner padding */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: slight shadow */
}

/* Make sure header height and spacing are nice */
header {
  background: #EAE4D6;
  color: #000;
  padding: 10px 0;
  margin-bottom: 20px;
}

/* Title style */
header h1 {
  font-size: 1.8rem;
  margin: 0;
}

/* Hero Image */
.hero-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* Title and Subtitle */
.article-header {
  padding: 20px;
  text-align: center;
}

.article-header h1 {
  margin: 10px 0;
  font-size: 2.5rem;
}

.article-header h2 {
  color: #555;
  font-weight: 400;
  margin: 0;
  font-size: 1.4rem;
}

/* Separator */
.separator {
  border: none;
  border-top: 2px solid #ccc;
  margin: 20px auto;
  width: 90%;
}

/* Author Section */

.author-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Space between authors */
  margin: 20px 0 10px 0;
}

.author-card {
  text-align: center;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.author-name {
  font-weight: bold;
  margin: 0;
}

.publish-date {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 20px;
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content p {
  margin-bottom: 20px;
  text-align: justify;
}

/* Article Images */
.article-image {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Back Button */
.back-btn {
  display: block;
  text-align: center;
  margin: 40px auto;
  color: blue;
  text-decoration: none;
  font-weight: bold;
}

.back-btn:hover {
  text-decoration: underline;
}

/* Code block styling */
.code-block {
  background-color: #f5f5f5; /* Light gray background */
  border: 1px solid #ddd;   /* Soft border */
  border-radius: 4px;      /* Rounded corners */
  padding: 12px;           /* Space inside */
  margin: 20px 0;          /* Space around */
  font-family: "Courier New", Courier, monospace; /* Monospace font */
  font-size: 14px;         /* Good readable size */
  overflow-x: auto;        /* Horizontal scroll for long code */
  white-space: pre-wrap;   /* Wrap long lines */
  word-wrap: break-word;   /* Break long words */
}
