/* card.module.css */

.blogContainer {
  display: grid;
  justify-content: center;
  padding: 20px;
  background-color: #f9f9f9;
}

.blogList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
}

.blogCard {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-decoration: none;
  color: #333;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.blogCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.blogTitle,
.blogDescription,
.blogDate,
.blogAuthors,
.blogExcerpt,
.blogReadMoreButton {
  text-decoration: none; 
}

.blogTitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0a2540;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blogDescription {
  font-size: 16px;
  margin-bottom: 10px;
  color: #666666;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blogDate {
  font-size: 14px;
  color: #999999;
  margin-bottom: 10px;
}

.blogAuthors {
  font-size: 14px;
  color: #555555;
}

.blogReadMoreButton {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0a2540;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.blogReadMoreButton:hover {
  background-color: #0c3c60;
}

.blogExcerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

[data-theme="dark"] .blogContainer {
  background-color: black;
}

[data-theme="dark"] .blogCard {
  background-color: #212121;
  border: 1px solid #888888;
}

[data-theme="dark"] .blogTitle,
.blogReadMoreButton {
  color: #ffffff;
}

[data-theme="dark"] .blogDescription {
  color: #cdcdcd;
}

[data-theme="dark"] .blogDate,
.blogAuthors,
.blogExcerpt {
  color: #888888;
}

[data-theme="dark"] .blogReadMoreButton {
  background-color: #1b2b50;
}
