/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 1.6.2
*/


#Footer h2.titleFoot{
	font-size:24px;
	color:#364751;
	font-weight:700;
	margin:0 0 10px;
}
#Footer a.phoneFoot{
	font-size:36px;
	color: #DD1B38;
	font-weight:bold;
	margin-bottom:15px;
	display:block;
	clear:both;
}
#Footer a.mailFoot{
	font-size:24px;
	color: #364751;
	font-weight:bold;
	margin-bottom:15px;
	display:block;
	clear:both;
}
#Top_bar .menu > li > a span:not(.description){
	padding:0 8px;
}
.cn-button.wp-default{
	background:#dd1b38;
}
/* --- entry-content padding --- */
.entry-content {
    padding-bottom: 60px;
}

/* --- Automatyczna lista podstron (HUBy) --- */

.libud-hub-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.libud-hub-main {
    flex: 1;
    min-width: 0;
}
.libud-hub-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* Sidebar — lista linków */
.libud-subpages--list {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}
.libud-subpages__heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #999;
    background: #f7f7f7;
    padding: 10px 14px;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
}
.libud-subpages__link {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s, color .15s;
    line-height: 1.4;
}
.libud-subpages__link:last-child {
    border-bottom: none;
}
.libud-subpages__link:hover {
    background: #fef5f5;
    color: #DD1B38;
}
.libud-subpages__link--active {
    background: #fef5f5;
    color: #DD1B38;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   Typografia treści — artykuły (MFN builder + Elementor HTML)
   ═══════════════════════════════════════════════════════════ */

.column_attr,
.elementor-widget-html {

    /* ── Nagłówki ─────────────────────────────────────────── */

    h2 {
        font-size: 22px;
        font-weight: 700;
        color: #1a1a2e;
        margin: 40px 0 14px;
        padding-bottom: 10px;
        border-bottom: 3px solid #DD1B38;
        line-height: 1.3;
    }

    h2:first-child { margin-top: 0; }

    h3 {
        font-size: 17px;
        font-weight: 700;
        color: #1a1a2e;
        margin: 28px 0 10px;
        padding-left: 12px;
        border-left: 3px solid #DD1B38;
        line-height: 1.4;
    }

    h4 {
        font-size: 15px;
        font-weight: 700;
        color: #DD1B38;
        margin: 22px 0 8px;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    /* ── Akapity ──────────────────────────────────────────── */

    p {
        margin-bottom: 16px;
        line-height: 1.75;
        color: #333;
    }

    /* ── Listy nieuporządkowane ───────────────────────────── */

    ul {
        margin: 0 0 20px 0;
        padding: 0;
        list-style: none;
    }

    ul li {
        position: relative;
        padding: 6px 0 6px 22px;
        line-height: 1.65;
        color: #333;
        border-bottom: 1px solid #f3f3f3;
    }

    ul li:last-child { border-bottom: none; }

    ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 14px;
        width: 8px;
        height: 8px;
        background: #DD1B38;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* ── Listy uporządkowane ──────────────────────────────── */

    ol {
        margin: 0 0 20px 0;
        padding: 0;
        list-style: none;
        counter-reset: libud-ol;
    }

    ol li {
        position: relative;
        padding: 7px 0 7px 36px;
        line-height: 1.65;
        color: #333;
        border-bottom: 1px solid #f3f3f3;
        counter-increment: libud-ol;
    }

    ol li:last-child { border-bottom: none; }

    ol li::before {
        content: counter(libud-ol);
        position: absolute;
        left: 0;
        top: 7px;
        width: 24px;
        height: 24px;
        background: #DD1B38;
        color: #fff;
        border-radius: 50%;
        font-size: 12px;
        font-weight: 700;
        line-height: 24px;
        text-align: center;
    }

    /* ── Tabele ───────────────────────────────────────────── */

    table {
        width: 100%;
        border-collapse: collapse;
        margin: 24px 0;
        font-size: 14px;
    }

    thead tr {
        background: #1a1a2e;
        color: #fff;
    }

    thead th {
        padding: 11px 14px;
        font-weight: 600;
        text-align: left;
        letter-spacing: .03em;
    }

    tbody tr:nth-child(odd)  { background: #fff; }
    tbody tr:nth-child(even) { background: #f8f8f8; }

    tbody tr:hover { background: #fef5f5; }

    tbody td {
        padding: 10px 14px;
        border-bottom: 1px solid #ececec;
        vertical-align: top;
        color: #333;
        line-height: 1.55;
    }

    tbody td:first-child { font-weight: 600; color: #1a1a2e; }
}

/* Tabele — scroll na mobile */
.column_attr table,
.elementor-widget-html table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 860px) {
    .libud-hub-layout {
        flex-direction: column;
    }
    .libud-hub-sidebar {
        width: 100%;
        position: static;
    }
    .libud-subpages--list {
        display: flex;
        flex-wrap: wrap;
    }
    .libud-subpages__heading {
        width: 100%;
    }
    .libud-subpages__link {
        flex: 1;
        min-width: 140px;
        text-align: center;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }
    .libud-subpages__link:last-child {
        border-right: none;
    }
}
