/*
 Theme Name:   Enfold Child
 Description:  Enfold Child Theme
 Author:       PDS Counsulting
 Author URI:   http://gemmapurnell.com/
 Template:     enfold
 Version:      0.2.2   
 Text Domain:  enfold-child
*/

/*@import url("../enfold/style.css");*/

.abh_box {
    display: none;
}

.single-blog_post .abh_box {
    display: block;
}
/*  File: enfold-child/style.css  */

/* -- 1. Layout wrapper ------------------------------------------------ */
body.post-type-archive-blog_post
.container.template-blog.template-archive {
    display: flex;
    flex-wrap: wrap;           /* lets it stack on small screens */
}

/* -- 2. Sidebar column (right) ---------------------------------------- */
body.post-type-archive-blog_post
.sidebar_right {
    order: 2;                  /* place right of content */
    flex: 0 0 300px;           /* fixed 300px width – adjust if you like */
    margin-left: 40px;         /* gap between grid & sidebar */
    padding-left: 20px;        /* Add internal padding */
    border-left: 1px solid #f0f0f0; /* Add a subtle border */
}

/* -- 3. Main content column (grid) ----------------------------------- */
body.post-type-archive-blog_post
.content {
    order: 1;
    flex: 1 1 0;               /* fill remaining space */
    min-width: 0;              /* prevent overflow */
    padding-right: 20px;       /* Add padding to match sidebar */
}

/* -- 4. Breadcrumbs Styling ------------------------------------------ */
.breadcrumbs-container {
    margin-bottom: 30px;
    font-size: 14px;
    color: #777;
}

.breadcrumbs-container a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-container a:hover {
    color: #ff6600;
}

.breadcrumbs-container .breadcrumb-trail .trail-before,
.breadcrumbs-container .breadcrumb-trail .trail-after {
    color: #999;
}

.breadcrumbs-container .breadcrumb-trail .sep {
    padding: 0 5px;
    color: #ccc;
}

/* -- 5. Featured Posts Section --------------------------------------- */
.featured-posts-wrapper {
    margin-bottom: 40px;
}

/* Clean 2x2 grid layout for featured posts */
.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    max-width: 100%;
}

.featured-post-square {
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.featured-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-post-square .featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-square:hover .featured-thumb img {
    transform: scale(1.05);
}

.featured-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 2;
}

.featured-title-square {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 5px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.featured-category {
    display: inline-block;
    margin-bottom: 0;
}

.featured-category span {
    background-color: #ff6600;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* -- 6. Section Heading ---------------------------------------------- */
.section-heading-container {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.section-heading:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ff6600;
    position: absolute;
    bottom: -2px;
    left: 0;
}

/* -- 7. Grid + card styling (namespaced with .tna‑) ------------------ */
body.post-type-archive-blog_post .tna-post-grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 40px; /* Add bottom margin for spacing */
}

body.post-type-archive-blog_post .tna-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    padding: 0;
}

body.post-type-archive-blog_post .tna-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

body.post-type-archive-blog_post .tna-thumb {
    display: block;
    overflow: hidden;
    height: 200px; /* Fixed height for consistent look */
}

body.post-type-archive-blog_post .tna-thumb img { 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body.post-type-archive-blog_post .tna-card:hover .tna-thumb img {
    transform: scale(1.05);
}

body.post-type-archive-blog_post .tna-category {
    margin: 20px 20px 0;
}

body.post-type-archive-blog_post .tna-category span {
    background-color: #ff6600;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.post-type-archive-blog_post .tna-title { 
    font-size: 18px; 
    margin: 15px 20px 8px; 
    line-height: 1.3; 
}

body.post-type-archive-blog_post .tna-date { 
    font-size: 13px; 
    opacity: .7; 
    margin: 0 20px 15px;
    display: block; 
}

body.post-type-archive-blog_post .tna-excerpt { 
    flex: 1 1 auto; 
    margin: 0 20px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* Approximately 3 lines of text */
}

body.post-type-archive-blog_post .tna-btn {
    margin: 0 20px 20px;
    align-self: flex-start;
    background-color: #ff6600;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: background-color 0.3s ease;
    padding: 10px 15px;
}

body.post-type-archive-blog_post .tna-btn:hover {
    background-color: #e55c00;
}

/* -- 8. Custom Pagination -------------------------------------------- */
.custom-pagination {
    text-align: center;
    margin: 40px 0 20px;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.custom-pagination .page-numbers.prev,
.custom-pagination .page-numbers.next {
    padding: 0 15px;
}

.custom-pagination .page-numbers:hover {
    background-color: #f8f8f8;
    color: #ff6600;
    border-color: #ddd;
}

.custom-pagination .page-numbers.current {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.custom-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #666;
}

.custom-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #666;
}

/* -- 9. Single Blog Post Styling ------------------------------------- */
.single-blog_post .container.template-blog.template-single-blog {
    display: flex;
    flex-wrap: wrap;
}

.single-blog_post .sidebar_left {
    order: 1;
    flex: 0 0 300px;
    margin-right: 40px;
}

.single-blog_post .content.single-blog-content {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
}

.single-blog-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.single-blog-featured-img {
    position: relative;
    margin-bottom: 30px;
}

.single-blog-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.single-blog-category {
    bottom: 20px;
    left: 20px;
    display: inline-block;
}

.single-blog-category span {
    background-color: #ff6600;
    color: #fff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.single-blog-header {
    padding: 0 0 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.single-blog-header .post-title {
    font-size: 32px;
    line-height: 1.3;
    margin: 10px 0 20px;
    color: #333;
}

.single-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.single-blog-date {
    margin-right: 20px;
}

.single-blog-date time {
    font-style: italic;
}

.single-blog-tags {
    display: flex;
    align-items: center;
}

.single-blog-tags .tag-label {
    margin-right: 5px;
    font-weight: 600;
}

.single-blog-content-area {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.single-blog-content-area p {
    margin-bottom: 20px;
}

.single-blog-content-area h2,
.single-blog-content-area h3,
.single-blog-content-area h4 {
    margin: 30px 0 15px;
}

.single-blog-content-area img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.single-blog-content-area blockquote {
    border-left: 4px solid #ff6600;
    padding: 20px;
    margin: 30px 0;
    background: #f8f8f8;
    border-radius: 4px;
    font-style: italic;
}

.single-blog-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
}

.single-blog-share {
    margin-bottom: 30px;
}

.single-blog-author-box {
    display: flex;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.single-blog-author-avatar {
    flex: 0 0 80px;
    margin-right: 20px;
}

.single-blog-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.single-blog-author-info {
    flex: 1;
}

.single-blog-author-name {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.single-blog-author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.single-blog-author-bio p:last-child {
    margin-bottom: 0;
}

/* Comments Section */
.single-blog-comments {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 30px;
    clear: both;
}

.single-blog-comments .section-heading-container {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.single-blog-comments .section-heading {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.comments-title {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

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

.comment-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author .fn {
    font-weight: 600;
    color: #333;
}

.comment-metadata {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.comment-content {
    margin-left: 60px;
    font-size: 14px;
    line-height: 1.6;
}

.comment-respond {
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: none; /* Hide the duplicate title */
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form .required {
    color: #ff6600;
}

.comment-form .form-submit input[type="submit"] {
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: #e55c00;
}

.comment-notes {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.comment-form-cookies-consent input {
    margin-top: 5px;
    margin-right: 10px;
}

.comment-form-cookies-consent label {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

/* Comment form for logged in users */
.single-blog-comments .comment-form-comment {
    margin-top: 0;
}

/* Comment form for not logged in users */
.single-blog-comments .comment-form-author,
.single-blog-comments .comment-form-email,
.single-blog-comments .comment-form-url {
    float: left;
    width: 32%;
    margin-right: 2%;
}

.single-blog-comments .comment-form-url {
    margin-right: 0;
}

/* Clear the floats */
.single-blog-comments .comment-form:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive comment form */
@media (max-width: 767px) {
    .single-blog-comments .comment-form-author,
    .single-blog-comments .comment-form-email,
    .single-blog-comments .comment-form-url {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    
    .single-blog-comments .comment-content,
    .single-blog-comments .comment-metadata,
    .single-blog-comments .reply {
        margin-left: 0;
    }
    
    .single-blog-comments .comment-author img {
        width: 40px;
        height: 40px;
    }
}

/* -- 10. Sidebar Styling ---------------------------------------------- */
#sidebar {
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.post-type-archive-blog_post #sidebar .widget.sidebar-widget.widget_block,
.single-blog_post #sidebar .widget.sidebar-widget.widget_block {
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-widget {
    margin-bottom: 25px; /* Reduced space between widgets */
}

.sidebar-widget h3.section-heading {
    font-size: 18px;
    margin-bottom: 10px; /* Reduced space below titles */
    position: relative;
    padding-bottom: 8px;
}

.sidebar-widget h3.section-heading:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #ff6600;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Other sidebar widgets */
.sidebar-widget.widget_block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-widget.widget_block ul li,
.sidebar-widget.widget_rss ul li {
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding: 8px 0; /* Reduced padding between list items */
}

.sidebar-widget.widget_block ul li:first-child,
.sidebar-widget.widget_rss ul li:first-child {
    padding-top: 0; /* Remove padding from first item */
}

.sidebar-widget.widget_block ul li:last-child,
.sidebar-widget.widget_rss ul li:last-child {
    border-bottom: none;
    padding-bottom: 0; /* Remove padding from last item */
}

.sidebar-widget.widget_block ul li a,
.sidebar-widget.widget_rss .wp-block-rss__item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-widget.widget_block ul li a:hover,
.sidebar-widget.widget_rss .wp-block-rss__item-title a:hover {
    color: #ff6600;
}

/* -- 11. Responsive fallback ------------------------------------------ */
@media (max-width: 991px) {
    body.post-type-archive-blog_post
    .container.template-blog.template-archive,
    .single-blog_post .container.template-blog.template-single-blog {
        flex-direction: column;  /* sidebar stacks below */
    }
    
    body.post-type-archive-blog_post
    .sidebar_right,
    body.post-type-archive-blog_post
    .content,
    .single-blog_post .sidebar_left,
    .single-blog_post .content.single-blog-content {
        order: 0;
        flex: 1 1 100%;
        margin: 0;         /* no horizontal gap needed */
        width: 100%;
    }
    
    body.post-type-archive-blog_post .sidebar_right,
    .single-blog_post .sidebar_left {
        margin-top: 40px;
    }
    
    .featured-posts-grid {
        grid-gap: 15px;
    }
    
    body.post-type-archive-blog_post .tna-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-blog-header .post-title {
        font-size: 28px;
    }
    
    .single-blog-header,
    .single-blog-content-area,
    .single-blog-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
body.post-type-archive-blog_post .tna-post-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .featured-post-square {
        padding-bottom: 60%; /* Slightly taller aspect ratio on mobile */
    }
    
    .featured-title-square {
        font-size: 16px;
    }
    
    .custom-pagination {
        gap: 3px;
    }
    
    .custom-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .custom-pagination .page-numbers.prev,
    .custom-pagination .page-numbers.next {
        font-size: 13px;
    }
    
    body.post-type-archive-blog_post .tna-title {
        font-size: 16px;
    }
    
    body.post-type-archive-blog_post .tna-excerpt {
        -webkit-line-clamp: 2;
        max-height: 3.2em;
    }
    
    .single-blog-header .post-title {
        font-size: 24px;
    }
    
    .single-blog-author-box {
        flex-direction: column;
    }
    
    .single-blog-author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .single-blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .single-blog-date {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/*  ========  end – affects only the CPT archive page  ================ */

/* Post Navigation - Previous/Next */
.single-blog-navigation {
    margin: 40px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.single-blog-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.single-blog-navigation .nav-previous,
.single-blog-navigation .nav-next {
    flex: 0 0 48%;
    max-width: 48%;
}

.single-blog-navigation .nav-previous a,
.single-blog-navigation .nav-next a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.single-blog-navigation .nav-previous a:hover,
.single-blog-navigation .nav-next a:hover {
    background-color: #f8f8f8;
}

.single-blog-navigation .nav-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.single-blog-navigation .nav-next .nav-thumbnail {
    margin-right: 0;
    margin-left: 15px;
}

.single-blog-navigation .nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-blog-navigation .nav-content {
    display: flex;
    flex-direction: column;
}

.single-blog-navigation .nav-label {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.single-blog-navigation .nav-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-blog-navigation a:hover .nav-title {
    color: #ff6600;
}

.single-blog-navigation .nav-previous {
    text-align: left;
}

.single-blog-navigation .nav-next {
    text-align: right;
}

.single-blog-navigation .nav-next a {
    flex-direction: row-reverse;
}

.single-blog-navigation .nav-next .nav-content {
    align-items: flex-end;
}

/* Related Articles */
.single-blog-related {
    margin: 40px 0;
    padding-top: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.related-thumb {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-thumb img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 5px;
}

.related-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: #ff6600;
}

.related-date {
    font-size: 12px;
    color: #777;
    display: block;
}

/* Responsive styles */
@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .single-blog-navigation .nav-links {
        flex-direction: column;
    }
    
    .single-blog-navigation .nav-previous,
    .single-blog-navigation .nav-next {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .single-blog-navigation .nav-next {
        margin-bottom: 0;
        margin-top: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-blog-header .post-title {
        font-size: 24px;
    }
}

/* Custom Social Share Icons */
.custom-social-share {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.custom-social-share .share-label {
    font-weight: 600;
    color: #444;
    margin-right: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-social-share .share-icons {
    display: flex;
}

.custom-social-share .share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.custom-social-share .share-icons a:hover {
    opacity: 0.8;
}

.custom-social-share .share-facebook {
    background-color: #3b5998;
}

.custom-social-share .share-twitter {
    background-color: #1da1f2;
}

.custom-social-share .share-google {
    background-color: #dd4b39;
}

.custom-social-share .share-linkedin {
    background-color: #0077b5;
}

/* Fix for comment section */
#respond {
    margin-top: 20px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
}

.comment-form-cookies-consent input {
    margin-top: 5px;
    margin-right: 10px;
}

/* Fix for responsive social sharing */
@media (max-width: 767px) {
    .custom-social-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-social-share .share-label {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .custom-social-share .share-icons a {
        width: 36px;
        height: 36px;
    }
}

/* Left-aligned Single Blog Post */
.single-blog-article.left-aligned {
    text-align: left;
}

.single-blog-article.left-aligned .single-blog-header {
    text-align: left;
}

.single-blog-article.left-aligned .single-blog-header .post-title {
    text-align: left;
    max-width: fit-content !important;
    margin: 0 28px !important;
}

.single-blog-meta {
    padding-left: 28px;
}

.single-blog-article.left-aligned .single-blog-content-area {
    text-align: left;
}

.single-blog-article.left-aligned .single-blog-content-area img,
.single-blog-article.left-aligned .single-blog-content-area .wp-block-image,
.single-blog-article.left-aligned .single-blog-content-area figure {
    text-align: left;
    margin-left: 0;
    float: none;
}

.single-blog-article.left-aligned .single-blog-content-area .aligncenter {
    margin-left: 0;
    display: block;
}

.single-blog-article.left-aligned .single-blog-content-area * {
    text-align: left;
}

.single-blog-article.left-aligned .wp-block-cover,
.single-blog-article.left-aligned .wp-block-cover-image {
    margin-left: 0;
}

/* Featured Image Left Align */
.single-blog-featured-img {
    text-align: left;
}

.single-blog-featured-img img {
    margin-left: 0;
    width: 100%;
    height: auto;
}

/* Fix for center-aligned elements from the theme */
body.single-blog_post .entry-content-wrapper * {
    text-align: left;
}

/* Fix any alignment issues in content */
.entry-content-wrapper div,
.entry-content-wrapper p {
    text-align: left;
}

/* Make sure any Enfold shortcodes also align left */
.single-blog-content-area .avia-image-container,
.single-blog-content-area .avia-image-container-inner {
    text-align: left;
    float: none;
    margin-left: 0;
}

/* Additional left-alignment rules for container elements */
.left-aligned-container,
.left-aligned-content {
    text-align: left !important;
}

.left-aligned-container *,
.left-aligned-content * {
    text-align: left !important;
}

.left-aligned {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
}

.left-aligned img,
.left-aligned figure,
.left-aligned div {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
}

/* Make sure Avia Builder elements respect left alignment */
.left-aligned-container .avia_textblock,
.left-aligned-content .avia_textblock,
.left-aligned .avia_textblock {
    text-align: left !important;
}

/* Force alignment on potentially problematic elements */
.left-aligned-container .aligncenter,
.left-aligned-content .aligncenter,
.left-aligned .aligncenter {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

/* Ensure Enfold-specific elements align properly */
.left-aligned-container .avia-button-center,
.left-aligned-content .avia-button-center,
.left-aligned .avia-button-center {
    text-align: left !important;
}

span.required {
    display: inline-block !important;
}

.single-blog_post #commentform label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    position: relative;
    left: 0;
}

/* Media query for small mobile devices */
@media (max-width: 599px) {
    /* Mobile-specific styles will go here */
    .single-blog_post .single-blog-meta{
        padding-left: 0;
    }    
    
    .single-blog_post .post-title{
        margin: 0 !important;
    }

    .single-blog_post .single-blog-navigation .nav-previous .nav-thumbnail {
        margin-right: 15px !important;
    }

    .single-blog_post .single-blog-navigation .nav-next .nav-thumbnail {
        margin-right: 15px !important;
    }

    .single-blog-navigation .nav-next .nav-content {
        align-items: flex-start;
    }
}

