* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #f5f5f5;
}

/* Hero Banner - Mobile First */
.hero {
  background-image: url("/blog/images/hero_blog.jpg");
  background-size: cover;
  background-position: center;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero-content {
  max-width: 100%;
  z-index: 2;
}

.hero h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 16px;
  font-weight: 300;
}

/* Section Title */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 3px solid #dc0000;
  padding-bottom: 15px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.sort-dropdown {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.sort-dropdown label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  order: 1;
}

.sort-dropdown select {
  display: block;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: 12px;
  order: 2;
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

/* Articles Grid - Mobile First */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 100%;
  height: 150px;
  background-color: #e0e0e0;
  object-fit: cover;
}

.article-content {
  padding: 15px;
}

.article-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-description {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* Tablet */
@media (min-width: 640px) {
  .hero {
    height: 300px;
    padding: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .container {
    padding: 0 20px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .article-image {
    height: 180px;
  }

  .sort-dropdown {
    flex-direction: row;
    width: auto;
    flex-wrap: nowrap;
  }

  .sort-dropdown select {
    min-width: 150px;
  }

  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .hero {
    height: 400px;
    padding: 60px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero p {
    font-size: 24px;
  }

  .container {
    padding: 0 20px;
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
  }

  .article-image {
    height: 200px;
  }

  .article-content {
    padding: 25px;
  }

  .article-date {
    font-size: 12px;
  }

  .article-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .article-description {
    font-size: 14px;
  }

  .sort-dropdown select {
    min-width: 180px;
  }
}
