/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #000; /* Black background */
    color: #FFD700; /* Yellow text */
  }

  a {
    color: #FFD700;
    text-decoration: none;
  }

  a:hover {
    color: #FFF; /* Hover effect */
  }

  header {
    background-color: #111; /* Darker black for contrast */
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  }

  header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #FFD700;
  }

  header p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #FFF;
  }

  nav {
    margin: 20px 0;
    text-align: center;
  }

  nav a {
    margin: 0 15px;
    font-weight: bold;
  }

  nav a:hover {
    text-decoration: underline;
  }

  /* Blog Section */
  .blog-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .blog-card {
    background-color: #111;
    border: 2px solid #FFD700;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
  }

  .blog-card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #FFD700;
  }

  .blog-content {
    padding: 15px;
  }

  .blog-content h2 {
    font-size: 1.5rem;
    margin: 0 0 10px;
  }

  .blog-content p {
    font-size: 1rem;
    color: #FFF;
    margin: 0 0 15px;
  }

  .blog-content a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #FFD700;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }

  .blog-content a:hover {
    background-color: #FFF;
  }

  /* Footer */
  footer {
    background-color: #111;
    padding: 20px;
    text-align: center;
    color: #FFF;
  }

  footer a {
    font-weight: bold;
  }

  /* Responsive Design */
  @media screen and (max-width: 768px) {
    header h1 {
      font-size: 2rem;
    }

    .blog-container {
      grid-template-columns: 1fr;
    }
  }

  /* Dialog Styling */
.blog-dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: #000;
  color: #FFD700;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.blog-dialog-content img.dialog-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.blog-dialog.active,
.dialog-overlay.active {
  display: block;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #333;
  color: #FFD700;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}
/* Dialog Styling */
.blog-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: #000;
    color: #FFD700;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    text-align: center;
    overflow-y: auto; /* Enable scrolling */
    max-height: 80%; /* Restrict height for scrolling */
  }
  
  /* Image Styling */
  .blog-dialog-content img.dialog-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  }
  
  /* Close Button Styling */
  .dialog-close-top,
  .dialog-close-bottom {
    background-color: #333;
    color: #FFD700;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    position: relative;
    margin: 10px auto;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  .dialog-close-top:hover,
  .dialog-close-bottom:hover {
    background-color: #FFD700;
    color: #333;
  }
  
  .dialog-close-top {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  /* Overlay Styling */
  .dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  /* Active States */
  .blog-dialog.active,
  .dialog-overlay.active {
    display: block;
  }
  