.app-header2 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    z-index: 10;
    
}


.header-icon {
    font-size: 1.8rem;
    color: #4C9AD2;
}

.header-icon img{
    width: 35px;
    height: auto;
}

.header-title {
    text-align: center;
    color: #4C9AD2;
    font-size: 20px;
    font-weight: 500;
}
.header-title span {
    display: block;
    font-weight: 400;
    font-size: 1rem;
}
.header-title strong {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}


.novica-naslov{
    font-size: 1rem;
    color: black;
    font-weight: 500;
}
.novica-text{
    font-size:11px;
}

.slika-novica{
    width: 70px;
    height: 70px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 10px;
}

.slika-novice{
    width: 94px;
    height: 94px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 10px;
}


/* novice stran */
.news-card {
    position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background: #fff;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;

max-width: 600px;
margin-bottom: 30px;
}

.news-card-repeat {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background: #fff;

   
    max-width: 600px;
    margin-bottom: 1rem;
}

.news-img {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 150px;
            flex: 0 0 150px;
            border-radius: 10px;
    -webkit-box-shadow: 0px 1px 6px #00000029;
            box-shadow: 0px 1px 6px #00000029;
    /* Added to prevent minor bleeding on some browsers */
    line-height: 0; 
               
}

.news-img img {
    width: 100%;
    height: 150px;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    border-radius: 10px;

}


.news-img-repeat {
    -webkit-box-flex: 0;
            -ms-flex: 0 0 94px;
        flex: 0 0 94px;
          -webkit-box-shadow: 0px 1px 3px #00000029;
            box-shadow: 0px 1px 3px #00000029;
            border-radius: 10px;
            line-height: 0;
}

.news-img-repeat img {
    width: 100%;
    height: 94px;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    border-radius: 10px;
  
}

.news-content {
padding: 0 0 0 16px;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
}

.razpisi-content{
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border-radius: 12px;
    -webkit-box-shadow: 0px 0px 7px 0px #dfdcdc;
            box-shadow: 0px 0px 7px 0px #dfdcdc;
}

a {
    text-decoration: none;
    color: inherit;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.news-sub {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 4px 0;
}

.news-text {
    font-size: 0.85rem;
    color: #333;
    margin: 5px 0 0 0;
    font-size: 11px;

}

.btn-more {
background-color: #4e9ace;
border: none;
color: white;
padding: 1px 14px;
border-radius: 8px;
font-size: 0.65rem;
cursor: pointer;
position: absolute;
bottom: 0;
right:0;
}

.custom-select select {
    appearance: none;          
    -webkit-appearance: none;   
    -moz-appearance: none;      
    width: 100%;
    border: 1px solid #7AB4DD;
    border-radius: 50px;        
    padding: 8px 32px 8px 12px; /*puščica padding */
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    margin-bottom: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2393c2e6' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    -webkit-box-shadow: 0px 1px 3px #00000029;
            box-shadow: 0px 1px 3px #00000029;
}

.custom-select select:focus {
    outline: none;
    border-color: #4e9ace;
    -webkit-box-shadow: 0 0 0 2px rgba(78, 154, 206, 0.2);
            box-shadow: 0 0 0 2px rgba(78, 154, 206, 0.2);
}

/* .posamezna-novica-slika{
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;

       border-radius: 27px;
} */

.posamezna-novica-slika2{
    width: 100%;
    height: 400px;
    -o-object-fit: cover;
       object-fit: cover;

}

.posamezna-novica-naslov{
    font-size: 18px;
    font-weight: 700;
}

.posamezna-novica-podnaslov{
    font-size: 14px;
}

.posamezna-novica-opis{
    font-size: 12px;
}

.posamezna-novica-nazaj{
   
    font-size: 12px;
}

.posamezna-novica-nazaj i{
   color: #4C9AD2;
}

.vreme-dan {
    font-size: 0.65rem;
    margin: 0;
}

.back-arrow{
    height: 27px;
}


/* 
.novica-container {
  position: relative;
  display: inline-block; 
}

.oblacek-novica {
  position: absolute;
  bottom: -35px; 
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: #fff;
  padding: 16px 20px;
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.1);
          box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 90%;
}

.novica-meta {
  font-size: 0.9rem;
  color: #555;
    width: 90%;
} */

.novica-card {
  max-width: 700px; /* or whatever width you want */
  margin: 0 auto;
  background: #fff;

  overflow: hidden; /* keeps things tidy */

}

.novica-container {
  position: relative;
}

.oblacek-novica {
  position: absolute;
  bottom: -30px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: #fff;
  padding: 16px 20px;
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.1);
          box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 90%; /* matches content width */
  max-width: 650px;
}

.novica-content {
  padding: 10%;
  color: black;
}

.novica-datum{
    font-size: 12px;
    font-weight: 600;
}

.rok-za-prijavo{
    font-size: 12px;
}

.btn-vstopi {
    
    background: #4C9AD2;
    border: none;
    border-radius: 50px;
    padding: 7px 52px;
    margin-top: 1rem;
    font-size: 16px;
    -webkit-box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-vstopi:hover {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    -webkit-box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
            box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}


.menu-grid2 {
    display: grid;
    /* Create a 2-column grid */
    grid-template-columns: 1fr 1fr;
    /* Define the gap between grid items */
    gap: 1rem;
}



@media screen and (min-width: 1024px) {

    /* 1. Center the Main Content Container */
    main section {
        max-width: 1000px; /* Limits width so it doesn't stretch too far */
        margin: 0 auto;    /* Centers the block horizontally */
        padding-top: 40px;
    }

    /* 2. Header & Filter Alignment */
    .app-header2 {
        padding: 20px 50px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .d-flex.justify-content-between {
        /* Ensures the "Najnovejše novice" and Date align with the cards */
        padding-bottom: 10px;
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 20px;
    }

    .custom-select {
        /* Keep the dropdown from spanning full width, but align it nicely */
        max-width: 300px; 
        margin-bottom: 30px;
    }

    /* 3. The Big First Card */
    .news-card {
        max-width: 100%; /* Allow it to fill the 1000px container */
        width: 100%;
        padding: 25px;
        margin-bottom: 40px; /* Space between big card and list */
        border-radius: 20px;
        -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.08);
                box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Softer shadow */
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start; /* Align image and text to top */
    }

    .news-img {
        /* Make the main image larger */
        -webkit-box-flex: 0;
            -ms-flex: 0 0 350px;
                flex: 0 0 350px; 
        margin-right: 30px;
        -webkit-box-shadow: none;
                box-shadow: none; /* Remove small shadow from image, keep on card */
    }

    .news-img img {
        height: 230px; /* Taller image */
        width: 100%;
        border-radius: 15px;
    }

    /* 4. The List Items (Repeat) */
    .news-card-repeat {
        max-width: 100%; /* Fill container */
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 15px;
        -webkit-transition: -webkit-transform 0.2s ease;
        transition: -webkit-transform 0.2s ease;
        transition: transform 0.2s ease;
        transition: transform 0.2s ease, -webkit-transform 0.2s ease;
        border: 1px solid #f0f0f0; /* Subtle border for list items */
    }

    .news-card-repeat:hover {
        -webkit-transform: translateY(-2px);
                transform: translateY(-2px);
        -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.05);
                box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .news-img-repeat {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 180px;
                flex: 0 0 180px; /* Wider thumbnail */
        margin-right: 20px;
    }

    .news-img-repeat img {
        height: 120px;
    }

    /* 5. Typography & Content */
    .news-content {
        padding: 0; /* Reset padding since we use flex gap/margin */
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        height: 100%;
    }

    .news-title, .novica-naslov {
        font-size: 1.4rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .news-text {
        font-size: 14px;
        color: #555;
        line-height: 1.6;
        max-width: 90%; /* Keep text from becoming too long lines */
    }

    /* 6. Button Styling ("Prikaži več") */
    .btn-more {
        /* Stop it from being absolute positioning on desktop */
        position: static; 
        -ms-flex-item-align: start; 
            align-self: flex-start; /* Align left */
        margin-top: 15px;
        padding: 8px 25px;
        font-size: 14px;
        background-color: #4C9AD2;
    }

    /* 7. Archive Button */
    .btn-vstopi {
        font-size: 18px;
        padding: 10px 60px;
        margin-top: 40px;
        margin-bottom: 60px;
    }

    
.menu-grid2 {
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
        gap: 30px;
        max-width: 900px; /* Center the grid and restrict width */
        margin: 0 auto;
}

    
}