    * {
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Arial', sans-serif;
           background: url('./img/background.jpg');
           width: 100%; 
           min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        header {
            background: linear-gradient(180deg, red 0%, blue 50%, white 100%);
            color: white;
            padding: 30px 20px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        header h1 {
            font-size: 2.5em;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

      /*nav bar 3 linka*/ 
        nav {
            background: blue;
            padding: 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
 
        nav ul {
            font-weight: bold;
            list-style: none;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

        nav ul li {
            position: relative;
        }

        nav ul li a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 15px 30px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        nav ul li a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: -100%;
            width: 100%;
            height: 3px;
            background: red;
            transition: left 0.3s ease;
        }

        nav ul li a:hover::before {
            left: 0;
        }

        nav ul li a:hover {
            transform: translateY(-2px);
        }

        
        .container {
            max-width: 1200px;
            margin: 20px auto;
            display: flex;
            gap: 20px;
            padding: 0 20px;
            flex: 1;
        }

        /*left side carousel*/
.banner {
    width: 402px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 535px; 
    display: flex;
    flex-direction: column;
}


        .banner h3 {
             font-style:uppercase;
            color: #333;
            margin-bottom: 15px;
            text-align: center;
        }

.ad-container {
    position: relative;
    flex: 1; /* uzima sav preostali prostor u banneru */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.ad img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

        .ad {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2em;
            color: white;
            opacity: 0;
            transition: opacity 0.5s ease;
            border-radius: 8px;
        }

        .ad.active {
            opacity: 1;
        }

        
       /* main content*/
        .content {
            flex: 1;
        }

  .articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/*cecili*/
.articles .article:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

/* tranzicija*/
.articles .article:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

/*djokic*/
.article2 {
    grid-column: 2;
    grid-row: 1 / 3;
}


        .article2 {
           
           height: 570px !important;
        }
        .article2 img{
           object-fit: cover;
           height: 500px !important;
        }

        .article {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .article:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        }

        .article a {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .article img {
            width:400px;
            height: 300px;
            
            transition: transform 0.3s ease;
        }

        .article:hover img {
            transform: scale(1.05);
        }

        .article-content {
            padding: 20px;
        }

        .article h3 {
            color: #333;
            margin-bottom: 10px;
        }

        .article p {
            color: #666;
            line-height: 1.6;
        }

        footer {
            background: #333;
            color: white;
            text-align: center;
            padding: 30px 20px;
            margin-top: 40px;
        }

        footer p {
            margin: 5px 0;
        }

        .author-info {
            margin-top: 15px;
            font-size: 0.9em;
            color: #aaa;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }

            .banner {
                width: 100%;
            }

            nav ul {
                flex-direction: column;
            }

            header h1 {
                font-size: 1.8em;
            }
        }


/*o nama*/
 .about {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about h2 {
    margin-bottom: 10px;
    color: #333;
}

.about p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/*kontakt*/
.contact {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.contact h2 {
    margin-bottom: 20px;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.contact-form button {
    background: blue;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: red;
}

.contact-info {
    margin-top: 30px;
    color: #555;
}


/* slagalica*/

