/* Single Post Template Styles */

body.single,
body.single-post,
body.single-format-standard {
    background-color: #E5E7EB;
}

#single-content {
    margin-top: 112px;
    max-width: 848px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

#single-content  .et_pb_row{
    width: 100%;
}

.single .post {
    padding-bottom: 0;
}

.et_pb_section {
    padding-bottom: 0;
}

.single-post-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Hero Section */
.single-post-hero {
    position: relative;
    width: 100%;
    min-height: 384px;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.single-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.single-post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 32px 32px;
    color: #ffffff;
}

h1.single-post-title{
    padding: 0;
    color: #FFF;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 45px; /* 125% */
    margin: 0 0 22px 0;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

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

.author-avatar {
    flex-shrink: 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.single-post-date,
.single-post-reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.single-post-date svg,
.single-post-reading-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Content Section */
.single-post-content-card {
    max-width: 848px;
    margin: 0 auto 112px auto;
    padding: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.single-post-content-card .entry-content {
    padding: 0 48px 10px;
}
@media screen and (max-width: 768px) {
    .single-post-content-card {
        max-width: 90%;
    }
    .single-post-content-card .entry-content {
        padding: 0 15px 10px;
    }
}

.single-post-article {
    margin-bottom: 0;
    padding-top: 0;
}

.single-post-article .entry-content {
    color: #374151;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* 162.5% */
}

.single-post-article .entry-content h1, h2, h3, h4, h5, h6 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E3A8A;
    font-style: normal;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding: 16px 0 0;
}

/* H1 — Page Title */
.single-post-article .entry-content h1 {
    font-size: 36px;
    line-height: 44px; /* 122% */

}

/* H2 — Section Title */
.single-post-article .entry-content h2 {
    font-size: 30px;
    line-height: 38px; /* 126% */

}

/* H3 — Standard Subheading */
.single-post-article .entry-content  h3 {
    font-size: 24px;
    line-height: 32px; /* 133% */

}

/* H4 — Small Subheading */
.single-post-article .entry-content h4 {
    font-size: 20px;
    line-height: 28px; /* 140% */

}

/* H5 — Minor Heading */
.single-post-article .entry-content h5 {
    font-size: 18px;
    line-height: 24px; /* 133% */

}

/* H6 — Label / Category */
.single-post-article .entry-content h6 {
    font-size: 16px;
    line-height: 22px; /* 137% */

    font-weight: 600; 
}

.single-post-article .entry-content p {
    color: #374151;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* 162.5% */
    margin-bottom: 32px;
    padding: 0;
}

.single-post-article .entry-content .et_pb_image {
    margin: 24px 0;
}
.single-post-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0;
}

.single-post-article .entry-content ul,
.single-post-article .entry-content ol {
    margin: 20px 0;
    padding-left: 0;
}

.single-post-article .entry-content li {
    margin-bottom: 12px;
}

.single-post-article .entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #dc3545;
    background-color: #f5f5f5;
    font-style: italic;
    border-radius: 4px;
}

.single-post-article .entry-content blockquote p {
    margin: 0;
    color: #555;
}

/* Author Bio Section */
.single-post-author-card {
    max-width: 848px;
    margin: 0 auto 112px auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 768px) {
    .single-post-author-card {
        max-width: 90%
    }
}

.single-post-author-bio {
    display: flex;
    gap: 16px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    margin-top: 0;
}

.author-bio-avatar {
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 18px;
    line-height: 1.556;
    font-weight: 600;
    color: #1E3A8A;
    margin: 0;
    padding: 0;
}

.author-bio-title {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: 400;
}

.author-bio-description {
    font-size: 14px;
    line-height: 1.64;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single-post-hero {
        /*min-height: 400px;*/
        border-radius: 12px 12px 0 0;
    }

    .single-post-hero-content {
        padding: 40px 20px 30px;
    }

    .single-post-content-card .entry-content {
        padding: 0 20px 40px;
    }

    .single-post-title {
        font-size: 28px;
        line-height: 35px; /* 125% */
        margin-bottom: 22px;
    }

    .single-post-meta {
        gap: 20px;
        flex-direction: column;
        align-items: flex-start;
    }


    .single-post-author-card {
        padding: 30px 20px;
    }

    .single-post-article .entry-content {
        font-size: 16px;
        line-height: 26px; /* 162.5% */
    }

    .single-post-article .entry-content p {
        font-size: 16px;
        line-height: 26px; /* 162.5% */
    }

    .single-post-article .entry-content h2 {
        font-size: 28px;
    }

    .single-post-article .entry-content h3 {
        font-size: 22px;
    }

    .single-post-author-bio {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .author-bio-avatar {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .single-post-title {
        font-size: 24px;
        line-height: 30px; /* 125% */
    }

    /*.single-post-hero {*/
    /*    min-height: 384px;*/
    /*}*/

    .single-post-hero-content {
        padding: 40px 15px 24px;
    }

    .single-post-content-card {
        margin-top: 112px;
        margin-bottom: 32px;
    }

    .single-post-content-card .entry-content {
        padding: 0 15px 30px;
    }

    .single-post-article .entry-content {
        font-size: 16px;
        line-height: 26px; /* 162.5% */
    }

    .single-post-article .entry-content p {
        font-size: 16px;
        line-height: 26px; /* 162.5% */
    }

    .single-post-author-card {
        margin-bottom: 112px;
        padding: 24px 15px;
    }
}

body .et_pb_section {
    padding-bottom: 0;
}

@media (min-width: 981px) {
    body .et_pb_section {
        padding: 21px 0 0;
    }
}
