:root {
    --bg: #0f172a;
    --bg-elevated: rgba(15, 23, 42, 0.45);
    --surface: rgba(15, 23, 42, 0.32);
    --surface-hover: rgba(15, 23, 42, 0.48);
    --border: rgba(255, 255, 255, 0.22);
    --border-strong: rgba(255, 255, 255, 0.36);
    --text-main: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;

    /* Kraljevsko-plava & Nebesko-plava za visoku čitljivost na staklu */
    --accent: #3b82f6;
    --accent-2: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.28);
    --badge-bg: rgba(59, 130, 246, 0.28);
    --badge-text: #ffffff;
    --status-color: #22c55e;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.35);

    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --container: 1120px;
}

/* Teme po podstranicama */
body[data-theme="sport"] {
    --accent: #38bdf8;
    --accent-2: #0284c7;
    --accent-glow: rgba(56, 189, 248, 0.28);
    --badge-bg: rgba(56, 189, 248, 0.26);
    --badge-text: #ffffff;
}

body[data-theme="parohija"] {
    --accent: #f59e0b;
    --accent-2: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.28);
    --badge-bg: rgba(245, 158, 11, 0.26);
    --badge-text: #ffffff;
}

body[data-theme="zdravlje"] {
    --accent: #34d399;
    --accent-2: #10b981;
    --accent-glow: rgba(52, 211, 153, 0.28);
    --badge-bg: rgba(52, 211, 153, 0.26);
    --badge-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Fiksni Slideshow preko cijelog ekrana u pozadini svega
   ========================================================================== */
.hero-slides {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.4s ease-in-out, transform 7s ease-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.07);
}

/* Blagi neutralni gradijent preko pozadine */
.hero-video-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.28) 0%,
        rgba(15, 23, 42, 0.35) 50%,
        rgba(15, 23, 42, 0.58) 100%
    );
}

/* ==========================================================================
   Providni Stakleni Header
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.logo span {
    color: #60a5fa;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Hamburger dugme za mobilni meni */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

nav a.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.45);
}

/* Dugme za brzu pretragu (Ctrl+K) */
.cmd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmd-trigger:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
}

.kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    padding: 0.12rem 0.38rem;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Hero uvodni prostor
   ========================================================================== */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 460px;
    height: 60vh;
    max-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
}

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.75rem;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.hero-dot.active {
    width: 26px;
    background: #ffffff;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 2rem 1.25rem;
    color: #ffffff;
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-video-content .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.36rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f8fafc;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.hero-video-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.hero-video-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* Page Hero za podstranice */
.page-hero {
    position: relative;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 2.2rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 3px solid var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.page-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    max-width: 620px;
    margin: 0 auto;
}

.page-hero .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    display: inline-block;
}

.status-dot.green {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.88); }
}

.hero-actions {
    margin-top: 1.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Dugmad */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.45rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.btn-secondary-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.76rem 1.35rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-secondary-glass:hover {
    background: rgba(15, 23, 42, 0.62);
    transform: translateY(-2px);
}

.btn-secondary,
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover,
.btn-back:hover {
    background: rgba(15, 23, 42, 0.62);
    border-color: var(--accent-2);
    transform: translateY(-1px);
}

/* Glavni kontejner */
main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.5rem 1.25rem 4.5rem;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   Providne Staklene Brze Servisne Pilule
   ========================================================================== */
.service-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.service-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 3px solid var(--accent-2);
    box-shadow: var(--shadow-md);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    color: #ffffff;
}

.service-pill:hover {
    background: rgba(15, 23, 42, 0.48);
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-pill .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.service-pill h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.service-pill p {
    font-size: 0.86rem;
    color: #e2e8f0;
    margin-top: 0.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Naslovi sekcija */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 2rem 0 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.section-heading span {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Providne Staklene Glavne Kartice (sa jasnim bijelim/plavim tekstom)
   ========================================================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.card,
.content-box,
.section-card,
.spotlight-card {
    position: relative;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 3px solid var(--accent-2);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.content-box {
    margin-bottom: 1.5rem;
}

.spotlight-card:hover,
.card:hover {
    background: rgba(15, 23, 42, 0.46);
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card.span-2 {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.card h3,
.content-box h2 {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.content-box h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-shadow: none;
}

.card-list {
    list-style: none;
}

.card-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.94rem;
    flex-wrap: wrap;
}

.card-list li:last-child {
    border-bottom: none;
}

.card-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.tel-link {
    color: #93c5fd;
    text-decoration: none;
    border-bottom: 1px dashed #93c5fd;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tel-link:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--badge-bg);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    margin-left: 0.35rem;
    text-shadow: none;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    color: #93c5fd;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.card-btn:hover {
    gap: 0.65rem;
    color: #ffffff;
}

/* Specifični elementi podstranica */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent-2);
}

.stat-label {
    font-size: 0.84rem;
    color: #e2e8f0;
    margin-top: 0.2rem;
}

.match-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.35);
    margin-top: 0.5rem;
}

.match-teams {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.match-meta {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-top: 0.25rem;
}

/* Scroll Reveal Animacija */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Providni Stakleni Footer
   ========================================================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: #e2e8f0;
    font-size: 0.92rem;
    position: relative;
    z-index: 5;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.coffee-box {
    max-width: 680px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-size: 0.86rem;
}

.coffee-box strong {
    color: #ffffff;
}

/* ==========================================================================
   Command Palette (Ctrl+K) — Čist bijeli iskačući prozor za brzu pretragu
   ========================================================================== */
.cmd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
}

.cmd-overlay.open {
    display: flex;
    animation: fadeIn 0.16s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cmd-modal {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    color: #0f172a;
}

.cmd-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cmd-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #0f172a;
    font-size: 0.98rem;
}

.cmd-input::placeholder {
    color: #64748b;
}

.cmd-modal .kbd {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.cmd-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-radius: 9px;
    text-decoration: none;
    color: #334155;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cmd-item:hover,
.cmd-item.selected {
    background: #dbeafe;
    color: #1d4ed8;
}

.cmd-item-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cmd-item-tag {
    font-size: 0.76rem;
    color: #64748b;
}

.cmd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    font-size: 0.76rem;
    color: #64748b;
}

/* ==========================================================================
   Responzivnost za PC, Tablet i Telefon
   ========================================================================== */
@media (max-width: 850px) and (min-width: 601px) {
    .service-banner,
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .card.span-2 {
        grid-column: span 1;
    }

    .hero-video-section {
        height: 54vh;
        min-height: 400px;
    }
}

@media (max-width: 700px) {
    .service-banner,
    .grid-container {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .nav-right {
        order: 4;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .nav-right.open {
        display: flex;
    }

    .nav-right nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-right nav a {
        padding: 0.65rem 0.8rem;
    }

    .cmd-trigger {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-video-section {
        height: auto;
        min-height: 380px;
        padding: 2.5rem 0 3rem;
    }

    .hero-video-content {
        padding: 1rem;
    }

    .page-hero {
        padding: 2.25rem 1rem;
        border-radius: 16px;
    }

    main {
        padding: 1rem 1rem 3rem;
    }

    .card,
    .content-box,
    .section-card,
    .spotlight-card {
        padding: 1.3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary-glass {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Slika lijevo u CMS objavama sa prelivanjem teksta (desktop/tablet), puna širina na telefonu */
.content-box:has(> .cms-post-img)::after {
    content: "";
    display: block;
    clear: both;
}

.cms-post-img {
    float: left;
    width: 240px;
    max-width: 42%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    margin: 0.2rem 1.25rem 0.75rem 0;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-post-img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 560px) {
    .cms-post-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: 360px;
        object-fit: contain;
        margin: 0.75rem 0;
    }
}

.cms-post-img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}