/* ==========================================================================
   Tomahawk Bats - Blog & Playbook Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Global Blog Sharp Corners Reset (0px Border Radius)
   -------------------------------------------------------------------------- */
.blog-hero-section,
.category-pill,
.category-pill__count,
.blog-search-form .form-control,
.blog-search-form .input-group-text,
.blog-search-form .btn-dark,
.active-filter-banner,
.active-filter-banner .badge,
.blog-featured-spotlight,
.blog-featured__image-box,
.featured-badge,
.author-avatar-sm,
.blog-card,
.blog-card__image-wrapper,
.blog-card__category-badge,
.blog-card__author-avatar,
.blog-pagination-wrapper .page-link,
.blog-pagination-wrapper .page-item,
.blog-empty-state,
.blog-breadcrumbs-section,
.article-category-chip,
.author-avatar,
.blog-article__featured-image,
.blog-article__featured-image img,
.blog-share-toolbar,
.share-btn,
.copy-link-btn,
.blog-article__lead,
.article-html-render img,
.article-html-render blockquote,
.blog-article__tags-share .badge,
.blog-author-box,
.author-avatar-lg,
.post-nav-card,
.product-card,
.product-card .product-image,
.blog-featured-products-section .badge,
.blog-related-posts-section .btn,
.btn-primary-custom,
.btn-secondary-custom {
    border-radius: 0px !important;
}

/* --------------------------------------------------------------------------
   1. Blog Hero Section
   -------------------------------------------------------------------------- */
.blog-hero-section {
    background: #00091f;
    min-height: 260px;
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 24px 24px;
}

.blog-hero__eyebrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.blog-hero__title {
    font-family: var(--heading-font, 'Lektorat Narrow', sans-serif);
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1.15;
}

/* --------------------------------------------------------------------------
   2. Category Filter Pills & Search Form
   -------------------------------------------------------------------------- */
.blog-category-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #ffffff;
    color: #1a202c;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
}

.category-pill:hover {
    background: #f1f5f9;
    color: #1a3a7d;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    );
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(36, 69, 182, 0.35);
}

.category-pill__count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-pill.active .category-pill__count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.blog-search-form .form-control {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-color: #e2e8f0;
}

.blog-search-form .form-control:focus {
    box-shadow: none;
    border-color: #1a3a7d;
}

.blog-search-form .btn-dark {
    background: #00091f;
    border-color: #00091f;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.blog-search-form .btn-dark:hover {
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    );
    border-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Featured Spotlight Card
   -------------------------------------------------------------------------- */
.blog-featured-spotlight {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured-spotlight:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.blog-featured__image-box {
    height: 100%;
    /* min-height: 380px; */
    background: #111111;
}

.blog-featured__image-box img {
    transition: transform 0.5s ease;
    object-fit: cover;
}

.blog-featured-spotlight:hover .blog-featured__image-box img {
    transform: scale(1.03);
}

.featured-badge {
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    );
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
}

.featured-category-link {
    color: #1a3a7d;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.featured-category-link:hover {
    color: #2445b6;
}

.featured-title {
    font-family: var(--heading-font, 'Lektorat Narrow', sans-serif);
    font-weight: 800;
    font-size: clamp(1.4rem, 2.2vw + 0.5rem, 1.85rem);
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.featured-title a:hover {
    color: #1a3a7d !important;
}

.featured-excerpt {
    font-size: 0.98rem;
    line-height: 1.65;
}

.author-avatar-sm {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   4. Blog Cards & Grid
   -------------------------------------------------------------------------- */
.blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-card__image-wrapper {
    height: 230px;
    background: #f3f4f6;
}

.blog-card__image {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__category-badge {
    bottom: 12px;
    left: 12px;
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    );
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card__category-badge:hover {
    background: linear-gradient(
        to right,
        #061348 0%,
        #2445b6 50%,
        #0f1e61 100%
    );
    color: #ffffff;
}

.blog-card__title {
    font-family: var(--heading-font, 'Lektorat Narrow', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.blog-card__title a {
    color: #0e0e0e;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #1a3a7d;
}

.blog-card__excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
}

.blog-card__meta {
    font-size: 0.8rem;
}

.blog-card__author-avatar {
    width: 26px;
    height: 26px;
    background: #f3f4f6;
    font-size: 0.75rem;
}

.blog-card__author-name {
    font-size: 0.85rem;
}

.blog-card__link {
    color: #1a3a7d;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-card__link:hover {
    color: #2445b6;
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   5. Pagination
   -------------------------------------------------------------------------- */
.blog-pagination-wrapper .page-link {
    color: #0e0e0e;
    border-color: #e2e8f0;
    padding: 8px 16px;
    font-weight: 600;
}

.blog-pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    );
    border-color: transparent;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Blog Detail Page Components
   -------------------------------------------------------------------------- */
.blog-breadcrumbs-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #00091f !important;
}

.blog-breadcrumbs-section .breadcrumb-item a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumbs-section .breadcrumb-item a:hover {
    color: #ffffff;
}

.blog-breadcrumbs-section .breadcrumb-item.active {
    color: #ffffff;
}

.blog-breadcrumbs-section .breadcrumb-item + .breadcrumb-item::before {
    color: #64748b;
}

.blog-article__title {
    font-family: var(--heading-font, 'Lektorat Narrow', sans-serif);
    font-size: clamp(2rem, 3.5vw + 1rem, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    color: #00091f;
    letter-spacing: 0.5px;
}

.article-category-chip {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    );
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-category-chip:hover {
    background: linear-gradient(
        to right,
        #061348 0%,
        #2445b6 50%,
        #0f1e61 100%
    );
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(36, 69, 182, 0.35);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    font-size: 1.1rem;
}

.author-avatar-lg {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

/* Social Share Toolbar */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #ffffff;
}

.share-btn--fb { background: #1877f2; }
.share-btn--tw { background: #000000; }
.share-btn--in { background: #0a66c2; }
.share-btn--wa { background: #25d366; }
.share-btn--email { background: #ea4335; }

/* Article Content Body */
.article-html-render {
    font-size: 1rem;
    line-height: 1.85;
    color: #2b2b2b;
}

.article-html-render h2 {
    font-family: var(--heading-font, 'Lektorat Narrow', sans-serif);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
    color: #00091f;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.article-html-render h3 {
    font-family: var(--heading-font, 'Lektorat Narrow', sans-serif);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw + 0.3rem, 1.55rem);
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-html-render h4 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-html-render p {
    margin-bottom: 1.5rem;
}

.article-html-render strong {
    color: #00091f;
    font-weight: 700;
}

.article-html-render a {
    color: #1a3a7d;
    text-decoration: underline;
    font-weight: 600;
}

.article-html-render a:hover {
    color: #2445b6;
}

.article-html-render ul,
.article-html-render ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.article-html-render li {
    margin-bottom: 0.6rem;
}

.article-html-render blockquote {
    background: #f8fafc;
    border-left: 4px solid #1a3a7d;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #1a3a7d;
    font-size: 1.2rem;
}

.article-html-render img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    display: block;
}

.article-html-render table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.article-html-render table th,
.article-html-render table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
}

.article-html-render table th {
    background: #f1f5f9;
    font-weight: 700;
}

/* Post Navigation Cards */
.post-nav-card {
    background: #ffffff;
    transition: all 0.2s ease;
}

.post-nav-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
}

.post-nav-title {
    font-size: 1rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Featured Products Grid (Storefront Cards)
   -------------------------------------------------------------------------- */
.blog-featured-products-section .product-listing-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --------------------------------------------------------------------------
   8. Call To Action Section (CTA)
   -------------------------------------------------------------------------- */
.blog-cta-section {
    background: #f7f7f7;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.blog-cta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.blog-cta-actions .btn-primary-custom,
.blog-cta-actions .btn-secondary-custom {
    flex-shrink: 0;
}

.blog-cta-section .btn-primary-custom {
    background: linear-gradient(to right, #0f1e61 0%, #2445b6 50%, #061348 100%);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0px !important;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.blog-cta-section .btn-primary-custom:hover {
    background: linear-gradient(to right, #061348 0%, #2445b6 50%, #0f1e61 100%) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(36, 69, 182, 0.05);
}

.blog-cta-section .btn-secondary-custom {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(200, 200, 200, 0.95);
    padding: 0.6rem 1.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0px !important;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.blog-cta-section .btn-secondary-custom:hover {
    background: linear-gradient(
        to right,
        #0f1e61 0%,
        #2445b6 50%,
        #061348 100%
    ) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(36, 69, 182, 0.45);
}

.blog-cta-section .btn-secondary-custom:hover svg path {
    fill: #ffffff;
    stroke: #ffffff;
}

.blog-empty-state .btn.btn-theme {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    background: linear-gradient(to right, #0f1e61 0%, #2445b6 50%, #061348 100%);
    transition: transform 0.15s ease-out;
    text-transform: uppercase;
}

.blog-empty-state .btn.btn-theme:hover {
        background: linear-gradient(to right, #061348 0%, #2445b6 50%, #0f1e61 100%) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(36, 69, 182, 0.05);
}



/* --------------------------------------------------------------------------
   9. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .blog-featured-products-section .product-listing-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    /* .blog-featured__image-box {
        min-height: 260px;
    } */

    .blog-featured__content {
        padding: 1.75rem !important;
    }

    .blog-hero-section {
        padding: 55px 0 45px;
    }

    .blog-article__title {
        font-size: 2.2rem;
    }

    .blog-cta-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .blog-featured-products-section .product-listing-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .blog-category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .category-pill {
        flex-shrink: 0;
    }

    .blog-share-toolbar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .blog-article__meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .article-html-render blockquote {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 575px) {
    .blog-card__image-wrapper {
        height: 200px;
    }

    .blog-featured-products-section .product-listing-products {
        grid-template-columns: repeat(1, 1fr);
    }

    .blog-cta-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .blog-cta-section .btn-primary-custom,
    .blog-cta-section .btn-secondary-custom {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.blog-timeago {
    cursor: default;
    transition: opacity 0.2s ease;
}

.blog-timeago:hover {
    opacity: 0.85;
}

