html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: #e4e4e4;
  font-family: 'Rubik', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Rubik', sans-serif;
}

a {
  color: #006738;
  text-decoration: none;
}

a:hover {
  color: #ec1c24;
  text-decoration: none;
}

p {
  font-size: 1.1rem;
}

.breadcrumb {
  background-color: #ffffff;
  margin-bottom: 0.8rem;
}

.breadcrumb h1 {
  font-size: 35px;
  line-height: 130%;
  font-family: "Sedgwick Ave Display", cursive;
  padding-bottom: 0.5rem;
}

.breadcrumb h2 {
  color: #006738;
  font-size: 1.5rem;
  line-height: 130%;
  font-weight: bold;
  font-family: "Roboto", sans-serif;
  margin-top: 0.5rem;
}

/* CUSTOMIZE THE HEADER
-------------------------------------------------- */

.nav-link {font-family: 'Roboto', sans-serif;}

.navbar-light .navbar-toggler {
  background-color: #fff;
}

.navbar-toggler:focus {
  box-shadow: 0;
}

.navbar-light .navbar-nav .nav-link {
  color: #fff;
}

.navbar-light .navbar-nav .nav-link2 {
  color: #006738;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #ec1c24;
}

.navbar-light .navbar-nav .nav-link2:hover {
  color: #ec1c24;
}

/* PORTAL cSS
---------------------------------------------------- */

.compas-text-small {
  font-size: 0.9rem;
}
.compas-back-light {
  background-color: #fff;
}

blockquote {
  background: #ebeced;
  border: 2px dotted #ec2229;
  margin: 15px 0px 10px 0px;
  padding: 5px 10px 0px 10px;
}

.col img {
  max-width: 100%;
  height: auto;
  display: block; /* Osigurava pravilno ponašanje unutar flex konteksta */
}

.btn-link {
  background-color: #fff;      /* bijela pozadina */
  color: green;                /* zeleni tekst */
  border: 2px solid green;     /* deblji zeleni obrub */
  padding: 15px 30px;          /* veći gumb */
  font-size: 1.25rem;          /* veći font */
  text-decoration: none;       /* bez podcrtavanja */
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease; /* glatka tranzicija */
  border-radius: 8px; 
}
.btn-link:hover {
  background-color: green;   /* lagana promjena pozadine pri hover efektu */
  color: #fff;
}

/* Globalni efekt za članke */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
  z-index: 10;
}

.card a {
  text-decoration: none !important;
}

/* Paginator stilovi */
.pagination .page-link { 
  color: #006738 !important; 
  border-radius: 8px !important; 
  margin: 0 3px; 
  font-weight: 500; 
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .page-item.active .page-link { 
  background-color: #006738 !important; 
  border-color: #006738 !important; 
  color: #fff !important;
}

.pagination .page-item.disabled .page-link { 
  color: #6c757d !important; 
  background-color: #f8f9fa !important;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  color: #ec1c24 !important;
}

/* PREMIUM COMPAS PORTAL DESIGN SYSTEM */

/* Globalne premium kartice */
.compas-top-card {
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}
.compas-top-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(0, 103, 56, 0.09) !important;
    border-color: rgba(0, 103, 56, 0.22) !important;
}

/* Horizontalne kartice */
.compas-horizontal-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 10px !important;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}
.compas-horizontal-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(0, 103, 56, 0.07) !important;
    border-color: rgba(0, 103, 56, 0.18) !important;
}

/* Kalendar widget kartice */
.compas-calendar-widget-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 10px !important;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}
.compas-calendar-widget-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(0, 103, 56, 0.07) !important;
    border-color: rgba(0, 103, 56, 0.18) !important;
}

/* Zumiranje slike */
.compas-card-img-wrap {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}
.compas-card-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    object-fit: cover;
    aspect-ratio: 16/10;
    width: 100%;
}
.compas-top-card:hover .compas-card-img-wrap img,
.compas-horizontal-card:hover .compas-card-img-wrap img {
    transform: scale(1.045) !important;
}

/* Naslovi kartica i hover efekti */
.compas-card-title {
    color: #1a202c !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
    margin-top: 4px;
    margin-bottom: 0;
}
.compas-top-card:hover .compas-card-title,
.compas-horizontal-card:hover .compas-card-title,
.compas-calendar-widget-card:hover .compas-card-title {
    color: #006738 !important;
}

/* Meta linija na dnu */
.compas-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #718096;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Trostupne Card cjeline */
.compas-column-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
}

/* GLASSMORPHIC FLOATING STICKY NAVBAR STYLE */
.navbar-glassmorphic {
    background-color: rgba(0, 103, 56, 0.93) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    position: sticky !important;
    top: 0;
    z-index: 1020;
    box-shadow: 0 8px 32px rgba(0, 103, 56, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.navbar-glassmorphic .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.navbar-glassmorphic .nav-link:hover {
    color: #ffffff !important;
}
.navbar-facebook-icon {
    transition: color 0.2s ease, transform 0.2s ease !important;
}
.navbar-facebook-icon:hover {
    color: #1877F2 !important;
    transform: scale(1.15);
}

/* PREMIUM METADATA GREEN TO GREY HOVER LINKS */
.meta-green-link {
    color: #006738 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out !important;
}
.meta-green-link:hover {
    color: #718096 !important;
    text-decoration: underline !important;
}

/* Nadnaslovi kartica */
.compas-card-nadnaslov {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #4b5563 !important;
    margin-bottom: 4px;
    display: inline-block;
}

/* Prilagodba fontova za mobitele za visoku čitljivost */
@media (max-width: 768px) {
    .compas-card-title {
        font-size: 1.18rem !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
    }
    .compas-calendar-widget-card h5 {
        font-size: 1.08rem !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
    }
    .compas-horizontal-card h5 {
        font-size: 1.15rem !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
    }
    .compas-card-meta {
        font-size: 0.82rem !important;
    }
    .compas-calendar-widget-card span {
        font-size: 0.78rem !important;
    }
    .compas-card-nadnaslov {
        font-size: 0.94rem !important;
    }
}

/* PREMIUM COMPAS FOOTER */
.compas-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    color: #4b5563 !important;
    font-size: 0.9rem !important;
}
.compas-footer-copyright {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
    font-weight: 500;
}
.compas-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.compas-footer-links a {
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    display: inline-block;
}
.compas-footer-links a:hover {
    color: #006738 !important;
    transform: translateY(-1.5px);
}
