/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f8f8f8;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Banner styling with overlay */
.blog-opener-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-opener-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.blog-opener-banner .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.blog-opener-banner .page-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  display: inline-block;
}

.blog-opener-banner .page-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F1752C;
  border-radius: 2px;
}

/* Blog articles container */
.blog-articles-wrapper {
  padding: 60px 0;
}

.blog-articles-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog grid layout */
.wrapper#blogs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Article card styling */
.article {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(241, 117, 44, 0.2);
}

/* Image container */
.article .image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article .image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(241, 117, 44, 0.1), rgba(241, 117, 44, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article:hover .image::after {
  opacity: 1;
}

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

.article:hover .image img {
  transform: scale(1.1);
}

/* Content area */
.article .content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Date styling */
.article .date {
  color: #F1752C;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
}

.article .date::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #F1752C;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Title styling */
.article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #222;
  transition: color 0.3s ease;
}

.article:hover h2 {
  color: #F1752C;
}

/* Description styling */
.article .description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Load more button */
.load_more {
  background-color: #F1752C;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(241, 117, 44, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.load_more:hover {
  background-color: #e05e1a;
  box-shadow: 0 8px 20px rgba(241, 117, 44, 0.5);
  transform: translateY(-3px);
}

.load_more:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(241, 117, 44, 0.3);
}

/* Read more link styling (can be added to the card) */
.article::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #F1752C;
  transition: width 0.3s ease;
}

.article:hover::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .wrapper#blogs {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .blog-opener-banner .page-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .wrapper#blogs {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .blog-opener-banner {
    height: 220px;
  }
  
  .blog-opener-banner .page-title {
    font-size: 2.5rem;
  }
  
  .blog-articles-wrapper {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .wrapper#blogs {
    grid-template-columns: 1fr;
  }
  
  .blog-opener-banner .page-title {
    font-size: 2rem;
  }
  
  .article .image {
    height: 200px;
  }
  
  .article .content {
    padding: 20px;
  }
  
  .article h2 {
    font-size: 1.3rem;
  }
}