/*
Theme Name: COSDT Child
Theme URI: https://cosdt.me
Description: Child tema za Betheme (COSDT portal) — cuva customizacije pri azuriranju parent teme
Author: COSDT Admin
Author URI: https://cosdt.me
Template: cosdt
Version: 1.0.1
Text Domain: cosdt-child
*/

/* ============================================
   COSDT Design Improvements — 2026-03-14
   WHY: Modernizacija vizuelnog identiteta bez promjene sadrzaja
   ============================================ */

/* --- Typography — veci font za pravne profesionalce 35-65 god --- */
body {
  font-size: 16px;
  line-height: 1.65;
}

/* --- Hero overlay — garantuje WCAG AA kontrast za bijeli tekst --- */
.photo_section .image_wrapper::after,
#Subheader .container-fluid::after {
  background: rgba(0, 0, 0, 0.65) !important;
}

/* --- Focus states — pristupacnost za keyboard navigaciju --- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #005A9C !important;
  outline-offset: 2px;
}

/* --- Skip navigation link — WCAG requirement --- */
.skip-nav {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  background: #005A9C;
  color: #fff;
  padding: 12px 24px;
  z-index: 10000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0 !important;
  left: 0 !important;
  outline: 3px solid #FFD700;
}

/* --- Sidebar cleanup — bolji razmaci izmedju widget-a --- */
.widget {
  margin-bottom: 30px;
}
.widget img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* --- News listing — kompaktniji sa boljom hijerarhijom --- */
.post-item .post-desc-wrapper .post-title h2 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-item .post-desc-wrapper .post-excerpt {
  font-size: 14px;
  color: #555;
}
.post-item .post-meta .post-date {
  font-weight: 600;
  color: #005A9C;
}

/* --- Footer — moderniji izgled --- */
#Footer .widgets_wrapper {
  padding: 50px 0 30px;
}
#Footer .footer_copy {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
}

/* --- Breadcrumbs — suptilno ispod headera --- */
.breadcrumbs {
  font-size: 13px;
  color: #888;
  padding: 8px 0;
}
.breadcrumbs a {
  color: #005A9C;
}

/* --- Blue heading banners — konzistentnija plava --- */
.column_column .title_wrapper h2,
.column_column h2.title {
  background-color: #034EA2;
}

/* --- Calendar improvements --- */
.tribe-events .tribe-events-calendar-month__header-column h3 {
  font-size: 14px;
}
.tribe-events .tribe-events-c-top-bar__today-button {
  background: #034EA2;
  color: #fff;
}

/* --- Mobile improvements --- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .post-item .post-photo-wrapper {
    margin-bottom: 12px;
  }
  .sidebar {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
  }
  /* Sidebar dobija vizuelnu separaciju na mobilnom */
  .widget {
    margin-bottom: 24px;
  }
}

/* WHY: Dugme "Vise novosti" na dnu homepage-a uklonjeno po zahtjevu.
   Betheme koristi klasu .button_dark sa href="/novosti" */
a.button_dark[href="/novosti"],
a.button_dark[href*="/novosti"],
a.button[href="/novosti"],
a.button[href*="novosti"] {
  display: none !important;
}
