:root {
    --primary: #A66A6A;
    --secondary: #D8A7A7;
    --third: #d6901b;
    --fourth: #F5EFE7;
}
*{
  box-sizing: border-box;
}
.content-area .sticky-section{
  position: sticky;
  top: 0;
}
.content-area .overlap-section{
  margin-top: -100px;  
  position: relative; 
}
.grecaptcha-badge{
  z-index: -2;
}
/* top menu kontakt */
.topmenu-icon-envelope{
  margin-left:20px;
  }
.topmenu-icon-envelope a, .topmenu-icon-phone a{
  position:relative;
}
.topmenu-icon-envelope a::before {
  content: url('../img/envelope.svg');
  position: absolute;
  top:6px;
  left:-12px;
}
.topmenu-icon-phone a::before {
  content: url('../img/phone.svg');
  position: absolute;
  top:6px;
  left:-12px;
}
.content-area .custom-testimonial .kb-splide .splide__arrow{
  background:var(--secondary);
}
.content-area .custom-testimonial .kb-splide .splide__arrow:hover{
  background:var(--primary);
}
.content-area .custom-testimonial .kb-splide .splide__pagination__page{
   background:var(--secondary);
}
.content-area .custom-testimonial .splide__list{
  align-items:center;
}
.content-area .single-content h2{
  margin: .7em 0 .5em;
}
.custom-accordion svg{
  margin-top:4px;
}
/*modal*/
.modal {
  display: flex; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  justify-content: center;
  align-items: center;
  align-content: center;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
 /* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  max-width:700px;
  max-height: 90vh;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.modal-img {
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
}
.modal-img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.modal-txt{
  margin:20px;
  text-align: center;
  margin-bottom:0;
}
/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-self: end;
  margin-right: 10px;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.btn-modal{
  text-decoration: none;
}
.btn-modal:hover{
  color:#333;
}
.btn-modal{
  margin-top:20px;
  margin-bottom: 20px;
}
/*blog*/
.wp-block-kadence-posts .entry .entry-content-wrap,
.kadence-posts-list .entry .entry-content-wrap{
  background: rgba(245,239,231,0.3);
}
.single-post .wp-site-blocks .article-post-thumbnail.kadence-thumbnail-ratio-3-4,
.single-warsztaty .wp-site-blocks .article-post-thumbnail.kadence-thumbnail-ratio-3-4{
  width:84%;
  margin:0 auto 30px;
  padding-bottom: 60%;
}
.single-post .post-title h1 {
 padding:2rem;
 text-align: center;
 background: #fcfaf8;
}
.single-post .single-content {
  margin-top: 0;
}
.single-post .entry-related .entry-content-wrap{
  background: rgba(245,239,231,0.3);
}
.content-area .pagination .page-numbers{
  border-radius: 0;
}
.single-post .page-hero-section .entry-title {
  font-size:40px;
  font-style: normal;
  font-weight: 700;
  font-family: var(--global-heading-font-family);
  text-transform: uppercase;
  margin:0;
}
/* oferta warsztaty */
.custom-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.custom-offer-card {
    background: #fcfaf8;
}
.custom-offer-thumb {
    width: 100%;           
    height: 300px;         
    overflow: hidden; 
}
.custom-offer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    object-position: center center;
    display: block;
}
.custom-offer-entry{
  padding:16px;
  text-align:center;
}
.custom-offer-meta,
.custom-offer-single-meta {
    display: flex;
    flex-direction:column;
    gap:16px;
    margin: 20px 0;
    font-weight: 600;
}
.custom-offer-meta-item,
.custom-offer-single-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.custom-offer-single-title{
  text-align: center;
}
.custom-offer-single-meta-item{
  background: var(--fourth);
  padding:20px;
  width:60%;
  margin:0 auto;
}
.custom-offer-meta-item svg{
  fill:var(--primary);
  width: 32px;
  height: 32px;
}
.custom-offer-button{
  color:#fff;
}
.custom-offer-button:hover{
  color:#fff;
}

@media only screen and (max-width: 768px) {
  .custom-offer-grid {
    grid-template-columns: 1fr;
  }
  .single-post .post-title h1 {
    padding:1.5rem .5rem;
  }
  .single-post .wp-site-blocks .article-post-thumbnail.kadence-thumbnail-ratio-3-4,
  .single-warsztaty .wp-site-blocks .article-post-thumbnail.kadence-thumbnail-ratio-3-4{
    width:100%;
  }
  .content-area .single-content h2.custom-offer-single-title{
    margin-top: -30px;
  }
  .custom-offer-single-meta-item{
    padding:20px 10px;
    width:100%;
  }
  /* Resetowanie wysokości na mobilu */
    /* Utrzymujemy strukturę slidera, ale wyłączamy równe wysokości */
    .auto-height-carousel .splide__list {
        display: flex !important; 
        align-items: flex-start !important; /* To jest kluczowe! */
        height: auto !important;
    }
    /* Resetujemy wysokość slajdów i ich kontenerów wewnętrznych */
    .auto-height-carousel .splide__slide,
    .auto-height-carousel .kt-testimonial-item-wrap,
    .auto-height-carousel .kt-testimonial-text-wrap {
        height: auto !important;
        min-height: 0 !important;
    }
    /* Płynne przejście wysokości dla tracka */
    .auto-height-carousel .splide__track {
        transition: height 0.2s ease-in-out;
    }
}