:root {
  --template-color-0: #0073e6;
  --template-color-1: #f4f4f4;
}

/* General Styling */
body {
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

main {
  min-height: 91vh;
}

a {
  text-decoration: none;
}

p {
  opacity: 100% !important;
}

/* Main Content */
#blogPosts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-height: 90dvh;
  overflow: auto;
}

.mainHeading {
  text-align: center;
  font-size: 3rem;
  padding-top: 4.5rem;
  color: #333;
}

#entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

body:has(#sidebar-wrapper) #entries {
  margin: 0 auto;
}

body:has(#sidebar-wrapper) #blogPosts {
  margin: 0 auto;
}

.blogPost {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-direction: column;
  padding: 1rem;
  width: 100%;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.blogPost:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blogPost img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.blogPost p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blogPost-content {
  padding: 20px;
}

.blogPost h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #333;
}

.blogPost p {
  color: #666;
}

.post-meta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: auto;
  font-size: 0.9em;
  color: #999;
}

.post-meta .date {
  margin-left: auto;
  align-self: flex-end;
  font-weight: bold;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  #blogPosts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Blogger Section Styling */
section.blogger {
  padding: 30px;
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

section.blogger ul,
section.blogger ol {
  list-style-type: disc;
  margin-left: 40px;
  padding: 0;
  font-size: 0.9em;
}

section.blogger li {
  margin-bottom: 12px;
}

section.blogger li a {
  color: var(--template-color-0);
}

section.blogger h1,
section.blogger h2,
section.blogger h3 {
  text-align: center;
  color: #222;
  font-weight: bold;
}

section.blogger h1 {
  font-size: 2em;
  margin-bottom: 0.6em;
}

section.blogger h2 {
  font-size: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

section.blogger h3 {
  font-size: 1.25em;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

section.blogger p {
  margin-bottom: 1.2em;
}

/* Blogger Section Styling */
section.wikipedian {
  padding: 30px;
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

section.wikipedian ul,
section.wikipedian ol {
  list-style-type: disc;
  margin-left: 40px;
  padding: 0;
  font-size: 0.9em;
}

section.wikipedian li {
  margin-bottom: 12px;
}

section.wikipedian li a {
  color: var(--template-color-0);
}

section.wikipedian h1,
section.wikipedian h2,
section.wikipedian h3 {
  text-align: center;
  color: #222;
  font-weight: bold;
}

section.wikipedian h1 {
  font-size: 2em;
  margin-bottom: 0.6em;
}

section.wikipedian h2 {
  font-size: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

section.wikipedian h3 {
  font-size: 1.25em;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

section.wikipedian p {
  margin-bottom: 1.2em;
}

.info {
  display: flex;
  justify-content: space-between;
  margin: 1rem;
}

.info span {
  text-align: center !important;
  font-weight: normal;
}

.info p {
  text-align: center !important;
  margin: 0 !important;
  font-weight: bold;
}

.info .author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.info .date {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.coverImage {
  width: 99vw;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  filter: brightness(110%) contrast(110%) saturate(120%);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

section.blogger strong {
  color: #111;
}

section.blogger em {
  color: #555;
}

section.blogger img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

code {
  background-color: #f4f4f4;
  padding: 5px;
  border-radius: 5px;
  font-size: 0.9em;
}

body:has(#sidebar-wrapper) {
  padding-left: 280px;
}

@media (max-width: 768px) {
  body:has(#sidebar-wrapper) {
    padding-left: 0;
  }
}

pre {
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9em;
  overflow-x: auto;
}
