/*
 * Blog Page Layouts
 * Single-post-specific layout: breadcrumbs, title/featured-image header,
 * article typography, translation CTA block, related-articles section,
 * and the author bio box. Responsive/mobile overrides for ALL blog
 * stylesheets are appended at the end of this file (they must stay last
 * in load order to correctly override the desktop rules above).
 * Depends on: blog-foundations.css, blog-components.css
 */

/* 
 * Combined Single Post + CTA Styles
 * Optimized with CSS variables and efficient structure
 */

/* ===== CSS VARIABLES ===== */

/* ===== BREADCRUMBS ===== */
.pts-breadcrumbs {
    padding: 10px 0 20px;
    color: var(--light-gray);
    font-size: var(--font-size-md);
    width: 100%;
    float: left;
    font-family: var(--font-family);
}

.pts-breadcrumbs a {
    color: #000000; /* Changed from blue to black */
    text-decoration: none;
}

.pts-breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--secondary-blue); /* Blue on hover for better UX */
}

/* ===== TITLE AND IMAGE WRAPPER ===== */
.pts-title-image-wrapper {
    width: 100%;
    float: left;
    margin-bottom: 20px;
    display: table;
    font-family: var(--font-family);
}

.pts-single-title {
    font-size: var(--font-size-5xl);
    color: var(--primary-blue);
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    float: left;
    font-family: var(--font-family);
}

/* ===== FEATURED IMAGE STYLES ===== */
.pts-featured-image {
    width: 450px;
    height: 300px;
    min-height: 300px;
    aspect-ratio: 3 / 2;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-medium);
    background: var(--white);
    flex-shrink: 0;
}

.pts-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== POST META INFORMATION ===== */
.pts-post-meta {
    width: 100%;
    float: left;
    margin-top: 15px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--light-gray);
    font-size: var(--font-size-md);
    font-family: var(--font-family);
}

.pts-post-meta-border {
    width: 100%;
    float: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.pts-post-meta span {
    display: inline-block;
    margin-right: 15px;
}

.pts-post-meta span:not(:last-child):after {
    content: "•";
    margin-left: 15px;
}

.pts-post-meta .pts-category {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--secondary-blue);
    border-radius: 20px;
    background: var(--white);
    transition: background var(--transition), color var(--transition);
    pointer-events: none;
    font-family: var(--font-family);
}

.pts-post-meta .pts-category a {
    color: #000000;
    text-decoration: none;
}

/* ===== CONTENT WRAPPER ===== */
.pts-content-wrapper {
    width: 100%;
    clear: both;
    display: block;
    font-family: var(--font-family);
}

.pts-main-content {
    width: 100%;
    float: left;
    font-family: var(--font-family);
}

.pts-content-inner {
    line-height: 1.8;
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    width: 100%;
    float: left;
    font-family: var(--font-family);
}

.pts-content-inner h2 {
    font-size: var(--font-size-4xl);
    color: var(--primary-blue);
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f9;
    font-family: var(--font-family);
}

.pts-content-inner h3 {
    font-size: var(--font-size-3xl);
    color: var(--primary-blue);
    margin: 40px 0 20px;
    font-family: var(--font-family);
}

.pts-content-inner p {
    margin-bottom: 25px;
    font-family: var(--font-family);
}


.pts-content-inner p {
    margin-bottom: 25px;
    font-family: var(--font-family);
}

/* ===== LINK STYLES FOR BLOG CONTENT ===== */
.pts-content-inner a {
    
    text-decoration: underline;
    transition: color 0.3s ease;
}

.pts-content-inner a:hover {
    
    text-decoration: underline;
}

/* ===== TL;DR BOX ===== */
/* Usage in post content: <div class="pts-tldr"><p><strong>Quick answer:</strong> Summary text.</p></div> */
.pts-tldr {
    border: 3px dashed var(--secondary-blue);
    border-radius: var(--border-radius);
    background: var(--white);
    padding: 20px 25px;
    margin: 30px 0 40px;
    font-family: var(--font-family);
}

.pts-tldr p {
    margin: 0;
    color: var(--text-dark);
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.pts-tldr p strong {
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .pts-tldr {
        padding: 15px 18px;
        margin: 20px 0 30px;
    }

    .pts-tldr p {
        font-size: var(--font-size-base);
    }
}

/* ===== BACK TO BLOG ===== */


/* ===== BACK TO BLOG ===== */
.pts-back-to-blog {
    width: 100%;
    float: left;
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-gray);
    font-family: var(--font-family);
}

.pts-back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #000000;
    text-decoration: none;
    border: 1px solid var(--secondary-blue);
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-family);
}

.pts-back-btn:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== TITLE AND IMAGE LAYOUT ===== */
.pts-title-image-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 40px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.title-section {
    flex: 3;
    min-width: 0;
}

/* ===== INLINE BLOG IMAGES ===== */
.pts-blog-image {
    width: 100%;
    height: var(--image-height, 300px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-medium);
    background: var(--white);
    margin-top: 30px;
    margin-bottom: 40px; /* Increased bottom margin for better spacing */
    text-align: left;
}

.pts-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Clear float after inline images */
.pts-content-inner:after {
    content: "";
    display: table;
    clear: both;
}

/* ===== TRANSLATION CTA STYLES ===== */
.translation-cta {
    background: var(--white);
    border: 2px solid var(--secondary-blue);
    border-radius: var(--border-radius);
    padding: 20px;
    max-width: var(--content-max-width);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin: 40px auto;
    font-family: var(--font-family);
}

/* Background Icons */
.bg-icon {
    position: absolute;
    opacity: 0.4;
    font-size: 28px;
    z-index: 0;
}

.bg-icon-1 { top: 25px; left: 35px; color: var(--secondary-blue); }
.bg-icon-2 { top: 25px; right: 35px; color: var(--primary-blue); }
.bg-icon-3 { bottom: 25px; left: 35px; color: var(--secondary-blue); }
.bg-icon-4 { bottom: 25px; right: 35px; color: var(--primary-blue); }

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-heading {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    border-bottom: none !important; /* Force remove any border line */
    padding-bottom: 0 !important; /* Force remove any padding that might create space for border */
}

.cta-subheading {
    color: #000000;
    font-size: var(--font-size-lg); /* Increased from base to lg (14px → 18px) */
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none !important; /* Force remove any border line */
    padding-bottom: 0 !important; /* Force remove any padding that might create space for border */
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 8px; /* Reduced gap to fit all 5 boxes in one line */
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px; /* Reduced left-right padding from 10px to 6px */
    background: var(--white);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--secondary-blue);
    min-width: 120px; /* Reduced from 130px to fit all 5 boxes */
    transition: var(--transition);
    box-sizing: border-box;
}

.feature-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.feature-icon {
    width: 16px;
    height: 16px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 10px;
}

.feature-text {
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-align: center;
    line-height: 1.3;
    padding: 0 2px; /* Reduced left-right padding for text content */
    box-sizing: border-box;
}

.cta-button-container {
    display: flex;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--primary-blue);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px var(--shadow-dark);
}

.cta-button:hover,
.cta-button:focus {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(110, 193, 228, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Ensure breadcrumbs are black on mobile */
    .pts-breadcrumbs a {
        color: #000000 !important;
    }
    
    .pts-breadcrumbs a:hover {
        color: var(--secondary-blue) !important;
    }
    
    .translation-cta {
        padding: 8px 12px 15px; /* Drastically reduced top padding from 15px to 8px */
        margin: 15px auto; /* Reduced margin from 25px */
    }
    
    .bg-icon {
        display: none;
    }
    
    .cta-heading {
        font-size: var(--font-size-lg);
        border-bottom: none !important;
        margin-top: 0; /* Ensure no extra margin on top */
        margin-bottom: 2px; /* Reduced space below heading */
    }
    
    .cta-subheading {
        font-size: var(--font-size-base);
        color: #000000;
        border-bottom: none !important;
        margin-bottom: 15px; /* Reduced space below subheading */
    }
    
    .features-container {
        gap: 6px; /* Reduced gap between boxes */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        margin-bottom: 20px; /* Reduced space before button */
    }
    
    /* Make the last feature item centered when odd number (5 items) */
    .features-container .feature-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 130px;
    }
    
    .feature-item {
        width: 100%;
        max-width: 130px; /* Slightly reduced max-width */
        flex-direction: row;
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        gap: 6px; /* Reduced gap between icon and text */
        padding: 6px 4px; /* Minimal padding */
        min-width: auto;
    }
    
    .feature-text {
        padding: 0; /* Remove all padding */
        margin: 0; /* Remove all margins */
        font-size: 11px;
        text-align: center; /* Ensure text is centered */
        flex: 1; /* Allow text to take available space */
    }
    
    .feature-icon {
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    /* Mobile styles for inline blog images */
    .pts-blog-image {
        width: 100%;
        max-width: 100%;
        height: 250px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .translation-cta {
        padding: 5px 10px 12px; /* Further reduced top padding */
        margin: 10px auto; /* Further reduced margin */
    }

    .cta-heading {
        font-size: var(--font-size-md);
        margin-bottom: 1px; /* Minimal space below heading */
    }
    
    .cta-subheading {
        font-size: var(--font-size-sm);
        margin-bottom: 12px; /* Reduced space below subheading */
    }
    
    .features-container {
        gap: 4px; /* Minimal gap */
    }
    
    .feature-item {
        max-width: 120px; /* Slightly smaller boxes */
        padding: 4px 2px; /* Minimal padding */
        gap: 4px; /* Minimal gap between icon and text */
    }
    
    .feature-text {
        font-size: 10px;
    }
    
    .cta-button {
        padding: 8px 20px; /* Slightly smaller button for mobile */
        font-size: 14px;
    }
}

/* Additional fix for very small screens */
@media (max-width: 360px) {
    .feature-text {
        font-size: 9px; /* Even smaller text for very small screens */
    }
    
    .feature-item {
        max-width: 110px;
        padding: 3px 1px;
    }
}


/* ===== RELATED ARTICLES SECTION - MATCHING BLOG CARDS ===== */
.pts-related-articles {
    width: 100%;
    clear: both;
    margin-top: 60px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-gray);
}

.pts-related-title {
    font-size: var(--font-size-4xl);
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
    font-family: var(--font-family);
}

.pts-related-articles .post-grid.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: 0;
}

/* Match EXACT card styling from blog-archive.css */
.pts-related-articles .post-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--font-family);
    padding: 0 !important;
    margin: 0 !important;
    min-height: var(--card-min-height);
}

.pts-related-articles .post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pts-related-articles .post-thumbnail-wrapper {
    flex: 0 0 var(--thumbnail-height);
    overflow: hidden;
    position: relative;
    width: 100%;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    margin: 0;
    padding: 0;
}

.pts-related-articles .post-thumbnail {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
}

.pts-related-articles .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.pts-related-articles .post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.pts-related-articles .post-card-content {
    padding: var(--spacing-md) 0 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    width: 100%;
    box-sizing: border-box;
    min-height: var(--content-min-height);
    background: var(--background-off-white);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.pts-related-articles .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: var(--spacing-xs) 0;
    align-items: center;
    font-family: var(--font-family);
    width: 100%;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

.pts-related-articles .post-category {
    display: inline-block;
    padding: 4px var(--spacing-xs);
    border: 1px solid var(--secondary-blue);
    border-radius: var(--radius-sm);
    color: var(--black);
    font-size: var(--font-size-xs);
    background: var(--white);
    font-family: var(--font-family);
}

.pts-related-articles .post-category a {
    color: #000000;
    text-decoration: none;
    pointer-events: none;
}

.pts-related-articles .post-title {
    font-size: var(--font-size-3xl);
    margin: 0;
    line-height: 1.4;
    padding: 0 var(--spacing-sm);
    font-family: var(--font-family);
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.pts-related-articles .post-title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--font-family);
    display: block;
    width: 100%;
}

.pts-related-articles .post-title a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .pts-related-articles .post-grid.related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pts-related-articles .post-thumbnail-wrapper {
        flex: 0 0 160px;
    }
    
    .pts-related-articles .post-card-content {
        padding: 12px 15px 15px;
    }
    
    .pts-related-articles .post-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .pts-related-articles .post-grid.related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pts-related-articles .post-title {
        font-size: 16px;
    }
    
    .pts-related-articles .post-thumbnail-wrapper {
        flex: 0 0 140px;
    }
}

/* Add bottom margin to related articles cards */
.pts-related-articles {
    margin-bottom: 100px; /* This adds 100px margin at the bottom of the entire section */
}




/* Author Bio Box */
.pts-author-bio {
    display: flex;
    gap: 30px;
    padding: 30px;
    margin: 50px 0 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--secondary-blue);
}

.author-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 0 0 5px 0;
    font-weight: 700;
}

.author-name a {
    color: var(--primary-blue);
    text-decoration: none;
}

.author-name a:hover {
    color: var(--secondary-blue);
}

.author-title {
    font-size: 14px;        /* ← Smaller font size */
    color: #000000;
    font-weight: 500;
    font-style: italic;      /* ← Add italics */
}

.author-bio-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 20px;
}

.author-social a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.author-social a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.pts-reviewer-credit {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    margin: 0 0 30px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--secondary-blue);
}

.reviewer-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.reviewer-credit-text {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
}

.reviewer-credit-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.reviewer-credit-text a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.reviewer-title {
    font-style: italic;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .pts-author-bio {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }

    .pts-reviewer-credit {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ============================================================
   RESPONSIVE / MOBILE OVERRIDES
   Applies to rules in blog-foundations.css, blog-components.css,
   and the layout rules above. Must stay last in the load order.
   ============================================================ */

/* 
 * Responsive Design Styles
 * All media queries for different screen sizes
 */

/* Desktop styles */
@media (min-width: 1025px) {
    .pts-title-image-wrapper {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start; /* ← CHANGED */
        gap: 30px; /* ← ADDED */
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .title-section {
        flex: 5 1 0%; /* ← ADDED */
        min-width: 0; /* ← ADDED */
    }
    
    .pts-single-title {
        width: 100%; /* ← CHANGED from 65% */
        margin: 0 0 30px 0;
        padding-right: 40px;
        font-size: 46px;
    }
    
    .pts-featured-image {
        flex: 0 0 auto; /* ← ADDED */
        width: 406px; /* ← CHANGED from 35% */
        margin: 0;
    }
    
    .pts-mobile-toc {
        display: none;
    }
    
    .pts-content-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 40px; /* ADD THIS FOR CONSISTENT GAP */
        max-width: 1300px;
        margin: 0 auto;
        position: relative;
        align-items: flex-start;
        min-height: 100vh; /* ENSURES STICKY CAN WORK */
    }
    
    .pts-main-content {
        width: 65%;
        flex-shrink: 0; /* PREVENT WIDTH COLLAPSE */
    }
    
    .pts-desktop-toc {
        display: block;
        width: 28%;
        position: sticky;
        top: 100px; /* INCREASED FOR BETTER POSITIONING */
        align-self: flex-start;
        height: auto;
        flex-shrink: 0; /* PREVENT WIDTH COLLAPSE */
    }
    
            .pts-toc-container {
        position: relative;
        padding: 0;
        max-height: 300px; /* Reduced to 300px */
        overflow-y: auto;
        transition: opacity 0.3s ease;
        z-index: 100;
        background: transparent;
    }

/* Optional: Better scrollbar for TOC */
.pts-toc-container {
    scrollbar-width: thin;
    scrollbar-color: #6EC1E4 transparent;
}

.pts-toc-container::-webkit-scrollbar {
    width: 4px;
}

.pts-toc-container::-webkit-scrollbar-thumb {
    background: #6EC1E4;
    border-radius: 2px;
}



    .pts-desktop-toc .pts-toc-nav {
        display: none;
        margin-top: 15px;
    }

    .pts-desktop-toc .pts-toc-nav.active {
        display: block;
    }

    .pts-breadcrumbs {
        padding: 20px 0 20px;
    }

    .pts-toc-nav ul ul {
        padding-left: 25px;
        margin-top: 12px;
    }
    
    .pts-toc-nav li {
        margin-bottom: 18px;
        padding-left: 25px;
    }
    
    .pts-toc-nav a {
        color: #4a5568;
        text-decoration: none;
        font-size: 18px;
        transition: color 0.3s;
        display: block;
    }
    
    .pts-blog .blog-hero {
        max-width: 1200px;
        margin: 20px auto 60px;
        height: auto;
        min-height: auto;
    }
    
    .pts-blog .post-grid {
        grid-template-columns: repeat(3, 1fr); /* Changed from 4 to 3 */
        max-width: 1200px;
        margin: 0 auto 50px;
    }

    .pts-blog .post-card-content {
        padding: 15px 0px 18px; /* Reduced for desktop */
    }
    
    .pts-blog .post-title {
        font-size: 20px; /* Slightly smaller for desktop */
    }
    
    .pts-blog .post-thumbnail-wrapper {
        flex: 0 0 180px; /* Slightly smaller image height on desktop */
    }
}

/* Large desktop screens */
@media (min-width: 1440px) {
    .pts-blog .post-grid {
        grid-template-columns: repeat(3, 1fr); /* Changed from 4 to 3 */
        gap: 40px;
    }
    
    .pts-content-inner {
        font-size: 20px;
    }
}

/* Mobile styles */
@media (max-width: 1024px) {
    .ast-container, 
    .site-content .ast-container, 
    .ast-plain-container.ast-no-sidebar .entry-content {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .pts-single-title {
        font-size: 32px;
    }
    
    .pts-post-meta {
        font-size: 14px;
    }
    
    .pts-content-inner {
        font-size: 16px;
    }
    
    .pts-content-inner h2 {
        font-size: 26px;
    }
    
    .pts-content-inner h3 {
        font-size: 22px;
    }

    .pts-single-post-container {
        padding: 0;
    }

    .pts-breadcrumbs {
        padding: 10px 0 20px;
    }

    .pts-blog .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pts-blog .blog-hero {
        height: auto;
        padding: 20px 15px;
        flex-direction: column;
    }

    .pts-blog .hero-content h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .pts-blog .hero-content p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .pts-blog .post-title {
        font-size: 16px;
    }

    .pts-blog .blog-category-select {
        display: none;
    }
    
    .pts-blog, 
    .pts-single-post-container {
        padding: 0;
    }
    
    /* Ensure search bar has proper white background on mobile */
    .pts-blog .blog-search {
        position: relative;
        z-index: 2;
    }
    
    .pts-blog .blog-search form {
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    .pts-blog .blog-search input[type="search"] {
        border-radius: 50px;
        outline: none;
    }
    
    .pts-blog .blog-search input[type="search"]:focus {
        box-shadow: 0 0 0 2px rgba(110, 193, 228, 0.3);
    }
    
    /* Featured image mobile adjustments */
    .pts-title-image-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .pts-featured-image {
        width: 100%;
        max-width: 450px;
        height: 300px;
        margin: 0 auto;
    }
    
    /* Grey border line mobile adjustments */
    .pts-post-meta-border {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .pts-blog .post-thumbnail-wrapper {
        flex: 0 0 160px; /* Smaller image height on tablet */
    }
    
    .pts-blog .post-card-content {
        padding: 12px 15px 15px; /* Reduced for tablet */
    }
    
    /* Mobile styles for inline blog images */
@media (max-width: 768px) {
    .pts-blog-image {
        width: 100%;
        max-width: 100%;
        height: 250px;
        margin: 20px auto;
    }
}
}

@media (max-width: 768px) {
    .ast-container, 
    .site-content .ast-container, 
    .ast-plain-container.ast-no-sidebar .entry-content {
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .pts-single-post-container {
        padding: 0;
    }
    
    .pts-single-title {
        font-size: 28px;
    }
    
    .pts-post-meta span {
        display: block;
        margin-bottom: 5px;
    }
    
    .pts-post-meta span:not(:last-child):after {
        display: none;
    }

    .pts-blog .post-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pts-blog, 
    .pts-single-post-container {
        padding: 0;
    }
    
    .pts-blog .blog-hero {
        padding: 15px;
    }
    
    .pts-blog .post-card-content {
        padding: 12px 12px 12px; /* Consistent padding for mobile */
        min-height: auto;
    }
    
    .pts-blog .post-title {
        font-size: 24px;
    }
    
    /* Hide FAQ section on mobile */
    .pts-faq-section {
        display: none !important;
    }
    
    /* Ensure search bar has proper white background on mobile */
    .pts-blog .blog-search {
        position: relative;
        z-index: 2;
    }
    
    .pts-blog .blog-search form {
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    .pts-blog .blog-search input[type="search"] {
        border-radius: 50px;
        outline: none;
    }
    
    .pts-blog .blog-search input[type="search"]:focus {
        box-shadow: 0 0 0 2px rgba(110, 193, 228, 0.3);
    }
    
    .pts-blog .post-thumbnail-wrapper {
        flex: 0 0 140px; /* Even smaller on mobile */
    }
}

/* Mobile padding override for blog pages */
@media (max-width: 768px) {
    /* Target blog pages specifically */
    .pts-blog-container,
    .pts-single-post-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* But don't double-pad inner elements */
    .pts-blog-container .pts-content-inner,
    .pts-single-post-container .pts-content-inner,
    .pts-single-post-container .pts-single-title,
    .pts-mobile-toc .pts-toc-container,
    .pts-back-to-blog {
        padding-left: 0;
        padding-right: 0;
    }
}