/*
Theme Name: Theme 8 - Clean Wide Blog
Description: A minimalist WordPress theme designed for creative professionals and designers who want a clean, elegant portfolio presence. The theme emphasizes simplicity, readability, and customization flexibility while maintaining a professional aesthetic.
Author: Pau Inocencio
Version: 1.0.0
Text Domain: tripeak-test-eight
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1f2937;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: #6b7280;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
    padding: 0;
}

.site-logo a {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-navigation a {
    color: #1f2937;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #2563eb;
}

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

.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;
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    box-sizing: border-box;
}

.hero-container > * {
    margin: 0;
    padding: 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    border: none;
    padding-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.hero-content {
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    justify-self: start;
    align-self: start;
}

.hero-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 32px;
    margin-left: 0;
    margin-right: 0;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* About Me Block */
.about-me-block {
    width: 100%;
    padding: 10px 0 30px 0;
}

/* About Me Block Content Styling */
.about-me-block .my-story-content,
.about-me-block .work-history-content {
    line-height: 1.6;
    color: #374151;
}

.about-me-block .my-story-content p,
.about-me-block .work-history-content p {
    margin-bottom: 1.2em;
    margin-top: 0;
}

.about-me-block .my-story-content p:last-child,
.about-me-block .work-history-content p:last-child {
    margin-bottom: 0;
}

.about-me-block .my-story-content h1,
.about-me-block .my-story-content h2,
.about-me-block .my-story-content h3,
.about-me-block .my-story-content h4,
.about-me-block .my-story-content h5,
.about-me-block .my-story-content h6,
.about-me-block .work-history-content h1,
.about-me-block .work-history-content h2,
.about-me-block .work-history-content h3,
.about-me-block .work-history-content h4,
.about-me-block .work-history-content h5,
.about-me-block .work-history-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #1f2937;
    font-weight: 600;
}

.about-me-block .my-story-content h1:first-child,
.about-me-block .my-story-content h2:first-child,
.about-me-block .my-story-content h3:first-child,
.about-me-block .my-story-content h4:first-child,
.about-me-block .my-story-content h5:first-child,
.about-me-block .my-story-content h6:first-child,
.about-me-block .work-history-content h1:first-child,
.about-me-block .work-history-content h2:first-child,
.about-me-block .work-history-content h3:first-child,
.about-me-block .work-history-content h4:first-child,
.about-me-block .work-history-content h5:first-child,
.about-me-block .work-history-content h6:first-child {
    margin-top: 0;
}

.about-me-block .my-story-content ul,
.about-me-block .my-story-content ol,
.about-me-block .work-history-content ul,
.about-me-block .work-history-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

.about-me-block .my-story-content li,
.about-me-block .work-history-content li {
    margin-bottom: 0.5em;
}

.about-me-block .my-story-content blockquote,
.about-me-block .work-history-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    font-style: italic;
    color: #4b5563;
}

.about-me-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    margin-bottom: 48px;
}

.about-me-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.about-me-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    box-sizing: border-box;
}

.about-me-section h3 {
    color: #1f2937;
    margin-bottom: 24px;
    border: none;
    padding-bottom: 0;
}

.timeline-item {
    margin-bottom: 24px;
    padding-left: 24px;
    border-left: 2px solid #e5e7eb;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 50%;
}

.timeline-year {
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
}

.timeline-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.timeline-description {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Main Content */
.site-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* Front page content should use full width */
.front-page .content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #ffffff;
    padding: 48px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-submit {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: #1d4ed8;
}

/* Mobile Navigation */
    /* Mobile menu text styling */
    .nav-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 20px;
        color: #1f2937;
        font-weight: 500;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 4px;
        margin: 0 8px;
    }
    
    .nav-menu a:hover {
        color: #2563eb;
        background-color: #f8fafc;
    }

/* Recent Articles Section */
.recent-articles-section {
    width: 100%;
    background: #fff;
    padding: 15px 0 32px 0;
}

.recent-articles-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.recent-articles-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.recent-article-item {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.recent-article-item:hover {
    box-shadow: 0 6px 24px rgba(37,99,235,0.12);
}

.recent-article-thumb {
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.recent-article-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.recent-article-content {
    padding: 20px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recent-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.recent-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-article-title a:hover {
    color: #2563eb;
}

.recent-article-meta {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.recent-article-excerpt {
    font-size: 1rem;
    color: #374151;
    margin-top: auto;
}

.recent-article-readmore {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px 8px 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    letter-spacing: 0.5px;
}

.recent-article-readmore .arrow {
    font-weight: 700;
    margin-left: 8px;
    font-size: 1.3em;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(.4,2,.6,1);
    vertical-align: middle;
}

.recent-article-readmore:hover .arrow {
    transform: translateX(6px);
}

.recent-article-readmore:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 0 0;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}

.pagination .page-numbers.dots {
    background: none;
    color: #6b7280;
    box-shadow: none;
    cursor: default;
    padding: 8px 6px;
}

/* Responsive Design */
/* 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 desktop navigation on mobile */
    .main-navigation .nav-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Hide menu by default on mobile */
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        padding: 0;
        border-radius: 0 0 8px 8px;
        overflow: hidden;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }
    
    /* Mobile menu list styles */
    .nav-menu ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #f3f4f6;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 20px;
        color: #1f2937;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    
    .nav-menu a:hover {
        background-color: #f9fafb;
        color: #2563eb;
    }
    
    /* Submenu styles for mobile */
    .nav-menu ul ul {
        background-color: #f9fafb;
        border-top: 1px solid #e5e7eb;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu li.mobile-submenu-open ul ul {
        max-height: 500px;
    }
    
    .nav-menu ul ul li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-menu ul ul li:last-child {
        border-bottom: none;
    }
    
    .nav-menu ul ul a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        color: #6b7280;
    }
    
    .nav-menu ul ul a:hover {
        background-color: #f3f4f6;
        color: #2563eb;
    }
    
    /* Submenu toggle indicators */
    .nav-menu .menu-item-has-children > a {
        position: relative;
    }
    
    .nav-menu .menu-item-has-children > a::after {
        content: "▼";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        transition: transform 0.3s ease;
        color: #9ca3af;
    }
    
    .nav-menu .menu-item-has-children.mobile-submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Show menu when checkbox is checked */
    .mobile-menu-checkbox:checked ~ .nav-menu {
        display: block !important;
        animation: slideDown 0.3s ease-out;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
    
    /* Update aria-expanded when checked */
    .mobile-menu-checkbox:checked ~ .menu-toggle {
        background: #f8fafc;
        border-radius: 5px;
    }
    
    .hero-section {
        padding: 10px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-me-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* WordPress Block Button Styles */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.wp-block-button {
    margin: 0;
}

.wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    min-width: 120px;
}

.wp-block-button .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wp-block-button .wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
    border-color: #1e40af;
}

.wp-block-button .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Outline Button Style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

/* Rounded Button Style */
.wp-block-button.is-style-rounded .wp-block-button__link {
    border-radius: 50px;
    padding: 12px 32px;
}

/* Fill Button Style (Default) */
.wp-block-button.is-style-fill .wp-block-button__link {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

/* Secondary Button Style */
.wp-block-button.is-style-secondary .wp-block-button__link {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:focus {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.25);
}

/* Success Button Style */
.wp-block-button.is-style-success .wp-block-button__link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.wp-block-button.is-style-success .wp-block-button__link:hover,
.wp-block-button.is-style-success .wp-block-button__link:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

/* Warning Button Style */
.wp-block-button.is-style-warning .wp-block-button__link {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.wp-block-button.is-style-warning .wp-block-button__link:hover,
.wp-block-button.is-style-warning .wp-block-button__link:focus {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

/* Danger Button Style */
.wp-block-button.is-style-danger .wp-block-button__link {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.wp-block-button.is-style-danger .wp-block-button__link:hover,
.wp-block-button.is-style-danger .wp-block-button__link:focus {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

/* Large Button Style */
.wp-block-button.is-style-large .wp-block-button__link {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
    min-width: 140px;
}

/* Small Button Style */
.wp-block-button.is-style-small .wp-block-button__link {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
    min-width: 80px;
}

/* Button with Icon */
.wp-block-button .wp-block-button__link svg,
.wp-block-button .wp-block-button__link .dashicons {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Full Width Button */
.wp-block-button.is-style-full-width .wp-block-button__link {
    width: 100%;
    justify-content: center;
}

/* Button Group */
.wp-block-buttons.is-style-vertical {
    flex-direction: column;
    align-items: stretch;
}

.wp-block-buttons.is-style-vertical .wp-block-button {
    width: 100%;
}

.wp-block-buttons.is-style-vertical .wp-block-button .wp-block-button__link {
    width: 100%;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wp-block-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .wp-block-button .wp-block-button__link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .wp-block-button.is-style-large .wp-block-button__link {
        padding: 18px 24px;
        font-size: 18px;
    }
    
    .wp-block-button.is-style-small .wp-block-button__link {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Focus States for Accessibility */
.wp-block-button .wp-block-button__link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Disabled State */
.wp-block-button .wp-block-button__link:disabled,
.wp-block-button .wp-block-button__link[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* WordPress Separator Block Styles */
.wp-block-separator {
    border: none;
    margin: 48px auto;
    max-width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    position: relative;
}

/* Default Separator */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Wide Separator */
.wp-block-separator.is-style-wide {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 40px 0;
}

/* Dots Separator */
.wp-block-separator.is-style-dots {
    background: none;
    border: none;
    text-align: left;
    line-height: 1;
    height: auto;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wp-block-separator.is-style-dots::before {
    content: "•••";
    color: #9ca3af;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 300;
    display: inline-block;
    text-align: left;
}

/* Custom Separator Styles */
.wp-block-separator.is-style-gradient {
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b, #ef4444);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.wp-block-separator.is-style-dashed {
    height: 2px;
    background: repeating-linear-gradient(90deg, #e5e7eb 0, #e5e7eb 8px, transparent 8px, transparent 16px);
}

.wp-block-separator.is-style-dotted {
    height: 2px;
    background: repeating-linear-gradient(90deg, #e5e7eb 0, #e5e7eb 2px, transparent 2px, transparent 8px);
}

.wp-block-separator.is-style-thick {
    height: 6px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.wp-block-separator.is-style-thin {
    height: 1px;
    background: #e5e7eb;
    opacity: 0.6;
}

.wp-block-separator.is-style-accent {
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.wp-block-separator.is-style-warning {
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.wp-block-separator.is-style-danger {
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Separator with Icon */
.wp-block-separator.is-style-icon {
    background: none;
    border: none;
    text-align: center;
    line-height: 1;
    height: auto;
    margin: 40px auto;
    position: relative;
}

.wp-block-separator.is-style-icon::before {
    content: "✦";
    color: #2563eb;
    font-size: 20px;
    background: #ffffff;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.wp-block-separator.is-style-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}

/* Separator with Text */
.wp-block-separator.is-style-text {
    background: none;
    border: none;
    text-align: center;
    line-height: 1;
    height: auto;
    margin: 40px auto;
    position: relative;
}

.wp-block-separator.is-style-text::before {
    content: "Section";
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #ffffff;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.wp-block-separator.is-style-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}

/* Responsive Separators */
@media (max-width: 768px) {
    .wp-block-separator {
        margin: 32px auto;
    }
    
    .wp-block-separator.is-style-wide {
        margin: 24px 0;
    }
    
    .wp-block-separator.is-style-dots {
        margin: 24px auto;
    }
    
    .wp-block-separator.is-style-dots::before {
        font-size: 20px;
        letter-spacing: 6px;
    }
    
    .wp-block-separator.is-style-icon::before {
        font-size: 18px;
        padding: 0 12px;
    }
    
    .wp-block-separator.is-style-text::before {
        font-size: 12px;
        padding: 0 12px;
    }
}

/* Separator in Different Contexts */
.entry-content .wp-block-separator {
    margin: 32px auto;
}

.hero-section .wp-block-separator {
    margin: 24px auto;
    opacity: 0.8;
}

.recent-articles-section .wp-block-separator {
    margin: 40px auto;
}

/* Animated Separator */
.wp-block-separator.is-style-animated {
    position: relative;
    overflow: hidden;
}

.wp-block-separator.is-style-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Utility Classes */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-48 {
    margin-bottom: 48px;
} 

.entry-date-capsule {
    display: inline-block;
    background: #f3f4f6;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    padding: 6px 18px;
    margin-bottom: 18px;
    margin-top: 0;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
} 

/* Inline code */
.entry-content code, .wp-block-code code {
    background: #f3f4f6;
    color: #2563eb;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 0.97em;
    padding: 2px 7px;
    border-radius: 5px;
    margin: 0 2px;
    word-break: break-word;
}

/* Code block */
.entry-content pre, .wp-block-code pre {
    background: #181f2a;
    color: #f3f4f6;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 1em;
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.entry-content pre code, .wp-block-code pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
} 

/* List formatting */
.entry-content ul,
.entry-content ol {
    padding-left: 2em;
    margin-bottom: 1.2em;
    margin-top: 0.6em;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}

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

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

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

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

.entry-content ol ol {
    list-style-type: lower-alpha;
} 

/* Content Area Images - Ensure they respect container width */
.entry-content img,
.post-thumbnail img,
.featured-image img,
.wp-block-image img,
.wp-block-gallery img,
.wp-block-embed img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.entry-content .wp-block-image,
.post-thumbnail,
.featured-image {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Post thumbnail specific styles */
.post-thumbnail {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Captions for images, galleries, embeds */
.wp-caption-text,
figcaption,
.wp-block-embed figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption {
    text-align: left;
    font-style: italic;
    color: #6b7280;
    font-size: 0.98em;
    margin-top: 6px;
    line-height: 1.5;
} 

/* Single Post Navigation */
.post-navigation {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 48px auto 0 auto;
    min-height: 80px;
}

.post-navigation .nav-links {
    width: 100%;
    position: relative;
    display: block;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    position: absolute;
    top: 0;
}

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

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

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    padding: 10px 26px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    transition: all 0.2s;
    border: none;
    outline: none;
    letter-spacing: 0.01em;
    min-width: 120px;
    gap: 8px;
}

.post-navigation .nav-previous a {
    flex-direction: row;
}

.post-navigation .nav-next a {
    flex-direction: row;
}

.post-navigation .nav-arrow {
    font-size: 1.2em;
    font-weight: 700;
    color: #2563eb;
    vertical-align: middle;
    margin: 0;
    display: inline-block;
    transition: color 0.2s;
}

.post-navigation a:hover .nav-arrow,
.post-navigation a:focus .nav-arrow {
    color: #fff;
}

/* Table of Contents Styles */
.toc-container,
#ez-toc-container,
.wp-block-table-of-contents {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.toc-container::before,
#ez-toc-container::before,
.wp-block-table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}

.toc-title,
#ez-toc-title,
.wp-block-table-of-contents__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title::before,
#ez-toc-title::before,
.wp-block-table-of-contents__heading::before {
    content: '📋';
    font-size: 1.1em;
}

.toc-list,
#ez-toc-list,
.wp-block-table-of-contents__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.toc-list li,
#ez-toc-list li,
.wp-block-table-of-contents__list li {
    margin: 0;
    padding: 0;
    position: relative;
}

.toc-list li::before,
#ez-toc-list li::before,
.wp-block-table-of-contents__list li::before {
    counter-increment: toc-counter;
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.toc-list a,
#ez-toc-list a,
.wp-block-table-of-contents__list a {
    display: block;
    padding: 8px 0 8px 32px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.toc-list a:hover,
#ez-toc-list a:hover,
.wp-block-table-of-contents__list a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.toc-list a:active,
#ez-toc-list a:active,
.wp-block-table-of-contents__list a:active {
    transform: translateX(4px) scale(0.98);
}

/* Nested TOC items */
.toc-list ul,
#ez-toc-list ul,
.wp-block-table-of-contents__list ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
}

.toc-list ul li::before,
#ez-toc-list ul li::before,
.wp-block-table-of-contents__list ul li::before {
    background: #6b7280;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
}

.toc-list ul a,
#ez-toc-list ul a,
.wp-block-table-of-contents__list ul a {
    font-size: 0.9rem;
    color: #6b7280;
    padding: 6px 0 6px 28px;
}

.toc-list ul a:hover,
#ez-toc-list ul a:hover,
.wp-block-table-of-contents__list ul a:hover {
    color: #374151;
    background: rgba(37, 99, 235, 0.03);
}

/* TOC Toggle Button */
.toc-toggle,
#ez-toc-toggle {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.toc-toggle:hover,
#ez-toc-toggle:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.toc-toggle:active,
#ez-toc-toggle:active {
    transform: translateY(0);
}

/* Collapsed TOC */
.toc-container.collapsed,
#ez-toc-container.collapsed {
    padding: 16px 24px;
}

.toc-container.collapsed .toc-list,
#ez-toc-container.collapsed #ez-toc-list {
    display: none;
}

/* Active TOC item */
.toc-list a.active,
#ez-toc-list a.active,
.wp-block-table-of-contents__list a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

.toc-list a.active::before,
#ez-toc-list a.active::before,
.wp-block-table-of-contents__list a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #2563eb;
    border-radius: 0 2px 2px 0;
}

/* Responsive TOC */
@media (max-width: 768px) {
    .toc-container,
    #ez-toc-container,
    .wp-block-table-of-contents {
        padding: 20px;
        margin: 24px 0;
        border-radius: 8px;
    }
    
    .toc-title,
    #ez-toc-title,
    .wp-block-table-of-contents__heading {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .toc-list a,
    #ez-toc-list a,
    .wp-block-table-of-contents__list a {
        padding: 6px 0 6px 28px;
        font-size: 0.9rem;
    }
    
    .toc-list ul a,
    #ez-toc-list ul a,
    .wp-block-table-of-contents__list ul a {
        padding: 4px 0 4px 24px;
        font-size: 0.85rem;
    }
    
    /* Mobile responsive for recent articles */
    .recent-article-item {
        margin-bottom: 20px;
    }
    
    .recent-article-thumb img {
        height: 140px;
    }
    
    .recent-article-content {
        padding: 16px 14px 14px 14px;
    }
    
    .recent-article-title {
        font-size: 1rem;
    }
    
    .recent-article-excerpt {
        font-size: 0.9rem;
    }
    
    /* Mobile responsive for content images */
    .entry-content img,
    .post-thumbnail img,
    .featured-image img,
    .wp-block-image img {
        max-width: 100%;
        height: auto;
    }
    
    .post-thumbnail {
        margin-bottom: 16px;
        border-radius: 8px;
    }
} 