/* Footer Styles (If you're using this footer styling) */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
  width: 100%;
  position: relative;
}

/* Back to List Button */
.back-to-list {
    margin-bottom: 20px;
}

.back-to-list a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.back-to-list a:hover {
    color: #0073e6;
}

/* Blog Page Layout */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.blog-item {
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.blog-item:hover {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
}

.blog-item a {
    text-decoration: none;
    color: #333;
}

.blog-item h3 {
    margin-top: 10px;
    font-size: 1.6rem;
}

.blog-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Blog Image */
.blog-image {
    overflow: hidden;
    border-radius: 8px;
}

.blog-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Blog Page Titles */
.blog-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }
}
