/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General body and container styling */
body {
  background-color: #050019;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

/* About Me & Skills heading separate */
header > div {
  margin-bottom: 40px;
}

header h2 {
  font-size: 2.2rem;
  border-bottom: 2px solid white;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* Blog posts container with flex wrap */
.container > .section {
  background-color: #0c0c1f;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1.5px solid white;

  /* Flexible size based on content */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left align content */
  gap: 15px; /* space between children */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Images inside posts */
.container > .section img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}

/* Headings inside posts */
.container > .section h2 {
  font-size: 1.8rem;
  margin: 0 0 12px 0;
  line-height: 1.2;
  color: white;
}

/* Paragraph inside posts */
.container > .section p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #ddd;
}

/* Read More button - white bg, black text, no lighting on hover except color swap */
.container > .section a.read-more-btn {
  background-color: white;
  color: #050019;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: none;
}

.container > .section a.read-more-btn:hover {
  background-color: #050019;
  color: white;
}

/* Remove any hover lighting on post container */
.container > .section:hover {
  background-color: #17171a; /* exactly same as normal */
}

/* Responsive layout */

/* Desktop and wider screens (>= 900px) */
@media (min-width: 900px) {
  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
  .container > .section {
    flex: 1 1 calc(50% - 30px);
    margin-bottom: 0;
    max-width: calc(50% - 30px);
  }
}

/* Mobile and smaller screens (< 900px) */
@media (max-width: 899px) {
  .container {
    display: block;
  }
  .container > .section {
    width: 100%;
  }
}
