a{text-decoration-thickness:1px!important;text-underline-offset:.1em}:where(.wp-site-blocks :focus){outline-width:2px;outline-style:solid}.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child){margin-bottom:3px}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content{outline-offset:4px}.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content{outline-offset:0}blockquote,caption,figcaption,h1,h2,h3,h4,h5,h6,p{text-wrap:pretty}.more-link{display:block}:where(pre){overflow-x:auto}



body {
    font-family: 'Inter', sans-serif;
}

/* Resources Page Styling */
.page-template-page-resources .wp-block-cover {
    /*border-radius: 20px;*/
    overflow: hidden;
}

.page-template-page-resources .resource-card {
    background: #ffffff;
    border-radius: 14px;
    transition: 0.3s ease;
    display: block;
    height: 100%;
}
.page-template-page-resources .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.page-template-page-resources .wp-block-post-template {
    gap: 30px;
}
.resource-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 12px !important;
    font-size: 14px;
    color: #666;
    padding: 0 1.25rem 1.25rem 1.25rem;
    flex-direction: column;
    gap: 17px;
}
/* ALL ARTICLES DROPDOWN */
#categoryFilter {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    font-size: 14px;
    background: #fff;
    color: #4a5568;
    font-family: 'Inter', sans-serif;
}
#categoryFilter:hover, #categoryFilter:active {
    border: 1px solid #4a5568;
    outline: 1px solid #4a5568;
}

/* GRID FIX FOR QUERY LOOP */

#articlesContainer ul.wp-block-post-template {
    display: contents;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#articlesContainer li.wp-block-post {
    list-style: none;
}

.resource-meta .wp-block-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resource-meta img {
    border-radius: 50%;
}

.wp-block-categories-dropdown select {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.resource-author {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.resource-author .wp-block-post-author-name {
    margin-top: 0;
}

/* Category Page */
.category .wp-block-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
}

.category .resource-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.category .resource-card:hover {
   transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.category .wp-block-query-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -.5px;
    margin-bottom: 16px;
    color: #4a5568;
    font-family: 'Inter', sans-serif;
}



/* Single Post Styling */

.single .wp-block-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
}

.single-post-content img {
    border-radius: 14px;
}

.author-box {
    margin-top: 80px;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 14px;
}

.single .resource-card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.single .resource-card:hover {
    transform: translateY(-6px);
}
.breadcrumbs {
   font-size: 16px;
    font-weight: 500;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumbs a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}
.breadcrumbs a:hover {
    text-decoration: underline;
    color: #1e74ac;
}
.breadcrumbs a:hover, .breadcrumbs a:active {
    border: none;
    outline: none;
}
.breadcrumbs p {
    font-size: 16px;
}
p.wp-block-post-title{
    font-size: 16px;
    font-weight: 400;
    color: #000;
}
.breadcrumbs > * {
    margin: 0;
}
.single-post-hero {
    text-align: left;
}

.single-post-hero .wp-block-post-title,
.single-post-hero .wp-block-post-excerpt {
    text-align: left;
}
.wp-block-post-title {
    font-size: 37px;
    font-weight: 600;
    color: #4a5568;
    font-family: 'Inter', sans-serif;
}
.wp-block-post-excerpt__excerpt {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
}
.author-and-dates {
     display: flex;
    flex-direction: column;
    gap: 6px;
}
.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.8;
}
.wp-block-post-author-name {
    color: #4a5568;
    font-size: 17px; 
}
.author-card .wp-block-post-author-name {
    color: #4a5568;
    font-size: 25px !important; 
}
.wp-block-post-author-name a {
    text-decoration: none;
}
.wp-block-post-author-name a:hover {
    text-decoration: underline;
}
.wp-block-post-author-name a:hover, .wp-block-post-author-name a:active {
    border: none;
    outline: none;
}
.meta-separator {
    margin: 0 4px;
    opacity: 0.6;
}
.single-post-hero .wp-block-post-featured-image {
    text-align: left;
}
.entry-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
}
.wp-block-heading {
    color: #4a5568;
    font-family: 'Inter', sans-serif;
    font-size: 25px;
}
.wp-block-list {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
}
.wp-block-table table {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
}
/* TOC */

.toc-horizontal-list a {
    text-decoration: none;
    font-weight: 500;
}
.toc-horizontal-list a:hover, .toc-horizontal-list a:active {
    border: none;
    outline: none;
}
html {
    scroll-behavior: smooth;
}

/* Post Navigation */
.post-navigation-wrap {
    max-width: 900px;
    margin: 60px auto;
}

.post-nav-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-nav-grid span {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.7;
}

/**
 * Single post layout – use in theme Additional CSS or enqueue in theme.
 * Keeps header/footer full width; centers content; horizontal TOC bar; sidebar TOC box.
 */

/* Constrained content: header and footer remain full width from template parts */
.single-post-wrapper {
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal TOC bar below featured image – light gray bar, horizontal list */
.toc-horizontal-bar {
  background-color: #f0f0f0;
  border-radius: 8px;
    margin-top: 20px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
    display: flex;
    align-items: center;
}
.toc-horizontal-bar h3 {
    font-size: 26px !important;
    margin: 0 0 20px;
    color: #4a5568;
    font-weight: 600;
}
.toc-horizontal-list {
  display: flex;
  gap: 1em 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}
.toc-horizontal-list::-webkit-scrollbar {
    display: none;
}
.toc-horizontal-list li {
  margin: 0;
  font-size: 16px;
    display: inline-block;
}

.toc-horizontal-list a {
  text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.toc-horizontal-list a:hover {
  text-decoration: underline;
}
.toc-arrow {
    background: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 5px 10px;
    display: none;
    z-index: 2;
}
.toc-arrow:hover, .toc-arrow:active {
    border: none;
    outline: none;
}
.toc-arrow-left {
    margin-right: 10px;
}

.toc-arrow-right {
    margin-left: 10px;
}

.toc-arrow:hover {
    opacity: 0.7;
}
/* Separator */
.toc-horizontal-list li:not(:last-child)::after {
    content: "|";
    margin-left: 20px;
    opacity: 0.4;
}


/* Sidebar: boxed TOC (light gray, rounded) */
.toc-sidebar-box {
  background-color: #f5f5f5;
  border-radius: 8px;
}

.toc-sidebar-list {
  margin: 0;
  padding-left: 1.25em;
}

.toc-sidebar-list li {
  margin-bottom: 0.25em;
}

/* Read Next cards spacing */
.read-next-card {
  margin-bottom: 1.5em;
}

.read-next-card:last-child {
  margin-bottom: 0;
}

/* Post navigation: Previous left, Next right */
.post-navigation-wrap .wp-block-columns {
  align-items: center;
}

.post-navigation-wrap .wp-block-column:last-child {
  text-align: right;
}
.wp-block-post-title a {
    font-size: 23px;
}
.wp-block-post-date {
    margin-block-start: 0.5rem !important;
}
.author-and-dates .wp-block-post-date {
    margin-block-start: 0rem !important;
}
.static-author-avatar {
    margin-bottom: 0;
}
.static-author-avatar img {
    height: 24px !important;
}
.wp-block-column h3 {
    color: #4a5568;
    font-weight: 600;
    font-size: 22px;
}
/* Related Articles Wrapper */
.related-articles-wrap {
    margin-top: 80px;
}
.related-excerpt{
    line-height: 22px;
    margin-block-start: 0;
}
.related-excerpt .wp-block-post-excerpt {
    margin: 0;
}
.related-author .wp-block-post-author__name {
    font-size: 15px;
}
.related-author .wp-block-post-author {
    align-items: center;
}
.related-author {
    margin-bottom: 3px;
    margin-top: 3px;
    display: flex;
    gap: 10px;
    padding: 0 29px;
}
/* Make posts inline */
.related-posts .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
     list-style: none !important;
    padding-left: 0 !important;
}

/* Each post card inline */
.related-posts .related-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.related-posts .related-card:hover {
     transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Add separator */
.related-posts .related-card:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    opacity: 0.6;
}

/* Title styling */
.related-posts .related-card a {
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}
.related-card .wp-block-post-title {
    margin-block-start: 0;
    line-height: 0.5;
    margin-bottom: 0;
}
.related-card .wp-block-post-title a:hover, .related-card .wp-block-post-title a:active {
    border: none;
    outline: none;
}
.related-posts .related-card a:hover {
    text-decoration: underline;
}
.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.related-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #4a5568;
}

.more-articles-btn {
    padding: 8px 18px;
    border: 1px solid #0066cc;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}

.more-articles-btn:hover {
    background: #0066cc;
    color: #fff;
}
/* FIX QUERY LOOP GRID */
.wp-block-post-template.is-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding-left: 0;
}
/* Mobile */
@media (max-width: 768px) {
    .related-resources-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
    .related-posts .wp-block-post-template {
        grid-template-columns: 1fr;
    }
    #articlesContainer ul.wp-block-post-template {
        grid-template-columns: 1fr;
    }
}
/* Mobile layout */
@media (max-width: 768px) {

    .date-row {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 4px;
        align-items: start;
    }

    /* Row 1 - Labels */
    .date-row span:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .date-row span.meta-separator {
        grid-column: 1 / span 2;
        grid-row: 1;
        justify-self: center;
    }

    .date-row span:nth-of-type(3) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Row 2 - Dates */
    .date-row .wp-block-post-date {
        grid-column: 1;
        grid-row: 2;
    }

    .date-row .wp-block-post-date__modified-date {
        grid-column: 2;
        grid-row: 2;
    }

}


/* Awards Section */
.section-awards {
    padding: 60px 0;
    display: block !important;
    position: relative;
    z-index: 1;
}

.section-awards .wp-block-columns {
    gap: 23px;
}

.section-awards .wp-block-column {
    border-radius: 12px;
    border: 1px solid #e0f5f7;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,.03);
    text-align: center;
}

.section-awards img {
    height: 50px;
    margin-bottom: 10px;
}

.small-text {
    font-size: 14px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .section-awards .wp-block-columns {
        flex-direction: column;
    }
}
/* Awards section – card layout per design */
.section-awards {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 3.5rem 1.5rem 4rem;
    box-sizing: border-box;
    background: #fff;
}
.section-awards > h2 {
   font-size: 40px !important;
    max-width: initial !important;
    font-weight: 900 !important;
    letter-spacing: -.5px;
    margin-bottom: 16px !important;
    color: #4a5568 !important;
    font-family: 'Inter', sans-serif;
}
.section-awards > .has-text-align-center:first-of-type {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #64748b;
    margin-bottom: 60px;
}
.section-awards .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
    align-items: stretch;
    margin: 0;
}
.section-awards .wp-block-column {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 360px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0f5f7;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .03);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
.section-awards .wp-block-image {
    margin: 0 0 0rem;
}
.section-awards .wp-block-image img {
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.section-awards .small-text {
   color: #6c757d !important;
    font-size: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.wp-block-image img {
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    display: block;
    height: 50px;
}
@media (max-width: 782px) {
    .section-awards {
        padding: 2rem 1rem 3rem;
    }
    .section-awards > h2 {
        font-size: 1.5rem;
    }
    .section-awards > .has-text-align-center:first-of-type {
        margin-bottom: 2rem;
    }
    .section-awards .wp-block-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* Make right sidebar sticky */
.single-post-layout .wp-block-column:last-child {
    position: sticky;
    top: 100px; /* adjust based on your header height */
    align-self: flex-start;
}
.related-posts .related-card a:hover {
     color: #1e74ac;
}


.page .has-global-padding{
    margin-top: 50px;
}
.page .wp-block-post-template {
    list-style: none;
    padding-left: 0;
}
.page .wp-block-post-title {
    margin-block-start: 0;
    margin: 10px 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    padding: 0 1.25rem;
}
.page .wp-block-post-template li a {
    font-size: 18px;
    padding-left: 0;
}
.page .wp-block-post-template li a:hover {
    color: #1e74ac;
}
.page .wp-block-post-template li a:hover, .page .wp-block-post-template li a:active {
    border: none;
    outline: none;
}
.page .wp-block-heading {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.5px;
    margin-bottom: 16px;
    color: #4a5568;
    text-align: left;
    font-family: 'Inter', sans-serif;
}
.page .wp-block-categories-list {
    display: flex;
    gap: 37px;
    list-style: none;
    padding: 0;
}
/*.page .cat-item a {*/
/*    text-decoration: none;*/
/*    font-size: 16px;*/
/*    color: #1e74ac;*/
/*    font-weight: 600;*/
/*    border: 2px solid #1e74ac;*/
/*    border-radius: 10px;*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*    padding: 10px 22px;*/
/*}*/
/*.page .cat-item a:hover {*/
/*    background: #1e74ac;*/
/*    color: #fff;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 8px 20px rgba(30, 116, 172, 0.25);*/
/*}*/


.category .wp-block-post-title {
    margin-block-start: 0;
    margin: 10px 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    padding: 0 1.25rem;
}
.category-blog .wp-block-post-excerpt {
    line-height: 1.4;
    margin-block-start: 0.5rem;
}
.category-blog .wp-block-post-excerpt__excerpt {
    font-size: 15px;
}
.category .wp-block-query .wp-block-post-template {
    list-style: none;
    padding-left: 0;
}
.category .wp-block-post-template li a {
    font-size: 18px;
    padding-left: 0;
}
.category .wp-block-post-template li a:hover {
    color: #1e74ac;
}
.category .wp-block-post-template li a:hover, .category .wp-block-post-template li a:active {
    border: none;
    outline: none;
}
.hentry .wp-block-post-title a {
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    color: #64748b;
    padding-left: 29px;
}
.hentry .wp-block-post-date {
    padding: 0 29px 29px;
}
.hentry .wp-block-post-featured-image {
    position: relative;
    margin: 0 0 1em;
}
.resource-card .wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* change to 2 if needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 24px;
    padding: 0 !important;
}
.resource-card .wp-block-post-date {
    padding: 0;
}
.hentry .wp-block-post-excerpt__excerpt {
    padding: 0 29px;
}
.resource-card .wp-block-post-excerpt {
    margin-top: 0;
    padding: 0 1.25rem;
}
.resource-card .wp-block-post-featured-image img {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.wp-block-post-excerpt__excerpt {
     display: -webkit-box;
    -webkit-line-clamp: 2; /* change to 2 if needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*#articlesContainer .resource-card {*/
/*    padding: 1.25rem;*/
/*}*/
#articlesContainer .resource-card a {
    text-decoration: none;
    font-size: 20px;
    line-height: 1.4;
    color: #64748b;
    /*padding: 0 1.25rem;*/
}
#articlesContainer .resource-card a:hover {
    color: #1e74ac;
}
#articlesContainer .resource-card h3 {
    padding: 0 1.25rem;
    margin-bottom: 0;
}
#articlesContainer .resource-card p {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
    padding: 0 1.25rem;
}
#articlesContainer .resource-card a:hover, #articlesContainer .resource-card a:active {
    border: none;
    outline: none;
}
#articlesContainer .resource-meta {
    padding: 0 1.25rem 1.25rem;
}
#articlesContainer .author-avatar {
    height: 30px;
}
#articlesContainer .author-name {
    font-size: 16px !important;
}
.page-btn {
    padding:8px 14px;
    margin:0 4px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
}
.page-btn.active {
    background:#000;
    color:#fff;
}
.page-btn:hover {
    background:#f5f5f5;
}
.arrow-btn {
    font-size: 18px;
    font-weight: bold;
}
.wp-block-query-pagination {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}
/* ===== Browse by Category Wrapper ===== */

.wp-block-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

/* Remove default list styling */
.wp-block-categories li {
    list-style: none;
}

/* Category Card Style */
.wp-block-categories li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 120px;
    background: #f8f9fb;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.25s ease;
    border: 1px solid #eef1f4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Hover effect */
.wp-block-categories li a:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #dbe3ea;
}

/* Optional: Add Icon Above Text */
.wp-block-categories li a::before {
    content: "📁";
    font-size: 28px;
    margin-bottom: 10px;
}

/* Heading spacing */
.wp-block-group h2.has-text-align-center {
    margin-bottom: 10px;
}
.wp-block-categories li a[href*="guide"]::before {
    content: "📘";
}

.wp-block-categories li a[href*="research"]::before {
    content: "📊";
}

.wp-block-categories li a[href*="case"]::before {
    content: "📂";
}

.wp-block-categories li a[href*="knowledge"]::before {
    content: "🛡️";
}

.ajax-active .wp-block-query-pagination {
    display:none;
}
.resource-card img {
    width:100%;
    height:auto;
}
.page-btn {
    padding:8px 14px;
    margin:0 4px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
}
.page-btn.active {
    background:#4a5568;
    color:#fff;
}
.arrow-btn {
    font-weight:bold;
}
.no-results {
    text-align:center;
    padding:40px;
    font-size:18px;
    color:#666;
}
.page-numbers.current{
    background: #000;
    color: #fff;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 6px;
}
.page-numbers:hover {
    background: #E8F4FD;
    color: #0F4C75;
    border-color: #0F4C75;
}
.page-numbers {
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border-radius: 6px;
    color: #0F4C75;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.custom-search-wrapper {
    display:flex;
    max-width:600px;
    margin:0 auto;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.custom-search-input {
    flex:1;
    padding:16px;
    font-size:16px;
    border:none;
    outline:none;
    background:#f5f5f5;
}

.custom-search-input::placeholder {
    color:#aaa;
}

.custom-search-button {
    background: linear-gradient(135deg, #1e74ac 0, #2389c7 100%);
    border:none;
    padding:0 22px;
    cursor:pointer;
    font-size:18px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.2s ease;
}

.custom-search-button:hover {
    opacity:0.9;
}




/* ===== AUTHOR GRID FIX ===== */

body.author .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Force equal card layout */
body.author .wp-block-post {
    background: #ffffff;
    border-radius: 14px;
    transition: 0.3s ease;
    display: flex;
    height: 100%;
}

/* Remove weird word breaking */
body.author .wp-block-post-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    line-height: 1.4;
}

/* Featured image */
body.author .wp-block-post-featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Content spacing */
body.author .wp-block-post-title,
body.author .wp-block-post-excerpt,
body.author .wp-block-post-date {
    padding-left: 20px;
    padding-right: 20px;
}

body.author .wp-block-post-title {
    margin-top: 20px;
    font-size: 20px;
}

body.author .wp-block-post-excerpt {
    font-size: 14px;
    color: #666;
}

body.author .wp-block-post-date {
    margin: 15px 0 20px;
    font-size: 13px;
    color: #888;
}

/* Prevent narrow inner column bug */
body.author .wp-block-post > * {
    width: 100% !important;
}

/* Responsive */
@media (max-width: 1024px) {
    body.author .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body.author .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}
.author .is-layout-grid {
    display: block;
}
.author-card a {
    padding-left: 0 !important;
}
.author-card .wp-block-post-excerpt__excerpt {
    padding: 0;
    padding-top: 5px;
    font-size: 13px;
}
.author-card a:hover, .author-card a:active {
    border: none;
    outline: none;
}
/* AUTHOR PAGINATION */
body.author .wp-block-query-pagination {
    margin-top: 50px;
    gap: 8px;
}

body.author .wp-block-query-pagination a,
body.author .wp-block-query-pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

body.author .wp-block-query-pagination .current {
    background: #4a5568;
    color: #fff;
    border-color: #4a5568;
}

body.author .wp-block-query-pagination a:hover {
    background: #f3f4f6;
}
.wp-block-query .wp-block-group:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.wp-block-query a {
    text-decoration: none;
}

.wp-block-query a:hover {
    color: #0073e6;
}
.author-card {
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.author-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.author-card img {
    border-radius: 8px;
}

.author-date {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}
.author .is-layout-flex {
    display: flex;
    gap: 10px;
}
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
        text-align: center;
    }
}



/*404 error page*/
.error-404-wrapper {
    position: relative;
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*background-color: #f0f4f8;*/
}

/* Truck background image */
.error-404-bg {
    position: absolute;
    inset: 0;
    /*background-image: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1600&q=80');*/
    background-size: cover;
    background-position: center 60%;
    /*filter: brightness(0.18) saturate(0.4) hue-rotate(200deg);*/
    z-index: 0;
}

/* Blue tint overlay */
.error-404-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(160deg, rgb(10 20 60 / 50%) 0%, rgb(5 30 80 / 31%) 50%, rgb(10 15 50 / 28%) 100%);*/
    z-index: 1;
}

/* Flower / bubble SVG */
.error-404-flower {
    position: absolute;
    width: min(520px, 85vw);
    height: min(520px, 85vw);
    opacity: 0.18;
    z-index: 2;
    animation: slowSpin 40s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.error-404-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.error-404-code {
    font-weight: 600;
    font-size: 80px;
    text-transform: uppercase;
        color: #4a5568;
    margin-bottom: 1rem;
    margin-top: 0;
}

.error-404-heading {
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
        color: #4a5568;
    margin: 0 0 1.5rem;
}

.error-404-sub {
    /*font-family: 'Jost', sans-serif;*/
    font-weight: 300;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    letter-spacing: 0.08em;
        color: #4a5568;
    margin-bottom: 2.8rem;
}

.error-404-link {
    display: inline-block;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2.4rem;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    color: #1e74ac;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #1e74ac;
    border-radius: 10px;
}

.error-404-link:hover {
       background: #eff6ff;
    color: #1e74ac;
    /*border-color: rgba(180, 210, 255, 0.8);*/
    text-decoration: none;
}
.error_btns {
        display: flex;
    gap: 2rem;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Subtle road / horizon line */
.error-404-road {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28%;
    /*background: linear-gradient(to top,rgba(0, 10, 40, 0.6) 0%,transparent 100%);*/
    z-index: 2;
}
@media (max-width: 768px) {
  .error-404-wrapper {
          min-height: auto;
  }
  .error_btns {
      flex-direction: column;
  }
  .error-404-link {
      width: 70%;
  }
}