/*
Theme Name: strani-radnici
Theme URI: 
Author: Neparno 10
Author URI: 
Description: Child tema teme Twenty TwentyFive za Novotek strani radnici
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: strani-radnici
Tags: 
*/
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/* ============================================================
   STRANI RADNICI – Global Post & Page Styles
   ============================================================ */

.single .wp-block-group.alignfull:has(.wp-block-post-title),
.page:not(.home) .wp-block-group.alignfull:has(.wp-block-post-title) {
  background-color: #111111 !important;
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

.single .wp-block-post-title,
.page:not(.home) .wp-block-post-title {
  color: #FFEE58 !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.single .wp-block-group.alignfull:has(.wp-block-post-title) .wp-block-post-author-name a,
.single .wp-block-group.alignfull:has(.wp-block-post-title) .wp-block-post-terms a,
.single .wp-block-group.alignfull:has(.wp-block-post-title) p {
  color: #aaaaaa !important;
  font-size: 0.9rem !important;
}
.single .wp-block-group.alignfull:has(.wp-block-post-title) a:hover {
  color: #FFEE58 !important;
}

.single .entry-content,
.page:not(.home) .entry-content {
  background-color: #ffffff !important;
  padding-top: 2.5rem !important;
  padding-bottom: 3rem !important;
}

.single .entry-content h2,
.page:not(.home) .entry-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 2.75rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.6rem !important;
  border-bottom: 3px solid #FFEE58 !important;
}

.single .entry-content h3,
.page:not(.home) .entry-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem) !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.4rem !important;
}

.single .entry-content p,
.page:not(.home) .entry-content p {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: #222222 !important;
  margin-bottom: 1.1rem !important;
}

.single .entry-content .wp-block-list,
.page:not(.home) .entry-content .wp-block-list {
  background-color: #FBFAF3 !important;
  border-left: 4px solid #FFEE58 !important;
  border-radius: 6px !important;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem !important;
  margin-bottom: 1.5rem !important;
}

.single .entry-content .wp-block-list li,
.page:not(.home) .entry-content .wp-block-list li {
  color: #222222 !important;
  line-height: 1.7 !important;
  margin-bottom: 0.4rem !important;
  font-size: 1rem !important;
}

.single .entry-content strong,
.page:not(.home) .entry-content strong {
  color: #111111 !important;
  font-weight: 700 !important;
}

.single .entry-content a,
.page:not(.home) .entry-content a {
  color: #503AA8 !important;
  text-decoration-color: #503AA8 !important;
  text-underline-offset: 3px !important;
}
.single .entry-content a:hover,
.page:not(.home) .entry-content a:hover {
  color: #111111 !important;
}

.single .entry-content .wp-block-separator,
.page:not(.home) .entry-content .wp-block-separator {
  border-color: #FFEE58 !important;
  border-width: 3px !important;
  opacity: 1 !important;
}

.single .entry-content ol.wp-block-list,
.page:not(.home) .entry-content ol.wp-block-list {
  padding-left: 2.5rem !important;
}

.page:not(.home) .entry-content .pillar-cards > .wp-block-group,
.page:not(.home) .entry-content > .wp-block-group:not(.alignfull):not(.alignwide) {
  background-color: #FBFAF3 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 1.5rem 2rem !important;
  margin-bottom: 1.5rem !important;
}

.page:not(.home) .entry-content > .wp-block-group:not(.alignfull):not(.alignwide) h3 {
  border-bottom: none !important;
  margin-top: 0 !important;
}

.single .entry-content .pillar-intro,
.page:not(.home) .entry-content .pillar-intro {
  background-color: #111111 !important;
  color: #ffffff !important;
  padding: 1.5rem 2rem !important;
  font-size: 1.1rem !important;
  line-height: 1.75 !important;
  margin-bottom: 2rem !important;
  margin-top: -2.5rem !important;
  border-radius: 0 !important;
}

.wp-site-blocks > main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.archive .wp-block-post-title a,
.blog .wp-block-post-title a,
.home .wp-block-post-title a {
  color: #111111 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}
.archive .wp-block-post-title a:hover,
.blog .wp-block-post-title a:hover {
  color: #503AA8 !important;
}

.single .wp-block-group.alignwide:has(.wp-block-query) {
  max-width: none !important;
  width: auto !important;
  margin-left: calc(var(--wp--style--root--padding-left, clamp(30px, 5vw, 50px)) * -1) !important;
  margin-right: calc(var(--wp--style--root--padding-right, clamp(30px, 5vw, 50px)) * -1) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background-color: #111111 !important;
  padding-top: 48px !important;
  padding-bottom: 0 !important;
}

.single .wp-block-group.alignwide:has(.wp-block-query) > .wp-block-heading {
  color: #FFEE58 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding-left: clamp(30px, 5vw, 50px) !important;
  padding-right: clamp(30px, 5vw, 50px) !important;
  margin-bottom: 24px !important;
}

.single .wp-block-query {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single .wp-block-post-template .wp-block-post {
  background-color: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.single .wp-block-post-template .wp-block-post .wp-block-group {
  padding: 28px 24px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background-color: transparent !important;
  max-width: 100% !important;
  width: 100% !important;
}

.single .wp-block-post-template .wp-block-post:hover {
  background-color: #202020 !important;
}

.single .wp-block-post-template .wp-block-post-title {
  margin: 0 0 12px 0 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

.single .wp-block-post-template .wp-block-post-title a {
  color: #FFEE58 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.single .wp-block-post-template .wp-block-post-title a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.single .wp-block-post-template .wp-block-post-title a::after {
  content: ' →' !important;
  font-size: 0.85em !important;
  opacity: 0.5 !important;
}

.single .wp-block-post-template .wp-block-post-date,
.single .wp-block-post-template .wp-block-post-date time {
  color: #666666 !important;
  font-size: 0.75rem !important;
}

@media (max-width: 900px) {
  .single .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .single .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}
