@import url('https://fonts.googleapis.com/css?family=Crimson+Text|Merriweather|Titillium+Web');
body {
    color: #737373;
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    line-height: 1.6em;
    font-weight: 400;
    background: #f8f9fa;
    /*padding: 40px 0;*/
}

/* ================= BLOG CARD DESIGN (ONLY BLOG) ================= */
/* Simple 2-column layout - no grid, just flexbox + width */
ul.wp-block-post-template,
ul.wp-block-post-template.is-layout-grid,
.is-layout-grid.wp-block-post-template {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 30px !important;
    /* Force remove grid */
    grid-template-columns: none !important;
}

ul.wp-block-post-template>li,
.is-layout-grid>li {
    width: calc(50% - 15px) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.blog-card {
    margin: 0;
    padding: 0;
    width: 100%;
}

.blog-card .card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    height: 100%;
}

.blog-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card .card:hover img {
    transform: scale(1.08);
}

.blog-card .card-body {
    padding: 22px;
}

.blog-card .card-title,
.blog-card h3,
.blog-card .wp-block-post-title {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0 !important;
}

.blog-card .card-title a,
.blog-card .wp-block-post-title a {
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.blog-card .card-title a:hover,
.blog-card .wp-block-post-title a:hover {
    color: #e63946;
}

.blog-card .card-text p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.blog-card .card-text a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 22px;
    background: #e63946;
    color: #fff !important;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card .card-text a:hover {
    background: #c72f3b;
    transform: translateX(5px);
}

/* ================= PAGINATION STYLES ================= */
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
    width: 100%;
    grid-column: 1 / -1;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-query-pagination a:hover {
    background: #e63946;
    color: #fff;
    border-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.wp-block-query-pagination .current,
.wp-block-query-pagination .page-numbers.current {
    background: #e63946;
    color: #fff;
    border-color: #e63946;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    font-weight: 700;
}

/* ================= UNIFIED SIDEBAR DESIGN (BOTH TEMPLATES) ================= */
#blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-box {
    background: #fff;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Sidebar Titles with Icon Support */
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #e63946 0%, #c72f3b 100%);
    color: #fff;
    border: none;
    position: relative;
}

.sidebar-title::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

.sidebar-categories .sidebar-title::before {
    content: '\f07b';
    /* folder icon */
}

.sidebar-recent .sidebar-title::before {
    content: '\f017';
    /* clock icon */
}

.sidebar-popular .sidebar-title::before {
    content: '\f06d';
    /* fire icon */
}

/* ================= CATEGORIES SECTION ================= */
.sidebar-categories .wp-block-categories {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.sidebar-categories .wp-block-categories li {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-categories .wp-block-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories .wp-block-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-categories .wp-block-categories a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #e63946;
    transition: transform 0.3s ease;
}

.sidebar-categories .wp-block-categories a:hover {
    color: #e63946;
    padding-left: 8px;
}

.sidebar-categories .wp-block-categories a:hover::before {
    transform: translateX(5px);
}

.sidebar-categories .wp-block-categories .count {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ================= RECENT POSTS SECTION ================= */
.sidebar-recent .wp-block-latest-posts {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.sidebar-recent .wp-block-latest-posts li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e8e8e8;
}

.sidebar-recent .wp-block-latest-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-recent .wp-block-latest-posts a {
    color: #222;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-recent .wp-block-latest-posts a:hover {
    color: #e63946;
}

.sidebar-recent .wp-block-latest-posts time {
    display: block;
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

.sidebar-recent .wp-block-latest-posts time::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 6px;
    color: #e63946;
}

/* ================= POPULAR POSTS SECTION ================= */
.sidebar-popular .wp-block-query {
    margin: 0;
    padding: 0;
}

/* Override blog listing 2-column layout for sidebar */
.sidebar-popular .wp-block-post-template {
    display: block !important;
    flex-wrap: nowrap !important;
    list-style: none;
    padding: 20px 25px;
    margin: 0;
}

.sidebar-popular .wp-block-post-template>* {
    width: 100% !important;
}

.sidebar-popular .wp-block-post-template>* {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e8e8e8;
}

.sidebar-popular .wp-block-post-template>*:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-popular h2,
.sidebar-popular .wp-block-post-title {
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.sidebar-popular .wp-block-post-title a {
    color: #222;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 22px;
}

.sidebar-popular .wp-block-post-title a::before {
    content: '\f06d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #ff6b6b;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-popular .wp-block-post-title a:hover {
    color: #e63946;
    padding-left: 26px;
}

.sidebar-popular .wp-block-post-title a:hover::before {
    color: #e63946;
}

/* ================= SINGLE POST STYLES ================= */
#blog-single h2,
#blog-single .wp-block-post-title,
.single-post h2 {
    font-size: 32px !important;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

.single-featured-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.single-post-meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wp-block-post-date {
    font-size: 16px !important;
    color: #999;
}

.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 768px) {

    /* Single column on mobile */
    ul.wp-block-post-template>li,
    .is-layout-grid>li {
        width: 100% !important;
    }

    #blog-sidebar {
        position: static;
        margin-top: 30px;
    }

    #blog-single h2,
    #blog-single .wp-block-post-title,
    .single-post h1 {
        font-size: 28px !important;
    }

    .sidebar-box {
        margin-bottom: 25px;
    }
}

#flink li a , #flink2 li a
{
    font-size: 16px;
}
#flink li a:hover , #flink2 li a:hover
{
    color: #c70001;
    text-decoration: none;
}

.footer-bottom a{
    color:#e87813;
}

.sidebar-popular .wp-block-post-template>*{
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 18px !important;
        /*margin-bottom: 18px !important;*/
    padding-bottom: 18px !important;
}