.blog-pagination {
    display: flex;
    justify-content: center;
}

.site-main {
    transition: transform 0.5s ease-in-out;
}

.site-main.slide-left {
    transform: translateX(-100%);
}

/* Fixed header for desktop */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff; /* Set a background color to prevent transparency */
}

/* Prevent content from overlapping the header */
#content.site-content {
    margin-top: 100px; /* Adjust this value to match the height of your header */
}

/* Fixed header for mobile */
@media (max-width: 768px) {
    .ast-mobile-header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background-color: #fff; /* Set a background color if necessary */
    }

    /* Adjust content margin for mobile view */
    #content.site-content {
        margin-top: 60px;
			padding-top: 40px;
			/* Adjust this value based on the height of your mobile header */
    }

    /* Make the mobile menu toggle (hamburger) icon fixed and visible */
    .ast-mobile-header .menu-toggle {
        position: fixed;
        top: 10px;
        right: 20px;
        z-index: 1001; /* Ensure it appears above other elements */
    }
}




/* Desktop view: Three-column layout with proportional featured images and fixed height for uniformity */
@media (min-width: 769px) {
	
    .blog .post, .archive .post, .paged .post {
        width: 32% !important; /* Three columns */
        float: left !important;
        margin-right: 2% !important; /* Space between columns */
        height: 800px !important; /* Fixed height for consistency */
        overflow: hidden !important; /* Hide overflow content */
        box-sizing: border-box !important;
    }

    /* Remove right margin for the last item in each row */
    .blog .post:nth-child(3n), 
    .archive .post:nth-child(3n), 
    .paged .post:nth-child(3n) {
        margin-right: 0 !important;
    }

    /* Adjust featured images to maintain aspect ratio */
    .blog .post .wp-block-post-featured-image img, 
    .archive .post .entry-featured-image img, 
    .paged .post .entry-featured-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important; /* Optional max height to control image size */
        object-fit: cover !important; /* Ensures images are cropped proportionally */
    }

    /* Limit title and excerpt heights for consistency */
    .blog .post .entry-title, 
    .archive .post .entry-title, 
    .paged .post .entry-title {
        max-height: 4em !important; /* Adjust title height */
        overflow: hidden !important;
    }

    .blog .post .entry-summary, 
    .archive .post .entry-summary, 
    .paged .post .entry-summary {
        max-height: 40em !important; /* Adjust excerpt height */
        overflow: hidden !important;
    }
}

/* Mobile view: Single-column layout, full-width images */
@media (max-width: 768px) {
    .blog .post, .archive .post, .paged .post {
        width: 100% !important; /* Full width on mobile */
        float: none !important;
        margin-right: 0 !important;
        height: auto !important; /* Auto height for natural display */
        overflow: visible !important;
    }

    /* Full-width images for mobile */
    .blog .post .wp-block-post-featured-image img, 
    .archive .post .entry-featured-image img, 
    .paged .post .entry-featured-image img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important; /* No height restriction on mobile */
        object-fit: cover !important; /* Keep aspect ratio */
    }

    /* Full title and excerpt display on mobile */
    .blog .post .entry-title, 
    .archive .post .entry-title, 
    .paged .post .entry-title,
    .blog .post .entry-summary, 
    .archive .post .entry-summary, 
    .paged .post .entry-summary {
        max-height: none !important;
        overflow: visible !important;
    }
}


.current-menu-item a, 
.current-menu-item a:visited {
    color: brown !important;
}

