:root {
  --primary-red: #002f3a;
  --text-dark: #2d2d2d;
  --text-light: #555;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --gray-border: #ddd;
  --font-serif: "Merriweather", serif;
  --font-sans: "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #f0f0f0;
  color: var(--text-dark);
  /* padding: 20px; */
}

h2.section-title {
  font-family: var(--font-serif);
  color: #035971;
  font-size: 2rem;
  margin: 20px 0rem 1rem 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.highlight-card,
.article,
.trending,
.ad-box {
  /* background-color: var(--bg-white); */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.titleee {
  padding: 10px;
  color: #ffffff;
  position: absolute;
  bottom: 0;
  font-weight: 500;
  font-size: 1.2rem;
}

.ad-box {
  border-radius: 0px;
}

.highlight-card img,
.article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.highlight-card .content,
.article .content {
  padding: 0px 15px;
}

.highlight-card .year-tag,
.highlight-card .author,
.article .author {
  font-size: 12px;
  color: #919191;
  margin-top: 20px;
}

.highlight-card .titlee,
.article .titlee {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: bold;
  color: var(--bg-white);
  /* position: absolute; */
  display: inline-block;
  /* background-color: rgba(0, 0, 0, 0.5); */
  /* padding: 8px; */
  padding-bottom: 10px;

  border-radius: 24px;
}

.highlight-container {
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.highlight-card {
  position: relative;
  flex: 1;
  background-image: linear-gradient(
      to bottom,
      rgba(255, 0, 0, 0),
      rgba(0, 0, 0, 0.5)
    ),
    url(./assets/vi23.jpg);
  background-size: cover;
  height: 260px;
}

.highlight-card :hover {
  cursor: pointer;
  transition: 0.3s;
  background-image: linear-gradient(
      to bottom,
      rgba(255, 0, 0, 0),
      rgba(0, 0, 0, 1)
    ),
    url(./assets/vi23.jpg);
}

.ad-box img {
  width: 100%;
  height: auto;
  display: block;
}

.articles-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* margin-top: 20px; */
}

.article {
  display: flex;
  gap: 15px;
  width: 100%;
  background: white;
  padding: 10px;
  border-radius: 24px;
  align-items: flex-start;
}

.article img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.article .content {
  flex: 1;
}

.article .titlee {
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 4px;
}

.article .meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.article .desc {
  font-size: 14px;
  color: var(--text-light);
}

.trending {
  background: white;
  padding: 15px;
  border-radius: 24px;
  max-width: 300px;
}

.trending h3 {
  color: var(--primary-red);
  font-family: var(--font-serif);
  margin-bottom: 10px;
  font-size: 18px;
}

.trending ul {
  list-style: none;
}

.trending li {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.trending li::before {
  content: counter(item) ". ";
  counter-increment: item;
  color: var(--primary-red);
  font-weight: bold;
}

.trending ul {
  counter-reset: item;
}

@media (max-width: 768px) {
  .highlight-container {
    flex-direction: column;
    display: none;
  }

  h2.section-title {
    margin-bottom: 0;
  }
  .articles-section {
    flex-direction: column;
  }
  .trending {
    max-width: 100%;
  }
}
