/* Experts — Homepage section + dedicated /odbornici page */

/* Vertical padding for .expert-section and .expert-reviews-section (dedicated /odbornici
   page — intro, expert cards, closing CTA band) now comes from the shared .section class
   (styles.css) on the element itself. */

.expert-section .usecase-tiles {
    margin-bottom: 2.5rem;
}

/* Shared green squiggle (same visual language as the "O nás" story quote) */
.er-squiggle {
    display: block;
    width: 92px;
    height: 11px;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg width='124' height='14' viewBox='0 0 124 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 2 2 C 12 2, 12 12, 22 12 S 32 2, 42 2 S 52 12, 62 12 S 72 2, 82 2 S 92 12, 102 12 S 112 2, 122 2' stroke='%2373b7ab' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Standalone divider between the featured expert and the rest */
.er-divider {
    margin: 2.5rem 0;
}

/* ── Featured expert — plain layout (no card), photo fills row height + plain quote ── */
.er-featured {
    display: grid;
    grid-template-columns: minmax(220px, 400px) 1fr;
    gap: 2.5rem;
    align-items: stretch;
    margin: 1.5rem 0;
    padding: 0 2.5rem;
}

.er-featured-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.er-featured-photo img {
    height: 440px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 24px;
    display: block;
}

.er-photo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--clr-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-green);
    flex-shrink: 0;
}

.er-photo-placeholder--large {
    width: 100%;
    max-height: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    margin: 0 auto;
}

.er-featured-name {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-dark);
}

/* Generic collapsible quote (featured + cards) */
.er-quote.is-collapsed {
    max-height: 6.6em;
    overflow: hidden;
}

.er-toggle-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-green);
    cursor: pointer;
}

.er-occupation {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.er-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.9rem;
}

.er-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-green);
    text-decoration: none;
}

.er-link:hover {
    text-decoration: underline;
}

.er-link--sm {
    font-size: 0.78rem;
    gap: 0.3rem;
}

/* Plain quote text — no color/italic/bold accent */
.er-quote {
    margin: 1.5rem 0 0;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.65;
    color: var(--text-dark);
}

/* ── Homepage: 4 same-size expert cards (photo, name, occupation, one-sentence quote) ── */
.er-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.er-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    background: var(--clr-beige);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.er-card:hover {
    transform: translateY(-2px);
}

.er-card-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-bottom: 0.5rem;
}

.er-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.er-card-occupation {
    font-size: 0.78rem;
    color: var(--text-light);
}

.er-card-quote {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0.5rem 0 0;
}

/* ── Homepage: banner CTA for schools/institutions — soft mint tint (green/white mix) ── */
.er-banner {
    background: color-mix(in srgb, var(--clr-green) 20%, #fff);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.er-banner-content {
    max-width: 640px;
}

.er-banner-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.er-banner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.er-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.er-banner-badge svg {
    color: var(--clr-green);
    flex-shrink: 0;
}

.er-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.er-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-green);
    text-decoration: none;
    white-space: nowrap;
}

.er-banner-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .er-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .er-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem;
    }

    .er-banner-badges {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .er-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .expert-section {
        padding: 1.5rem 0;
    }

    .er-featured {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0;
    }

    .er-featured-photo img {
        height: 320px;
    }

    .er-featured-name {
        font-size: 1.25rem;
    }
}

/* ── Dedicated /odbornici page ── */

.experts-page-title {
    margin-bottom: 2.5rem;
}

.experts-intro-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Intro — 2 equal columns: text left, round photo right */
.experts-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2.5rem;
}

.experts-intro-highlight {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.experts-intro-body {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.experts-intro-photo {
    display: flex;
    justify-content: center;
}

.experts-intro-photo img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: var(--shadow-card);
}

/* Benefits — full-bleed beige section below the intro (same pattern as .b2b-section) */
/* Vertical padding + beige background come from the shared .section/.section--beige
   (styles.css) classes. This section has no .container inside, so it still needs its own
   horizontal padding (longhand, so it adds to rather than overwrites .section's padding). */
.experts-benefits-section {
    padding-left: 1rem;
    padding-right: 1rem;
}

.experts-benefits-inner {
    max-width: 1150px;
    margin: 0 auto;
}

.experts-benefits-title {
    margin: 0 0 1.75rem;
}

.experts-section-title {
    margin-bottom: 2.5rem;
}

.experts-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.75rem;
}

/* Duplicated from style.css (.benefit-item) — this page doesn't load style.css */
.experts-benefits-grid .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.experts-benefits-grid .benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-green);
    flex-shrink: 0;
}

.experts-benefits-grid .benefit-icon svg {
    width: 26px;
    height: 26px;
}

.experts-benefits-grid .benefit-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.experts-benefits-grid .benefit-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Other experts — small cards: photo+meta row on top, collapsible quote below, photo always left */
.expert-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.expert-card {
    background: var(--clr-beige);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    scroll-margin-top: 100px;
}

.expert-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.expert-card-photo img,
.expert-card-photo .er-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    flex-shrink: 0;
}

.expert-card-meta {
    flex: 1;
    min-width: 0;
}

.expert-card-quote {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .experts-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .experts-intro-photo {
        order: -1;
    }

    .experts-intro-ctas {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .experts-benefits-title {
        font-size: 1.8rem;
    }

    .experts-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .expert-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .expert-card-meta .er-links {
        justify-content: center;
    }
}
