:root :where(.is-layout-flow) > * {
    margin-block-start: 1.75rem;
}

.wp-block-list {
    margin-top: 1rem !important;
}

.entry-content {
    /* margin-top: 0 !important; */
}

.wp-block-post-template, .wp-block-post {
    border-radius: 6px;
}

.wp-block-post h1,
.wp-block-post h2,
.wp-block-post h3,
.wp-block-post h3.has-medium-font-size,
.wp-block-post h4,
.wp-block-post p.wp-block-post-excerpt__excerpt {
    padding: 0 20px !important;
}

/* .wp-block-post h3 a,
.post-content .post-title,
.wp-block-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
} 
*/

.wp-block-post .wp-block-post-date {
    padding: 0 0 0 20px !important;
    font-size: 13px;
}

h1,
h1.wp-block-heading {
    font-size: 36px;
    color: #38287e !important;
}
h2 {
    font-size: 26px !important;
    color: #38287e !important;
}
h3,
h3.has-medium-font-size {
    font-size: 20px !important;
    color: #38287e !important;
}

h4 {
    font-size: 16px !important;
    color: #38287e !important;
}

p,
li {
    font-size: 15px !important;
    font-weight: 400 !important;
}

.wp-block-post-content p {
    margin-top: 1rem !important;
}

li {
    margin-top: 0.5rem;
}

p.site-heading {
    font-size: 40px !important;
    line-height: 1em;
    font-weight: 700 !important;
}

thead {
    background-color: #38287e;
    color: white;
}
.wp-block-table thead {
    border-bottom: 0px;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #38287e;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header {
    margin-bottom: 40px;
}

.sidebar {
    border-radius: 6px;
}

a,
#main-menu a,
.header-menu-item a,
a.ez-toc-link,
.taxonomy-post_tag a {
    transition: all ease-in-out 0.2s;
    text-underline-offset: 2px;
}

.header-menu-item p,
.header-menu-item p.label {
    color: white !important;
}

a.ez-toc-link {
    color: #666666;
    font-size: 15px;
}

a.ez-toc-link:hover {
    text-decoration: none;
    color: #f26522;
}

.yoast-breadcrumbs {
    margin-bottom: 30px;
}

.taxonomy-post_tag a {
    border-radius: 100px;
}

.taxonomy-post_tag a:hover {
    background-color: #f26522;
    text-decoration: none;
    color: white;
}

time {
    font-size: 13px;
}

.post-metadata a,
.post-metadata p,
.post-metadata .wp-block-post-author-name {
    font-size: 13px;
}

.posts-row .wp-block-columns {
    gap: 0;
}

.sidebar-topics {
    padding: 20px !important;
}

.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section .contact-info .inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.footer-section .contact-info .inner p,
.footer-section .contact-info .inner a {
    margin: 0;
    color: white !important;
}

.footer-section .contact-info .inner img.call {
    height: 18px;
    width: 24px;
}

.footer-section .contact-info .inner img.email {
    height: 16px;
    width: 20px;
}

.footer-section .contact-info p {
    color: #999999 !important;
}

.footer-section p {
    font-size: 14px !important;
    margin-top: 8px;
}

.footer-section p.footer-heading {
    font-size: 16px !important;
}

.footer-section a {
    color: #999999 !important;
}

.footer-section .wp-block-button a {
    color: white !important;
    font-size: 13px !important;
}

.footer-section a:hover {
    color: #efefef !important;
}

.footer-heading {
    font-weight: 600 !important;
}

.wp-block-post {
    background: white;
}

.wp-block-post .wp-block-post-date {
    /* 	margin-top: 20px !important; */
    color: #999999 !important;
}

.post-meta .wp-block-post-date {
    margin-top: 0px !important;
}

.post-meta {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.wp-block-post div:nth-of-type(2).wp-block-column {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

:where(figure) {
    margin: 0px;
}

.featured-post.wp-block-post-featured-image {
    aspect-ratio: auto;
    width: 100%;
}

.wp-block-post-featured-image {
    aspect-ratio: auto;
    width: 100%;
    overflow: hidden;
}

.blog-post.wp-block-post-featured-image {
    aspect-ratio: auto !important;
    margin-bottom: 0px !important;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-back-to-site-desktop {
    display: none;
}

.wp-block-site-logo img {
    height: 40px;
    width: auto;
}

.header-menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.header-menu-item p {
    font-size: 15px !important;
}

.header-menu-item .inner-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.menu .label {
    margin-top: 18px;
    color: #38287e !important;
}

#nav-icon3 {
    width: 24px;
    height: 10px;
    position: relative;
    margin: 24px auto;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #f8b02f;
    border-radius: 20px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {
    top: 0px;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
    top: 6px;
}

#nav-icon3 span:nth-child(4) {
    top: 12px;
}

#nav-icon3.open span:nth-child(1) {
    top: 0px;
    width: 0%;
    left: 50%;
}

#nav-icon3.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}

.main-nav-bg {
    background-image: url(/wp-content/uploads/2025/12/bg-squares.png);
    background-size: auto 140px;
    background-position: -100px 0px;
    background-repeat: no-repeat;
}

/* Main menu */
#main-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 0; /* Collapsed state */
    padding: 0;
    margin: 0;
    overflow: hidden;
    z-index: 9999;
    box-sizing: border-box;
    opacity: 0;
    transform-origin: top;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#main-menu.open {
    max-height: 100%; /* Adjust based on content height */
    opacity: 1;
}

#main-menu .inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    border-radius: 6px;
}

#main-menu .inner-container .col-1 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

#main-menu .inner-container .col-2 {
    background-color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    border-radius: 6px;
    padding-top: 10px;
}

#main-menu .inner-container .col-2 .inner {
    padding: 20px 20px;
}

#main-menu .inner-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main-menu .menu-list .inner-list {
    padding: 20px 30px;
}

#main-menu .inner-list .inner-heading {
    font-weight: bold;
    font-size: 15px;
    margin: 0;
    color: #38287e !important;
}

#main-menu .inner-list ul {
    margin: 0;
}

#main-menu .inner-container .inner-col-1 {
    color: oklch(0.709 0.01 56.259);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main-menu .inner-container .inner-col-1 a {
    color: oklch(0.709 0.01 56.259);
    text-decoration: none;
}

#main-menu .inner-container .inner-col-1 a:hover {
    color: #38287e;
}

#main-menu .inner-list .inner-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main-menu .menu-list {
    display: flex;
    flex-direction: column;
}

#main-menu .wp-block-search__input {
    padding: 14px;
}

#main-menu .wp-block-search__button {
    top: 6px;
}

h2.heading {
    margin-bottom: 1rem;
    margin-top: 0;
    background: linear-gradient(to bottom right, #2dd4bf, #0284c7); /* from-teal-400 to-sky-600 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.25rem; /* pb-1 */
    line-height: 1; /* leading-none */
    font-size: 1.8rem;
}

.btn {
    background-color: #f26522;
    border-radius: 0.33rem;
    border-color: var(--wp--preset--color--contrast);
    border-width: 0;
    color: var(--wp--preset--color--base);
    font-: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-style: normal;
    font-weight: 500;
    line-height: inherit;
    padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    padding-left: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all ease-in-out 0.2s;
    letter-spacing: 1px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
        rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
}

.btn:hover {
    background-color: #ca4506;
}

:root :where(.wp-block-search .wp-block-search__input) {
    border: 1px solid #ccc;
    border-radius: 0.2rem;
}

:root :where(.wp-block-button__link) {
    letter-spacing: 1px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
        rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
}

:root :where(.wp-element-button:focus, .wp-block-button__link:focus) {
    border-color: none;
    outline-color: none;
}

:focus-visible,
:where(.wp-site-blocks *:focus) {
    outline-width: 0px;
}

.wp-block-search__inside-wrapper {
    width: 100%;
    position: relative;
}

.wp-block-search__button {
    position: absolute;
    right: 6px;
    padding: 6px;
    background: none;
}

.wp-block-search__button svg {
    fill: #949494;
}
.wp-block-search__button svg:hover {
    fill: oklch(0.588 0.158 241.966);
}

.wp-block-search__input {
    padding-right: 40px !important;
}

#ez-toc-container {
    padding: 30px;
    background: white;
    border-radius: 5px;
    margin: 3rem 0;
}

.ez-toc-title {
    font-size: 0.9rem !important;
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    margin-top: 0px !important;
    margin-bottom: 20px !important;
}

#ez-toc-container li, #ez-toc-container ul, #ez-toc-container ul li, div.ez-toc-widget-container, div.ez-toc-widget-container li {
    line-height: 1.8 !important;
}

ul.ez-toc-list {
    list-style: none;
    margin: 10px 0 0 0 !important;
    position: relative;
    padding-left: 20px;
}

ul.ez-toc-list li {
    margin: 10px 0px 0px 10px;
    position: relative;
}

ul.ez-toc-list li:before {
    content: "→";
    position: absolute;
    top: 3px;
    left: -28px;
    width: 16px;
    height: 16px;
}

/* Custom Dropdown */
.filter-categories {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    width: 100%;
}

.filter-categories label {
    display: none !important;
}

.filter-categories::before {
    content: "Topic";
    position: absolute;
    top: 0.45rem;
    left: 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #888888;
}

.filter-categories select,
.filter-posts select {
    padding: 22px 10px 10px 15px;
    border-radius: 4px;
    border-color: #ccc;
    font-size: 14px;
    width: 100%;
}

.postform {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23333' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    border: 1px solid #ccc;
}

.filter-search .wp-block-search__input {
    padding: 14px 15px;
    border-radius: 4px;
    border-color: #ccc;
    width: 100%;
}

.filter-search .wp-block-search__button {
    top: 6px;
}

.sorted-posts-grid,
.search-posts-grid,
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sorted-posts-grid li,
.search-posts-grid li,
.archive-posts-grid li {
    background: #fff;
    padding: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
}

.sorted-posts-grid li img,
.search-posts-grid li img,
.archive-posts-grid li img {
    width: 100%;
    height: 230px; /* or whatever fixed height you want */
    object-fit: cover;
    display: block;
}

.sorted-posts-grid .post-content,
.search-posts-grid .post-content,
.archive-posts-grid .post-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 20px 0;
}

.sorted-posts-grid .post-metadata,
.archive-posts-grid .post-metadata {
    line-height: 1.2;
}

.sorted-posts-grid li h3,
.sorted-posts-grid li p,
.search-posts-grid li h3,
.search-posts-grid li p,
.archive-posts-grid li h3,
.archive-posts-grid li p {
    padding: 0 20px;
    margin: 0;
}

.sorted-posts-grid h3 a,
.search-posts-grid h3 a,
.archive-posts-grid h3 a {
    font-size: 20px !important;
    color: #38287e !important;
    text-decoration: none;
}

.sorted-posts-grid h3 a:hover,
.search-posts-grid h3 a:hover,
.archive-posts-grid h3 a:hover {
    text-decoration: underline;
    color: #f26522 !important;
}

.filter-posts {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    width: 100%;
}
.filter-posts label {
    display: none;
}

.filter-posts::before {
    content: "Sort by";
    position: absolute;
    top: 0.45rem;
    left: 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #888888;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-wrapper a.page-numbers {
    text-decoration: none;
}

.search-filter {
    display: flex;
    position: relative;
}

#live-post-filter {
    padding: 16px;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    border-color: #ccc;
    width: 100%;
}

.search-filter #live-post-filter {
    max-width: 578px;
}

.no-posts-found {
    background: transparent !important;
    font-size: 16px !important;
    padding: 20px 0 !important;
}

/** 
 * Search filter ajax pagination 
 * **/
.page-btn {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    color: #555555;
}

.page-btn.current {
    color: #38287e;
}

.page-btn:hover {
    color: #f26522;
}

.page-btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
}
