* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f9;
    color: #333;
}

header {
    background-color: #1e293b;
    color: white;
    padding: 20px 0;
}

.wrapper_header {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.naslov {
    font-size: 18px;
}

nav {
    font-size: 16px;
}

.hero {
    background-color: steelblue;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
}

main {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    grid-template-areas:
    "prvi drugi treci"
    "cetvrti peti peti"
    ;
}

.prvi{
    grid-area: prvi;
}

.drugi{
    grid-area: drugi;
}

.treci{
    grid-area: treci;
}

.cetvrti{
    grid-area: cetvrti;
}

.peti{
    grid-area: peti;
}


.card {
    background: #8fb6c3;
    padding: 25px;
    border-radius: 6px;
}

.slika {  
    background: #8fb6c3;
    padding: 20px;
}

.slika img {
    width: 100%;
    border-radius: 8px;
}

.test_drzac {  
    background: #e6e4c8;
    padding: 20px;
}

.line {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.line:last-child {
    border-bottom: none;
}

footer {
    background-color: #1e293b;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.wrapper_footer {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-item {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    body {
        grid-template-rows: 150px auto auto 150px;
    }

    main {
        grid-template-columns: 1fr 1fr;
    }

    .test_drzac {
        grid-column: 2/3;
    }
    main .card:nth-child(3){
        grid-column: 1/3;
    }
}

@media (max-width: 600px) {
    body {
        grid-template-rows: 150px auto auto 150px;
    }

    main {
        grid-template-columns: 1fr;
    }

    .test_drzac {
        grid-column: 1/2;
    }
    main .card:nth-child(3){
        grid-column: 1/2;
    }
}