/*
 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;
}
strong {
  font-weight: 600;
}
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;
  height: 2.7rem;
  display: flex;
  align-items: center;
  padding-left: 5px;
}

.uwm-tabs-accordion > summary::after {
  display: flex;
  height: 3rem;
  align-items: center;
}

/* 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);
}
.uwm-img-custom-size img{
  max-height: 5rem;
  object-fit: cover;
  max-width: 19rem;
}

@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-size-logos-m img{
  max-height: 5rem;
  width: auto;
}
.uwm-size-logos-l img{
  max-height: 9rem;
  width: auto;
}

.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 inspiration 03: timeline strip */
.uwm-timeline-strip {
  background: var(--paper);
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.uwm-timeline-strip .uwm-container {
  display: grid;
  gap: 1rem;
}

.uwm-timeline-strip .uwm-section-title {
  margin-bottom: clamp(1rem, 3vw, 1.8rem);
}

.uwm-timeline-strip .uwm-section-title h2,
.uwm-timeline-strip .uwm-section-title .wp-block-heading {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.uwm-timeline-strip .uwm-section-title p {
  color: var(--muted);
}

.uwm-timeline-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(10rem, 22vw, 14rem), 1fr));
  gap: clamp(0.8rem, 2vw, 1.6rem);
  align-items: start;
}

.uwm-timeline-line::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2f74be, #f1c400);
  opacity: 0.7;
}

.uwm-timeline-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem 1rem;
  box-shadow: var(--shadow);
  z-index: 1;
}

.uwm-timeline-step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 1rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #2f74be;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(47, 116, 190, 0.3);
}

.uwm-timeline-step strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.uwm-timeline-step .uwm-meta {
  margin: 0;
}

@media (max-width: 900px) {
  .uwm-timeline-line {
    grid-template-columns: 1fr;
  }

  .uwm-timeline-line::before {
    top: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .uwm-timeline-step {
    padding-left: 2rem;
  }

  .uwm-timeline-step::before {
    left: 0.5rem;
    top: 1rem;
  }
}
.uwm-slider .uwm-slider-list{
  display: flex;
  align-items: start;
}


.uwm-tabs-layout {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.uwm-tabs-layout .uwm-tabs-block{
  padding-left: 0px;
}
.uwm-tabs-sidebar{
  min-width: 25rem;
}

.uwm-tabs-panel {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(0.5rem, 1.5vw, 0.8rem);
}

.uwm-tabs-panel-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0;
}

.uwm-tabs-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media(max-width: 1200px) {
  .uwm-tabs-layout {
    flex-wrap: wrap;
  }
}

/* UWM committee section */
.uwm-split {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .uwm-split {
    grid-template-columns: 1fr;
  }
}

/* UWM news section */
.uwm-news-section {
  background: #fff;
}

.uwm-news-title .uwm-news-subtitle {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.uwm-news-grid {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: row dense;
  gap: clamp(0.9rem, 2.5vw, 1.3rem);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.uwm-news-grid > li {
  grid-column: auto;
}

.uwm-news-grid > li:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.uwm-news-grid > li:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.uwm-news-grid > li:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.uwm-news-grid > li:nth-child(4) {
  grid-column: 3;
  grid-row: 1;
}

.uwm-news-grid > li:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.uwm-news-grid > li:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}

.uwm-news-card {
  height: 100%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(0.5rem, 1.6vw, 0.8rem);
  padding: clamp(0.9rem, 2.4vw, 1.1rem);
}

.uwm-news-body {
  display: grid;
  gap: 0.45rem;
}
.uwm-news-image {
  width: 100%;
}
.uwm-news-image img {
  width: 100%;
  height: auto;
  display: block;
}

.uwm-news-hr {
  margin: 0;
  border: 0;
  height: 2px;
  background: var(--gold);
}

.uwm-news-title-text a {
  color: var(--text);
  text-decoration: none;
}

.uwm-news-title-text a:hover {
  color: var(--navy);
}

.uwm-news-excerpt {
  color: var(--muted);
}

/* Lead cards (first three) */
.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-card {
  padding: 0;
  gap: 0;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-hr {
  display: none;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-title-text,
.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-excerpt {
  margin: 0;
  color: #fff;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-body {
  background: var(--navy);
  padding: 1rem 1.1rem;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-title-text a {
  color: #fff;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-excerpt {
  opacity: 0.9;
}

.uwm-news-grid > li:nth-child(2) .uwm-news-excerpt,
.uwm-news-grid > li:nth-child(3) .uwm-news-excerpt {
  display: none;
}

.uwm-news-grid > li:first-child .uwm-news-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.uwm-news-grid > li:nth-child(2) .uwm-news-image img,
.uwm-news-grid > li:nth-child(3) .uwm-news-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Right column list */
.uwm-news-grid > li:nth-child(n + 4) .uwm-news-card {
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0.45rem 0.8rem;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-image {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-image img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-hr {
  display: none;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-title-text,
.uwm-news-grid > li:nth-child(n + 4) .uwm-news-excerpt {
  grid-column: 2;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-title-text a {
  position: relative;
  padding-right: 2rem;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-title-text a::after {
  content: ">";
  position: absolute;
  right: 0.2rem;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.uwm-news-grid > li:nth-child(n + 4) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.uwm-news-grid > li:nth-child(6) {
  border-bottom: 0;
  padding-bottom: 0;
}

.uwm-news-section .uwm-btn-primary .wp-block-button__link {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 900px) {
  .uwm-news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
  }

  .uwm-news-grid > li,
  .uwm-news-grid > li:first-child {
    grid-column: auto;
    grid-row: auto;
  }
}

/* UWM news section */
.uwm-news-section {
  background: #fff;
}

.uwm-news-title .uwm-news-subtitle {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.uwm-news-grid {
  display: grid;
  grid-template-columns: 40% 25% 35%;
  grid-template-rows: repeat(6, minmax(10px, 60px));
  grid-template-areas:
    "a b d"
    "a b d"
    "a b e"
    "a c e"
    "a c f"
    "a c f";
  gap: clamp(0.9rem, 2.5vw, 1.3rem);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.uwm-news-grid > li:nth-child(1) { grid-area: a; }
.uwm-news-grid > li:nth-child(2) { grid-area: b; }
.uwm-news-grid > li:nth-child(3) { grid-area: c; }
.uwm-news-grid > li:nth-child(4) { grid-area: d; }
.uwm-news-grid > li:nth-child(5) { grid-area: e; }
.uwm-news-grid > li:nth-child(6) { grid-area: f; }

.uwm-news-card {
  height: 100%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(0.5rem, 1.6vw, 0.8rem);
  padding: clamp(0.9rem, 2.4vw, 1.1rem);
}

.uwm-news-body {
  display: grid;
  gap: 0.45rem;
}

.uwm-news-image img {
  width: 100%;
  height: auto;
  display: block;
}

.uwm-news-hr {
  margin: 0;
  border: 0;
  height: 2px;
  background: var(--gold);
}

.uwm-news-title-text a {
  color: var(--text);
  text-decoration: none;
}

.uwm-news-title-text a:hover {
  color: var(--navy);
}

.uwm-news-excerpt {
  color: var(--muted);
}

/* Lead + mid cards */
.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-card {
  padding: 0;
  gap: 0;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-hr {
  display: none;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-title-text,
.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-excerpt {
  margin: 0;
  color: #fff;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-body {
  background: var(--navy);
  padding: 1rem 1.1rem;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-title-text a {
  color: #fff;
}

.uwm-news-grid > li:nth-child(-n + 3) .uwm-news-excerpt {
  opacity: 0.9;
}

.uwm-news-grid > li:nth-child(2) .uwm-news-excerpt,
.uwm-news-grid > li:nth-child(3) .uwm-news-excerpt {
  display: none;
}

.uwm-news-grid > li:nth-child(1) .uwm-news-image img {
  max-height: 20.2rem;
  object-fit: cover;
}
.uwm-news-grid > li:nth-child(1) .wp-block-post-excerpt__excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  color: white;
  overflow: hidden;
}

.uwm-news-grid > li:nth-child(2) .uwm-news-image img,
.uwm-news-grid > li:nth-child(3) .uwm-news-image img {
  max-height: 8.8rem;
  object-fit: cover;
}

/* Right column list */
.uwm-news-grid > li:nth-child(n + 4) .uwm-news-card {
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0.45rem 0.8rem;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-image {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-image img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-hr {
  display: none;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-title-text,
.uwm-news-grid > li:nth-child(n + 4) .uwm-news-excerpt {
  grid-column: 2;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-title-text a {
  position: relative;
  padding-right: 2rem;
}

.uwm-news-grid > li:nth-child(n + 4) .uwm-news-title-text a::after {
  content: ">";
  position: absolute;
  right: 0.2rem;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.uwm-news-grid > li:nth-child(n + 4) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.uwm-news-grid > li:nth-child(6) {
  border-bottom: 0;
  padding-bottom: 0;
}

.uwm-news-section .uwm-btn-primary .wp-block-button__link {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 900px) {
  .uwm-news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f";
  }
}

.uwm-tabs-panel-list {
  display: grid;
  gap: 0.4rem;
}

.uwm-tabs-panel-item {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--navy);
}

.uwm-tabs-accordion {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.uwm-tabs-accordion > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 1rem;
  list-style: none;
  display: flex;
  height: 2rem;
  margin-left: 1rem;
  align-items: center;
  padding-left: 1.5rem;
}

.uwm-tabs-accordion > summary::-webkit-details-marker {
  display: none;
}

.uwm-tabs-accordion[open] > summary {
  border-bottom: 1px solid var(--line);
}

.uwm-tabs-accordion > .uwm-tab-item {
  margin: 0;
  padding: 0 1rem;
}

.uwm-tabs-accordion > .uwm-tab-item:first-of-type {
  padding-top: 0.9rem;
}

.uwm-tabs-accordion > .uwm-tab-item:last-of-type {
  padding-bottom: 1rem;
}

.uwm-tabs-list {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  justify-items: start;
}

.uwm-tab-item {
  margin: 0;
  width: 100%;
}

.uwm-tab-item a {
  display: block;
  padding: 0.7rem 0.9rem 0.7rem 1.1rem;
  padding-left: 1.5rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
}

.uwm-tab-item a::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translateY(-50%);
}

.uwm-tab-item a:hover,
.uwm-tab-item a:focus-visible {
  color: var(--navy);
  border-color: rgba(47, 116, 190, 0.35);
}

@media (max-width: 900px) {
  .uwm-tabs-layout {
    grid-template-columns: 1fr;
  }

  .uwm-tabs-list {
    display: none;
  }
}

@media (min-width: 901px) {
  .uwm-tabs-accordion {
    display: none;
  }

  .uwm-tabs-list {
    display: grid;
  }
}

/* UWM synced link menu: one list for mobile and desktop */
.uwm-link-menu .uwm-link-menu-details {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.uwm-link-menu .uwm-link-menu-details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  list-style: none;
  position: relative;
}

.uwm-link-menu .uwm-link-menu-details > summary::-webkit-details-marker {
  display: none;
}

.uwm-link-menu .uwm-link-menu-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.uwm-link-menu .uwm-link-menu-list {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.uwm-link-menu .uwm-link-menu-list .uwm-tab-item {
  margin: 0;
  width: 100%;
}

@media (min-width: 901px) {
  .uwm-link-menu details.uwm-link-menu-details {
    display: block !important;
    border: 0;
    background: transparent;
  }

  .uwm-link-menu details.uwm-link-menu-details > summary {
    display: none;
  }

  .uwm-link-menu details.uwm-link-menu-details:not([open]) > :not(summary) {
    display: block !important;
  }

  .uwm-link-menu .uwm-link-menu-list {
    display: grid !important;
    padding: 0;
  }
}

