/* ========================================
   ARTICLES PAGE
   ======================================== */
.articles-page-section {
    padding: 5rem 0 6rem;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fffe 0%, #ffffff 45%, #f3fbff 100%);
}

.articles-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb-nav-compact {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: #94a3b8;
}

.breadcrumb-item a {
    color: #0f766e;
    text-decoration: none;
}

.breadcrumb-item span[aria-current="page"] {
    color: #334155;
}

.articles-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    padding: 0.9rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(20, 184, 166, 0.16);
    box-shadow: 0 18px 45px -30px rgba(15, 118, 110, 0.5);
    color: #0f766e;
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.article-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 1.125rem;
    box-shadow: 0 18px 44px -36px rgba(15, 23, 42, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.28);
    box-shadow: 0 22px 54px -36px rgba(20, 184, 166, 0.24);
}

.article-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
}

.article-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.article-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.14));
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card-title {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 700;
    color: #111827;
}

.article-card-excerpt {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.article-card-slug {
    margin-top: auto;
    color: #94a3b8;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.articles-empty-state {
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 24px 60px -42px rgba(15, 23, 42, 0.3);
}

.articles-empty-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 18px 35px -20px rgba(20, 184, 166, 0.6);
}

.articles-empty-state h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.75rem;
}

.articles-empty-state p {
    max-width: 40rem;
    margin: 0 auto;
    color: #4b5563;
}

.articles-empty-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .articles-page-section {
        padding: 4rem 0 5rem;
    }

    .articles-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   ARTICLE DETAIL PAGE
   ======================================== */
.article-detail-section {
    padding: 2rem 0 6rem;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 26%),
        linear-gradient(180deg, #fbfffe 0%, #ffffff 42%, #f5fbff 100%);
}

.article-detail-card,
.article-detail-empty {
    max-width: 920px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px -44px rgba(15, 23, 42, 0.35);
}

.article-detail-card {
    overflow: hidden;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.article-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.article-detail-image-wrap {
    margin: 1rem 1.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
}

.article-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-detail-body {
    padding: 1.75rem 1.5rem 2rem;
}

.article-detail-title {
    margin-bottom: 1.25rem;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1.45;
}

.article-detail-excerpt {
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.9;
    font-size: 1rem;
}

.article-detail-content {
    color: #334155;
    line-height: 1.9;
    font-size: 1rem;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
    color: #0f172a;
    line-height: 1.5;
    margin: 2rem 0 0.9rem;
}

.article-detail-content p,
.article-detail-content ul,
.article-detail-content ol,
.article-detail-content blockquote {
    margin-bottom: 1rem;
}

.article-detail-content ul,
.article-detail-content ol {
    padding-left: 1.5rem;
}

.article-detail-content ul {
    list-style: disc;
}

.article-detail-content ol {
    list-style: decimal;
}

.article-detail-content li {
    margin-bottom: 0.55rem;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.article-detail-content a {
    color: #0f766e;
}

.article-related-section {
    max-width: 920px;
    margin: 2rem auto 0;
}

.article-related-header {
    margin-bottom: 1rem;
}

.article-related-header h2 {
    font-size: 1.5rem;
    color: #111827;
}

.article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-detail-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.article-detail-empty-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: #fff;
    font-size: 1.5rem;
}

.article-detail-empty h2 {
    margin-bottom: 0.75rem;
    color: #111827;
}

.article-detail-empty p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

@media (max-width: 767px) {
    .article-detail-section {
        padding: 1.5rem 0 5rem;
    }

    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-detail-image-wrap {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .article-detail-body {
        padding: 1.25rem 1rem 1.5rem;
    }

    .article-detail-title {
        font-size: 1.5rem;
    }

    .article-related-section {
        margin-top: 1.5rem;
    }

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