/* ===== CUSTOM HEADER ===== */

.my-custom-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
    padding: 18px 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 999;
}

.my-custom-header .my-header-logos,
.my-custom-header .my-header-menu,
.my-custom-header .my-subpage-hero-inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* logá */
.my-custom-header .my-header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.my-custom-header .my-header-logos a,
.my-custom-header .my-header-logos img {
    display: block;
}

.my-custom-header .my-header-logos img {
    max-height: 78px;
    width: auto;
    height: auto;
}

/* menu */
.my-custom-header .my-header-menu {
    width: 100%;
}

.my-custom-header ul.my-menu {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 12px !important;
}

.my-custom-header ul.my-menu > li {
    flex: 1 1 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.my-custom-header ul.my-menu > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    background: #edf7f1;
    border: 1px solid #cfe5d6;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #49b26b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
}

.my-custom-header ul.my-menu > li > a:hover,
.my-custom-header ul.my-menu > li.current-menu-item > a,
.my-custom-header ul.my-menu > li.current_page_item > a {
    background: #49b26b;
    color: #ffffff;
    border-color: #49b26b;
}

/* hero na podstránkach */
.my-subpage-hero {
    width: 100%;
    margin-top: 18px;
    padding: 38px 0 34px;
    background: #DFF3EC;
}

.my-breadcrumbs {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 14px;
    color: #49b26b;
}

.my-breadcrumbs a {
    color: #49b26b;
    text-decoration: none;
    font-weight: 500;
}

.my-breadcrumbs a:hover {
    text-decoration: underline;
}

.my-subpage-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #49b26b;
}

/* skryť pôvodný header témy */
.site-header {
    display: none !important;
}

/* ===== FOOTER ===== */

html,
body {
    min-height: 100%;
}

#page.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content.site-content {
    flex: 1 0 auto;
}

.my-custom-footer {
    margin-top: auto;
    flex-shrink: 0;
    background: #F2FBF8;
    padding: 40px 0 30px;
}

.my-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.6fr;
    gap: 30px;
    align-items: start;
}

.my-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-footer-links a {
    text-decoration: none;
    color: #49b26b;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
}

.my-footer-links a:hover {
    color: #2f6f4f;
}

.my-footer-map iframe {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    display: block;
}

.my-footer-social {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.my-footer-social img {
    width: 42px;
    height: 42px;
    transition: 0.2s;
    display: block;
}

.my-footer-social img:hover {
    transform: scale(1.1);
}

.elementor-section:last-child,
.elementor-container:last-child,
.elementor-widget:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
    .my-custom-header {
        padding: 15px 0 18px;
    }

    .my-custom-header .my-header-logos,
    .my-custom-header .my-header-menu,
    .my-custom-header .my-subpage-hero-inner,
    .my-footer-inner {
        padding: 0 15px;
    }

    .my-custom-header .my-header-logos {
        flex-direction: column;
        gap: 12px;
    }

    .my-custom-header .my-header-logos img {
        max-height: 62px;
    }

    .my-custom-header ul.my-menu {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .my-custom-header ul.my-menu > li > a {
        font-size: 16px;
        min-height: 48px;
        padding: 10px 14px;
    }

    .my-subpage-hero {
        padding: 24px 0 22px;
    }

    .my-breadcrumbs {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .my-subpage-title {
        font-size: 30px;
    }

    .my-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .my-footer-links {
        align-items: center;
    }

    .my-footer-map iframe {
        height: 200px;
    }

    .my-footer-social {
        justify-content: center;
    }
}

.my-custom-header .my-subpage-hero .my-subpage-title {
    color: #49b26b !important;
}

.my-custom-header .my-subpage-hero .my-subpage-title,
.my-custom-header .my-subpage-hero h1 {
    color: #49b26b !important;
}


.single-post .post-share {
    display: none !important;
}

.single-post .category-meta {
    display: none !important;
}

.dss-archive-accordion {
    max-width: 1440px;
    margin: 0 auto;
}

.dss-archive-month {
    background: #f2fbf8;
    border: 1px solid #cfe5d6;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.dss-archive-month summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-size: 24px;
    font-weight: 700;
    color: #49b26b;
    background: #eaf7f2;
}

.dss-archive-month summary::-webkit-details-marker {
    display: none;
}

.dss-archive-post-list {
    list-style: none;
    margin: 0;
    padding: 10px 22px 18px;
}

.dss-archive-post-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #dfeee7;
}

.dss-archive-post-list li:last-child {
    border-bottom: none;
}

.dss-archive-post-list a {
    color: #2f6f4f;
    text-decoration: none;
    font-weight: 600;
}

.dss-archive-post-list a:hover {
    text-decoration: underline;
}

.dss-archive-date {
    color: #6b6b6b;
    white-space: nowrap;
    font-size: 14px;
}

@media (max-width: 768px) {
    .dss-archive-month summary {
        font-size: 20px;
        padding: 16px 18px;
    }

    .dss-archive-post-list {
        padding: 8px 18px 16px;
    }

    .dss-archive-post-list li {
        flex-direction: column;
        gap: 6px;
    }

    .dss-archive-date {
        white-space: normal;
    }
}