/**
 * Blog Styles - Patriotic Theme
 * Based on Figma design
 */

/* ==========================================================================
   Blog Archive
   ========================================================================== */

.blog-archive {
    padding: 0;
}

.blog-archive__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.blog-archive__title {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 72px 0 16px;
    color: #111111;
}

.blog-archive__description {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    color: #2F2F2F;
    margin: 0 0 24px;
}

.blog-archive__grid {
    padding-top: 24px;
    margin-bottom: 40px;
}

.blog-archive__empty {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

/* ==========================================================================
   Blog Card (shared between archive and related posts)
   ========================================================================== */

.blog-card {
    margin-bottom: 40px;
}

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

.blog-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    height: 427px;
    /*border-radius: 12px;*/
    background: #f5f5f5;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card__link:hover .blog-card__image img {
    transform: scale(1.03);
}

.blog-card__content {
    padding: 0;
}

.blog-card__date {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: #4C4C4C;
    margin-top: 16px;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #111111;
}

.blog-card__excerpt {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    color: #2F2F2F;
    margin: 0;
}

/* ==========================================================================
   Blog Single Post
   ========================================================================== */

#module-tvcmsblog-single .page-content {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.blog-single {
    padding-bottom: 60px;
}

.blog-single__hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
}

.blog-single__hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.blog-single__header {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

.blog-single__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.blog-single__share {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-single__share-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    color: #111111;
}

.blog-single__share-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.blog-single__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #111111;
    border-radius: 9999px;
    color: #111;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}
.blog-single__share-icon svg {
    width: 16px;
    height: 16px;
}
.blog-single__share-icon:hover {
    background: #f1f1f1;
    color: #111;
    border-color: #111;
}

.blog-single__share-icon:hover {
    border-color: #000;
    color: #000;
}

.blog-single__date {
    font-size: 14px;
    color: #666;
}

.blog-single__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #000;
}

.blog-single__content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-single__content h2,
.blog-single__content h3,
.blog-single__content h4 {
    font-weight: 600;
    margin: 32px 0 16px;
    color: #000;
}

.blog-single__content h2 {
    font-size: 24px;
}

.blog-single__content h3 {
    font-size: 20px;
}

.blog-single__content h4 {
    font-size: 18px;
}

.blog-single__content p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px;
}

.blog-single__content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    display: block;
}

.blog-single__content ul,
.blog-single__content ol {
    margin: 0 0 20px;
    padding-left: 20px;
}

.blog-single__content li {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 8px;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.blog-related {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 60px 15px 0;
    border-top: 1px solid #e0e0e0;
}

.blog-related__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #000;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.blog-pagination {
    padding: 0;
}

.blog-pagination__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-pagination__prev,
.blog-pagination__next {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #4C4C4C;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-pagination__prev svg,
.blog-pagination__next svg {
    width: 24px;
    height: 24px;
}

.blog-pagination__prev:hover,
.blog-pagination__next:hover {
    text-decoration: none;
}

.blog-pagination__prev--disabled,
.blog-pagination__next--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.blog-pagination__pages {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination__item {
    margin: 0;
}

.blog-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: #4C4C4C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-pagination__link:hover {
    text-decoration: none;
}

.blog-pagination__link--current {
    color: #111111;
}

.blog-pagination__spacer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #999;
}

/* ==========================================================================
   Breadcrumb Override
   ========================================================================== */

.breadcrumb-wrapper {
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
}

.breadcrumb__item::after {
    content: '>';
    margin: 0 8px;
    color: #999;
}

.breadcrumb__item:last-child::after {
    display: none;
}

.breadcrumb__item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb__item a:hover {
    color: #000;
}

.breadcrumb__item:last-child a {
    color: #000;
    font-weight: 500;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .blog-archive__header {
        padding: 30px 15px 40px;
    }

    .blog-archive__title {
        font-size: 28px;
    }

    .blog-single__title {
        font-size: 26px;
    }

    .blog-pagination__inner {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .blog-archive__title {
        font-size: 24px;
        font-weight: 500;
        letter-spacing: -0.04em;
        margin-top: 0;
    }

    .blog-archive__description {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .blog-card {
        margin-bottom: 48px;
    }

    .blog-card__image {
        width: 100%;
        height: auto;
        max-height: 350px;
        aspect-ratio: 4 / 5;
    }

    .blog-card__date {
        font-size: 12px;
        font-weight: 500;
    }

    .blog-card__title {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 12px;
    }

    .blog-card__excerpt {
        font-size: 16px;
        font-weight: 500;
    }

    .blog-single__meta {
        flex-direction: column;
        gap: 20px;
    }

    .blog-single__share {
        order: 2;
    }

    .blog-single__date {
        order: 1;
    }

    .blog-single__title {
        font-size: 22px;
    }

    .blog-pagination__prev span,
    .blog-pagination__next span {
        display: none;
    }

    .blog-pagination__link {
        font-size: 14px;
    }

    .blog-related {
        margin-top: 40px;
        padding-top: 40px;
    }

    .blog-related__title {
        font-size: 20px;
    }
}
