.fpp-blog-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.fpp-blog-sidebar {
    width: 400px;
    /* Fixed wider sidebar */
    flex-shrink: 0;
    position: sticky;
    top: 50px;
}

/* Search Form */
.fpp-search-form {
    background: #F1F1F1;
    /* Light gray background */
    padding: 5px 10px;
    border-radius: 8px;
    /* Rounded corners */
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.fpp-search-form input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 15px;
    color: #555;
    padding-right: 10px;
    box-shadow: none;
    background: transparent;
    border-color: transparent;
    outline: none;
}

.fpp-search-form input::placeholder {
    color: #999;
}

.fpp-search-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ff4d4d;
    /* Red icon */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpp-search-form button svg {
    width: 20px;
    height: 20px;
}

/* Recent Posts Widget */
.fpp-recent-posts h3 {
    font-size: 20px;
    font-weight: 600;
    /* Bolder title */
    color: #1a1a2e;
    /* Dark navy text */
    margin-bottom: 30px;
}

.fpp-recent-post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.fpp-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fpp-recent-post-thumb {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 10px;
    /* More rounded */
    overflow: hidden;
    border: 1px solid #0000001a;
}

.fpp-recent-post-thumb img {
    width: 100%;
    padding: 5px;
    height: 100%;
    object-fit: contain;
}

.fpp-recent-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fpp-recent-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #0A0624;
}

.fpp-recent-post-content h4 a {
    color: inherit;
    text-decoration: none;
}

.fpp-recent-post-content h4 a:hover {
    color: #ff4d4d;
}

.fpp-recent-post-date {
    font-size: 12px;
    color: #717171;
    padding: 1px 0px;
}

.fpp-recent-post-read-more {
    font-size: 13px;
    color: #007FD0;
    /* Blue link */
    text-decoration: underline;
    font-weight: 500;
}

/* Main Grid */
.fpp-blog-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    /* Larger gap between cards */
}

.fpp-blog-card {
    background: #fff;
    border-radius: 14px;
    /* Very rounded corners like Figma */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft large shadow */
    display: flex;
    flex-direction: column;
    padding: 30px !important;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fpp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.fpp-blog-card-thumb {
    height: 190px;
    position: relative;
    overflow: hidden;
    border: 1px solid #00000012;
    border-radius: 14px;
}

.fpp-blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fpp-blog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 12px;
}

.fpp-blog-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px !important;
    color: #1a1a2e;
}

.fpp-blog-title a {
    color: inherit;
    text-decoration: none;
}

.fpp-blog-title a:hover {
    color: #ff4d4d;
}

.fpp-blog-meta {
    font-size: 12px;
    color: #F34640;
    /* Red specific color */
    margin-bottom: 20px;
    font-weight: 500;
}

.fpp-blog-excerpt {
    font-size: 12px;
    color: #5F6C76;
    line-height: 1.6;
    flex-grow: 1;
}

.fpp-blog-excerpt p {
    margin: 0;
}

.fpp-blog-excerpt a.read-more-link {
    color: #666;
    /* Keep inline readmore subtle or hidden if using button */
    text-decoration: underline;
}

.fpp-blog-footer {
    padding-top: 10px;

    /* Subtle separator */
    font-size: 12px;
    color: #1a1a2e;
    font-weight: 600;
    font-style: italic;
    /* "Posted in..." often italicized in designs */
    margin-bottom: 30px;
}

.fpp-blog-footer a:last-child {
    color: #0097CE;
    /* Blue for author/category */
    text-decoration: none;
}

.fpp-read-more-btn {
    display: inline-block;
    align-self: flex-start;
    background: #F34640;
    /* Figma Red */
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    /* Subtle button shadow */
}

.fpp-read-more-btn:hover {
    background: #e63939;
    color: #fff;
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.4);
}


/* Responsive */
@media (max-width: 1100px) {
    .fpp-blog-sidebar {
        width: 350px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .fpp-blog-container {
        padding: 40px 20px;
        gap: 30px;
    }

    .fpp-blog-sidebar {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .fpp-blog-container {
        flex-direction: column;
    }

    .fpp-blog-sidebar {
        position: static;
    }

    .fpp-blog-card-thumb {
        height: 200px;
    }

    .fpp-blog-container {
        padding: 40px 10px;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .fpp-blog-container .fpp-recent-posts {
        display: none;
    }

    .fpp-blog-container .fpp-blog-sidebar {
        width: 100%;
    }

    .fpp-search-form {
        margin-bottom: unset;
    }

    .fpp-blog-container {
        flex-direction: column;
    }
}

/* No Image Placeholder */
.fpp-no-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fpp-no-image-placeholder.small {
    font-size: 10px;
    letter-spacing: 0.5px;
}

.fpp-blog-meta span,
.fpp-blog-footer a {
    color: #505050;
}

aside.fpp-blog-sidebar input:focus {
    background: transparent;
    border-color: transparent;
    outline: none;
}

/* Custom Pagination */
.fpp-custom-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    width: 100%;
    grid-column: span 2;
}

/* Next Page Button (Left Side) */
.fpp-next-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #000;
    border-radius: 6px;
    color: #000;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.fpp-next-page-btn:hover {
    background: #000;
    color: #fff;
}

.fpp-custom-pagination .fpp-next-page-placeholder {
    /* Takes up space if button is hidden, or just flex alignment handles it */
    width: 100px;
}

/* Right Side Controls */
.fpp-pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Page Counter */
.fpp-page-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.fpp-page-counter .current-box {
    background: #EDF2F6;
    padding: 10px 15px;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    font-size: 18px;
}

/* Arrow Buttons */
.fpp-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
}

.fpp-arrow-btn svg {
    width: 10px;
    height: 16px;
}

/* Previous Arrow */
.fpp-arrow-btn.prev {
    background: #EDF2F6;
    color: #000;
}

.fpp-arrow-btn.prev:hover:not(.disabled) {
    background: #dbe2e8;
    /* slightly darker gray */
}

/* Next Arrow */
.fpp-arrow-btn.next {
    background: #0093D0;
    /* Primary Blue */
    color: #fff;
}

.fpp-arrow-btn.next:hover:not(.disabled) {
    background: #007bb5;
}

/* Disabled State */
.fpp-arrow-btn.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .fpp-custom-pagination {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .fpp-blog-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .fpp-custom-pagination .fpp-next-page-placeholder {
        display: none;
    }

    .fpp-blog-card {
        padding: 20px !important;
    }
}

/* ---------------------------------------------------------
   Single Post Specific Styles
   --------------------------------------------------------- */

/* Breadcrumbs */
.fpp-breadcrumbs {
    font-size: 13px;
    color: #555;
    margin-bottom: 25px;
    font-weight: 500;
    font-family: inherit;
    /* Ensure font consistency */
}

.fpp-breadcrumbs a {
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #bbb;
    /* Subtle underline */
}

.fpp-breadcrumbs .current {
    color: #0093D0;
    /* Blue custom */
    font-weight: 600;
}

.fpp-breadcrumbs span {
    margin: 0 6px;
    color: #ccc;
}

/* Tags Widget */
.fpp-tags-widget {
    margin-top: 40px;
}

.fpp-tags-widget h3 {
    font-size: 18px;
    /* Matched to "Recent Blog Post" roughly */
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.fpp-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-link {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    font-weight: 500;
}

.tag-cloud-link:hover,
.tag-cloud-link.active {
    background: #F34640;
    color: #fff;
    border-color: #F34640;
}


/* Single Post Content Wrapper - Override Grid */
.fpp-single-content-wrapper {
    display: block !important;
    /* Override .fpp-blog-grid grid display */
    padding: 0 !important;
    /* Remove any padding if inherited awkwardly */
}

/* Ensure we inherit main grid basic sizing but reset display */
.fpp-single-content-wrapper {
    flex-grow: 1;
}


/* Single Article Styling */
.fpp-single-article {
    background: transparent;
    box-shadow: none;
    padding: 0 !important;
    border: none;
}

.fpp-single-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
    background: #F2F9FD;
    max-height: 500px;
    padding: 25px 30px;
}

.fpp-single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title & Meta */
.fpp-single-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.fpp-single-meta-row {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
}

.fpp-date-highlight {
    color: #F34640;
    /* Red as per design */
    font-weight: 600;
    margin: 0 4px;
}

/* Content Typography */
.fpp-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    /* Better reading experience often */
}

.fpp-single-content p {
    margin-bottom: 25px;
}

.fpp-single-content h2,
.fpp-single-content h3,
.fpp-single-content h4 {
    margin-top: 45px;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.3;
}

.fpp-single-content h2 {
    font-size: 21px;
}

.fpp-single-content h3 {
    font-size: 20px;
}

/* In-content Images */
.fpp-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
}

.fpp-single-content img.alignright {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 45%;
}

.fpp-single-content img.alignleft {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 45%;
}

/* Lists styling (as seen in bottom right of design) */
.fpp-single-content ul {
    margin: 30px 0;
    padding: 30px;
    background: #EDF2F6;
    /* Light gray/blue bg */
    border-radius: 12px;
    list-style: none;
    /* We will use custom bullets or just rely on content */
}

.fpp-single-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
    color: #333;
    font-weight: 500;
}

.fpp-single-content ul li::before {
    content: "•";
    color: #333;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.fpp-single-content ul li strong,
.fpp-single-content ul li b {
    color: #1a1a2e;
}

.fpp-tags-cloud a:first-child {
    background: #F34640;
    color: white;
}

/* Responsive adjustments for Detail Page */
@media (max-width: 900px) {
    .fpp-single-meta-row {
        font-size: 13px;
    }

    .fpp-single-title {
        font-size: 24px;
    }

    .fpp-single-content img.alignright,
    .fpp-single-content img.alignleft {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }

    /* Mobile Reordering for Single Detail Page */
    .fpp-single-post-page.fpp-blog-container {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
    }

    /* Unwrap the sidebar so its children become flex items of the container */
    .fpp-single-post-page .fpp-blog-sidebar {
        display: contents;
    }

    /* Order 1: Breadcrumbs (inside sidebar but unwrapped now) */
    .fpp-single-post-page .fpp-breadcrumbs {
        order: 1;
        width: 100%;
        margin-bottom: 5px;
    }

    /* Order 2: Main Content */
    .fpp-single-post-page .fpp-single-content-wrapper {
        order: 2;
        width: 100%;
    }

    /* Order 3+: Sidebar Widgets (Search, Recent, Tags) */
    .fpp-single-post-page .fpp-search-form {
        order: 1;
        margin-top: 5px;
        width: 100%;
        /* spacing after content */
    }

    .fpp-single-post-page .fpp-recent-posts {
        order: 4;
        margin-top: 30px;
    }

    .fpp-single-post-page .fpp-tags-widget {
        order: 5;
        /* Tags explicitly last */
        margin-top: 30px;
    }

    .fpp-single-featured-image {
        padding: 10px 15px;
    }
}