/* Halaman blog Fiqram */
:root {
  --primary-color: #3a5bbd;
  --secondary-color: #1a2c56;
  --accent-color: #6084eb;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-gray: #777777;
  --bg-light: rgba(231, 26, 26, 0.8);
  --bg-gray: rgba(240, 240, 240, 0.8);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

main {
  padding-top: 74px;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-header .header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header .subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 5px;
}

.section-header h2 {
  font-size: 32px;
  color: #fff;
  position: relative;
}

/* Blog Sections */
.popular-articles,
.all-articles {
  background: linear-gradient(rgba(26, 44, 86, 0.95), rgba(26, 44, 86, 0.95)), url('img/image.png');
  background-size: cover;
  padding: 80px 0;
  color: var(--text-light);
}

.popular-articles {
  padding-bottom: 40px;
}

.all-articles {
  padding-top: 40px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.all-articles .section-header h2 {
  color: var(--text-dark);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Article Card Styles */
.article-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.all-articles .article-card {
  background: var(--text-light);
  box-shadow: var(--shadow);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.all-articles .article-content h3 {
  color: var(--text-dark);
}

.article-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.all-articles .article-meta {
  color: var(--text-gray);
}

.article-meta i {
  margin-right: 5px;
}

.read-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-color);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Article Category */
.article-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  background-color: var(--accent-color);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  z-index: 2;
}

/* Pagination */
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: white;
  color: var(--text-dark);
  transition: var(--transition);
}

.pagination a.next {
  width: auto;
  padding: 0 20px;
}

.pagination a.active, .pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}
/* Newsletter Section */
.newsletter {
  background-color: var(--bg-gray);
  padding: 80px 0;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.newsletter-content p {
  color: var(--text-gray);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  outline: none;
}

.newsletter-form button {
  padding: 15px 30px;
  background-color: var(--accent-color);
  color: var(--text-light);
  border: none;
  border-radius: 0 5px 5px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--primary-color);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .search-bar {
    align-self: stretch;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-buttons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 5px;
  }
}