/*
Theme Name: Theme 12 - Modern Editorial
Author: Pau Inocencio
Description: A modern, mobile-first editorial theme for content-focused WordPress sites
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
Domain Path: /languages
Text Domain: tripeak-main-twelve
Network: true
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure Poppins font is loaded */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

/* Force Poppins on all elements */
* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-display: swap;
    font-weight: 400;
}

/* Typography - Wordcraft Style Guide Implementation */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Heading Hierarchy - Wordcraft Style Guide */
h1 {
    font-size: 72px;
    line-height: 1.2;
}

h2 {
    font-size: 60px;
    line-height: 1.2;
}

h3 {
    font-size: 48px;
    line-height: 1.2;
}

h4 {
    font-size: 40px;
    line-height: 1.2;
}

h5 {
    font-size: 32px;
    line-height: 1.2;
}

h6 {
    font-size: 24px;
    line-height: 1.2;
}

/* Body Text */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Font Weight Classes */
.font-weight-bold {
    font-weight: 700;
}

.font-weight-light {
    font-weight: 300;
}

.font-weight-normal {
    font-weight: 400;
}

/* Rich Text Elements - Wordcraft Style Guide */
blockquote {
    border-left: 4px solid var(--primary-color, #000);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

ol, ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

ol li, ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Text Formatting */
strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

sup {
    font-size: 0.75em;
    vertical-align: super;
}

sub {
    font-size: 0.75em;
    vertical-align: sub;
}

/* Links */
a {
    color: var(--primary-color, #000);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}


p {
    margin-bottom: 1rem;
}

a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #333;
}

/* Container - Consistent 1200px width for all sections */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Content Alignment - Align all content with site title */
.content-aligned {
    margin-left: 0;
    padding-left: 0;
}

/* Header alignment fix */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 60px;
}

.site-branding {
    margin: 0;
    padding: 0;
}

.site-title {
    margin: 0;
    padding: 0;
}

/* Header Styles */
.site-header {
    background: #fff;
    position: static;
    padding: 2rem 0;
    margin-bottom: 0;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 15px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-logo .custom-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.site-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--primary-color, #000);
}

.site-description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-button {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.contact-button svg {
    stroke: #fff;
}

.contact-button:hover svg {
    stroke: #fff;
}

.mobile-menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    background: #fff;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #333;
}

.hero-text p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.featured-post-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.featured-post-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}

.featured-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000, #333);
}

.featured-post-card h3 a {
    color: #000;
    text-decoration: none;
}

.featured-post-card h3 a:hover {
    color: #333;
    text-decoration: none;
}

.category-tag {
    background: #000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.post-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.read-more-btn {
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #005a87;
}

/* Recent Blogs Section */
.recent-blogs {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.blogs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Post Thumbnail Images - 4:3 Aspect Ratio */
.post-thumbnail img,
.blog-card img,
.featured-image-single,
.featured-image-page,
.wp-post-image,
.attachment-post-thumbnail,
img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}

/* Override for blog post card images to be full width */
.blog-post-card .wp-post-image,
.blog-post-card .attachment-post-thumbnail,
.blog-post-card img {
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-embed {
    max-width: 500px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 2rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0;
}

.about-images {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    width: 100%;
    aspect-ratio: 4/3;
    margin-left: 0;
    margin-right: 0;
}

.blog-post-card .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-post-card .post-content {
    padding: 1.5rem;
}

.blog-post-card .post-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-card .post-title a {
    color: #333;
    text-decoration: underline;
}

.blog-post-card .post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
    align-items: center;
}

.blog-post-card .post-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.blog-post-card .post-date,
.blog-post-card .read-time {
    display: flex;
    align-items: center;
}

.blog-post-card .read-more-button {
    display: inline-block;
    background: #fff;
    color: #333;
    border: 2px solid #333;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.blog-post-card .read-more-button:hover {
    background: #333;
    color: #fff;
}

/* Homepage Blog Cards - Use same styling as blog page */
.recent-blogs .blog-post-card,
.popular-blogs .blog-post-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
}

.recent-blogs .blog-post-card .post-thumbnail,
.popular-blogs .blog-post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.recent-blogs .blog-post-card .post-thumbnail img,
.popular-blogs .blog-post-card .post-thumbnail img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.recent-blogs .blog-post-card .post-content,
.popular-blogs .blog-post-card .post-content {
    padding: 0;
}

.recent-blogs .blog-post-card .post-title,
.popular-blogs .blog-post-card .post-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.recent-blogs .blog-post-card .post-title a,
.popular-blogs .blog-post-card .post-title a {
    color: #333;
    text-decoration: underline;
}

.recent-blogs .blog-post-card .post-meta,
.popular-blogs .blog-post-card .post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
    align-items: center;
}

.recent-blogs .blog-post-card .post-meta svg,
.popular-blogs .blog-post-card .post-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.recent-blogs .blog-post-card .post-date,
.recent-blogs .blog-post-card .read-time,
.popular-blogs .blog-post-card .post-date,
.popular-blogs .blog-post-card .read-time {
    display: flex;
    align-items: center;
}

.recent-blogs .blog-post-card .read-more-button,
.popular-blogs .blog-post-card .read-more-button {
    display: inline-block;
    background: #fff;
    color: #333;
    border: 2px solid #333;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.recent-blogs .blog-post-card .read-more-button:hover,
.popular-blogs .blog-post-card .read-more-button:hover {
    background: #333;
    color: #fff;
}

/* Homepage Content Section */
.homepage-content {
    padding: 2rem 0;
}

.homepage-content-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 0;
}

/* Individual Post and Page Content */
.single-post-content,
.page-content,
.entry-content {
    padding: 0 0 2rem 0;
}

.single-post-content .container,
.page-content .container,
.entry-content .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0 1rem;
    box-sizing: border-box;
}

.homepage-content-wrapper h1,
.homepage-content-wrapper h2,
.homepage-content-wrapper h3,
.homepage-content-wrapper h4,
.homepage-content-wrapper h5,
.homepage-content-wrapper h6 {
    margin-bottom: 1.5rem;
}

.homepage-content-wrapper p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.homepage-content-wrapper a {
    color: var(--primary-color, #000);
    text-decoration: underline;
}

.homepage-content-wrapper a:hover {
    text-decoration: underline;
}

/* About Section Content Styling */
.about-content-text {
    margin-bottom: 2rem;
}

.about-content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-content-text a {
    color: var(--primary-color, #000);
    text-decoration: underline;
}

.about-content-text a:hover {
    text-decoration: underline;
}

/* Popular Blogs Section */
.popular-blogs {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all-btn {
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
}

.popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Single Post Styles */
.single-post-header {
    padding: 2rem 0 0.5rem 0;
    text-align: left;
}

.single-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    margin-top: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.post-meta-single {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-single svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.featured-image-single {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: block;
}

.post-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: left;
}

.post-content h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
}

.post-content h4 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.post-content h5 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

.post-content h6 {
    font-size: 1.125rem;
    margin: 1.5rem 0 1rem;
}

.post-content blockquote {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: normal;
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
    font-weight: 700;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content strong,
.post-content b {
    font-weight: 700;
}

.post-content em,
.post-content i {
    font-style: italic;
}

.post-content sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

.post-content sub {
    font-size: 0.75em;
    vertical-align: sub;
    line-height: 0;
}

.post-content a,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
p a, li a, span a, div a {
    color: #007cba;
    text-decoration: underline;
}

.post-content a:hover,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
p a:hover, li a:hover, span a:hover, div a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Remove underlines from navigation and buttons */
.site-title a,
.main-navigation a,
.contact-button,
.read-more-btn,
.view-all-btn,
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    text-decoration: none !important;
}

.site-title a:hover,
.main-navigation a:hover,
.contact-button:hover,
.read-more-btn:hover,
.view-all-btn:hover,
.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover {
    text-decoration: none !important;
}

/* Inline Code Styling */
.post-content code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #e83e8c;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    white-space: nowrap;
}

/* Code Block Styling */
.post-content pre {
    background: #2d3748;
    border-radius: 8px;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 2rem 0;
    overflow-x: auto;
    padding: 1.5rem;
    white-space: pre;
}

.post-content pre code {
    background: transparent;
    border: none;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    padding: 0;
    white-space: inherit;
}

/* Syntax Highlighting Colors */
.post-content pre .keyword { color: #c792ea; }
.post-content pre .string { color: #c3e88d; }
.post-content pre .comment { color: #676e95; font-style: italic; }
.post-content pre .number { color: #f78c6c; }
.post-content pre .function { color: #82aaff; }
.post-content pre .class { color: #ffcb6b; }
.post-content pre .tag { color: #f07178; }
.post-content pre .attribute { color: #c792ea; }
.post-content pre .value { color: #c3e88d; }

/* WordPress Block Button Styling */
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    background: #000;
    border: none;
    border-radius: 8px;
    color: #fff;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.wp-block-button__link:focus,
.wp-block-button .wp-block-button__link:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-newsletter {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-newsletter h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-links ul {
    list-style: none;
    text-align: left;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    text-align: left;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 0;
}

.social-links a {
    color: #ccc;
    transition: color 0.3s ease;
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.social-links a:hover {
    color: white;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* PatronView logo styling - use actual SVG without fill */
.social-links .social-icon img[src*="pv.svg"] {
    filter: none !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    stroke-width: 1px !important;
}

.social-icon svg {
    display: block;
}

.social-icon img {
    display: block;
}

.social-text {
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

.footer-nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin: 0;
}

.footer-nav-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-menu a:hover {
    color: #fff;
}

/* Responsive Design */

/* Mobile Styles - Default (up to 767px) */
/* Responsive Typography - Mobile (25-30% scale down) */
h1 { font-size: 50px; } /* 72px * 0.7 */
h2 { font-size: 42px; } /* 60px * 0.7 */
h3 { font-size: 34px; } /* 48px * 0.7 */
h4 { font-size: 28px; } /* 40px * 0.7 */
h5 { font-size: 22px; } /* 32px * 0.7 */
h6 { font-size: 17px; } /* 24px * 0.7 */

/* Mobile Layout Optimizations */
@media (max-width: 767px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Container fixes - maintain consistent padding */
    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Header mobile optimization */
    .site-header {
        padding: 1.5rem 0;
        margin-top: 0;
        margin-bottom: 0;
        position: static;
    }
    
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .site-branding {
        gap: 12px;
        width: 100%;
        align-items: center;
    }
    
    .site-logo .custom-logo {
        width: 65px;
        height: 65px;
    }
    
    .site-title {
        font-size: 1.25rem;
        margin: 0;
        word-wrap: break-word;
    }
    
    .site-description {
        font-size: 0.85rem;
        margin-top: 0.15rem;
    }
    
    .main-navigation {
        display: block;
        width: 100%;
        flex: none;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    .main-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
        justify-content: flex-start;
        padding-left: 0;
    }
    
    .header-actions {
        display: none; /* Hide contact button on mobile */
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        display: block;
        text-align: left;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text {
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .hero-text h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-text p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    /* Featured post card mobile optimization */
    .featured-post-card {
        padding: 1.5rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .featured-post-card h3 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .featured-post-card .post-meta {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    .read-more-btn {
        display: inline-block;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
        text-decoration: none;
        white-space: nowrap;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Homepage content mobile optimization */
    .homepage-content {
        padding: 2rem 0 0 0;
    }
    
    .homepage-content-wrapper {
        padding: 0;
        text-align: left;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Individual post and page content mobile optimization */
    .single-post-content,
    .page-content,
    .entry-content {
        padding: 0 0 2rem 0;
    }
    
    .single-post-content .container,
    .page-content .container,
    .entry-content .container {
        padding: 0;
        text-align: left;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .single-post-header {
        padding: 1.5rem 0 0.25rem 0;
        text-align: left;
    }
    
    .single-post-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-top: 0.5rem;
    }
    
    .post-meta-single {
        font-size: 0.85rem;
        gap: 0.25rem;
    }
    
    .post-meta-single svg {
        width: 14px;
        height: 14px;
    }
    
    .featured-image-single {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Code Styling */
    .post-content code {
        font-size: 0.8em;
        padding: 0.15em 0.3em;
    }
    
    .post-content pre {
        font-size: 0.8rem;
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .homepage-content-wrapper h1,
    .homepage-content-wrapper h2,
    .homepage-content-wrapper h3,
    .homepage-content-wrapper h4,
    .homepage-content-wrapper h5,
    .homepage-content-wrapper h6 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .homepage-content-wrapper p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    
    /* About section mobile optimization */
    .about-section {
        padding: 2rem 0;
    }
    
    .about-content {
        display: block;
        text-align: left;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .about-text {
        margin-bottom: 2rem;
        padding: 0;
    }
    
    .about-text h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        font-weight: 700;
    }
    
    .about-content-text {
        margin-bottom: 2rem;
    }
    
    .about-content-text p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        color: #333;
    }
    
    .about-text .read-more-btn {
        display: inline-block;
        background: #333;
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.875rem;
        transition: all 0.3s ease;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .about-text .read-more-btn:hover {
        background: #555;
        color: white;
    }
    
    .about-images {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    .about-images .main-image {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .about-images .main-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
    }
    
    
    /* Blog cards mobile optimization */
    .blog-post-card {
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        transition: none;
    }
    
    .blog-post-card .post-thumbnail {
        position: relative;
        overflow: hidden;
        border-radius: 0;
        margin-bottom: 0;
        width: 100%;
        aspect-ratio: 4/3;
        margin-left: 0;
        margin-right: 0;
    }
    
    .blog-post-card .post-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        display: block;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .blog-post-card .post-content {
        padding: 0;
    }
    
    .blog-post-card .post-title {
        font-size: 1.375rem;
        font-weight: 600;
        margin-bottom: 1rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .blog-post-card .post-title a {
        color: #333;
        text-decoration: none;
    }
    
    .blog-post-card .post-meta {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        font-size: 0.875rem;
        color: #666;
        align-items: center;
        flex-direction: row;
    }
    
    .blog-post-card .post-meta svg {
        width: 16px;
        height: 16px;
        margin-right: 6px;
        vertical-align: middle;
    }
    
    .blog-post-card .post-date,
    .blog-post-card .read-time {
        display: flex;
        align-items: center;
    }
    
    .blog-post-card .read-more-button {
        display: inline-block;
        background: white;
        color: #333;
        border: 1px solid #333;
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.875rem;
        transition: all 0.3s ease;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .blog-post-card .read-more-button:hover {
        background: #333;
        color: white;
    }
    
    /* Popular blogs mobile optimization */
    .popular-blogs {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    
    /* Newsletter section mobile optimization */
    .newsletter-section {
        padding: 2rem 0;
    }
    
    .newsletter-section h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .newsletter-section p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    
    /* Footer mobile optimization */
    .site-footer {
        padding: 2rem 0;
    }
    
    .footer-links {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-links > div {
        margin-bottom: 1.5rem;
    }
    
    .footer-nav-menu {
        flex-direction: row;
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    /* Grid layouts mobile optimization */
    .blogs-grid,
    .popular-grid {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    .blog-posts-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Blog post card mobile optimization */
    .blog-post-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .blog-post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .blog-post-card .post-thumbnail {
        position: relative;
        overflow: hidden;
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .blog-post-card .post-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        display: block;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .blog-post-card .post-content {
        padding: 1.5rem;
    }
    
    .blog-post-card .post-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .blog-post-card .post-title a {
        color: #333;
        text-decoration: none;
    }
    
    .blog-post-card .post-title a:hover {
        color: #000;
    }
    
    .blog-post-card .post-meta {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.875rem;
        color: #666;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .blog-post-card .post-meta svg {
        width: 14px;
        height: 14px;
        margin-right: 4px;
        vertical-align: middle;
    }
    
    .blog-post-card .post-date,
    .blog-post-card .read-time {
        display: flex;
        align-items: center;
    }
    
    .blog-post-card .read-more-button {
        display: inline-block;
        background: #fff;
        color: #333;
        border: 2px solid #333;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.875rem;
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .blog-post-card .read-more-button:hover {
        background: #333;
        color: #fff;
    }
    
    /* Pagination mobile optimization */
    .pagination-container {
        margin: 2rem 0;
    }
    
    .posts-navigation,
    .pagination {
        margin: 0 auto;
        gap: 0.25rem;
    }
    
    .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 0 0.75rem;
        font-size: 13px;
    }
    
    /* Ensure all images and media are responsive */
    img, video, iframe {
        max-width: 100%;
        height: auto;
        width: 100%;
    }
    
    /* Form elements mobile optimization */
    input, textarea, select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* All sections use container padding only for consistent alignment */
    .hero-section,
    .homepage-content,
    .about-section,
    .newsletter-section,
    .popular-blogs,
    .single-post-content,
    .page-content,
    .entry-content,
    .post-content {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Text overflow prevention */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    /* Button and link touch targets */
    button, .read-more-btn, .read-more-button, a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        width: 100%;
        padding: 0 1rem;
    }
    
    .site-header {
        padding: 2rem 0;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .main-navigation ul {
        gap: 2rem;
    }
    
    .main-navigation a {
        font-size: 16px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Responsive Typography - Tablet (15-20% scale down) */
    h1 { font-size: 58px; } /* 72px * 0.8 */
    h2 { font-size: 48px; } /* 60px * 0.8 */
    h3 { font-size: 38px; } /* 48px * 0.8 */
    h4 { font-size: 32px; } /* 40px * 0.8 */
    h5 { font-size: 26px; } /* 32px * 0.8 */
    h6 { font-size: 19px; } /* 24px * 0.8 */
    
    .hero-text h1 {
        font-weight: 700; /* Wordcraft Style Guide - Bold for headings */
        letter-spacing: -0.02em;
    }
    
    .blogs-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        padding: 0;
    }
    
    .about-images {
        justify-content: flex-end;
    }
    
    .about-images .main-image {
        width: 100%;
        max-width: 400px;
    }
    
    .about-images .main-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        width: 100%;
        padding: 0 1rem;
    }
    
    .site-header {
        padding: 2.5rem 0;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    /* Desktop Typography - Full Wordcraft Style Guide sizes */
    h1 { font-size: 72px; } /* Full size */
    h2 { font-size: 60px; } /* Full size */
    h3 { font-size: 48px; } /* Full size */
    h4 { font-size: 40px; } /* Full size */
    h5 { font-size: 32px; } /* Full size */
    h6 { font-size: 24px; } /* Full size */
    
    .hero-text h1 {
        font-weight: 700; /* Wordcraft Style Guide - Bold for headings */
        letter-spacing: -0.02em;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        width: 100%;
        padding: 0 1rem;
    }
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 3rem 0;
}

/* Pagination Styles */
.posts-navigation,
.pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
    flex-direction: row;
}

.nav-links {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
    flex-direction: row;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #333;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-numbers:hover,
.page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 1rem;
    font-weight: 500;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    color: #666;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    color: #666;
    border: none;
}


/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
