/**
 * Single Post template styles.
 * Design inspired by the imported Finor / business consultant template.
 *
 * @package hello-elementor-child
 */

body.single-post .hec-main {
    padding-top: 0;
}

body.single-post .site-main,
body.single-post .hec-main {
    max-width: none;
    width: 100%;
}

.hec-single-post {
    background: var(--color-bg-light, #F7F4EF);
    color: var(--color-title-card-doctor, #1f2f27);
}

.hec-single-post-hero {
    padding: 0 var(--container-padding, 24px);
    background: var(--color-bg-light, #F7F4EF);
}

.hec-single-post-hero__inner {
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 10px 64px 86px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(100deg, #4E5B31 0%, #12302D 100%);
    color: #ffffff;
}

.hec-single-post-hero__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-primary, inherit);
    font-size: 15px;
    line-height: 1.5;
    padding-top: 30px ;
}

.hec-single-post-hero__breadcrumbs a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hec-single-post-hero__title {
    max-width: 850px;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-heading, inherit);
    font-size: 2.5em!important;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hec-single-post-hero__excerpt {
    max-width: 720px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary, inherit);
    font-size: 1.1em;
    line-height: 1.55;
}

.hec-single-post-body {
    padding: 32px var(--container-padding, 24px) 76px;
}

.hec-single-post-body__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
}

.hec-single-post-body__main {
    min-width: 0;
}

.hec-single-post__featured-image {
    margin: 0 0 28px;
    border-radius: 18px;
    overflow: hidden;
    background: #EDE8DA;
}

.hec-single-post__featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 660px;
    object-fit: cover;
}

.hec-single-post__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    color: #1f3b37;
    font-family: var(--font-primary, inherit);
    font-size: 14px;
    line-height: 1.4;
}

.hec-single-post__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hec-single-post__meta-date::before,
.hec-single-post__meta-read::before,
.hec-single-post__meta-cat::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    opacity: 0.8;
}

.hec-single-post__meta-read::before {
    border-radius: 50%;
}

.hec-single-post__meta-cat::before {
    border-radius: 50%;
    background: currentColor;
}

.hec-single-post__meta a {
    color: var(--color-primary, #505E2C);
    text-decoration: none;
}

.hec-single-post__meta a:hover {
    text-decoration: underline;
}

.hec-single-post__content {
    max-width: 860px;
    color: var(--color-text, #38443C);
    font-family: var(--font-primary, inherit);
    font-size: 18px;
    line-height: 1.75;
}

.hec-single-post__content > *:first-child {
    margin-top: 0;
}

.hec-single-post__content h2,
.hec-single-post__content h3,
.hec-single-post__content h4 {
    margin: 1.55em 0 0.55em;
    color: var(--color-title-card-doctor, #183A36);
    font-family: var(--font-heading, inherit);
    line-height: 1.2;
}

.hec-single-post__content h2 {
    font-size: clamp(30px, 3.2vw, 44px);
}

.hec-single-post__content h3 {
    font-size: clamp(24px, 2.5vw, 32px);
}

.hec-single-post__content p,
.hec-single-post__content ul,
.hec-single-post__content ol {
    margin: 0 0 1.2em;
}

.hec-single-post__content a {
    color: var(--color-primary, #505E2C);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hec-single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.hec-single-post__content blockquote {
    margin: 34px 0;
    padding: 28px 32px;
    border-left: 4px solid var(--color-accent-light, #D5F166);
    border-radius: 0 14px 14px 0;
    background: #ffffff;
    color: var(--color-title-card-doctor, #183A36);
    font-size: 22px;
    line-height: 1.5;
}

.hec-single-post__page-links {
    margin-top: 32px;
}

.hec-single-post-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 860px;
    margin-top: 42px;
    padding: 28px 0;
    border-top: 1px solid rgba(31, 59, 55, 0.35);
    border-bottom: 1px solid rgba(31, 59, 55, 0.35);
    color: #183A36;
    font-size: 18px;
}

.hec-single-post-share__links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hec-single-post-share__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--color-accent-light, #D5F166);
    color: #183A36;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.hec-single-post-share__links a:hover {
    background: #183A36;
    color: #ffffff;
}

.hec-single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hec-blog-widget {
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(31, 59, 55, 0.35);
    border-radius: 16px;
    background: #ffffff;
    color: #183A36;
    font-family: var(--font-primary, inherit);
}

.hec-blog-widget:first-child,
.hec-blog-widget--author {
    border: 0;
    background: linear-gradient(135deg, #4E5B31 0%, #12302D 100%);
    color: #ffffff;
}

.hec-blog-widget__title,
.hec-blog-widget .widget-title {
    margin: 0 0 18px;
    color: inherit;
    font-family: var(--font-heading, inherit);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.hec-blog-widget p {
    margin: 0 0 18px;
    color: inherit;
    opacity: 0.86;
    font-size: 16px;
    line-height: 1.5;
}

.hec-blog-widget ul,
.hec-blog-widget ol {
    margin: 0;
    padding-left: 18px;
}

.hec-blog-widget li {
    margin: 0 0 10px;
    color: #183A36;
}

.hec-blog-widget li:last-child {
    margin-bottom: 0;
}

.hec-blog-widget a {
    color: inherit;
    text-decoration: none;
}

.hec-blog-widget a:hover {
    text-decoration: underline;
}

.hec-blog-widget__button,
.hec-blog-widget .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--color-accent-light, #D5F166);
    color: #183A36 !important;
    font-weight: 500;
    text-decoration: none !important;
}

.hec-blog-widget__button:hover,
.hec-blog-widget .wp-block-button__link:hover {
    background: #183A36;
    color: #ffffff !important;
}

@media (max-width: 1024px) {
	
	.hec-single-post-hero__title {
   		font-size: 2.2em!important;
	}
    .hec-single-post-hero__inner {
        padding: 0px 36px 64px;
    }

    .hec-single-post-body__inner {
        grid-template-columns: 1fr;
    }

    .hec-single-post-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    
    .hec-single-post-hero__breadcrumbs {
        padding-top: 50px ;
    }
    
    .hec-single-post-body {
        padding: 0 var(--container-padding-mobile, 20px) 48px;
    }

    .hec-single-post-hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hec-single-post-hero__inner {
        padding: 0px 24px 44px;
        border-radius: 0 0 14px 14px;
    }

    .hec-single-post-hero__breadcrumbs {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .hec-single-post-hero__excerpt {
        margin-top: 24px;
        padding-top: 20px;
    }

    .hec-single-post-body {
        padding-top: 34px;
    }

    .hec-single-post-sidebar {
        grid-template-columns: 1fr;
    }

    .hec-blog-widget {
        padding: 24px;
    }

    .hec-single-post__content {
        font-size: 16px;
        line-height: 1.7;
    }

    .hec-single-post-share {
        align-items: flex-start;
        flex-direction: column;
    }
}
