@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,700,700i,800&subset=latin-ext");
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,400i,700,700i,800&subset=latin-ext");
@import url("https://fonts.googleapis.com/css?family=Oswald&subset=latin-ext");
/* --- Základní styly --- */
    .sp-module-wrapper * { box-sizing: border-box; }
    .sp-module-wrapper { font-family: 'Open Sans', sans-serif; color: #333; }
    .sp-main-container { 
        max-width: 420px; 
        float: right; 
        margin: 0 0 7px 15px; 
        background-color: #ffffff; 
        border: 1px solid #d42e25;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
        overflow: hidden; 
        display: block; 
    }
    .sp-content-padding { padding: 15px; display: block; float: none; }

    /* --- Hlavička rubriky --- */
    .sp-topic-header { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; width: 100%; clear: both; }
    .sp-topic-header-content { position: relative; z-index: 1; background-color: #fff; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .sp-topic-icon img { width: 80px; height: 80px; display: block; }
    .sp-topic-title { font-family: 'Oswald', sans-serif; font-size: 1.8rem; text-transform: uppercase; margin: 0; line-height: 1.1; }
    .sp-title-strong { font-weight: 700; color: #d42e25; letter-spacing: 0.08em; display: block; }
    .sp-title-light { font-weight: 300; color: #333; letter-spacing: -0.05em; display: block; margin-top: 5px; }
    .sp-topic-description { font-family: 'Open Sans', sans-serif; font-size: 0.9rem; margin: 8px 0 0 0; letter-spacing: 0.1em; text-transform: uppercase; }

    /* --- Box o firmě --- */
    .sp-company-box {
        border: 1px solid #e0e0e0;
        padding: 15px;
        margin-bottom: 20px;
        background-color: #f9f9f9;
    }
    .sp-company-box,
    .sp-company-box p,
    .sp-company-box a,
    .sp-company-box strong {
        font-family: 'Open Sans', sans-serif !important;
        font-size: 11px !important;
    }
    .sp-company-box h3 {
        font-family: 'Oswald', sans-serif !important;
        font-size: 1.3rem !important;
        text-transform: uppercase;
        margin-top: 0;
        margin-bottom: 10px;
        color: #d42e25 !important;
    }
    .sp-company-box p {
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.2;
    }
    .sp-company-box a {
        color: #d42e25 !important;
        text-decoration: none;
        font-weight: bold;
    }
    .sp-company-box a:hover {
        text-decoration: underline;
    }
    .sp-map-icon {
        width: 12px;
        height: 12px;
        vertical-align: middle;
        margin-left: 3px;
    }

    /* --- Slider dílů --- */
    .sp-slider-section-title {
        font-family: 'Oswald', sans-serif;
        font-size: 1.2rem;
        text-transform: uppercase;
        margin-bottom: 15px;
        border-bottom: 2px solid #e0e0e0;
        padding-bottom: 5px;
    }
    .sp-slider-outer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
    }
    .sp-slider-nav-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px; 
        flex-shrink: 0;
        visibility: hidden; 
        transition: opacity 0.2s;
    }
    .sp-slider-nav-btn:hover {
        opacity: 0.7;
    }
    .sp-slider-nav-btn img {
        width: 100%;
        height: auto;
        display: block;
    }
    .sp-slider-wrapper {
        overflow: hidden;
        flex-grow: 1;
        margin: 0 10px;
    }
    .sp-slider-track {
        display: flex;
        transition: transform 0.4s ease-in-out;
        width: 100%;
    }
    .sp-slider-page {
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 15px 5px;
    }
    .sp-slider-item {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: #333;
    }
    .sp-slider-item-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        border: 2px solid #e0e0e0;
        transition: border-color 0.2s ease-in-out;
    }
    .sp-slider-item-text {
        font-family: 'Roboto Condensed', sans-serif;
        font-size: 0.75rem;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
    }
    .sp-slider-item:hover .sp-slider-item-image {
        border-color: #d42e25;
    }
    .sp-slider-item:hover .sp-slider-item-text {
        color: #d42e25;
    }

    /* --- Responzivita pro mobilní zařízení --- */
    @media (max-width: 600px) {
        .sp-main-container {
            float: none;
            margin: 0 auto 20px auto; 
            max-width: 100%; 
        }
    }

/* Zabrání roztažení slideru ve flexboxu. */
.sp-slider-wrapper { min-width: 0; }
.sp-slider-page { min-width: 0; }
