/* Single Post Layout */
.single-post-layout {
    /* Layout handled by Bootstrap Grid */
    padding-top: 15px !important;
    margin-top: 10px !important;
}

.site-main {
    padding-top: 40px !important;
    margin-top: 0 !important;
}

/* Floating Share */
.post-share-floating {
    position: absolute;
    left: -60px;
    top: 0;
    height: 100%;
    z-index: 10;
}

.share-bar.-vertical {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-bar .network {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--color-text, #444);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-bar .network:hover {
    background: var(--color-primary, #0c437a);
    color: #fff;
    transform: translateY(-3px);
}

.single-post-layout .content-area {
    width: 100%;
}

.posttitleh1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-heading, #111);
}

.post-meta-holder {
    display: flex;
    gap: 20px;
    color: var(--color-text-secondary, #666);
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-meta-estimate {
    position: relative;
    padding-left: 20px;
}

.post-meta-estimate::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.5;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Post PDF Download Button */
.post-pdf-download {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent, #4583B4);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(69, 131, 180, 0.3);
}

.btn-pdf-download:hover {
    background-color: var(--color-accent-hover, #3a7199);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69, 131, 180, 0.4);
    color: #fff;
}

.post-content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text, #444);
}

.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--color-heading, #111);
    font-weight: 700;
}

.post-content-wrapper p {
    margin-bottom: 1.5em;
}

.page-sidebar {
    width: 100%;
}

.widget {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-heading, #111);
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary, #0c437a);
}

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

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--color-text, #444);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

.widget ul li a:hover {
    color: var(--color-primary, #0c437a);
}

.related-posts {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eee;
    width: 100%;
}

.related-posts .heading-md {
    margin-bottom: 30px;
}

.related-posts .blog-item.card.-layout1 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-posts .blog-item.card.-layout1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-posts .blog-item .image-holder {
    height: 200px;
    margin: 0;
    overflow: hidden;
}

.related-posts .blog-item .image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-posts .blog-item:hover .image-holder img {
    transform: scale(1.05);
}

.related-posts .card-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-posts .card-details .headline-meta {
    margin-bottom: 0.8rem;
}

.related-posts .heading.title {
    margin-bottom: auto;
}

.related-posts .heading.title h4.title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.related-posts .card-details p {
    margin: 0;
    font-size: 0.95rem;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress__bar {
    height: 100%;
    background: var(--color-secondary, #ffb600);
    width: 0%;
}

/* Responsiveness */
@media (max-width: 991px) {
    .post-share-floating {
        display: none !important;
    }
}

/* Sidebar Search Widget styling */
.widget_search {
    margin-bottom: 30px;
}
.widget_search .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-heading, #111);
    position: relative;
    padding-bottom: 10px;
}
.widget_search .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary, #0c437a);
    border-radius: 2px;
}
.widget_search .search-form {
    display: flex;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.widget_search .search-form label {
    margin: 0;
    width: 100%;
}
.widget_search .search-form .search-field {
    width: 100%;
    padding: 12px 60px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fdfdfd;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s ease;
    line-height: normal;
}
.widget_search .search-form .search-field:focus {
    border-color: var(--color-primary, #0c437a);
    background: #fff;
}
.widget_search .search-form .search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 18px;
    background: var(--color-primary, #0c437a);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}
.widget_search .search-form .search-submit:hover {
    background: var(--color-secondary, #082d54);
}

/* Sidebar Recent Posts styling */
.widget_recent_entries {
    margin-bottom: 30px;
}
.widget_recent_entries .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-heading, #111);
    position: relative;
    padding-bottom: 10px;
}
.widget_recent_entries .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary, #0c437a);
    border-radius: 2px;
}
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget_recent_entries li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.widget_recent_entries li:last-child {
    border-bottom: none;
}
.widget_recent_entries li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}
.widget_recent_entries li a:hover {
    color: var(--color-primary, #0c437a);
}