/* CAROUSEL */

        [data-component="carousel"] {
            --carousel-bar-height: 44px;
        }

        [data-component="carousel"] .carousel-item img {
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }

        .carousel-select {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 5;
        }

        .carousel-select .dropdown-toggle {
            background: rgba(12, 35, 62, 0.85);
            backdrop-filter: blur(12px);
            color: #e7f4ff;
            border: 1px solid rgba(160, 215, 255, 0.35);
            border-radius: 30px;
            padding: 6px 18px;
            width: auto;
            min-width: 0;
            font-size: 0.9rem;
            font-weight: 500;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
            transition: background 0.2s ease;
        }

        .carousel-select .dropdown-toggle:hover,
        .carousel-select .dropdown-toggle.show {
            background: #194879;
            color: #ffffff;
            border-color: #8ed5ff;
        }

        .carousel-select .dropdown-toggle::after {
            margin-left: 10px;
            color: #98d7ff;
        }

        .carousel-select .dropdown-menu {
            background: rgba(12, 35, 62, 0.97);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(160, 215, 255, 0.25);
            border-radius: 12px;
            padding: 6px;
            max-height: 45vh;
            overflow-y: auto;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        }

        .carousel-select .dropdown-item {
            color: #d7eaff;
            border-radius: 6px;
            padding: 7px 14px;
            font-size: 0.9rem;
        }

        .carousel-select .dropdown-item:hover,
        .carousel-select .dropdown-item:focus {
            background: rgba(100, 180, 255, 0.15);
            color: #ffffff;
        }

        .carousel-select .dropdown-item.active {
            background: #20558c;
            color: #ffffff;
        }

        [data-component="carousel"] .carousel-caption {
            bottom: 3.5rem;
        }


        /* PREDSTAVENIE KRAJINY */

        .country-detail-conclusion p {
            position: relative;
            margin: 0;
            font-size: 1.02rem;
            line-height: 1.85;
            font-weight: 400;
            color: #f0f7ff !important;
        }


        .country-detail {
            --country-accent: #529bc9;
            --country-border: var(--bs-border-color-translucent);

            max-width: 1200px;
            margin: 0 auto;
            padding: 36px 0 48px;
            color: var(--bs-body-color);
        }


        /* HLAVICKA KRAJINY */

        .country-detail-head {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 24px;
        }

        .country-detail-badge {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 68px;
            height: 68px;
            border-radius: 16px;
            background: linear-gradient(
                135deg,
                #0d2d4f,
                #245f9b
            );
            color: #e7f4ff;
            font-size: 1.2rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            box-shadow: 0 6px 18px rgba(15, 50, 90, 0.15);
        }

        .country-detail-title {
            min-width: 0;
        }

        .country-detail-title h1 {
            margin: 0 0 5px;
            font-size: clamp(1.7rem, 3vw, 2.4rem);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.025em;
        }

        .country-detail-title h2 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 400;
            line-height: 1.5;
            color: var(--bs-secondary-color);
        }


        /* UVOD */

        .country-detail-intro {
            margin-bottom: 32px;
            padding: 12px 0 12px 22px;
            border-left: 3px solid var(--country-accent);
        }

        .country-detail-intro p {
            margin: 0;
            font-size: 1.08rem;
            line-height: 1.85;
        }


        /* TEMATICKE SEKCIE */

        .country-detail-sections {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

        .country-section {
            position: relative;
            min-width: 0;
            padding: 26px;
            background: var(--bs-body-bg);
            border: 1px solid var(--country-border);
            border-radius: 14px;
            box-shadow: 0 4px 18px rgba(10, 30, 55, 0.035);
        }

        .country-section::before {
            content: "";
            display: block;
            width: 32px;
            height: 3px;
            margin-bottom: 16px;
            background: var(--country-accent);
            border-radius: 3px;
        }

        .country-section h3 {
            margin: 0 0 12px;
            font-size: 1.15rem;
            font-weight: 600;
            line-height: 1.4;
            color: var(--bs-emphasis-color);
        }

        .country-section p {
            margin: 0;
            font-size: 0.98rem;
            line-height: 1.8;
            color: var(--bs-body-color);
        }


        /* ZAVERECNE PREDSTAVENIE */

        .country-detail-conclusion {
            position: relative;
            overflow: hidden;
            margin-top: 28px;
            padding: 30px;
            background: linear-gradient(
                115deg,
                #091c32,
                #153b65,
                #20558c
            );
            border: 1px solid rgba(140, 200, 240, 0.15);
            border-radius: 14px;
            color: #e7f4ff;
        }

        .country-detail-conclusion::before {
            content: "";
            display: block;
            width: 42px;
            height: 3px;
            margin-bottom: 18px;
            background: #98d7ff;
            border-radius: 3px;
        }

        .country-detail-conclusion p {
            position: relative;
            margin: 0;
            font-size: 1.02rem;
            line-height: 1.85;
        }


        /* TABLET */

        @media (max-width: 991.98px) {

            .country-detail-sections {
                grid-template-columns: 1fr;
                gap: 16px;
            }

        }


        /* MOBILNE ZARIADENIA */

        @media (max-width: 767.98px) {

            .carousel-select {
                position: relative;
                bottom: auto;
                left: auto;
                transform: none;
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100%;
                height: var(--carousel-bar-height);
                background: linear-gradient(
                    110deg,
                    #091c32,
                    #1d5089
                );
            }

            .carousel-select .dropdown-toggle {
                background: transparent;
                border: none;
                border-radius: 0;
                box-shadow: none;
                padding: 6px 20px;
            }

            .carousel-select .dropdown-toggle:hover,
            .carousel-select .dropdown-toggle.show {
                background: transparent;
            }

            [data-component="carousel"] .carousel-control-prev,
            [data-component="carousel"] .carousel-control-next {
                bottom: var(--carousel-bar-height);
            }

            [data-component="carousel"] .carousel-caption {
                bottom: 1rem;
            }

            .country-detail {
                padding: 24px 0 32px;
            }

            .country-detail-head {
                align-items: flex-start;
                gap: 14px;
                margin-bottom: 20px;
            }

            .country-detail-badge {
                width: 48px;
                height: 48px;
                border-radius: 12px;
                font-size: 0.95rem;
            }

            .country-detail-title h1 {
                font-size: 1.65rem;
            }

            .country-detail-title h2 {
                font-size: 0.95rem;
            }

            .country-detail-intro {
                padding: 6px 0 6px 16px;
                margin-bottom: 24px;
            }

            .country-detail-intro p {
                font-size: 1rem;
                line-height: 1.75;
            }

            .country-section {
                padding: 20px;
                border-radius: 12px;
            }

            .country-section h3 {
                font-size: 1.08rem;
            }

            .country-section p {
                font-size: 0.95rem;
                line-height: 1.75;
            }

            .country-detail-conclusion {
                margin-top: 20px;
                padding: 22px;
                border-radius: 12px;
            }

            .country-detail-conclusion p {
                font-size: 0.98rem;
                line-height: 1.75;
            }

        }

@media (max-width: 767.98px) {

    .carousel-select {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
    }

    .carousel-select .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 100% !important;
        transform: none !important;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

/* LEGO – article preview: full text remains in the DOM. */
.country-section > p.country-section-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.country-section-toggle[hidden] {
    display: none;
}

/* FULLMEDIA – decentný textový odkaz článku */
.country-section > .country-section-toggle.btn-link {
    --bs-btn-color: #256da5;
    --bs-btn-hover-color: #194879;
    --bs-btn-active-color: #194879;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    margin-left: auto;
    text-align: right;
    background: transparent;
    border: 0;
    box-shadow: none;
}

[data-bs-theme="dark"] .country-section > .country-section-toggle.btn-link {
    --bs-btn-color: #98d7ff;
    --bs-btn-hover-color: #e7f4ff;
    --bs-btn-active-color: #e7f4ff;
}

.country-section > .country-section-toggle.btn-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* FULLMEDIA – zarovnanie fotografii pri jedno- a dvojriadkovych nadpisoch */
@media (min-width: 992px) {
    .country-detail-sections > .country-section > h3 {
        min-height: 2lh;
    }
}

/* FULLMEDIA - zarovnanie odkazu doprava */
.country-section > .country-section-toggle.btn-link:not([hidden]) {
    display: block;
}
