/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  background-color: rgba(0, 0, 0, 0.5);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 0;
    background-image: url("loop.png");

}

/* 50% Width Container Constraints */
.page-container {
  width: 100vmin; /* Takes up exactly half the viewport width */
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-radius: 1em;
  box-shadow: 0 0 0 2px black, 0 0 0 8px white, 0 0 0 10px black;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vw;
  background-color: rgba(0, 0, 0, 0.5);
}

.navbar .logo {
  height: 80px;                  /* Control the size using height, not width */
  width: auto;                   /* Maintains perfect aspect ratio */
  max-width: 100%;               /* Ensures responsiveness */
  object-fit: contain;           /* Safeguards against stretching if width is forced */
  margin-right: auto;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 24px;
  box-sizing:border-box;
  padding-inline: 20px;

}


.navbar .nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
  box-shadow: 0 0 0 2px black, 0 0 0 8px white, 0 0 0 10px black;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 2pt;
}

.navbar .nav-links a:hover {
  color: #007aff;
}

/* Sectioned Middle Part */
.middle-section {
  margin: 1em;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Space between articles */
  box-sizing:border-box;
}

/* Article Styles */
.article-card {
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1em;
  box-shadow: 0 0 0 2px black, 0 0 0 8px white, 0 0 0 10px black;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: bold;
  color: #ffffff;
  
  /* 1. Define your stroke thickness and color */
  -webkit-text-stroke: 4px black; 
  
  /* 2. Re-order the rendering layout to keep the fill on top */
  paint-order: stroke fill;
}


.article-card .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.article-card h2 {

  margin-bottom: 10px;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.95rem;

  line-height: 1.6;
  margin-bottom: 15px;
}

.article-card .read-more {
  font-size: 0.9rem;

  text-decoration: none;
  font-weight: 600;
}

.article-card .read-more:hover {
  text-decoration: underline;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
  .page-container {
    width: 95vw; /* Expands on mobile devices for readability */
  }
}
