/* Blog Page Styles */

/* Hero Section */
.blog-hero {
  height: 60vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('images/AN\ OPEN\ JAIL\ \(Cover\).jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  animation: scale-bg 20s infinite alternate;
}

.blog-hero .hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.blog-hero h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.blog-hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Blog Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.blog-header p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-post {
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-post.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-image {
  height: 250px;
  overflow: hidden;
}

.blog-post.featured .blog-image {
  height: 100%;
}

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

.blog-post:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

.blog-post h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post.featured h3 {
  font-size: 2rem;
}

.blog-excerpt {
  color: #ddd;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-read-more {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #7a2626;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-read-more:hover {
  background-color: #9e3131;
}

/* Subscribe Section */
.blog-subscribe {
  background-color: rgba(30, 30, 30, 0.7);
  padding: 4rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.subscribe-container {
  max-width: 700px;
  margin: 0 auto;
}

.blog-subscribe h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-subscribe p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ddd;
}

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

.subscribe-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.btn-subscribe {
  padding: 1rem 2rem;
  background-color: #7a2626;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
  background-color: #9e3131;
}

/* Single Blog Post Page */
.single-blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.single-blog-header {
  margin-bottom: 2rem;
}

.single-blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #aaa;
}

.single-blog-meta span {
  display: flex;
  align-items: center;
}

.single-blog-meta i {
  margin-right: 0.5rem;
}

.single-blog-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.single-blog-featured-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.single-blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #eee;
}

.single-blog-content p {
  margin-bottom: 1.5rem;
}

.single-blog-content h2,
.single-blog-content h3 {
  margin: 2rem 0 1rem;
}

.single-blog-content blockquote {
  border-left: 4px solid #7a2626;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #ddd;
}

.single-blog-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-share {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

.blog-share h3 {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.share-button i {
  margin-right: 0.5rem;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.facebook {
  background-color: #4267b2;
}

.share-button.whatsapp {
  background-color: #25d366;
}

.related-posts {
  margin-top: 4rem;
}

.related-posts h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-post.featured {
    grid-template-columns: 1fr;
  }

  .blog-post.featured .blog-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 3.5rem;
  }

  .blog-hero p {
    font-size: 1.2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input {
    border-radius: 4px;
    margin-bottom: 1rem;
  }

  .btn-subscribe {
    border-radius: 4px;
    width: 100%;
  }

  .single-blog-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 2.5rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
