/* Mali CLS fix samo za mobilno dugme menija */

@media (max-width: 768px) {
  body.home #site-navigation-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  body.home #site-navigation-menu-toggle span::before {
    display: inline-block;
    width: 20px;
    height: 20px;
  }
}
/* =========================================================
   HOME — Hero CTA dugmad bez CLS-a
   ========================================================= */

body.home .ks-hero-cta-wrap,
body.front-page .ks-hero-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 18px 0 16px;
    position: relative;
    z-index: 5;
    min-height: 48px;
}

body.home .ks-hero-cta-primary,
body.home .ks-hero-cta-secondary,
body.front-page .ks-hero-cta-primary,
body.front-page .ks-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.home .ks-hero-cta-primary,
body.front-page .ks-hero-cta-primary {
    background: #365f8e !important;
    color: #fff !important;
    border: 1px solid #365f8e !important;
    box-shadow: 0 10px 22px rgba(53, 95, 142, 0.20) !important;
}

body.home .ks-hero-cta-primary:hover,
body.home .ks-hero-cta-primary:focus,
body.front-page .ks-hero-cta-primary:hover,
body.front-page .ks-hero-cta-primary:focus {
    background: #2d5178 !important;
    border-color: #2d5178 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.home .ks-hero-cta-secondary,
body.front-page .ks-hero-cta-secondary {
    background: rgba(255,255,255,0.96);
    color: #222 !important;
    border: 1px solid #d8d8d8;
    box-shadow: none;
}

body.home .ks-hero-cta-secondary:hover,
body.home .ks-hero-cta-secondary:focus,
body.front-page .ks-hero-cta-secondary:hover,
body.front-page .ks-hero-cta-secondary:focus {
    background: #fff;
    border-color: #bcbcbc;
    color: #111 !important;
    transform: translateY(-1px);
}

body.home .ks-cta-mobile,
body.front-page .ks-cta-mobile {
    display: none;
}


/* =========================================================
   HOME — Najtraženije usluge u Beogradu
   ========================================================= */

body.home .ks-home-seo-links,
body.front-page .ks-home-seo-links {
    max-width: 1200px;
    margin: 35px auto 20px;
    padding: 0 20px;
}

body.home .ks-home-seo-links-inner,
body.front-page .ks-home-seo-links-inner {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

body.home .ks-home-seo-links h2,
body.front-page .ks-home-seo-links h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #222;
}

body.home .ks-home-seo-links p,
body.front-page .ks-home-seo-links p {
    margin: 0 0 18px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

body.home .ks-home-seo-links-grid,
body.front-page .ks-home-seo-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.home .ks-home-seo-links-grid a,
body.front-page .ks-home-seo-links-grid a {
    display: block;
    text-decoration: none;
    background: #f7f8fb;
    border: 1px solid #e8ebf2;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    color: #1d3557;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.home .ks-home-seo-links-grid a:hover,
body.home .ks-home-seo-links-grid a:focus,
body.front-page .ks-home-seo-links-grid a:hover,
body.front-page .ks-home-seo-links-grid a:focus {
    background: #eef3ff;
    border-color: #cfdcff;
    color: #1d3557;
    transform: translateY(-1px);
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 991px) {
    body.home .ks-hero-cta-wrap,
    body.front-page .ks-hero-cta-wrap {
        gap: 12px;
        margin: 18px 0 16px;
        padding: 0 14px;
        min-height: 116px;
    }

    body.home .ks-hero-cta-primary,
    body.home .ks-hero-cta-secondary,
    body.front-page .ks-hero-cta-primary,
    body.front-page .ks-hero-cta-secondary {
        width: 100%;
        min-width: 0;
        max-width: 320px;
        padding: 16px 18px;
        font-size: 15px;
        border-radius: 12px;
    }

    body.home .ks-cta-desktop,
    body.front-page .ks-cta-desktop {
        display: none;
    }

    body.home .ks-cta-mobile,
    body.front-page .ks-cta-mobile {
        display: inline;
    }

    body.home .main-search h1,
    body.home .main-banner h1,
    body.home .hero h1,
    body.home .page-banner h1,
    body.home h1,
    body.front-page .main-search h1,
    body.front-page .main-banner h1,
    body.front-page .hero h1,
    body.front-page .page-banner h1,
    body.front-page h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
        margin-bottom: 8px !important;
    }

    body.home .ks-home-seo-links-grid,
    body.front-page .ks-home-seo-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    body.home .ks-home-seo-links,
    body.front-page .ks-home-seo-links {
        padding: 0 14px;
    }

    body.home .ks-home-seo-links-inner,
    body.front-page .ks-home-seo-links-inner {
        padding: 18px;
        border-radius: 13px;
    }

    body.home .ks-home-seo-links h2,
    body.front-page .ks-home-seo-links h2 {
        font-size: 22px;
    }

    body.home .ks-home-seo-links-grid,
    body.front-page .ks-home-seo-links-grid {
        grid-template-columns: 1fr;
    }
}

