
/**
 * 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 */
.single .entry-content img {
    width: 100%;
    height: auto;
    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%;
}

.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;
}

@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-meta p {
    margin: 0;
    font-weight: 500;
}

.single-post-container {
	width:1100px;
	margin:auto;
}
.single-post-container h1, h2, h3{
	margin:30px 0 20px 0;
}
/* Responsive Adjustments */
@media screen and (max-width: 992px) {
    .single-post-container {
        width:95vw;
        margin:auto;
    }

    .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;
    }
}
