/* Bagna.pl — Custom CSS
 * Colors & fonts are controlled by Kadence Customizer.
 * This file handles LAYOUT and COMPONENT styling only.
 * Use var(--global-palette1) through var(--global-palette9) for colors.
 */

/* ── LOGO ── */
.custom-logo {
  max-height: 75px !important;
  width: auto !important;
  height: auto !important;
}

/* ── HEADER ── */
#masthead {
  border-bottom: 2px solid var(--global-palette8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 21 !important;
}
.site-header-row-container-inner {
  min-height: 68px;
}

/* ── SUBMENUS ── */
.header-navigation .header-menu-container ul ul.sub-menu,
.header-navigation .header-menu-container ul ul.submenu {
  border: 1px solid var(--global-palette8);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 6px;
}
.header-navigation .header-menu-container ul ul li.menu-item {
  border-bottom: 1px solid var(--global-palette8);
}
.header-navigation .header-menu-container ul ul li.menu-item:last-child {
  border-bottom: none;
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
  padding: 10px 16px;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
  background: var(--global-palette7);
}
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
  background: var(--global-palette7);
}

/* ── HERO SLIDER ── */
.hero-slider {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 60px 40px 0px;
  position: relative;
  overflow: hidden;
}
/* Homepage: hide empty entry-header and padding above hero */
.home .entry-header {
  display: none !important;
}
.home .entry-content-wrap {
  padding-top: 0 !important;
}
/* Aktualnosci section — stay within container */
.home .aktualnosci-section.alignwide {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px;
  padding-right: 20px;
}
.hero-slider.slide-1 { background: var(--global-palette1); }
.hero-slider.slide-2 { background: linear-gradient(135deg, #1a3d1a 0%, var(--global-palette1) 60%, var(--global-palette5) 100%); }
.hero-slider.slide-3 { background: linear-gradient(135deg, #0d3030 0%, var(--global-palette12, #3d7a6e) 100%); }
.hero-slider.slide-4 { background: linear-gradient(135deg, #3d3010 0%, #6b8c3a 100%); }
.hero-slider .hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.hero-slider h1 {
	color: #fff !important;align-content
}
.hero-slider h2 {
  color: #fff !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 620px;
  margin-bottom: 14px;
}
.hero-slider p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--global-palette1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  transition: background 0.15s, transform 0.15s;
}
.hero-btn:hover {
  background: var(--global-palette7);
  color: var(--global-palette1);
  transform: translateY(-1px);
}

/* Slider dots & arrows */
.hero-dots {
  text-align: center;
  padding: 16px 0;
}
.hero-dots span {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-dots span.active { background: #fff; transform: scale(1.2); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  z-index: 10;
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

/* ── SECTION HEADERS ── */
.section-header,
.aktualnosci-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--global-palette8);
  padding-bottom: 12px;
  margin-bottom: 32px;
}
.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 32px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--global-palette1);
}
.btn-more {
  font-size: 0.85rem;
  color: var(--global-palette2);
  text-decoration: none;
  font-weight: 600;
}
.btn-more:hover { color: var(--global-palette1); }

/* ── FOOTER ── */
.site-middle-footer-wrap {
  background: var(--global-palette1);
}
.site-middle-footer-inner-wrap {
  padding-top: 48px;
  padding-bottom: 32px;
}
.site-bottom-footer-wrap {
  background: var(--global-palette1);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-middle-footer-inner-wrap .widget-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-links li a:hover {
  color: #ffffff;
}
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-newsletter-btn {
  display: inline-block;
  background: var(--global-palette14, #c8860a);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s;
}
.footer-newsletter-btn:hover {
  background: #d99510;
  color: #fff;
}
.site-bottom-footer-inner-wrap {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}
.site-bottom-footer-inner-wrap a {
  color: rgba(255,255,255,0.5);
}
.site-bottom-footer-inner-wrap a:hover {
  color: #fff;
}
.footer-social-wrap .social-button {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}
.footer-social-wrap .social-button:hover {
  color: #fff;
}

@media(max-width:768px) {
    .footer-links li {
    margin-bottom: 0;
}
    .widget-area .widget-title {
        padding:0px;
        line-height: 1em;
    }
}

/* ── NEWS CARDS (Aktualności on homepage) ── */
.home .news-grid-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  align-items: stretch;
}
.home .news-grid-query .wp-block-post-template > li {
  display: flex !important;
}

.home .news-card-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--global-palette9);
  border: 1px solid var(--global-palette8);
/*   border-radius: 6px; */
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.home .news-card-wrap:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Info box (Homepage) */

.home .kt-blocks-info-box-link-wrap {
    border-radius: 0 !important;
}

/* Featured image inside card */
.home .news-card-wrap .wp-block-post-featured-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  margin: 0;
  background: linear-gradient(135deg, var(--global-palette1), var(--global-palette2));
}
.home .news-card-wrap .wp-block-post-featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.home .news-card-wrap .wp-block-post-featured-image a {
  display: block;
  height: 100%;
}
.home .news-card-wrap .wp-block-post-featured-image:empty {
  display: block;
}
/* Card body */
.news-card-body {
  flex: 1;
}
.news-card-meta,
.home .news-card-wrap .wp-block-post-date {
  font-size: 0.75rem;
  color: var(--global-palette4);
  margin-bottom: 6px;
}
.news-card-title,
.home .news-card-wrap .wp-block-post-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}
.home .news-card-wrap .wp-block-post-title a {
  color: var(--global-palette1);
  text-decoration: none;
}
.home .news-card-wrap .wp-block-post-title a:hover {
  color: var(--global-palette2);
}
/* First card title bigger */
/* .home .news-grid-query .wp-block-post-template > li:first-child .wp-block-post-title {
  font-size: 1.2rem;
} */
.news-card-excerpt,
.home .news-card-wrap .wp-block-post-excerpt {
  font-size: 0.85rem;
  color: var(--global-palette4);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.home .news-card-wrap .wp-block-post-excerpt__excerpt {
  margin: 0;
}
.home .news-card-wrap .wp-block-post-excerpt__more-text {
  display: none;
}

/* ── NEWS LIST (older items below cards) ── */
.home .news-list-query .wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.home .news-list-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--global-palette8);
  align-items: flex-start;
}
.news-list-date,
.home .news-list-row .wp-block-post-date {
  font-size: 0.75rem;
  color: var(--global-palette4);
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
}
.news-list-title,
.home .news-list-row .wp-block-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.home .news-list-row .wp-block-post-title a {
  color: var(--global-palette3);
  text-decoration: none;
}
.home .news-list-row .wp-block-post-title a:hover {
  color: var(--global-palette2);
}


@media (max-width: 768px) {
  .wp-block-group.news-card-wrap {
    margin-left: -2em;
    margin-right: -2em;
  }

}


/* ── ARCHIVE CARDS ── */
.loop-entry.type-post {
  background: var(--global-palette9);
  border: 1px solid var(--global-palette8);
  border-radius: 0px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.loop-entry.type-post:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ── SINGLE POST ── */
.single-post .content-area {
  padding-top: 40px;
  padding-bottom: 40px;
	margin: 0
}
.single-post .entry.single-entry {
  border-radius: 6px;
}

/* ── SINGLE PAGE ── */
.page .content-area {
  padding-top: 0;
  padding-bottom: 40px;
	margin: 0
}
.page .entry.single-entry {
  border-radius: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .home .news-grid-query .wp-block-post-template {
    grid-template-columns: 1fr 1fr !important;
  }
  .home .news-grid-query .wp-block-post-template > li:first-child {
    grid-column: 1 / -1;
  }
  .baza-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .hero-content .kt-inside-inner-col {
    padding-top: 30px;
    padding-bottom:30px;
   }
  .partners-carousel-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .partners-divider {
    width: 100%;
    height: 1px;
  }
}
@media (max-width: 600px) {
  .home .news-grid-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
  .baza-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    min-height: 320px;
    padding: 40px 24px;
  }
  .hero-slider h2 {
    font-size: 1.6rem;
  }
}


/* ======================= Newsletter ========================== */
/* Newsletter section — rounded tinted panel with gradient button */
.newsletter-section {
    background-color: var(--global-palette9) !important;
/*     border-radius: 24px !important; */
    padding: 2rem;
    margin: 4rem auto !important;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

/* Envelope icon */
.newsletter-section .wp-block-kadence-single-icon svg,
.newsletter-section-icon svg {
    fill: var(--global-palette1) !important;
    height: 48px !important;
}

/* Heading */
.newsletter-section h2 {
    font-size: clamp(1.75rem, 3vw, 3rem) !important;
    text-transform: none !important;
    margin: 1rem 0 1.5rem !important;
}

/* Description */
.newsletter-section p {
    margin: 0 auto 2.5rem !important;
}

/* Small fine-print below button */
.newsletter-section p.has-small-font-size {
    color: color-mix(in srgb, var(--global-palette13) 70%, transparent) !important;
    font-style: italic;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Button — gradient primary → primary-fixed */
.newsletter-section .kb-button,
.newsletter-section-button {
    padding: 1rem 3rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--global-palette1) 20%, transparent);
}

.newsletter-section .kb-button:hover,
.newsletter-section-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--global-palette1) 25%, transparent);
}

/* ======================= Newsletter END ======================= */



/* ======================= Partners Sections ===================== */
/* Container rows — "Wspierają nas" and "Jesteśmy częścią" */
.metaslider-row {
    padding: 1rem;
}

/* First row gets a top border/divider to separate from newsletter */
.metaslider-firstrow {
    border-top: 1px solid color-mix(in srgb, var(--global-palette6) 30%, transparent);
}

/* The heading text itself — small uppercase muted label */
.metaslider-label h2 {
    color: color-mix(in srgb, var(--global-palette13) 60%, transparent) !important;
    font-size: 1rem !important;
}

/* Logo images — grayscale with fade-in on hover */
.metaslider-grayedout-hover li img,
.metaslider li img {
    filter: grayscale(100%) !important;
    opacity: 0.5 !important;
    transition: filter 0.4s ease, opacity 0.4s ease !important;
/*     max-height: 60px !important; */
}

/* Hover entire slider row → all logos go full color */
.metaslider-grayedout-hover li:hover img,
.metaslider li:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* Center slide list items vertically */
.metaslider-grayedout-hover .slides li {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Mobile — stack label above logos, center everything */
@media (max-width: 767px) {
    .metaslider-label > .kt-inside-inner-col{
        align-items: center !important;
        text-align: center;
    }
}
/* ======================= Partners END ========================== */

/* ======================= Aktualności — News list ============== */
/* Left border accent on each news list row */
.news-list-row {
    border-left: 4px solid var(--global-palette2) !important;
    padding-left: 1.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    align-items: baseline !important;
}

/* Remove default list item spacing */
.news-list-items .wp-block-post {
    margin-bottom: 1rem !important;
}

/* Date */
.news-list-row .news-list-date,
.news-list-row .news-list-date time {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}
/* ======================= Aktualności END ====================== */

