/* ============================================
   SINGLE POST STYLES
   ============================================ */

.medivox-blog-wrapper {
    padding: 60px 0;
    font-family: 'Sora';
}

.medivox-blog-wrapper .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BLOG LAYOUT
   ============================================ */

.medivox-blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.medivox-blog-layout.medivox-sidebar-right {
    flex-direction: row;
}

.medivox-blog-layout.medivox-sidebar-left {
    flex-direction: row-reverse;
}

.medivox-blog-layout.medivox-sidebar-none {
    flex-direction: column;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.medivox-blog-content {
    flex: 2;
    min-width: 300px;
    width: 100%;
}

.medivox-blog-sidebar {
    flex: 1;
    min-width: 250px;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */

.medivox-single-article {
    background: #ffffff;
    border-radius: var(--medivox-border-radius, 16px);
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Featured Image */
.single-post-featured-image {
    margin-bottom: 30px;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--medivox-border-radius, 12px);
}

/* Title */
.medivox-single-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111827;
    line-height: 1.2;
}

/* Post Meta */
.medivox-post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.medivox-post-meta span {
    margin-right: 20px;
}

.medivox-post-meta i {
    margin-right: 5px;
}

/* Post Content */
.medivox-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.medivox-post-content p {
    margin-bottom: 1.5em;
}

.medivox-post-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #111827;
}

.medivox-post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #111827;
}

.medivox-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--medivox-primary, #0F6FFF);
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.medivox-post-content ul,
.medivox-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.medivox-post-content ul li,
.medivox-post-content ol li {
    margin-bottom: 0.5rem;
}

/* Page Links */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Post Tags */
.medivox-post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.medivox-post-tags a {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.medivox-post-tags a:hover {
    background: var(--medivox-primary, #0F6FFF);
    color: #ffffff;
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.medivox-author-box {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: var(--medivox-border-radius, 12px);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-left: 4px solid var(--medivox-primary, #0F6FFF);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 5px 0;
    color: #111827;
    font-size: 1.1rem;
}

.author-name i {
    margin-right: 8px;
}

.author-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.author-description p:last-child {
    margin-bottom: 0;
}

.author-link {
    margin-top: 10px;
}

.author-link a {
    color: var(--medivox-primary, #0F6FFF);
    text-decoration: none;
    font-size: 14px;
}

.author-link a:hover {
    text-decoration: underline;
}

/* ============================================
   RELATED POSTS
   ============================================ */

.medivox-related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-posts-title {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #111827;
}

.related-posts-title i {
    margin-right: 10px;
    color: var(--medivox-primary, #0F6FFF);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-post-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--medivox-border-radius, 12px);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    display: block;
}

.related-post-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-post-content {
    padding: 18px;
}

.related-post-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-post-title a {
    color: #111827;
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--medivox-primary, #0F6FFF);
}

.related-post-date {
    color: #999;
    font-size: 12px;
}

.related-post-date i {
    margin-right: 4px;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */

.sidebar-widget {
    background: #ffffff;
    border-radius: var(--medivox-border-radius, 16px);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget .widget-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #111827;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #111827;
    text-decoration: none;
}

.sidebar-widget ul li a:hover {
    color: var(--medivox-primary, #0F6FFF);
}

/* Search Form */
.sidebar-widget .search-form {
    display: flex;
}

.sidebar-widget .search-form .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.sidebar-widget .search-form .search-submit {
    padding: 10px 20px;
    background: var(--medivox-primary, #0F6FFF);
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-widget .search-form .search-submit:hover {
    background: #0a5cdb;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .medivox-blog-layout {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .medivox-blog-content {
        flex: 1;
        min-width: 100%;
    }
    
    .medivox-blog-sidebar {
        flex: 1;
        min-width: 100%;
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .medivox-blog-wrapper {
        padding: 40px 0;
    }
    
    .medivox-single-article {
        padding: 25px;
        border-radius: 12px;
    }
    
    .medivox-single-title {
        font-size: 1.8rem;
    }
    
    .medivox-post-meta span {
        display: inline-block;
        margin-right: 15px;
        margin-bottom: 5px;
    }
    
    .medivox-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .medivox-post-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .medivox-single-article {
        padding: 18px;
    }
    
    .medivox-single-title {
        font-size: 1.5rem;
    }
    
    .medivox-post-meta span {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .sidebar-widget {
        padding: 18px;
    }
    .medivox-post-meta {
    margin-bottom: 0px;
}
}