@import url('../style.css');

body.high-contrast {
    background-color: #000 !important;
    color: #FFF !important;
}

body.high-contrast a {
    color: #BDF24B !important;
}

body.high-contrast button {
    background-color: #BDF24B !important;
    color: #000 !important;
    border: 1px solid #BDF24B !important;
}

body.high-contrast .accessibility-panel {
    background-color: #333 !important;
    border-color: #BDF24B !important;
}

body.high-contrast .accessibility-panel h4 {
    color: #BDF24B !important;
}

body.white-text-mode {
    background-color: #000 !important;
    color: #FFF !important;
}

.blog-hero {
    padding: 3.125rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--low-light-orange);
}

.blog-hero-content {
    max-width: 56.25rem;
    margin: 0 auto;
    position: relative;
}

.blog-hero .blog-title {
    color: var(--green-aso);
    text-transform: uppercase;
    margin-bottom: 0.9375rem;
}

.blog-hero .blog-tagline {
    color: var(--oranje-aso);
    margin-bottom: 2.5rem;
}

.search-blog {
    color: var(--green-aso);
    position: absolute;
    max-width: fit-content;
    top: 3rem;
    right: 4rem;
    margin-top: 0;
    z-index: 10;
}

.search-form {
    display: flex;
    align-items: center;
    border: 0.0625rem solid var(--green-aso);
    border-radius: 1.5625rem;
    padding: 0.5rem 0.9375rem;
    background-color: transparent;
    margin: 0;
}

.search-field {
    text-align: center;
    border: none;
    outline: none;
    padding: 0.3125rem;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--green-aso);
    background-color: transparent;
}

.search-field::placeholder {
    color: var(--green-aso);
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0.2rem;
    color: var(--green-aso);
    font-size: 1.2rem;
    transition: transform 0.2s ease-in-out;
    transform: none;
    width: auto;
    letter-spacing: normal;
    line-height: normal;
}

.search-submit:hover {
    transform: scale(1.1);
}

.blog-categories {
    background-color: var(--oranje-aso);
    padding: 0.9375rem 0;
    overflow: hidden;
    position: relative;
}

.category-scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.625rem;
}

.category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.25rem;
    padding: 0.3125rem 0;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 0.5rem 0.9375rem;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 1.25rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-0.125rem);
}

.category-name-text {
    font-size: 1.125rem;
    font-weight: 900;
}

.scroll-arrow {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3125rem;
    color: var(--white);
    position: sticky;
    z-index: 5;
}

.scroll-arrow.prev-arrow {
    left: 0;
}

.scroll-arrow.next-arrow {
    right: 0;
}

.scroll-arrow svg {
    display: block;
}

.blog-post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-card {
    display: flex;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.875rem;
}

.post-card-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: none;
}

.post-card-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.9375rem;
    gap: 0.9375rem;
}

.post-categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.post-date {
    font-size: 0.9em;
    color: #888;
    flex-shrink: 0;
    white-space: nowrap;
}

.post-category {
    background-color: #ff914d;
    color: #fff;
    padding: 0.9375rem 1.125rem;
    border-radius: 1.5625rem;
    text-decoration: none;
    white-space: nowrap;
    width: fit-content;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.post-category:hover {
    background-color: #e67e3a;
}

.entry-title {
    color: var(--oranje-aso);
    margin-top: 0;
    margin-bottom: 0.9375rem;
    word-break: break-word;
}

.entry-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

.entry-title a:hover {
    color: #ff914d;
}

.post-excerpt {
    font-size: 1.05em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.pagination-navigation {
    padding: 2rem 0rem;
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--green-aso);
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oranje-aso);
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.pagination-arrow:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.2);
}

.pagination-arrow svg path {
    stroke: var(--white);
}

.pagination-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
}

.pagination-arrow.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: rgba(255, 255, 255, 0.05);
}

.pagination-info {
    color: var(--white);
    white-space: nowrap;
}

.blog-categories .scroll-arrow {
    background-color: #ff914d;
    border: none;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-categories .scroll-arrow:hover {
    background-color: #e67e3a;
}

.no-results {
    text-align: center;
    padding: 3.125rem 1.25rem;
    background-color: #f8f8f8;
    border-radius: 0.5rem;
    margin: 1.875rem auto;
    max-width: 50rem;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
}

.no-results .page-title {
    color: var(--oranje-aso);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.no-results .page-content p {
    color: #666;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.875rem;
}

.no-results .search-form {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.no-results .search-field {
    width: 100%;
    max-width: 25rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--green-aso);
    border-radius: 1.5625rem;
    font-size: 1rem;
}

.no-results .search-submit {
    margin-left: 0.625rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--green-aso);
    color: var(--white);
    border: none;
    border-radius: 1.5625rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.no-results .search-submit:hover {
    background-color: #4CAF50;
}


body.high-contrast .blog-hero {
    background-color: #000 !important;
}

body.high-contrast .blog-hero .blog-title {
    color: #BDF24B !important;
}

body.high-contrast .blog-hero .blog-tagline {
    color: #FFF !important;
}

body.high-contrast .search-blog .search-form {
    border-color: #BDF24B !important;
}

body.high-contrast .search-blog .search-field {
    color: #FFF !important;
}

body.high-contrast .search-blog .search-field::placeholder {
    color: #AAA !important;
}

body.high-contrast .search-blog .search-submit {
    color: #BDF24B !important;
}

body.high-contrast .search-blog .search-submit img {
    filter: invert(1) hue-rotate(180deg) brightness(1.5) saturate(0.5);
}

body.high-contrast .blog-categories {
    background-color: #333 !important;
}

body.high-contrast .category-item {
    color: #FFF !important;
    background-color: #000 !important;
    border: 1px solid #BDF24B !important;
}

body.high-contrast .category-item:hover {
    background-color: #BDF24B !important;
    color: #000 !important;
}

body.high-contrast .scroll-arrow svg path {
    stroke: #FFF !important;
}

body.high-contrast .blog-post-card {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
}

body.high-contrast .post-card-content {
    color: #FFF !important;
}

body.high-contrast .post-date {
    color: #AAA !important;
}

body.high-contrast .post-category {
    background-color: #BDF24B !important;
    color: #000 !important;
}

body.high-contrast .entry-title {
    color: #BDF24B !important;
}

body.high-contrast .entry-title a {
    color: #BDF24B !important;
}

body.high-contrast .entry-title a:hover {
    color: #FFF !important;
}

body.high-contrast .post-excerpt {
    color: #FFF !important;
}

body.high-contrast .pagination-navigation {
    background-color: #333 !important;
}

body.high-contrast .pagination-arrow {
    background-color: #000 !important;
    border: 1px solid #BDF24B !important;
}

body.high-contrast .pagination-arrow:hover:not(.disabled) {
    background-color: #BDF24B !important;
}

body.high-contrast .pagination-arrow svg path {
    stroke: #FFF !important;
}

body.high-contrast .pagination-arrow.disabled {
    opacity: 0.4 !important;
}

body.high-contrast .pagination-info {
    color: #FFF !important;
}

body.high-contrast .no-results {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
}

body.high-contrast .no-results .page-title {
    color: #BDF24B !important;
}

body.high-contrast .no-results .page-content p {
    color: #FFF !important;
}

body.high-contrast .no-results .search-field {
    border-color: #BDF24B !important;
    color: #FFF !important;
}

body.high-contrast .no-results .search-submit {
    background-color: #BDF24B !important;
    color: #000 !important;
}

body.white-text-mode .blog-hero {
    background-color: #000 !important;
}

body.white-text-mode .blog-hero .blog-title {
    color: #FFF !important;
}

body.white-text-mode .blog-hero .blog-tagline {
    color: #AAA !important;
}

body.white-text-mode .search-blog .search-form {
    border-color: #FFF !important;
}

body.white-text-mode .search-blog .search-field {
    color: #FFF !important;
}

body.white-text-mode .search-blog .search-field::placeholder {
    color: #AAA !important;
}

body.white-text-mode .search-blog .search-submit {
    color: #FFF !important;
}

body.white-text-mode .search-blog .search-submit img {
    filter: invert(1);
}

body.white-text-mode .blog-categories {
    background-color: #222 !important;
}

body.white-text-mode .category-item {
    color: #FFF !important;
    background-color: #000 !important;
    border: 1px solid #FFF !important;
}

body.white-text-mode .category-item:hover {
    background-color: #444 !important;
    color: #FFF !important;
}

body.white-text-mode .scroll-arrow svg path {
    stroke: #FFF !important;
}

body.white-text-mode .blog-post-card {
    background-color: #111 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
}

body.white-text-mode .post-card-content {
    color: #FFF !important;
}

body.white-text-mode .post-date {
    color: #AAA !important;
}

body.white-text-mode .post-category {
    background-color: #444 !important;
    color: #FFF !important;
}

body.white-text-mode .entry-title {
    color: #FFF !important;
}

body.white-text-mode .entry-title a {
    color: #FFF !important;
}

body.white-text-mode .entry-title a:hover {
    color: #AAA !important;
}

body.white-text-mode .post-excerpt {
    color: #CCC !important;
}

body.white-text-mode .pagination-navigation {
    background-color: #222 !important;
}

body.white-text-mode .pagination-arrow {
    background-color: #000 !important;
    border: 1px solid #FFF !important;
}

body.white-text-mode .pagination-arrow:hover:not(.disabled) {
    background-color: #444 !important;
}

body.white-text-mode .pagination-arrow svg path {
    stroke: #FFF !important;
}

body.white-text-mode .pagination-arrow.disabled {
    opacity: 0.5 !important;
}

body.white-text-mode .pagination-info {
    color: #FFF !important;
}

body.white-text-mode .no-results {
    background-color: #111 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
}

body.white-text-mode .no-results .page-title {
    color: #FFF !important;
}

body.white-text-mode .no-results .page-content p {
    color: #CCC !important;
}

body.white-text-mode .no-results .search-field {
    border-color: #FFF !important;
    color: #FFF !important;
}

body.white-text-mode .no-results .search-submit {
    background-color: #444 !important;
    color: #FFF !important;
}

@media (max-width: 1100px) {
    .blog-hero {
        padding: 1.875rem 0.9375rem;
    }
    .blog-hero .blog-tagline {
        font-size: 2rem;
        margin-bottom: 1.875rem;
    }
    .search-blog {
        position: relative;
        margin: 2rem auto;
        text-align: center;
        top: auto;
        right: auto;
    }
    .search-form {
        margin: 0 auto;
    }
    .blog-categories {
        padding: 0.625rem 0;
    }
    .scroll-arrow {
        position: static;
        transform: none;
    }

    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3125rem;
    }
    .post-categories-wrapper {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .no-results .page-title {
        font-size: 2rem;
    }
    .no-results .page-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-post-card {
        flex-direction: column;
    }
    .post-card-image {
        flex: none;
        width: 100%;
        height: 17.5rem;
        padding: 0.9375rem;
    }
    .post-card-content {
        padding: 1.875rem 1.5625rem;
    }
    .entry-title {
        font-size: 1.8em;
    }
    .post-excerpt {
        font-size: 1em;
    }
    .no-results {
        margin: 1.25rem auto;
        padding: 1.875rem 0.9375rem;
    }
}

@media (max-width: 576px) {
    .blog-post-card {
        margin-bottom: 1.25rem;
    }
    .post-card-image {
        height: 12.5rem;
        padding: 0.625rem;
    }
    .post-card-content {
        padding: 1.25rem;
    }
    .entry-title {
        font-size: 1.5em;
    }
    .no-results .page-title {
        font-size: 1.75rem;
    }
    .no-results .page-content p {
        font-size: 0.95rem;
    }
    .no-results .search-field {
        padding: 0.5rem 1rem;
    }
    .no-results .search-submit {
        padding: 0.5rem 1rem;
    }
}