/* ==========================================================================
   1. GLOBAL RESET & LAYOUT
   ========================================================================== */
html body,
html body .tm-page,
html body .tm-page-container {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
html body header.tm-header .uk-logo,
html body header.tm-header-mobile .uk-logo {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

html body header.tm-header .uk-navbar-nav > li > a {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

html body header.tm-header .uk-navbar-nav > li > a::before,
html body header.tm-header .uk-navbar-nav > li > a::after {
    content: none;
    display: none;
}

html body header.tm-header .uk-navbar-nav > li.uk-active > a {
    color: #ffffff;
}

html body header.tm-header .uk-navbar-nav > li.uk-active > a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #a41034;
}

html body header.tm-header-mobile .uk-navbar-toggle {
    color: #ffffff;
}


/* ==========================================================================
   HERO SEKCIJA SA VIŠESLOJNIM GRADIJENTOM (.mdms-hero)
   ========================================================================== */
html body #tm-main .mdms-hero {
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    padding-top: 60px;
    padding-bottom: 150px;
    /* 4 Sloja gradijenta: Harvard Crimson (gore-desno) + Deep Navy (dole-levo) + Vignette + Base */
    background-image: 
        radial-gradient(ellipse at 85% 15%, rgba(164, 16, 52, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 85%, rgba(30, 58, 138, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.75) 100%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

html body #tm-main .mdms-hero .uk-container {
    position: relative;
    z-index: 2;
}

html body #tm-main .mdms-hero h1:not(.uk-h4) {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

html body #tm-main .mdms-hero h1.uk-h4 {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 400;
    color: #cbd5e1;
    margin-top: 0;
    margin-bottom: 1.75rem;
}

html body #tm-main .mdms-hero .uk-panel,
html body #tm-main .mdms-hero .uk-panel.uk-margin {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 750px;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

html body #tm-main .mdms-hero .uk-button-secondary {
    background-color: #a41034;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 0 35px;
    height: 48px;
    line-height: 48px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html body #tm-main .mdms-hero .uk-button-secondary:hover {
    background-color: #ffffff;
    color: #a41034;
}

#mdms-hero-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   HOME HERO - STATIČKA SFERA (Prelepa grafika bez opterećenja GPU-a)
   ========================================================================== */
.mdms-hero-sphere-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 50%;
}

.mdms-hero-sphere-wrapper:hover {
    border-color: rgba(164, 16, 52, 0.4);
    box-shadow: 0 20px 45px rgba(164, 16, 52, 0.15);
}

/* ==========================================================================
   4. GRID KARTICE (.mdms-grid-section)
   ========================================================================== */
html body #tm-main .mdms-grid-section {
    background-color: #f8fafc;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

html body #tm-main .mdms-grid-section .uk-tile-muted {
    background-color: #ffffff;
    border-top: 3px solid #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

html body #tm-main .mdms-grid-section .uk-tile-muted:hover {
    transform: translateY(-6px);
    border-top-color: #a41034;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

html body #tm-main .mdms-grid-section h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 600;
}

html body #tm-main .mdms-grid-section .el-content {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   HOME DONJA SEKCIJA (.home-lower-section)
   ========================================================================== */
/* Donja sekcija na Home stranici */
html body #tm-main .home-lower-section {
    background-color: #0f172a;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding-top: 14rem;
    padding-bottom: 6rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html body #tm-main .home-lower-section h2.mdms-subheading {
    font-family: "Playfair Display", Georgia, serif;
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

html body #tm-main .home-lower-section h2.mdms-subheading::before {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #a41034;
    margin-bottom: 15px;
}

html body #tm-main .home-lower-section p.mdms-extracted-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* Apstraktni okvir sa leve strane */
.mdms-home-abstract-box {
    width: 100%;
    max-width: 320px;
    height: 280px;
    margin: 0 auto;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ABOUT PAGE HERO SEKCIJA (.mdms-hero-about)
   ========================================================================== */
html body #tm-main .mdms-hero-about {
    background-color: #0f172a;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 200px;
    background-image: 
        radial-gradient(ellipse at 85% 15%, rgba(164, 16, 52, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 85%, rgba(30, 58, 138, 0.3) 0%, transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Kicker / Tag (WHO WE ARE) */
html body #tm-main .mdms-hero-about .mdms-tag {
    display: inline-block;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    margin-top: 40px;
}

/* Glavni naslov */
html body #tm-main .mdms-hero-about h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Paragraf tekst */
html body #tm-main .mdms-hero-about p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.75;
    margin-top: 0;
    margin-bottom: 0;
}

/* ==========================================================================
   VEKTORSKA MATRICA UI KARTICA (.mdms-matrix-card) - STATIČKA VERZIJA
   ========================================================================== */
html body #tm-main .mdms-hero-about .mdms-matrix-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #a41034;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html body #tm-main .mdms-hero-about .mdms-matrix-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #a41034;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Header kartice */
html body #tm-main .mdms-hero-about .mdms-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

html body #tm-main .mdms-hero-about .mdms-card-tag {
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

html body #tm-main .mdms-hero-about .mdms-card-status {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

html body #tm-main .mdms-hero-about .mdms-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
}

/* SVG wrapper */
html body #tm-main .mdms-hero-about .mdms-matrix-svg-wrapper {
    width: 100%;
    height: auto;
}

html body #tm-main .mdms-hero-about .mdms-matrix-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer kartice sa metrima */
html body #tm-main .mdms-hero-about .mdms-card-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    margin-top: 10px;
}

html body #tm-main .mdms-hero-about .mdms-metric {
    display: flex;
    flex-direction: column;
}

html body #tm-main .mdms-hero-about .mdms-m-label {
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

html body #tm-main .mdms-hero-about .mdms-m-val {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}

/* ==========================================================================
   SEKCIJA: ABOUT LEADS KARTICE (.about-leads)
   ========================================================================== */
/* Glavni okvir kartice sa prostorom za ikonicu levo */
html body #tm-main .about-leads .el-item.uk-panel {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #0f172a;
    border-radius: 4px;
    padding: 28px 28px 28px 85px !important; /* Povećan levi padding da napravi mesto za ikonicu */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
    height: 100%;
    box-sizing: border-box;
    position: relative; /* Bitno za fiksiranje ikonice */
}

/* Akademska kapa (SVG Ikonica) ubačena čisto preko CSS-a */
html body #tm-main .about-leads .el-item.uk-panel::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 28px;
    width: 40px;
    height: 40px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    /* SVG kod za elegantnu kapu u Harvard Crimson crvenoj boji */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a41034' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
    background-size: 22px;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Hover efekat za karticu i ikonicu */
html body #tm-main .about-leads .el-item.uk-panel:hover {
    transform: translateY(-4px);
    border-top-color: #a41034;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}
html body #tm-main .about-leads .el-item.uk-panel:hover::before {
    background-color: rgba(164, 16, 52, 0.04);
    border-color: rgba(164, 16, 52, 0.15);
}

/* Ime istraživača (.el-title) */
html body #tm-main .about-leads .el-item.uk-panel .el-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

/* Uloga/Titula (.el-meta) */
html body #tm-main .about-leads .el-item.uk-panel .el-meta {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    display: block;
}

/* Biografija/Tekst (.el-content) */
html body #tm-main .about-leads .el-item.uk-panel .el-content {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0 !important;
}

/* ==========================================================================
   SEKCIJA: ABOUT APPROACH (.about-approach) - TAMNA VERZIJA SA SLIKOM
   ========================================================================== */
html body #tm-main .about-approach {
    background-color: #0f172a;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding-top: 14rem;
    padding-bottom: 6rem;
    position: relative;
    color: #cbd5e1; /* Svetlo siva za lakše čitanje na tamnom */
}

/* Naslov u tamnoj sekciji (Bela boja, Playfair font) */
html body #tm-main .about-approach h1,
html body #tm-main .about-approach h2,
html body #tm-main .about-approach .uk-h2 {
    font-family: "Playfair Display", Georgia, serif;
    color: #ffffff !important;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Crvena linija iznad naslova */
html body #tm-main .about-approach .uk-h2::before {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #a41034;
    margin-bottom: 20px;
}

/* Tekst u tamnoj sekciji */
html body #tm-main .about-approach .uk-panel {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* Stilizacija Apstraktnog Kruga (.mdms-abstract-circle) */
.mdms-abstract-circle {
    display: block;
    width: 320px; /* Veličina kruga */
    height: 320px;
    border-radius: 50%; /* Pravi savršen krug */
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.08); /* Suptilna bela bordura */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); /* Duboka senka */
    position: relative;
    float: right; /* Fiksira krug desno */
    margin-left: 40px; /* Razmak između teksta i kruga */
}

/* Osigurava da se slika unutar kruga pravilno skalira */
.mdms-abstract-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   CONTACT PAGE - KOMPLETAN UNIFICIRANI CSS (Dark Hero + Form + Dark Lower)
   ========================================================================== */

/* 1. HERO SEKCIJA (Identilna tamna pozadina kao Home i About) */
html body #tm-main div.contact-hero.uk-section-default,
html body #tm-main .contact-hero {
    background-color: #0f172a !important;
    background-image: 
        radial-gradient(ellipse at 85% 15%, rgba(164, 16, 52, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 85%, rgba(30, 58, 138, 0.3) 0%, transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    position: relative;
    overflow: hidden;
}

html body #tm-main .contact-hero h1 {
    font-family: "Playfair Display", Georgia, serif !important;
    color: #ffffff !important;
    font-size: 3.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

html body #tm-main .contact-hero .uk-panel {
    color: #cbd5e1 !important;
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
    max-width: 750px;
}

/* 2. FORMA I KONTAKT PODACI (.contact-main) */
html body #tm-main .contact-main .uk-panel {
    color: #334155 !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 2 !important;
}

#cf_1 .cf-input,
#cf_1 textarea.cf-input,
#cf_1 .tf-phone-control--number {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

#cf_1 .cf-input:focus,
#cf_1 textarea.cf-input:focus {
    border-color: #a41034 !important;
    box-shadow: 0 0 0 3px rgba(164, 16, 52, 0.15) !important;
    outline: none !important;
}

#cf_1 .cf-label {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.9rem !important;
}

#cf_1 .cf-control-group[data-key="2"] button,
#cf_1 button.cf-btn,
#cf_1 button[type="submit"] {
    background-color: #a41034 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    padding: 14px 35px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
}

#cf_1 .cf-control-group[data-key="2"] button:hover,
#cf_1 button.cf-btn:hover {
    background-color: #0f172a !important;
    transform: translateY(-2px);
}

/* 3. DONJA TAMNA SEKCIJA (.contact-lower) */
html body #tm-main div.contact-lower.uk-section-default,
html body #tm-main .contact-lower {
    background-color: #0f172a !important;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding-top: 14rem !important;
    padding-bottom: 6rem !important;
    color: #cbd5e1 !important;
}

html body #tm-main .contact-lower h3,
html body #tm-main .contact-lower .uk-h3 {
    font-family: "Playfair Display", Georgia, serif !important;
    color: #ffffff !important;
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

html body #tm-main .contact-lower h3::before,
html body #tm-main .contact-lower .uk-h3::before {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #a41034;
    margin-bottom: 16px;
}

html body #tm-main .contact-lower p {
    color: #cbd5e1 !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}

/* ==========================================================================
   CONTACT PAGE - NOVI STILOVI ZA INFO KARTICE I NASLOV FORME
   ========================================================================== */

/* Naslov i opis iznad forme */
.mdms-form-heading {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.mdms-form-subtext {
    color: #64748b !important;
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
}

/* Leva strana: Info blokovi sa ikonicama */
.mdms-contact-info-block {
    padding-right: 20px;
}

.mdms-info-heading {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.mdms-info-desc {
    color: #64748b !important;
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

.mdms-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0f172a;
    border-radius: 4px;
    transition: border-left-color 0.2s ease, transform 0.2s ease;
}

.mdms-info-item:hover {
    border-left-color: #a41034;
    transform: translateX(4px);
}

.mdms-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
}

.mdms-info-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
}

.mdms-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.mdms-info-value:hover {
    color: #a41034 !important;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
html body footer {
    background-color: #0f172a;
    border-top: 3px solid #a41034;
}

html body footer .uk-section-default {
    background-color: transparent;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

html body footer .uk-width-1-1 > div {
    color: #94a3b8;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-align: center;
}

/* ==========================================================================
   CONTACT FORM - STILIZOVANA KARTICA (Usklađena sa levom stranom)
   ========================================================================== */
/* Spoljni omotač forme u vidu kartice */
.mdms-form-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #0f172a;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: border-top-color 0.25s ease, box-shadow 0.25s ease;
}

.mdms-form-wrapper:hover {
    border-top-color: #a41034;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Polja za unos (Inputs & Textarea) */
#cf_1 .cf-input,
#cf_1 textarea.cf-input,
#cf_1 .tf-phone-control--number {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

/* Aktivno polje (Focus) */
#cf_1 .cf-input:focus,
#cf_1 textarea.cf-input:focus {
    border-color: #a41034 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(164, 16, 52, 0.12) !important;
    outline: none !important;
}

/* Nazivi polja (Labels - Uppercase mikro stil) */
#cf_1 .cf-label {
    font-weight: 700 !important;
    color: #475569 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
}

/* Submit dugme preko cele širine sa lift efektom */
#cf_1 .cf-control-group[data-key="2"] button,
#cf_1 button.cf-btn,
#cf_1 button[type="submit"] {
    width: 100% !important;
    background-color: #a41034 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 14px 24px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

#cf_1 .cf-control-group[data-key="2"] button:hover,
#cf_1 button.cf-btn:hover {
    background-color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2) !important;
}

#cf_1 .choices__list--dropdown .choices__item--selectable {
  background: #d6dbe6;
}

/* ==========================================================================
   CONTACT PAGE - POTPUNO IZJEDNAČAVANJE LEVE I DESNE STRANE
   ========================================================================== */

/* 1. Izjednačavanje Naslova na levoj i desnoj strani */
.mdms-info-heading,
.mdms-form-heading {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* 2. Izjednačavanje Opisa ispod naslova */
.mdms-info-desc,
.mdms-form-subtext {
    color: #64748b !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 28px !important;
}

/* 3. Spajanje CELE desne strane (naslov + polja) u JEDNU karticu */
html body #tm-main .contact-main .uk-width-1-2\@m:last-child > .uk-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #0f172a !important;
    border-radius: 6px !important;
    padding: 32px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    transition: border-top-color 0.25s ease, box-shadow 0.25s ease !important;
}

html body #tm-main .contact-main .uk-width-1-2\@m:last-child > .uk-panel:hover {
    border-top-color: #a41034 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

/* Poništavanje starog malog okvira oko samog naslova ako je postojao */
.mdms-form-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Poravnanje vrha leve strane sa desnom karticom */
.mdms-contact-info-block {
    padding-top: 4px;
}


/* ==========================================================================
   MOBILNI PRIKAZ I OPTIMIZACIJA EKRA NA (RESPONSIVE MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 959px) {
    /* 1. Smanjivanje Hero i sekcijskih paddinga */
    html body #tm-main .mdms-hero,
    html body #tm-main .mdms-hero-about,
    html body #tm-main div.contact-hero.uk-section-default,
    html body #tm-main .contact-hero {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }

    html body #tm-main .about-approach,
    html body #tm-main .home-lower-section,
    html body #tm-main div.contact-lower.uk-section-default,
    html body #tm-main .contact-lower {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* 2. Smanjivanje tipografije naslova */
    html body #tm-main .mdms-hero h1:not(.uk-h4),
    html body #tm-main .mdms-hero-about h1,
    html body #tm-main .contact-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }

    html body #tm-main .about-approach h1,
    html body #tm-main .about-approach h2,
    html body #tm-main .home-lower-section h2.mdms-subheading,
    html body #tm-main .contact-lower h3,
    .mdms-info-heading,
    .mdms-form-heading {
        font-size: 1.6rem !important;
    }

    /* 3. Centriranje i skaliranje SVG grafika */
    .mdms-hero-sphere-wrapper,
    .mdms-matrix-card,
    .mdms-home-abstract-box,
    .mdms-abstract-network {
        max-width: 100% !important;
        margin: 20px auto 0 auto !important;
    }

    .mdms-abstract-circle {
        float: none !important;
        margin: 25px auto 0 auto !important;
        width: 260px !important;
        height: 260px !important;
    }

    /* 4. Prilagođavanje kartica istraživača (Research Leads) */
    html body #tm-main .about-leads .el-item.uk-panel {
        padding: 24px 20px 24px 70px !important;
    }
    
    html body #tm-main .about-leads .el-item.uk-panel::before {
        left: 18px !important;
        top: 24px !important;
        width: 36px !important;
        height: 36px !important;
    }

    /* 5. Prilagođavanje Kontakt stranice */
    .mdms-contact-info-block {
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }
    
    html body #tm-main .contact-main .uk-width-1-2\@m:last-child > .uk-panel {
        padding: 20px !important;
    }
}

@media (max-width: 640px) {
    /* Fina podešavanja za pametne telefone (< 640px) */
    html body #tm-main .about-leads .el-item.uk-panel {
        padding: 20px 18px 20px 65px !important;
    }

    .mdms-info-item {
        padding: 12px !important;
        gap: 12px !important;
    }

    .mdms-info-value {
        font-size: 0.88rem !important;
        word-break: break-word !important; /* Prevencija prelivanja duge email adrese */
    }
}

/* ==========================================================================
   MOBILNI HEADER I OFF-CANVAS MENI (.tm-header-mobile)
   ========================================================================== */
/* 1. Tamna pozadina mobilnog zaglavlja */
html body header.tm-header-mobile,
html body header.tm-header-mobile .uk-navbar-container {
    background-color: #0f172a !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 2. Beli logo tekst na mobilnom */
html body header.tm-header-mobile .uk-logo {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

/* 3. Bela burger ikonica */
html body header.tm-header-mobile .uk-navbar-toggle,
html body header.tm-header-mobile [uk-navbar-toggle-icon],
html body header.tm-header-mobile [uk-navbar-toggle-icon] svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* 4. Mobilni Meni koji se otvara sa strane (Offcanvas drawer) */
#tm-dialog-mobile .uk-offcanvas-bar {
    background-color: #0f172a !important;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

#tm-dialog-mobile .uk-nav-default > li > a {
    color: #cbd5e1 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    padding: 12px 0 !important;
}

#tm-dialog-mobile .uk-nav-default > li.uk-active > a {
    color: #a41034 !important; /* Harvard Crimson za aktivnu stranicu */
}

#tm-dialog-mobile .uk-offcanvas-close {
    color: #ffffff !important;
}

/* Mobilni razmaci: Samo donji padding za Hero i gornji padding za donju sekciju */
@media (max-width: 959px) {

    /* Donji padding za sve Hero sekcije */
    html body #tm-main .mdms-hero,
    html body #tm-main .mdms-hero-about,
    html body #tm-main div.contact-hero.uk-section-default,
    html body #tm-main .contact-hero {
        padding-bottom: 120px !important;
    }

    /* Gornji padding za sve donje (Navy) sekcije */
    html body #tm-main .about-approach,
    html body #tm-main .home-lower-section,
    html body #tm-main div.contact-lower.uk-section-default,
    html body #tm-main .contact-lower {
        padding-top: 10rem !important;
    }

}

/* ==========================================================================
   SVG ANIMACIJA - SPOLJNI KRUG (Kontakt stranica)
   ========================================================================== */
.mdms-abstract-network .mdms-outer-ring {
    transform-origin: 150px 150px;
    animation: mdmsSpin 35s linear infinite;
    will-change: transform;
}

@keyframes mdmsSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SVG ANIMACIJA - ROTIRAJUĆI POLIGON (Home Lower Sekcija)
   ========================================================================== */
.mdms-home-abstract-box .mdms-polygon-group {
    transform-origin: 150px 150px;
    animation: mdmsSpin 45s linear infinite;
    will-change: transform;
}

/* ==========================================================================
   SVG ANIMACIJA - HERO SPOLJNI ORBIT (Naslovna gore desno)
   ========================================================================== */
/*.mdms-hero-orbit {
    transform-origin: 150px 150px;
    animation: mdmsSpin 55s linear infinite;
    will-change: transform;
}*/

/* Prilagođavanje kontejnera */
.mdms-hero-sphere-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Rotacija se primenjuje na DIV, forsirajući 3D/GPU akceleraciju u Firefoxu */
.mdms-orbit-gpu-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transform: translateZ(0); /* Pokreće GPU sloj */
    will-change: transform;
    animation: mdmsSpinGpu 55s linear infinite;
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes mdmsSpinGpu {
    from {
        transform: rotate(0deg) translateZ(0);
    }
    to {
        transform: rotate(360deg) translateZ(0);
    }
}