/* Navbar and Intro Section Styles */
.navbar {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 8px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
}

.navbar a:hover {
    color: #F0D9FF;
}

/* Title and Intro Section */
.header-section {
    background-color: #533DB7;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 0;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.header-section p.description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
}

/* Main Content Section */
.container {
    width: 100%;
    max-width: 100%;
    background-color: white;
    padding: 60px 20px;
}

.intro {
    padding: 5%;
}

.content {
    flex: 1;
    max-width: 100%;
}

.content h1 {
    font-size: 4rem;
}

.content.article {
    color: #333;
    max-width: 70%;
}

.content.article h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.content.article p,
.content.article ul,
.content.article ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.content.article ul,
.content.article ol {
    padding-left: 20px;
}

.content.article ul li,
.content.article ol li {
    margin-bottom: 10px;
}

.content.article img {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 12px;
}

/* Image Container */
.image-container {
    text-align: center;
    margin: 20px 0;
}

.image-container img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible for all screens */
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px; /* Optional: Limit max width */
    margin: 0 auto; /* Center grid on larger screens */
    justify-content: center;
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 600px) {
    .blog-posts-grid {
        grid-template-columns: 1fr; /* Single column layout on small screens */
        gap: 15px; /* Slightly smaller gap for smaller screens */
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for medium screens */
    }
}

/* Blog Post Item */
.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Blog Post Image */
.blog-post img {
    height: 200px;           /* Set fixed height */
    object-fit: cover;       /* Center crop the image */
    object-position: center; /* Ensure cropping is centered */
}

/* Blog Post Content */
.blog-post-content {
    padding: 20px;
}

.blog-post-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-post-content h3:hover {
    color: #533DB7;
}

.blog-post-content p {
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
}

/* Pagination */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px; /* Add space above pagination */
    color: #333;
}

.pagination span {
    margin-bottom: 10px;
    font-size: 1rem;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-buttons a {
    font-size: 1rem;
    color: #533DB7;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #533DB7;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-buttons a.active {
    background-color: #533DB7;
    color: white;
    pointer-events: none;
}

.pagination-buttons a:hover {
    background-color: #533DB7;
    color: white;
}

/* Fix Positioning of Pagination at the Bottom */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh; /* Ensures container takes full viewport height */
}

