/**
 * Single Article Styles
 * 
 * This file contains styles for individual blog posts.
 * It controls typography, featured images, and content formatting.
 *  
 * Edit with caution
 *
 * Author: Clienti pe Viata
 * Author URL: https://clientipeviata.ro
 */


/* Featured (main) image styling */
.single-post .wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Style all images within the article content */
/* Style all images within the article content */
.single .entry-content img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Optional: prevent stretching of smaller images */
.single .entry-content figure img {
    display: block;
    max-width: 100%;
}

/* Three-column layout */
.single-post-container.with-sidebars {
    display: grid;
    grid-template-columns: 280px 1fr 250px;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;

    overflow-y: visible;
}

.single-post-main-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Table of Contents Styles */
.toc-widget {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.toc-widget h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    font-size: 18px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin: 8px 0;
    padding-left: 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.toc-list li:hover {
    border-left-color: #0073aa;
}

.toc-list a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
}

.toc-list a:hover {
    color: #0073aa;
}

/* Level indentation with clear visual hierarchy */
.toc-level-1 {
    padding-left: 15px;
    border-left: 3px solid #0073aa;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.toc-level-2 {
    padding-left: 0!important;
    border-left: 2px solid #66a3c2;
    margin: 8px 0 6px 0;
    font-weight: 500!important;
}


.toc-level-3 {
    padding-left: 15px!important;
    border-left: 2px solid #99c2d6;
    margin: 6px 0 4px 0;
    font-size: 13px!important;
}
.toc-level-3 a{
	 font-size: 13px!important;
}

.toc-level-4 {
    padding-left: 60px;
    border-left: 1px solid #cce0eb;
    margin: 4px 0;
    font-size: 12px;
    color: #666;
}

/* Optional: Add different colors for each level */
.toc-level-1 a { color: #2c3e50; }
.toc-level-2 a { color: #34495e;font-weight:600;font-size:15px;}
.toc-level-3 a { color: #5d6d7e;font-size:13px;font-weight:500; }
.toc-level-4 a { color: #7f8c8d; }

.toc-level-1 a:hover { color: #0073aa; }
.toc-level-2 a:hover { color: #2980b9; }
.toc-level-3 a:hover { color: #3498db; }
.toc-level-4 a:hover { color: #5dade2; }

/* Add some spacing between major sections */
.toc-level-1 + .toc-level-2,
.toc-level-1 + .toc-level-3,
.toc-level-1 + .toc-level-4 {
    margin-top: 4px;
}

.toc-level-2 + .toc-level-1,
.toc-level-3 + .toc-level-1,
.toc-level-4 + .toc-level-1 {
    margin-top: 16px;
}

/* Categories Styles */
.categories-widget {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories-widget h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    font-size: 18px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.categories-list a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.categories-list a:hover {
    color: #0073aa;
}

.category-count {
    color: #888;
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
}

.cap-author-box {
    position: relative;
    margin-top: 100px;
    padding: 60px 20px 20px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    text-align: center;
}

.single .entry-content .cap-author-image-container {
    position: absolute;
    top: -80px; 
    left: 50%;
    transform: translateX(-50%);
}

.single .entry-content .cap-author-box-image {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.single .entry-content .social-icon {
    width: 30px;
    height: 30px;
    margin: 0 8px;
}
.cap-author-box-title {
    margin-top: 30px;
    font-size: 22px;
}

.cap-author-social {
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center; 
    align-items: center;     
    gap: 15px;         
    border-radius: 0;
    box-shadow: none;     
}
.single .entry-content .cap-author-social img{  
    border-radius: 0;
    box-shadow: none;    
}

.cap-author-social a {
    margin: 0 8px;
    text-decoration: none;
    color: #0073aa;
    font-weight: 600;
}

.cap-author-bio {
    margin-top: 15px;
    font-size: 16px;
    color: #555;
}

.cap-author-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: underline;
}

.table-of-contents ul, .table-of-contents li{
		list-style-type:none!important;	
	}
.table-of-contents ul{
	padding-left:10px!important;
}
@media(max-width:768px){
    .cap-author-box {
        padding-top: 80px;
    }

    .cap-author-image-container {
        top: -70px;
    }

    .cap-author-box-image {
        width: 140px;
        height: 140px;
    }
}


/**
 * Single Article Styles
 * 
 * This file contains styles for individual blog posts.
 * It controls typography, featured images, and content formatting.
 *  
 * Edit with caution
 *
 * Author: Clienti pe Viata
 * Author URL: https://clientipeviata.ro
 */

/* Single Post Header */

.container:has(> .single-post-header) {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
#wrapper:has(.single-post-header) .storefront-breadcrumb {
    display: none;
}

.single-post-header {
    position: relative;
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.single-post-header-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
}

.single-post-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

/* Post Meta (Date & Category) */
.single-post-meta {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 20px 0;
}

.single-post-container ul,  .single-post-container li {
  list-style: disc;
  padding: 0 0  0 10px;
  margin: 0 0 0 10px;
}
.single-post-meta p {
    margin: 0 0 20px 0;
    font-weight: 500;
}
.single-post-meta p
.single-post-container {
    width: 1100px;
    margin: auto;
	
}
.single-post-container p, .single-post-container span{
line-height: 30px!important;	
margin-bottom:10px!important;	
}
.single-post-container h2, h3 {
    margin: 30px 0 20px 0!important;
}
.single-post-container h3{
    font-size: 20px!important;
    font-weight: 500!important;
}
/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .single-post-container.with-sidebars {
        grid-template-columns: 250px 1fr;
        max-width: 1000px;
    }
    
    .sidebar-right {
        display: none;
    }
}

@media screen and (max-width: 992px) {
    .single-post-container.with-sidebars {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 95vw;
    }
    
    .sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .single-post-main-content {
        order: 1;
    }

    .single-post-header-overlay {
        width: 90%;
    }

    .single-post-header h1 {
        font-size: 26px;
    }
}

@media screen and (max-width: 768px) {
    .single-post-header {
        height: 200px;
    }

    .single-post-header h1 {
        font-size: 22px;
    }
    
    .toc-widget,
    .categories-widget {
        padding: 15px;
    }
	
    .toc-list a {
        font-size: 13px;
    }
    
    .single-post-main-content {
        padding: 20px;
    }
    
    /* Adjust indentation for mobile */
    .toc-level-1 {
        padding-left: 10px!important;
        margin: 10px 0 6px 0;
    }
    
    .toc-level-2 {
        padding-left: 16px!important;
        margin: 6px 0 4px 0;
    }
    
    .toc-level-3 {
        padding-left: 22px!important;
        margin: 4px 0 2px 0;
    }
    
    .toc-level-4 {
        padding-left: 28px!important;
        margin: 2px 0;
    }
}

/* Smooth scrolling for table of contents links */
html {
    scroll-behavior: smooth;
}

/* Highlight current section in table of contents */
.toc-list li.active {
    border-left-color: #0073aa;
    background: #f8f9fa;
}

.toc-list li.active a {
    color: #0073aa;
    font-weight: 600;
}