/* ═══ BLOG & ARTICLE STYLES ═══ */

.nav-active { color: var(--accent) !important; font-weight: 600; }

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ═══ BLOG LIST PAGE ═══ */
.blog-page { padding-top: 80px; }
.blog-page-header {
    background: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--sand);
}
.blog-page-header h1 {
    margin-top: 8px;
    margin-bottom: 16px;
    color: var(--text);
}
.blog-page-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 680px;
    line-height: 1.7;
}

.blog-list { padding: 60px 0 100px; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--text);
    border: 1px solid var(--sand);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.article-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sand);
}
.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.article-card:hover .article-card-media img { transform: scale(1.05); }
.article-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--stone), var(--sand));
}
.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.article-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}
.article-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}
.article-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ═══ ARTICLE DETAIL PAGE ═══ */
.article-page { padding-top: 80px; }

.article-hero {
    background: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--sand);
}
.article-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 900px;
}
.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 760px;
}

.article-media {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-body {
    max-width: 740px;
    margin: 40px auto;
    padding: 0 24px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}
.article-body > * { margin-bottom: 24px; }
.article-body .article-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sand);
}
.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}
.article-body p {
    margin-bottom: 20px;
    color: var(--text);
}
.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body a:hover { color: var(--accent-dark); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-light);
    font-style: italic;
}

.article-figure {
    margin: 32px 0;
}
.article-figure img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.article-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.article-takeaways {
    background: var(--cream);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 32px 0;
}
.article-takeaways h2 {
    font-size: 1.15rem !important;
    font-family: var(--font) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-weight: 600;
}
.article-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-takeaways li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
    font-size: 1rem;
}
.article-takeaways li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.article-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}
.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-faq { margin-top: 48px; }
.article-faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
}
.article-faq details {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
}
.article-faq summary {
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 32px;
}
.article-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform var(--transition);
}
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details[open] { border: 1px solid var(--sand); }
.article-faq p { margin-top: 10px; color: var(--text-light); line-height: 1.7; }

.article-cta {
    text-align: center;
    margin: 48px 0 24px;
    padding: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-lg);
}
.article-cta a {
    display: inline-block;
    background: var(--white);
    color: var(--accent-dark);
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition);
}
.article-cta a:hover { transform: scale(1.03); }

.article-related {
    background: var(--off-white);
    padding: 60px 0 80px;
    border-top: 1px solid var(--sand);
}
.article-related h2 {
    font-family: var(--font-display);
    margin-bottom: 32px;
    color: var(--text);
}
.article-back {
    text-align: center;
    margin-top: 40px;
}
.article-back .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 999px;
    background: transparent;
    font-weight: 600;
    transition: all var(--transition);
}
.article-back .btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .blog-page-header { padding: 60px 0 40px; }
    .article-hero { padding: 40px 0 24px; }
    .article-body { font-size: 1rem; }
    .article-media { margin-top: 24px; }
    .articles-grid { grid-template-columns: 1fr; gap: 24px; }
}
