/*
Theme Name: BTVISA Theme
Theme URI: https://btvisa.net
Author: BTVISA
Author URI: https://btvisa.net
Description: Custom theme for BTVISA.net - Nền tảng giáo dục Ngữ Văn Online
Version: 1775476508
License: GNU General Public License v2 or later
Text Domain: btvisa
*/

/* Import main CSS from site assets */
@import url('../../assets/css/style.css?v=3');

/* ============================================
   BTVISA WORDPRESS THEME SPECIFIC STYLES
   ============================================ */

/* Reset WordPress defaults */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

.wp-block-paragraph, p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.4;
}

/* Hide WordPress admin bar on frontend */
.admin-bar { margin-top: 0; }

/* ============================================
   SINGLE POST STYLES - Match Homepage Design
   ============================================ */

.single-post-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

/* Single Post Header - Same style as blog cards */
.single-post-header {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.single-post-icon {
    width: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}

.single-post-icon.blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.single-post-icon.pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.single-post-icon.green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.single-post-icon.purple { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.single-post-icon.orange { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

.single-post-header-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0 14px;
    line-height: 1.4;
    color: var(--text);
}

/* Single Post Content */
.single-post-content {
    padding: 32px;
}

.single-post-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.single-post-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text);
}

.single-post-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 16px 0 16px 24px;
}

.single-post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-light);
}

.single-post-content ul li { list-style: disc; }
.single-post-content ol li { list-style: decimal; }

.single-post-content strong {
    color: var(--text);
    font-weight: 600;
}

.single-post-content em {
    color: var(--primary);
    font-style: italic;
}

/* Post Tags */
.single-post-tags {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.single-post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.78rem;
    margin: 4px;
    text-decoration: none;
}

.single-post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

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

.related-posts-grid .blog-card-new {
    margin-bottom: 0;
}

/* ============================================
   BLOG INDEX/ARCHIVE STYLES
   ============================================ */

.blog-card-new {
    display: flex;
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.blog-card-new:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.blog-card-icon {
    width: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}

.blog-card-icon.blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.blog-card-icon.pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.blog-card-icon.green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.blog-card-icon.purple { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.blog-card-icon.orange { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
}

.sidebar-widget h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item .num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 28px;
}

.sidebar-item .title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-item .title a {
    color: var(--text);
    text-decoration: none;
}

.sidebar-item .title a:hover {
    color: var(--primary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
}

.tag-cloud a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-card-new,
    .single-post-header {
        flex-direction: column;
    }
    
    .blog-card-icon,
    .single-post-icon {
        width: 100%;
        min-height: 120px;
    }
    
    .single-post-content {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================ */

/* Remove default WP block margins */
.wp-block {
    margin: 0;
}

/* Style WP gallery */
.wp-block-gallery {
    margin: 20px 0;
}

/* Style WP quote */
blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--text-light);
}

/* Style WP code */
code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}

/* Style WP tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Hide WP default elements */
.wp-block-post-title,
.wp-block-post-content,
.wp-block-post-terms,
.wp-block-post-date {
    display: none;
}

/* ============================================
   SINGLE POST STYLES - Match Homepage Design
   ============================================ */

.single-post-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.single-post-header {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.single-post-icon {
    width: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}

.single-post-icon.blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.single-post-icon.pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.single-post-icon.green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.single-post-icon.purple { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.single-post-icon.orange { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

.single-post-header-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0 14px;
    line-height: 1.4;
    color: var(--text);
}

.single-post-content {
    padding: 32px;
}

.single-post-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.single-post-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text);
}

.single-post-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 16px 0 16px 24px;
}

.single-post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-light);
}

.single-post-content ul li { list-style: disc; }
.single-post-content ol li { list-style: decimal; }

.single-post-content strong {
    color: var(--text);
    font-weight: 600;
}

.single-post-content em {
    color: var(--primary);
    font-style: italic;
}

.single-post-tags {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.single-post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.78rem;
    margin: 4px;
    text-decoration: none;
}

.single-post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

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

.related-posts-grid .blog-card-new {
    margin-bottom: 0;
}

/* WordPress block overrides */
.wp-block { margin: 0; }
.wp-block-paragraph { margin-bottom: 16px; }
blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--text-light);
}
code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}
th {
    background: var(--bg-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .single-post-header { flex-direction: column; }
    .single-post-icon { width: 100%; min-height: 120px; }
    .single-post-content { padding: 20px; }
    .related-posts-grid { grid-template-columns: 1fr; }
}

/* Force override WordPress block styles */
.wp-block { margin: 0 !important; padding: 0 !important; }
.wp-block-paragraph { margin-bottom: 16px !important; }
body { font-family: 'Inter', sans-serif !important; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif !important; }
p { font-size: 1rem !important; line-height: 1.8 !important; color: var(--text-light) !important; }

/* Force override WordPress block styles */
.wp-block { margin: 0 !important; padding: 0 !important; }
.wp-block-paragraph { margin-bottom: 16px !important; }
body { font-family: 'Inter', sans-serif !important; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif !important; }
p { font-size: 1rem !important; line-height: 1.8 !important; color: var(--text-light) !important; }

/* Force override WordPress block styles */
.wp-block { margin: 0 !important; padding: 0 !important; }
.wp-block-paragraph { margin-bottom: 16px !important; }
body { font-family: 'Inter', sans-serif !important; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif !important; }
p { font-size: 1rem !important; line-height: 1.8 !important; color: var(--text-light) !important; }

/* Control image sizes in single post content */
.single-post-content img,
.single-post-card img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* Make sure images don't overflow */
.single-post-content {
    overflow: hidden;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* Featured image in single post */
.single-post-featured-image {
    max-width: 100%;
    max-height: 350px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 350px;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Balance layout
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    margin: 24px auto !important;
    display: block !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Make sure images don't overflow */
.single-post-content {
    overflow: hidden;
}

/* Related posts - smaller card icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* Featured image wrapper */
.single-post-featured {
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
}

.single-post-featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* Make images responsive */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Center images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

/* Limit figure/image container size */
.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts cards - smaller */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    margin: 24px auto !important;
    display: block !important;
    border-radius: 12px !important;
}

/* Center images and figures */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 400px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Make images responsive */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* Center images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Make images responsive */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit all images in post content */
.single-post-content img,
.single-post-card img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
}

/* Center figures/images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts - smaller card icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* Featured image in single post header */
.single-post-featured {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.single-post-featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Balance with content
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Center images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

/* Limit figure image size */
.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Center images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit all images in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images - specific targeting */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
}

/* Center images and figures */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts - smaller card icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* Featured image in single post header */
.single-post-featured {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.single-post-featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Center images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit image sizes in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* Center images */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts cards - smaller icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* ============================================
   SINGLE POST IMAGE SIZES - Fix oversized images
   ============================================ */

/* Limit all images in post content */
.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* WordPress block images - specific targeting */
.single-post-content .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
}

/* Center images and figures */
.single-post-content figure {
    text-align: center;
    margin: 24px 0;
}

.single-post-content figure img {
    max-height: 350px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Related posts - smaller card icons */
.related-posts-grid .blog-card-icon {
    width: 80px !important;
    min-height: 80px !important;
    font-size: 2rem !important;
}

/* Featured image in single post header */
.single-post-featured {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.single-post-featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}
