/*
 * Case study sekcie v detaile referencie (mt_portfolio).
 * Uvod stranky ostava v style ostatnych referencii (.smalltitle, h3, stlpce),
 * tieto triedy pridavaju sekcie pod nim. Pasy cez celu sirku okna riesi
 * box-shadow + clip-path, takze nevznika horizontalny scroll.
 */

.page-portfolio-content:has(.kcs-cta) {
    margin-bottom: 0;
}

.kcs-intro {
    margin-bottom: 0;
    align-items: flex-start !important;
}

.kcs-intro .wp-block-image img {
    border: 1px solid #e3e7eb;
}

.kcs-chips {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kcs-chips li {
    background: #f1f7e9;
    color: #3f5c1a;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Sekcie a pasy */

.kcs-section {
    padding: 96px 0;
}

.kcs-band {
    padding: 96px 0;
    margin: 0;
    background: var(--kcs-band);
    box-shadow: 0 0 0 100vmax var(--kcs-band);
    clip-path: inset(0 -100vmax);
}

.kcs-band--soft  { --kcs-band: #f6f7f8; }
.kcs-band--dark  { --kcs-band: #2b302d; color: #c7cec6; }
.kcs-band--green { --kcs-band: #557a24; color: #ffffff; }

.kcs-section > *:last-child,
.kcs-band > *:last-child {
    margin-bottom: 0;
}

.page-holder .kcs-h2 {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
    color: #323a48;
    margin: 0 0 20px;
    max-width: 760px;
}

.kcs-band--dark .kcs-h2,
.kcs-band--green .kcs-h2 {
    color: #ffffff;
}

.kcs-band--dark .smalltitle {
    color: #93c45a;
}

.kcs-lead {
    max-width: 760px;
}

.kcs-band--dark p {
    color: #c7cec6;
}

.kcs-band--green p {
    color: #ffffff;
}

/* Cisla */

.kcs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #f1f7e9;
    border-radius: 16px;
    padding: 12px 0;
    margin: 72px 0 0;
}

.kcs-stat {
    padding: 20px 32px;
    border-right: 1px solid #dbe8c9;
}

.kcs-stat:last-child {
    border-right: 0;
}

.kcs-stat__value {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 1;
    color: #557a24;
}

.kcs-stat__label {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #5f6873;
}

/* Karty vyzvy */

.kcs-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.kcs-card {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 14px;
    padding: 32px;
}

.kcs-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f1f7e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-holder .kcs-card h3,
.page-holder .kcs-steps h3,
.page-holder .kcs-pillars h3 {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: #323a48;
    margin: 22px 0 8px;
}

.kcs-card p,
.kcs-steps p,
.kcs-pillars p {
    margin: 0;
}

/* Kroky postupu */

.kcs-steps {
    list-style: none;
    margin: 64px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 28px;
}

.kcs-steps li {
    border-top: 2px solid #dbe8c9;
}

.kcs-step__num {
    width: 48px;
    height: 48px;
    margin-top: -25px;
    border-radius: 50%;
    background: #93c45a;
    color: #1f2a14;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skolenie (tmavy pas) */

.kcs-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 48px 0 56px;
}

.page-holder .kcs-pillars h3 {
    color: #ffffff;
    margin-top: 10px;
}

.kcs-pillar__num {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #93c45a;
}

.kcs-band--dark .wp-block-gallery img {
    border-radius: 10px;
    background: none;
}

.page-holder .kcs-rule {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.4;
    color: #ffffff;
    margin: 56px 0 0;
}

.kcs-rule strong {
    color: #93c45a;
    font-weight: 500;
}

/* Fotky */

.kcs-photos {
    margin-top: 96px;
}

.kcs-photos img {
    border-radius: 14px;
}

/* Vysledok a recenzia */

.kcs-result {
    padding: 96px 0;
    margin-bottom: 0;
    gap: 64px !important;
}

.kcs-checklist {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.kcs-checklist li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.55;
    color: #323a48;
}

.kcs-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23557a24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kcs-next {
    padding-top: 24px;
    border-top: 1px solid #e3e7eb;
}

.kcs-review {
    margin: 0;
    background: #f1f7e9;
    border-radius: 18px;
    padding: 44px;
}

.kcs-review__stars {
    display: flex;
    gap: 4px;
    margin-top: 24px;
}

.kcs-review blockquote {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.5;
    font-style: normal;
    color: #323a48;
}

.kcs-review figcaption {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.kcs-review figcaption strong {
    color: #323a48;
}

.kcs-review__link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 500;
    color: #3f5c1a;
}

/* Vyzva na kontakt */

.kcs-cta {
    padding: 80px 0;
}

.kcs-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px 48px;
}

.kcs-cta__text {
    flex: 1 1 440px;
}

.kcs-cta__text p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}

.kcs-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Medzeru riesi gap - zrus margin, ktory kodeo-buttons.css dava susednym tlacidlam. */
body .kcs-cta__buttons .kodeo-btn {
    margin: 0;
    padding: 15px 30px;
}

body .kcs-cta .kodeo-btn {
    color: #3f5c1a;
    background: #ffffff;
    border-color: #ffffff;
}

body .kcs-cta .kodeo-btn:hover,
body .kcs-cta .kodeo-btn:focus {
    color: #3f5c1a;
    background: #f1f7e9;
    border-color: #f1f7e9;
}

body .kcs-cta .kodeo-btn--outline {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
}

body .kcs-cta .kodeo-btn--outline:hover,
body .kcs-cta .kodeo-btn--outline:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border-color: #ffffff;
}

/* Responzivita */

@media (max-width: 991px) {
    .kcs-stats,
    .kcs-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kcs-stat:nth-child(2) {
        border-right: 0;
    }

    .kcs-cards,
    .kcs-pillars {
        grid-template-columns: minmax(0, 1fr);
    }

    .kcs-section,
    .kcs-band,
    .kcs-result {
        padding: 72px 0;
    }
}

@media (max-width: 575px) {
    .page-holder .kcs-h2 {
        font-size: 28px;
    }

    .kcs-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .kcs-stats {
        margin-top: 48px;
    }

    .kcs-stat {
        padding: 18px 20px;
    }

    .kcs-stat__value {
        font-size: 32px;
    }

    .kcs-stat__label {
        font-size: 14px;
    }

    .page-holder .kcs-rule {
        font-size: 22px;
    }

    .kcs-cta__buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }


    .kcs-review {
        padding: 32px 24px;
    }

    .kcs-section,
    .kcs-band,
    .kcs-result {
        padding: 56px 0;
    }
}
