/* Main Container */
.country-slider-container {
    display: flex;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    gap: 30px;
    background: transparent;
    /* Changed from #f0f0f0 to transparent */
    padding: 30px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Nav Wrapper (Sidebar) */
.country-slider-nav-wrapper {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 0;
    background: #EBEBEB;
    /* Added background for nav track */
    border-radius: 50px;
    /* Pill shape */
}

.country-slider-nav-arrow {
    background: #a366a3;
    border: none;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin: 10px 0;
    transition: background 0.3s;
}

.country-slider-nav-arrow:hover {
    background: #7a4a7a;
}

.country-slider-nav-arrow span {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.country-slider-nav {
    height: 600px;
    /* Updated height */
    overflow: hidden;
    width: 100%;
    position: relative;
}

.country-slider-nav-inner {
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    /* Changed to absolute for easier manual positioning/centering */
    top: 0;
    /* Changed from 50% to 0 to avoid offset conflict */
    left: 0;
    width: 100%;
    transform: translateY(0);
    /* Reset default transform */
}

.country-slider-nav-item {
    width: 100px;
    /* Updated width */
    height: 100px;
    /* Updated height */
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    /* Default border */
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
    background: #fff;
}

.country-slider-nav-item.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #a366a3;
    /* Double border effect */
    opacity: 1;
    transform: scale(1.1);
}

.country-slider-flag {
    width: 100%;
    height: 100%;
}

.country-slider-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Content Area */
.country-slider-content-wrapper {
    flex-grow: 1;
    position: relative;
}

/* Mobile Content Arrows (Hidden by default) */
.country-slider-mobile-arrow {
    display: none;
    position: absolute;
    top: 200px;
    /* Approx center of image height (400px/2) - simplified */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 20;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #333;
}

.country-slider-mobile-arrow.left {
    left: 10px;
}

.country-slider-mobile-arrow.right {
    right: 10px;
}

.country-slider-mobile-arrow span {
    font-size: 24px;
}

.country-slider-content-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.country-slider-content-item.active {
    display: block;
}

.country-slider-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: none;
    /* Removed shadow */
    border: 4px solid #DFE2E6;
    /* Added specific border color */
}

.country-slider-text {
    margin-top: 20px;
}

.country-slider-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.country-slider-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .country-slider-container {
        flex-direction: column;
        padding: 15px;
    }

    .country-slider-nav-wrapper {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        order: 1;
        /* Nav ON TOP */
        height: auto;
        padding: 10px 0;
    }

    .country-slider-nav {
        height: 100px;
        width: calc(100% - 80px);
        /* Space for arrows */
        overflow: hidden;
    }

    .country-slider-nav-inner {
        flex-direction: row;
        width: max-content;
        /* Allow track to be as long as needed */
        gap: 10px;
        top: 0;
        left: 0;
        /* JS controls position */
        transform: none;
        /* Reset default centered transform */
        justify-content: flex-start;
        /* Ensure items start at 0 for math to work */
        height: 100%;
        align-items: center;
    }

    .country-slider-nav-arrow {
        margin: 0;
    }

    .country-slider-nav-arrow.up {
        transform: rotate(-90deg);
        /* Left */
    }

    .country-slider-nav-arrow.down {
        transform: rotate(-90deg);
        /* Right */
    }

    .country-slider-content-wrapper {
        order: 2;
        /* Content BELOW */
    }

    .country-slider-image img {
        height: 250px;
    }

    /* Hide scrollbar for nav */
    .country-slider-nav::-webkit-scrollbar {
        display: none;
    }

    .country-slider-nav-item {
        width: 85px;
        height: 85px;
    }
}