.blogs-page,
.blog-single-page {
    background: #ffffff;
    color: #111111;
}

.blogs-hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 0 0 46px;
    background:
        linear-gradient(110deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 36%, rgba(0, 0, 0, 0.68) 100%),
        url('https://berarfinancelimited.com/wp-content/uploads/2026/04/FM-Banner-06-min-scaled-1.webp') center center/cover no-repeat;
}

.blogs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 42%);
    pointer-events: none;
}

.blogs-hero-content {
    position: relative;
    z-index: 1;
}

.blogs-hero-title {
    margin: 0;
    color: #00a551;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.blogs-list-section,
.blog-single-content-section {
    padding: 72px 0 88px;
    background: #ffffff;
}

.blogs-list-section .container-modern,
.blog-single-content-section .container-modern {
    max-width: 1400px;
    padding-left: 4rem;
    padding-right: 4rem;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card-image-wrapper {
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}

.blog-card-image,
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta,
.blog-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #7b7b7b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-card-title {
    margin: 0 0 0.85rem;
    color: #111111;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    line-height: 1.25;
}

.blog-card-excerpt p {
    margin: 0 0 1rem;
    color: #5f5f5f;
}

.blog-card-cta {
    color: #00a551;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.blogs-pagination {
    margin-top: 3rem;
    text-align: center;
}

.blogs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 0.25rem;
    padding: 0 0.9rem;
    border: 1px solid #d7d7d7;
    color: #111111;
}

.blogs-pagination .page-numbers.current {
    background: #00a551;
    border-color: #00a551;
    color: #ffffff;
}

.blogs-empty-state {
    text-align: center;
    padding: 4rem 0;
}

.blogs-empty-state h2 {
    margin-bottom: 1rem;
}

.search-page-header {
    margin-bottom: 2rem;
}

.search-page-header p {
    margin: 0;
    color: #5f5f5f;
    font-size: 1rem;
}

.blog-single-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}

.blog-single-sidebar {
    position: sticky;
    top: 110px;
}

.blog-search-form {
    display: grid;
    grid-template-columns: 1fr 82px;
    margin-bottom: 2.5rem;
}

.blog-search-input {
    width: 100%;
    min-height: 78px;
    padding: 1.1rem 1.35rem;
    border: 0;
    background: #f4f4f4;
    color: #111111;
    font-size: 1rem;
}

.blog-search-input:focus {
    outline: 2px solid #00a551;
    outline-offset: -2px;
}

.blog-search-button {
    border: 0;
    background: #111111;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.blog-sidebar-card {
    background: #f4f4f4;
    padding: 2.25rem 2rem;
}

.blog-sidebar-title {
    margin: 0 0 1.75rem;
    color: #111827;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar-list li + li {
    margin-top: 1.35rem;
}

.blog-sidebar-list a {
    color: #111827;
    font-size: 1rem;
    line-height: 1.7;
    text-decoration: none;
}

.blog-sidebar-list a:hover {
    color: #00a551;
}

.blog-single-main {
    min-width: 0;
}

.blog-single-header {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.blog-single-featured-image {
    margin-bottom: 2.5rem;
}

.blog-single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-single-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #404040;
}

.blog-single-title {
    margin: 0;
    color: #0f172a;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.7rem, 4.8vw, 4.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.blog-single-content p,
.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: 1.2rem;
}

.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
    margin-top: 2rem;
    color: #111111;
}

.blog-post-footer {
    max-width: 900px;
    margin: 4rem auto 0;
}

.blog-contact-section,
.blog-cta-section {
    margin-bottom: 2.75rem;
}

.blog-contact-title {
    margin: 0 0 1.1rem;
    color: #0f172a;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.blog-contact-copy p,
.blog-cta-section p {
    margin: 0 0 1.2rem;
    color: #5b6171;
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-contact-copy a,
.blog-cta-section a {
    color: #00a551;
    text-decoration: none;
}

.blog-contact-copy a:hover,
.blog-cta-section a:hover {
    text-decoration: underline;
}

.blog-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2.75rem;
}

.blog-share-links a {
    color: #111111;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.blog-share-links a:hover {
    color: #00a551;
}

.blog-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 4rem;
}

.blog-post-navigation-link {
    display: block;
    min-height: 112px;
    padding: 1.6rem 1.75rem;
    background: #f5f5f5;
    border-bottom: 3px solid transparent;
    color: #111111;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-post-navigation-link:hover {
    border-color: #00a551;
    transform: translateY(-2px);
}

.blog-post-navigation-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-post-navigation-title {
    display: block;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
}

.blog-comments-wrap {
    margin-top: 1rem;
}

.blog-comments-wrap .comments-area {
    padding-top: 0.5rem;
}

.blog-comments-wrap .comments-title,
.blog-comments-wrap .comment-reply-title {
    margin: 0 0 1.5rem;
    color: #0f172a;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.blog-comments-wrap label {
    display: block;
    margin-bottom: 0.55rem;
    color: #111111;
    font-weight: 600;
}

.blog-comments-wrap textarea,
.blog-comments-wrap input[type="text"],
.blog-comments-wrap input[type="email"],
.blog-comments-wrap input[type="url"] {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #111111;
    font-size: 1rem;
}

.blog-comments-wrap textarea {
    min-height: 180px;
    resize: vertical;
}

.blog-comments-wrap .comment-form-comment,
.blog-comments-wrap .comment-form-author,
.blog-comments-wrap .comment-form-email,
.blog-comments-wrap .comment-form-url {
    margin-bottom: 1.25rem;
}

.blog-comments-wrap .form-submit {
    margin-top: 1.5rem;
}

.blog-comments-wrap .submit {
    padding: 0.95rem 1.6rem;
    border: 0;
    background: #00a551;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.blog-related-section {
    margin-top: 5rem;
}

.blog-related-title {
    margin-bottom: 2rem;
    color: #111111;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    .blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-single-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .blog-post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blogs-hero {
        min-height: 190px;
        padding: 0 0 28px;
    }

    .blogs-list-section,
    .blog-single-content-section {
        padding: 52px 0 60px;
    }

    .blogs-list-section .container-modern,
    .blog-single-content-section .container-modern {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .blog-search-form {
        grid-template-columns: 1fr 72px;
    }

    .blog-search-input {
        min-height: 68px;
    }

    .blog-sidebar-card {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .blogs-list-section .container-modern,
    .blog-single-content-section .container-modern {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }
}
