/* DNC Blog Specific Styles (Extending Main Landing Styles) */

.l-blog-hub, .l-article, .l-categories {
    padding-top: 80px;
    padding-bottom: 60px;
}

.c-blog-header {
    margin-bottom: 80px;
}

.c-blog-header__title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.c-blog-header__subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: #a0a0a0;
    max-width: 600px;
}

/* Category Tags */
.c-category-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin-bottom: 48px;
}

.c-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.c-tag:hover, .c-tag.is-active {
    background: #e52020;
    border-color: #e52020;
}

/* Blog Grid */
.c-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Article Card */
.c-article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    group: article;
}

.c-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(229, 32, 32, 0.1);
}

.c-article-card__cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #111;
}

.c-article-card__meta {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.c-article-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.c-article-card__subtitle {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Article Layout */

.l-article__grid > * {
    min-width: 0;
}

.l-article__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .l-article__grid {
        grid-template-columns: 280px 1fr;
    }
}

/* TOC (Table of Contents) */
.c-toc-wrapper {
    position: sticky;
    top: 120px;
    padding-right: 24px;
    z-index: 10;
}

.c-toc {
    background: transparent;
}

.c-toc__title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.c-toc__list li {
    margin-bottom: 16px;
}

.c-toc__list a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: block;
}

.c-toc__list a:hover, .c-toc__list a.is-active {
    color: #e52020;
}

/* Mobile TOC Collapse */
@media (max-width: 1023px) {
    .c-toc-wrapper {
        position: relative;
        top: 0;
        padding-right: 0;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px 16px;
        margin-bottom: 24px;
    }
    
    .c-toc__title {
        margin-bottom: 0;
        cursor: pointer;
    }

    .c-toc__title::after {
        content: '+';
        font-size: 18px;
    }

    .c-toc.is-open .c-toc__title::after {
        content: '-';
    }

    .c-toc__list {
        display: none;
        margin-top: 24px;
    }

    .c-toc.is-open .c-toc__list {
        display: block;
    }
}


/* Article Content Formatting */
.c-article-header {
    margin-bottom: 64px;
}

.c-article-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.c-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 15px;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.c-article-editorial {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
}

.c-evidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
}

.c-last-reviewed {
    font-size: 13px;
    color: #888;
}

.c-article-cover {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    margin-bottom: 64px;
}

.c-article-body {
    font-size: 18px;
    line-height: 1.7;
    color: #d0d0d0;
    max-width: 760px;
}

.c-article-body h2 {
    font-size: 32px;
    color: #fff;
    margin: 64px 0 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.c-article-body h3 {
    font-size: 24px;
    color: #fff;
    margin: 48px 0 16px;
    font-weight: 500;
}

.c-article-body p {
    margin-bottom: 24px;
}

.c-article-body strong {
    color: #e52020;
    font-weight: 600;
}

.c-article-body ul, .c-article-body ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.c-article-body li {
    margin-bottom: 12px;
}

/* Blockquotes */
.c-article-body blockquote {
    border-left: 4px solid #444;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #a0a0a0;
}

/* Custom Callouts (DNC Note & Warning) */
.c-callout {
    padding: 24px;
    border-radius: 12px;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #fff;
}

.c-callout p:last-child {
    margin-bottom: 0;
}

.c-callout--dnc {
    background: rgba(229, 32, 32, 0.1);
    border-left-color: #e52020;
}

.c-callout--warning {
    background: rgba(255, 170, 0, 0.1);
    border-left-color: #ffaa00;
}

.c-callout--quote {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: #444;
    font-style: italic;
}

.c-callout__title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e52020;
    margin-bottom: 12px;
    font-style: normal;
    font-weight: 600;
}

/* Video Embeds */
.c-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 48px 0;
    border-radius: 16px;
    overflow: hidden;
}

.c-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tables */
.c-table-responsive {
    overflow-x: auto;
    margin: 48px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.c-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.c-table th, .c-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.c-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: #fff;
}

/* Author Card */
.c-author-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 64px 0;
}

.c-author-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.c-author-card__info h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}

.c-author-card__info p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* FAQ Section */
.c-article-faq {
    margin-top: 80px;
}

.c-article-faq h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 32px;
}

/* References */
.c-references {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.c-references h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 24px;
}

.c-references ol {
    font-size: 14px;
    color: #888;
    padding-left: 16px;
}

.c-references li {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Article CTA */
.c-article-cta {
    margin-top: 80px;
    padding: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.c-article-cta h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #fff;
}

.c-article-cta p {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 32px;
}

/* Related Articles */
.c-related-articles {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.c-related-articles h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .c-category-tags {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-right: 0;
        padding-right: 24px;
    }
    .c-category-tags::-webkit-scrollbar {
        display: none;
    }
    .c-category-tags .c-tag {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* =========================================
   NEW BLOG LAYOUT (FEATURED & HIGHLIGHTS)
========================================= */

.c-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    background: #080808;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 48px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 380px;
}
.c-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}
.c-featured-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    z-index: 0;
}
.c-featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    background: linear-gradient(to bottom, rgba(8,8,8,0) 0%, rgba(8,8,8,0) 40%, rgba(8,8,8,1) 100%);
    z-index: 1;
}
.c-featured-card__content {
    position: relative;
    z-index: 2;
    padding: 24px;
}
.c-featured-card__meta {
    font-size: 11px;
    font-weight: 700;
    color: #10B981;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.c-featured-card__meta span {
    color: #888;
}
.c-featured-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}
.c-featured-card__desc {
    font-size: 13px;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 24px;
}
.c-featured-card__cta {
    font-size: 14px;
    font-weight: 600;
    color: #e52020;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Highlights Section */
.c-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.c-highlight-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.c-highlight-header h2 svg {
    color: #e52020;
}
.c-highlight-header a {
    font-size: 13px;
    font-weight: 600;
    color: #e52020;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.c-highlight-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-right: 0;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.c-highlight-row::-webkit-scrollbar {
    display: none;
}
@media (min-width: 768px) {
    .c-highlight-row {
        margin-right: 0;
        padding-right: 0;
    }
}

.c-highlight-card {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.c-highlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}
.c-highlight-card__img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}
.c-highlight-card__content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.c-highlight-card__meta {
    font-size: 9px;
    font-weight: 700;
    color: #e52020;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.c-highlight-card__meta span {
    color: #888;
}
.c-highlight-card__title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.c-highlight-card__desc {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.c-highlight-card__arrow {
    align-self: flex-end;
    color: #e52020;
}

@media (max-width: 768px) {
    .l-blog-hub {
        padding-bottom: 0 !important;
    }
    .c-footer {
        padding-top: 16px !important;
    }
}


/* =========================================
   SCIENTIFIC REFERENCES BOX (DETAILS)
========================================= */
.c-references-details {
    background: linear-gradient(135deg, rgba(229, 32, 32, 0.05) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(229, 32, 32, 0.15);
    border-radius: 16px;
    margin-top: 48px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.c-references-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #e52020;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.c-references-details summary::-webkit-details-marker {
    display: none;
}

.c-references-details[open] summary {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.c-references-details[open] summary svg {
    transform: rotate(180deg);
}

.c-references-details summary svg {
    transition: transform 0.3s ease;
}

.c-references-list {
    padding: 24px 32px 32px 48px;
    margin: 0;
}

.c-references-list li {
    font-size: 14px !important;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.6;
}

.c-references-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .c-references-details summary {
        padding: 16px 20px;
        font-size: 16px;
    }
    .c-references-list {
        padding: 16px 20px 24px 36px;
    }
}

/* Mobile overrides for Article Text Sizes */
@media (max-width: 768px) {
    .c-article-title {
        font-size: 26px !important;
        margin-bottom: 16px !important;
        line-height: 1.2 !important;
    }
    .c-article-body {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .c-article-body h2 {
        font-size: 22px !important;
        margin: 32px 0 16px !important;
    }
    .c-article-body h3 {
        font-size: 18px !important;
        margin: 24px 0 12px !important;
    }
    .c-article-body p {
        margin-bottom: 16px !important;
    }
    .c-article-header {
        margin-bottom: 16px !important;
        margin-top: 16px !important;
    }
    .c-article-editorial {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        margin-bottom: 24px !important;
        font-size: 13px !important;
    }
    .c-evidence-badge {
        font-size: 13px !important;
    }
    .c-article-cover {
        max-height: 220px !important;
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
        margin-bottom: 24px !important;
    }
    .l-article__grid {
        padding: 0 12px !important;
        gap: 0 !important;
    }
    .c-toc-wrapper {
        padding: 8px 12px !important;
        margin-bottom: 0 !important;
    }
    .c-toc__title {
        font-size: 13px !important;
    }
    .c-author-card {
        padding: 12px 16px !important;
        gap: 12px !important;
        margin: 16px 0 !important;
    }
    .c-author-card__avatar {
        width: 48px !important;
        height: 48px !important;
    }
    .c-author-card__info h4 {
        font-size: 15px !important;
        margin-bottom: 2px !important;
    }
    .c-author-card__info p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    .c-article-cta {
        padding: 16px 16px !important;
        margin-top: 24px !important;
    }
    .c-article-cta h3 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .c-article-cta p {
        font-size: 12px !important;
        margin-bottom: 16px !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .c-article-meta {
        font-size: 13px !important;
        gap: 8px !important;
    }

    .c-related-articles {
        margin-top: 48px !important;
        padding-top: 48px !important;
    }
    .c-related-articles h3 {
        font-size: 22px !important;
        margin-bottom: 24px !important;
    }
    .c-related-articles .c-blog-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 16px !important;
        padding-bottom: 16px !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .c-related-articles .c-blog-grid::-webkit-scrollbar {
        display: none;
    }
    .c-related-articles .c-article-card {
        flex: 0 0 75% !important;
        scroll-snap-align: start;
        margin-bottom: 0 !important;
    }
    .c-related-articles .c-article-card__cover {
        height: 160px !important;
        max-height: 160px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }
    .c-related-articles .c-article-card__title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    .c-related-articles .c-article-card__subtitle {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
    }
}
