/* ColorTriox Blog and Single Post Stylesheet */

/* Grid and Layout Structure */
.blog-split-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 48px;
    width: 100%;
}

.blog-posts-grid-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Hero Header Section */
.blog-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 32px;
}

.blog-hero-left {
    flex: 1.2;
    min-width: 300px;
}

.blog-hero-badge {
    background: #7C3BED;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.blog-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 28px 0;
}

.blog-hero-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-metric-card {
    background: #FFFFFF;
    border: 1px solid #ECEAFB;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    min-width: 160px;
}

.blog-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(124, 59, 237, 0.08);
    color: #7C3BED;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-metric-text h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.blog-metric-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.blog-hero-right {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.blog-hero-illustration {
    max-width: 100%;
    height: auto;
}

/* Filters and Search Bar */
.blog-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid #ECEAFB;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    flex-wrap: wrap;
}

.blog-search-wrapper {
    display: flex;
    flex: 1;
    min-width: 260px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    transition: border-color 0.2s;
}

.blog-search-wrapper:focus-within {
    border-color: #7C3BED;
}

.blog-search-icon {
    display: flex;
    align-items: center;
    padding-left: 14px;
    color: var(--text-muted);
}

.blog-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
}

.blog-search-btn {
    background: #7C3BED;
    border: none;
    color: #FFFFFF;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-search-btn:hover {
    background: #5B4DFF;
}

.blog-sort-select-wrapper {
    position: relative;
}

.blog-sort-select {
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    padding: 10px 36px 10px 16px;
    font-size: 13.5px;
    color: var(--text-main);
    background: #FFFFFF;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s;
    min-width: 140px;
}

.blog-sort-select:hover {
    border-color: #A78BFA;
}

.blog-sort-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Post Cards Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-post-card {
    background: #FFFFFF;
    border: 1px solid #ECEAFB;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(124, 59, 237, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(124, 59, 237, 0.08);
    border-color: rgba(124, 59, 237, 0.2);
}

.blog-post-thumb-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #F8FAFF;
}

.blog-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-post-card:hover .blog-post-thumb {
    transform: scale(1.05);
}

.blog-post-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #7C3BED;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.blog-post-meta {
    font-size: 11.5px;
    color: var(--text-muted);
}

.blog-post-card h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0;
}

.blog-post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-post-card h3 a:hover {
    color: #7C3BED;
}

.blog-post-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ECEAFB;
    padding-top: 16px;
    margin-top: auto;
}

.blog-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E0E7FF;
    color: #4F46E5;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-author-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.blog-read-more-arrow {
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
    display: flex;
}

.blog-post-card:hover .blog-read-more-arrow {
    color: #7C3BED;
    transform: translateX(4px);
}

/* Sidebar Widgets */
.blog-sidebar-widget {
    background: #FFFFFF;
    border: 1px solid #ECEAFB;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(124, 59, 237, 0.03);
}

.blog-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 18px 0;
}

.blog-sidebar-newsletter p {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 18px 0;
}

.blog-sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-sidebar-newsletter-form input {
    height: 42px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.blog-sidebar-newsletter-form input:focus {
    border-color: #7C3BED;
}

.blog-sidebar-newsletter-form button {
    height: 42px;
    background: #7C3BED;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-sidebar-newsletter-form button:hover {
    background: #5B4DFF;
}

/* Popular Posts list */
.blog-popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-popular-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #F8FAFF;
    flex-shrink: 0;
}

.blog-popular-text h4 {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.blog-popular-text h4 a {
    color: inherit;
    text-decoration: none;
}

.blog-popular-text h4 a:hover {
    color: #7C3BED;
}

.blog-popular-text span {
    font-size: 10px;
    color: var(--text-muted);
}

/* Follow Us widget */
.blog-widget-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-widget-socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ECEAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.blog-widget-socials a:hover {
    border-color: #7C3BED;
    color: #7C3BED;
    background: #F3EEFF;
}

/* Need Help button */
.blog-widget-contact-btn {
    display: block;
    border: 1.5px solid #7C3BED;
    background: transparent;
    color: #7C3BED;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-widget-contact-btn:hover {
    background: #F3EEFF;
    border-color: #5B4DFF;
    color: #5B4DFF;
}

/* Single Blog Page styling */
.single-blog-hero {
    padding: 40px 0 24px 0;
    border-bottom: 1px solid #ECEAFB;
    margin-bottom: 32px;
}

.single-blog-category {
    background: #F3EEFF;
    color: #7C3BED;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.single-blog-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.single-blog-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 16px;
}

.single-blog-content-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 32px;
    margin-bottom: 48px;
}

.single-blog-main-content-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.single-featured-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #ECEAFB;
}

.single-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table of Contents card */
.toc-sidebar-widget {
    background: #F8FAFF;
    border: 1.5px dashed rgba(124, 59, 237, 0.15);
    border-radius: 16px;
    padding: 20px;
}

.toc-widget-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item {
    font-size: 12.5px;
    line-height: 1.4;
}

.toc-item.depth-h3 {
    padding-left: 14px;
    font-size: 11.5px;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.toc-link:hover {
    color: #7C3BED;
    text-decoration: underline;
}

/* Entry content text rendering rules */
.entry-content {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-main);
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 32px 0 16px 0;
}

.entry-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 24px 0 12px 0;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Related Posts block */
.related-posts-section {
    border-top: 1px solid #ECEAFB;
    padding-top: 32px;
    margin-top: 24px;
}

.related-posts-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 20px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: #FFFFFF;
    border: 1px solid #ECEAFB;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-post-thumb {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.related-post-card h4 {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0;
}

.related-post-card h4 a {
    color: inherit;
    text-decoration: none;
}

.related-post-card h4 a:hover {
    color: #7C3BED;
}

/* Prev/Next post navigation row */
.post-navigation-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ECEAFB;
    border-bottom: 1px solid #ECEAFB;
    padding: 24px 0;
    margin: 24px 0;
    gap: 16px;
}

.nav-link-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.nav-link-wrapper.prev {
    align-items: flex-start;
}

.nav-link-wrapper.next {
    align-items: flex-end;
    text-align: right;
}

.nav-link-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nav-link-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
}

.nav-link-wrapper:hover .nav-link-title {
    color: #7C3BED;
}

/* Post Share bar */
.post-share-card {
    background: #FFFFFF;
    border: 1px solid #ECEAFB;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.post-share-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.post-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-share-btn {
    border: 1px solid #ECEAFB;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.post-share-btn:hover {
    border-color: #7C3BED;
    color: #7C3BED;
    background: #F3EEFF;
}

/* Highlight Features banner bottom page */
.blog-highlights-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #F8FAFF;
    border: 1.5px solid #ECEAFB;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 48px;
    margin-top: 32px;
}

.highlight-banner-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(124, 59, 237, 0.08);
    color: #7C3BED;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.highlight-banner-card h3 {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.highlight-banner-card p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog-split-grid {
        grid-template-columns: 1fr;
    }
    .single-blog-content-layout {
        grid-template-columns: 1fr;
    }
    .blog-highlights-banner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-hero-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .blog-highlights-banner {
        grid-template-columns: 1fr;
    }
}
