/* General Styles */
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap");

body {
    font-family: "Bai Jamjuree", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
}

/* Padajuci meni u navbar */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Add space for the arrow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropbtn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 1000; /* Ensure dropdown content is above other sections */
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7); /* Optional: Background color for better visibility */
    font-family: "Bai Jamjuree", sans-serif; /* Apply the desired font */
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    transform: scale(1.05);
}

.dropdown.show .dropdown-content {
    display: flex;
}

.dropdown.show .dropbtn i {
    transform: rotate(180deg); /* Rotate the arrow */
}

.pozadina {
    background-color: #e1dfea;
    position: relative; /* Ensure pozadina has proper stacking context */
    z-index: 1;
}

.uslugedugme {
    background-color: #f85a36;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin: 20px 0;
    font-family: "Bai Jamjuree", sans-serif;

}

.uslugedugme:hover {
    background-color: #d14e2b;
    transform: translateY(-2px);
}

.uslugedugme a {
    color: #fff;
    text-decoration: none;
}

.uslugedugme a:hover {
    color: #fff;
}

.lang-button {
    border: 1px solid #fff;
    color: #fff;    
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background-color: transparent;
}

.lang-button:hover {
    color: #000;
    transform: scale(1.05);
    border: 1px solid #000;
}

.lang-button:focus {
    outline: none;
    
}

header {
    background-color: #f85a36;
    color: #fff;
    padding: 1em 0;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
    z-index: 999;
    position: relative; /* Ensure header has a stacking context */
}

h2 {
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    color: #1e90ff;
}

main {
    padding: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    z-index: 1;
    position: relative; /* Ensure main has a stacking context */
}

.blog-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-list h1 {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

.blog-list ul {
    list-style-type: none;
    padding: 0;
}

.blog-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.blog-list li a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.blog-list li a:hover h2 {
    color: #1e90ff;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for better readability on smaller screens */
}

.blog-post h1 {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

.blog-post li {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s forwards 1.5s;
}

.blog-post p {
    opacity: 0;
    animation: fadeInUp 1s forwards 1.5s;
}

footer {
    background-color: #f85a36;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
    z-index: 1;
    position: relative; /* Ensure footer has a stacking context */
}

.centriranje-slike {
    text-align: center;
}

img {
    max-width: 100%; /* Changed from 600px to 100% for responsiveness */
}

/* TABELE */
.custom-table {
    width: 100%;
    border-collapse: collapse;
  }

  .custom-table td {
    padding: 10px;
    border: 1px solid #000;
    vertical-align: top;
  }

  .custom-table td:first-child {
    width: 40%;
  }

  .custom-table td:last-child {
    width: 60%;
  }
  

  

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
    }

    .hero-section {
        padding: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .grid-section {
        padding: 40px 10px;
    }

    form label, form input, form textarea, form button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        font-size: 14px;
    }

    form label, form input, form textarea, form button {
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .grid-section {
        padding: 20px 10px;
    }

    .blog-post h1, .blog-post p {
        font-size: 16px; /* Adjusted font size for better readability */
    }

    nav ul {
        flex-direction: column; /* Ensure the nav items stack vertically on small screens */
        align-items: center;
    }
}
