* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d; /* Zatamnjeno da više paše uz index.html */
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* Skriva samo horizontalni scroll */
    color: white;
}

/* Skrivanje scrollbara za webkit preglednike (Chrome, Safari) */
body::-webkit-scrollbar {
    display: none;              
}

/* NAVBAR (Isti kao na index.html) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar .nav-links {
    display: flex;
    gap: 40px;
}

.navbar .nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #6EBFC4;
}

/* Logo preuzet iz stilova prve stranice */
.navbar .logo {
    width: 35px;
    height: 35px;
    background: white;
    mask: url('photos/logo.png') no-repeat center;
    -webkit-mask: url('photos/logo.png') no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    transition: 0.3s;
}

.navbar .logo:hover {
    background: #6EBFC4;
    cursor: pointer;
}


/* NASLOVI */
h1 {
    font-family: 'Playfair Display SC', serif;
    font-size: 60px;
    text-align: center;
    margin-top: 130px; /* Kompenzacija za fixed navbar */
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

h2 {
    color: #6EBFC4;
    font-size: 24px;
    text-align: center;
    font-family: 'Playfair Display SC', serif;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

h3 {
    font-family: 'Playfair Display SC', serif; /* Usklađeno s naslovima */
    font-size: 32px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}


/* TIM GRID */
.team {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;       
    justify-content: center; 
    padding: 0 20px;
    margin: 0 auto 60px auto;
}

.member {
    width: 260px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.member:hover {
    transform: translateY(-10px); /* Hover efekt podizanja */
}

.bg {
    width: 100%;
    height: 340px;
    border-radius: 8px;
    padding: 4px; /* Unutarnji prostor kako bi boja djelovala kao okvir */
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Reže sliku ako je krive proporcije umjesto da ju spljošti */
    border-radius: 4px;
}

.opis {
    font-family: 'Montserrat', sans-serif;
    color: #cccccc;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
}

/* ŠIROKA KARTICA (JOKAR) */
.member-wide-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px 80px 20px;
}

.member-wide {
    width: 100%;
    max-width: 1180px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-wide {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.bg-wide img {
    width: 100%;
    height: 100%;
    max-height: 392px;
    object-fit: cover;
    border-radius: 4px;
}

.tekst-wide {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.vopop {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.opis-wide {
    font-family: 'Montserrat', sans-serif;
    color: #cccccc;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    display: inline-block; /* Drži tekst centriranim unutar bloka, ali lijevo poravnatim unutar sebe */
}

/* RESPONSIVE DIZAJN ZA TIM */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .navbar .nav-links { display: none; } /* Ovdje bi se kasnije trebao dodati burger menu */
    
    h1 { font-size: 45px; margin-top: 100px; }
    h2 { font-size: 18px; margin-bottom: 40px; }
    
    .team { gap: 30px; }
    
    .member { width: 100%; max-width: 300px; }
    
    .bg-wide { max-height: 250px; }
    .bg-wide img { max-height: 242px; }
}