/* Custom CSS for Carpool.School Blog */

/* Dark theme background with pattern */
body {
  background-color: #171A1C !important;
  font-family: 'Inter', sans-serif !important;
  color: #FFFFFF !important;
  line-height: 1.8;
  font-size: 18px;
}

body:before {
  background-attachment: scroll;
  content: '';
  display: block;
  height: 100vh;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: scale(1);
  width: 100vw;
  z-index: 0;
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20path%20%7B%20fill%3A%20none%3B%20stroke%3A%20rgba(255,255,255,0.059)%3B%20stroke-width%3A%201.01px%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20%7D%20%3C%2Fstyle%3E%20%3Cpath%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M416%2C192L256%2C320L96%2C192L256%2C64L416%2C192z%20M96-64L256%2C64L416-64%20M416%2C576V448L256%2C576%20M256%2C576L96%2C448v128%20M512%2C191L512%2C191L352%2C320l160%2C128.3L672%2C320L352%2C64l320-256%20M512%2C191L672%2C64L352-192%20M160-192L-160%2C64l320%2C256L0%2C448.3%20M0%2C448.3%20L-160%2C320L160%2C64l-320-256%20M416%2C448L256%2C320L96%2C448%20M96-64v76.8%20M416-64v76.8%20M352%2C64v76.8%20M160%2C64v76.8%20M96%2C192v76.8%20M416%2C192%20l-0.5%2C76.8%20M352%2C320v76.8%20M160%2C320v76.8%20M160%2C115.2l15.8%2C13%20M352%2C115.2l-16.2%2C13%20M352%2C371.2l-16.2%2C13%20M160%2C371.2l16.2%2C13%20M671.5%2C575.4l-160-128l-160%2C128%20M159.5%2C575.4l-160-128l-160%2C128%22%20%2F%3E%3C%2Fsvg%3E');
  background-size: 615px;
  background-position: center;
  background-repeat: repeat;
}

/* Override any theme background colors */
.bg-white, .near-white, .white {
  background-color: transparent !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  line-height: 1.3;
  color: #eef0ff !important;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Responsive typography for headings */
@media screen and (max-width: 768px) {
  /* Tablet devices */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  h5, h6 { font-size: 1rem; }
}

@media screen and (max-width: 480px) {
  /* Mobile devices */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  h4, h5, h6 { font-size: 1rem; }
}

/* Links */
a {
  color: #FFFFFF;
  transition: color 0.3s ease;
}

a:hover {
  color: #FFC904 !important;
  text-decoration: none;
}

/* Make sure all text is white and properly spaced */
p, span, div, li, td, th {
  color: #eef0ff !important;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Make sure list items are spaced out */
li {
  margin-bottom: 1rem;
}


/* Content footer divider */
hr {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  margin: 0;
}

/* Main content container */
.main-container {
  max-width: 1024px;
  margin: 0px auto 0;
  padding: 2rem;
}

/* Responsive margins for main container */
@media screen and (max-width: 768px) {
  /* Tablet devices */
  .main-container {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  /* Mobile devices */
  .main-container {
    padding: 1rem;
  }
}

/* Card container style */
.card-container {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Article styling */
article {
  padding: 0 1rem;  
}

/* Add more spacing between paragraphs */
article p + p {
  margin-top: 1.5rem;
}

/* Blog posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.post-card .card-content {
  padding: 1.5rem;
}

.post-card .card-image {
  height: 180px;
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pagination a {
  background-color: rgba(255, 255, 255, 0.1);
}

.pagination a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.pagination .current {
  background-color: rgba(238, 215, 90, 0.2);
  color: #FFC904;
  font-weight: bold;
}
