.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Each side */
.nav-item {
    width: 50%;
}

/* Alignment */
.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
}

/* Label */
.nav-label {
    display: block;

    margin-bottom: 10px;
}

/* Title */
.nav-item a {
    text-decoration: none;
    max-width: 100%;
    display: inline-block;
    line-height: 1.4;
}

.nav-item a:hover {
    text-decoration: underline;
}


/* Show arrows on hover */
.nav-item.next a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-item.prev a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-label {
    letter-spacing: 0.5px;
    text-transform: none;
}

.post-navigation-custom {
    background: linear-gradient(90deg, #2b2b2b, #1f1f1f);
    padding: 60px 0;
    color: #fff;
    margin-top: 65px;
}


/* Each half */
.nav-item {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    /* center content horizontally */
}

/* Content centered */
.nav-content {
    text-align: center;
    max-width: 100%
}

/* Labels */
.nav-label {
    display: block;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

/* Links */
.nav-content a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    line-height: 1.4;
}

/* Arrows positioned at edges */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Left arrow */
.nav-item.prev .nav-arrow {
    left: 0;
}

/* Right arrow */
.nav-item.next .nav-arrow {
    right: 0;
}

/* Show arrows on hover */
.nav-item:hover .nav-arrow {
    opacity: 1;
}

.content-r {
    text-align: right !important;
}

.content-l {
    text-align: left !important;
}

/* Base arrow */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 57px;
    opacity: 0;
    transition: all 0.35s ease;
}

/* LEFT (Previous) - start outside */
.nav-item.prev .nav-arrow {
    left: 0;
    transform: translate(-20px, -50%);
    /* hidden left */
}

/* RIGHT (Next) - start outside */
.nav-item.next .nav-arrow {
    right: 0;
    transform: translate(20px, -50%);
    /* hidden right */
}

/* Hover IN (arrow comes toward center) */
.nav-item.prev:hover .nav-arrow {
    opacity: 1;
    transform: translate(0, -50%);
}

.nav-item.next:hover .nav-arrow {
    opacity: 1;
    transform: translate(0, -50%);
}

/* Smooth exit (handled automatically by transition) */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 30px;
    }

    .nav-item {
        width: 100%;
        text-align: center !important;
    }
}

@media (max-width: 768px) {


    .nav-item {
        align-items: center !important;
        text-align: center;
    }

    .nav-flex {
        flex-direction: column;
        gap: 40px;
    }

    .nav-arrow {
        display: none;
        /* cleaner on mobile */
    }

    .content-r {
        text-align: center !important;
    }

    .content-l {
        text-align: center !important;
    }
}

.nav-content span,
.nav-content a {
    color: #fff !important;
    font-size: 20px !important;
    font-family: 'Open Sans', sans-serif !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    transform: translateX(0) translateZ(0);
    transition: transform .4s cubic-bezier(.05, .2, .1, 1);
}

.nav-content a:hover {
    text-decoration: none;
}

.nav-item:hover .nav-arrow {
    transform: translate(0, -50%) scale(1.1);
}

.nav-item {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    transition: background 0.3s ease;
}

/* Left panel hover */
.nav-item.prev:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Right panel hover */
.nav-item.next:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Left panel (Previous) */
.nav-item.prev:hover {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0));
}

/* Right panel (Next) */
.nav-item.next:hover {
    background: linear-gradient(to left,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0));
}

.nav-item {
    transition: background 0.4s ease, transform 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item:hover a {
    color: #fff;
}

.nav-item:hover .nav-label {
    color: #ddd;
}

.site-main {
    padding-bottom: 0px !important;
}



.blog-title {
    font-size: 36px;
    font-weight: 600;
    margin: 10px 0 15px;
    color: #222;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #2b2a2a;
    padding-bottom: 35px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 35px;
    text-transform: capitalize;
    font-size: 16px;
}

.blog-category a,
.blog-author a {
    color: #555;
    text-decoration: none;
}

.blog-category a:hover,
.blog-author a:hover {
    color: #f9a32f;
}


/* HERO */




.blog-filters button {
    background: #7cc242;
    border: none;
    padding: 6px 12px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* FEATURED */
.featured-grid {
    /* display: flex;
    gap: 20px; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

.blog-card.featured {
    background: #0597D4;
    color: #fff;
}

/* GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* CARD */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* important */
}

.all-blogs .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 12px 12px 0 rgba(239, 111, 41, 0.04);
    border: 1px solid #eee;
}

/* .blog-card:hover {
    transform: translateY(-5px);
} */

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blog-card:hover img {
    transform: scale(1.03);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 23px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* fills remaining height */
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.featured .read-more {
    align-self: flex-start;
    background: #8CC641;
    padding: 4px 7px;
    color: white;
    border-radius: 6px;
    font-size: 13px;

}

.cp-blog-arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.featured .read-more:hover .cp-blog-arrow {
    transform: translateX(3px);
}

/* PAGINATION */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}



.blog main#main-content {
    padding-top: 0px !important;
}

.blog-hero {
    background: #3f7c7a;
    padding: 100px 0;
    color: #fff;
    overflow: hidden;
}

/* Layout */
.hero-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* LEFT CONTENT */
.hero-left {
    flex: 1;
    max-width: 50%;
}



.hero-left p {
    font-size: 16px;
    line-height: 1.6;
    color: #e6f2f1;
}

/* RIGHT IMAGE */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 500px;
}

.hero-right img {
    max-width: 420px;
    width: 100%;
}

/* subtle visual balance like screenshot */
.hero-right img {
    transform: translateY(10px);
}

@media (max-width: 768px) {
    .hero-wrap {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-right {
        justify-content: center;
    }

    .hero-right img {
        max-width: 280px;
        transform: none;
    }
}

.blog-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px auto;
    flex-wrap: wrap;
}

/* "Search by:" */
.filter-label {
    font-size: 14px;
    color: #555;
}

/* Green pill container */
.filter-group {
    position: relative;
}

.blog-filters {
    margin-top: 30px;
    margin-bottom: 30px;
}

.hero-right p {
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.hero-right a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.hero-right a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.hero-left h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: white;
    margin-bottom: 10px;
    text-align: center;

}

span.filter-label {
    font-size: 17px;
    color: #2c3e50;
    margin-right: 10px;
    font-family: sans-serif;
    font-weight: 600;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

/* Button */
.dropdown-selected {
    background: #7cc242;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Dropdown */
.dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 240px;
    max-height: 250px;
    overflow-y: auto;

    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);

    list-style: none;
    padding: 0;
    margin: 0;

    display: none;
    z-index: 999;
}

/* Items */
.dropdown-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-list li:hover {
    background: #f5f5f5;
}

.arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .arrow {
    transform: rotate(180deg);
}

.dropdown-selected span.label {
    font-weight: 600;
}

.featured-blogs h2,
.all-blogs h2 {
    font-weight: 600;
    color: #2c3e50;
    margin: 20px auto 10px;
    font-size: 24px !important;
    padding-top: 4px;
    padding-bottom: 10px;
}

section.all-blogs.container {
    padding-top: 10px;
    padding-bottom: 40px;
}

.featured .card-content h3 a {
    color: #fff !important;
    transition: color 0.3s ease;
    font-size: 20px !important;
}

.cp-blog-post-meta {
    font-size: 13px;
    color: #fff;
    margin: 8px 0 12px;
}

.cp-blog-post-meta a {
    color: #fff;
    text-decoration: none;
}

.cp-blog-post-meta a:hover {
    text-decoration: none;
}

.cp-blog-category-label {
    margin: 0 4px;
    opacity: 0.8;
}

.all-blogs .blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.all-blogs .card-content h3 {
    color: #2c3e50;
    text-decoration: none;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
    font-size: 20px !important;
}

.all-blogs .cp-blog-post-meta {
    color: #e67e22 !important;
    font-size: 12px !important;
    font-weight: 500;
}

.all-blogs .cp-blog-post-meta a {
    color: #e67e22 !important;
}

.cp-blog-category-label-norm,
.cp-blog-date {
    color: #747474 !important;
    font-weight: 400 !important;
}

.cp-blog-post-excerpt p {
    color: #000;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    padding: 0px !important;
}

.all-blogs .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #414042;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.all-blogs .read-more:hover {
    color: #d35400;
    gap: 10px;
}

.all-blogs .read-more:hover .cp-blog-arrow {
    transform: translateX(3px);
}

.all-blogs .card-image {
    width: 100%;
    height: 220px;
    padding: 22px 0px;
    display: flex;
    align-items: center;
    height: 100%;
    background: white;
}

.pagination .page-numbers {
    margin: 0;
    padding: 0;
    border: 1px solid #DFE3E8;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: #ffffff;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pagination .page-numbers.current {
    background: white;
    color: #EF6F29;
    font-weight: 600;
    border: 1px solid #EF6F29;
    border-radius: 5px;
}

.single-post main#main-content {
    padding-top: 20px;
}



@media (max-width: 768px) {

    .blog-grid,
    .featured-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {

    .blog-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

section.blog-hero.single-blog-hero {
    background-color: #5F96AA;
    padding-top: 30px;
    padding-bottom: 30px;
}

div#single-below-header a {
    text-decoration: none;
    color: inherit;
}

#single-below-header span {
    color: rgba(255, 255, 255, .8);
    border-color: rgba(255, 255, 255, .25);
}

body.single-post #single-below-header>span:not(:last-child)::after {
    content: " | ";
    margin: 0 10px;
    color: rgba(255, 255, 255, .6);
}

.single-blog-hero .hero-left h1 {
    font-size: 38px !important;
    font-weight: 600;
    text-align: left;
}

/* === SINGLE BLOG HERO === */
section.blog-hero.single-blog-hero {
    background-color: #007071;
    padding: 0;
    overflow: hidden;
    min-height: 360px;
}

section.blog-hero.single-blog-hero .hero-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch;
    min-height: 360px;
}

section.blog-hero.single-blog-hero .hero-left {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 55px 50px 55px max(70px, calc((100vw - 1425px) / 2 + 70px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

section.blog-hero.single-blog-hero .hero-right {
    flex: 0 0 40%;
    max-width: 40%;
    overflow: hidden;
    display: block;
    padding: 0;
    margin: 0;
}

section.blog-hero.single-blog-hero .hero-image {
    width: 100%;
    height: 100%;
    display: block;
}




/* Meta row */


#single-below-header a:hover {
    opacity: 0.8;
}

section.blog-hero.single-blog-hero .hero-right {
    flex: 0 0 40%;
    max-width: 40%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 360px;
}

/* Remove old hero-image rules — no longer needed */
section.blog-hero.single-blog-hero .hero-image,
section.blog-hero.single-blog-hero .hero-image img {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    section.blog-hero.single-blog-hero .hero-left {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 40px 24px;
    }

    section.blog-hero.single-blog-hero .hero-right {
        display: none;
    }
}

.blog-meta-sep {
    color: #bbb;
    margin: 0 2px;
}

.single-post h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1.375rem !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    text-transform: initial !important;
    color: #2b2a2a;
}

body .container h2 {
    font-size: 1.75rem !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    text-transform: initial !important;
    color: #2b2a2a;
}

.single-post .content-area p {
    padding-bottom: 1.5em;
}

span.breadcrumb_last {
    color: #000;
    font-weight: 600;
}


@media (max-width: 998px) {
    section.blog-hero.single-blog-hero {
        background-image: linear-gradient(rgba(95, 150, 170, 0.6), rgba(95, 150, 170, 0.6)), url('<?php echo esc_url($hero_image_url); ?>');
        background-size: cover;
        background-position: center;
        min-height: 350px;
        display: flex !important;
    }

    section.blog-hero.single-blog-hero .hero-right {
        display: none;
    }

    section.blog-hero.single-blog-hero .hero-wrap {
        flex: 1;
        min-height: 350px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    section.blog-hero.single-blog-hero .hero-left {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px 24px;
        text-align: left;
    }

    .single-blog-hero .hero-left h1 {
        text-align: left !important;
    }

    #single-below-header {
        text-align: left !important;
    }
}

@media (max-width: 998px) {
    section.blog-hero.single-blog-hero .hero-left {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px 24px;
        text-align: left !important;
    }
}

section.blog-hero.single-blog-hero {
    margin-bottom: 40px;
}

.content-area.content-area--single {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Author Box
   ═══════════════════════════════════════════════════════════════════════════════ */
.cp-author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 40px;
    padding: 30px 0 0;
}

.cp-author-box__img {
    width: 187px;
    height: 200px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #b9c8ce;
}

.cp-author-box__info {
    flex: 1;
    min-width: 0;
}

.cp-author-box__label {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
}

.cp-author-box__name {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 4px;
}

.cp-author-box__name a {
    color: #f9a32f;
    text-decoration: none;
}

.cp-author-box__name a:hover {
    text-decoration: underline;
}

.cp-author-box__role {
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    color: #000;
    margin: 0 0 12px;
}

.cp-author-box__desc {
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #000;
}

.cp-author-box__desc p {
    margin: 0 0 8px;
}

@media (max-width: 480px) {
    .cp-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .cp-author-box__img {
        width: 120px;
        height: 120px;
    }
}
