/*
Theme Name: Theme 5 - Wide Photo-Centric
Theme URI: https://vs3.net
Author: Pau Inocencio
Author URI: https://vs3.net
Description: A modern, photo-centric WordPress theme inspired by contemporary coaching and business websites. Features wide layouts, hero images, and clean typography.
Tags: blog, photography, business, coaching, clean, modern, responsive, wide-layout
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tripeak-test-five
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');

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

/* Additional reset for gap elimination */
html, body, #page, #primary, .site-header, .site-main {
    margin: 0 !important;
    border: none !important;
}

/* Fix webkit/browser spacing issues */
body {
    border: none !important;
    outline: none !important;
}

.site-header {
    border: none !important;
    outline: none !important;
}

html {
    scroll-behavior: smooth;
    background-color: #f4efea; /* Ensure HTML background matches */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f4efea; /* Fixed cream background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 100px; /* Reduced padding to bring hero closer to header */
    margin: 0; /* Remove default browser margins */
}

#page {
    background-color: #f4efea; /* Ensure page wrapper background matches */
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Eighties Comeback Var VF', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5, h6 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Links */
a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #666;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.full-width {
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Header Styles */
.site-header {
    background: rgba(244, 239, 234, 0.95); /* Match fixed cream background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 120px; /* Significantly increased minimum height */
    padding-top: 20px; /* Add top padding to header itself */
    margin: 0; /* Ensure no margins on header */
    border: none; /* Remove any default borders */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0; /* Significantly increased padding for better visibility */
    gap: 2rem; /* Add proper spacing between elements */
}

.site-branding {
    flex: 0 0 auto; /* Don't grow or shrink */
    display: flex;
    align-items: center;
}

.main-navigation {
    flex: 1; /* Allow navigation to take up available space */
    display: flex;
    justify-content: center; /* Center the navigation */
}

.header-cta {
    flex: 0 0 auto; /* Don't grow or shrink */
}

/* Site branding styles moved to header-content section above */

.site-title {
    font-family: 'Eighties Comeback Var VF', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #222;
}

.site-description {
    display: none;
}

/* Navigation */
.main-navigation {
    position: relative;
}

/* Ensure proper mobile menu functionality */
@media (max-width: 768px) {
    .main-navigation {
        position: relative; /* Ensure positioning context for absolute menu */
        overflow: visible; /* Ensure menu can extend beyond container */
    }
    
    .header-content {
        position: relative;
        overflow: visible; /* Allow menu to break out */
    }
    
    .site-header .container {
        overflow: visible; /* Allow menu to break out of header container */
    }
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    justify-content: center; /* Center menu items */
}

/* Hide desktop menu styles on mobile */
@media (max-width: 768px) {
    .primary-menu {
        display: none; /* Override desktop flex display */
        gap: 0; /* Remove desktop gap */
    }
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    position: relative;
    color: #333;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: #c3121f;
    background: rgba(195, 18, 31, 0.1);
    border-color: rgba(195, 18, 31, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 18, 31, 0.15);
}

.primary-menu a::after {
    display: none; /* Remove underline effect for cleaner pill design */
}

/* Header CTA Button */
.header-cta {
    margin-left: auto;
}

.header-cta-button {
    display: inline-block;
    background: #c3121f; /* Matching red from hero */
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.header-cta-button:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 18, 31, 0.3);
    color: white !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

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

/* Hide the mobile menu checkbox completely */
.mobile-menu-checkbox {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.menu-toggle .sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.menu-toggle .menu-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Make sure mobile menu works properly */
@media (max-width: 768px) {
    .menu-toggle .menu-icon {
        display: inline-block;
    }
    
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block;
    }
    
    /* Hide menu by default on mobile */
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 1rem 0;
        border-radius: 0 0 10px 10px;
    }
    
    /* Show menu when checkbox is checked */
    .mobile-menu-checkbox:checked ~ .primary-menu {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    /* Update aria-expanded when checked */
    .mobile-menu-checkbox:checked ~ .menu-toggle {
        background: #f8f9fa;
        border-radius: 5px;
    }
    
    /* Note: aria-expanded will not update dynamically in a CSS-only menu. */
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(70vh - 100px); /* Adjusted for reduced body padding */
    display: flex;
    align-items: center;
    background: #f4efea; /* Fixed cream background */
    margin-top: 0; /* Remove margin since body now has padding */
    padding: 0 0 2rem 0; /* Remove top padding completely, reduce bottom */
}

/* Hero Separator Section */
.hero-separator {
    background: #c3121f; /* Updated red background */
    color: white;
    padding: 1rem 0; /* Reduced padding for thinner separator */
    text-align: left; /* Left align text */
    margin: 0 0 3rem 0; /* Add margin below separator */
    border: none;
}

.hero-separator .container {
    padding: 0 20px; /* Match theme container padding */
}

.hero-separator h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin: 0;
    color: white;
    letter-spacing: 0.5px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal columns */
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left; /* Left-aligned text */
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #c3121f; /* Bold red color like Logan's site */
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    color: #4a5568;
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: #c3121f; /* Matching red button */
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 18, 31, 0.3);
    color: white;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    /* No background, border-radius, or shadow for transparent images */
}

.hero-placeholder {
    background: #f4efea;
    border: 2px dashed #d1cfc9;
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    color: #6b6660;
}

.hero-placeholder p {
    margin: 0;
    font-size: 1rem;
}

.hero-placeholder strong {
    color: #3d3933;
}

/* Main Content */
.site-main {
    padding: 4rem 0 0 0; /* Remove bottom padding */
    background: #f4efea; /* Ensure cream background on all content areas */
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    background: #f4efea; /* Ensure cream background on content area */
}

/* Post Styles */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.post-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Full-width hero thumbnails should have a wider aspect ratio */
.post-thumbnail.full-width {
    aspect-ratio: 16/9;
}

.post-content {
    padding: 2rem;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.entry-title a {
    color: #222;
}

.entry-title a:hover {
    color: #667eea;
}

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

.entry-summary {
    color: #666;
    line-height: 1.6;
}

/* Single Post Styles */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.single-post .entry-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    font-size: 1rem;
    color: #888;
}



.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
}

/* Underline links in body text for better readability */
.entry-content a,
.entry-summary a,
.comment-content a,
.widget a,
.post-content a {
    text-decoration: underline;
    color: #c3121f;
}

.entry-content a:hover,
.entry-summary a:hover,
.comment-content a:hover,
.widget a:hover,
.post-content a:hover {
    color: #a01729;
    text-decoration: underline;
}

/* Remove underlines from button-like links within content */
.entry-content .wp-block-button a,
.entry-content .button,
.entry-content .btn,
.entry-content .more-link,
.post-content .wp-block-button a,
.post-content .button,
.post-content .btn,
.post-content .more-link {
    text-decoration: none !important;
}

/* Better list formatting with proper indentation */
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol,
.comment-content ul,
.comment-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.6;
}

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

.entry-content ul,
.post-content ul,
.comment-content ul {
    list-style-type: disc;
}

.entry-content ol,
.post-content ol,
.comment-content ol {
    list-style-type: decimal;
}

/* Nested lists with additional indentation */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul,
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul,
.comment-content ul ul,
.comment-content ol ol,
.comment-content ul ol,
.comment-content ol ul {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.entry-content ul ul,
.post-content ul ul,
.comment-content ul ul {
    list-style-type: circle;
}

.entry-content ul ul ul,
.post-content ul ul ul,
.comment-content ul ul ul {
    list-style-type: square;
}

/* Post Navigation Styles */
.post-navigation {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    clear: both;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 45%;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-navigation a:hover {
    background: rgba(195, 18, 31, 0.05);
    border-color: rgba(195, 18, 31, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #c3121f;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.post-navigation a:hover .nav-title {
    color: #222;
}

/* Mobile post navigation */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }
    
    .post-navigation a {
        padding: 1.25rem;
    }
    
    .post-navigation .nav-subtitle {
        font-size: 0.8rem;
    }
    
    .post-navigation .nav-title {
        font-size: 1rem;
    }
}

/* Pagination Styles */
.pagination {
    margin: 4rem 0;
    text-align: center;
    clear: both;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.02);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: rgba(195, 18, 31, 0.1);
    color: #c3121f;
    border-color: rgba(195, 18, 31, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 18, 31, 0.15);
}

.pagination .page-numbers.current {
    background: #c3121f;
    color: white;
    border-color: #c3121f;
    cursor: default;
    transform: none;
    box-shadow: 0 2px 8px rgba(195, 18, 31, 0.3);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 700;
    padding: 0 1.5rem;
    background: #333;
    color: white;
    border-color: #333;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: #c3121f;
    border-color: #c3121f;
    color: white;
}

.pagination .dots {
    color: #666;
    font-weight: 600;
    padding: 0 0.5rem;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
    
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 1rem;
    }
}

/* Photo Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer Styles */
.site-footer {
    background: #f4efea;
    color: #333;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #666;
}

.footer-section a:hover {
    color: #c3121f;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

/* Social Media Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: rgba(195, 18, 31, 0.1);
    transform: translateY(-2px);
    color: #c3121f;
}

.social-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.social-label {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .social-link .social-label {
        display: none; /* Hide labels on mobile, show only icons */
    }
    
    .social-link {
        padding: 0.75rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
}



/* Newsletter Signup */
.newsletter-signup {
    background: #f4efea;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4rem 0;
    text-align: center;
    color: #333;
    margin: 4rem 0;
    border-radius: 15px;
}

.newsletter-title {
    color: #333;
    margin-bottom: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #c3121f;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 18, 31, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Increased mobile padding for better header spacing */
        background: #f4efea; /* Ensure cream background on mobile */
    }
    
    .site-header {
        padding-top: 15px; /* Mobile header top padding */
        margin: 0; /* Ensure no margins on mobile header */
        top: 0; /* Stick to very top */
        border: none; /* Remove any borders that could create gaps */
    }
    
    .header-content {
        padding: 1.75rem 0; /* Significantly increased mobile padding */
        justify-content: space-between; /* Space between logo and menu toggle */
        gap: 1rem;
    }
    
    #primary {
        margin-top: 0 !important; /* Ensure no gap between header and main content */
        background: #f4efea; /* Ensure cream background on mobile */
    }
    
    .main-navigation {
        justify-content: flex-end; /* Align menu toggle to the right on mobile */
    }
    
    .header-cta {
        display: none; /* Hide header button on mobile */
    }
    
    .primary-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw; /* Full viewport width */
        background: #f4efea; /* Match fixed cream background */
        border: 1px solid rgba(0, 0, 0, 0.1); /* Add border for visibility */
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* More prominent shadow */
        display: none;
        padding: 0.5rem 0;
        z-index: 999; /* Ensure menu appears above other content */
        border-radius: 0 0 10px 10px; /* Add slight rounding */
        margin-left: calc(-50vw + 50%); /* Center the full-width menu */
        max-height: 400px; /* Prevent menu from being too tall */
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .primary-menu.is-open {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .primary-menu li {
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        display: block;
        padding: 1rem 2rem;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0; /* Override desktop border radius for mobile */
        background: transparent;
        border: none;
        font-weight: 500;
    }
    
    .primary-menu a:hover,
    .primary-menu a:focus {
        background-color: rgba(195, 18, 31, 0.1);
        color: #c3121f;
        transform: none; /* Remove transform on mobile */
        box-shadow: none; /* Remove shadow on mobile */
    }
    
    .primary-menu a::after {
        display: none; /* Remove desktop underline effects */
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        cursor: pointer;
        color: #333;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus {
        background: rgba(0, 0, 0, 0.05);
        outline: none;
    }
    
    .hero-section {
        margin-top: 0; /* Remove margin since body now has padding */
        min-height: calc(60vh - 120px); /* Adjusted for increased mobile body padding */
        padding: 0 0 1.5rem 0; /* Remove top padding completely on mobile */
        background: #f4efea; /* Ensure cream background on mobile hero */
    }
    
    .hero-section .container {
        padding-top: 0 !important; /* Ensure no top padding on hero container */
        margin-top: 0 !important; /* Ensure no top margin on hero container */
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 2rem;
        text-align: center;
        margin-top: 0 !important; /* Ensure no top margin on hero wrapper */
        padding-top: 0 !important; /* Ensure no top padding on hero wrapper */
    }
    
    .hero-content {
        text-align: center; /* Center text on mobile */
        padding-right: 0;
        order: 2; /* Put content after image on mobile */
    }
    
    .hero-image {
        order: 1; /* Put image first on mobile */
    }
    
    .hero-separator {
        padding: 0.75rem 0; /* Thinner padding on mobile */
        margin: 0 0 2rem 0; /* Reduced bottom margin on mobile */
    }
    
    .hero-separator .container {
        padding: 0 15px; /* Match theme mobile container padding */
    }
    
    .hero-separator h2 {
        font-size: 1.5rem; /* Smaller text on mobile */
        margin: 0; /* Remove any default margins */
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-post .entry-header {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input[type="email"] {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px; /* Increased padding for very small screens */
        background: #f4efea; /* Ensure cream background on small mobile */
    }
    
    .site-header {
        padding-top: 10px; /* Small mobile header top padding */
        margin: 0; /* Ensure no margins on small mobile header */
        top: 0; /* Stick to very top */
        border: none; /* Remove any borders that could create gaps */
    }
    
    #primary {
        margin-top: 0 !important; /* Ensure no gap between header and main content on small mobile */
        background: #f4efea; /* Ensure cream background on small mobile */
    }
    
    .container,
    .wide-container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center; /* Center on small mobile */
    }
    
    .hero-wrapper {
        gap: 1.5rem; /* Reduce gap on very small screens */
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .site-main {
        padding: 2rem 0 0 0; /* Remove bottom padding on mobile */
        background: #f4efea; /* Match site cream background */
    }
    
    .hero-separator {
        padding: 0.5rem 0; /* Very thin padding on very small screens */
        margin: 0 0 1.5rem 0; /* Reduced bottom margin on very small screens */
    }
    
    .hero-separator .container {
        padding: 0 15px; /* Match theme mobile container padding */
    }
    
    .hero-separator h2 {
        font-size: 1.25rem; /* Even smaller text on very small screens */
        margin: 0; /* Remove any default margins */
    }
    
    .single-post .entry-header {
        margin-bottom: 0.75rem;
        padding: 0.25rem 0;
    }
}

/* Code Block Styling */
code {
    font-family: 'Courier New', Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
    font-size: 1rem; /* Same as body text */
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    line-height: 1.4;
}

pre {
    font-family: 'Courier New', Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
    font-size: 1rem; /* Same as body text */
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #c3121f;
    overflow-x: auto;
    line-height: 1.5;
    margin: 2rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre code {
    background: transparent;
    padding: 0;
    font-size: inherit;
    color: inherit;
    border-radius: 0;
}

/* WordPress Block Code */
.wp-block-code {
    margin: 2rem 0;
}

.wp-block-code code {
    display: block;
    font-family: 'Courier New', Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
    font-size: 1rem; /* Same as body text */
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #c3121f;
    overflow-x: auto;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Preformatted text */
.wp-block-preformatted {
    font-family: 'Courier New', Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
    font-size: 1rem;
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #c3121f;
    overflow-x: auto;
    line-height: 1.5;
    margin: 2rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Inline code within other elements */
p code,
li code,
td code,
blockquote code,
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
    font-size: 1rem;
    vertical-align: baseline;
}

/* Mobile responsiveness for code blocks */
@media (max-width: 768px) {
    pre,
    .wp-block-code code,
    .wp-block-preformatted {
        font-size: 1rem;
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    code {
        font-size: 1rem;
    }
    
    p code,
    li code,
    td code,
    blockquote code,
    h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    pre,
    .wp-block-code code,
    .wp-block-preformatted {
        font-size: 1rem;
        padding: 0.8rem;
        margin: 1rem 0;
        border-left-width: 3px;
    }
    
    code {
        font-size: 1rem;
    }
    
    p code,
    li code,
    td code,
    blockquote code,
    h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
        font-size: 1rem;
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Hide page titles but keep post titles and blog page titles visible */
body.page article:not(.post-card) .entry-title,
body.page h1.entry-title:not(.post-card .entry-title),
body.page h2.entry-title:not(.post-card .entry-title),
body.page .page-content .entry-title {
    display: none !important;
}

/* Ensure post card titles are always visible */
.post-card .entry-title,
.post-card h1.entry-title,
.post-card h2.entry-title,
.post-card h3.entry-title {
    display: block !important;
}

/* Hide specific page titles but not blog page titles */
body.page .page-title,
body.page h1.page-title,
body.search .page-title,
body.error404 .page-title,
body.archive .page-title {
    display: none !important;
}

/* Hide page titles when requested via block editor */
.entry-title.screen-reader-text,
.wp-block-post-title.screen-reader-text,
.page-title.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Hide all edit links across the theme (but not admin bar) */
.edit-link,
.post-edit-link,
.comment-edit-link,
.site-main a[href*="post.php?post="],
.site-content a[href*="post.php?post="],
.entry-footer a[href*="post.php?post="],
a[href*="comment.php?action=editcomment"] {
    display: none !important;
}

.skip-link {
    background: #667eea;
    color: white;
    padding: 1rem;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    border-radius: 5px;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
}

/* WordPress Block Editor Support */
.alignwide {
    margin-left: calc(-25vw + 50%);
    margin-right: calc(-25vw + 50%);
    max-width: none;
    width: auto;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
    width: auto;
}

.wp-block-image figcaption {
    text-align: left;
    font-style: italic;
    color: #666;
    margin-top: 0.25rem;
}

.wp-block-embed :where(figcaption) {
    text-align: left;
    font-style: italic;
    color: #666;
    margin-top: 0.25rem;
}

/* WordPress Button Block Styling */
.wp-block-button {
    margin-bottom: 1.5rem !important;
}

.wp-block-button .wp-block-button__link {
    background-color: #c3121f !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    line-height: 1.6 !important;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
    background-color: #990f19 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(195, 18, 31, 0.3) !important;
}

/* Button variations */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: #c3121f !important;
    border: 2px solid #c3121f !important;
    font-size: 16px !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
    background-color: #c3121f !important;
    color: white !important;
    border-color: #c3121f !important;
}

/* WordPress Separator Block - Dots Style */
.wp-block-separator.has-alpha-channel-opacity.is-style-dots {
    background: none !important;
    border: none !important;
    text-align: center !important;
    max-width: none !important;
    line-height: 1 !important;
    height: auto !important;
}

.wp-block-separator.has-alpha-channel-opacity.is-style-dots::before {
    content: "\00b7 \00b7 \00b7" !important;
    color: #c3121f !important;
    font-size: 50px !important;
    letter-spacing: 1em !important;
    padding-left: 1em !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .newsletter-signup {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .site-main {
        padding: 0;
    }
} 