/*linija u foter-u*/
.line {
    height: 2px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

.icon-text {
    display: inline-flex;
    align-items: flex-end; /* bottom alignment */
    gap: 6px;
}

/*sections*/

body {
    background-color: #f8f9fa;
}

section {
    padding-top: 70px;
    margin-left: 4px;
    margin-right: 4px;
}

.section-tight {
    padding-top: 30px;
    margin-left: 4px;
    margin-right: 4px;
}

/*prva stranica*/
/* Mobile-first: Image is ONLY the background for column 2 */
.mobile-bg-col {
    background: url('../assets/img/bg/talasi-u-vodi.jpg') center no-repeat;
    min-height: 300px;
}

/* Desktop behaviors (768px and wider) */
@media (min-width: 768px) {

    /* Adds a 20% black overlay tint over the image */
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../assets/img/bg/talasi-u-vodi.jpg') center no-repeat;
    }

    /* Remove the duplicate mobile background */
    .mobile-bg-col {
        background: none;
        min-height: auto;
    }

    /* FORCE column 1 to be transparent and have white text on desktop */
    .responsive-text-col {
        background-color: transparent !important;
        color: #ffffff !important;
    }

        /* Forces the <h1> inside it to also turn white */
        .responsive-text-col h1 {
            color: #ffffff !important;
        }
}

/*dugmići*/
.custom-btn-green {
    appearance: none;
    background: #A2CC41;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .custom-btn-green:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

.custom-btn {
    appearance: none;
    background: #ffb349f4;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .custom-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

/* Small variant of buttons for cookie consent */

.custom-btn-green-small {
    appearance: none;
    background: #A2CC41;
    color: #fff;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    line-height: 1.2;
    padding: 6px 14px; /* tighter for small UI */
    border-radius: 20px; /* proportional to smaller size */
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

    .custom-btn-green-small:hover {
        background: #8fb837; /* slightly darker */
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .custom-btn-green-small:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .custom-btn-green-small:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(162, 204, 65, 0.4);
    }

/*fontovi*/
.custom-font-green {
    color: #A2CC41;
}

.custom-font-orange {
    color: #ffb349f4;
}

.font-bold {
    font-weight: 700;
}

.lead-sm {
    font-size: 1.10rem;
    font-weight: 300;
}

/*lista sa kružićima i bojama*/
.info-list {
    max-width: 700px;
}

.item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #d9d9d9;
}

    .item:last-child {
        border-bottom: none;
    }

.number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    font-weight: bold;
    flex-shrink: 0;
}

.yellow {
    background: #f4dc3c;
}

.orange {
    background: #ffb349f4
}

.green {
    background: #A2CC41;
}

.text {
    font-size: 1.15rem;
    font-weight: 400;
}

/*comparison slider*/
/* Fixed container bounding box */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 12px;
}

/* Base wrapper for both image layers */
.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    /* Force images to match the true size of the 800px container */
    .image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 600px; /* Must match the max-width of .comparison-container */
        height: 600px; /* Must match the height of .comparison-container */
        object-fit: cover;
        display: block;
    }

/* Top image container acting as a mask */
.img-foreground {
    width: 50%; /* Starting position */
    z-index: 2;
    overflow: hidden; /* This crops the image instead of shrinking it */
}

/* Invisible range input overlaid on top */
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
    margin: 0;
}

/* Visual slider divider line */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #ffffff;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

/* Green circular button with arrows matching your updated image */
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: #198754; /* Bootstrap success green */
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

    /* Horizontal exchange arrows icon inside button */
    .slider-button::before {
        content: '⇄';
        color: #ffffff;
        font-size: 22px;
        font-weight: bold;
    }

/* kratka linija za razdvajanje u kartama proizvoda*/
hr.short {
    width: 100%;
    max-width: 130px;
    margin: 0 auto; /* Centers the line */
    border: none;
    border-top: 2px solid #000; /* Adjust thickness and color here */
    height: 1px;
    background-color: #e5e5e5;
}

/* css za listu proizvoda u Program page*/

.product-nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.product-link {
    color: var(--bs-dark);
    text-decoration: none;
    padding: .5rem 0;
    border-bottom: 1px solid #dee2e6;
    transition: all .2s ease;
}

.product-link:hover {
    color: var(--bs-primary);
    padding-left: .25rem;
}

.product-link.active {
    color: var(--bs-primary);
    font-weight: 600;
}

.product-link::before {
    content: "›› ";
    color: var(--bs-primary);
}

/*zeleni a tag bez podvučene linije*/
.custom-font-green a {
    text-decoration: none;
    color: #A2CC41;
}

/* Honeypot */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/*linija u foter-u*/
.line {
    height: 2px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}