/*
Theme Name: Cooperation
Theme URI: https://cooperation.art
Author: Paweł Urban
Author URI: https://cooperation.art
Description: A custom theme for a team cooperation company.
Version: 1.1
Text Domain: cooperation
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Colors:
Primary (Green): #4CAF50
Secondary (Gray): #F5F5F5
Text: #333333
Accent: #388E3C
*/

:root {
    --color-text-contrast: #4d4d4d;
    --color-text-main: #726A4E;
    --color-text-highlight: #2C4A6B;
    --color-primary: #79B465;
    --color-secondary: #727E6F;
    --color-accent: #D1C87C;
    --color-bg: #F5F5F5;
    --color-bg-alt: #AEACA1;
    --white: #ffffff;

    /* Supportive Palette */
    --color-support-gold: #c4a652;
    --color-support-red: #b85d4b;
    --color-support-green: #7bb565;

    --font-heading: 'Saira Condensed', sans-serif;
    --font-logo: 'Saira', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-serif: 'Source Serif 4', serif;
    --font-number: 'Saira Stencil One', sans-serif;

    --spacing-unit: 1rem;
    --container-width: 1200px;
    --entry-container-width: 800px;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    margin: 0;
    font-size: 1.125rem;
}

/* Entry Content (Post/Page Body) */
.page-article .entry-content {
    font-family: var(--font-serif);
    /* Slightly larger for readability */
    line-height: 1.7;
    color: var(--color-text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
}

h6 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary);
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.entry-container {
    max-width: var(--entry-container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--color-secondary);
    color: #fff;
    /* Ensure text remains white on hover */
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: top;
    gap: 1rem;
}

.site-logo .custom-logo-link img {
    display: block;
    max-height: 76px;
    width: auto;
}

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

.site-branding .site-title {
    margin: 0;
    font-family: var(--font-heading);
    margin-top: -8px;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.site-branding .site-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.site-description {
    margin: 0;
    margin-top: -4px;
    font-family: var(--font-logo);
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 800;
    padding-left: 2px;
    line-height: 1.05;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: var(--color-text-main);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100000;
    /* Higher than menu (10002) so it's always visible */
    position: relative;
    /* Ensure z-index works */
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 35px;
    justify-content: center;
    align-items: stretch;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Mobile Navigation Styles - Responsive breakpoint at 930px */
@media (max-width: 930px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen by default */
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 10002;
        /* Higher z-index to be above overlay */
        overflow-y: auto;
        padding: 5rem 2rem 2rem;
    }

    .main-navigation.active {
        right: 0;
        /* Slide in when active */
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        margin-left: 0;
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }

    /* Overlay backdrop - will be created by JavaScript */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 10001;
        /* Below menu but above content */
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    /* Reduced from 8rem to 5rem */
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-highlight);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-contrast);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-light-background p {
    text-shadow: 2px 2px 4px #ffffff, 2px 2px 6px #ffffff;
}

/* Values Section (Replaces Stats) */
.values-section {
    background-color: var(--color-secondary);
    color: var(--white);
    padding: 3rem 0 5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-left: 2.5rem;
    text-align: left;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.value-item p {
    opacity: 0.9;
}

.value-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Services/Offer Section */
.services {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.section-title-dark {
    color: var(--color-text-contrast);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards for more text */
    gap: 2rem;
}

.service-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-main);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.button.tertiary {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.button.tertiary:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card .button.tertiary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-card:hover .button.tertiary {
    text-decoration: underline;
    color: var(--color-secondary);
}

.service-card .button.tertiary {
    margin-top: auto;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    object-fit: contain;
}

/* Experts Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--color-bg-alt);
}

.experts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    /* Removed max-width to match services grid width */
    margin: 0 auto;
}

.expert-card {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    /* Removed to allow stretching */
}

.expert-image {
    flex: 0 0 400px;
    /* Increased width to reduce text height and balance layout */
    /* Remove fixed height to allow image to dictate height based on width */
    position: relative;
    /* Ensure proper stacking */
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to show full person */
    object-position: center center;
    display: block;
    background-color: #f5f5f5;
    /* Light background for letterboxing */
}

.expert-content {
    padding: 2.5rem;
    flex: 1;
}

.expert-content h3 {
    color: var(--color-text-main);
    margin-bottom: 0;
    font-size: 1.75rem;
}

.expert-title {
    margin-top: 0;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.expert-competencies {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.expert-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.expert-social a {
    color: var(--color-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-social a:hover {
    color: var(--color-primary);
}

/* Responsive breakpoint for tablets/medium screens */
@media (max-width: 1020px) {
    .expert-image {
        flex: 0 0 300px;
        /* Reduce width on medium screens */
    }
}

@media (max-width: 768px) {
    .site-logo .custom-logo-link img {
        max-height: 50px;
    }

    .site-branding .site-title {
        font-size: 2rem;
        margin-top: -4px;
    }

    .site-description {
        font-size: 0.9rem;
        margin-top: -2px;
    }

    .expert-card {
        flex-direction: column;
    }

    .expert-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        /* Changed from fixed 300px to auto */
        min-height: 400px;
        /* Ensure enough space to show full person */
    }

    .expert-image img {
        object-fit: contain;
        /* Ensure full image is visible */
        max-height: 500px;
        /* Limit maximum height */
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-text-main);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-top: 0;
}

.site-footer a {
    color: #fff;
    opacity: 0.8;
}

.site-footer a:hover {
    opacity: 1;
}

/* SureForms Specific Styles */
.srfm-form .srfm-input-common {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-family: var(--font-main) !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    /* Removed margin from input, controlled by wrapper */
    background-color: #fff !important;
    color: var(--color-text-main) !important;
    box-shadow: none !important;
}

.srfm-form .srfm-input-common:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(121, 180, 101, 0.2) !important;
}

.srfm-form .srfm-submit-button {
    display: inline-block !important;
    padding: 12px 24px !important;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    font-family: var(--font-main) !important;
    font-size: 1rem !important;
    width: auto !important;
    text-transform: none !important;
}

.srfm-form .srfm-submit-button:hover {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
}

.srfm-form .srfm-submit-wrap {
    justify-content: flex-start !important;
    /* Align button to left */
}

/* Hide SureForms labels if they are duplicated or causing layout issues, 
   but based on screenshot, placeholders are used. 
   If labels are present but invisible, ensure they are styled. */
.srfm-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Blog Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For stretched link */
}

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

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card .entry-header {
    padding: 2rem 2rem 1rem;
}

.post-card .entry-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.post-card .entry-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

/* Stretched link to make whole card clickable */
.post-card .entry-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.post-card .entry-title a:hover {
    color: var(--color-primary);
}

.post-card .entry-summary {
    padding: 0 2rem 2rem;
    color: #666;
    flex-grow: 1;
}

.post-card .entry-footer {
    padding: 0 2rem 2rem;
    margin-top: auto;
}

.read-more-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.post-card:hover .read-more-link {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Tags and Categories Styling */
.entry-footer .cat-links,
.entry-footer .tags-links {
    font-size: 0.95rem;
    line-height: 1.8;
}

.entry-footer .cat-links a,
.entry-footer .tags-links a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    background-color: #f5f5f5;
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.entry-footer .tags-links a {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.entry-footer .cat-links a:hover {
    background-color: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.entry-footer .tags-links a:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Video Grid (Appearances) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.video-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.video-content-inner {
    position: relative;
    width: 100%;
    /* 0 height and padding-bottom technique is more cross-browser compatible for older generic embeds, 
       but aspect-ratio is better for modern. Let's keep aspect-ratio but support content filling. */
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Ensure direct children like figure or div fill the container */
.video-content-inner>* {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Target the iframe/video specifically to cover the area */
.video-content-inner iframe,
.video-content-inner video,
.video-content-inner embed,
.video-content-inner object {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    margin: 0 !important;
    border: none !important;
}

/* Handle Gutenberg specific wrappers if they exist deeply nested */
.wp-block-embed__wrapper {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

/* Mentoring Grid */
.mentoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.mentoring-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mentoring-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.mentoring-card.highlight {
    border: 2px solid var(--color-primary);
    transform: scale(1.02);
}

.mentoring-card.highlight:hover {
    transform: scale(1.02) translateY(-5px);
}

.card-header {
    padding: 2rem;
    background-color: var(--color-bg);
    border-bottom: 1px solid #eee;
    text-align: center;
}

.mentoring-card.highlight .card-header {
    background-color: rgba(121, 180, 101, 0.1);
    /* Light Primary */
}

.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--color-text-main);
}

.badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    padding: 2rem;
    background-color: var(--color-bg);
    border-top: 1px solid #eee;
    text-align: center;
}

.value-number {
    font-family: var(--font-number);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.price small {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
}

.button.full-width {
    display: block;
    text-align: center;
}

/* Make mentoring card clickable via the button */
.mentoring-card .button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hover effect for mentoring card button */
.mentoring-card:hover .button {
    background-color: var(--color-secondary);
    color: #fff;
}

/* Workshop List */
.workshops-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.workshop-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.workshop-header {
    background-color: var(--color-bg);
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.workshop-title {
    margin: 0;
    color: var(--color-text-main);
    font-size: 1.8rem;
}

.workshop-content {
    padding: 2rem;
    color: var(--color-text-main);
    line-height: 1.7;
}

.workshop-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.workshop-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.workshop-content li {
    margin-bottom: 0.5rem;
}

.workshop-footer {
    background-color: var(--color-bg);
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
}

.workshop-price {
    font-size: 1.2rem;
    color: var(--color-text-main);
    flex: 0 0 auto;
}

.workshop-meta-list {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
    justify-content: left;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workshop-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.workshop-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
    margin-left: 5px;
}

/* Button Secondary Style */
.button.secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 10px 22px;
}

.button.secondary:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

/* Make whole card clickable via the Secondary button */
/* Make whole card clickable via a separate link, not the button */
.workshop-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure buttons remain clickable above the stretched link */
.workshop-card .button {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .workshop-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* Legacy Content Styling (Research, Conclusions, Exercise) */
research,
conclusions,
exercise,
.section-research,
.section-conclusions,
.section-exercise {
    display: block;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

research,
.section-research {
    background-color: #f9f9f9;
    border-left: 4px solid #999;
}

conclusions,
.section-conclusions {
    background-color: rgba(121, 180, 101, 0.1);
    /* Light Primary */
    border-left: 4px solid var(--color-primary);
}

exercise,
.section-exercise {
    background-color: #fff;
    border: 2px solid var(--color-secondary);
}

/* Format Spans (Icons/Headers) */
.research-format::before,
.section-research::before {
    content: 'Badania';
    display: block;
    font-weight: 700;
    color: #777;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    /* Increased to look like a header */
    font-family: var(--font-heading);
}

.conclusions-format::before,
.section-conclusions::before {
    content: 'Wnioski';
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    /* Increased to look like a header */
    font-family: var(--font-heading);
}

.exercise-format::before,
.section-exercise::before {
    content: 'Ćwiczenie';
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    /* Increased to look like a header */
    font-family: var(--font-heading);
}

highlight,
.highlight {
    background-color: rgba(255, 255, 0, 0.2);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* Exercise specific headers */
exercise h6 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 1rem;
}

exercise strong {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

exercise ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-bottom: 0;
    margin-top: 1em;
}

/* Table Styling */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    /* For rounded corners on table */
}

.entry-content table thead {
    background-color: var(--color-secondary);
    color: #fff;
}

.entry-content table th,
.entry-content table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.entry-content table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.entry-content table tr:last-child td {
    border-bottom: none;
}

.entry-content table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.entry-content table tr:hover {
    background-color: rgba(121, 180, 101, 0.05);
    /* Light primary hover */
}

/* Block Styles */
.entry-content code {
    background-color: #ffffff;
    color: var(--color-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px solid #e0e0e0;
}

.entry-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 2rem 0;
    border-left: 4px solid var(--color-primary);
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
    padding: 0 1rem 1rem 2rem;
    background-color: rgba(121, 180, 101, 0.05);
    /* Light primary tint */
    font-style: italic;
    color: var(--color-text-main);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

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

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5rem;
}

.entry-content ol li::marker {
    font-weight: 700;
    font-family: var(--font-heading);
}

.entry-content hr {
    border: 0;
    height: 2px;
    background-color: var(--color-primary);
    opacity: 0.3;
    margin: 3rem 0;
}

.entry-content .wp-block-button__link {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.entry-content .wp-block-button__link:hover {
    background-color: var(--color-secondary);
    color: #fff;
    text-decoration: none;
}

.comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.comment-list li.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.comment-list li.comment:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
}

.comment-meta {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #999;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--color-text-main);
    font-style: normal;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-content {
    margin-bottom: 1rem;
}

.reply a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary);
}

/* Comment Form */
.comment-respond {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.comment-reply-title small a {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form .submit {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.comment-form .submit:hover {
    background-color: var(--color-secondary);
}

.logged-in-as {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.logged-in-as a {
    color: var(--color-primary);
    font-weight: 600;
}

.required {
    color: #d32f2f;
}

.entry-content .wp-block-image,
.entry-content figure {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    /* Force figure to full width */
    display: block;
    margin-bottom: 2rem;
    text-align: center;
    /* Center caption */
}

.entry-content figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.entry-content .wp-block-image img,
.entry-content figure img,
.entry-content figure a,
.entry-content figure a img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
}

.entry-content img:hover {
    transform: scale(1.01);
}

/* Single Post Layout - Breakout Images */
.single-post-content .entry-content {
    display: flex;
    flex-direction: column;
    /* align-items: center;  Removed to allow full width */
}

.single-post-content .entry-content>* {
    width: 100%;
    max-width: 100%;
}

.single-post-content .entry-content>.wp-block-image,
.single-post-content .entry-content>figure,
.single-post-content .entry-content>img,
.single-post-content .entry-content>.alignwide,
.single-post-content .entry-content>.alignfull {
    max-width: 100%;
    /* Breakout to full 1200px */
}

/* Ensure nested images in figures also fill width */
.single-post-content .entry-content figure img {
    width: 100%;
}

/* Contact Page Specifics */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-info {
        order: -1;
        /* Show info above form on mobile */
    }

    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Workshop Details Styles */
.workshop-details-section {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.details-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-text-main);
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-box {
    color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-block {
    margin-bottom: 1.5rem;
}

.detail-block h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    font-weight: 600;
}

.takeaways-section {
    margin-top: 3rem;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.takeaways-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.takeaways-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.takeaways-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .workshop-details-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}