/* ================================================
   Articles — Professional Layout
   ================================================ */

/* --- Hero --- */
.articles-hero {
    position: relative;
    padding: 6rem 0 3.5rem;
    background: linear-gradient(135deg, #012169 0%, #0a1e4a 40%, #1a0a2e 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.articles-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.articles-hero__inner {
    position: relative;
    z-index: 1;
}

.articles-hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}

.articles-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.articles-hero__lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Category Filter --- */
.articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0 0;
}

.articles-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid var(--c-border-strong);
    background: #fff;
    color: var(--c-text);
}

.articles-filter-btn:hover {
    border-color: var(--c-red);
    color: var(--c-red);
    background: var(--c-red-light);
}

.articles-filter-btn.is-active {
    background: var(--c-red);
    color: #fff;
    border-color: var(--c-red);
}

/* --- Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 2.5rem 0;
}

/* --- Card --- */
.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--c-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--c-shadow-hover);
}

.article-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--c-bg-muted);
}

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

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

.article-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--c-red);
    color: #fff;
    z-index: 1;
}

.article-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
}

.article-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--c-heading);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__summary {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--c-border);
}

.article-card__date {
    font-size: 0.78rem;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-card__date svg {
    opacity: 0.5;
}

.article-card__tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.article-card__tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--c-bg-alt);
    color: var(--c-text-muted);
    font-weight: 500;
}

/* --- Read More Arrow --- */
.article-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-red-light);
    color: var(--c-red);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.article-card:hover .article-card__arrow {
    background: var(--c-red);
    color: #fff;
}

/* ================================================
   Article Show Page
   ================================================ */

.article-hero {
    position: relative;
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #012169 0%, #0a1e4a 50%, #1a0a2e 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.article-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin: 0 auto;
}

.article-hero__category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-red-soft);
    text-decoration: none;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.article-hero__category:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.article-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
}

.article-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-hero__tags {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1rem;
}

.article-hero__tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-hero__tag:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* --- Article Body --- */
.article-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 0;
}

.article-content__cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 40px -8px rgba(0,0,0,0.12);
}

.article-content__cover img {
    width: 100%;
    display: block;
}

.article-content__lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--c-heading);
    font-weight: 600;
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-right: 3px solid var(--c-red);
    margin-bottom: 2.5rem;
    background: var(--c-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--c-text);
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-heading);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-border);
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-heading);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    color: var(--c-heading);
    font-weight: 700;
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-right: 3px solid var(--c-red);
    background: var(--c-red-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--c-heading);
}

.article-body img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

/* --- Related Articles --- */
.related-section {
    background: var(--c-bg-alt);
    padding: 4rem 0;
}

.related-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* --- Empty State --- */
.articles-empty {
    text-align: center;
    padding: 5rem 2rem;
}

.articles-empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--c-text-muted);
    opacity: 0.3;
}

.articles-empty__text {
    font-size: 1.1rem;
    color: var(--c-text-muted);
}

/* --- Pagination --- */
.articles-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 768px) {
    .articles-hero {
        padding: 4rem 0 2.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 0;
    }

    .article-card__body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .article-hero {
        padding: 3.5rem 0 2rem;
    }

    .article-content {
        padding: 2rem 0;
    }

    .article-content__lead {
        font-size: 1rem;
        padding: 1rem;
    }

    .article-body {
        font-size: 0.95rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .articles-filter-btn {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }
}
