/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
 
}

/* Header */
.header {
  text-align: center;
  padding: 40px 20px;
  background-color: #b30000;
  animation: fadeIn 1s ease-in-out;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.header p {
  opacity: 0.8;
}

/* Blog Container */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
  padding: 40px 20px;
  animation: slideUp 1.2s ease-in-out;
  padding-left: 150px;
  padding-right: 150px;
}

/* Blog Card */
.blog-card {
  background: #111;
  border: 1px solid #b30000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

/* Image */
.blog-card img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Content */
.blog-content {
  padding: 20px;
}

.blog-content h2 {
  color: #ff1a1a;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.blog-content p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #b30000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* For tablets (portrait) */
@media screen and (max-width: 468px) {
  .blog-container {
    width: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
  }

  /* Blog Card */
.blog-card {
  width: 50vw;

  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 80px;
}

.blog-content h2 {
  color: #ff1a1a;
  font-size: 1.1rem;
  margin-bottom: 10px;
  
}

.blog-content p {
  color: #ccc;
  font-size: 0.65rem;
  margin-bottom: 10px;
}

}

/* For tablets (portrait) */
@media screen and (max-width: 430px) {
  .blog-container {
    width: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
    
  }

  /* Blog Card */
.blog-card {
  width: 50vw;

  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

.blog-content h2 {
  color: #ff1a1a;
  font-size: 1.1rem;
  margin-bottom: 10px;
  
}

.blog-content p {
  color: #ccc;
  font-size: 0.65rem;
  margin-bottom: 10px;
}

}

/* For tablets (portrait) */
@media screen and (max-width: 375px) {
  .blog-container {
    width: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
  }

  /* Blog Card */
.blog-card {
  width: 50vw;
  margin-left:40px;
  
}

.blog-content h2 {
  color: #ff1a1a;
  font-size: 1.1rem;
  margin-bottom: 10px;
  
}

.blog-content p {
  color: #ccc;
  font-size: 0.65rem;
  margin-bottom: 10px;
}

}


/* For tablets (portrait) */
@media screen and (max-width: 390px) {
  .blog-container {
    width: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
  }

  /* Blog Card */
.blog-card {
  width: 50vw;
  margin-left:50px;
  
}

.blog-content h2 {
  color: #ff1a1a;
  font-size: 1.1rem;
  margin-bottom: 10px;
  
}

.blog-content p {
  color: #ccc;
  font-size: 0.65rem;
  margin-bottom: 10px;
}

}




