/* ==================================================
   BLOG-PAGES.CSS – BLOG PAGE STYLES
   Section: 23
   Wrapper: .akj-blog-page
================================================== */

.akj-blog-page {
    width: min(100% - 40px, 1400px);
    max-width: 1400px;
    margin: 48px auto 72px;
    padding: 0;
    box-sizing: border-box;
}

.akj-blog-page *,
.akj-blog-page *::before,
.akj-blog-page *::after {
    box-sizing: border-box;
}

.akj-blog-hero {
    margin-bottom: 34px;
    padding: 38px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 8px solid #b80000;
    border-bottom: 4px solid #000000;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, #0d0d14 0%, #090910 100%);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.akj-blog-kicker {
    margin: 0 0 10px;
    color: #b80000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.akj-blog-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 800;
}

.akj-blog-lead {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 600;
}

.akj-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.akj-blog-card {
    min-width: 0;
}

.akj-blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid #b80000;
    border-bottom: 4px solid #000000;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, #101019 0%, #0a0a12 100%);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    text-decoration: none !important;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.akj-blog-card-link:hover,
.akj-blog-card-link:focus {
    transform: translateY(-4px);
    border-color: rgba(184, 0, 0, 0.42);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(184, 0, 0, 0.10) inset;
    text-decoration: none !important;
    outline: none;
}

.akj-blog-card-thumb {
    position: relative;
    aspect-ratio: 16 / 8.6;
    overflow: hidden;
    background: #111111;
}

.akj-blog-card-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.akj-blog-card-link:hover .akj-blog-card-thumb-img,
.akj-blog-card-link:focus .akj-blog-card-thumb-img {
    transform: scale(1.04);
}

.akj-blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 16px 16px;
}

.akj-blog-card-meta {
    margin-bottom: 8px;
}

.akj-blog-card-date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(184, 0, 0, 0.35);
    border-radius: 999px;
    background: rgba(184, 0, 0, 0.12);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.akj-blog-card-title {
    margin: 0 0 10px;
    color: #ffffff !important;
    font-size: clamp(18px, 1.65vw, 24px);
    line-height: 1.24;
    font-weight: 800;
    text-decoration: none !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.akj-blog-card-excerpt {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.akj-blog-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    margin-top: auto;
    padding: 0 14px;
    border: 1px solid #b80000;
    border-radius: 10px;
    background: #b80000;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.akj-blog-card-link:hover .akj-blog-card-button,
.akj-blog-card-link:focus .akj-blog-card-button {
    background: #000000;
    border-color: #000000;
    color: #ffffff !important;
}

.akj-blog-pagination {
    margin-top: 34px;
    text-align: center;
}

.akj-blog-pagination ul.page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.akj-blog-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.akj-blog-pagination ul.page-numbers li::before,
.akj-blog-pagination ul.page-numbers li::after,
.akj-blog-pagination ul.page-numbers li::marker {
    content: none !important;
    display: none !important;
}

.akj-blog-pagination .page-numbers a,
.akj-blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #111111 !important;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.akj-blog-pagination .page-numbers a:hover,
.akj-blog-pagination .page-numbers a:focus,
.akj-blog-pagination .page-numbers .current {
    background: #b80000;
    border-color: #b80000;
    color: #ffffff !important;
}

.akj-blog-empty {
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid #b80000;
    border-bottom: 4px solid #000000;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, #101019 0%, #0a0a12 100%);
    color: #ffffff;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.akj-blog-empty p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.7;
}

/* Optional page-specific hide default Blocksy title/hero
   Replace page ID if needed */
.page-id-11017 .entry-header,
.page-id-11017 .hero-section[data-type="type-1"],
.page-id-11017 .ct-page-title {
    display: none !important;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1399px) {
    .akj-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .akj-blog-page {
        width: min(100% - 32px, 1400px);
        max-width: 1400px;
    }
}

@media (max-width: 991px) {
    .akj-blog-page {
        width: calc(100% - 24px);
        max-width: none;
        margin: 32px auto 56px;
    }

    .akj-blog-hero {
        padding: 28px 24px;
    }

    .akj-blog-card-content {
        padding: 16px 14px 14px;
    }
}

@media (max-width: 767px) {
    .akj-blog-grid {
        grid-template-columns: 1fr;
    }

    .akj-blog-hero {
        padding: 22px 18px;
    }

    .akj-blog-hero h1 {
        font-size: clamp(26px, 7vw, 38px);
    }

    .akj-blog-lead {
        font-size: 17px;
    }

    .akj-blog-card-content {
        padding: 15px 13px 13px;
    }

    .akj-blog-card-title {
        font-size: 20px;
    }

    .akj-blog-card-excerpt {
        font-size: 13px;
    }
}