/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://example.com/
 Description: Child theme dla UWM theme – własne presety spacing, patterns i style.
 Author: Damian
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: uwm-theme-child
*/
.wp-block-site-logo.is-default-size img {
    width: clamp(2.5rem, 35vw, 12rem);
    height: auto;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-left: 2rem; /* miejsce na plus/minus */
  list-style: none; /* usuwa strzałkę */
}

/* Usuwa domyślny trójkąt z summary */
details summary::-webkit-details-marker {
  display: none;
}

/* Plus (+) */
details summary::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Minus (–) po otwarciu */
details[open] summary::after {
  content: "–";
}

.is-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* żeby był nad headerem i nad treścią */
}

/* Gdy zalogowany: uwzględnij pasek admina */
.admin-bar .is-fixed-top {
    top: 32px;
}
.header-uwm  .social-media-uwm figure a{
  display: flex;;
}
.header-uwm .header-uwm-menu-and-title{
  min-height: 115px;
}

.main-hero-container .row-hero-container{
  display: flex;
}

.main-hero-container .row-hero-container .hero-text-content{
  width: 100%;
}
.main-menu-uwm ul.wp-block-navigation__submenu-container li a{ 
  font-size: var(--wp--preset--font-size--s);
}
.custom-submenu-uwm ul li a{
  background: white;
  padding: 1rem 2rem;
}
.uwm-second-splide .splide__list{
  display: flex !important;
}
.uwm-second-splide .splide__slide{
  flex: 0 0 auto;
}
.splide__slide img{
  height: 300px;
  width: 100%;
}
.hero-image-content{
  width: 100%;
}
.main-hero-splide-category .wp-block-button a{
  background-color: var(--wp--preset--color--secondary);
  border-radius: 0px;
}

/* Glassmorphism arrows for hero Splide */
.main-hero-splide-category .splide__arrow {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 48px;
  height: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.main-hero-splide-category:hover .splide__arrow,
.main-hero-splide-category .splide:hover .splide__arrow,
.main-hero-splide-category .splide:focus-within .splide__arrow {
  opacity: 1;
  pointer-events: auto;
}
.main-hero-splide-category .splide__arrow svg {
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.main-hero-splide-category .splide__arrow:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.28);
}
.main-hero-splide-category .splide__arrow:active {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 782px) {
  .admin-bar .is-fixed-top {
      top: 46px;
  }
  .is-fixed-top .is-layout-flex {
      gap: 0.5rem; 
  }
  .social-media-uwm {
    display: none !important;
  }
}
@media (max-width: 1550px) {
  .uwm-hero  .wp-block-group:nth-child(1){
    padding-left: 5px;
  }
}
@media (max-width: 1920px){
  .main-hero-splide-category .hero-text-content{
    padding-left: var(--wp--style--root--padding-left);
  }
}

@media (min-width: 583px) {
  .splide__slide img{
    height: 350px;
  }
}
@media (min-width: 768px) {
  .splide__slide img{
    height: 400px;
  }
}
@media (min-width: 900px) {
  .splide__slide img{
    height: 450px;
  }
}

@media (min-width: 1200px) {
  .main-hero-container .row-hero-container .hero-text-content{
    width: 50%;
  }
  .main-hero-container .row-hero-container .hero-image-content{
    width: 50%;
  }
    .splide__slide img{
    height: 500px;
  }
}

@media (min-width: 1700px) {
  .main-hero-container .row-hero-container{
    display: flex;
    justify-content: flex-end;
  }
  .main-hero-container .row-hero-container .hero-text-content{
    max-width: 870px;
  }
  .splide__slide img{
    height: 750px;
  }
  .main-hero-splide-category .js-splide-hero-category{
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .main-hero-container .row-hero-container{
    float: right;
    width: 100%;
  }
  .main-hero-container .row-hero-container .hero-text-content{
    max-width: 775px;
  }
}
@media (min-width: 1920px) {
  .main-hero-container .row-hero-container .hero-text-content{
    padding-right: 0px !important;
  }
  .splide__slide img{
    width: 860px;
  }
  .row-hero-container{
    width: 1920px;;
  }
}

@media (min-width: 2560px) {
  .main-hero-splide-category .splide__arrow--prev{
    left: -5rem;
  }
  .main-hero-splide-category .splide__arrow--next{
    right: -5rem;
  }
}

/* (Ważne) Dodaj padding-top do body, aby treść nie wskakiwała pod pasek */
body.has-global-padding-is-fixed-top {
    padding-top: 48px; /* dostosuj do wysokości paska */
}


/* UWM inspiration 01: hero section */
:root {
  --navy: #2f74be;
  --navy-2: #245f9f;
  --gold: #f1c400;
  --text: #1b1f23;
  --muted: #5c6672;
  --paper: #f7f7f4;
  --line: #d9dee4;
  --shadow: 0 10px 22px rgba(11, 42, 74, 0.12);
}


.uwm-hero {
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.uwm-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(16rem, 40vw, 18rem), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.uwm-hero h1,
.uwm-hero .wp-block-heading {
  font-family: "Poppins", "Segoe UI", sans-serif;
}

.uwm-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  margin-bottom: clamp(0.6rem, 1.5vw, 0.9rem);
}

.uwm-hero h2 {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: clamp(0.7rem, 1.8vw, 1.1rem);
}

.uwm-hero p {
  opacity: 0.9;
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
}

.uwm-hero .uwm-btns {
  display: flex;
  gap: clamp(0.5rem, 1.6vw, 0.9rem);
  flex-wrap: wrap;
}

.uwm-btn,
.uwm-btn .wp-block-button__link {
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.uwm-btn-primary,
.uwm-btn-primary .wp-block-button__link {
  background: var(--gold);
  color: #1a1a1a;
}

.uwm-btn-outline,
.uwm-btn-outline .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 0;
}

.uwm-btn-outline .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.uwm-hero-panel {
  background: #0f2f53;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(1rem, 3vw, 1.3rem) clamp(1.5rem, 6vw, 3.75rem);
  box-shadow: var(--shadow);
  display: grid;
}

.uwm-hero-panel strong {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
}

/* UWM inspiration 01: program section */
.uwm-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.uwm-section-title {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
}

.uwm-section-title h2,
.uwm-section-title .wp-block-heading {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.uwm-section-title p {
  color: var(--muted);
}

.uwm-divider {
  width: clamp(5rem, 12vw, 7.5rem);
  height: 2px;
  background: var(--gold);
  margin: clamp(0.6rem, 1.5vw, 0.9rem) auto 0;
  border: 0;
  opacity: 1;
}

.uwm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(14rem, 30vw, 15rem), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.uwm-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.25rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  width: 100%;
}
.uwm-card strong {
  font-weight: 600;
}

.uwm-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* UWM inspiration 01: info strip */
.uwm-info-strip {
  background: var(--paper);
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
}


.uwm-info-list {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1rem);
}

/* UWM inspiration 01: timeline */
.uwm-timeline {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.uwm-timeline-item {
  display: grid;
  grid-template-columns: clamp(4.5rem, 12vw, 5.6rem) 1fr;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: start;
  border: 1px solid var(--line);
  padding: clamp(0.9rem, 2.4vw, 1rem);
  background: #fff;
}
.uwm-timeline-item strong{
  font-weight: 600;
}

.uwm-date-box {
  background: var(--navy);
  color: #fff;
  padding: clamp(0.4rem, 1.2vw, 0.5rem);
  text-align: center;
  font-weight: 700;
}

/* UWM inspiration 01: faq */
.uwm-faq {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.uwm-faq-item {
  border: 1px solid var(--line);
  padding: clamp(0.9rem, 2.4vw, 1rem) clamp(1rem, 3vw, 1.2rem);
  background: #fff;
  width: 100%;
}

/* UWM inspiration 01: cta */
.uwm-cta-block {
  background: var(--gold);
  color: #1a1a1a;
  padding: clamp(2.5rem, 5vw, 3.25rem) 0;
}

.uwm-cta-block .uwm-wrap {
  display: grid;
  gap: clamp(0.6rem, 1.8vw, 0.9rem);
  text-align: center;
}

.uwm-cta-block .wp-block-button__link {
  background: #fff;
  color: #1a1a1a;
  border: none;
  font-weight: 700;
  border-radius: 0;
}

/* UWM inspiration 01: partners */
.uwm-partners {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.uwm-partners .uwm-section-title p {
  color: rgba(255, 255, 255, 0.85);
}

.uwm-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(13.5rem, 28vw, 15rem), 1fr));
  gap: clamp(0.9rem, 2.5vw, 1.25rem);
}
.uwm-partners .uwm-partner .uwm-meta{
  color: white;
}

.uwm-partner {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(0.9rem, 2.5vw, 1rem);
  display: grid;
  gap: clamp(0.4rem, 1.4vw, 0.6rem);
  background: rgba(255, 255, 255, 0.04);
}

.uwm-partner strong {
  font-weight: 600;
}

/* UWM inspiration 02: slider */
.uwm-slider {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.uwm-slider .splide__track {
  padding: 0.2rem 0.6rem 0.6rem;
}

.splide:not(.is-initialized) .uwm-slider-list > .uwm-slider-card {
  min-width: clamp(14rem, 30vw, 18rem);
}

.uwm-slider-list {
  display: flex;
  gap: clamp(0.6rem, 1.6vw, 1rem);
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Hide horizontal scrollbar once Splide takes over */
.splide.is-initialized .uwm-slider-list {
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
  gap: 0;
}

.uwm-slider-list > .uwm-slider-card {
  scroll-snap-align: start;
}

.splide.is-initialized .uwm-slider-list > .uwm-slider-card {
  min-width: 0;
}

.uwm-slider-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(0.9rem, 2.4vw, 1rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(0.4rem, 1.4vw, 0.6rem);
  height: 100%;
}

.uwm-slider-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0;
}

.uwm-slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uwm-slider .uwm-slider-list{
  display: flex;
  align-items: start;
}

