/* ============================================================
   custom-blog.css — Cambria Law Firm Blog Reference Styling
   ============================================================ */

/* ── Global Variables ─────────────────────────────────────── */
:root {
    --clf-primary: #1b5fb3;
    /* Royal Blue */
    --clf-primary-hover: #12417a;
    --clf-dark: #181818;
    --clf-text: #4a4a4a;
    --clf-light: #f8f9fa;
    --clf-border: #e8e8e8;
    --font-serif: "Open Sans", Helvetica, sans-serif;
    --font-sans: "Open Sans", Helvetica, sans-serif;
    --transition: all 0.3s ease;
}

/* ── Archive Grid ────────────────────────────────────────── */
.clf-blog-hero {
    background: #030303;
    color: #fff;
    padding: 125px 0 128px;
    margin-bottom: 48px;
    text-align: center;
}

.clf-blog-hero .container {
    max-width: 980px;
}

.clf-blog-hero h1 {
    margin: 0 0 26px;
    color: #fff;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.clf-blog-hero p {
    margin: 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 26px;
    line-height: 1.45;
}

@media (max-width: 1199px) {
    .clf-blog-hero h1 {
        font-size: 58px;
    }

    .clf-blog-hero p {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .clf-blog-hero {
        padding: 76px 0 82px;
        margin-bottom: 34px;
    }

    .clf-blog-hero h1 {
        font-size: 40px;
    }

    .clf-blog-hero p {
        font-size: 18px;
    }
}

.clf-blog-layout {
    margin-top: 0;
}

.clf-blog-archive-header {
    text-align: left;
    margin-bottom: 28px;
}

.clf-blog-archive-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--clf-dark);
}

.clf-blog-archive-header p {
    margin: 0;
    color: #6e6e6e;
    font-family: var(--font-sans);
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-top: 0;
}

@media (min-width: 768px) {
    .blog-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .blog-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

.clf-blog-main {
    margin-bottom: 24px;
}

.clf-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 80px;
    margin-bottom: 52px;
}

.clf-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid #e1e7ee;
    border-radius: 50%;
    background: #fff;
    color: #101820;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
}

.clf-blog-pagination .page-numbers.current,
.clf-blog-pagination .page-numbers:hover,
.clf-blog-pagination .page-numbers:focus {
    border-color: #4d83bb;
    background: #4d83bb;
    color: #fff;
    text-decoration: none;
}

.clf-blog-pagination .page-numbers.dots {
    pointer-events: none;
}

@media (max-width: 575px) {
    .clf-blog-pagination {
        gap: 8px;
        margin-top: 44px;
    }

    .clf-blog-pagination .page-numbers {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
}

.clf-blog-sidebar {
    margin-top: 8px;
}

.clf-blog-widgets {
    margin-top: 20px;
}

.clf-blog-widget {
    background: #ffffff;
    border: 1px solid var(--clf-border);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 18px;
}

.clf-blog-widget h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: var(--clf-dark);
}

.clf-blog-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clf-blog-widget li + li {
    margin-top: 10px;
}

.clf-blog-widget a {
    color: var(--clf-primary);
    text-decoration: none;
    font-family: var(--font-sans);
}

.clf-blog-widget a:hover {
    color: var(--clf-primary-hover);
    text-decoration: underline;
}

.clf-blog-widget .search-form label {
    width: 100%;
    margin: 0;
}

.clf-blog-widget .search-field {
    width: 100%;
    border: 1px solid var(--clf-border);
    border-radius: 6px;
    padding: 10px 12px;
}

.clf-blog-widget .search-submit {
    margin-top: 10px;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    background: var(--clf-primary);
    font-weight: 700;
    font-family: var(--font-sans);
}

.clf-blog-widget .search-submit:hover {
    background: var(--clf-primary-hover);
}

/* ── Blog Cards (Archive) ────────────────────────────────── */
.clf-blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid transparent;
}

.clf-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(27, 95, 179, 0.1);
}

.clf-blog-card__thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.clf-blog-card__body {
    padding: 30px 30px 20px;
    flex-grow: 1;
}

.clf-blog-card__category {
    color: var(--clf-primary);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.clf-blog-card__title {
    font-family: var(--font-serif);
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 15px;
}

.clf-blog-card__title a {
    color: var(--clf-dark);
    text-decoration: none;
    transition: var(--transition);
}

.clf-blog-card__title a:hover {
    color: var(--clf-primary);
}

.clf-blog-card__excerpt {
    color: var(--clf-text);
    font-family: var(--font-sans);
    font-size: 1.18rem;
    line-height: 1.62;
}

.clf-blog-card__footer {
    padding: 20px 30px;
    border-top: 1px solid var(--clf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 1.08rem;
}

.clf-blog-card__meta {
    color: #888;
}

.clf-dot {
    margin: 0 4px;
}

.clf-blog-card__read-more {
    color: var(--clf-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.clf-blog-card__read-more:hover {
    color: var(--clf-primary-hover);
    transform: translateX(4px);
}

/* ── Single Post Hero (Black Header) ──────────────────────── */
.clf-single-hero {
    background-color: var(--clf-dark);
    color: #ffffff;
    padding: 80px 20px 100px;
    text-align: center;
}

.clf-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.clf-hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .clf-hero-title {
        font-size: 2.2rem;
    }

    .clf-single-hero {
        padding: 60px 20px 80px;
    }
}

/* ── Single Post Content ──────────────────────────────────── */
.clf-single-wrap {
    max-width: 1200px;
    margin: -40px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.clf-single-main {
    margin-bottom: 24px;
}

.clf-single-sidebar {
    margin-top: 6px;
}

.clf-single-featured-img {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.clf-single-content {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.75;
    color: var(--clf-text);
    margin-bottom: 60px;
    background: #ffffff;
    /* In case it overlaps hero */
}

@media (min-width: 1200px) {
    .clf-blog-card__thumb img {
        height: 205px;
    }

    .clf-blog-card__body {
        padding: 24px 22px 18px;
    }

    .clf-blog-card__title {
        font-size: 1.62rem;
        line-height: 1.24;
    }

    .clf-blog-card__excerpt {
        font-size: 1.12rem;
    }
}

.single-blog-post .clf-single-content p,
.single-blog-post .clf-single-content li {
    font-size: 18px;
    line-height: 1.75;
    color: var(--clf-text);
}

.single-blog-post .clf-single-content p {
    margin: 0 0 1.55em;
}

.single-blog-post .clf-single-content .clf-numbered-line {
    display: grid;
    grid-template-columns: 1.55em 1fr;
    column-gap: 0.35em;
    margin-bottom: 0.55em;
}

.single-blog-post .clf-single-content .clf-numbered-line__marker {
    color: var(--clf-text);
    font-weight: 700;
}

.single-blog-post .clf-single-content .clf-numbered-line__text {
    min-width: 0;
}

.single-blog-post .clf-single-content p:last-child,
.single-blog-post .clf-single-content li:last-child {
    margin-bottom: 0;
}

.single-blog-post .clf-single-content h2,
.single-blog-post .clf-single-content h3,
.single-blog-post .clf-single-content h4,
.single-blog-post .clf-single-content h5,
.single-blog-post .clf-single-content h6 {
    font-family: var(--font-serif);
    color: var(--clf-dark);
    font-weight: 700;
    line-height: 1.3;
    margin: 2.1em 0 0.85em;
}

.single-blog-post .clf-single-content h2 {
    font-size: 30px;
}

.single-blog-post .clf-single-content h3 {
    font-size: 24px;
}

.single-blog-post .clf-single-content h4 {
    font-size: 21px;
}

.single-blog-post .clf-single-content h5,
.single-blog-post .clf-single-content h6 {
    font-size: 18px;
}

.single-blog-post .clf-single-content ul,
.single-blog-post .clf-single-content ol {
    font-size: 18px;
    line-height: 1.6;
    list-style-position: outside;
    padding-left: 1.65em;
    margin: 0 0 1.15em;
}

.single-blog-post .clf-single-content ol {
    margin-bottom: 0.45em;
}

.single-blog-post .clf-single-content ol {
    list-style-type: decimal;
}

.single-blog-post .clf-single-content ul {
    list-style-type: disc;
}

.single-blog-post .clf-single-content ol ol,
.single-blog-post .clf-single-content ul ol {
    list-style-type: lower-alpha;
}

.single-blog-post .clf-single-content ol ul,
.single-blog-post .clf-single-content ul ul {
    list-style-type: circle;
    margin-top: 0.35em;
    margin-bottom: 0.45em;
}

.single-blog-post .clf-single-content li {
    line-height: 1.6;
    margin-bottom: 0.35em;
    padding-left: 0.25em;
}

.single-blog-post .clf-single-content li::marker {
    color: var(--clf-text);
    font-size: 0.95em;
    font-weight: 700;
}

.single-blog-post .clf-single-content ol > li::marker {
    font-size: 1em;
}

.single-blog-post .clf-single-content ol > li {
    margin-bottom: 0.65em;
}

.single-blog-post .clf-single-content ol > li > ul,
.single-blog-post .clf-single-content ol > li > ol {
    margin-top: 0.45em;
}

.single-blog-post .clf-single-content ol + ul,
.single-blog-post .clf-single-content ol + ol {
    margin-top: 0;
}

.single-blog-post .clf-single-content li p,
.single-blog-post .clf-single-content li span,
.single-blog-post .clf-single-content li strong,
.single-blog-post .clf-single-content li em,
.single-blog-post .clf-single-content p span,
.single-blog-post .clf-single-content p strong,
.single-blog-post .clf-single-content p em {
    font-size: inherit !important;
    line-height: inherit !important;
}

.single-blog-post .clf-single-content a {
    color: var(--clf-primary);
    text-decoration: underline;
}

.single-blog-post .clf-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75em 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
}

.single-blog-post .clf-single-content th,
.single-blog-post .clf-single-content td {
    border: 1px solid var(--clf-border);
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
}

.single-blog-post .clf-single-content th {
    background: var(--clf-light);
    color: var(--clf-dark);
    font-weight: 700;
}

.single-blog-post .clf-single-content tr:nth-child(even) td {
    background: #fbfbfb;
}

/* Post CTA follows article content and uses the site font without overriding FontAwesome icons. */
.single-blog-post .post-cta {
    margin: 0 0 50px;
    font-family: var(--font-sans);
}

.single-blog-post .post-cta .h2,
.single-blog-post .post-cta p,
.single-blog-post .post-cta .btn-normal {
    font-family: var(--font-sans);
}

.single-blog-post .post-cta .h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.single-blog-post .post-cta p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .clf-single-content,
    .single-blog-post .clf-single-content p,
    .single-blog-post .clf-single-content li,
    .single-blog-post .clf-single-content ul,
    .single-blog-post .clf-single-content ol {
        font-size: 16px;
        line-height: 1.7;
    }

    .single-blog-post .clf-single-content h2 {
        font-size: 25px;
    }

    .single-blog-post .clf-single-content h3 {
        font-size: 21px;
    }

    .single-blog-post .clf-single-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ── Author Box ───────────────────────────────────────────── */
.clf-author-box {
    background-color: var(--clf-light);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.clf-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.clf-author-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.clf-author-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--clf-dark);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.clf-author-bio {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--clf-text);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .clf-author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Pagination ───────────────────────────────────────────── */
.clf-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.clf-post-navigation>div {
    min-width: 0;
}

.clf-post-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 22px 28px;
    border: 2px solid var(--clf-border);
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--clf-dark);
    font-size: 1.35rem;
    line-height: 1.2;
    transition: var(--transition);
}

.clf-post-nav-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--clf-primary);
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-transform: none;
}

.clf-post-nav-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 1.45rem;
    line-height: 1;
}

.clf-post-navigation a:hover {
    border-color: var(--clf-primary);
    background: #eef4fb;
    color: var(--clf-primary);
    box-shadow: 0 5px 15px rgba(27, 95, 179, 0.08);
}

.nav-next {
    grid-column: 1;
}

.nav-previous {
    grid-column: 2;
}

.nav-next a {
    text-align: center;
}

.nav-previous a {
    text-align: center;
}

@media (max-width: 600px) {
    .clf-post-navigation {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nav-next,
    .nav-previous {
        grid-column: 1;
    }
}

.single-blog-post .inner-page-header { display: none; }
.group-phone--inline { display: inline-grid; align-items: center; gap: 0.5rem; }
.divider-full { display: block; width: 100%; border: 0; border-top: 1px solid #e8e8e8; margin: 2rem 0; }