/*
Theme Name: CredShields Main Theme
Theme URI: https://credshields.com/
Author: CredShields
Description: WordPress theme generated from the CredShields landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Text Domain: credshields-main-theme
*/

.cs-wp-main {
    background: var(--bg, #f7f7f2);
    color: var(--fg, #0a1a0c);
    min-height: 50vh;
    padding: 36px 20px 88px;
}

.cs-blog-hero {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    margin: 0 auto 28px;
    max-width: 1180px;
    min-height: 270px;
    overflow: hidden;
    padding: 42px;
    position: relative;
}

.cs-blog-hero-grid-bg {
    background-image:
        linear-gradient(rgba(46, 125, 14, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 14, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    inset: 0;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 78%);
    opacity: 0.8;
    pointer-events: none;
    position: absolute;
}

.cs-blog-hero::after {
    background: radial-gradient(circle, rgba(168, 255, 69, 0.28), transparent 62%);
    content: "";
    height: 260px;
    pointer-events: none;
    position: absolute;
    right: -70px;
    top: -90px;
    width: 260px;
}

.cs-blog-hero-copy {
    position: relative;
    z-index: 1;
}

.cs-blog-hero-copy {
    align-self: center;
    max-width: 850px;
}

.cs-blog-hero-badge {
    align-items: center;
    color: var(--green, #2e7d0e);
    display: inline-flex;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.cs-blog-hero-badge-dot {
    background: var(--green, #2e7d0e);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(46, 125, 14, 0.12);
    height: 7px;
    width: 7px;
}

.cs-blog-hero-title {
    color: var(--fg, #0a1a0c);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(44px, 7vw, 86px);
    letter-spacing: -0.055em;
    line-height: 0.9;
    margin: 0;
}

.cs-blog-hero-title em {
    color: var(--green, #2e7d0e);
    font-style: italic;
}

.cs-blog-hero-body {
    color: var(--fg-2, #304036);
    font-size: 18px;
    line-height: 1.55;
    margin: 18px 0 0;
    max-width: 620px;
}

.cs-recent-section {
    margin: 0 auto 48px;
    max-width: 1180px;
}

.cs-recent-head {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cs-recent-controls {
    display: flex;
    gap: 10px;
}

.cs-recent-slider {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(10, 26, 12, 0.06);
    overflow: hidden;
    padding: 26px;
}

.cs-blog-slider-track {
    min-height: 285px;
    position: relative;
}

.cs-blog-slide {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.cs-blog-slide.is-active {
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateX(0);
}

.cs-recent-slide {
    align-items: stretch;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    min-width: 0;
}

.cs-recent-slide-media {
    align-self: stretch;
    aspect-ratio: 16 / 10;
    background: #041006;
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    color: var(--green, #2e7d0e);
    display: grid;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    place-items: center;
    text-decoration: none;
    width: 100%;
}

.cs-recent-slide-media img {
    height: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.cs-recent-slide-body {
    align-self: center;
    min-width: 0;
}

.cs-blog-slide-meta {
    color: var(--fg-4, #7d897f);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cs-blog-slide-title {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0;
}

.cs-blog-slide-title a {
    color: var(--fg, #0a1a0c);
    text-decoration: none;
}

.cs-blog-slide-excerpt {
    color: var(--fg-3, #536257);
    font-size: 17px;
    line-height: 1.58;
    margin: 16px 0 0;
    max-width: 560px;
}

.cs-blog-slide-link {
    color: var(--green, #2e7d0e);
    display: inline-flex;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.cs-blog-slider-arrow,
.cs-blog-slider-dot {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cs-blog-slider-arrow {
    align-items: center;
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 999px;
    color: var(--fg, #0a1a0c);
    display: inline-flex;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    height: 32px;
    justify-content: center;
    transition: border-color 140ms ease, color 140ms ease;
    width: 32px;
}

.cs-blog-slider-arrow:hover {
    border-color: var(--green, #2e7d0e);
    color: var(--green, #2e7d0e);
}

.cs-blog-slider-dots {
    display: flex;
    gap: 7px;
}

.cs-recent-dots {
    justify-content: center;
    margin-top: 22px;
}

.cs-blog-slider-dot {
    background: rgba(10, 26, 12, 0.18);
    border-radius: 999px;
    height: 7px;
    padding: 0;
    transition: background-color 140ms ease, width 140ms ease;
    width: 7px;
}

.cs-blog-slider-dot.is-active {
    background: var(--green, #2e7d0e);
    width: 20px;
}

.cs-blog-shell {
    margin: 0 auto;
    max-width: 1180px;
}

.cs-blog-head {
    margin-bottom: 34px;
    max-width: 760px;
}

.cs-blog-eyebrow,
.cs-blog-card-meta,
.cs-blog-card-link,
.cs-blog-card-fallback {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cs-blog-eyebrow {
    color: var(--green, #2e7d0e);
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
}

.cs-blog-title {
    color: var(--fg, #0a1a0c);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.cs-blog-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-blog-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease;
}

.cs-blog-card:hover {
    border-color: rgba(46, 125, 14, 0.35);
    transform: translateY(-2px);
}

.cs-blog-card-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e8f4de, #f7f7f2);
    color: var(--green, #2e7d0e);
    display: grid;
    overflow: hidden;
    place-items: center;
    text-decoration: none;
}

.cs-blog-card-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cs-blog-card-fallback {
    font-size: 11px;
    font-weight: 700;
}

.cs-blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.cs-blog-card-meta {
    color: var(--fg-4, #7d897f);
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 12px;
}

.cs-blog-card-title {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 24px;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 12px;
}

.cs-blog-card-title a {
    color: var(--fg, #0a1a0c);
    text-decoration: none;
}

.cs-blog-card-excerpt {
    color: var(--fg-3, #536257);
    font-size: 15px;
    line-height: 1.55;
}

.cs-blog-card-excerpt p {
    margin: 0;
}

.cs-blog-card-link {
    color: var(--green, #2e7d0e);
    font-size: 11px;
    font-weight: 700;
    margin-top: auto;
    padding-top: 18px;
    text-decoration: none;
}

.cs-blog-pagination {
    margin-top: 36px;
}

.cs-blog-pagination .nav-links {
    align-items: center;
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0;
}

.cs-blog-pagination a,
.cs-blog-pagination span {
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 999px;
    color: var(--fg, #0a1a0c);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    padding: 9px 13px;
    text-decoration: none;
}

.cs-blog-pagination .current,
.cs-blog-pagination a:hover {
    border-color: var(--green, #2e7d0e);
    color: var(--green, #2e7d0e);
}

.cs-blog-empty {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    padding: 28px;
}

.cs-single-main {
    padding-top: 36px;
}

.cs-single-article {
    margin: 0 auto;
    max-width: 920px;
}

.cs-single-hero {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    margin-bottom: 28px;
    overflow: hidden;
    padding: 42px;
    position: relative;
}

.cs-single-hero::after {
    background:
        linear-gradient(rgba(46, 125, 14, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 14, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 76%);
    pointer-events: none;
    position: absolute;
}

.cs-single-back,
.cs-single-meta,
.cs-single-post-nav span,
.cs-single-page-links {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cs-single-back,
.cs-single-meta,
.cs-single-title,
.cs-single-excerpt {
    position: relative;
    z-index: 1;
}

.cs-single-back {
    color: var(--green, #2e7d0e);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 26px;
    text-decoration: none;
}

.cs-single-meta {
    color: var(--fg-4, #7d897f);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 700;
    gap: 12px;
    margin-bottom: 14px;
}

.cs-single-title {
    color: var(--fg, #0a1a0c);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(42px, 7vw, 82px);
    letter-spacing: -0.055em;
    line-height: 0.95;
    margin: 0;
}

.cs-single-excerpt {
    color: var(--fg-2, #304036);
    font-size: 19px;
    line-height: 1.55;
    margin: 20px 0 0;
    max-width: 720px;
}

.cs-single-featured {
    border-radius: 8px;
    margin: 0 0 30px;
    overflow: hidden;
}

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

.cs-single-content {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    color: var(--fg-2, #304036);
    font-size: 18px;
    line-height: 1.78;
    padding: 42px;
}

.cs-single-content > *:first-child {
    margin-top: 0;
}

.cs-single-content > *:last-child {
    margin-bottom: 0;
}

.cs-single-content h2,
.cs-single-content h3,
.cs-single-content h4 {
    color: var(--fg, #0a1a0c);
    font-family: "IBM Plex Sans", sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 1.6em 0 0.55em;
}

.cs-single-content h2 {
    font-size: 34px;
}

.cs-single-content h3 {
    font-size: 26px;
}

.cs-single-content a {
    color: var(--green, #2e7d0e);
}

.cs-single-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.cs-single-content blockquote {
    border-left: 3px solid var(--green, #2e7d0e);
    color: var(--fg, #0a1a0c);
    font-size: 20px;
    margin: 28px 0;
    padding-left: 22px;
}

.cs-single-content code,
.cs-single-content pre {
    font-family: "IBM Plex Mono", monospace;
}

.cs-single-content pre {
    background: #071007;
    border-radius: 8px;
    color: #eff8ec;
    overflow-x: auto;
    padding: 20px;
}

.cs-single-page-links {
    color: var(--fg-4, #7d897f);
    font-size: 11px;
    font-weight: 700;
    margin-top: 26px;
}

.cs-single-post-nav {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px auto 0;
    max-width: 920px;
}

.cs-single-post-nav-item a {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border, rgba(10, 26, 12, 0.12));
    border-radius: 8px;
    color: var(--fg, #0a1a0c);
    display: block;
    min-height: 100%;
    padding: 20px;
    text-decoration: none;
}

.cs-single-post-nav-item a:hover {
    border-color: rgba(46, 125, 14, 0.35);
}

.cs-single-post-nav span {
    color: var(--green, #2e7d0e);
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cs-single-post-nav-next {
    text-align: right;
}

@media (max-width: 980px) {
    .cs-blog-hero {
        padding: 34px;
    }

    .cs-recent-head {
        align-items: flex-start;
    }

    .cs-recent-slide {
        grid-template-columns: 1fr;
    }

    .cs-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cs-wp-main {
        padding: 24px 16px 64px;
    }

    .cs-blog-hero {
        margin-bottom: 34px;
        min-height: 0;
        padding: 28px 22px;
    }

    .cs-blog-hero-title {
        font-size: 44px;
    }

    .cs-blog-hero-body {
        font-size: 16px;
    }

    .cs-recent-head {
        gap: 16px;
    }

    .cs-recent-slider {
        padding: 18px;
    }

    .cs-blog-slider-track {
        min-height: 0;
    }

    .cs-recent-slide-media {
        aspect-ratio: 16 / 9;
    }

    .cs-blog-slide-title {
        font-size: 30px;
    }

    .cs-blog-slide-excerpt {
        font-size: 15px;
    }

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

    .cs-single-hero,
    .cs-single-content {
        padding: 28px 22px;
    }

    .cs-single-post-nav {
        grid-template-columns: 1fr;
    }

    .cs-single-post-nav-next {
        text-align: left;
    }
}
