/* =========================================================
   SEO CATEGORY GUIDE v1
   Globální nasazení pro SEO kategorie
   Design navazuje na Poradnu
   ========================================================= */

.category-perex,
.category__perex {
    font-family: Arial, Helvetica, sans-serif;
}

.seo-category-guide {
    max-width: 1200px;
    margin: 38px auto 32px;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
    box-sizing: border-box;
}

.seo-category-guide *,
.seo-category-guide *::before,
.seo-category-guide *::after {
    box-sizing: border-box;
}

.seo-guide-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 34px 0 17px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eeeeee;
}

.seo-guide-heading:first-child { margin-top: 0; }

.seo-guide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #f5a313;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.seo-guide-title-wrap { min-width: 0; }

.seo-guide-label {
    display: block;
    margin: 0 0 2px;
    color: #e28d00;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .65px;
}

.seo-guide-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #202020 !important;
    font-size: 23px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

/* 01 – ÚVOD */
.seo-category-guide > section:first-of-type {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 0 0 27px !important;
    box-shadow: none !important;
}

.seo-category-guide > section:first-of-type > div:first-child,
.seo-category-guide > section:first-of-type > h2 {
    display: none !important;
}

.seo-category-guide > section:first-of-type p {
    margin: 0 0 10px !important;
    color: #4a4a4a !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.seo-category-guide > section:first-of-type p:last-child {
    margin-bottom: 0 !important;
}

/* 02 – VÝBĚR */
.seo-guide-selector {
    background: #fafafa !important;
    border: 1px solid #ececec !important;
    border-radius: 13px !important;
    padding: 21px 22px !important;
    margin: 0 0 27px !important;
}

.seo-guide-selector > h2 { display: none !important; }

.seo-guide-selector > p {
    margin: 0 0 14px !important;
    color: #666 !important;
    font-size: 13px !important;
}

.seo-guide-selector > div {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.seo-guide-selector a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 9px !important;
    color: #252525 !important;
    text-decoration: none !important;
    text-align: center;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.seo-guide-selector a:hover {
    background: #fffaf0 !important;
    border-color: #f5b335 !important;
    transform: translateY(-1px);
}

/* ACCORDION */
.seo-category-guide > details:not(.seo-faq-item) {
    position: relative;
    overflow: hidden;
    margin: 0 0 9px !important;
    background: #fff !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.seo-category-guide > details:not(.seo-faq-item) > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 53px;
    padding: 14px 55px 14px 17px !important;
    margin: 0 !important;
    color: #242424 !important;
    cursor: pointer;
    list-style: none;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    user-select: none;
}

.seo-category-guide summary::-webkit-details-marker { display: none; }
.seo-category-guide summary::marker { content: ""; }

.seo-category-guide > details:not(.seo-faq-item) > summary::after,
.seo-guide-faq summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff5df;
    color: #ee9a0b;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.seo-category-guide > details[open]:not(.seo-faq-item) > summary::after,
.seo-guide-faq details[open] summary::after {
    content: "−";
}

.seo-category-guide > details:not(.seo-faq-item) > summary:hover {
    background: #fcfcfc;
}

.seo-category-guide > details:not(.seo-faq-item)[open] {
    border-color: #e2e2e2 !important;
}

.seo-category-guide > details:not(.seo-faq-item)[open] > summary,
.seo-guide-faq details[open] summary {
    border-bottom: 1px solid #f0f0f0;
}

.seo-category-guide > details:not(.seo-faq-item) > div {
    padding: 15px 18px 18px !important;
    color: #4a4a4a;
    font-size: 14px !important;
    line-height: 1.7;
}

.seo-category-guide > details:not(.seo-faq-item) p {
    margin-top: 0;
    margin-bottom: 11px;
}

.seo-category-guide > details:not(.seo-faq-item) p:last-child {
    margin-bottom: 0 !important;
}

.seo-category-guide > details:not(.seo-faq-item) ul {
    margin: 8px 0 13px !important;
    padding-left: 21px !important;
}

/* FAQ */
.seo-guide-faq {
    margin: 0 !important;
    padding: 0 !important;
}

.seo-guide-faq > h2 { display: none !important; }

.seo-guide-faq details {
    position: relative;
    overflow: hidden;
    margin: 0 0 9px !important;
    background: #fff !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 9px !important;
}

.seo-guide-faq summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 53px;
    padding: 14px 55px 14px 17px !important;
    cursor: pointer;
    list-style: none;
    color: #242424 !important;
    font-size: 14px !important;
    line-height: 1.4;
    font-weight: 700 !important;
}

.seo-guide-faq details > div {
    padding: 15px 18px 18px !important;
    color: #4a4a4a;
    font-size: 14px !important;
    line-height: 1.7;
}

/* CTA */
.seo-guide-cta {
    position: relative;
    overflow: hidden;
    margin: 27px 0 0 !important;
    padding: 23px 25px !important;
    background: #242424 !important;
    border: 0 !important;
    border-top: 3px solid #f5b335 !important;
    border-radius: 12px !important;
    color: #fff !important;
}

.seo-guide-cta > div {
    color: #f5b335 !important;
    font-size: 10px !important;
    line-height: 1.3;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.seo-guide-cta h2 {
    margin: 6px 0 7px !important;
    color: #fff !important;
    font-size: 21px !important;
    line-height: 1.3 !important;
}

.seo-guide-cta p {
    max-width: 900px;
    margin: 0 0 14px !important;
    color: #ededed !important;
    font-size: 13px !important;
    line-height: 1.6;
}

.seo-guide-cta a {
    display: inline-block !important;
    padding: 10px 16px !important;
    background: #f5b335 !important;
    border-radius: 7px !important;
    color: #202020 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* HORNÍ POPIS */
.seo-category-top {
    max-width: 1200px;
    margin: 0 auto 18px;
}

.seo-category-top > section { box-shadow: none; }

.seo-category-top a {
    transition: transform .18s ease, opacity .18s ease;
}

.seo-category-top a:hover {
    transform: translateY(-1px);
    opacity: .94;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .seo-guide-selector > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .seo-category-guide {
        margin-top: 27px;
        margin-bottom: 25px;
    }

    .seo-guide-heading {
        gap: 10px;
        margin-top: 28px;
        margin-bottom: 14px;
        padding-bottom: 11px;
    }

    .seo-guide-number {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        border-radius: 9px;
        font-size: 11px;
    }

    .seo-guide-title { font-size: 19px !important; }
    .seo-guide-label { font-size: 9px; }

    .seo-guide-selector { padding: 17px !important; }

    .seo-guide-selector > div {
        grid-template-columns: 1fr !important;
    }

    .seo-guide-selector a {
        justify-content: flex-start;
        min-height: 42px;
        text-align: left;
    }

    .seo-category-guide > details:not(.seo-faq-item) > summary,
    .seo-guide-faq summary {
        min-height: 51px;
        padding: 13px 49px 13px 14px !important;
        font-size: 13px !important;
    }

    .seo-category-guide > details:not(.seo-faq-item) > summary::after,
    .seo-guide-faq summary::after {
        right: 11px;
        width: 26px;
        height: 26px;
    }

    .seo-category-guide > details:not(.seo-faq-item) > div,
    .seo-guide-faq details > div {
        padding: 14px 15px 16px !important;
        font-size: 13px !important;
    }

    .seo-guide-cta { padding: 20px !important; }
}
