/* Sekcija osoba/tim */
.osobe {
    padding: 10px 20px 40px 20px;
    background: #FFBB3F;
    min-height: 100vh;
}

.osobe-container {
    max-width: 1200px;
    margin: 0 auto;
}

.osobe-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 10px;
    color: #000;
    letter-spacing: 1px;
}

.osobe-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 60px;
    font-weight: 300;
}

.osobe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tablet i srednji ekrani */
@media screen and (max-width: 1024px) {
    .osobe-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 900px) {
    .osobe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.osoba-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
}

.osoba-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: #000;
}

.osoba-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.osoba-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.osoba-image-overlay {
    display: none;
}

.osoba-card:hover .osoba-image-overlay {
    display: none;
}

.osoba-fakultet-overlay {
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    padding: 10px 15px;
    line-height: 1.4;
}

.osoba-info {
    padding: 30px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.osoba-name {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #000;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.osoba-titula {
    font-size: 0.95em;
    color: #000;
    margin: 0 0 8px 0;
    font-weight: 500;
    font-style: italic;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.osoba-fakultet {
    font-size: 1em;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-style: italic;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.osoba-text {
    font-size: 0.95em;
    color: #333;
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive dizajn za osobe */
@media screen and (max-width: 768px) {
    .osobe {
        padding: 10px 15px;
    }

    .osobe-title {
        font-size: 2em;
    }

    .osobe-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .osobe-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .osoba-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .osoba-fakultet-overlay {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .osoba-info {
        padding: 25px 20px;
    }

    .osoba-name {
        font-size: 1.3em;
    }

    .osoba-titula {
        font-size: 0.9em;
    }

    .osoba-card {
        padding-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .osobe {
        padding: 10px 10px;
    }

    .osobe-title {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .osobe-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .osobe-grid {
        gap: 25px;
    }

    .osoba-image-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .osoba-fakultet-overlay {
        font-size: 0.85em;
        padding: 6px 10px;
    }

    .osoba-info {
        padding: 20px 15px;
    }

    .osoba-name {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .osoba-titula {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    .osoba-fakultet {
        font-size: 0.9em;
        margin-bottom: 12px;
    }

    .osoba-text {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .osoba-card {
        padding-top: 25px;
    }
}

