/* Hero with featured image background */
.post-hero {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    color: #fff;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.6);
    z-index: 0;
}
.post-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}
.post-hero .post-categories {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.post-hero .post-categories a {
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.post-hero .post-date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.post-hero .post-title {
    font-size: 48px;
    font-family: 'Arimo';
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

/* Breadcrumbs */
.post-breadcrumbs {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
    color: #6b7280;
}
.breadcrumb-item{
    padding: 0 !important;
}
.breadcrumb-item + .breadcrumb-item::before{
    padding-right: 5px;
}
.breadcrumb-item a {
    color: #d7d7d7ff;
    text-decoration: none;
}
.breadcrumb-item a:hover{
    color: #fff;
}
.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

/* Post content */
.post-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 60px;
    padding: 0 15px;
}
.post-content a{
    color: #9c33a7;
}
.post-content h2,
.post-content h3 {
    scroll-margin-top: 80px; /* Smooth scroll offset */
}
.post-content h2 {
    font-size: 28px;
    margin: 32px 0 16px;
    color: #111827;
}
.post-content h3 {
    font-size: 22px;
    margin: 28px 0 14px;
}
.post-content p{
    font-size: 14px;
    margin-bottom: 18px;
    color: #374151;
}
.post-content table *{
    border-width: 1px;
    padding: 8px;
}
.post-content p,
.post-content li,
.post-content span,
.post-content strong,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content a{
    word-break: break-word;
}

/* Table of contents */
.post-toc {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 4px solid #9c33a7;
}
.post-toc h3 {
    margin-top: 0;
    font-size: 18px;
    color: #111827;
}
.post-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-toc li {
    margin-bottom: 8px;
}
.post-toc a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
}
.post-toc a:hover {
    text-decoration: underline;
}

/* Post navigation */
.post-navigation {
    display: flex;
    gap: 24px;
    margin: 60px 0;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}
.post-nav-prev,
.post-nav-next {
    flex: 1;
}
.post-nav-prev {
    text-align: left;
}
.post-nav-next {
    text-align: right;
}
.post-nav-link {
    display: block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.post-nav-title {
    font-size: 18px;
    margin-bottom: 4px;
}
.post-content-wrapper {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.sidebar{
    position: sticky;
    top: 140px;
    width: 220px;
    margin: 40px 15px 0;
    flex-shrink: 0;
    height: fit-content;
}
.post-cta-sticky {
    background: linear-gradient(90deg, #a135ad 5%, #2044ee);
    border-radius: 8px;
    padding: 10px;
}
.post-cta-sticky p{
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    text-align: center;
}
.post-share-icons {
    margin-top: 24px;
    padding: 10px;
    border-radius: 8px;
    background: #a135ad;
}
.share-label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
}
.share-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}
.share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Social colors */
.share-btn.facebook { background: linear-gradient(135deg, #1877f2, #0e5a8a); }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.share-btn.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;    
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(156,51,167,0.4);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-weight: 600;
    font-size: 14px;
}
.cta-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(156,51,167,0.6);
    color: #000;
}
.cta-button span {
    font-size: 18px;
    line-height: 1.2;
}
.cta-button small {
    font-size: 13px;
    opacity: 0.9;
}
.related-posts {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
}
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.related-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}
.related-see-all {
    font-size: 14px;
    font-weight: 500;
    color: #9c33a7;
    text-decoration: none;
}
.related-see-all:hover {
    text-decoration: underline;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.related-item {
    background: #f9fafb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15,23,42,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}
.related-thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-thumb-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.related-meta {
    padding: 16px 18px 18px;
}
.related-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    margin-bottom: 6px;
}
.related-title:hover {
    color: #9c33a7;
}
.related-date {
    font-size: 13px;
    color: #6b7280;
}
.related-cat {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9c33a7;
    text-decoration: none;
}
.related-cat:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-content-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    .sidebar {
        position: static;
        width: calc( 100% - 30px );
        order: -1;
    }
    .cta-button {
        padding: 20px 16px;
    }
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 80px 15px 40px;
    }
    .post-hero .post-title {
        font-size: 36px;
    }
    .post-navigation {
        flex-direction: column;
        gap: 16px;
    }
    .post-breadcrumbs{
        margin: 0 auto 20px;
    }
    .breadcrumb-item a,
    .breadcrumb-item.active{
        font-size: 12px;
    }
    .post-content h3{
        font-size: 20px;
    }
    .post-content h2{
        font-size: 24px;
    }
    .wp-block-table td, .wp-block-table th{
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .cta-button span {
        font-size: 16px;
    }
    .post-hero .post-title {
        font-size: 26px;
    }
}
