/* Resetovanje osnovnih stilova */
*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   text-decoration: none !important; /* Uklanja podvlačenje sa svih elemenata */
}

a {
    text-decoration: none; /* Uklanja podvlačenje */
    color: #6c757d !important; /* Standardna plava boja za linkove */
    font-weight: 500; /* Srednja debljina fonta */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Glatki prelaz boje */
}



.dropdown-toggle {
    background: transparent;
    border: 0;
    transition: color 0.3s;
    color: #def1f0 !important;
    display: inline-block;
    outline: 0;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-toggle:focus {
    outline: 2px solid #f8c246;
    outline-offset: 2px;
}
nav>a{
    transition: color 0.3s;
    color: #def1f0 !important;
    display: inline-block;
    outline: 0;
    font-weight: 400;
    font-size: 14px;
}



body {
   font-family: Arial, sans-serif;
   background-color: #f4f4f4;
   color: #333;
   line-height: 1.6;
}

.container {
   width: 85%;
   margin: 0 auto;
}
.h1-index{
      font-family: 'Roboto', sans-serif; /* Koristi moderni font */
    font-size: 2.5rem; /* Veličina teksta */
    font-weight: 700; /* Debljina teksta */
    color: #333; /* Tamno siva boja */
    text-align: center; /* Centriran tekst */
 
    margin-bottom: 40px; /* Razmak ispod */
 text-transform: uppercase; /* Velika slova */
    letter-spacing: 2px; /* Razmak između slova */
    line-height: 1.4; /* Razmak između redova */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Blaga senka za dubinu */
}
img {
   max-width: 100%;
   height: auto;
}

/* Sekcija Postova */
.posts {
   padding: 40px 0;
   background-color: #fff;
   margin: 40px;
}

.posts h2 {
   font-size: 28px;
   margin-bottom: 20px;
   text-align: center;
}

.post-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 50px; /* Razmak između postova */
}

/* Osiguravanje da svi postovi imaju istu veličinu */
.post {
   background-color: #fff;
   padding: 0;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   height: 100%;
   color: inherit; /* Nasleđuje boju teksta */
}

.post-thumbnail-container {
   position: relative;
   margin-bottom: 30px; /* Dodavanje margine između slike i sadržaja */
}

.post-thumbnail-container img {
   width: 100%;
   height: 200px;  /* Fiksna visina slike */
   object-fit: cover;  /* Održava proporcije slike */
}

.post-content {
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.post h3 {
   font-size: 20px;
   color: #333;
   font-weight: bold;
   text-align: left;
   margin: 0;
}

.post p {
   color: #666;
   line-height: 1.5;
   max-height: 8em;
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 4;
   -webkit-box-orient: vertical;
   text-align: left;
   margin: 0;
}

/* Uklanja donju crtu sa svih linkova */
a {
   text-decoration: none !important;
}

a:hover {
   text-decoration: none !important;
}

/* Read More dugme */
.read-more {
   align-self: flex-start;
   margin-top: auto;
   font-size: 14px;
   font-weight: bold;

   text-decoration: none;
   transition: color 0.3s ease;
}





/* Hero sekcija */
.hero {
   background-color: #333;
   color: #fff;
   padding: 60px 0;
   text-align: center;
}

.hero h2 {
   font-size: 36px;
}

.hero p {
   font-size: 18px;
   margin-top: 10px;
}

/* Osnovni stilovi za header */
.main-header {
  background-color: #f8f9fa;
    padding: 10px 0;
    background-color: black;
    left: 0;
    width: 100%;
    position: relative;
    z-index: 1200;
}

.main-header .container {
  align-items: center;
    justify-content: space-between;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 1fr;
    background-color: black;
    display: grid;
        max-width:100%;
}

/* Link "Nazad na sajt" */
.main-header .nazad {
 font-size: 14px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
    color: #f8c246 !important;
    background-color: #00ffff00 !important;
    letter-spacing: 0.2em;
    font-weight: 500;
    padding: 0 10px;
    z-index: 1;
    font-size: 1.5em;
}

.main-header .nazad:hover {
    color: #0056b3; /* Tamnija plava na hover */
}

/* Logo u centru */
.main-header .logo {
    text-align: center;
    flex-grow: 1;
}

.main-header .logo p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.main-header .logo a {
    text-decoration: none;
    transition: color 0.3s;
    color: #def1f0 !important;
    display: inline-block;
    outline: 0;
    font-weight: 400;
    font-size:14px;
}

.main-header .logo a:hover {
    color: #007bff; /* Plava na hover */
}

/* Navigacija i kategorije */
.main-header nav {
    flex-shrink: 0;
        justify-self: end;
        margin-right: 10px;
        position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
        color: #def1f0 !important;
    display: inline-block;
    outline: 0;
    font-weight: 400;
}

.nav-links a:hover {
    color: #007bff;
}


.admin-entry-link {
    margin-right: 12px;
    opacity: 0.9;
    color: #f8c246 !important;
    font-size: 12px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.admin-entry-link:hover {
    opacity: 1;
    color: #fff !important;
}

/* Dropdown meni */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
    min-width: 200px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 5px 20px;
}

.dropdown-menu li a {
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}



.dropdown-menu.open {
    display: block;
}
/* Stilizovanje za manji ekran - sve ostalo je isto */
@media (max-width: 768px) {
   .dropdown-menu {
      width: 100%; /* Širina menija za mobilne uređaje */
   
   }

   .dropdown-menu a {
      padding: 12px 15px;
   }
   
   
   
   .nazad {
  
   padding: 10px;
        font-size: 14px;
 
}
}


/* Responsive Styles */
@media (max-width: 768px) {
    
    .dropdown-menu{
        right:0;
    }
   .post-grid {
       grid-template-columns: 1fr;
   }

   .container {
       width: 90%;
   }

   .hero h2 {
       font-size: 28px;
   }

   .hero p {
       font-size: 16px;
   }

   .nav-links {
       flex-direction: column;
   }

   .nav-links a {
       padding: 10px;
       font-size: 14px; /* Manji font za mobilne uređaje */
   }

   .main-header .container {
       padding: 0 20px;
   }

   .logo h1 {
       font-size: 18px; /* Manji logo na mobilnim uređajima */
   }
}

@media (max-width: 480px) {
    
  
       .nazad {
  
        font-size: 12px !important;
        padding:7px;
 
}
   .hero h2 {
       font-size: 24px;
   }

   .hero p {
       font-size: 14px;
   }

   .post h3 {
       font-size: 16px;
   }

   /* Manji font za linkove u meniju na manjem ekranu */
   .nav-links a {
       font-size: 14px;
       padding: 8px;
   }
}

/* Footer */
.main-footer {
   background-color: #333;
   color: #fff;
   text-align: center;
   padding: 40px 0;
   margin-top: 40px;
}

.main-footer .social-links {
   margin-top: 20px;
}

.main-footer .social-links a {
   color: #fff;
   margin: 0 15px;
   text-decoration: none;
   font-size: 18px;
}

.main-footer .social-links a:hover {
   color: #f0c040;
}

/* Keep shared site footer consistent across blog pages */
footer.akcent-site-footer.text-white.text-center.text-lg-start {
    background-color: #000 !important;
    color: #fff !important;
    opacity: 1 !important;
}

footer.akcent-site-footer.text-white.text-center.text-lg-start .container,
footer.akcent-site-footer.text-white.text-center.text-lg-start .row,
footer.akcent-site-footer.text-white.text-center.text-lg-start .table {
    background: transparent !important;
    opacity: 1 !important;
}

footer.akcent-site-footer.text-white.text-center.text-lg-start h5,
footer.akcent-site-footer.text-white.text-center.text-lg-start p,
footer.akcent-site-footer.text-white.text-center.text-lg-start td,
footer.akcent-site-footer.text-white.text-center.text-lg-start th,
footer.akcent-site-footer.text-white.text-center.text-lg-start li,
footer.akcent-site-footer.text-white.text-center.text-lg-start span,
footer.akcent-site-footer.text-white.text-center.text-lg-start a {
    color: #fff !important;
}

/* Stil za Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1000;
}

.cookie-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cookie-banner p {
    margin-bottom: 15px;
}

.accept-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.accept-button:hover {
    background-color: #45a049;
}

/* ===== Blog layout consistency overrides ===== */
body,
.main-header,
.main-header a,
.main-header button,
.dropdown-menu a,
.posts,
.posts h1,
.posts h2,
.posts h3,
.post p,
.post a,
article,
article * {
    font-family: 'Inter', Arial, sans-serif !important;
}

.main-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    grid-template-columns: minmax(160px, auto) 1fr auto;
    gap: 12px;
}

.main-header .nazad {
    font-size: 14px !important;
    letter-spacing: .12em;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.main-header .nazad img {
    width: auto;
    max-width: 100%;
    max-height: 44px;
    display: block;
}

.main-header .logo a,
nav > a,
.dropdown-toggle,
.dropdown-menu li a {
    font-size: 14px !important;
    font-weight: 500;
}

.posts {
    margin: 24px;
}

.post-grid {
    gap: 32px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-content {
    min-height: 180px;
}

.post h3,
.post h2 {
    font-size: 20px;
    line-height: 1.35;
    margin: 0;
    color: #333;
    min-height: 54px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post p {
    min-height: 96px;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.blog-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.blog-pagination a,
.blog-pagination .page-nav {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d4dae3;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937 !important;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible {
    color: #111827 !important;
    border-color: #f8c246;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.blog-pagination a.is-active {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #fff !important;
    border-color: #111827;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.35);
    transform: none;
}

.blog-pagination .page-nav {
    font-weight: 700;
}

.blog-pagination .is-disabled {
    color: #9ca3af !important;
    border-color: #e5e7eb;
    background: #f8fafc;
    cursor: not-allowed;
}

.blog-pagination .pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: #6b7280;
    font-weight: 700;
}

article {
    align-items: stretch;
}

article h1,
article .published-at,
.article-body,
.related-posts-grid,
article > section,
article > .back-to-blog-wrap {
    width: min(100%, 90ch);
    margin-left: auto;
    margin-right: auto;
}

article h1 {
    text-align: center;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.article-body {
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-body p,
.article-body h2,
.article-body h3,
.article-body ul,
.article-body ol {
    max-width: 100%;
}

.blog-article-header {
    margin-bottom: 20px;
}

.related-posts-section {
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
    padding-top: 26px;
    width: 100%;
}

.related-posts-section h2 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    text-align: center;
}

.blog-post-page .related-posts-grid {
    width: min(100%, 1060px);
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
    justify-content: center;
}

.blog-post-page .related-posts-grid .post {
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    background: #fff;
    width: 100%;
    max-width: 260px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-post-page .related-posts-grid .post:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 193, 7, 0.55);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.blog-post-page .related-posts-grid .post-link {
    color: inherit !important;
    text-decoration: none !important;
}

.blog-post-page .related-posts-grid .post-thumbnail-container {
    margin-bottom: 18px;
    line-height: 0;
}

.blog-post-page .related-posts-grid .post-thumbnail-container img {
    height: 170px;
    width: 100%;
    display: block;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

.blog-post-page .related-posts-grid .badge-row {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    background-color: #fff;
    max-width: calc(100% - 32px);
    border-radius: 0;
    border: 0;
    box-shadow: -5px 5px rgb(0 0 0);
    padding: 9px 15px 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.blog-post-page .related-posts-grid .badge-row .badge-item {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-post-page .related-posts-grid .post-content {
    min-height: 0;
    gap: 12px;
    padding: 0 16px 18px;
    flex: 1 1 auto;
}

.blog-post-page .related-posts-grid .post h3 {
    margin-top: 2px;
    line-height: 1.3;
}

.blog-post-page .related-posts-grid .post p {
    margin: 0;
    color: #475569;
}

.back-to-blog-wrap {
    width: min(100%, 90ch);
    margin: 24px auto 4px;
    display: flex;
    justify-content: center;
}

.back-to-blog-btn {
    width: min(100%, 360px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 194, 70, 0.65);
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.13);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #f9fafb !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-to-blog-btn::before {
    content: '\2190';
    font-size: 1.05rem;
    line-height: 1;
}

.back-to-blog-btn:hover,
.back-to-blog-btn:focus-visible {
    transform: translateY(-1px);
    border-color: #f8c246;
    background: linear-gradient(180deg, #263244 0%, #161f2d 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24), 0 0 0 3px rgba(248, 194, 70, 0.14);
    outline: none;
}

.back-to-blog-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.akcent-site-footer {
    margin-top: 40px;
}

.akcent-site-footer .container {
    width: 100%;
    max-width: 1320px;
}

/* Unified footer styles (shared with main site) */
.akcent-site-footer {
    background: linear-gradient(180deg, #101114 0%, #090a0c 100%);
    color: #e7e7e7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.akcent-footer-main {
    padding: 2.5rem 1rem 2rem;
}

.akcent-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.akcent-footer-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
}

.akcent-footer-card h2 {
    font-size: 1rem;
    color: #ffc107;
    margin-bottom: 0.8rem;
}

.akcent-footer-card p {
    margin: 0 0 0.9rem;
    line-height: 1.6;
    color: #d8d8d8;
}

.akcent-footer-cta {
    display: inline-block;
    background: #ffc107;
    color: #141414 !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.6rem 1rem;
}

.akcent-footer-list,
.akcent-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.akcent-footer-list a,
.akcent-footer-links a {
    color: #f4f4f4 !important;
    text-underline-offset: 3px;
    line-height: 1.45;
}

.akcent-footer-list a:hover,
.akcent-footer-links a:hover,
.akcent-site-footer .social-links a:hover {
    color: #ffc107 !important;
}

.akcent-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.akcent-footer-bottom-inner {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.akcent-footer-bottom-inner p {
    margin: 0;
    color: #c9c9c9;
}

.akcent-site-footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.akcent-site-footer .social-links a {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .akcent-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-header .container {
        grid-template-columns: 1fr auto;
    }

    .main-header .logo {
        display: none;
    }

    .blog-post-page .related-posts-grid {
        gap: 24px;
        grid-template-columns: repeat(auto-fit, minmax(210px, 260px));
    }
}

@media (max-width: 768px) {
    .posts {
        margin: 12px;
    }

    .blog-pagination {
        gap: 8px;
    }

    .blog-pagination a,
    .blog-pagination .page-nav {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        border-radius: 9px;
    }

    .blog-post-page .related-posts-grid .badge-row {
        max-width: calc(100% - 20px);
        padding: 8px 12px 7px;
    }

    .blog-post-page .related-posts-grid .post-content {
        padding: 0 14px 16px;
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .main-header .nazad img {
        max-height: 36px;
    }

    .blog-post-page .related-posts-grid {
        grid-template-columns: 1fr;
        width: 100%;
        justify-content: stretch;
    }

    .blog-post-page .related-posts-grid .post {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .back-to-blog-wrap {
        margin-top: 20px;
    }

    .back-to-blog-btn {
        width: min(100%, 320px);
        font-size: 0.96rem;
    }

    .akcent-footer-grid {
        grid-template-columns: 1fr;
    }

    .akcent-footer-main {
        padding: 1.5rem 0.9rem 1.2rem;
    }

    .akcent-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Blog homepage polish */
body.blog-home {
    background: linear-gradient(180deg, #f4f5f7 0%, #eef1f4 100%);
}

body.blog-home .posts {
    max-width: min(1320px, calc(100% - 24px));
    margin: 24px auto 36px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(17, 24, 39, 0.05);
}

body.blog-home .post {
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.blog-home .post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
}

body.blog-home .post:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 193, 7, 0.55);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body.blog-home .post-thumbnail-container {
    margin-bottom: 18px;
}

body.blog-home .post-thumbnail-container img {
    height: 210px;
    transition: transform 0.25s ease;
}

body.blog-home .post:hover .post-thumbnail-container img {
    transform: scale(1.03);
}

body.blog-home .badge-row {
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    border-radius: 0;
    border: 1px solid #0f172a;
    box-shadow: -5px 5px rgb(0 0 0);
    padding: 7px 12px 6px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.blog-home .badge-row .badge-item {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.blog-home .post-content {
    padding: 0 16px 18px;
    gap: 12px;
    min-height: 0;
    flex: 1 1 auto;
}

body.blog-home .post h3 {
    margin-top: 2px;
    line-height: 1.3;
}

body.blog-home .post p {
    margin-top: 2px;
    color: #475569;
}

@media (max-width: 768px) {
    body.blog-home .posts {
        margin: 10px;
        border-radius: 14px;
    }

    body.blog-home .badge-row {
        max-width: calc(100% - 20px);
        padding: 7px 10px 6px;
    }

    body.blog-home .post-content {
        padding: 0 14px 16px;
    }

    body.blog-home .h1-index {
        font-size: 1.75rem;
        letter-spacing: 1px;
        margin-bottom: 28px;
    }
}

/* Blog header layout: left logo, centered title, right categories (+ admin icon) */
.main-header .container {
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 12px;
}

.main-header .nazad {
    justify-self: start;
    margin: 0;
}

.main-header .logo {
    display: block !important;
    justify-self: center;
    text-align: center;
}

.main-header .logo a {
    color: #f3f4f6 !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.main-header nav {
    justify-self: end;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.main-header .admin-entry-link {
    margin-right: 0;
    opacity: 0.92;
    color: #f8c246 !important;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: underline !important;
    text-decoration-style: dotted !important;
    text-underline-offset: 3px;
}

.main-header .nav-links {
    gap: 0;
}

.main-header .dropdown-toggle {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(248, 194, 70, 0.55);
    border-radius: 10px;
    color: #f8c246 !important;
}

.main-header .dropdown-toggle:hover,
.main-header .dropdown-toggle:focus-visible {
    color: #fff !important;
    border-color: #f8c246;
    outline: none;
}

.main-header .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
}

@media (max-width: 900px) {
    .main-header .container {
        grid-template-columns: auto 1fr auto !important;
        gap: 8px;
    }

    .main-header .logo {
        display: block !important;
    }

    .main-header .logo a {
        font-size: 0.9rem !important;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 600px) {
    .main-header .container {
        gap: 6px;
    }

    .main-header .logo a {
        font-size: 0.8rem !important;
        letter-spacing: 0.08em;
    }

    .main-header .dropdown-toggle {
        padding: 0.38rem 0.62rem;
    }

    .main-header .admin-entry-link {
        font-size: 0.72rem;
    }
}

