/* Snaga Uma - Custom Styling */

:root {
    --primary: #5B84B1;
    /* Plava - pouzdanost, zdravstvo */
    --secondary: #27ae60;
    /* Zelena - rast, podrska */
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
    --light: #F3E9DC;
    --surface-warm: #f7efe3;
    --surface-warm-strong: #f1e6d6;
    --dark: #2c3e50;
    --gray: #95a5a6;
}

/* =====================
   TYPOGRAPHY & GENERAL
   ===================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    background-color: var(--light);
}

.bg-light {
    background-color: var(--light) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* =====================
   NAVBAR & NAVIGATION
   ===================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(91, 132, 177, 0.35);
    border-radius: 0.65rem;
}

.navbar-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.navbar-brand__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand__subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #5b6472;
    margin-top: 0.15rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 0.35rem;
}

.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.page-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.centered {
    text-align: center;
}

.surface {
    max-width: 980px;
    margin: 0 auto 1.5rem auto;
    padding: 1.25rem;
    border: 1px solid #e7dccb;
    border-radius: 0.75rem;
    background: var(--surface-warm);
}

.narrow {
    max-width: 500px;
    margin: 0 auto;
}

.narrow-center {
    max-width: 720px;
    margin: 0 auto;
}

.cta-soft-outline {
    border-color: rgba(91, 132, 177, 0.45);
    box-shadow: 0 0 0 1px rgba(91, 132, 177, 0.12);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.link-muted {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
}

.link-muted:hover {
    color: #1f2937;
    background: #eef2f5;
    text-decoration: none;
}

/* =====================
   BUTTONS
   ===================== */

.btn-primary {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #2c3e50 !important;
    padding: 0.55rem 0.9rem;
    border-radius: 0.5rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #dde2e6;
    border-color: #c3c9cf;
    color: #1f2937 !important;
    box-shadow: none;
    text-decoration: none;
}

.btn-danger-ghost {
    border: 1px solid #e6bcbc;
    background: #fff5f5;
    color: #8a2f2f;
    border-radius: 0.5rem;
    padding: 0.35rem 0.65rem;
}

.btn-danger-ghost:hover {
    background: #fce6e6;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #1e8449;
    border-color: #1e8449;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* =====================
   FORMS & INPUTS
   ===================== */

.form-control,
.form-select {
    border-color: #ddd;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(91, 132, 177, 0.18);
}

.form-control.is-invalid,
.form-control.is-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

.form-control.is-valid,
.form-control.is-valid:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
}

textarea {
    min-height: 90px;
}

/* =====================
   ALERTS & MESSAGES
   ===================== */

.alert {
    border: none;
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease-out;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--primary);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================
   CARDS
   ===================== */

.card {
    border: none;
    background: var(--surface-warm);
    box-shadow: 0 4px 14px rgba(79, 62, 41, 0.08);
    transition: all 0.3s ease;
    border-radius: 0.7rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 62, 41, 0.12);
}

.card-title {
    color: var(--dark);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.public-card {
    background: var(--surface-warm);
    border: 1px solid #e7dccb;
    border-radius: 1rem;
    box-shadow: 0 5px 16px rgba(79, 62, 41, 0.08);
}

.public-card:hover {
    box-shadow: 0 10px 24px rgba(79, 62, 41, 0.12);
}

.public-card h3 a {
    color: var(--primary);
}

.public-card h3 a:hover {
    color: #4a72a0;
    text-decoration: none;
}

/* =====================
   TABLES
   ===================== */

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light);
    color: var(--dark);
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e9ecef;
}

tbody tr:last-child td {
    border-bottom: none;
}

.inline-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
}

.field {
    min-width: 210px;
}

.blog-content p {
    margin-bottom: 1.15rem;
    white-space: pre-line;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* =====================
   HERO SPLIT
   ===================== */

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
    padding: 3rem 0 2rem;
}

.hero-split__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-split__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

.hero-split__microcopy {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    color: #5b6472;
    margin: -0.45rem 0 1.15rem;
    max-width: 440px;
}

.hero-split__subtitle {
    font-size: 1.08rem;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero-split__subtitle--services {
    max-width: 640px;
    white-space: nowrap;
}

.hero-split__expertise {
    margin-top: 2rem;
    max-width: 640px;
}

.hero-split__expertise-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.85rem;
}

.hero-split__expertise-list {
    padding-left: 1.35rem;
    margin: 0;
    color: #334155;
}

.hero-split__expertise-list li+li {
    margin-top: 0.35rem;
}

.hero-split__work-mode {
    margin-top: 1rem;
}

.btn-hero {
    display: inline-block;
    background-color: var(--primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 0.55rem;
    text-decoration: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(91, 132, 177, 0.35);
}

.btn-hero:hover {
    background-color: #4a72a0;
    box-shadow: 0 6px 18px rgba(91, 132, 177, 0.45);
    text-decoration: none;
    color: #fff !important;
}

.hero-split__image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.hero-split__image::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(145% 120% at 0% 50%, rgba(243, 233, 220, 0.9) 0%, rgba(243, 233, 220, 0.22) 48%, rgba(243, 233, 220, 0) 76%),
        linear-gradient(0deg, rgba(243, 233, 220, 0.62) 0%, rgba(243, 233, 220, 0.2) 28%, rgba(243, 233, 220, 0) 54%);
}

.hero-split__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: saturate(0.94) contrast(0.95);
    -webkit-mask-image:
        radial-gradient(125% 120% at 50% 52%, #000 52%, rgba(0, 0, 0, 0.76) 72%, rgba(0, 0, 0, 0.34) 86%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, #000 72%, rgba(0, 0, 0, 0.28) 91%, rgba(0, 0, 0, 0) 100%);
    mask-image:
        radial-gradient(125% 120% at 50% 52%, #000 52%, rgba(0, 0, 0, 0.76) 72%, rgba(0, 0, 0, 0.34) 86%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, #000 72%, rgba(0, 0, 0, 0.28) 91%, rgba(0, 0, 0, 0) 100%);
}

/* =====================
   HOW HELP CARDS
   ===================== */

.how-help {
    margin-bottom: 2.5rem;
}

.how-help__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.75rem;
}

.how-help__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.how-help__card {
    background: var(--surface-warm);
    border: 1px solid #e7dccb;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
    display: block;
    box-shadow: 0 5px 16px rgba(79, 62, 41, 0.08);
}

.how-help__card:hover {
    border-color: #d9cab6;
    box-shadow: 0 10px 24px rgba(79, 62, 41, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.how-help__icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.85rem;
}

.how-help__card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.how-help__card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* =====================
   TRUST BAR
   ===================== */

.trust-bar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface-warm);
    border: 1px solid #e7dccb;
    border-radius: 0.85rem;
    padding: 1.1rem 1.4rem;
    margin-bottom: 2rem;
}

.trust-bar__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.trust-bar strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.15rem;
}

.trust-bar__text {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.event-form-wrap {
    margin-top: 0.85rem;
    padding-top: 0.35rem;
    border-top: 1px solid #e7dccb;
}

/* =====================
   RESPONSIVE HERO + CARDS
   ===================== */

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

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding: 1.5rem 0 1rem;
        gap: 1.5rem;
    }

    .hero-split__image {
        order: -1;
    }

    .hero-split__subtitle {
        max-width: 100%;
    }

    .hero-split__subtitle--services {
        white-space: normal;
    }

    .hero-split__expertise {
        max-width: 100%;
    }

    .how-help__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .how-help__grid {
        grid-template-columns: 1fr;
    }

    .trust-bar {
        padding: 0.95rem 1rem;
    }

    .trust-bar__text {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {

    .btn-primary,
    .btn-hero,
    .js-event-form-toggle {
        min-height: 44px;
        padding: 0.65rem 0.9rem;
        font-size: 0.98rem;
    }

    .how-help__card {
        padding: 1.15rem 1rem;
    }

    .how-help__card h3 {
        font-size: 0.96rem;
    }

    .hero-split__title {
        font-size: 1.65rem;
    }

    .hero-split__subtitle {
        font-size: 1rem;
    }

    .navbar-brand__title {
        font-size: 1.25rem;
    }

    .navbar-brand__subtitle {
        font-size: 0.66rem;
    }
}

/* =====================
   SECTIONS
   ===================== */

section {
    padding: 3rem 0;
}

section.light-bg {
    background-color: var(--light);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* =====================
   FOOTER
   ===================== */

footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

footer h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--primary);
}

/* =====================
   MODALS
   ===================== */

.modal-header {
    background-color: var(--light);
    border-bottom: 2px solid #ddd;
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 90, 160, 0.15);
}

.modal-title {
    color: var(--dark);
    font-weight: 600;
}

/* =====================
   ADMIN PANEL
   ===================== */

.admin-panel {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
}

.admin-widget {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.admin-widget h5 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive Admin Panel */
@media (max-width: 1200px) {
    .admin-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .admin-panel {
        grid-template-columns: 1fr;
    }
}

/* =====================
   PASSWORD STRENGTH
   ===================== */

.password-strength {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 0.5rem;
}

.strength-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.strength-item.met {
    color: var(--success);
}

.strength-item.unmet {
    color: var(--gray);
}

.strength-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
}

.strength-check.met {
    background-color: var(--success);
    color: white;
}

.strength-check.unmet {
    background-color: #ddd;
    color: white;
}

/* =====================
   PAGINATION
   ===================== */

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--primary);
    border-color: #ddd;
    margin: 0 2px;
    border-radius: 0.25rem;
}

.page-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =====================
   RESPONSIVE UTILITIES
   ===================== */

/* Min height for body flex layout */
.min-vh-100 {
    min-height: 100vh;
}

/* Show/hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* =====================
   ANIMATIONS
   ===================== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =====================
   UTILITY CLASSES
   ===================== */

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary-light {
    background-color: rgba(44, 90, 160, 0.1);
}

.border-primary-light {
    border: 1px solid rgba(44, 90, 160, 0.2);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-22 {
    margin-bottom: 22px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-18 {
    margin-top: 18px;
}

.narrow-400 {
    max-width: 400px;
    margin: 0 auto;
}

.narrow-520 {
    max-width: 520px;
}

.w-100 {
    width: 100%;
}

.btn-green-soft {
    padding: 10px 16px;
    background: #5e7f6d;
    color: #fff;
    border: none;
    border-radius: 6px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    border: 0;
    padding: 0;
}

.btn-linklike {
    text-decoration: none;
    display: inline-block;
}

.error-403-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px;
}

.error-403-code {
    font-size: 46px;
    margin: 0 0 10px;
}

.error-403-lead {
    margin: 0 0 24px;
    opacity: 0.9;
}

.error-403-card {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.error-403-card-title {
    margin: 0 0 10px;
}

.error-403-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
}

.error-403-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.error-403-secondary-link {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

/* HTMX indicator styles moved to static CSS to avoid inline styles (CSP-safe). */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

.hero-logo-wrap {
    margin-bottom: 1.25rem;
}

.hero-logo {
    width: min(320px, 72vw);
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    background: #f5f0e8;
    padding: 0.2rem;
}