/* Blog Layout Styles*/
.blog {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog__container {
    width: 100%;
    margin-top: 150px;
}

.blog__title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: left;
    font-weight: 600;
    font-family: 'Neutraface2TextDemi', sans-serif;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.blog__card-image-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    margin-bottom: 15px;
    border: none;
}

.blog__card-image-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    margin-bottom: 15px;
    border: none;
}

.blog__card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog__card-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog__card-location,
.blog__card-date {
    font-size: 13px;
    font-family: 'Neutraface2TextBook', sans-serif;
    margin-bottom: 8px;
    color: #262626;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog__card-title {
    font-size: 22px;
    font-family: 'Neutraface2TextDemi', sans-serif;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: none;
    color: #000;
}

.blog__card-title a {
    color: #000;
    text-decoration: none;
    border: none;
}

h3.blog__card-title {
    opacity: 1 !important;
}

.blog__card-title a:focus {
    outline: none;
}

.blog__card-excerpt {
    color: #2E2D2D;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.blog__card-excerpt p {
    margin: 0;
}

.blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog__pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.blog__pagination .page-numbers li {
    margin: 0 5px;
}

.blog__pagination .page-numbers a,
.blog__pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #262626;
    text-decoration: none;
    border: none;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Neutraface2TextBold', sans-serif;
    position: relative;
    padding: 0 3px;
}

.blog__pagination .page-numbers .current {
    color: #262626;
    position: relative;
}

.blog__pagination .page-numbers .current::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #262626;
}

.blog__pagination .page-numbers a:hover {
    color: #000;
}

.blog__pagination .next.page-numbers,
.blog__pagination .prev.page-numbers {
    font-size: 0;
    /* Hide the text */
}

.blog__pagination .next.page-numbers::after {
    content: "›";
    font-size: 22px;
    font-weight: 600;
}

.blog__pagination .prev.page-numbers::after {
    content: "‹";
    font-size: 22px;
    font-weight: 600;
}

.blog__pagination .page-numbers .dots {
    letter-spacing: 1px;
    padding-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog__card-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }

    .blog__title {
        font-size: 24px;
    }

    .blog__card-image-wrapper {
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
    }

    .blog__pagination .page-numbers a,
    .blog__pagination .page-numbers span {
        font-size: 18px;
    }

    .blog__pagination .page-numbers li {
        margin: 0 10px;
    }

    .blog__pagination .next.page-numbers::after,
    .blog__pagination .prev.page-numbers::after {
        font-size: 20px;
    }
}


/* Single Post Styles */

.single-post {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    color: #262626;
}

.single-post__featured-image {
    width: 100%;
    max-width: 830px;
    margin: clamp(60px, 10vw, 130px) auto clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-post__image-container {
    width: 100%;
    max-width: 830px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.single-post__image-container img {
    width: auto;
    height: clamp(200px, 40vw, 600px);
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Content Container */
.single-post__container {
    width: 100%;
    max-width: clamp(300px, 90vw, 830px);
    margin: 0 auto clamp(20px, 4vw, 40px);
    padding-right: clamp(0px, 10vw, 25%);
    box-sizing: border-box;
}

@media (max-width: 992px) {

    .single-post__featured-image,
    .single-post__image-container {
        padding: 0 clamp(10px, 3vw, 20px);
    }

    .single-post__container {
        padding: 0 clamp(10px, 3vw, 20px);
    }
}

@media (max-width: 480px) {
    .single-post__title {
        font-size: clamp(20px, 6vw, 24px);
    }

    .single-post__content {
        font-size: clamp(14px, 4vw, 15px);
    }
}


/* Meta Information */
.single-post__meta {
    margin-bottom: 40px;
}

.single-post__categories {
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Neutraface2TextBook', sans-serif;
    font-weight: 400;
    color: #262626;
}

.single-post__categories a {
    color: #262626;
    text-decoration: none;
    border: none;
}

.single-post__categories a:hover {
    text-decoration: underline;
}

.single-post__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 15px 0;
    letter-spacing: 1;
    font-family: 'Neutraface2TextDemi', sans-serif;
    font-weight: 400;
    color: #262626;
}

.single-post__location-date {
    font-size: 13px;
    font-family: 'Neutraface2TextBook', sans-serif;
    margin-bottom: 30px;
    color: #262626;
    font-weight: 400;
}

/* Content Area */
.single-post__content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Neutraface2TextBook', sans-serif;
}

.single-post__content p {
    margin-bottom: 20px;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Neutraface2TextDemi', sans-serif;
    font-weight: 600;
}

.single-post__content h2 {
    font-size: 28px;
}

.single-post__content h3 {
    font-size: 24px;
}

.single-post__content h4 {
    font-size: 20px;
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.single-post__content li {
    margin-bottom: 10px;
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
}

.single-post__content a {
    color: #000;
    text-decoration: underline;
    border: none;
}

.single-post__content a:hover {
    color: #666;
}

/* Footer and Back Link */
.single-post__footer {
    margin: 20px 0;
    text-align: left;
}

.single-post__back-link {
    display: inline-block;
    font-size: 13px;
    font-family: 'Neutraface2BoldBook', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    color: #262626;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.single-post__back-link:hover {
    color: #000;
    border-color: #000;
}

/* Related Articles Section */
.related-articles {
    width: 100%;
    background-color: #f5f2ea;
    /* Light beige background */
    padding: 60px 0;
    margin-top: 60px;
}

.related-articles__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-articles__title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    font-family: 'Neutraface2TextDemi', sans-serif;
    color: #262626;
    letter-spacing: 1px;
}

.related-articles__excerpt {
    font-size: 13px;
    line-height: 20px;
    color: #2E2D2D;
    font-family: 'Neutraface2TextBook', sans-serif;
    margin-top: 5px;
}

.related-articles__excerpt p {
    margin: 0;
}


.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.related-articles__item {
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

.related-articles__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
}

.related-articles__image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #e1e1e1;
}

.related-articles__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.related-articles__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-articles__location,
.related-articles__date {
    font-size: 13px;
    font-family: 'Neutraface2TextBook', sans-serif;
    margin-bottom: 8px;
    color: #262626 !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-articles__item-title {
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: none;
    font-family: 'Neutraface2TextDemi', sans-serif;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-weight: 400;
    color: #262626 !important;
}

h3.related-articles__item-title {
    opacity: 1  !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


@media (max-width: 768px) {
    .related-articles {
        padding: 40px 0;
    }

    .related-articles__excerpt {
        font-size: 13px;
    }

    .related-articles__title {
        font-size: 24px;
    }

    .single-post__title {
        font-size: 28px;
    }

    .related-articles__grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .single-post__title {
        font-size: 24px;
    }

    .single-post__content {
        font-size: 15px;
    }
}