/* =========================================================
   KLUB STOK – 4 boksy (Plan zajęć, Instruktorzy, Karta, Opłaty)
   Szablon T4 (JoomlArt), moduł ACM Features style-3 (Owl Carousel)
   -> wyłącza przewijanie karuzeli + każdy boks w innym kolorze
   Wklej do: templates/<twoj_szablon_t4>/local/css/custom.css
   ========================================================= */

/* --- KOLORY: zmieniaj tylko te 4 linie --- */
.acm-features.style-3 {
  --box-kolor-1: #e63946;   /* 1. boks */
  --box-kolor-2: #2a9d8f;   /* 2. boks */
  --box-kolor-3: #f4a261;   /* 3. boks */
  --box-kolor-4: #457b9d;   /* 4. boks */
  --box-tekst:   #ffffff;   /* kolor napisów w boksach */
}

/* --- 1. Wyłączenie karuzeli: 4 boksy stoją w miejscu --- */
.acm-features.style-3 .owl-stage-outer {
  overflow: visible !important;
}
.acm-features.style-3 .owl-stage {
  transform: none !important;
  transition: none !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.acm-features.style-3 .owl-item {
  width: auto !important;
  margin-right: 0 !important;
  float: none !important;
  min-width: 0;
}
/* kopie boksów tworzone przez karuzelę – ukryte */
.acm-features.style-3 .owl-item.cloned {
  display: none !important;
}
/* strzałki, kropki i „łapka” do przeciągania – niepotrzebne */
.acm-features.style-3 .owl-nav,
.acm-features.style-3 .owl-dots {
  display: none !important;
}
.acm-features.style-3 .owl-carousel.owl-drag .owl-item {
  cursor: default;
  touch-action: auto;
}

/* --- 2. Wygląd boksów --- */
.acm-features.style-3 .features-item,
.acm-features.style-3 .features-item .item-inner {
  height: 100%;
}
.acm-features.style-3 .features-item .item-inner {
  padding: 16px 16px 22px;
  border-radius: 0;
  text-align: center;
  color: var(--box-tekst);
}
.acm-features.style-3 .features-item .item-inner h1,
.acm-features.style-3 .features-item .item-inner h2,
.acm-features.style-3 .features-item .item-inner h3,
.acm-features.style-3 .features-item .item-inner h4,
.acm-features.style-3 .features-item .item-inner h5,
.acm-features.style-3 .features-item .item-inner p,
.acm-features.style-3 .features-item .item-inner a {
  color: var(--box-tekst);
}
.acm-features.style-3 .features-item .img-icon img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* --- 3. Kolory – co czwarty boks (działa też z ukrytymi kopiami) --- */
.acm-features.style-3 .owl-item:nth-child(4n+1) .item-inner { background: var(--box-kolor-1); }
.acm-features.style-3 .owl-item:nth-child(4n+2) .item-inner { background: var(--box-kolor-2); }
.acm-features.style-3 .owl-item:nth-child(4n+3) .item-inner { background: var(--box-kolor-3); }
.acm-features.style-3 .owl-item:nth-child(4n+4) .item-inner { background: var(--box-kolor-4); }

/* --- 4. Tablet: 2 x 2, telefon: jeden pod drugim --- */
@media (max-width: 991.98px) {
  .acm-features.style-3 .owl-stage { grid-template-columns: repeat(2, 1fr); gap: 0; }
}
@media (max-width: 575.98px) {
  .acm-features.style-3 .owl-stage { grid-template-columns: 1fr; }
}

/* --- 5. Przyciski w boksach: przezroczyste + większa czcionka --- */
.acm-features.style-3 .features-item .link-heading.btn {
  background-color: transparent !important;
  border: 2px solid var(--box-tekst) !important;  /* ramka; bez ramki: border: 0 !important; */
  color: var(--box-tekst) !important;
  font-size: 1.25rem;          /* wielkość napisu – było ok. 1rem */
  box-shadow: none !important;
}
.acm-features.style-3 .features-item .link-heading.btn:hover,
.acm-features.style-3 .features-item .link-heading.btn:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;  /* lekkie podświetlenie po najechaniu */
  color: var(--box-tekst) !important;
}

/* =========================================================
   6. MODUŁ „O KLUBIE” (pozycja section-1)
   zdjęcie po lewej, tekst po prawej; na telefonie jedno pod drugim
   ========================================================= */
.ks-o-klubie {
  --ok-kolor:  var(--color-primary, #e63946);  /* kolor nagłówka i przycisku (kolor główny szablonu) */
  --ok-tekst:  #333333;                         /* kolor tekstu */
  --ok-tlo:    transparent;                     /* tło sekcji, np. #f5f5f5 */

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  background: var(--ok-tlo);
  margin: 0;
}
.ks-o-klubie__foto img {
  display: block;
  width: 100%;
  height: auto;
}
.ks-o-klubie__tekst h2 {
  margin: 0 0 20px;
  color: var(--ok-kolor);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.ks-o-klubie__tekst p {
  margin: 0 0 28px;
  color: var(--ok-tekst);
  font-size: 1.2rem;
  line-height: 1.6;
}
.ks-o-klubie__btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--ok-kolor);
  background: transparent;
  color: var(--ok-kolor);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ks-o-klubie__btn:hover,
.ks-o-klubie__btn:focus {
  background: var(--ok-kolor);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .ks-o-klubie { grid-template-columns: 1fr; gap: 24px; }
  .ks-o-klubie__tekst h2 { font-size: 1.8rem; }
}

/* =========================================================
   7. ODSTĘPY: section-1 (O klubie) i section-2 (boksy)
   szablon daje: margin-top: -64px oraz padding 10.64rem (~170px)
   ========================================================= */
#t4-section-1.t4-section {
  margin-top: 0 !important;        /* usunięty ujemny top */
  padding-bottom: 40px !important; /* było ~170px */
}
#t4-section-2.t4-section {
  padding-top: 40px !important;    /* było ~170px */
}
/* telefon: jeszcze mniejsze odstępy */
@media (max-width: 767.98px) {
  #t4-section-1.t4-section { padding-bottom: 24px !important; }
  #t4-section-2.t4-section { padding-top: 24px !important; }
}
#t4-footnav.t4-section {
  padding-top: 48px !important;
}
#t4-footnav .module-title {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}
#t4-header {
  position: relative !important;
  top: auto !important;
  background-color: #ffffff;
  z-index: 100;
}
#t4-hero {
  margin-top: 0 !important;
}
/* =========================================================
   10. HERO (ACM Hero style-1): same obrazki, bez tekstów i przycisków
   UWAGA: w module wpisz cokolwiek w pole "Title" każdego slajdu
   (np. "Nauka zabawa odpoczynek") – ten CSS i tak to ukryje
   ========================================================= */
#t4-hero .acm-hero .acm-hero-item {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  height: auto;
  aspect-ratio: 1170 / 650; /* proporcje slajdów = cały obrazek bez ucinania */
  max-height: none;
  min-height: 0;
  padding: 0 !important;
}
/* ukrycie tekstów i przycisków na slajdach */
#t4-hero .acm-hero .hero-content,
#t4-hero .acm-hero .acm-hero-item .container {
  display: none !important;
}
 
/* =========================================================
   11. HERO: wygląd strzałek i kropek (jak na demo)
   ========================================================= */
#t4-hero .acm-hero .owl-carousel { position: relative; }
#t4-hero .acm-hero .owl-nav {
  display: flex !important;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;            /* klikalne tylko same przyciski */
}
#t4-hero .acm-hero .owl-nav button.owl-prev,
#t4-hero .acm-hero .owl-nav button.owl-next {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: 0 !important;
  border-radius: .5rem;
  background: rgba(0, 0, 0, .5) !important;
  color: #fff !important;
  font-size: 1.2rem;
  transition: background .3s;
}
#t4-hero .acm-hero .owl-nav button:hover {
  background: rgba(0, 0, 0, .75) !important;
}
#t4-hero .acm-hero .owl-dots {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
}
#t4-hero .acm-hero .owl-dots .owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}
#t4-hero .acm-hero .owl-dots .owl-dot.active span {
  background: #ffffff;
}
@media (min-width: 1200px) {
  #t4-hero .acm-hero .owl-nav button.owl-prev,
  #t4-hero .acm-hero .owl-nav button.owl-next { width: 56px; height: 56px; }
}
/* =========================================================
   12. LOGO Klub
   ========================================================= */ 

#t4-header .navbar-brand.logo-control img {
  width: auto !important;          /* szerokość liczona z proporcji */
  height: 200px !important;        /* WYSOKOŚĆ LOGO – zmieniaj tutaj */
  max-height: none !important;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  #t4-header .navbar-brand.logo-control img {
    height: 120px !important;      /* logo na telefonie */
  }
}
 
/* =========================================================
   13. LOGO SŁONECZNY STOK po prawej w nagłówku
   ========================================================= */
#t4-header .ks-logo-sm img {
  display: block;
  width: auto;
  height: 90px;                    /* wysokość logo SM – zmieniaj tutaj */
  max-width: 100%;
  object-fit: contain;
}

#t4-footer.t4-section {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  background-image: none !important;
}
#t4-megamenu-mainmenu .navbar-nav > li > a,
#t4-megamenu-mainmenu .navbar-nav > li > .nav-link {
  font-size: 1.2rem !important;
  font-weight: 500;
}
.ks-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 32px;padding-bottom:24px;border-bottom:1px solid #eee}
.ks-filter__btn{font-family:inherit;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;padding:9px 18px;border:1px solid var(--body-link-color,#00c4a7);border-radius:3px;background:#fff;color:var(--body-link-color,#00c4a7);cursor:pointer;transition:background .2s,color .2s}
.ks-filter__btn:hover,.ks-filter__btn.is-active{background:var(--body-link-color,#00c4a7);color:#fff}
.ks-hidden{display:none!important}
.blog-items .tags{display:none}

.item-816 .ks-all,
.item-817 .ks-dzieci,
.item-818 .ks-seniorzy,
.item-819 .ks-dorosli {
  background: var(--body-link-color, #00c4a7);
  color: #fff;
}

.ks-footer-zajecia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 30px;
}

/* 3 kolumny od tabletu w górę */
@media (min-width: 768px) {
  .ks-footer-zajecia {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
  }
  /* "Dokumenty" pod spodem, na całą szerokość, w jednym rzędzie */
  .ks-footer-zajecia ul:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 25px;
  }
  .ks-footer-zajecia ul:nth-child(4) .ks-fz-title {
    flex-basis: 100%;
  }
}

@media (min-width: 992px) {
  #t4-footnav .footnav-1 {
    flex: 0 0 auto;
    width: 25%;
  }
  #t4-footnav .footnav-2 {
    flex: 0 0 auto;
    width: 75%;
  }
}
.ks-footer-zajecia ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ks-footer-zajecia li {
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 13px;
}
.ks-footer-zajecia .ks-fz-title {
  font-weight: 700;
  margin-bottom: 10px;
  opacity: .7;
}
.ks-footer-zajecia a {
  text-decoration: none;
}

@media (max-width: 767px) {
  #t4-section-1,
  #t4-section-1 .t4-section-inner,
  #t4-section-1 .ks-o-klubie {
    background: #fff !important;
  }
  #t4-section-1 .ks-o-klubie__tekst,
  #t4-section-1 .ks-o-klubie__tekst p {
    color: #333;
  }
}

/* przyciski filtra */
.ks-filter__btn {
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.ks-filter__btn:hover,
.ks-filter__btn.is-active {
  background: var(--body-link-color, #00c4a7);
  border-color: var(--body-link-color, #00c4a7);
  color: #fff;
}
.ks-filter__btn:active { transform: scale(.96); }

/* animacja kafelków */
.ks-anim { transition: opacity .35s ease, transform .35s ease; }
.ks-anim.ks-out { opacity: 0; transform: scale(.92); }
.ks-anim.ks-hidden { display: none !important; }
.ks-anim.ks-in { animation: ksIn .45s ease both; }
@keyframes ksIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ks-anim, .ks-anim.ks-in { transition: none; animation: none; }
}