:root {
    --huugo-blue: #3f6f95;
    --huugo-blue-dark: #274d6c;
    --huugo-soft: #f5f8fb;
    --huugo-text: #17212b;
    --huugo-muted: #667789;
    --huugo-border: #dde8f0;
    --huugo-white: #fff;
    --huugo-radius: 22px;
    --huugo-shadow: 0 18px 50px rgba(31, 67, 93, .12);
}

/* */
html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.huugo-sidebar #block-3 h2 {
    margin-block-start: 0em !important;
}

.huugo-main {
    flex: 1 0 auto;
}

.huugo-footer {
    flex-shrink: 0;
    margin-bottom: 0;
}

.huugo-footer-bottom {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .huugo-footer {
        padding-bottom: 0;
    }

    .huugo-footer-bottom {
        padding-bottom: 18px;
    }
}

/* Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--huugo-text);
    background: #fff;
    line-height: 1.65;
}

a {
    color: var(--huugo-blue-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.huugo-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.huugo-container.huugo-narrow {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
}

/* Header */
.huugo-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--huugo-border);
}

.huugo-header-inner {
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.huugo-brand {
    max-width: 290px;
    display: flex;
    align-items: center;
    color: var(--huugo-text);
}

.huugo-logo-img {
    max-height: 100px;
    width: auto;
    display: block;
}

.huugo-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.huugo-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.huugo-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--huugo-text);
    font-weight: 600;
}

.huugo-menu a:hover {
    background: var(--huugo-soft);
    text-decoration: none;
}

/* Header Search */
.huugo-header-search {
    display: flex;
    align-items: center;
    width: 220px;
    height: 42px;
    border: 1px solid var(--huugo-border);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.huugo-header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 8px 0 16px;
    font-size: 14px;
    background: transparent;
}

.huugo-header-search button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--huugo-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.huugo-header-search button:hover {
    color: var(--huugo-blue-dark);
}

/* Mobile Menu Button */
.huugo-menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
}

.huugo-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--huugo-text);
    margin: 5px 0;
}

/** Contact page **/
.huugo-contact-page {
    padding: 80px 0;
    background: linear-gradient(180deg, #f7fbfe 0, #fff 100%);
}

.huugo-contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.huugo-contact-info h1 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 0 0 28px;
}

.huugo-contact-card,
.huugo-contact-form-card {
    background: #fff;
    border: 1px solid var(--huugo-border);
    border-radius: var(--huugo-radius);
    box-shadow: var(--huugo-shadow);
    padding: 34px;
}

.huugo-contact-card h2,
.huugo-contact-form-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
}

.huugo-contact-card p,
.huugo-contact-form-card p {
    color: var(--huugo-muted);
}

.huugo-contact-form {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.huugo-contact-form label {
    display: grid;
    gap: 8px;
    color: var(--huugo-text);
    font-size: 14px;
    font-weight: 800;
}

.huugo-contact-form input,
.huugo-contact-form textarea {
    width: 100%;
    border: 1px solid var(--huugo-border);
    border-radius: 16px;
    background: var(--huugo-soft);
    padding: 15px 16px;
    color: var(--huugo-text);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.huugo-contact-form input:focus,
.huugo-contact-form textarea:focus {
    outline: none;
    border-color: var(--huugo-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(63, 111, 149, .12);
}

.huugo-contact-form textarea {
    min-height: 190px;
    resize: vertical;
}

.huugo-contact-form button {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    background: var(--huugo-blue);
    color: #fff;
    padding: 14px 28px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(63, 111, 149, .24);
    transition: background .2s ease, transform .2s ease;
}

.huugo-contact-form button:hover {
    background: var(--huugo-blue-dark);
    transform: translateY(-1px);
}

.huugo-contact-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--huugo-soft);
    color: var(--huugo-blue-dark);
    font-weight: 800;
}

.huugo-contact-social:hover {
    background: var(--huugo-blue);
    color: #fff;
    text-decoration: none;
}

.huugo-contact-social-icon {
    display: flex;
}

.huugo-form-success,
.huugo-form-error {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.huugo-form-success {
    background: #e9f8ef;
    color: #1f7a3a;
}

.huugo-form-error {
    background: #fff0f0;
    color: #a63232;
}

.huugo-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .huugo-contact-grid {
        grid-template-columns: 1fr;
    }

    .huugo-contact-card,
    .huugo-contact-form-card {
        padding: 26px;
    }
}

/* Hero */
.huugo-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 74px 0 54px;
    background:
        radial-gradient(circle at top left, #e7f1f8 0, transparent 35%),
        linear-gradient(180deg, #fff 0, #f8fbfd 100%);
}

.huugo-hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 52%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.huugo-hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03);
    animation: huugoHeroFade 15s infinite ease-in-out;
}

.huugo-hero-bg-slide:nth-child(1) {
    animation-delay: 0s;
}

.huugo-hero-bg-slide:nth-child(2) {
    animation-delay: 5s;
}

.huugo-hero-bg-slide:nth-child(3) {
    animation-delay: 10s;
}

.huugo-hero-bg-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(248, 251, 253, .58) 0%,
            rgba(248, 251, 253, .68) 36%,
            rgba(248, 251, 253, .88) 72%,
            #f8fbfd 100%
        );
    pointer-events: none;
}

@keyframes huugoHeroFade {
    0% {
        opacity: 0;
    }

    7% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.huugo-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 36px;
    align-items: center;
}

.huugo-hero-copy,
.huugo-hero-card {
    position: relative;
    z-index: 3;
}

.huugo-kicker {
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--huugo-blue);
    margin-bottom: 12px;
}

.huugo-hero h1,
.huugo-page-hero h1,
.huugo-single-hero h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    margin: 0 0 18px;
    letter-spacing: -.04em;
}

.huugo-hero p,
.huugo-page-hero p {
    font-size: 20px;
    color: var(--huugo-muted);
    max-width: 670px;
}

.huugo-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* Buttons */
.huugo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--huugo-blue);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(63, 111, 149, .24);
}

.huugo-button:hover {
    color: #fff;
    text-decoration: none;
    background: var(--huugo-blue-dark);
}

.huugo-button-light {
    background: #fff;
    color: var(--huugo-blue-dark);
    border: 1px solid var(--huugo-border);
    box-shadow: none;
}

/* Cards */
.huugo-hero-card,
.huugo-widget,
.huugo-card,
.huugo-cta-inner {
    background: #fff;
    border: 1px solid var(--huugo-border);
    border-radius: var(--huugo-radius);
    box-shadow: var(--huugo-shadow);
}

.huugo-hero-card {
    padding: 30px;
}

.huugo-hero-card h2 {
    margin-top: 0;
}

.huugo-fields {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.huugo-fields li {
    padding: 13px 14px;
    background: var(--huugo-soft);
    border-radius: 14px;
    font-weight: 700;
}

.huugo-fields span {
    color: var(--huugo-blue);
    margin-right: 8px;
}

/* Sections */
.huugo-section {
    padding: 64px 0;
}

.huugo-section-head {
    margin-bottom: 24px;
}

.huugo-section-head h2 {
    font-size: 38px;
    margin: 0;
    letter-spacing: -.03em;
}

/* Blog Grid */
.huugo-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.huugo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.huugo-post-list {
    display: grid;
    gap: 22px;
}

.huugo-card {
    overflow: hidden;
}

.huugo-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--huugo-soft);
    overflow: hidden;
}

.huugo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.huugo-card:hover .huugo-card-image img {
    transform: scale(1.04);
}

.huugo-card-body {
    padding: 24px;
}

.huugo-meta {
    font-size: 14px;
    color: var(--huugo-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.huugo-card h2 {
    font-size: 24px;
    line-height: 1.22;
    margin: 0 0 12px;
    letter-spacing: -.02em;
}

.huugo-card h2 a {
    color: var(--huugo-text);
}

.huugo-card p {
    color: var(--huugo-muted);
    margin: 0 0 18px;
}

.huugo-read-more {
    font-weight: 800;
    color: var(--huugo-blue);
}

/* Page Hero */
.huugo-page-hero,
.huugo-single-hero {
    padding: 58px 0;
    background: linear-gradient(180deg, #f7fbfe 0, #fff 100%);
    border-bottom: 1px solid var(--huugo-border);
}

/* Single Article */
.huugo-featured {
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 28px;
}

.huugo-content, .huugo-single-excerpt {
    font-size: 18px;
}

.huugo-content h2,
.huugo-content h3 {
    line-height: 1.2;
    letter-spacing: -.02em;
}

.huugo-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--huugo-blue);
    background: var(--huugo-soft);
    border-radius: 12px;
}

.huugo-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--huugo-border);
    font-weight: 800;
}

/* Sidebar */
.huugo-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.huugo-widget {
    padding: 24px;
}

.huugo-widget-title {
    margin: 0 0 14px;
}

.huugo-widget ul {
    margin: 0;
    padding-left: 0px;
}

.huugo-widget input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--huugo-border);
    border-radius: 12px;
}

.huugo-widget input[type="submit"] {
    margin-top: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--huugo-blue);
    color: #fff;
    font-weight: 800;
}

.zadnje-objave-title {
    margin-block-start: 0em !important;
}

.huugo-facebook-widget {
    padding: 10px;
    overflow: hidden;
}

.huugo-facebook-frame-wrap {
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.huugo-facebook-post-frame {
    display: block;
    width: 350px !important;
    max-width: 100%;
    height: 300px;
    margin: 0 auto;
}

.huugo-facebook-link {
    margin: 12px 0 0;
    font-weight: 800;
    text-align: center;
}

.huugo-facebook-link a {
    color: var(--huugo-blue);
}

/* Pagination */
.huugo-pagination {
    margin-top: 14px;
}

.huugo-pagination .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.huugo-pagination a,
.huugo-pagination span {
    padding: 9px 13px;
    border: 1px solid var(--huugo-border);
    border-radius: 12px;
}

.huugo-pagination .current {
    background: var(--huugo-blue);
    color: #fff;
}

.huugo-back {
    display: inline-flex;
    margin-bottom: 18px;
    font-weight: 800;
    color: var(--huugo-blue);
}

/* CTA */
.huugo-cta {
    padding: 10px 0 70px;
}

.huugo-cta-inner {
    padding: 38px;
    text-align: center;
    background: linear-gradient(135deg, var(--huugo-blue-dark), var(--huugo-blue));
    color: #fff;
}

.huugo-cta-inner p {
    color: rgba(255, 255, 255, .82);
}

.huugo-cta-inner .huugo-button {
    background: #fff;
    color: var(--huugo-blue-dark);
    box-shadow: none;
}

/* Footer */
.huugo-footer {
    background: #102536;
    color: #fff;
    padding-top: 46px;
}

.huugo-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 32px;
}

.huugo-footer p,
.huugo-footer a {
    color: rgba(255, 255, 255, .75);
}

.huugo-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.huugo-footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px;
    margin-top: 36px;
    color: rgba(255, 255, 255, .6);
}


@media (max-width: 767px) {
    .huugo-hero {
        padding-top: 310px;
    }

    .huugo-hero-bg-slider {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        min-height: 300px;
        z-index: -1;
    }

    .huugo-hero-bg-slide {
        background-position: center top;
    }

    .huugo-hero-bg-slider::after {
        background:
            linear-gradient(180deg,
                rgba(248, 251, 253, .08) 0%,
                rgba(248, 251, 253, .14) 46%,
                rgba(248, 251, 253, .74) 82%,
                #f8fbfd 100%
            );
    }

    .huugo-hero-grid {
        position: relative;
        z-index: 2;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .huugo-header-inner {
        height: 76px;
    }

    .huugo-logo-img {
        max-height: 75px;
    }

    .huugo-menu-toggle {
        display: block;
    }

    .huugo-nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 76px;
        background: #fff;
        border: 1px solid var(--huugo-border);
        border-radius: 18px;
        box-shadow: var(--huugo-shadow);
        padding: 14px;
    }

    .huugo-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .huugo-menu {
        display: grid;
        gap: 4px;
    }

    .huugo-header-search {
        width: 100%;
    }

    .huugo-hero-grid,
    .huugo-layout,
    .huugo-footer-grid {
        grid-template-columns: 1fr;
    }

    .huugo-post-grid {
        grid-template-columns: 1fr 1fr;
    }

    .huugo-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .huugo-container {
        width: min(100% - 28px, 1180px);
    }

    .huugo-hero {
        padding: 310px 0 34px;
    }

    .huugo-post-grid {
        grid-template-columns: 1fr;
    }

    .huugo-article {
        padding: 22px 12px;
    }

    .huugo-hero h1,
    .huugo-page-hero h1,
    .huugo-single-hero h1 {
        font-size: 36px;
    }

    .huugo-post-nav {
        display: grid;
    }

    .huugo-card-body {
        padding: 20px;
    }

    .huugo-footer-grid {
        gap: 16px;
    }
    .huugo-section {
        padding: 30px 0 64px 0;
    }
    .huugo-contact-page {
        padding: 30px 0 80px 0;
    }
}
/* Homepage Facebook slide-out popup */
.huugo-fb-popup {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    font-family: inherit;
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
}

.huugo-fb-popup.is-visible {
    transform: translate(0, -50%);
    opacity: 1;
    pointer-events: auto;
}

.huugo-fb-popup-toggle {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 0;
    border-radius: 14px 0 0 14px;
    background: var(--huugo-primary, #143d59);
    color: #fff;
    padding: 16px 10px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .2);
    display: none;
    align-items: center;
    gap: 8px;
}

.huugo-fb-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
}

.huugo-fb-popup-panel {
    width: 350px;
    max-width: calc(100vw - 58px);
    background: #fff;
    border: 1px solid var(--huugo-border, #e6e9ef);
    border-right: 0;
    border-radius: 22px 0 0 22px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
    padding: 16px 14px 14px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
}

.huugo-fb-popup.is-open .huugo-fb-popup-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.huugo-fb-popup-close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #f1f4f8;
    color: #1f2937;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.huugo-fb-popup-head {
    display: grid;
    gap: 3px;
    padding: 4px 42px 12px 4px;
}

.huugo-fb-popup-head strong {
    color: var(--huugo-primary, #143d59);
    font-size: 18px;
}

.huugo-fb-popup-head span {
    color: var(--huugo-muted, #687385);
    font-size: 13px;
}

.huugo-fb-popup .fb-page,
.huugo-fb-popup .fb-page span,
.huugo-fb-popup .fb-page iframe {
    max-width: 100% !important;
}

@media (min-width: 768px)
.huugo-fb-popup-toggle {
    .huugo-fb-popup {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .huugo-fb-popup {
        top: auto;
        right: 14px;
        bottom: 14px;
        transform: translateY(120%);
        align-items: flex-end;
    }

    .huugo-fb-popup.is-visible {
        transform: translateY(0);
    }

    .huugo-fb-popup-toggle {
        display: inline-flex !important;
        writing-mode: horizontal-tb;
        transform: none;
        border-radius: 999px;
        padding: 10px 15px;
        gap: 7px;
    }

    .huugo-fb-popup-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .huugo-fb-popup-panel {
        position: absolute;
        right: 0;
        bottom: 54px;
        width: min(350px, calc(100vw - 28px));
        max-height: min(430px, calc(100vh - 130px));
        overflow: auto;
        border: 1px solid var(--huugo-border, #e6e9ef);
        border-radius: 18px;
        transform: translateY(12px);
    }

    .huugo-fb-popup.is-open .huugo-fb-popup-panel {
        transform: translateY(0);
    }

    .huugo-fb-popup .fb-page,
    .huugo-fb-popup .fb-page span,
    .huugo-fb-popup .fb-page iframe {
        height: 320px !important;
        max-height: 320px !important;
    }
}
