/*
Theme Name: OWES-ZG
Theme URI: https://example.com/owes-zg
Author: Antigravity AI
Author URI: https://example.com
Description: Szybki i nowoczesny motyw WordPress stworzony dla OWES-ZG, w pełni kompatybilny z Divi Builderem, dostosowany do oficjalnej palety barw i zawierający wyszukiwarkę podmiotów w React.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: owes-zg
*/

/* 1. Definicje zmiennych (Paleta barw Wariantu A oraz typografia) */
:root {
    --owes-dark-blue: #143652;
    --owes-hero-grad-start: #0f2c45;
    --owes-hero-grad-end: #0c5f86;
    --owes-med-blue: #008bc3;
    --owes-orange: #f2af46;
    --owes-green: #219138;
    --text-dark: #42525f;
    --text-light: #5b6b7a;
    --text-muted: #8a98a6;
    --bg-light: #f5f7f9;
    --border-color: #e7edf2;
    --font-primary: 'Public Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-size-multiplier: 1;
}

/* 2. Reset i style ogólne */
html {
    font-size: calc(16px * var(--font-size-multiplier, 1));
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--owes-dark-blue);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 0;
}

a {
    color: var(--owes-med-blue);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--owes-dark-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.owes-zg-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Klasa dla powtarzalnego gradientu diagnostycznego / placeholderów */
.ph {
    background-image: repeating-linear-gradient(45deg, #e3eaf0 0, #e3eaf0 9px, #edf2f6 9px, #edf2f6 18px);
    background-color: #f0f3f6;
}

/* 3. Utility Bar i Dostępność */
.top-bar {
    background-color: var(--owes-dark-blue);
    color: #cdd9e3;
    font-size: 0.8125rem; /* 13px */
    padding: 9px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-contact {
    display: flex;
    gap: 22px;
    align-items: center;
}

.top-bar-contact a {
    color: #cdd9e3;
}

.top-bar-contact a:hover {
    color: #ffffff;
}

.top-bar-divider {
    color: #5b7187;
}

.top-bar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-text {
    opacity: 0.85;
}

.wcag-controls {
    display: inline-flex;
    gap: 6px;
}

.wcag-btn {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border: 1px solid #3a5571;
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #cdd9e3;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.wcag-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 4. Główny Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 13px;
}

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

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--owes-med-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
}

.logo-meta {
    line-height: 1.15;
}

.logo-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--owes-dark-blue);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
}

/* Menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
}

.menu-items li a {
    color: var(--owes-dark-blue);
    padding: 8px 0;
}

.menu-items li a:hover,
.menu-items li.current-menu-item a {
    color: var(--owes-med-blue);
}

/* Kontakt jako przycisk */
.menu-items li.menu-item-btn a,
.menu-items li:last-child a {
    background: var(--owes-dark-blue);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.menu-items li.menu-item-btn a:hover,
.menu-items li:last-child a:hover {
    background: var(--owes-med-blue);
    color: #ffffff;
}

/* Menu mobilne hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--owes-dark-blue);
    margin: 4px 0;
    transition: 0.3s;
}

/* 5. Home Page (front-page.php) */

/* Hero */
.hero-section {
    position: relative;
    background: linear-gradient(120deg, var(--owes-hero-grad-start) 0%, var(--owes-dark-blue) 45%, var(--owes-hero-grad-end) 100%);
    padding: 72px 0;
    overflow: hidden;
}

.hero-section .ph {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--owes-orange);
    border: 1px solid rgba(242, 175, 70, 0.5);
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 22px;
}

.hero-title {
    font-size: 50px;
    line-height: 1.05;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 18px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.55;
    color: #bcd0df;
    margin: 0 0 28px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 3px;
    display: inline-block;
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--owes-dark-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 3px;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Quick Cards */
.quick-cards-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.quick-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.quick-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.quick-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 3px;
}

.quick-card-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--owes-dark-blue);
    margin: 0;
}

.quick-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-light);
    flex: 1;
}

.quick-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--owes-med-blue);
}

/* Nabór Highlight */
.nabor-highlight-section {
    background: var(--bg-light);
    padding-bottom: 20px;
}

.nabor-highlight-container {
    transform: translateY(-22px);
}

.nabor-highlight-box {
    background: var(--owes-dark-blue);
    border-radius: 6px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(20, 54, 82, 0.22);
    gap: 20px;
}

.nabor-highlight-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nabor-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--owes-green);
    color: #ffffff;
    border-radius: 5px;
    padding: 11px 16px;
    min-width: 80px;
    text-align: center;
}

.nabor-date-badge .lbl-do {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.85;
}

.nabor-date-badge .day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.nabor-date-badge .year {
    font-size: 12px;
    opacity: 0.85;
}

.nabor-meta-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--owes-orange);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nabor-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.nabor-btn {
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-weight: 700;
    font-size: 14px;
    padding: 13px 22px;
    border-radius: 3px;
    white-space: nowrap;
}

.nabor-btn:hover {
    background: #ffffff;
    color: var(--owes-dark-blue);
}

/* Aktualności Home */
.news-section-home {
    padding: 14px 0 52px;
}

.news-header-home {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.news-header-indicator {
    width: 44px;
    height: 4px;
    background: var(--owes-med-blue);
    margin-bottom: 12px;
}

.news-header-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0;
}

.news-header-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--owes-med-blue);
}

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

.post-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.post-card-image {
    height: 140px;
    position: relative;
}

.post-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--owes-med-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
}

.post-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-card-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
}

.post-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--owes-dark-blue);
    line-height: 1.3;
    margin: 0;
}

.post-card-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-light);
    flex: 1;
}

.post-card-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--owes-med-blue);
}

/* Statystyki */
.stats-section {
    background: var(--owes-dark-blue);
    padding: 46px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    border-left: 3px solid var(--owes-orange);
    padding-left: 18px;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #9fb6c8;
    margin-top: 7px;
}

/* 6. Stopka (footer.php) */
.site-footer {
    background: #0f2c45;
    color: #9fb6c8;
}

/* Unijny pasek */
.eu-funding-strip {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.eu-funding-container {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.eu-logo-placeholder {
    width: 140px;
    height: 46px;
    border-radius: 3px;
}

.eu-funding-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #9aa8b4;
}

/* Widgety w stopce */
.footer-widgets {
    padding: 48px 0 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #21425c;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--owes-med-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
}

.footer-logo-meta {
    line-height: 1.2;
}

.footer-logo-title {
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
}

.footer-logo-subtitle {
    font-size: 11px;
    color: #7f97ab;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--owes-dark-blue);
    display: inline-block;
}

.footer-widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 14px;
}

.footer-links a {
    color: #9fb6c8;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-info {
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact-info .title {
    color: #ffffff;
    font-weight: 600;
}

/* Dolny pasek */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.footer-bottom-links a {
    color: #9fb6c8;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* 7. Układ dwukolumnowy i pasek boczny (Sidebar) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 36px 0 48px;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.widget-search-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.widget-search-input {
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 14px;
    flex: 1;
    background: transparent;
    font-family: var(--font-primary);
}

.widget-search-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.widget-search-btn:hover {
    background: var(--owes-med-blue);
}

.widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--owes-dark-blue);
    border-bottom: 2px solid var(--owes-orange);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.widget-categories-list {
    display: flex;
    flex-direction: column;
}

.widget-category-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-dark);
    padding: 9px 0;
    border-bottom: 1px solid #eef2f5;
}

.widget-category-row a {
    color: var(--text-dark);
}

.widget-category-row a:hover {
    color: var(--owes-med-blue);
}

.widget-category-count {
    color: var(--text-muted);
}

.widget-recent-posts {
    display: flex;
    flex-direction: column;
}

.widget-recent-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f5;
}

.widget-recent-post-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    flex-shrink: 0;
}

.widget-recent-post-meta {
    display: flex;
    flex-direction: column;
}

.widget-recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--owes-dark-blue);
    line-height: 1.3;
}

.widget-recent-post-title a {
    color: var(--owes-dark-blue);
}

.widget-recent-post-title a:hover {
    color: var(--owes-med-blue);
}

.widget-recent-post-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.widget-cta-box {
    background: var(--owes-dark-blue);
    border-radius: 6px;
    padding: 24px;
    color: #ffffff;
}

.widget-cta-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.widget-cta-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #bcd0df;
    margin: 0 0 16px;
}

.widget-cta-btn {
    display: inline-block;
    background: var(--owes-orange);
    color: var(--owes-dark-blue);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 3px;
}

.widget-cta-btn:hover {
    background: #ffffff;
    color: var(--owes-dark-blue);
}

/* 8. Single Post (single.php) */
.post-header-bar {
    padding: 32px 0 28px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--owes-dark-blue);
}

.post-header-badge {
    display: inline-block;
    background: var(--owes-med-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.post-header-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 16px;
    line-height: 1.15;
    max-width: 840px;
}

.post-header-meta {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-author-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #cfe0ec;
    display: inline-block;
}

.post-header-meta-divider {
    color: var(--text-muted);
}

.post-header-comments {
    color: var(--owes-med-blue);
    font-weight: 600;
}

.post-featured-image-area {
    margin-bottom: 14px;
}

.post-featured-image {
    height: 340px;
    border-radius: 6px;
    width: 100%;
    object-fit: cover;
}

.post-image-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.post-lead-text {
    font-size: 19px;
    line-height: 1.65;
    color: var(--owes-dark-blue);
    font-weight: 600;
    margin: 0 0 22px;
}

.post-body-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark);
}

.post-body-text p {
    margin: 0 0 20px;
}

.post-body-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 32px 0 14px;
}

.block-quote {
    border-left: 4px solid var(--owes-orange);
    background: #fbf7ee;
    padding: 20px 24px;
    margin: 26px 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--owes-dark-blue);
    font-style: italic;
}

.block-quote-author {
    font-style: normal;
    font-size: 13px;
    color: #8a7d68;
    margin-top: 10px;
}

.download-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.download-icon {
    width: 46px;
    height: 46px;
    border-radius: 3px;
    background: #eef4f8;
    color: var(--owes-med-blue);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-meta {
    flex: 1;
}

.download-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--owes-dark-blue);
}

.download-info {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.download-btn {
    background: var(--owes-med-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 3px;
}

.download-btn:hover {
    background: var(--owes-dark-blue);
    color: #ffffff;
}

.post-footer-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag-item {
    font-size: 13px;
    color: var(--text-light);
    background: #f0f3f6;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
}

.post-share {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-share-title {
    font-size: 13px;
    color: var(--text-light);
}

.post-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-block;
}

.post-share-btn.fb { background: var(--owes-dark-blue); }
.post-share-btn.tw { background: var(--owes-med-blue); }
.post-share-btn.li { background: var(--owes-green); }

/* Related Posts */
.related-posts-section {
    padding: 0 0 52px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding-top: 40px;
}

.related-posts-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 18px;
}

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

.related-post-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
}

.related-post-image {
    height: 120px;
}

.related-post-content {
    padding: 16px;
}

.related-post-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.related-post-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--owes-dark-blue);
    line-height: 1.3;
    margin: 0;
}

.related-post-title a {
    color: var(--owes-dark-blue);
}

.related-post-title a:hover {
    color: var(--owes-med-blue);
}

/* 9. Page Template (page.php) */
.page-hero-bar {
    padding: 40px 0 36px;
    background: linear-gradient(120deg, var(--owes-dark-blue), var(--owes-hero-grad-end));
    color: #ffffff;
}

.page-hero-bar .breadcrumbs,
.page-hero-bar .breadcrumbs a {
    color: #9fc4dc;
}

.page-hero-bar .breadcrumbs a:hover {
    color: #ffffff;
}

.page-hero-title {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #ffffff;
}

.page-hero-desc {
    font-size: 18px;
    line-height: 1.55;
    color: #bcd0df;
    margin: 0;
    max-width: 640px;
}

.page-two-col-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* Spis treści na podstronie */
.page-sidebar-nav {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-sidebar-nav-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.page-sidebar-nav-links {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
}

.page-sidebar-nav-item {
    font-size: 14px;
    padding: 9px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--text-dark);
    cursor: pointer;
}

.page-sidebar-nav-item.active,
.page-sidebar-nav-item:hover {
    border-left-color: var(--owes-med-blue);
    color: var(--owes-med-blue);
}

.page-sidebar-help-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 18px;
}

.page-sidebar-help-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--owes-dark-blue);
    margin-bottom: 10px;
}

.page-sidebar-help-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Treść podstrony */
.page-content-prose {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark);
}

.page-lead-prose {
    font-size: 18px;
    line-height: 1.7;
    color: var(--owes-dark-blue);
    font-weight: 600;
    margin: 0 0 22px;
}

.page-content-prose p {
    margin: 0 0 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    background: #ffffff;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--owes-dark-blue);
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Kroki */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 34px;
}

.step-row {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f5;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--owes-dark-blue);
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 3px;
}

/* Page CTA Band */
.page-cta-band {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.page-cta-band-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--owes-dark-blue);
}

.page-cta-band-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 4px;
}

.page-cta-band-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 3px;
    white-space: nowrap;
}

.page-cta-band-btn:hover {
    background: var(--owes-med-blue);
    color: #ffffff;
}

/* 10. Archive / Blog Template (archive.php) */
.archive-header-bar {
    padding: 36px 0 26px;
    border-bottom: 1px solid var(--border-color);
}

.archive-header-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 10px;
}

.archive-header-desc {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 22px;
    max-width: 620px;
}

.archive-categories-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-filter-badge {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f3f6;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.archive-filter-badge.active,
.archive-filter-badge:hover {
    background: var(--owes-dark-blue);
    color: #ffffff;
    border-color: var(--owes-dark-blue);
}

/* Featured Post Card */
.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 26px;
    background: #ffffff;
}

.featured-post-card-image {
    min-height: 240px;
    position: relative;
}

.featured-post-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--owes-green);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 2px;
}

.featured-post-card-content {
    padding: 26px 26px 26px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.featured-post-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 12px;
    line-height: 1.25;
}

.featured-post-title a {
    color: var(--owes-dark-blue);
}

.featured-post-title a:hover {
    color: var(--owes-med-blue);
}

.featured-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 14px;
}

.featured-post-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--owes-med-blue);
}

/* Grid of rest */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Paginacja */
.pagination-area {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.pagination-area .page-numbers {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 600;
}

.pagination-area .page-numbers.current {
    background: var(--owes-dark-blue);
    color: #ffffff;
    border-color: var(--owes-dark-blue);
}

.pagination-area .page-numbers:not(.current):hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.pagination-area .dots {
    border: none;
    color: var(--text-muted);
}

/* 11. Search Results (search.php) */
.search-header-bar {
    padding: 40px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.search-header-container {
    max-width: 720px;
}

.search-page-form {
    border: 1px solid #cfd9e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(20, 54, 82, 0.05);
}

.search-page-input {
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 17px;
    flex: 1;
    background: transparent;
    font-family: var(--font-primary);
    color: var(--owes-dark-blue);
}

.search-page-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.search-page-btn:hover {
    background: var(--owes-med-blue);
}

.search-results-info {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 16px;
}

.search-results-info strong {
    color: var(--owes-dark-blue);
}

.search-results-list {
    max-width: 860px;
    padding: 14px 0 44px;
}

.search-result-item {
    padding: 24px 0;
    border-bottom: 1px solid #eef2f5;
}

.search-result-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.search-result-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 2px;
}

.search-result-badge.post { background: var(--owes-med-blue); }
.search-result-badge.page { background: var(--owes-dark-blue); }
.search-result-badge.company { background: var(--owes-green); }

.search-result-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--owes-dark-blue);
    margin: 0 0 7px;
}

.search-result-title a {
    color: var(--owes-dark-blue);
}

.search-result-title a:hover {
    color: var(--owes-med-blue);
}

.search-result-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0 0 8px;
}

.search-result-url {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--owes-med-blue);
}

/* 12. 404 Page (404.php) */
.error-404-container {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-light), #ffffff);
}

.error-404-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    line-height: 1;
    letter-spacing: -0.04em;
}

.error-404-divider {
    width: 64px;
    height: 4px;
    background: var(--owes-orange);
    margin: 18px 0 26px;
}

.error-404-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--owes-dark-blue);
    margin: 0 0 12px;
}

.error-404-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 28px;
    max-width: 480px;
}

.error-404-search {
    width: 100%;
    max-width: 480px;
    border: 1px solid #cfd9e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 7px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(20, 54, 82, 0.05);
    margin-bottom: 30px;
}

.error-404-search-input {
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 15px;
    flex: 1;
    background: transparent;
    font-family: var(--font-primary);
}

.error-404-search-btn {
    background: var(--owes-dark-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.error-404-search-btn:hover {
    background: var(--owes-med-blue);
}

.error-404-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-404-link-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--owes-dark-blue);
    border: 1px solid #cfd9e1;
    padding: 10px 20px;
    border-radius: 3px;
    background: #ffffff;
}

.error-404-link-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.error-404-home-btn {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: var(--owes-med-blue);
    padding: 10px 22px;
    border-radius: 3px;
}

.error-404-home-btn:hover {
    background: var(--owes-dark-blue);
    color: #ffffff;
}

/* 13. Tryb wysokiego kontrastu (Accessibility WCAG) */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.high-contrast a,
body.high-contrast button {
    text-decoration: underline !important;
}

body.high-contrast a:hover,
body.high-contrast button:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
    text-decoration: none !important;
}

body.high-contrast a *,
body.high-contrast button * {
    background-color: transparent !important;
    color: inherit !important;
}

/* Responsywność */
@media (max-width: 1024px) {
    .quick-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .page-two-col-layout {
        grid-template-columns: 1fr;
    }
    .featured-post-card {
        grid-template-columns: 1fr;
    }
    .featured-post-card-content {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .owes-zg-container {
        padding: 0 20px;
    }
    .header-container {
        padding: 16px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        z-index: 10;
        padding: 20px;
    }
    .main-navigation.is-active {
        display: block;
    }
    .menu-items {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .menu-items li.menu-item-btn a,
    .menu-items li:last-child a {
        text-align: center;
        display: block;
    }
    .hero-title {
        font-size: 36px;
    }
    .quick-cards-grid {
        grid-template-columns: 1fr;
    }
    .nabor-highlight-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .nabor-btn {
        width: 100%;
        text-align: center;
    }
    .posts-grid-three {
        grid-template-columns: 1fr;
    }
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

