/* ======================================================================
   CSS/styles.css - KOMPLETAN FAJL
   ====================================================================== */

/* ======================================================================
   1. OSLOVNI RESET I BAZNI STILOVI
   ====================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body { 
    height: 100%; 
}

body {
    font-family: "Arial", "Helvetica", sans-serif;
    background: #ffffff;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, a:visited {
    text-decoration: none;
    color: black;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 16px; 
    flex-grow: 1;
}

@media (max-width: 701px) {
	.container { 
		max-width: 700px; 
		margin: 0 auto; 
		padding: 0;
		flex-grow: 1;
	}
}

/* ======================================================================
   2. HEADER STILOVI
   ====================================================================== */

/* ----- Glavni header kontejner ----- */
.main-header {
    background: white;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

li.posebno a {
    background-color: #254AA5;
    color: white;
}

/* ----- Desktop header - gornji deo ----- */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

/* Logo */
.logo-container {
    flex: 1;
}

.logo-main {
    font-family: "Times New Roman", serif;
    font-size: 36px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1px;
    color: #000;
}

.logo-sub {
    font-family: "Times New Roman", serif;
    font-size: 18px;
    font-weight: normal;
    margin: -5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

/* Desktop header tools */
.header-tools-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ----- Desktop navigacija ----- */
.desktop-nav {
    background: white;
    width: 100%;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    margin: 0;
    padding: 0 20px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.desktop-nav li {
    margin: 0;
    flex: 1;
    text-align: center;
}

.desktop-nav a {
    color: #000;
    text-decoration: none;
    padding: 15px 5px;
    font-size: 18px;
    font-weight: bold;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.desktop-nav a:hover {
    background-color: #a6a1a1;
}

.desktop-nav li.active {
    background-color: #999999;
}

.desktop-nav li.active a {
    color: white;
}

/* ----- Language switcher desktop ----- */
.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch select {
    background: white;
    color: #000;
    border: 2px solid #000;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
}

.lang-switch select option {
    background: white;
    color: #000;
}

/* ----- Desktop search ----- */
.desktop-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-search input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 2px solid #000;
    background: white;
    color: #000;
    width: 180px;
    font-size: 14px;
}

.desktop-search button {
    padding: 8px 15px;
    background: #4b6cb7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* ======================================================================
   3. MOBILNI HEADER
   ====================================================================== */
.header-mobile-container {
    display: none;
    background: white;
    width: 100%;
}

.header-tools-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-title {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-title h1 {
    font-family: "Times New Roman", serif;
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    color: #000;
    line-height: 1.1;
}

.mobile-title h2 {
    font-family: "Times New Roman", serif;
    font-size: 26px;
    font-weight: normal;
    margin: 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.mobile-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

/* Mobile language switcher */
.lang-switch-mobile {
    display: flex;
    justify-content: flex-end;
}

.lang-switch-mobile select {
    background: white;
    color: #000;
    border: 2px solid #000;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 60px;
    height: 32px;
    cursor: pointer;
    text-align: center;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-button {
    background: white;
    border: 2px solid #000;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 40px;
    height: 40px;
    transition: all 0.3s;
}

.mobile-button:hover {
    background: #f0f0f0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile publish button */
.mobile-publish {
    width: 300px;
    margin: auto;
    padding: 0px 15px 10px;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
}

.publish-button {
    width: 100%;
    padding: 12px;
    background: #4b6cb7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publish-button:hover {
    background: #3a5795;
}

/* ----- Search overlay (mobile) ----- */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1001;
    padding: 80px 20px 20px;
}

.search-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-overlay input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 8px;
    border: 2px solid #000;
    background: white;
    color: #000;
}

.search-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #000;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

/* ----- Mobile menu overlay ----- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    background: white;
    border: 2px solid #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 500px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #000;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 18px 20px;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: #f0f0f0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #000;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

.mobile-menu ul li.active a {
    background-color: #f0f0f0;
    color: #666;
    pointer-events: none;
    cursor: default;
    font-weight: 500;
    border-radius: 4px;
}

/* Hover effect for non-active items */
.desktop-nav ul li:not(.active) a:hover,
.mobile-menu ul li:not(.active) a:hover {
    background-color: #aaaaaa;
    color: #333;
}

/* ======================================================================
   4. RESPONSIVE HEADER
   ====================================================================== */

/* Desktop (min-width: 701px) */
@media (min-width: 701px) {
    .header-tools-desktop {
        display: flex;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .desktop-search {
        display: flex;
    }
    
    .header-mobile-container {
        display: none !important;
    }
    
    .mobile-publish {
        display: none !important;
    }
    
    .logo-main {
        font-size: 36px;
    }
    
    .logo-sub {
        font-size: 18px;
    }
}

/* Mobile (max-width: 700px) */
@media (max-width: 700px) {
    .header-tools-desktop {
        display: none !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .desktop-search {
        display: none !important;
    }
    
    .header-mobile-container {
        display: block;
    }
    
    .header-top {
        padding: 10px 15px;
        display: none;
    }
    
    .logo-main {
        font-size: 24px;
    }
    
    .logo-sub {
        font-size: 12px;
    }
}

/* Mali telefoni (max-width: 480px) */
@media (max-width: 480px) {
    .mobile-title h1 {
        font-size: 36px;
    }
    
    .mobile-title h2 {
        font-size: 22px;
    }
    
    .lang-switch-mobile select {
        font-size: 11px;
        min-width: 55px;
        padding: 4px 6px;
        height: 30px;
    }
    
    .mobile-button {
        width: 46px;
        height: 40px;
    }
    
    .mobile-right-section {
        gap: 4px;
    }
    
    .hamburger {
        gap: 3px;
        width: 18px;
    }
    
    .hamburger span {
        height: 2px;
    }
}

/* Ekstra mali telefoni (max-width: 380px) */
@media (max-width: 380px) {
    .mobile-title h1 {
        font-size: 34px;
    }
    
    .mobile-title h2 {
        font-size: 20px;
    }
    
    .lang-switch-mobile select {
        font-size: 10px;
        min-width: 50px;
        height: 28px;
    }
    
    .mobile-button {
        width: 46px;
        height: 40px;
    }
    
    .mobile-right-section {
        gap: 3px;
    }
}

/* ======================================================================
   5. FOOTER STILOVI
   ====================================================================== */
.site-footer {
    background-color: #555;
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 40px 0 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* ===== FOOTER TOP CARDS - OSNOVNO (Desktop) ===== */
.footer-top-cards {
    display: flex;
    /*flex-wrap: wrap;*/
    justify-content: center;
    align-items: center;
    gap: 3px 4px;
    padding: 10px 40px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top-cards .footer-col {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    max-width: 180px;
    text-align: center;
}

.footer-top-cards img {
    width: 100%;
    max-width: 150px;        /* Desktop - veće slike */
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-top-cards img:hover {
    opacity: 1;
}

/* ===== MOBILNI - MANJE SLIKE U VIŠE REDOVA ===== */

@media (max-width: 1100px) {
    .footer-top-cards {
        gap: 20px 25px;
        padding: 15px 20px 25px 20px;
		justify-content: center;
		flex-wrap: wrap;
    }
    
    .footer-top-cards .footer-col {
        flex: 0 1 100px;
        min-width: 60px;
        max-width: 140px;
    }
    
    .footer-top-cards img {
        max-width: 100px;    /* Manje na tabletu */
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .footer-top-cards {
        gap: 20px 25px;
        padding: 15px 20px 25px 20px;
		justify-content: center;
		flex-wrap: wrap;
    }
    
    .footer-top-cards .footer-col {
        flex: 0 1 100px;
        min-width: 60px;
        max-width: 140px;
    }
    
    .footer-top-cards img {
        max-width: 100px;    /* Manje na tabletu */
    }
}

/* Mobilni telefon (max-width: 480px) */
@media (max-width: 480px) {
    .footer-top-cards {
        gap: 15px 20px;       /* Manji razmak */
        padding: 10px 15px 20px 15px;
		justify-content: center;
		flex-wrap: wrap;
    }
    
    .footer-top-cards .footer-col {
        flex: 0 1 80px;       /* Uža kolona */
        min-width: 50px;
        max-width: 100px;
    }
    
    .footer-top-cards img {
        max-width: 60px;      /* ← 60px na mobilnom */
        max-height: 60px;     /* Ograniči i visinu */
    }
}

/* Ekstra mali telefoni (max-width: 380px) */
@media (max-width: 380px) {
    .footer-top-cards {
        gap: 10px 15px;
        padding: 8px 10px 15px 10px;
		justify-content: center;
		flex-wrap: wrap;
    }
    
    .footer-top-cards .footer-col {
        flex: 0 1 70px;
        min-width: 40px;
        max-width: 80px;
    }
    
    .footer-top-cards img {
        max-width: 50px;      /* Još manje */
        max-height: 50px;
    }
}



.footer-col {
    flex: 1;
}

/* Brand Styles */
.logo {
    font-family: 'Serif', Georgia, serif;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.brand-info p {
    margin: 5px 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Middle Link Styles */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Partners Styles */
.partners {
    text-align: right;
}

.banka-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.security-logos {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 0.8rem;
    font-style: italic;
}

/* Copyright Bar */
.footer-bottom {
    background-color: #222;
    padding: 15px 20px;
    font-size: 0.85rem;
}

.footer-bottom p {
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .links {
        order: 1;
    }
    
    .partners {
        order: 2;
        text-align: center;
    }
    
    .security-logos {
        text-align: center;
        justify-content: center;
    }
}

/* ======================================================================
   6. KARTICE - OSNOVNE POSTAVKE
   ====================================================================== */
:root {
    --grid-gap: 12px;
    --card-border-radius: 10px;
    --card-border-color: #000;
    --card-border-width: 2px;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.18);
    --card-bg: #fff;
    --card-padding: 12px;
    --reserved-bottom-space: 44px;
    --grid-row-height: 375px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: var(--grid-row-height);
    gap: var(--grid-gap);
    margin-top: 16px;
    align-items: start;
}

/* ----- BAZNI STIL ZA SVE KARTICE ----- */
.grid > article.card {
    position: relative;
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    align-self: stretch;
    padding: 10px;
}

.card a.card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-inner {
    /*padding: var(--card-padding);*/
    padding-bottom: calc(var(--card-padding) + var(--reserved-bottom-space));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    position: relative;

}

/* ----- ELEMENTI UNUTAR KARTICE (zajednički) ----- */
.card-verski-simbol {
    margin: 0 auto;
    text-align: center;
    flex-shrink: 0;
}

.card-verski-simbol img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card-title {
    font-weight: 700;
    text-align: center;
    color: #000;
	padding-bottom: 9px;
    flex-shrink: 0;
    line-height: 1.2;
}

.card-image {
    margin: 0 auto;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.card-meta {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.card-meta .deceased {
    font-weight: 700 !important;
    text-align: center;
    color: #000;
    line-height: 1.2;
}

.card-meta .dates {
    text-align: center;
    color: #555;
	font-weight: 600 !important;
}

.card-meta .message {
    line-height: 1.4;
    text-align: center;
    color: #222;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.card-meta .mourners {
    text-align: right;
    color: #333;
    font-weight: 500;
}

.card-inner .published {
    position: absolute;
    left: 10px;
    bottom: 10px;
    text-align: left;
    color: #999;
    margin: 0;
    z-index: 10;
}

/* ======================================================================
   7. SIZE-1h - NAJMANJA KARTICA (1 red x 1 kolona)
   ====================================================================== */
.grid > article.card.size-1h {
    grid-column: span 1;
    grid-row: span 1;
}

.grid > article.card.size-1h .card-verski-simbol {
    width: 30%;
    max-width: 60px;
}

.grid > article.card.size-1h .card-verski-simbol img {
    max-height: 50px;
}

.grid > article.card.size-1h .card-title {
    font-size: 0.95rem;
}

.grid > article.card.size-1h .card-image {
    width: 50%;
    max-height: calc(var(--grid-row-height) * 0.45);
}

.grid > article.card.size-1h .card-image img {
    max-height: calc(var(--grid-row-height) * 0.35);
}

.grid > article.card.size-1h .card-meta .deceased {
    font-size: 1.0rem;
}

.grid > article.card.size-1h .card-meta .dates {
    font-size: 0.8rem;
}

.grid > article.card.size-1h .card-meta .message {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

.grid > article.card.size-1h .card-meta .mourners {
    font-size: 0.8rem;
}

.grid > article.card.size-1h .card-inner .published {
    font-size: 0.7rem;
}

/* ======================================================================
   8. SIZE-2h - SREDNJA KARTICA (2 reda x 1 kolona)
   ====================================================================== */
.grid > article.card.size-2h {
    grid-column: span 1;
    grid-row: span 2;

}

.grid > article.card.size-2h .card-verski-simbol {
    width: 35%;
    max-width: 80px;
}

.grid > article.card.size-2h .card-verski-simbol img {
    max-height: 70px;
}

.grid > article.card.size-2h .card-title {
    font-size: 1.05rem;
}

.grid > article.card.size-2h .card-image {
    width: 55%;
    max-height: calc(var(--grid-row-height) * 0.85);
}

.grid > article.card.size-2h .card-image img {
    max-height: calc(var(--grid-row-height) * 0.85);
}

.grid > article.card.size-2h .card-meta .deceased {
    font-size: 1.0rem;
}

.grid > article.card.size-2h .card-meta .dates {
    font-size: 0.9rem;
}

.grid > article.card.size-2h .card-meta .message {
    font-size: 1.05rem;
    -webkit-line-clamp: 3;
}

.grid > article.card.size-2h .card-meta .mourners {
    font-size: 0.9rem;
}

.grid > article.card.size-2h .card-inner .published {
    font-size: 0.75rem;
}

.grid > article.card.size-2h .card-inner {
    padding: 20px;  /* Povećan padding unutar kartice */
    gap: 12px;      /* Razmak između elemenata unutar kartice */
}

/* ======================================================================
   9. SIZE-3h - NAJVEĆA KARTICA (2 reda x 2 kolone)
   ====================================================================== */
.grid > article.card.size-3h {
    grid-column: span 2;
    grid-row: span 2;
}

.grid > article.card.size-3h .card-verski-simbol {
    width: 40%;
    max-width: 100px;
}

.grid > article.card.size-3h .card-verski-simbol img {
    max-height: 90px;
}

.grid > article.card.size-3h .card-title {
    font-size: 1.15rem;
}

.grid > article.card.size-3h .card-image {
    width: 60%;
    max-height: calc(var(--grid-row-height) * 0.85);
}

.grid > article.card.size-3h .card-image img {
    max-height: calc(var(--grid-row-height) * 0.85);
}

.grid > article.card.size-3h .card-meta .deceased {
    font-size: 1.6rem;
}

.grid > article.card.size-3h .card-meta .dates {
    font-size: 0.95rem;
}

.grid > article.card.size-3h .card-meta .message {
    font-size: 1.1rem;
    -webkit-line-clamp: 4;
}

.grid > article.card.size-3h .card-meta .mourners {
    font-size: 0.95rem;
}

.grid > article.card.size-3h .card-inner .published {
    font-size: 0.8rem;
}

.grid > article.card.size-3h .card-inner {
    padding: 20px;  /* Povećan padding unutar kartice */
    gap: 35px;      /* Razmak između elemenata unutar kartice */
}

/* ======================================================================
   10. MOBILNI RESPONSIVE ZA KARTICE
   ====================================================================== */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
    }

    /* 1h - sakrivamo message i mourners */
    .grid > article.card.size-1h .message,
    .grid > article.card.size-1h .mourners {
        display: none;
    }

    .grid > article.card.size-1h .card-image {
        width: 40%;
        max-height: calc(320px * 0.45);
    }
    
    .grid > article.card.size-1h .card-image img {
        max-height: calc(320px * 0.45);
    }

    /* 2h - prelazi u 1 red x 2 kolone */
    .grid > article.card.size-2h {
        grid-column: span 2;
        grid-row: span 1;
    }

    .grid > article.card.size-2h .card-image {
        width: 45%;
        max-height: calc(320px * 0.45);
    }
    
    .grid > article.card.size-2h .card-image img {
        max-height: calc(320px * 0.45);
    }

    /* 3h - ostaje 2 reda x 2 kolone */
    .grid > article.card.size-3h {
        grid-column: span 2;
        grid-row: span 2;
    }

    .grid > article.card.size-3h .card-image {
        width: 50%;
        max-height: calc(320px * 0.85);
    }
    
    .grid > article.card.size-3h .card-image img {
        max-height: calc(320px * 0.85);
    }

    :root {
        --reserved-bottom-space: 40px;
    }

    .card-meta .message {
        -webkit-line-clamp: 2;
    }
}

/* Mobilni telefon (max-width: 480px) */
@media (max-width: 480px) {
    .grid {
        grid-auto-rows: 280px;
        gap: 8px;
    }

    .grid > article.card {
        padding: 6px;
    }

    .card-inner {
        padding: 6px;
        padding-bottom: calc(6px + var(--reserved-bottom-space));
        gap: 4px;
    }

    /* 1h */
    .grid > article.card.size-1h .card-verski-simbol {
        width: 25%;
        max-width: 40px;
    }

    .grid > article.card.size-1h .card-verski-simbol img {
        max-height: 35px;
    }

    .grid > article.card.size-1h .card-image {
        width: 45%;
        max-height: calc(280px * 0.40);
    }
    
    .grid > article.card.size-1h .card-image img {
        max-height: calc(280px * 0.40);
    }

    .grid > article.card.size-1h .card-title {
        font-size: 0.8rem;
    }

    .grid > article.card.size-1h .card-meta .deceased {
        font-size: 0.8rem;
    }

    .grid > article.card.size-1h .card-meta .dates {
        font-size: 0.7rem;
    }

    .grid > article.card.size-1h .card-inner .published {
        font-size: 0.6rem;
        left: 6px;
        bottom: 6px;
    }

    /* 2h */
    .grid > article.card.size-2h .card-verski-simbol {
        width: 30%;
        max-width: 50px;
    }

    .grid > article.card.size-2h .card-verski-simbol img {
        max-height: 45px;
    }

    .grid > article.card.size-2h .card-image {
        width: 40%;
        max-height: calc(280px * 0.42);
    }
    
    .grid > article.card.size-2h .card-image img {
        max-height: calc(280px * 0.42);
    }

    .grid > article.card.size-2h .card-title {
        font-size: 0.9rem;
    }

    .grid > article.card.size-2h .card-meta .deceased {
        font-size: 0.85rem;
    }

    .grid > article.card.size-2h .card-meta .dates {
        font-size: 0.75rem;
    }

    .grid > article.card.size-2h .card-meta .message {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .grid > article.card.size-2h .card-meta .mourners {
        font-size: 0.75rem;
    }

    .grid > article.card.size-2h .card-inner .published {
        font-size: 0.65rem;
        left: 6px;
        bottom: 6px;
    }

    /* 3h */
    .grid > article.card.size-3h .card-verski-simbol {
        width: 35%;
        max-width: 60px;
    }

    .grid > article.card.size-3h .card-verski-simbol img {
        max-height: 55px;
    }

    .grid > article.card.size-3h .card-image {
        width: 45%;
        max-height: calc(280px * 0.80);
    }
    
    .grid > article.card.size-3h .card-image img {
        max-height: calc(280px * 0.80);
    }

    .grid > article.card.size-3h .card-title {
        font-size: 0.95rem;
    }

    .grid > article.card.size-3h .card-meta .deceased {
        font-size: 0.9rem;
    }

    .grid > article.card.size-3h .card-meta .dates {
        font-size: 0.8rem;
    }

    .grid > article.card.size-3h .card-meta .message {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .grid > article.card.size-3h .card-meta .mourners {
        font-size: 0.8rem;
    }

    .grid > article.card.size-3h .card-inner .published {
        font-size: 0.7rem;
        left: 6px;
        bottom: 6px;
    }
}

/* Ekstra mali telefoni (max-width: 380px) */
@media (max-width: 380px) {
    .grid {
        grid-auto-rows: 250px;
        gap: 6px;
    }

    .grid > article.card.size-1h .card-image {
        max-height: calc(250px * 0.38);
    }
    
    .grid > article.card.size-1h .card-image img {
        max-height: calc(250px * 0.38);
    }

    .grid > article.card.size-2h .card-image {
        max-height: calc(250px * 0.40);
    }
    
    .grid > article.card.size-2h .card-image img {
        max-height: calc(250px * 0.40);
    }

    .grid > article.card.size-3h .card-image {
        max-height: calc(250px * 0.78);
    }
    
    .grid > article.card.size-3h .card-image img {
        max-height: calc(250px * 0.78);
    }
}

/* ======================================================================
   11. PAGINACIJA
   ====================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
}

.page-link {
    color: #000;
    text-decoration: none;
    padding: 6px 10px;
    background: #fff;
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: 6px;
}

.page-info {
    color: #555;
}

/* ======================================================================
   12. SINGLE PAGE (detalji jedne objave)
   ====================================================================== */
.single-card {
    position: relative;
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 16px;
    padding-bottom: calc(16px + var(--reserved-bottom-space));
    margin: 20px auto;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

.single-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.single-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.single-meta {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.single-meta .deceased {
    font-weight: 700 !important;
    font-size: 24px !important;
    text-align: center;
}

.single-meta .dates {
    text-align: center;
}

.single-meta .text-poruke {
    text-align: center;
}

.single-meta .mourners-single {
    text-align: right !important;
    font-size: 1.1rem;
    margin-left: auto;
    padding-right: 0 !important;
    color: #333;
    font-weight: 500;
    margin: 5px 0;
    width: auto !important;
    display: block !important;
}

.single-meta .published-single {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    text-align: left !important;
    font-size: 0.85rem !important;
    color: #999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-next {
    font-size: 18px;
    padding: 10px;
}

/* ======================================================================
   13. SOCIAL WIDGET (deljenje)
   ====================================================================== */
.container-social {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-name {
    font-weight: 600;
    font-size: 1em;
    color: #2c3e50;
    text-align: center;
    margin-top: 5px;
}

/* Individualne boje za mreže */
.social-facebook { color: #1877f2; }
.social-facebook:hover { background-color: #eef4ff; }
.social-twitter { color: #1da1f2; }
.social-twitter:hover { background-color: #f0f9ff; }
.social-linkedin { color: #0a66c2; }
.social-linkedin:hover { background-color: #f0f7ff; }
.social-instagram { color: #e4405f; }
.social-instagram:hover { background-color: #fff0f3; }
.social-whatsapp { color: #25d366; }
.social-whatsapp:hover { background-color: #f0fff4; }
.social-youtube { color: #ff0000; }
.social-youtube:hover { background-color: #fff0f0; }
.social-tiktok { color: #000000; }
.social-tiktok:hover { background-color: #f0f0f0; }
.social-pinterest { color: #e60023; }
.social-pinterest:hover { background-color: #fff0f3; }

@media (max-width: 768px) {
    .container-social {
        padding: 15px;
    }
    
    h1 {
        font-size: 16px;
    }
    
    .icon-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        gap: 0px;
    }
}

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: 1fr;
    }
}

a.social-icon.facebook,
a.social-twitter,
a.social-icon.linkedin,
a.social-icon.instagram {
    display: inline-block !important;
}

a[href^="https://www.linkedin.com/shareArticle?"],
a[href^="https://www.facebook.com/sharer/sharer.php"],
a[href^="https://twitter.com/intent/tweet?"] {
    display: inline-block !important;
}

/* ======================================================================
   14. KONTAKT STRANICA
   ====================================================================== */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.contact-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #888, #ccc, #888);
    margin: 20px auto 0;
    border-radius: 2px;
}

.contact-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.info-icon i {
    font-size: 20px;
    color: #555;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.company-desc {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
    border-bottom: 1px dashed #eaeaea;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span {
    font-weight: 500;
    color: #333;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-method i {
    width: 20px;
    color: #777;
    font-size: 16px;
}

.contact-method a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #333;
    text-decoration: underline;
}

.social-card {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-link-icon.facebook { background: #3b5998; }
.social-link-icon.instagram { background: #e4405f; }
.social-link-icon.twitter { background: #1da1f2; }
.social-link-icon.youtube { background: #cd201f; }

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.form-card h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    background: #fff;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #888;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.consent {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.form-group.consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group.consent label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
}

.form-group.consent a {
    color: #333;
    text-decoration: underline;
}

.form-group.consent a:hover {
    color: #000;
}

.submit-btn {
    background: linear-gradient(135deg, #666, #444);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: 1px solid #555;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #555, #333);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn i {
    font-size: 1.2rem;
}

.submit-btn:active {
    transform: translateY(0);
}

.map-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.map-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.map-container iframe {
    display: block;
}

.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ccc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.faq-question i {
    color: #888;
    font-size: 1.1rem;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    padding-left: 26px;
}

/* Responsive kontakt */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 15px;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .form-card h2 {
        font-size: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-list li {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link-icon {
        width: 35px;
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .contact-container {
        padding: 20px;
    }
    
    .info-card,
    .form-card,
    .map-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .submit-btn,
    .social-links {
        display: none;
    }
}

/* ======================================================================
   15. STATIC PAGE
   ====================================================================== */
.static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.static-page h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
}

.static-page p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

/* ======================================================================
   VERSKI SIMBOLI - CUSTOM FONT
   ====================================================================== */

@font-face {
    font-family: 'VerskiSimboli';
    src: url('/fonts/verski.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Osnovna klasa za sve simbole */
.symbol-icon {
    font-family: 'VerskiSimboli', 'Arial', sans-serif;
    font-size: 40px;
    line-height: 1;
    display: inline-block;
    color: #000;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
}


/* Veličine za različite kartice */
.grid > article.card.size-1h .symbol-icon {
    font-size: 35px;
}

.grid > article.card.size-2h .symbol-icon {
    font-size: 45px;
}

.grid > article.card.size-3h .symbol-icon {
    font-size: 55px;
}

p .MsoNormal {
	font-size: 24pt;
}

.slika {
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 800px;
}

@media (max-width: 480px) {
    .grid > article.card.size-1h .symbol-icon {
        font-size: 28px;
    }
    
    .grid > article.card.size-2h .symbol-icon {
        font-size: 35px;
    }
    
    .grid > article.card.size-3h .symbol-icon {
        font-size: 40px;
    }
	
	.slika {
		width: 100%;

	}
	.MsoNormal{
		font-size: 17pt;
	}
}

/* Stil za dugme Plaćeno na šalteru */
.btn-counter {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.btn-counter:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

.btn-counter:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}