/* ========================================
   BLOG POST TEMPLATE
   Correct layout: Author + Key Takeaways on LEFT
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.post-hero-section {
    background-color: #fff;
    padding-top: 150px; /* Fixed header clearance */
    padding-bottom: 2rem;
}

.post-hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Date */
.post-hero-date {
    font-family: 'Karla', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e1e23;
    margin-bottom: 1.25rem;
}

/* Title */
.post-hero-title {
    font-family: 'Karla', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e1e23;
    line-height: 1.196;
    margin: 0;
    max-width: 900px;
}

/* ========================================
   FEATURED IMAGE
   ======================================== */

.post-featured-image-section {
    background-color: #fff;
    padding: 2rem 0 3rem;
}

.post-featured-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-featured-image-container {
    border-radius: 10px;
    overflow: hidden;
    max-height: 600px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */

.single-post-wrapper {
    background-color: #fff;
    padding: 3rem 0;
}

.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    position: relative;
}
.post_content--pullout_copy {
    width: 100% !important;
}
.post_content--copy {
    width: 100% !important;
}

/* ========================================
   LEFT SIDEBAR (Author + Key Takeaways)
   ======================================== */

.post-sidebar {
    position: relative;
}

.post-sidebar-sticky {
    position: sticky;
    top: 120px;
}

/* Author Section (Top of Sidebar) */
.post-sidebar-author {
    padding-bottom: 2rem;
    border-bottom: 1px solid #B4B4B4;
    margin-bottom: 2rem;
}

.post-sidebar-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.post-sidebar-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-sidebar-author-name {
    font-family: 'Karla', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e1e23;
    margin-bottom: 0.25rem;
}

.post-sidebar-author-title {
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #1e1e23;
}

/* Key Takeaways Section (Bottom of Sidebar) */
.post-sidebar-takeaways {
    /* No extra styling needed - items will be added here */
}

.post-sidebar-takeaways h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e1e23;
    margin: 0 0 1rem 0;
}

.post-sidebar-takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-sidebar-takeaways-item {
    margin-bottom: 1.25rem;
}

.post-sidebar-takeaways-link {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1e1e23;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
}

.post-sidebar-takeaways-link:hover,
.post-sidebar-takeaways-link.active {
    color: #01e55f;
    border-bottom-color: #01e55f;
	width: fit-content;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.post-content-main {
    max-width: 100%;
    width: 100%;
}

.post-content-body {
    font-family: 'Karla', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #1e1e23;
    width: 100%;
}

/* Typography */
.post-content-body h2 {
    font-family: 'Karla', sans-serif;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e1e23;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
}

.post-content-body h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e1e23;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.3;
}

.post-content-body h4 {
    font-family: 'Karla', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e1e23;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.post-content-body p {
    margin: 0 0 1.5rem 0;
}

.post-content-body a {
    color: #1e1e23;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content-body a:hover {
    color: #01e55f;
}

/* Lists */
.post-content-body ul,
.post-content-body ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.post-content-body li {
    margin-bottom: 0.75rem;
}

/* Bold text */
.post-content-body strong {
    font-weight: 600;
}

/* Images */
.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Blockquotes */
.post-content-body blockquote {
    border-left: 4px solid #01e55f;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4e4e4e;
}

/* ========================================
   KEY TAKEAWAYS / HIGHLIGHT BOXES
   ======================================== */

.post-content-body .key-takeaways,
.post-content-body .highlight-box {
    background-color: #FAFAFA;
    border-radius: 10px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.post-content-body .key-takeaways h3,
.post-content-body .highlight-box h3 {
    margin-top: 0;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 40px;
    left: calc(50% - 600px + 20px); /* Aligned with left sidebar */
    width: 110px;
    height: 110px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Circle stroke - #A5A5A5, hover to black */
.back-to-top circle {
    stroke: #A5A5A5;
    transition: stroke 0.3s ease;
}

.back-to-top:hover circle {
    stroke: #000000;
}

/* Arrow fill - #B4B4B4, hover to black */
.back-to-top path {
    fill: #B4B4B4;
    transition: fill 0.3s ease;
}

.back-to-top:hover path {
    fill: #000000;
}

/* ========================================
   RELATED ARTICLES SECTION
   ======================================== */

.post-related-section {
    background-color: #fff;
    padding: 4rem 0;
}

.post-related-divider {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.post-related-divider-line {
    width: 100%;
    height: 1px;
    background-color: #B4B4B4;
}

.post-related-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-related-heading {
    font-family: 'Karla', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e1e23;
    margin: 0 0 2.5rem 0;
}

.post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-related-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.post-related-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 78%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.post-related-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay - STRONGER */
.post-related-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.post-related-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem; /* EQUAL PADDING ALL SIDES */
    font-family: 'Karla', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    z-index: 2;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1200px) {
    .single-post-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        display: none; /* Hide sidebar on tablet/mobile */
    }
    
    .back-to-top {
        left: 20px; /* Fixed position on smaller screens */
    }
    
    .post-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .post-hero-section {
        padding-top: 120px; /* Adjusted for mobile header */
    }
    
    .post-hero-title {
        font-size: 2rem;
    }
    
    .post-content-body {
        font-size: 1rem;
    }
    
    .post-content-body h2 {
        font-size: 1.5rem;
    }
    
    .post-content-body h3 {
        font-size: 1.25rem;
    }
    
    .post-related-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .post-hero-title {
        font-size: 1.75rem;
    }
    
    .post-related-title {
        font-size: 1.125rem;
        padding: 1.25rem;
    }
}