/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Navbar base */
.navbar {
    background-color: white;
    padding: 0.5rem 1rem;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-logo-container {
    font-size: 1.6rem;
    font-weight: bold;
    color: black;
}

/* Links desktop */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-weight: bold;
    font-size: 1rem;
}

.navbar-links li {
    display: inline;
}

.navbar-link {
    text-decoration: none;
    color: black;
    transition: color 0.2s ease;
}

.navbar-link:hover {
    color: #2a50b1;
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 25px;
    height: 20px;
    justify-content: center;
}

.navbar-toggle-icon {
    height: 3px;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open animation */
.navbar-toggle.open .navbar-toggle-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open .navbar-toggle-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open .navbar-toggle-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile styles */
@media (max-width: 900px) {
    .navbar-links {
        position: fixed;
        top: 0;
        left: -100%;
        /* hidden off screen */
        height: 100vh;
        width: 250px;
        background-color: white;
        flex-direction: column;
        padding: 4rem 1.5rem;
        gap: 1.5rem;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .navbar-links.active {
        left: 0;
        /* slide in */
    }

    .navbar-toggle {
        display: flex;
    }
}
main {
    max-width: 80%;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #24292e;

}

/* Related Posts Container */
.related-posts {
  margin: 40px 0;
  padding: 0 20px;
}

.related-posts h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  font-weight: 600;
}

/* Grid for related posts */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Each related post card */
.related-post {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.related-post a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 15px;
}

/* Hover effect */
.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Post image (if any) */
.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
  display: block;
  margin-bottom: 10px;
}

/* Post title */
.related-post h4 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #222;
  font-weight: 600;
}

/* Post description */
.related-post p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .related-posts h3 {
    font-size: 1.5rem;
  }

  .related-post h4 {
    font-size: 1.1rem;
  }

  .related-post p {
    font-size: 0.9rem;
  }
}


/* Footer Styles */
footer {
  background-color: #161b22; /* Dark background */
  color: #c9d1d9; /* Light text color */
  padding: 1.5rem 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #8b949e;
}

footer a {
  color: #58a6ff;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #238636;
}
.navbar-toggle {
    background: white;
    border: none;
}
/* Responsive: smaller screens */
@media (max-width: 600px) {
}

