.article-page {
--color-text-primary: #1e293b;
--color-text-body: #475569;
--color-text-muted: #64748b;
--color-accent: #10b981;
--color-accent-light: #d1fae5;
--color-border: #e2e8f0;
--color-bg-subtle: #f8fafc;

min-height: 100vh;
background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
font-family: 'Figtree', sans-serif;
}

/* Hero Section with 1200x500 Image */
.article-hero {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem 0;
animation: fadeIn 0.8s ease-out;
}

.article-hero__image-wrapper {
position: relative;
width: 100%;
aspect-ratio: 12 / 5;
overflow: hidden;
border-radius: 1rem;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06),
0 0 0 1px rgba(0, 0, 0, 0.05);
}

.article-hero__image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-hero__image-wrapper:hover .article-hero__image {
transform: scale(1.02);
}

.article-hero__overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.03) 100%
);
pointer-events: none;
}

/* Breadcrumb Container - Above Image */
.article-breadcrumb-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem 1rem;
}

/* Breadcrumb */
.article-breadcrumb {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--color-text-muted);
animation: slideDown 0.6s ease-out 0.1s both;
}

/* Content Container - 800px max width */
.article-content {
max-width: 800px;
margin: 0 auto;
padding: 3rem 1.5rem 6rem;
}

.article-breadcrumb__link {
color: var(--color-text-muted);
text-decoration: none;
transition: color 0.2s;
position: relative;
}

.article-breadcrumb__link::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 1px;
background: var(--color-accent);
transition: width 0.3s;
}

.article-breadcrumb__link:hover {
color: var(--color-accent);
}

.article-breadcrumb__link:hover::after {
width: 100%;
}

.article-breadcrumb__separator {
opacity: 0.5;
}

.article-breadcrumb__current {
color: var(--color-text-primary);
font-weight: 500;
}

/* Header */
.article-header {
margin-bottom: 3rem;
animation: slideDown 0.6s ease-out 0.2s both;
}

.article-header__tags {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
}

.article-tag {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.375rem 0.75rem;
border-radius: 9999px;
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
transition: transform 0.2s, box-shadow 0.2s;
}

.article-tag:hover {
transform: translateY(-1px);
}

.article-tag--primary {
background: var(--color-accent-light);
color: var(--color-accent);
box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.article-tag--secondary {
background: #f1f5f9;
color: #475569;
border: 1px solid var(--color-border);
}

.article-tag__icon {
width: 1rem;
height: 1rem;
}

.article-header__title {
font-family: 'Figtree', sans-serif;
font-size: clamp(1.75rem, 5vw, 2.5rem);
font-weight: 800;
line-height: 1.2;
color: var(--color-text-primary);
margin-bottom: 1.25rem;
letter-spacing: -0.02em;
}

/* Excerpt Container */
.article-excerpt-container {
background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
border: 2px solid var(--color-accent-light);
border-left: 5px solid var(--color-accent);
border-radius: 1rem;
padding: 1.75rem;
margin-bottom: 1.5rem;
box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-excerpt-container:hover {
box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
transform: translateY(-2px);
}

.article-excerpt-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--color-accent);
margin-bottom: 1rem;
}

.article-excerpt-icon {
width: 1.125rem;
height: 1.125rem;
stroke-width: 2.5;
}

.article-header__excerpt {
font-size: 0.9375rem;
line-height: 1.6;
color: var(--color-text-primary);
font-weight: 400;
}

.article-header__excerpt p {
margin-bottom: 0.75rem;
color: var(--color-text-primary);
}

.article-header__excerpt p:last-child {
margin-bottom: 0;
}

.article-header__excerpt strong,
.article-header__excerpt b {
font-weight: 600;
color: var(--color-text-primary);
}

.article-header__excerpt em,
.article-header__excerpt i {
font-style: italic;
}

.article-header__excerpt a {
color: var(--color-accent);
text-decoration: underline;
font-weight: 500;
}

.article-header__excerpt ul,
.article-header__excerpt ol {
margin: 0.5rem 0;
padding-left: 1.5rem;
}

.article-header__excerpt li {
margin-bottom: 0.25rem;
}

.article-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1rem;
padding-top: 1.5rem;
margin-bottom: 2rem;
border-top: 1px solid var(--color-border);
font-size: 0.875rem;
color: var(--color-text-muted);
}

.article-meta__date {
font-weight: 500;
color: var(--color-text-body);
}

.article-meta__updated::before {
content: '•';
margin-right: 1rem;
}

/* Author Card */
.article-author {
display: flex;
align-items: center;
gap: 1.25rem;
padding: 1.75rem;
background: var(--color-bg-subtle);
border: 1px solid var(--color-border);
border-radius: 1rem;
margin-bottom: 3rem;
animation: slideUp 0.6s ease-out 0.3s both;
transition: transform 0.2s, box-shadow 0.2s;
}

.article-author:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-author__avatar {
width: 4rem;
height: 4rem;
border-radius: 50%;
object-fit: cover;
border: 2px solid white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-author__info {
flex: 1;
}

.article-author__label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-muted);
margin-bottom: 0.25rem;
font-weight: 600;
}

.article-author__name {
font-family: 'Figtree', sans-serif;
font-size: 1.125rem;
font-weight: 600;
color: var(--color-text-primary);
margin-bottom: 0.25rem;
}

.article-author__description {
font-size: 0.875rem;
color: var(--color-text-body);
line-height: 1.5;
}

/* Body Content */
.article-body {
animation: fadeIn 0.8s ease-out 0.4s both;
}

.article-body p,
.seo-content p {
font-size: 1.0625rem;
line-height: 1.8;
color: var(--color-text-primary);
margin-bottom: 1.5rem;
font-weight: 400;
}

.article-body h2,
.seo-content h2 {
font-family: 'Figtree', sans-serif;
font-size: 1.875rem;
font-weight: 700;
color: var(--color-text-primary);
margin-top: 2rem;
margin-bottom: 0.75rem;
letter-spacing: -0.01em;
line-height: 1.3;
}

.article-body h3,
.seo-content h3 {
font-family: 'Figtree', sans-serif;
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text-primary);
margin-top: 1.25rem;
margin-bottom: 0.5rem;
letter-spacing: -0.01em;
line-height: 1.3;
}

.article-body h4,
.seo-content h4 {
font-family: 'Figtree', sans-serif;
font-size: 1.125rem;
font-weight: 600;
color: var(--color-text-primary);
margin-top: 1rem;
margin-bottom: 0.375rem;
}

.article-body ul,
.article-body ol,
.seo-content ul,
.seo-content ol {
margin-bottom: 1.5rem;
padding-left: 2rem;
list-style-position: outside;
}

.article-body ul {
list-style-type: disc;
}

.article-body ol {
list-style-type: decimal;
}

.seo-content ul {
list-style-type: disc;
}

.seo-content ol {
list-style-type: decimal;
}

.article-body li,
.seo-content li {
font-size: 1.0625rem;
line-height: 1.5;
color: var(--color-text-primary);
margin-bottom: 0.5rem;
padding-left: 0.5rem;
position: relative;
}

.article-body li::marker,
.seo-content li::marker {
color: var(--color-accent);
font-weight: 600;
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul,
.seo-content ul ul,
.seo-content ol ol,
.seo-content ul ol,
.seo-content ol ul {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
margin-left: 0.5rem;
}

.article-body a,
.seo-content a {
color: var(--color-accent);
text-decoration: none;
font-weight: 500;
border-bottom: 1px solid transparent;
transition: border-color 0.2s;
}

.article-body a:hover,
.seo-content a:hover {
border-bottom-color: var(--color-accent);
}

.article-body blockquote,
.seo-content blockquote {
padding-left: 1.5rem;
border-left: 3px solid var(--color-accent);
margin: 2rem 0;
font-style: italic;
color: var(--color-text-primary);
font-size: 1.125rem;
}

/* Table Styles */
.article-body table,
.seo-content table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 2rem 0;
font-size: 0.9375rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border-radius: 0.75rem;
overflow: hidden;
background: white;
border: 2px solid #cbd5e1;
}

.article-body thead,
.seo-content thead {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-bottom: 2px solid #cbd5e1;
}

.article-body th,
.seo-content th {
padding: 1rem 1.25rem;
text-align: left;
font-weight: 700;
color: var(--color-text-primary);
font-family: 'Figtree', sans-serif;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 2px solid #cbd5e1;
white-space: nowrap;
}

.article-body th:not(:last-child),
.seo-content th:not(:last-child) {
border-right: 1px solid #cbd5e1;
}

.article-body tbody tr,
.seo-content tbody tr {
transition: background-color 0.2s ease;
}

.article-body tbody tr:nth-child(even),
.seo-content tbody tr:nth-child(even) {
background-color: #fafbfc;
}

.article-body tbody tr:nth-child(odd),
.seo-content tbody tr:nth-child(odd) {
background-color: white;
}

.article-body td,
.seo-content td {
padding: 1rem 1.25rem;
color: var(--color-text-primary);
border-bottom: 1px solid #cbd5e1;
line-height: 1.6;
vertical-align: top;
}

.article-body td:not(:last-child),
.seo-content td:not(:last-child) {
border-right: 1px solid #cbd5e1;
}

.article-body tbody tr:last-child td,
.seo-content tbody tr:last-child td {
border-bottom: none;
}

.article-body tbody tr:hover,
.seo-content tbody tr:hover {
background-color: #f0f9ff !important;
}

.article-body tbody tr:hover td,
.seo-content tbody tr:hover td {
color: var(--color-text-primary);
}

.article-body img,
.seo-content img {
width: 100%;
height: auto;
border-radius: 0.75rem;
margin: 2rem 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-body code,
.seo-content code {
background: #f1f5f9;
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
font-size: 0.9em;
color: #e11d48;
font-family: 'Courier New', monospace;
}

.article-body pre,
.seo-content pre {
background: #1e293b;
color: #e2e8f0;
padding: 1.5rem;
border-radius: 0.75rem;
overflow-x: auto;
margin: 2rem 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-body pre code,
.seo-content pre code {
background: transparent;
padding: 0;
color: inherit;
}

/* Related Guides Section */
.article-related-guides {
margin-top: 4rem;
padding-bottom: 3rem;
border-bottom: 1px solid var(--color-border);
animation: slideUp 0.6s ease-out 0.5s both;
}

.article-related-guides__title {
font-family: 'Figtree', sans-serif;
font-size: 1.75rem;
font-weight: 700;
color: var(--color-text-primary);
margin-bottom: 0.5rem;
}

.article-related-guides__subtitle {
font-size: 1rem;
color: var(--color-text-muted);
margin-bottom: 2rem;
}

.article-related-guides__grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}

.related-article-card {
display: flex;
gap: 1.25rem;
padding: 1.25rem;
background: white;
border: 1px solid var(--color-border);
border-radius: 1rem;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
}

.related-article-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
border-color: var(--color-accent);
}

.related-article-card__image {
flex-shrink: 0;
width: 140px;
height: 100px;
border-radius: 0.5rem;
overflow: hidden;
background: var(--color-bg-subtle);
}

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

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

.related-article-card__content {
flex: 1;
display: flex;
flex-direction: column;
}

.related-article-card__meta {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.5rem;
font-size: 0.75rem;
}

.related-article-card__difficulty {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.625rem;
background: var(--color-bg-subtle);
border-radius: 9999px;
font-weight: 600;
color: var(--color-text-body);
}

.related-article-card__date {
color: var(--color-text-muted);
}

.related-article-card__title {
font-family: 'Figtree', sans-serif;
font-size: 1.125rem;
font-weight: 700;
color: var(--color-text-primary);
margin-bottom: 0.5rem;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.related-article-card__excerpt {
font-size: 0.9375rem;
color: var(--color-text-muted);
line-height: 1.5;
margin-bottom: 0.75rem;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.related-article-card__link-text {
font-size: 0.875rem;
font-weight: 600;
color: var(--color-accent);
margin-top: auto;
}

.related-article-card:hover .related-article-card__link-text {
text-decoration: underline;
}

/* Related Categories */
.article-related {
margin-top: 2.5rem;
padding: 2rem;
background: var(--color-bg-subtle);
border: 1px solid var(--color-border);
border-radius: 1rem;
animation: slideUp 0.6s ease-out 0.6s both;
}

.article-related__title {
font-family: 'Figtree', sans-serif;
font-size: 1.375rem;
font-weight: 700;
color: var(--color-text-primary);
margin-bottom: 1.25rem;
}

.article-related__grid {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}

.article-related__link {
display: inline-flex;
align-items: center;
padding: 0.625rem 1.25rem;
background: white;
border: 1px solid var(--color-border);
border-radius: 9999px;
font-size: 0.9375rem;
font-weight: 500;
color: var(--color-text-body);
text-decoration: none;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-related__link:hover {
background: var(--color-accent-light);
border-color: var(--color-accent);
color: var(--color-accent);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

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

/* Responsive */
@media (max-width: 768px) {
.article-content {
padding: 2rem 1rem 4rem;
}

/* Fix breadcrumb wrapping */
.article-breadcrumb {
font-size: 0.8125rem;
}

.article-breadcrumb__current {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 200px;
display: inline-block;
}

.article-header__title {
font-size: 2rem;
}

.article-excerpt-container {
padding: 1.25rem;
}

.article-excerpt-label {
font-size: 0.6875rem;
}

.article-header__excerpt {
font-size: 0.875rem;
}

/* Guide-meta mobile adjustments */
.article-meta {
font-size: 0.8125rem;
}

.article-body h2,
.seo-content h2 {
font-size: 1.5rem;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}

.article-body h3,
.seo-content h3 {
font-size: 1.25rem;
margin-top: 1rem;
margin-bottom: 0.375rem;
}

.article-author {
flex-direction: column;
text-align: center;
}

.related-article-card {
flex-direction: column;
}

.related-article-card__image {
width: 100%;
height: 180px;
}
}
