*,
:after,
:before {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* Align */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: 100vw;
}

.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    color: var(--wp--preset--color--dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4,
h5,
h6 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

p {
    margin: 0 0 1rem;
}

a {
    transition: all 300ms ease-in-out;
}

.wp-block-post-author {
    gap: 0.5rem;
    align-items: center;
}

.wp-block-post-author__avatar {
        display: flex;
        margin: 0;
    }

.wp-block-post-author__avatar img {
            border-radius: 50%;
        }

.wp-block-quote {
    border-left: 4px solid var(--wp--preset--color--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--wp--preset--color--text-muted);
}

.wp-block-quote cite {
    color: var(--wp--preset--color--dark);
    font-weight: 500;
}

.wp-block-code code {
    background-color: var(--wp--preset--color--light);
    color: var(--wp--preset--color--dark);
    padding: 1rem;
    border-radius: 0.375rem;
    font-family: "Courier New", Courier, monospace;
    overflow-x: auto;
}

.wp-block-image img {
    border-radius: 0.375rem;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

.wp-block-list li::marker {
    color: var(--wp--preset--color--primary);
}

.wp-block-navigation .wp-block-navigation-link a:hover,
.wp-block-navigation .wp-block-navigation-link a:focus {
    color: var(--wp--preset--color--primary);
}

.wp-block-navigation .current-menu-item a {
    color: var(--wp--preset--color--primary);
}

/* Inside button */

.wp-block-search__button-inside .wp-block-search__inside-wrapper {
        padding: 0;
        border-color: var(--wp--preset--color--neutral);
        border-radius: 0.25rem;
        transition: border-color 0.3s ease;
        background-color: #fff;
    }

.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within {
            border-color: var(--wp--preset--color--primary);
        }

.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input {
            padding: 0.5rem 1rem;
            border: 0;
            border-radius: 0;
            background-color: transparent;
        }

.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button {
            padding: 0.5rem;
            margin: 0.5rem;
        }

/* Outside button */

.wp-block-search__button-outside .wp-block-search__inside-wrapper {
        gap: 0.75rem;
        align-items: stretch;
    }

.wp-block-search__button-outside .wp-block-search__inside-wrapper .wp-block-search__input {
            flex: 1;
        }

.wp-block-search__button-outside .wp-block-search__inside-wrapper .wp-block-search__input::-moz-placeholder {
                color: var(--wp--preset--color--text-muted);
            }

.wp-block-search__button-outside .wp-block-search__inside-wrapper .wp-block-search__input::placeholder {
                color: var(--wp--preset--color--text-muted);
            }

.wp-block-search__button-outside .wp-block-search__inside-wrapper .wp-block-search__button {
            padding: 0.5rem;
            margin: 0;
        }

/* Only button */

.wp-block-search__button-only .wp-block-search__inside-wrapper {
        gap: 0.75rem;
    }

.wp-block-separator {
    border-color: var(--wp--preset--color--background);
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--wp--preset--color--neutral);
    padding: 0.75rem;
    text-align: left;
}

.wp-block-table th {
    background-color: var(--wp--preset--color--background);
    font-weight: 600;
    color: var(--wp--preset--color--dark);
}

.wp-block-button .wp-block-button__link,
.wp-element-button {
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: var(--wp--preset--color--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.is-style-outline .wp-element-button {
    background-color: transparent;
}

button {
    border: none;
}

.wp-block-template-part.header {
    border-bottom: 1px solid var(--wp--preset--color--neutral);
    background-color: #fff;
}

.transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Adjust for WordPress admin bar when logged in */

.admin-bar .transparent-header {
    top: 32px;
}

/* Responsive admin bar adjustment for mobile */

@media screen and (max-width: 782px) {
    .admin-bar .transparent-header {
        top: 46px;
    }
}

.wp-block-template-part.footer {
    border-top: 1px solid var(--wp--preset--color--neutral);
    background-color: #fff;
    color: var(--wp--preset--color--text-muted);
}

/* Post Grid */

.post-card {
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wp-block-query .wp-block-post-template .wp-block-post-excerpt {
        margin-top: var(--wp--preset--spacing--30);
        margin-bottom: var(--wp--preset--spacing--30);
    }

/* Post Featured Image */

.wp-block-post-featured-image {
    margin: 0;
}

/* Post Title */

.wp-block-post-title {
    margin-bottom: var(--wp--preset--spacing--30);
}

.wp-block-post-title a {
        color: var(--wp--preset--color--dark);
        text-decoration: none;
    }

.wp-block-post-title a:hover {
            color: var(--wp--preset--color--primary);
        }

/* Post Meta */

.wp-block-post-date,
.wp-block-post-author {
    color: var(--wp--preset--color--text-muted);
    font-size: 0.875rem;
}

/* Pagination */

.wp-block-query-pagination {
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
    .wp-block-query-pagination .wp-block-query-pagination-next {
        width: auto;
        gap: 0.25rem;
    }

.wp-block-query-pagination .wp-block-query-pagination-previous-arrow,
    .wp-block-query-pagination .wp-block-query-pagination-next-arrow {
        margin: 0;
    }

.wp-block-query-pagination .wp-block-query-pagination-numbers {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.wp-block-query-pagination a,
    .wp-block-query-pagination .current {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.375rem;
        border-radius: 0.25rem;
        padding: 0.75rem;
        text-decoration: none;
        font-size: 0.875rem;
        line-height: 1;
        transition: all 0.3s ease;
    }

.wp-block-query-pagination a:hover {
        background-color: var(--wp--preset--color--background);
        color: var(--wp--preset--color--primary);
    }

.wp-block-query-pagination .current {
        background-color: var(--wp--preset--color--primary);
        color: #fff;
    }

/* Checkbox */

.wp-block-post-comments-form .comment-form-cookies-consent {
    gap: 0.5em;
}

.wp-block-post-comments-form .comment-form-cookies-consent input,
    .wp-block-post-comments-form .comment-form-cookies-consent label {
        margin: 0 !important;
    }

/* Comments Pagination */

.wp-block-comments-pagination {
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-comments-pagination .wp-block-comments-pagination-previous,
    .wp-block-comments-pagination .wp-block-comments-pagination-next {
        width: auto;
        gap: 0.25rem;
    }

.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow,
    .wp-block-comments-pagination .wp-block-comments-pagination-next-arrow {
        margin: 0;
    }

.wp-block-comments-pagination .wp-block-comments-pagination-numbers {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.wp-block-comments-pagination a,
    .wp-block-comments-pagination .current {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 2.375rem;
        border-radius: 0.25rem;
        padding: 0.75rem;
        text-decoration: none;
        font-size: 0.875rem;
        line-height: 1;
        transition: all 0.3s ease;
        border: 1px solid var(--wp--preset--color--neutral);
    }

.wp-block-comments-pagination a:hover {
        background-color: var(--wp--preset--color--primary);
        color: #fff;
        border-color: var(--wp--preset--color--primary);
        transform: translateY(-1px);
    }

.wp-block-comments-pagination .current {
        background-color: var(--wp--preset--color--primary);
        color: #fff;
        border-color: var(--wp--preset--color--primary);
    }

label,
.wp-block-search__label {
    display: flex;
    color: var(--wp--preset--color--dark);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #fff;
    color: var(--wp--preset--color--dark);
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 0.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="url"]:focus, textarea:focus, select:focus {
        outline: none;
        border-color: var(--wp--preset--color--primary);
        box-shadow: none;
    }

/* Select */

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Checkbox */

input[type="checkbox"] {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 0.2rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="checkbox"]::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.55rem;
        height: 0.35rem;
        border: 2px solid #fff;
        border-top: none;
        border-right: none;
        transform: translate(-50%, -70%) rotate(-45deg) scale(0);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

input[type="checkbox"]:hover {
        border-color: var(--wp--preset--color--primary);
        background-color: var(--wp--preset--color--background);
        transform: scale(1.05);
    }

input[type="checkbox"]:checked {
        background-color: var(--wp--preset--color--primary);
        border-color: var(--wp--preset--color--primary);
        transform: scale(1);
    }

input[type="checkbox"]:checked::after {
            transform: translate(-50%, -70%) rotate(-45deg) scale(1);
            opacity: 1;
            animation: checkboxCheck 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

input[type="checkbox"]:checked:hover {
            background-color: var(--wp--preset--color--primary-dark);
            border-color: var(--wp--preset--color--primary-dark);
            transform: scale(1.05);
        }

input[type="checkbox"]:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: var(--wp--preset--color--neutral);
        border-color: var(--wp--preset--color--neutral);
    }

input[type="checkbox"]:disabled:hover {
            transform: none;
            background-color: var(--wp--preset--color--neutral);
            border-color: var(--wp--preset--color--neutral);
        }

/* Radio Button */

input[type="radio"] {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="radio"]::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background-color: #fff;
        transform: translate(-50%, -50%) scale(0);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

input[type="radio"]:hover {
        border-color: var(--wp--preset--color--primary);
        background-color: var(--wp--preset--color--background);
        transform: scale(1.05);
    }

input[type="radio"]:checked {
        background-color: var(--wp--preset--color--primary);
        border-color: var(--wp--preset--color--primary);
        transform: scale(1);
    }

input[type="radio"]:checked::after {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            animation: radioSelect 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

input[type="radio"]:checked:hover {
            background-color: var(--wp--preset--color--primary-dark);
            border-color: var(--wp--preset--color--primary-dark);
            transform: scale(1.05);
        }

input[type="radio"]:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: var(--wp--preset--color--neutral);
        border-color: var(--wp--preset--color--neutral);
    }

input[type="radio"]:disabled:hover {
            transform: none;
            background-color: var(--wp--preset--color--neutral);
            border-color: var(--wp--preset--color--neutral);
        }

/* Animation keyframes */

@keyframes checkboxCheck {
    0% {
        transform: translate(-50%, -70%) rotate(-45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -70%) rotate(-45deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -70%) rotate(-45deg) scale(1);
        opacity: 1;
    }
}

@keyframes radioSelect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@media (min-width: 886px) {
    .left-sidebar {
        flex-direction: row-reverse;
    }
}

@media (max-width: 886px) {
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile),
    .wp-block-media-text {
        flex-direction: column;
    }

    .wp-block-comment-template .wp-block-comment .wp-block-comment {
        margin-left: 1rem;
    }

        .wp-block-comment-template .wp-block-comment .wp-block-comment .wp-block-comment {
            margin-left: 0.5rem;
        }

        .wp-block-comment-template .wp-block-comment .wp-block-comment .comment-item::before {
            left: -1rem;
            width: 0.75rem;
        }
}
