:root {
    --primary-blue: #3498db;
    --dark-blue: #2980b9;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-gray: #666;
    --text-meta: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-white-transparent: rgba(255, 255, 255, 0.3);
    --bg-overlay: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-blue: 0 5px 15px rgba(52, 152, 219, 0.3);
    --shadow-blue-hover: 0 8px 20px rgba(52, 152, 219, 0.4);
    --border-light: 1px solid #eee;
    --border-white-transparent: 1px solid rgba(255, 255, 255, 0.2);
    --border-radius: 16px;
    --border-radius-lg: 20px;
    --border-radius-btn: 50px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --image-border-radius: 20px;
    --image-frame-padding: 8px;
}

body {
    position: relative;
    z-index: 0;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    transform: scale(1.1);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
}

.articles-page,
.article-detail {
    padding: 120px 0 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInUp 0.8s ease forwards;
}
.page-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}
.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}
.page-description {
    font-size: 1.125rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
}

.articles-stack {
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
}
.article-card-stack {
    background-color: var(--bg-white-transparent);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    border: var(--border-white-transparent);
}
.article-card-stack.visible {
    opacity: 1;
    transform: translateY(0);
}
.article-card-stack:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.article-link-stack {
    display: flex;
    min-height: 250px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}
.article-link-stack:hover {
    text-decoration: none;
}

.article-image-container {
    position: relative;
    flex: 0 0 280px;
    background-color: #f0f0f0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--image-border-radius);
    margin: 16px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.article-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    z-index: 0;
    background-image: inherit;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
    border-radius: calc(var(--image-border-radius) - 4px);
}

.article-card-stack:hover .article-image-container {
    border-color: var(--primary-blue);
    box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(52, 152, 219, 0.3);
    transform: scale(1.02);
}
.article-card-stack:hover .article-image-container img {
    transform: scale(1.08);
}

.article-content-stack {
    flex: 1;
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
}
.article-title-stack {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
}
.article-card-stack:hover .article-title-stack {
    color: var(--primary-blue);
}
.article-excerpt-stack {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.article-meta-stack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: var(--border-light);
    font-size: 0.875rem;
    color: var(--text-meta);
}
.read-more {
    color: var(--primary-blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}
.read-more::after {
    content: '→';
    transition: transform 0.3s;
}
.article-card-stack:hover .read-more {
    gap: 0.75rem;
}
.article-card-stack:hover .read-more::after {
    transform: translateX(5px);
}

.article-container {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-white-transparent);
    backdrop-filter: blur(10px);
}
.article-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    border-bottom: var(--border-light);
}

.article-detail-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
}

.image-frame {
    display: inline-block;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    border-radius: 32px;
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255,255,255,0.6);
    transition: var(--transition-smooth);
}

.image-frame:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255,255,255,0.8);
}

.article-detail-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 24px;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover .article-detail-image {
    transform: scale(1.02);
}

.article-body {
    padding: 2.5rem 3rem 3rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.back-link-container {
    text-align: center;
    padding: 2rem 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-btn);
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-blue);
}
.back-link:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-hover);
    gap: 1rem;
}

.no-articles {
    text-align: center;
    padding: 5rem 1.25rem;
}
.no-articles p {
    font-size: 1.125rem;
    color: var(--text-light);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .articles-stack {
        max-width: 95%;
    }
    .article-link-stack {
        flex-direction: column;
    }
    .article-image-container {
        flex: 0 0 auto;
        width: calc(100% - 32px);
        margin: 16px;
    }
    .article-content-stack {
        padding: 0 1.5rem 1.5rem;
    }
}
@media (max-width: 768px) {
    .page-title {
        font-size: 2.25rem;
    }
    .articles-page,
    .article-detail {
        padding: 100px 0 40px;
    }
    .article-header,
    .article-body {
        padding: 1.5rem;
    }
    .article-title-stack {
        font-size: 1.25rem;
    }
    .image-frame {
        padding: 8px;
    }
    .article-detail-image {
        max-height: 350px;
    }
}
@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    .article-body {
        font-size: 1rem;
        line-height: 1.6;
        padding: 1.25rem;
    }
    .article-meta-stack {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .image-frame {
        padding: 6px;
        border-radius: 24px;
    }
    .article-detail-image {
        border-radius: 18px;
    }
}