/*
* Article
*/

.article_content {
    min-width: 420px;
    margin: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    background: var(--bg-color, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article_content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.article_content a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article_content .article_img {
    width: 100%;
    min-height: 220px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px 16px 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article_content:hover .article_img {
    transform: scale(1.03);
}

.article_content .article_img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

.article_content .label {
    text-align: left;
    padding: 16px 20px;
    position: relative;
}

.article_content .label > div:first-child {
    font-weight: 500;
    font-size: 0.95em;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article_content .label .date {
    font-size: 0.8em;
    color: var(--text-light, #6b7280);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.article_content .label .date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.article_content:hover .label .date {
    color: var(--text-color);
}

.article_content_noimg {
    min-width: auto;
    margin: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    background: var(--bg-color, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article_content_noimg:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.article_content_noimg a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article_content_noimg .label {
    min-width: auto;
    margin: 0;
    padding: 20px;
}

.article_content_noimg .label > div:first-child {
    font-weight: 500;
    font-size: 0.95em;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article_content_noimg .label .date {
    font-size: 0.8em;
    color: var(--text-light, #6b7280);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article_content_noimg .label .date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Articles Grid Container */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Articles Section Title */
.line_ctext {
    text-align: center;
    margin-bottom: 2.5rem;
}

.line_ctext b {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-color);
    display: inline-block;
    position: relative;
}

.line_ctext b::after {
    content: '';
    display: block;
    height: 4px;
    width: 60px;
    border-radius: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--color-blue-5, #3b82f6), var(--color-cyan-5, #06b6d4));
}

.line_ctext div {
    height: 4px;
    border-radius: 2px;
    width: 60px;
    margin: 0 auto;
    margin-top: 13px;
    background: linear-gradient(90deg, var(--color-blue-5, #3b82f6), var(--color-cyan-5, #06b6d4));
    opacity: 0.3;
}

/* Articles Footer */
.article-footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--link-color, #3b82f6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.article-footer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.article-footer a:hover {
    color: #1d4ed8;
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.article-footer a:hover::before {
    left: 100%;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-light, #6b7280);
    font-style: italic;
    border: 2px dashed var(--border-color, #e2e8f0);
    border-radius: 12px;
    background: var(--surface-bg, #f9fafb);
    font-size: 0.95rem;
}

/* Responsive Design */

/* Desktop >= 1024px - 3 columns */
@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px;
    }

    .line_ctext b {
        font-size: 1.9em;
    }
}

/* Tablet (768px - 1023px) - 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 18px;
    }

    .line_ctext b {
        font-size: 1.75em;
    }
}

/* Mobile (< 768px) - 1 column */
@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }

    .article_content .label {
        padding: 14px 16px;
    }

    .line_ctext {
        margin-bottom: 1.5rem;
    }

    .line_ctext b {
        font-size: 1.5em;
    }

    .line_ctext div {
        width: 50px;
        height: 3px;
        margin-top: 10px;
    }

    .article-footer a {
        font-size: 0.875rem;
        padding: 0.6rem 1.25rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .article_content .article_img {
        min-height: 170px;
    }

    .line_ctext b {
        font-size: 1.35em;
    }

    .article-content_noimg .label {
        padding: 16px;
    }
}
