/* General Body Styling */
body {
    background-color: #282828; /* Deep grey */
    color: #A6925E; /* Text color contrasting the dark background */
    font-family: Verdana, sans-serif;
    margin: 0;
    padding: 0;
  }

  /* centering header */

  .header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
  
  /* Centering content */
  .content-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
  }
  
  /* Grid for the icons */
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px; /* Limits grid width */
    margin: 0 auto;
  }
  
  /* Individual icon card styling */
  .icon-card {
    background-color: #282828; /* Slightly lighter blue for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .icon-card:hover {
    transform: scale(1.05); /* Hover effect for interactivity */
  }
  
  .icon-card img {
    width: 100%;
    height: 200px; /* Thumbnail size */
    object-fit: contain; /* Ensures the entire image is visible without distortion */
    background-color: #1e2048; /* Background color to fill gaps in aspect ratio */
  }
  
  .icon-title {
    font-size: 18px;
    font-weight: bold;
    color: #A6925E;
    padding: 10px 0;
  }
  
  .icon-description {
    font-size: 14px;
    color: #A6925E;
    padding: 10px 15px;
    line-height: 1.5;
  }

  /* Main Menu Styling */
.main-menu {
    text-align: center;
    margin-top: 10px;
  }
  
  .main-menu ul {
    list-style-type: none;
    padding: 0;
  }
  
  .main-menu ul li {
    display: inline-block;
    margin-right: 15px;
  }
  
  .main-menu ul li a {
    text-decoration: none;
    color: #DCC278; /* White menu text */
    font-weight: bold;
  }
  
  .main-menu ul li a:hover {
    color: #007BFF; /* Light blue hover effect */
  }
  
  /* Scroll to Top Arrow Styling */
  #scroll-arrow {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #222;
    color: #A6925E;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    font-size: 24px;
    cursor: pointer;
    text-align: center;
  }
  
  #scroll-arrow:hover {
    background-color: #444;
  }
  
  /* Responsive Design for Mobile (Portrait Mode) */
  @media (max-width: 768px) {
    .icon-grid {
      grid-template-columns: 1fr; /* Stack the icons vertically */
    }
  
    .icon-card img,
    .post img { /* Apply to both icon and post images */
      height: auto; /* Let the image height adjust automatically */
    }
  
    .main-menu ul li {
      display: block;
      margin-bottom: 10px; /* Stack menu items vertically */
    }
  }
  
  @media (max-width: 480px) {
    .icon-card img,
    .post img { /* Ensure image is fully visible on small screens */
      height: auto; /* Ensure image is fully visible on small screens */
    }
  
    .icon-description,
    .post h2, 
    .post p { /* Add for text styling in posts */
      font-size: 12px;
      padding: 8px; /* Adjust description padding for small screens */
    }
  }
  