/* ===================================
   Portal o Meblach — custom.css
   Replika motywu Blogxer (style2)
   v2.7.5
   =================================== */

/* === Reset parent header styles === */
.pom-header .stb-header-inner {
    display: none;
}

/* === HEADER Row 1: Dark top bar — centered logo === */
.pom-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: none;
    padding: 0;
}

.pom-header-top {
    background: #1b1d1f;
    padding: 0.625rem 0;
}

.pom-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1.5rem;
}

.pom-header-spacer {
    flex: 1;
}

.pom-header-top .custom-logo-link {
    flex: 0 0 auto;
}

.pom-header-top .custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.pom-header-top .stb-site-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.pom-search-toggle {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pom-search-toggle:hover {
    opacity: 1;
}

/* === HEADER Row 2: White nav bar — centered menu === */
.pom-header-nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
}

.pom-header-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 1.5rem;
}

.pom-header-nav .stb-nav {
    display: flex;
}

.pom-header-nav .stb-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
}

.pom-header-nav .stb-menu li a {
    display: block;
    padding: 13px 1.25rem 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color 0.2s, text-decoration-color 0.2s;
    font-family: var(--font-body);
}

.pom-header-nav .stb-menu li a:hover {
    color: #b8865a;
    text-decoration: underline;
    text-decoration-color: #b8865a;
    text-decoration-thickness: 2px;
}

.pom-header-nav .stb-menu li.current-menu-item a {
    color: #b8865a;
    text-decoration: underline;
    text-decoration-color: #b8865a;
    text-decoration-thickness: 2px;
}

.pom-header-nav .stb-menu-toggle {
    display: none;
}

/* === Center-Mode Slider (3 visible) === */
.pom-slider {
    position: relative;
    background: #111;
    overflow: hidden;
}

.pom-slider-track {
    display: flex;
    transition: transform 0.6s ease;
}

.pom-slide {
    flex: 0 0 33.333%;
    overflow: hidden;
    position: relative;
    padding: 0 0.4rem;
    box-sizing: border-box;
}

.pom-slide-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.pom-slide-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 770 / 500;
    object-fit: cover;
    display: block;
}

.pom-slide-placeholder {
    aspect-ratio: 770 / 500;
    background: #2a2a2a;
}

.pom-slide-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.45);
}

.pom-slide-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    align-items: center;
}

.pom-slide-meta-sep {
    opacity: 0.5;
}

.pom-slide-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
    color: #fff;
}

.pom-slide-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.25rem;
    max-width: 500px;
}

.pom-slide-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.25rem;
    transition: background 0.2s, border-color 0.2s;
}

.pom-slide-readmore:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.pom-arrow {
    font-size: 1rem;
    transition: transform 0.2s;
}

.pom-slide-link:hover .pom-arrow {
    transform: translateX(3px);
}

/* Slider nav buttons */
.pom-slider .stb-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}

.pom-slider .stb-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pom-slider-prev {
    left: 1.5rem;
}

.pom-slider-next {
    right: 1.5rem;
}

/* === Billboard ad under slider === */
.pom-billboard-ad {
    max-width: var(--container-width);
    margin: -22px auto;
    padding: 0 1.5rem;
    overflow: hidden; /* BFC — contains CB wrapper 32px margins; negative margins reduce visual gap to ~10px */
}

.pom-billboard-ad + .stb-container {
    padding-top: 0;
}

.pom-billboard-ad + .stb-container > .stb-home-layout {
    margin-top: 0;
}

/* === Container spacing === */
.stb-container {
    padding-top: 2rem;
}

/* Header containers inherit stb-container — reset their vertical padding */
.pom-header-top-inner,
.pom-header-nav-inner {
    padding-top: 0;
    padding-bottom: 0;
}


/* === Grid section (no section headers) === */
.pom-grid-section {
    margin-bottom: 2rem;
}

.stb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* === Card: Blogxer style === */
.pom-card {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pom-card .stb-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pom-card .stb-card-thumb {
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 1rem;
}

.pom-card .stb-card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 370 / 250;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.96, 0.34, 1);
}

.pom-card:hover .stb-card-thumb img {
    transform: scale(1.05);
}

.pom-card .stb-card-body {
    padding: 0.75rem;
}

.pom-card-meta {
    display: flex;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.5rem;
    align-items: center;
}

.pom-card-meta-sep {
    opacity: 0.5;
}

.pom-card .stb-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    color: #111;
}

.pom-card:hover .stb-card-title {
    color: var(--color-accent);
}

.pom-card .stb-card-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.pom-readmore-link {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    text-decoration: none;
}

/* === Home Layout (66/33) === */
.stb-home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin-top: 1rem;
}

/* === Sidebar widgets === */
.stb-home-sidebar .stb-widget {
    border: none;
    background: transparent;
    padding: 0.75rem;
    border-radius: 0;
    margin-bottom: 2rem;
}

.stb-widget-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
    font-weight: 700;
    color: #111;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #111;
}

/* === Tabs Widget (ARTICALES POST) === */
.pom-tabs-title {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.pom-tab-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.pom-tab-nav li a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.pom-tab-nav li.pom-tab-active a,
.pom-tab-nav li a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.pom-tab-content {
    display: none;
    padding-top: 1rem;
}

.pom-tab-content.pom-tab-active {
    display: block;
}

.pom-tab-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.pom-tab-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pom-tab-thumb {
    flex: 0 0 80px;
    border-radius: 0;
    overflow: hidden;
}

.pom-tab-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.pom-tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    flex: 1;
}

.pom-tab-meta {
    display: flex;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #999;
    align-items: center;
}

.pom-tab-meta a {
    color: var(--color-accent);
    text-decoration: none;
}

.pom-tab-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.pom-tab-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.pom-tab-title a:hover {
    color: var(--color-accent);
}

/* === Categories widget === */
.pom-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pom-cat-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.pom-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.pom-cat-list li a:hover {
    color: var(--color-accent);
}

.pom-cat-count {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* === Featured Posts widget === */
.pom-featured-first {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.pom-featured-thumb-large {
    display: block;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.pom-featured-thumb-large img {
    width: 100%;
    height: auto;
    display: block;
}

.pom-featured-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0.4rem 0;
}

.pom-featured-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.pom-featured-title a:hover {
    color: var(--color-accent);
}

.pom-featured-excerpt {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.pom-featured-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.pom-featured-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* === Category sections === */
.pom-cat-section {
    margin-bottom: 2rem;
}

.pom-cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1b1d1f;
    padding-bottom: 0.5rem;
}

.pom-cat-section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b1d1f;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pom-cat-section-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pom-cat-section-more:hover {
    color: #1b1d1f;
}

/* === Inline ad between category sections === */
.pom-inline-ad {
    margin: 1.5rem 0;
}

/* === Footer ad strip (before footer) === */
.pom-footer-ad {
    margin: 1.5rem 0 0;
}

/* === Footer: Blogxer dark style === */
.pom-footer {
    background: #1b1d1f;
    color: #b0b0b0;
    padding: 2.5rem 0 0;
}

.pom-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pom-footer-logo .custom-logo-link img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.pom-footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pom-footer-links a {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

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

.pom-footer-sep {
    color: #555;
    font-size: 0.85rem;
}

/* Hide plugin compliance footer (injected via wp_footer) */
body > nav.footer-legal,
body > p.copyright,
body > p.company-info {
    display: none;
}

.pom-footer .stb-footer-legal {
    text-align: center;
    color: #777;
    font-size: 0.8rem;
    padding: 1rem 0;
    margin-top: 0;
    border-top: none;
}

.pom-footer .stb-footer-legal p {
    margin: 0;
}

/* === Archive/Single: Dark title + breadcrumb bar === */
.stb-archive-header {
    background: #1b1d1f;
    color: #fff;
    margin-bottom: 2rem;
}

.stb-archive-header h1,
.stb-archive-header .stb-post-title {
    color: #fff;
}

.stb-archive-header .stb-breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
}

.stb-archive-header .stb-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.stb-archive-header .stb-breadcrumbs a:hover {
    color: #fff;
}

.stb-archive-header .stb-breadcrumbs-sep {
    color: rgba(255, 255, 255, 0.4);
}

.stb-archive-header .stb-breadcrumbs-current {
    color: rgba(255, 255, 255, 0.9);
}

/* === Body === */
body {
    font-weight: 400;
    line-height: 1.75;
    background: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .stb-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stb-home-layout {
        grid-template-columns: 1fr 280px;
    }

    .pom-slide {
        flex: 0 0 50%;
    }

    .pom-slide-title {
        font-size: 1.5rem;
    }

    .pom-slide-excerpt {
        display: none;
    }
}

@media (max-width: 768px) {
    .pom-header-nav {
        position: relative;
    }

    .pom-header-nav .stb-menu-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .pom-header-nav .stb-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #333;
    }

    .pom-header-nav .stb-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .pom-header-nav .stb-nav.stb-nav-open {
        display: block;
    }

    .pom-header-nav .stb-menu {
        flex-direction: column;
    }

    .pom-header-nav .stb-menu li a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .pom-slide {
        flex: 0 0 100%;
    }

    .stb-home-layout {
        grid-template-columns: 1fr;
    }

    .pom-slide-title {
        font-size: 1.25rem;
    }

    .pom-slide-overlay {
        padding: 1.5rem;
    }

    .stb-slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .pom-slider-prev {
        left: 0.75rem;
    }

    .pom-slider-next {
        right: 0.75rem;
    }

    .pom-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stb-grid-3 {
        grid-template-columns: 1fr;
    }

    .pom-slide-overlay {
        padding: 1rem 1.25rem;
    }

    .pom-slide-title {
        font-size: 1.1rem;
    }

    .pom-slide-meta,
    .pom-slide-excerpt,
    .pom-slide-readmore {
        display: none;
    }
}

/* === Accessibility: focus-visible === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.pom-slide-link:focus-visible {
    outline-offset: -2px;
}

.pom-header-nav .stb-menu li a:focus-visible {
    outline-offset: -2px;
}

/* === Accessibility: reduced motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .pom-slider-track {
        scroll-behavior: auto;
    }

    .pom-card .stb-card-thumb img {
        transition: none;
    }

    .pom-card:hover .stb-card-thumb img {
        transform: none;
    }
}

/* ===================================
   Contact form
   =================================== */
.pom-contact-page {
    max-width: 640px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}

.pom-contact-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pom-contact-intro {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pom-form-row {
    margin-bottom: 1.25rem;
}

.pom-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.pom-required {
    color: var(--color-accent);
}

.pom-form-row input,
.pom-form-row select,
.pom-form-row textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.pom-form-row input:focus,
.pom-form-row select:focus,
.pom-form-row textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.pom-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.pom-submit-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-header-bg);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s;
}

.pom-submit-btn:hover {
    background: var(--color-accent);
}

.pom-submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pom-form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.pom-form-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.pom-form-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* === Sidebar: no sticky === */
.stb-sidebar {
    position: static;
}

