/* ====== Feature card ====== */
.feature-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform .3s ease, box-shadow .3s ease;
    /* Bitno: ne forsiramo height:100% da druge kartice ne rastu */
    align-self: flex-start; /* ako su kolone nekad flex, kartica neće biti razvučena */
    box-sizing: border-box;
    /* opcioni baseline da kartice ne budu premale */
    min-height: 350px;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.1); }
.feature-card.expanded { box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.15); transform: translateY(-2px); }

.feature-card .badge {
    flex-shrink: 0;
    align-self: center;
    display: inline-block;
    width: auto;
}

.feature-card h4 {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

/* Tekst + “weiter lesen” */
.small-paragraph {
    font-size: 20px;       /* obavezno 20px */
    line-height: 1.3;
    margin: .5rem 0;
    position: relative;
    text-align: left !important;
    /* ne koristimo display:flex da ne utiče na raspored ostalog */
}
.read-more { color: #007bff; cursor: pointer; font-weight: bold; }

/* Linkovi/preview sekcija držimo pri dnu kartice */
.screenshot-links { flex-shrink: 0; margin-top: auto; }

/* ====== Screenshot blok ====== */
.screenshot-container {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}
.screenshot-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .3s ease;
}
.screenshot-container:hover .screenshot-thumbnail { transform: scale(1.05); }

.screenshot-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(0,123,255,.8); color: #fff;
    opacity: 0; transition: opacity .3s ease;
    pointer-events: none;
}
.screenshot-container:hover .screenshot-overlay { opacity: 1; }
.screenshot-overlay i { font-size: 1.5rem; margin-bottom: .5rem; }
.screenshot-overlay span { font-size: .9rem; font-weight: 500; }

/* Kartice sa linkom/screenshot naslovom */
.screenshot-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.screenshot-card:hover {
    border-color: #28a745;
    background: #f8fff9;
    text-decoration: none;
}
.screenshot-card i { font-size: 1.5rem; color: #6c757d; margin-bottom: 8px; }
.screenshot-card:hover i { color: #28a745; }
.screenshot-card .text-dark {
    font-size: .95rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Badge za preglede (ako ga koristiš) */
.screenshot-badge-wrapper { text-align: center; }
.screenshot-badge {
    background: #e9ecef; color: #495057;
    padding: 10px 16px; border-radius: 20px;
    text-decoration: none; display: inline-flex; align-items: center;
    font-size: .9rem; font-weight: 500;
    transition: all .3s ease; border: 2px solid transparent;
}
.screenshot-badge:hover { background: #28a745; color: #fff; transform: scale(1.05); }

/* ====== Modal ====== */
.vjs-modal {
    position: fixed; inset: 0;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.75);
    z-index: 2000; padding: 2rem;
}
.vjs-modal.open { display: flex; }
.vjs-modal img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.vjs-close {
    position: absolute; top: 12px; right: 12px;
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: 28px; line-height: 1;
    cursor: pointer;
}
.vjs-close:hover { background: rgba(0,0,0,.7); }

/* ====== Akcione stvari ====== */
.action-button-container { margin-top: 2rem; }
.action-button-secondary {
    background: transparent; border: 2px solid #007bff; color: #007bff;
}
.action-button-secondary:hover { background: #007bff; color: #fff; }

/* ====== Naslov OCR (ako mora u jednom redu) ====== */
.ocr-title {
    white-space: normal;   /* dozvoljava prelamanje */
    word-wrap: break-word; /* ako reč preduga, prelomi */
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .feature-card { padding: 1.25rem; margin-bottom: 1rem; }
    .action-button { display: block; margin-bottom: 1rem; width: 100%; }
    .screenshot-thumbnail { height: 120px; }
}

/* ====== VAŽNO: ne forsiraj equal-height preko grida ======
   Ako negde imaš custom pravilo tipa:
   .row { display:flex }  ili  .row > [class*="col-"] { display:flex }
   ukloni to. Bootstrap već koristi flex, a ova pravila često teraju kartice da se rastegnu.
*/


.styled-list {
    list-style: none; /* sklanja default kružiće */
    padding-left: 0;
    margin: 1rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.styled-list li::before {
    content: "•"; /* custom bullet */
    position: absolute;
    left: 0;
    top: 0;
    color: #ffc107; /* žuta, da se slaže sa Optional badge */
    font-weight: bold;
}
/* fiksna visina dok je zatvorena */
.feature-card {
    height: 420px !important;
    overflow: hidden;
}

/* auto visina kada je otvorena */
.feature-card.expanded {
    height: auto !important;
    overflow: visible;
}

/* kartica: fiksna visina + rezerva na dnu za dugme */
.feature-card {
    position: relative;
    height: 420px;           /* tvoja fiksna visina */
    overflow: hidden;        /* ostaje */
    padding-bottom: 3rem;    /* REZERVA za dugme; podešavaj po potrebi */
}

/* dugme uvek pri dnu, unutar kartice */
.read-more-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;            /* razmak od dna */
    text-align: center;
    margin-top: 0;           /* gasi prethodni margin ako postoji */
}

/* paragraf ne treba da “gura” dugme naniže */
.small-paragraph { margin-bottom: 0; }