/* ============================================================
   NFA Blog Styles — nfa-blog.css
   Enqueue this file in your functions.php
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    --nfa-navy: #0d2240;
    --nfa-orange: #e8581c;
    --nfa-blue-link: #1a68c4;
    --nfa-text: #222222;
    --nfa-muted: #666666;
    --nfa-border: #e2e2e2;
    --nfa-bg: #f7f8fa;
    --nfa-white: #ffffff;
    --nfa-radius: 6px;
    --nfa-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* ─── Hero ───────────────────────────────────────────────── */
.nfa-blog-hero {
    background: radial-gradient(52.76% 45.54% at 50% 50%, #053068 0%, #000D1D 100%);
    color: var(--nfa-white);
    text-align: center;
    padding: 244px 0 163px;
}

/* .nfa-blog-hero h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
} */

/* ─── Wrapper (two-column layout) ───────────────────────── */
.nfa-blog-wrapper,
.nfa-single-wrapper {
    display: flex;
    /* gap: 30px; */
    max-width: 1720px;
    margin: 48px auto;
    /* padding: 0 24px; */
    align-items: flex-start;
}

/* ─── Main / Posts Area ─────────────────────────────────── */
.nfa-blog-main {
    flex: 1 1 0;
    min-width: 0;
    /* border-right: 1px solid #DBDBDC; */
    padding-right: 30px;
}

/* ─── Posts Grid ────────────────────────────────────────── */
.nfa-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

/* ─── Post Card ─────────────────────────────────────────── */
.nfa-post-card {
    background: #F3F3F5;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: var(--nfa-shadow); */
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
    padding:24px;
    gap:16px;
}
/* .nfa-post-card{
        height: auto !important;
    align-self: flex-start;
}
.nfa-posts-wrap {
    align-items: flex-start !important;
}


.nfa-posts-wrap {
    align-items: start !important;
} */

/* Default equal height for cards without image */
.nfa-post-card.no-image {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Cards with image should auto size */
/* .nfa-post-card.has-image {
    height: auto !important;
    align-self: flex-start;
} */

/* Parent wrapper */
.nfa-posts-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

/* .nfa-post-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .13);
} */

.nfa-card-image-link {
    display: block;
    overflow: hidden;
}

.nfa-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform .3s;
}

/* .nfa-post-card:hover .nfa-card-image {
    transform: scale(1.03);
} */

.nfa-card-body {
    /* padding: 18px 20px 22px; */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nfa-card-meta {
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    line-height: var(--lh-133);
    color: #0A0A0A;
    margin: 0 0 17px;
}

.nfa-card-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: var(--lh-normal);
}

.nfa-card-title a {
    color: var(--nfa-text);
    text-decoration: none;
}

.nfa-card-title a:hover {
    color: var(--nfa-blue-link);
}

.nfa-card-excerpt {
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    color: #5F5F5F;
    line-height: var(--lh-133);
    letter-spacing: -0.312px;
    margin: 0 0 17px;
    flex: 1;
}

.nfa-read-more {
    color: #003B86;
    font-size: var(--fs-20);
    font-weight: var(--fw-600);
    line-height: 100%;
    letter-spacing: -0.15px;
    text-decoration: none;
    display: inline-block;
}

/* .nfa-read-more:hover {
    text-decoration: underline;
} */

/* ─── No Posts ──────────────────────────────────────────── */
.nfa-no-posts {
    padding: 40px 0;
    color: var(--nfa-muted);
    font-size: 1rem;
}

/* ─── Pagination ────────────────────────────────────────── */
.nfa-pagination {
    margin-top: 57px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nfa-pagination .page-numbers {
    color: var(--nfa-text);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: var(--fs-20);
    font-weight: var(--fw-400);
    line-height: var(--lh-normal);
    color: #0A0A0A;
    transition: background .15s;
}

.nfa-pagination .page-numbers:hover,
.nfa-pagination .page-numbers.current {
    background: var(--nfa-bg);
    color: var(--nfa-blue-link);
}

.nfa-pagination .prev,
.nfa-pagination .next {
    font-size: var(--fs-20);
    font-weight: var(--fw-400);
    line-height: var(--lh-normal);
    color: #0A0A0A;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.nfa-blog-sidebar {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 30px;
    position: sticky;
    top: 20px;
    border-left: 1px solid #DBDBDC;
}
/* .page-template-page-blog .nfa-blog-sidebar{
    border: none;
} */
.nfa-post-card.has-image {
    height: auto !important;
    align-self: flex-start !important;
}

.nfa-post-card.no-image{
    height: auto !important;
    min-height: 250px !important;
    align-self: start;
}
/* .nfa-post-card {
    height: auto !important;
    align-self: flex-start;
}


.nfa-posts-wrap {
    align-items: flex-start !important;
}


.nfa-posts-wrap {
    align-items: start !important;
} */

/* ─── Sidebar Widget ────────────────────────────────────── */
/* .nfa-sidebar-widget {
    background: var(--nfa-white);
    border: 1px solid var(--nfa-border);
    border-radius: var(--nfa-radius);
    padding: 20px 18px;
    box-shadow: var(--nfa-shadow);
} */

.nfa-sidebar-title {
    font-size: var(--fs-20);
    font-weight: var(--fw-600);
    line-height: var(--lh-normal);
    color: var(--nfa-text);
    margin: 0 0 16px;
    /* padding-bottom: 8px;
    border-bottom: 1px solid var(--nfa-border); */
}

/* ─── Search Box ────────────────────────────────────────── */
.nfa-search-widget,
.nfa-categories-widget {
    padding-bottom: 30px;
    border-bottom: 1px solid #DBDBDC;
}

.nfa-search-box {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.00);
    border-radius: 8px;
    overflow: hidden;
    background: #F3F3F5;
}

.nfa-search-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: var(--fs-20);
    font-weight: var(--fw-400);
    line-height: var(--lh-normal);
    color: var(--nfa-text);
    background: transparent;
}

.nfa-search-box button {
    background: none;
    border: none;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--nfa-muted);
    display: flex;
    align-items: center;
}

.nfa-search-box button:hover {
    color: var(--nfa-navy);
}

/* ─── Category List ─────────────────────────────────────── */
.nfa-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* .nfa-category-list li {
    padding: 4px 0;
} */

.nfa-category-list a {
    color: var(--nfa-muted);
    /* font-size: var(--fs-18); */
    font-weight: var(--fw-400);
    line-height: var(--lh-133);
    letter-spacing: -0.312px;
    text-decoration: none;
    transition: color .15s;
}

.nfa-category-list a:hover,
.nfa-category-list a.nfa-active-cat {
    color: var(--nfa-blue-link);
    /* font-weight: 600; */
}

.nfa-clear-filter {
    color: var(--nfa-orange) !important;
    /* font-size: .78rem !important; */
    padding:5px;
    margin-top:10px;
    border:1px solid;
    border-radius:10px;
}

/* ─── Date Box ──────────────────────────────────────────── */
.nfa-date-box {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--nfa-border);
    border-radius: var(--nfa-radius);
    overflow: hidden;
}

.nfa-date-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: var(--fs-16);
    font-weight: var(--fw-400);
    line-height: var(--lh-150);
    letter-spacing: -0.312px;
    color: #1D1B20;
    cursor: pointer;
    background: transparent;
}

.nfa-date-icon {
    background: none;
    border: none;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--nfa-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfa-date-hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: var(--lh-133);
    color: #49454F;
    margin: 4px 16px 0;
    padding-left: 2px;
}
.nfa-date-widget{
    padding-bottom: 10px;
    border-bottom: 1px solid #DBDBDC;
}

/* ─── Tags Cloud ────────────────────────────────────────── */
.nfa-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
}

.nfa-tag {
    display: inline-block;
    border: 1px solid var(--nfa-border);
    border-radius: 4px;
    padding: 0 10px;
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    line-height: var(--lh-166);
    letter-spacing: -0.15px;
    color: #1D1B20;
    text-decoration: none;
    background: var(--nfa-bg);
    transition: background .15s, color .15s;
}

.nfa-tag:hover,
.nfa-tag.nfa-active-tag {
    background: #003B86;
    color: var(--nfa-white);
    border-color: var(--nfa-navy);
}

.nfa-tags-more {
    color: #003B86;
    font-size: var(--fs-20);
    font-weight: var(--fw-600);
    line-height: var(--lh-normal);
    cursor: pointer;
    user-select: none;
}

.nfa-tags-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

/* ─── Recent Posts (sidebar, detail page) ───────────────── */
.nfa-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.nfa-recent-posts {
    /* border-bottom: 1px solid var(--nfa-border); */
    display: flex;
    flex-direction: column; 
    gap:11px;
}

.nfa-recent-posts li:last-child {
    border-bottom: none;
}

.nfa-recent-posts a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 9px 0; */
    color: #0A0A0A;
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    line-height: var(--lh-133);
    letter-spacing: -0.312px;
    text-decoration: none;
    transition: color .15s;
}

.nfa-recent-posts a:hover {
    color: var(--nfa-blue-link);
}

.nfa-recent-arrow {
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 6px;
}

/* ─────────────────────────────────────────────────────────
   SINGLE / DETAIL PAGE
   ───────────────────────────────────────────────────────── */

.nfa-single-main {
    flex: 1 1 0;
    min-width: 0;
    padding-right:59px;
    /* border-right:1px solid #DBDBDC; */
}

/* Back link */
.nfa-back-link {
    margin-bottom: 41px;
}

.nfa-back-link a {
    color: var(--nfa-text);
    text-decoration: none;
    font-size: var(--fs-20);
    font-weight: var(--fw-600);
    line-height: var(--lh-normal);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nfa-back-link a:hover {
    color: var(--nfa-blue-link);
}

/* Title */
/* .nfa-single-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--nfa-text);
    margin: 0 0 10px;
    line-height: 1.3;
} */
 .nfa-single-title{
    margin-bottom:17px;
 }

/* Meta */
.nfa-single-meta {
    color: #0A0A0A;
    font-size: var(--fs-18);
    line-height: var(--lh-133);
    font-weight: var(--fw-400);
    margin-bottom: 24px;
}

/* Featured image */
.nfa-single-thumbnail {
    border-radius: var(--nfa-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.nfa-single-image {
    width: 100%;
    /* max-height: 480px; */
    object-fit: cover;
    display: block;
}

/* Content */
.nfa-single-content {
    font-size: var(--fs-18);
    font-weight: var(--fw-400);
    line-height: var(--lh-133);
    color: #5F5F5F;
}

.nfa-single-content p {
    margin-bottom: 24px;
}

.nfa-single-content strong {
    font-weight: var(--fw-600);
    color:#0A0A0A;
}

.nfa-single-content h2,
.nfa-single-content h3,
.nfa-single-content h4 {
    font-weight: 700;
    margin: 24px 0 10px;
}

.nfa-single-content ul,
.nfa-single-content ol {
    padding-left: 15px;
    margin-bottom: 10px;
}

.nfa-single-content li {
    margin-bottom: .4em;
}

.nfa-single-content a {
    color: var(--nfa-blue-link);
    text-decoration: underline;
}

/* Post tags on single */
.nfa-single-tags {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nfa-single-tags-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--nfa-muted);
}
.nfa-header__inner{
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.04);
}
body.single-post{
    padding-top: 141px !important;
}
/* Custom Calendar Popup */
.nfa-calendar-popup {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 16px;
    width: 280px;
    margin-top: 4px;
}

.nfa-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nfa-cal-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.nfa-cal-header button:hover {
    background: #f0f0f0;
}

.nfa-cal-title {
    font-weight: 600;
    font-size: 15px;
}

.nfa-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.nfa-cal-day-name {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
}

.nfa-cal-day {
    font-size: 13px;
    padding: 6px 2px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfa-cal-day:hover {
    background: #f0f0f0;
}

.nfa-cal-day.selected {
    background: #000;
    color: #fff;
}

.nfa-cal-day.today {
    border: 1px solid #000;
}

.nfa-cal-day.empty {
    cursor: default;
}

.nfa-clear-filter {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #e00;
    text-decoration: none;
}
.nfa-date-example{
    color:#49454F;
    font-size:12px;
    font-weight:var(--fw-400);
    line-height:var(--lh-133);
    letter-spacing: 0.4px;
    padding: 4px 16px 0 16px;
}
.nfa-cal-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}
.nfa-cal-title{
	text-decoration:underline;
	cursor:pointer;
}


/* ─── Responsive ────────────────────────────────────────── */
@media only screen and (max-width: 1720px) {
    .nfa-blog-wrapper,
    .nfa-single-wrapper {
        padding: 0 20px;
    }
    .nfa-card-title {
    font-size: 20px;
}
}
@media only screen and (max-width: 1599px) {
    .nfa-card-title {
    font-size: 18px;
}
.nfa-blog-hero{
        padding: 190px 0 130px !important;
}
.nfa-blog-main{
    padding-right: 20px;
}
.nfa-blog-sidebar{
    padding-left: 20px;
}
.nfa-post-card{
    padding: 16px;
}
.nfa-single-main{
        padding-right: 25px;
}
	body.single-post{
    padding-top: 120px !important;
}
}
@media only screen and (max-width:1366px){
    .nfa-posts-grid{
        gap: 20px;
    }
    /* .nfa-post-card.no-image{
        min-height: 300px !important;
    } */
    .nfa-blog-sidebar{
            width: 350px;
            gap: 20px;
    }
    .nfa-search-widget, .nfa-categories-widget {
    padding-bottom: 20px;
    }
}
@media only screen and (max-width:1199px){
    .nfa-card-image{
            height: 150px;
    }
    .nfa-single-main{
        padding-right: 20px;
}
}
@media only screen and (max-width:1024px){
    .nfa-blog-sidebar{
                width: 280px;
    }
        .nfa-blog-hero {
        padding: 150px 0 80px !important;
    }
}
@media (max-width: 900px) {

    .nfa-blog-wrapper,
    .nfa-single-wrapper {
        flex-direction: column-reverse;
    }
    .nfa-blog-sidebar{
        position: relative;
        top: unset;
        padding-left: 0;
        border-left: none;
    }
    .nfa-blog-wrapper{
        gap:30px;
    }
        .nfa-card-image {
        height: 300px;
    }
        .nfa-post-card.no-image {
        min-height: auto !important;
    }
    .nfa-blog-main{
        padding-right: 0;
        border-right: none;
    }
    .nfa-blog-main{
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    .nfa-pagination{
        flex-wrap: wrap;
    }

    .nfa-blog-sidebar {
        width: 100%;
    }

    .nfa-posts-grid {
        grid-template-columns: 1fr;
    }
    .nfa-blog-wrapper, .nfa-single-wrapper {
        padding: 0 15px;
    }
    .nfa-pagination{
            margin-top: 30px;
                /* justify-content: space-between; */
    }
    .nfa-tag{
        padding: 5px;
    }
    .nfa-search-box input[type="text"],
    .nfa-date-box input[type="text"]{
        padding:10px;
    }
    body.single-post {
    padding-top: 70px !important;
}
.nfa-single-wrapper{
    gap: 30px;
}
.nfa-back-link {
    margin-bottom: 15px;
}
.nfa-single-title {
    margin-bottom: 12px;
}
.nfa-single-meta{
        margin-bottom: 20px;
}
.nfa-single-main{
    padding-right: 0;
    border-right: none;
}
}

@media (max-width: 560px) {
    .nfa-blog-hero h1 {
        font-size: 1.8rem;
    }
        .nfa-post-card {
        padding: 12px;
    }
        .nfa-card-image {
        height: 200px;
    }
    .nfa-pagination .page-numbers{
        padding: 6px 2px;
    }
    .nfa-pagination{
        justify-content: space-between;
    }
    .nfa-single-content h4{
        font-size: 20px;
    }

    /* .nfa-single-title {
        font-size: 1.4rem;
    } */
}