/*  */
/* BLOG INDEX PAGE */
/*  */

@media screen and (min-width: 768px) {
    div.blog-story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .no-results {
        grid-column: span 2;
    }
}

.blog-story-grid .story-item img {
    height: 350px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-link {
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    background-color: #f1f1f1;
    color: #333;
    font-weight: 600;
}

.category-link.active {
    background-color: #0066cc;
    color: white;
}

.category-link:hover {
    background-color: #ddd;
}

.category-link.active:hover {
    background-color: #0055aa;
}


/*  */
/* BLOG SINGLE  */
/*  */

.blogAuthor {
  margin-top: 1rem;
  font-size: 22px;

}

.blogMainContent .three-column-layout div {
    padding: 1rem;
    background-color: var(--steelBlueLight);
    border-radius: 10px;
}


.blogMainContent p {
    margin: 0.5rem 0;
}

.blogMainContent h2 {
    margin-bottom: 5px;
}

.blogMainContent h3 {
    margin-bottom: 0px;
    margin-top: 16px;
}

.blogMainContent div h3 {
    margin-top: 0px;
}

.blogMainContent div h2+h3 {
    margin-top: 16px;
}

.blogMainContent .three-column-layout h3 {
    margin-bottom: 10px;
}

.blogMainContent ul {
    margin-left: 16px;
}

.blogMainContent .contentSection {
    margin: 2rem auto;
}

.blogMainContent img {
    border-radius: 5px;
}

.blogMainContent .contentSection .blockHeading {
    margin-bottom: 1rem;
}

.blogMainContent .contentSection p:first-of-type {
    margin-top: 0;
}

.blogMainContent .contentSection .two-column-layout {
    display: grid;
    grid-auto-flow: row;
    gap: 25px;
}


.blogMainContent .contentSection .three-column-layout {
    display: grid;
    gap: 25px;
}


@media screen and (min-width: 768px) {
    .blogMainContent .contentSection .three-column-layout {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 25px;
    }
}

@media screen and (min-width: 768px) {
    .blogMainContent .contentSection .two-column-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .blogMainContent .contentSection .three-column-layout {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 25px;
    }
}

.blogMainContent .contentSection .text-center {
    text-align: center;
}

.blogMainContent .contentSection .text-right {
    text-align: end;
}




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

.blog-story-grid h2 {
    font-size: 20px;
    font-weight: bold;
    line-height: 2rem;

}

/* BLOG BACKGROUND IMAGE EN TAGS */
.storyItemImage {
    /* Dimensions */
    width: 100%;
    height: 300px;
    /* or whatever height you need */

    /* Background properties */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* For text overlay positioning */
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: start;

    /* Optional: Add overlay for better text readability */
}

.storyItemImage .post-categories {
    padding: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

}

.storyItemImage .post-categories .category-tag {
    background: white;
    padding: 0 10px;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid black;
}


.blog-story-grid .buttonReadThisStory {
    background: black;
}

.blogInfo {
    padding: 15px 25px;
    background: #edf0f8;
    border-radius: 25px;
    margin-bottom: 25px;
}

/* Pagination */
/* Custom Pagination CSS */


/* Full Pagination CSS with First/Last Page Buttons */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pagination-container {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pagination-pages {
    display: flex;
    align-items: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f9fafb;
    color: #4b5563;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.pagination-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.pagination-btn.disabled {
    background-color: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background-color: #f9fafb;
    color: #d1d5db;
}

/* Optionally, add more distinct styling for first/last buttons */
.pagination-first,
.pagination-last {
    background-color: #f3f4f6;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.pagination-page:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.pagination-active {
    background-color: #3b82f6;
    color: white;
    cursor: default;
}

.pagination-active:hover {
    background-color: #3b82f6;
    color: white;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f9fafb;
    color: #9ca3af;
    pointer-events: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pagination-container {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .pagination-btn,
    .pagination-page,
    .pagination-ellipsis {
        background-color: #1f2937;
        color: #e5e7eb;
    }

    .pagination-first,
    .pagination-last {
        background-color: #111827;
    }

    .pagination-btn:hover,
    .pagination-page:hover {
        background-color: #374151;
        color: #f9fafb;
    }

    .pagination-btn.disabled {
        background-color: #1f2937;
        color: #4b5563;
    }

    .pagination-btn.disabled:hover {
        background-color: #1f2937;
        color: #4b5563;
    }

    .pagination-active {
        background-color: #4f46e5;
        color: white;
    }

    .pagination-active:hover {
        background-color: #4f46e5;
        color: white;
    }

    .pagination-ellipsis {
        background-color: #1f2937;
        color: #6b7280;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {

    .pagination-btn,
    .pagination-page,
    .pagination-ellipsis {
        width: 32px;
        height: 32px;
    }

    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* BLOG SINGLE */
.heroContainerBlog {
    height: min(80vh, 850px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: grid;
    place-items: center;
    position: relative;
}

.blogHeader {
    width: 1250px;
    max-width: 80vw;
}

.image-credit {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 5px;
    color: black;
    border-radius: 5px;
    border: 1px solid black;
}

/* Option 1: Text Shadow Method */
.mainPageHeaderInner h1 {
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.blogPrevNext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 20px;
    /* Space between columns */
}

/* Alternative: Using percentages */
.blogPrevNext {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
}

/* Or more explicitly */
.blogPrevNext {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* border:1px solid black; */
}

.blogPrevNext .linkTitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: darkblue;
}

.blogPrevNext p {
    color: black;
}

.blogPrevNext .previousPost,
.blogPrevNext .nextPost {
    padding: 25px;
    background-color: var(--steelBlue);
    /* max-width: 400px; */
}

/* Box Shadow left and right */
.blogPrevNext .nextPost {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.blogPrevNext .nextPost:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08),
        4px 8px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.025);
}

/* Box Shadow bottom left */
.blogPrevNext .previousPost {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
        -2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.blogPrevNext .previousPost:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08),
        -4px 8px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.025);
}


.blogPrevNext .nextPost {
    text-align: right;
}

/* Optional: Add responsive behavior */
/* @media (max-width: 768px) {
    .blogPrevNext {
        grid-template-columns: 1fr; 
    }
} */

/* NO POSTS FOUND */

.clear-filters-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    text-decoration: underline;
}