body {
    font-family: "Comic Sans MS", cursive, sans-serif;
    line-height: 1.6;
    background-color: #fff8dc;
    color: #333;
    background-image: url('../images/clouds.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}





/* Header */
.blog-header {
    text-align: center;
    padding: 20px;
    background-color: #ffcccb;
    color: #ff6347;
}
.blog-header h1 {
    font-size: 2.5rem;
    
}

/* Section title */
/* .section-title {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    color: #ff4500;
} */

/* Blog container */
/* .blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
} */

/* Blog items */
/* .blog-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: #fafad2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.blog-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.blog-item h3 {
    margin: 10px 0;
    color: #ff6347;
} */

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}
.modal:target {
    display: flex;
}
.modal-content {
    background: #ffcccb;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: auto;
}
.modal img {
    width: 100%;
    border-radius: 12px;
}
.modal h2 {
    margin-top: 15px;
    color: #ff4500;
}
.modal p {
    margin-top: 10px;
    color: #333;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
} 

/* Responsive Styles */
/* @media screen and (max-width: 768px) {
    .blog-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        padding: 15px;
    }
    .blog-header h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .blog-item img {
        height: 120px;
    }
    .modal-content {
        max-width: 90%;
        padding: 15px;
    }
    .modal img {
        width: 100%;
        height: auto;
    }
} */

/* Mobile view adjustments */
/* @media screen and (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .blog-container {
        padding: 10px;
    }
    .blog-item img {
        height: 100px;
    }
    .modal-content {
        padding: 10px;
    }
} */

/* Base Styles */

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .blog-item {
    text-align: center;
    color: #ff4500;
     display: flex;
     justify-content: center;
    margin: 15px;
    border-radius: 8px;
    width: 200px;
    padding: 20px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: #fafad2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;  
}
  
  .blog-item h3 {
    font-size: 1.5em;
    color: #ff4500;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
  }
  
  .modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #aaa;
    text-decoration: none;
  }
  
  .close-btn:hover,
  .close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Media Queries */
  @media screen and (max-width: 768px) {
    .blog-header h1 {
      font-size: 2em;
    }
  
    .blog-container {
      flex-direction: column;
      align-items: center;
    }
  
    .blog-item {
      width: 90%;
      margin-bottom: 15px;
    }
  
    .modal-content {
      width: 90%;
      padding: 15px;
    }
  
    .modal-content img {
      width: 100%;
      height: auto;
    }
  }
  
  @media screen and (max-width: 480px) {
    .blog-header h1 {
      font-size: 1.8em;
    }
  
    .blog-item {
      width: 100%;
      margin-bottom: 10px;
    }
  
    .modal-content {
      width: 95%;
      padding: 10px;
    }
  }
  