:root {
    --zs-primary: #0066b3;
    --zs-primary-dark: #004d87;
    --zs-primary-light: #e6f2fb;
    --zs-accent: #f7931e;
    --zs-accent-dark: #db7c0a;
    --zs-text: #1e2533;
    --zs-muted: #6c757d;
    --zs-bg-light: #f4f8fd;
    --zs-border: #dce8f3;
    --zs-radius: 10px;
    --zs-shadow: 0 2px 12px rgba(0, 102, 179, 0.07);
    --zs-shadow-hover: 0 8px 28px rgba(0, 102, 179, 0.15);
}

/* ── Typography ── */
html, body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--zs-text);
    line-height: 1.75;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a { color: var(--zs-primary); text-decoration: none; }
a:hover { color: var(--zs-primary-dark); text-decoration: underline; }


/* ── Buttons ── */
.btn-primary {
    background-color: var(--zs-primary);
    border-color: var(--zs-primary);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--zs-primary-dark);
    border-color: var(--zs-primary-dark);
}

.btn-outline-primary {
    border-color: var(--zs-primary);
    color: var(--zs-primary);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--zs-primary);
    border-color: var(--zs-primary);
}

.btn-accent {
    background-color: var(--zs-accent);
    border-color: var(--zs-accent);
    color: #fff;
    font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus {
    background-color: var(--zs-accent-dark);
    border-color: var(--zs-accent-dark);
    color: #fff;
}

/* ── Header ── */
.site-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.site-header .navbar-brand {
    padding: 0;
}

.site-logo {
    height: 58px;
    width: auto;
}

.site-header .navbar-nav {
    gap: 0.5rem;
    margin-left: 2rem;
}

.site-header .nav-link {
    color: var(--zs-text);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.75rem;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

.site-header .nav-link:hover {
    color: var(--zs-primary);
    text-decoration: none;
}

.site-header .nav-link.active {
    color: var(--zs-primary);
    border-bottom: 2px solid var(--zs-accent);
}

.btn-app-redirect::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 0.6rem;
    vertical-align: middle;
    transition: transform 0.2s;
}

.btn-app-redirect:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
}

.btn-app-redirect {
    background: linear-gradient(135deg, var(--zs-accent), #e8830a);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(247, 147, 30, 0.45);
    transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
    white-space: nowrap;
}

.btn-app-redirect:hover,
.btn-app-redirect:focus,
.btn-app-redirect:focus-visible,
.btn-app-redirect:active {
    background: linear-gradient(135deg, #e8830a, var(--zs-accent-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.6);
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

/* ── Navbar toggler ── */
.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(0, 102, 179, 0.25);
    outline: none;
}

/* ── Sections ── */
.section { padding: 1.25rem 0 3.5rem; }
.section-light { background: var(--zs-bg-light); }

.section-title {
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--zs-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--zs-accent);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── Hero slider ── */
.hero-slider {
    margin-bottom: 2rem;
}

.hero-slider .carousel-item {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-color: var(--zs-primary-dark);
    color: #fff;
}

.hero-slider .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    left: 10%;
    right: 10%;
}

.hero-slider .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 0.75rem;
}

.hero-slider .carousel-caption p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    opacity: 0.95;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.5;
    background-color: #fff;
    border: none;
}

.hero-slider .carousel-indicators .active {
    opacity: 1;
    background-color: var(--zs-accent);
}

/* ── Course / article cards ── */
.course-card, .article-card {
    border: 1px solid var(--zs-border);
    border-top: 3px solid var(--zs-primary);
    border-radius: var(--zs-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--zs-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover, .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--zs-shadow-hover);
}

.course-card-img, .article-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--zs-primary-light);
}

.course-card-body, .article-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title, .article-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--zs-text);
}

.course-card-perex, .article-card-perex {
    color: var(--zs-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-card-meta {
    font-size: 0.82rem;
    color: var(--zs-muted);
    margin-bottom: 0.5rem;
}

/* ── References marquee ── */
.logos-marquee {
    overflow: hidden;
    position: relative;
}

.logos-marquee::before,
.logos-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logos-marquee::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.logos-marquee::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
    animation: logos-scroll 15s linear infinite;
}

.logos-marquee:hover .logos-track {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(0.6) opacity(0.65);
    transition: filter 0.3s;
}

.logos-marquee:hover .logo-item img {
    filter: grayscale(0) opacity(1);
}

@keyframes logos-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

/* ── Breadcrumb ── */
.breadcrumb {
    background: var(--zs-primary-light);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--zs-primary);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--zs-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--zs-primary);
    font-weight: 600;
}

/* ── HTML content (from ContentBlock editor) ── */
.html-content {
    font-size: 1.02rem;
    line-height: 1.85;
}

.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.html-content h2 {
    font-size: 1.4rem;
    color: var(--zs-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--zs-primary-light);
}

.html-content h3 {
    font-size: 1.15rem;
    color: var(--zs-primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.html-content h1 {
    color: var(--zs-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.html-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.html-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.html-content li { margin-bottom: 0.3rem; }
.html-content ul ul { list-style-type: circle; }
.html-content ul ul ul { list-style-type: square; }
.html-content ol ol { list-style-type: lower-alpha; }
.html-content ol ol ol { list-style-type: lower-roman; }

.html-content p {
    margin-bottom: 1rem;
}

.html-content strong {
    color: var(--zs-text);
}

/* ── Course detail sidebar ── */
.course-sidebar {
    background: #fff;
    border: 1px solid var(--zs-border);
    border-top: 3px solid var(--zs-primary);
    border-radius: var(--zs-radius);
    box-shadow: var(--zs-shadow);
    padding: 1.25rem;
    overflow: hidden;
}

.course-sidebar--accent {
    border-top-color: var(--zs-accent);
}

.course-sidebar--accent .course-sidebar-title {
    color: var(--zs-accent-dark);
    border-bottom-color: rgba(247, 147, 30, 0.2);
}

.course-sidebar-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--zs-primary);
    margin-bottom: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--zs-primary-light);
}

.course-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 -1.25rem 0;
}


.course-sidebar-menu a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--zs-text);
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.course-sidebar-menu a:hover {
    background: var(--zs-primary-light);
    color: var(--zs-primary);
    border-left-color: var(--zs-primary);
    text-decoration: none;
}

.course-sidebar-menu a.active {
    background: var(--zs-primary-light);
    color: var(--zs-primary);
    font-weight: 600;
    border-left-color: var(--zs-primary);
}

.course-sidebar--accent .course-sidebar-menu a:hover {
    background: rgba(247, 147, 30, 0.08);
    color: var(--zs-accent-dark);
    border-left-color: var(--zs-accent);
}

.course-sidebar--accent .course-sidebar-menu a.active {
    background: rgba(247, 147, 30, 0.08);
    color: var(--zs-accent-dark);
    border-left-color: var(--zs-accent);;
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, #1b2f45 0%, #111e2b 100%);
    color: #adbdcc;
    padding: 3.5rem 0 0;
    border-top: 3px solid var(--zs-accent);
}

.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1;
}

.footer-brand-za   { color: #e05555; }
.footer-brand-skol { color: #4db8f0; }

.site-footer h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.site-footer p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #7a9ab5;
}

.footer-nav li {
    margin-bottom: 0.2rem;
}

.footer-nav a {
    color: #adbdcc;
    font-size: 0.92rem;
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 0.4rem;
    text-decoration: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: #adbdcc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.15s;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-contact-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.footer-bottom {
    border-top: 1px solid #1e3248;
    margin-top: 3rem;
    padding: 1.1rem 0;
    color: #4d6a82;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: #4d6a82;
    transition: color 0.15s;
}

.footer-bottom a:hover {
    color: #adbdcc;
    text-decoration: none;
}

/* ── Scroll to top button ── */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--zs-border);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s, border-color 0.2s;
    pointer-events: none;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn::after {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--zs-muted);
    border-top: 2px solid var(--zs-muted);
    transform: rotate(45deg);
    margin-top: 5px;
    transition: border-color 0.2s;
}

.scroll-top-btn--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    border-color: var(--zs-primary);
}

.scroll-top-btn:hover::after {
    border-color: var(--zs-primary);
}

/* ── Cookie banner ── */
html.cookie-accepted #cookie-banner { display: none; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #15202e;
    color: #cdd8e3;
    border-top: 3px solid var(--zs-accent);
    padding: 1rem 1.5rem;
    z-index: 1050;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner strong {
    color: #fff;
}

/* ── Stats bar ── */
.section-stats {
    background: linear-gradient(135deg, var(--zs-primary-dark) 0%, #003a6b 100%);
    padding: 3rem 0;
    margin-bottom: 1.5rem;
}

.stat-item {
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s, background 0.2s;
    border-radius: var(--zs-radius);
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
}

.stat-item:hover .stat-number {
    color: var(--zs-accent);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.25rem 0.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 1.9rem;
    }
}

/* ── Feature cards (Proč ZaŠkol?) ── */
.feature-card {
    text-align: center;
    padding: 2rem 1.25rem;
    height: 100%;
    background: #fff;
    border-radius: var(--zs-radius);
    box-shadow: var(--zs-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--zs-shadow-hover);
}

.feature-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.feature-icon--primary {
    background: var(--zs-primary-light);
}

.feature-icon--accent {
    background: rgba(247, 147, 30, 0.12);
}

.feature-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zs-text);
    margin-bottom: 0.6rem;
}

.feature-text {
    color: var(--zs-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Testimonial cards ── */
.testimonial-card {
    background: #fff;
    border-radius: var(--zs-radius);
    box-shadow: var(--zs-shadow);
    padding: 2rem 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 3px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--zs-shadow-hover);
    border-left-color: var(--zs-accent);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 1.25rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--zs-accent);
    font-family: Georgia, serif;
    opacity: 0.4;
}

.testimonial-quote {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--zs-text);
    font-style: italic;
    flex: 1;
    margin: 0.75rem 0 1.25rem;
}

.testimonial-author {
    border-top: 1px solid var(--zs-border);
    padding-top: 0.85rem;
}

.testimonial-company {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--zs-primary);
    text-decoration: none;
}

a.testimonial-company:hover {
    color: var(--zs-primary-dark);
    text-decoration: underline;
}

/* ── Contact form card ── */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--zs-border);
    border-top: 3px solid var(--zs-primary);
    border-radius: var(--zs-radius);
    box-shadow: var(--zs-shadow);
    position: sticky;
    top: 6rem;
    overflow: hidden;
}

.contact-form-card-header {
    background: var(--zs-primary-light);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--zs-border);
}

.contact-form-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--zs-primary);
    margin: 0 0 0.2rem;
}

.contact-form-card-subtitle {
    font-size: 0.88rem;
    color: var(--zs-muted);
    margin: 0;
}

.contact-form-card-body {
    padding: 1.5rem;
}

.contact-form-card .form-floating > .form-control {
    border-color: var(--zs-border);
    border-radius: 8px;
}

.contact-form-card .form-floating > .form-control:focus {
    border-color: var(--zs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.15);
}

.contact-form-card .form-floating > label {
    color: var(--zs-muted);
    font-size: 0.9rem;
}

.contact-textarea {
    border-color: var(--zs-border);
    border-radius: 8px;
    resize: vertical;
}

.contact-textarea:focus {
    border-color: var(--zs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.15);
}

.contact-submit {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.contact-success {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-success-icon {
    width: 56px;
    height: 56px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.contact-success strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-success p {
    color: var(--zs-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ── 404 ── */
.page-not-found {
    text-align: center;
    padding: 6rem 0;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .site-header .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .section { padding: 2.5rem 0; }
    .hero-slider .carousel-item { min-height: 320px; }
    .hero-slider .carousel-caption h2 { font-size: 1.5rem; }
    .hero-slider .carousel-caption p { font-size: 0.95rem; }
    .section-title { font-size: 1.5rem; }
}
