/* ===== Blog Layout ===== */
.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-nav-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-nav-logo {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.blog-nav-logo:hover { color: #d1d5db; }

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.blog-nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}
.blog-nav-link:hover { color: #fff; }
.blog-nav-link.active { color: #d1d5db; }

/* Blog listing */
.blog-container {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
}

.blog-title {
    font-size: 1.875rem;
    font-weight: 300;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

.blog-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 4rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Blog card */
.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    transition: all 0.4s ease;
}
.blog-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.blog-card-category {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7280;
}

.blog-card-dot { color: #374151; }

.blog-card-time {
    font-size: 0.625rem;
    color: #4b5563;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s;
}
.blog-card:hover .blog-card-title { color: #d1d5db; }

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 300;
    line-height: 1.6;
}

/* Article page */
.article-container {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: #6b7280;
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    transition: color 0.3s;
}
.article-back:hover { color: #d1d5db; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-meta-item {
    font-size: 0.625rem;
    color: #6b7280;
}

.article-meta-dot { color: #374151; }

.article-title {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .blog-title { font-size: 2.25rem; }
    .blog-card-title { font-size: 1.25rem; }
    .article-title { font-size: 1.875rem; }
}

/* Article hero image */
.article-image {
    margin: 0 0 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.article-image figcaption,
.article-content figcaption {
    font-size: 0.7rem;
    color: #4b5563;
    text-align: right;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.05em;
}

.article-image figcaption a,
.article-content figcaption a {
    color: #4b5563;
    text-decoration: none;
}
.article-image figcaption a:hover,
.article-content figcaption a:hover { color: #9ca3af; }

/* Inline images inside article body */
.article-content figure {
    margin: 2rem 0 2.5rem;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-content figure img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 360px;
    object-fit: cover;
}

/* Article content */
.article-content h2 {
    font-size: 1.375rem;
    font-weight: 300;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.article-content ul,
.article-content ol {
    margin: 0.5rem 0 1rem 1rem;
    padding: 0;
    list-style: none;
}

.article-content li {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 0.625rem;
    padding-left: 1rem;
    position: relative;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.article-content ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #4b5563;
}

.article-content ol {
    counter-reset: article-counter;
}

.article-content ol li {
    counter-increment: article-counter;
}

.article-content ol li::before {
    content: counter(article-counter) '.';
    position: absolute;
    left: 0;
    color: #4b5563;
    font-weight: 500;
}

.article-content strong {
    color: #d1d5db;
    font-weight: 400;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content th {
    text-align: left;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-weight: 500;
}

.article-content td {
    padding: 0.5rem 1rem;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Checklist */
.article-content .checklist-item {
    padding-left: 1.5rem;
}
.article-content .checklist-item::before {
    content: '☐';
    color: #6b7280;
}

/* CTA box */
.article-cta {
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.article-cta h3 {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #fff;
}

.article-cta p {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.article-cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 26rem;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .article-cta-form { flex-direction: row; }
}

.article-cta-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #fff;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.3s;
}
.article-cta-input::placeholder { color: #4b5563; }
.article-cta-input:focus { border-color: rgba(255, 255, 255, 0.4); }

.article-cta-success {
    font-size: 0.875rem;
    color: #6ee7b7;
    margin-top: 0.5rem;
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.article-cta-button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Related articles */
.article-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-related-title {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 1rem;
}

.article-related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-related-link {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s;
}
.article-related-link:hover { color: #fff; }

/* Footer */
.blog-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    text-align: center;
}

.blog-footer p {
    font-size: 0.75rem;
    color: #4b5563;
    margin: 0;
}

.blog-footer a {
    color: #4b5563;
    text-decoration: underline;
    margin-left: 0.5rem;
    transition: color 0.3s;
}
.blog-footer a:hover { color: #9ca3af; }
