.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 111;
  display: none;
}

.modal-body {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 37.5rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  transform: translate(-50%, 20%);
  transition: all ease .3s;
  visibility: hidden;
  pointer-events: none;
}

.modal-body.active {
  transform: translate(-50%, -50%);
  transition: all ease .5s;
  visibility: visible;
  pointer-events: auto;
}

.modal-body__title {
  text-align: center;
  font-size: 1.5rem;
  line-height: normal;
}

.modal-body__wrap {
  margin-top: 1.875rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  cursor: pointer;
}
.card-wrap {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}
.members-grid{
  margin: 0;
  margin-top: 40px;
  padding: 20px;
  list-style: none;
  border: 1px dashed #c8c8c8;
  border-radius: 20px;
}
.video-grid-section {
    padding: 40px 0;
}

.video-grid-section .container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 елементи в ряд */
    gap: 24px; /* Відступи між картками */
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.video-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.video-card__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Пропорції відео-постера */
    overflow: hidden;
    background-color: #111;
}

.video-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-card__poster img {
    transform: scale(1.05);
}

.video-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.video-card:hover .video-card__play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card__title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    margin: 12px 16px 16px 16px;
}
.podcat-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.podcat-wrap .video-card{
    width: calc(50% - 10px);
}
.header-menu__row{
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.header-menu__row a{
    color:#fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 9px;
    white-space: nowrap;
    border-radius: 10px;
    transition: all ease .3s;
}
.header-menu__row a:hover{
    color:#ffd500;
    transition: all ease .3s;
}
.header-menu__row .current-menu-item a{
    background: #222;
}
.header-menu__row .current-menu-item a:hover{
    color:#fff;
}
.header-menu__row li{
    position: relative;
}
.header-menu__row .menu-item-has-children::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 40px;
}
.header-menu__row .menu-item-has-children:after{
    content: "";
  position: absolute;
  right: -5px;
  top: 9px;
  width: 10px;
  height: 10px;
  background: url(../img/icon/menu-arrow.svg) no-repeat;
  background-size: auto;
  background-size: contain;
}
.header-menu__row .sub-menu{
    position: absolute;
    margin: 0;
    padding: 12px;
    list-style: none;
    background:#161616;
    position: absolute;
    z-index: 11;
    top: 40px;
    left: 0;
    box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.6);
    border-radius:10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
}
.burger{
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 18px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    background:#ffd500;
}
.burger svg path{
    fill:#000;
}
.burger svg:nth-child(2){
    display: none;
}
.burger.active svg:nth-child(1){
    display: none;
}
.burger.active svg:nth-child(2){
    display: block;
}
.mob-menu{
    padding: 20px;
    position: fixed;
    z-index: 111;
    top: 54px;
    right: 0;
    width: 50%;
    background:#161616;
    transform: translateX(100%);
    transition: all ease .3s;
    border-bottom-left-radius: 20px;
}
.mob-menu.open{
    transform: translateX(0);
    transition: all ease .5s;
}
.header-menu__mob{
    padding: 0;
    margin: 0;
    list-style: none;
}
.header-menu__mob li{
    margin-bottom: 12px;
    background: #161616;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.header-menu__mob li .sub-menu li{
     display: flex;
     align-items:center;
     gap: 8px;
     box-shadow:none;
     border:none;
     padding: 0;
     padding-left: 7px;
     margin-top: 6px;
}
.header-menu__mob li .sub-menu li::before{
    content:"";
    display: flex;
    width: 15px;
    height: 1px;
    background:#fff;
}
.header-menu__mob li:last-child{
    margin-bottom: 0;
}
.header-menu__mob .sub-menu{
    padding: 0;
    margin: 0;
    list-style: none;
}
.header-menu__mob a{
    color:#fff;
    text-decoration: none;
}
@media(min-width:1024px){
    .header-menu__row .menu-item-has-children:hover .sub-menu{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: all ease .3s;
    }
}
@media(max-width:1280px){
    .header-menu{
        display: none;
    }
    .header{
        height: 54px;
    }
    .header .nav{
        height: 100%;
    }
    .header-btn{
        display: none;
    }
    .mob-menu .header-btn{
        margin-top: 40px;
        display: flex;
    }
    .burger{
        display: flex;
    }
    .header-logo{
        width: 115px;
    }
}
/* Адаптивність для планшетів та мобільних */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr; /* 1 в ряд на смартфонах */
        gap: 16px;
    }
    .video-card__title{
        font-size: 14px;
        line-height: normal;
    }
    .mob-menu{
        width: 80%;
    }
}
