/* ================================================
   Blog Pages — all blog-specific styles
   ================================================ */

/* ─── Blog Nav Items ─────────────────────────────────────────────
   Uses different class names (.blog-nav-item / .blog-nav-link) so
   main.js click handler (.mynav-item) does not intercept them.
   Visual style mirrors .mynav-item / .mynav-link exactly.
   ─────────────────────────────────────────────────────────────── */
.mainmenu-area .blog-nav-item {
    display: inline-block;
    height: 100%;
}

.mainmenu-area .blog-nav-item.active .blog-nav-link {
    color: #4c84ff;
}

.mainmenu-area .blog-nav-item .blog-nav-link {
    color: #fff;
    padding: 0 10px;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    text-transform: uppercase;
    display: flex;
    align-self: center;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s;
}

.mainmenu-area .blog-nav-item .blog-nav-link:hover {
    color: #4c84ff;
}

.mainmenu-area .blog-nav-item:last-child .blog-nav-link {
    padding-right: 0;
    margin-right: 0;
}

@media (max-width: 991px) {
    .mainmenu-area .blog-nav-item {
        display: block;
        height: auto;
    }

    .mainmenu-area .blog-nav-item .blog-nav-link {
        text-align: left;
        height: auto;
        padding: 8px 0;
    }
}

/* ─── Blog Index: Section ─── */
.blog-page {
    padding-top: 100px;
}

/* ─── Blog Index: Category Filters ─── */
.blog-filter-btn {
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ─── Blog Index & Related: Card layout ─── */
.blogs .blog-box,
.blog-related .blog-box {
    display: flex;
    flex-direction: column;
}

.blogs .blog-box .blog-details,
.blog-related .blog-box .blog-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blogs .blog-box .blog-details .blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-read-more-wrapper {
    margin-top: auto;
    padding-top: 12px;
}

.blogs .blog-read-more,
.blog-related .blog-read-more {
    display: inline-block;
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.blogs .blog-read-more:hover,
.blog-related .blog-read-more:hover {
    color: #a29bfe;
}

.blogs .blog-read-more i,
.blog-related .blog-read-more i {
    margin-left: 3px;
}

/* ─── Blog Detail: Section ─── */
.blog-detail-section {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* ─── Blog Detail: Breadcrumb ─── */
.blog-breadcrumb-nav {
    margin-bottom: 24px;
}

.blog-breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    --bs-breadcrumb-divider-color: #555;
}

.blog-breadcrumb .breadcrumb-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: #e0e0e0;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #666;
}

/* ─── Blog Detail: Article ─── */
.blog-article__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 16px 0 12px;
    line-height: 1.3;
}

.blog-article__meta {
    gap: 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #888;
}

.blog-article__meta i {
    margin-right: 5px;
}

.blog-article__thumbnail {
    margin: 0 0 32px;
}

.blog-article__thumbnail img {
    width: 100%;
    border-radius: 8px;
    max-height: 420px;
    object-fit: cover;
}

.blog-article__excerpt {
    font-size: 1.1rem;
    color: #aaa;
    border-left: 3px solid #6c5ce7;
    padding-left: 16px;
    margin-bottom: 28px;
    font-style: italic;
}

/* ─── Blog Detail: Content (Markdown-rendered HTML) ─── */
.blog-post-content {
    line-height: 1.9;
    font-size: 1rem;
    color: #ccc;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    color: #e0e0e0;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post-content h1 {
    font-size: 1.75rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.4rem;
}

.blog-post-content h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.3rem;
}

.blog-post-content h3 { font-size: 1.2rem; }
.blog-post-content h4 { font-size: 1.05rem; }

.blog-post-content p { margin-bottom: 1rem; }

.blog-post-content a {
    color: #6c5ce7;
    text-decoration: underline;
}

.blog-post-content a:hover { color: #a29bfe; }

.blog-post-content strong { color: #e0e0e0; }
.blog-post-content em     { color: #b0b0b0; }

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-content li { margin-bottom: 0.35rem; }

.blog-post-content blockquote {
    border-left: 3px solid #6c5ce7;
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    color: #aaa;
    font-style: italic;
    background: rgba(108, 92, 231, 0.06);
    border-radius: 0 4px 4px 0;
}

.blog-post-content pre {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.blog-post-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: #a29bfe;
}

.blog-post-content pre code {
    color: #cdd6f4;
    background: none;
    padding: 0;
}

.blog-post-content :not(pre) > code {
    background: rgba(108, 92, 231, 0.15);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.875em;
}

.blog-post-content hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.blog-post-content th,
.blog-post-content td {
    border: 1px solid #333;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.blog-post-content th {
    background: #1e1e2e;
    color: #e0e0e0;
    font-weight: 600;
}

.blog-post-content td { color: #ccc; }

.blog-post-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
}

/* ─── Blog Detail: Share ─── */
.blog-share {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 24px;
}

.blog-share__label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 12px;
}

.blog-share__btn {
    border-radius: 20px;
    padding: 6px 16px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-share__btn:hover {
    opacity: 0.85;
    color: #fff;
}

.blog-share__btn--twitter  { background: #1da1f2; }
.blog-share__btn--linkedin { background: #0077b5; }
.blog-share__btn--facebook { background: #1877f2; }
.blog-share__btn--copy     { background: #555; border: none; cursor: pointer; }

/* ─── Blog Detail: Back Link ─── */
.blog-back-link {
    color: #6c5ce7;
    font-size: 0.9rem;
    text-decoration: none;
}

.blog-back-link:hover { color: #a29bfe; }

/* ─── Blog Detail: Related Posts ─── */
.blog-related {
    margin-top: 60px;
}

.blog-related__heading {
    margin-bottom: 30px;
}

.blog-related__heading h3 {
    font-size: 1.5rem;
    font-weight: 600;
}
