html, body {
  font-family: "Lato", sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
p, li,
button, input, textarea, select {
  font-family: "Lato", sans-serif !important;
}

#sidebar #cycles-container .cycle {
  margin-bottom: 18px;
}

#sidebar #cycles-container .cycle a {
  display: flex;
  align-items: center;        
  font-family: 'Lato', sans-serif !important;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;        
}

#sidebar #cycles-container .cycle a .cycle-icon {
  margin-right: 14px;
}

#sidebar #cycles-container .cycle a .cycle-icon img {
  display: block;
  width: 130px;               
  height: auto;
  margin-top: 15px;
} 

#sidebar #cycles-container .cycle a .cycle-icon {
  margin-right: 14px;
  flex-shrink: 0;      
}

#sidebar #cycles-container .cycle a .cycle-title {
  white-space: nowrap; 
}


#sm-icons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sm-icons ul li {
  margin-bottom: 8px; 
}

#sm-icons ul li a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}


#sm-icons ul li a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1877f2;     
  color: #fff;            
  font-size: 18px;         
  margin-right: 10px;      
}


#sm-icons ul li a span {
  font-size: 14px;
  line-height: 20px;
  color: #676767;          
}


#sm-icons ul li a:hover i {
  background: #145cc1;
}



#sidebar #cycles-modern {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: -8px;
}


#sidebar #cycles-modern .cycle-card {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;                
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}


#sidebar #cycles-modern .cycle-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.4s ease;
}


#sidebar #cycles-modern .cycle-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);   /* 50% (jak na hover) */
  transition: background 0.3s ease;
}

/* Text – white, larger, centered */
#sidebar #cycles-modern .cycle-card__title {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;             
  justify-content: center;         
  padding: 0 16px;
  text-align: center;
  color: #ffffff;                  
  font-family: 'Lato';
  font-weight: 600;
  font-size: 18px;                
  line-height: 1.3;
}


#sidebar #cycles-modern .cycle-card:hover .cycle-card__overlay {
  background: rgba(0, 0, 0, 0.65); /* 65% (jeszcze ciemniej) */
}

#sidebar #cycles-modern .cycle-card:hover .cycle-card__bg {
  transform: scale(1.05);
}


/* Footer logo image – overrides inline width/height attrs from Image widget */
#footer-outer #footer-widgets .col:first-child .widget_media_image img,
#footer-outer #footer-widgets .col:first-child .widget img {
  width: auto !important;
  max-width: 225px !important;
  height: auto !important;
  display: block;
}

/* Footer column headings */
#footer-outer #footer-widgets .widget h4 {
  color: #ffffff;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Footer global typography */
#footer-outer,
#footer-outer p,
#footer-outer li,
#footer-outer a,
#footer-outer #footer-widgets .widget,
#footer-outer #footer-widgets .widget a,
#footer-outer #footer-widgets .widget span {
  font-family: "Lato", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

/* Footer link list – disable default bullet points */
#footer-outer #footer-widgets .widget ul {
  list-style: none;
  margin: 0px;
  padding: 0;
}

/* Single list item */
#footer-outer #footer-widgets .widget ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 2.2;
}


/* Social widget (#sm-icons) - consistent with footer typography */
#footer-outer #footer-widgets #sm-icons ul {
  margin: 0;
  padding: 0;
}

#footer-outer #footer-widgets #sm-icons ul li {
  list-style: none;
  padding-left: 0;
  margin: 0;
  line-height: 2.2;
}

#footer-outer #footer-widgets #sm-icons ul li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#footer-outer #footer-widgets #sm-icons ul li a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  background-color: #004bc8 !important;
  color: #ffffff !important;
}

#footer-outer #footer-widgets #sm-icons ul li a:hover i {
  background-color: #003da3 !important;
}

#footer-outer #footer-widgets #sm-icons ul li a span {
  font-family: "Lato", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.45;
  font-weight: 400 !important;
  color: inherit;
}

/* External category link badge – global (footer + sidebar) */
.widget_categories .cat-item-243 > a::after,
.widget_categories .cat-item-244 > a::after,
.widget_categories .cat-item-245 > a::after {
  content: url('/wp-content/uploads/2026/02/new_tab.svg');
  margin-left:7px;
  position: relative;
  top: 3px;
}

/* ── Hero banner – clickable overlay link ── */

/* Wrapper needs position:relative for the overlay link */
#page-header-wrap {
  position: relative;
}

/* Invisible link covering the entire banner */
.blog-hero-area-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* Content (title, categories) above the link */
.blog-hero-content {
  position: relative;
  z-index: 2;
}

/* Spacing between hero and the rest of posts */
#page-header-wrap {
  margin-bottom: 30px;
}

/* ── Hero banner text colors ── */

/* Single post hero: navy overlay #0a2d64 directly on the image wrapper */
body.single-post .page-header-bg-image {
  filter: none;
}

body.single-post .page-header-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 45, 100, 0.55);
  pointer-events: none;
  z-index: 1;
}

/* Categories – pill boxes aligned to the title's left edge */
#page-header-bg .blog-hero-content .blog-hero-cats {
  display: block;
  margin-bottom: 12px;
  margin-left: -10px;
}

#page-header-bg .blog-hero-content .blog-hero-cats a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 4px 10px;
  margin-right: 4px;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#page-header-bg .blog-hero-content .blog-hero-cats a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Remove bottom line from section-title */
#page-header-bg .blog-hero-content .section-title {
  border-bottom: none !important;
}

#page-header-bg .blog-hero-content .section-title::after {
  display: none !important;
}

/* Title */
#page-header-bg .blog-hero-content .entry-title,
#page-header-bg .blog-hero-content .entry-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

#page-header-bg .blog-hero-content .entry-title a:hover {
  opacity: 0.85;
}

/* "Read more" button – custom style, no nectar-button classes */
#page-header-bg .blog-hero-content .blog-hero-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 26px;
  background-color: #004bc8 !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  text-decoration: none !important;
  position: relative;
  z-index: 3;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

#page-header-bg .blog-hero-content a.blog-hero-readmore:hover,
#page-header-bg .blog-hero-content a.blog-hero-readmore:focus-visible {
  background-color: #0a2d64 !important;
  color: #ffffff !important;
  filter: brightness(1.05);
}
/* ── Blog index – pagination: vertical & horizontal alignment ── */

/*
 * Flex column: post list at the top; #pagination fills the remaining column
 * height (aligns with the sidebar) and vertically centers the page controls
 * in that space.
 */
body.blog .post-area,
body.category .post-area,
body.tag .post-area {
  display: flex !important;
  flex-direction: column;
}

body.blog .post-area .posts-container,
body.category .post-area .posts-container,
body.tag .post-area .posts-container {
  flex: 0 1 auto;
}

/* ── Pagination wrapper – horizontal and vertical centering ── */
body.blog nav#pagination,
body.category nav#pagination,
body.tag nav#pagination {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 24px 12px;
  margin-top: 55px !important;
}

nav#pagination ul.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 !important;
  padding: 6px 10px;
  background: transparent;
  border-radius: 50px;
}

nav#pagination ul.page-numbers li {
  display: flex;
}

/* Base button */
nav#pagination ul.page-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
}

nav#pagination ul.page-numbers .page-numbers:hover {
  background: #dde2ea;
  color: #111;
}

/* Active / current page */
nav#pagination ul.page-numbers .page-numbers.current {
  background: #004bc8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 75, 200, 0.35);
  pointer-events: none;
}

/* Dots separator */
nav#pagination ul.page-numbers .page-numbers.dots {
  background: transparent;
  color: #999;
  pointer-events: none;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Next / Prev buttons – same blue as current page */
nav#pagination ul.page-numbers .page-numbers.next,
nav#pagination ul.page-numbers .page-numbers.prev {
  background: #004bc8 !important;
  color: #fff !important;
  padding: 0 20px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 75, 200, 0.35);
}

nav#pagination ul.page-numbers .page-numbers.next:hover,
nav#pagination ul.page-numbers .page-numbers.prev:hover {
  background: #174172 !important;
  box-shadow: 0 4px 10px rgba(33, 90, 155, 0.4);
  color: #fff !important;
}

/* ════════════════════════════════════════════════════════════════════════════
 * Footer – category dropdowns ("Online media" and "More")
 * ════════════════════════════════════════════════════════════════════════════ */

/* "More" trigger – keeps typography and color like the rest of the list */
#footer-outer .widget_categories .footer-drop-trigger {
  display: inline-block;
  cursor: pointer;
  padding-left: 0;
  user-select: none;
}

/* Arrow ▾ next to "Online media" and "More" */
#footer-outer .widget_categories .footer-drop-arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 16px;
  vertical-align: middle;
  line-height: 1;
  transition: transform 0.3s ease;
}

#footer-outer .widget_categories .footer-drop-arrow::before {
  content: '▾';
}

#footer-outer .widget_categories li.footer-cat-has-sub:hover .footer-drop-arrow,
#footer-outer .widget_categories li.footer-cat-more:hover .footer-drop-arrow {
  transform: rotate(180deg);
}

/* Accordions – expand downward and push the page content */
#footer-outer .widget_categories .footer-drop-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none !important;
  margin: 0 !important;
  padding: 16px 0 0; /* extra space between dropdown title and first item */
}

/* Expand on hover */
#footer-outer .widget_categories li.footer-cat-has-sub:hover > .footer-drop-sub,
#footer-outer .widget_categories li.footer-cat-more:hover > .footer-drop-sub {
  max-height: 200px;
}

/* Items inside the accordion list */
#footer-outer .widget_categories .footer-drop-sub li {
  padding-left: 14px !important;
  margin-bottom: 2px !important;
}

#footer-outer .widget_categories .footer-drop-sub li::before {
  display: none !important;
}

#footer-outer .widget_categories .footer-drop-sub li a {
  display: block;
  text-decoration: none;
}

/* ------------------------------
 * Author / Training widget (ba-*)
 * ------------------------------ */
.ba-widget {
  font-size: 16px;
  line-height: 1.65;
  color: #1f2a37;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 8px;
}

/* Tabs header */
.ba-tabs-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 14px 0;
  padding: 5px;
  background: #f3f7ff;
  border: 0;
  border-radius: 12px;
}

.ba-tab-btn {
  flex: 1 1 0;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 11px 10px;
  border-radius: 9px;
  color: #4a5b74;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ba-tab-btn:hover {
  color: #153a7a;
  background: #e8f0ff;
}

.ba-tab-btn.active {
  background: #004bc8;
  color: #ffffff;
  border-color: #004bc8;
  box-shadow: 0 6px 16px rgba(0, 75, 200, 0.28);
  transform: translateY(-1px);
  
}

.ba-tab-btn.active:hover {
  color: #ffffff;
}

/* Content container */
.ba-tabs-content {
  border-radius: 12px;
  padding: 14px 12px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 0;
}

.ba-tab-pane {
  display: none;
}

.ba-tab-pane.active {
  display: block;
}



/* Buttons row – same pill-bar style as .ba-tabs-nav */
.ba-buttons {
  display: flex;
  gap: 8px;
  margin: 14px 0 0 0;
  padding: 5px;
  background: #f3f7ff;
  border-radius: 12px;
}

.ba-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 11px 10px;
  border-radius: 5px !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


.ba-btn-primary {
  background: transparent;
  color: #4a5b74;
  border-color: transparent;
  box-shadow: none;
}

.ba-btn-primary:hover {
  color: #153a7a;
  background: #e8f0ff;
  transform: none;
  box-shadow: none;
}

/* Secondary (Dowiedz się więcej) – same as active tab */
.ba-btn-secondary {
  background: #004bc8;
  color: #ffffff;
  border-color: #004bc8;
  box-shadow: 0 6px 16px rgba(0, 75, 200, 0.28);
  transform: translateY(-1px);
}

.ba-btn-secondary:hover {
  background-color: #0a2d64;
  border-color: #0a2d64;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 45, 100, 0.28);
}

/* ── RSS Hero Card Grid ─────────────────────────────────────────────────────── */

.rss-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.rss-hero-card {
  position: relative;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

/* Hide menu icon on desktop */
@media only screen and (min-width: 1000px) {
  #header-outer li.slide-out-widget-area-toggle,
  #header-outer li.slide-out-widget-area-toggle.mobile-icon,
  #header-outer li.menu-item.slide-out-widget-area-toggle,
  #header-outer .slide-out-widget-area-toggle,
  #header-outer .slide-out-widget-area-toggle.mobile-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

.rss-hero-card-link {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none !important;
  color: inherit;
}

.rss-hero-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.rss-hero-card:hover .rss-hero-card-bg {
  transform: scale(1.04);
}

.rss-hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.65) 70%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.rss-hero-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px 20px;
}

.rss-hero-card-cats {
  margin-bottom: 8px;
}

.rss-hero-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 3px 9px;
  margin-right: 4px;
}

.rss-hero-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff !important;
  margin: 0 0 12px;
}

.rss-hero-card-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.rss-hero-card:hover .rss-hero-card-more {
  color: #ffffff;
}

@media (max-width: 768px) {
  .rss-hero-grid {
    grid-template-columns: 1fr;
  }

  .rss-hero-card {
    height: 240px;
  }
}

/* ── RSS Sidebar Widget ──────────────────────────────────────────────────────── */

.rss-sidebar-widget {
  margin-top: 10px;
}

.rss-sidebar-widget .widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rss-sidebar-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.rss-sidebar-list li {
  border-bottom: 1px solid #ebebeb;
  padding: 10px 0;
  padding-left: 0 !important;
  list-style: none !important;
}

.rss-sidebar-list li::before {
  content: none !important;
  display: none !important;
}

.rss-sidebar-list li:first-child {
  padding-top: 0;
}

.rss-sidebar-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rss-sidebar-list li a {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

#sidebar .rss-sidebar-widget .rss-sidebar-list > li,
#sidebar .rss-sidebar-widget .rss-sidebar-list > li::before {
  list-style: none !important;
  content: none !important;
}

.rss-sidebar-list li a:hover {
  color: #215a9b;
}

.rss-sidebar-item-link {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.rss-sidebar-thumb-wrap {
  flex: 0 0 72px;
}

.rss-sidebar-thumb {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.rss-sidebar-item-title {
  flex: 1 1 auto;
}

/* ── Search results – full-card link ──────────────────────────────────────── */

#search-results .result {
  position: relative;
}

#search-results a.result-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

#search-results a.result-card-link:hover {
  text-decoration: none;
  color: inherit;
}
