/*
  Theme Name: friends theme
 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 0;
  margin: 0;
  color: #333;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

h3 {
  margin-top: 0;
}

ul {
  padding-left: 30px;
  margin: 0;
  list-style: none;
}

.wp-block-columns ul {
  list-style: inherit;
}

.wp-block-column p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 15px;
}

h1 {
  margin: 0;
}

p {
  margin: 0;
}

.text-bold {
  font-weight: 600;
}

.col {
  width: 50%;
}

.section {
  padding: 50px 0;
}

.section .section-title {
  font-weight: 700;
  margin: 0;
}

.section-title {
  margin-top: 0;
  color: #003366;
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

.section-divider__line {
  flex: 1;
  max-width: 70px;
  height: 2px;
  background: #d9d9d9;
}

.section-divider__star {
  width: 20px;
  height: 20px;
  fill: #f4c20d;
  flex-shrink: 0;
  stroke: #f4c20d;
  stroke-width: 2;
}

.section-title-wrapper {
  margin-bottom: 25px;
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.title-img {
  width: 80px;
  height: 70px;
  object-fit: cover;
}

.section-title {
  margin: 0;
}

.hero {
  position: relative;
  height: 46vw;
  min-height: 500px;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    height: 83vh;
  }
}

.hero-top {
  background-color: #fff;
  padding: 40px 0;
  text-align: center;
}

.hero-title {
  color: #333;
  text-transform: uppercase;
  font-size: 34px;
  font-weight: 600;
}

.hero .swiper {
  position: relative;
}

.swiper-wrapper {
  padding: 10px 0;
  align-items: stretch;
}

.about-hero__arrow {
  position: absolute;
  z-index: 1;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
}

.about-hero__arrow span {
  font-size: 1.3rem;
}

.about-hero__arrow:hover {
  color: #ffcc00;
  transform: translateX(-50%) translateY(-5px);
}

.hero .swiper {
  width: 100%;
  height: 700px;
}

.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .swiper-slide:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: rgb(100 100 100 / 60%);
}

.hero .slide-info {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero .slide-info-text {
  color: #fff;
  font-size: 44px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero .slide-info-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.hero .slide-info-btn:hover {
  transform: scale(1.1);
}

.hero .swiper-slide {
  position: relative;
}

.hero .swiper-button-prev:after,
.hero .swiper-button-next:after {
  color: #fff;
}

.hero .swiper-pagination {
  margin-bottom: 20px;
}

.hero .swiper-pagination-bullet {
  background-color: transparent;
  border: 3px solid #fff;
  width: 24px;
  height: 24px;
  opacity: 1;
}

.hero .swiper-pagination-bullet-active {
  background-color: #fff;
}

.header-lang {
  list-style: none;
}

.header-lang li {
  list-style: none;
  margin: 3px 0;
}

.header-lang li img {
  width: 24px !important;
  height: 16px !important;
}

.hero video {
  height: 100%;
  width: 100%;
}

.video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1280px;
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
  z-index: 99;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(72 111 139 / 60%);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  width: 100%;
  left: 50%;
  top: 50%;
  z-index: 10;
  transform: translate(-50%, -50%);
  padding: 0 30px;
}

.hero-left h1 {
  color: #fff;
  font-size: 40px;
}

.hero-date {
  font-size: 40px;
  color: #ffd601;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  padding: 25px 60px;
  background-color: #d232f1;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-7px);
}

@media (max-width: 767px) {
  .hero-wrapper {
    flex-direction: column;
    justify-content: center;
  }

  .hero-text img {
    width: 300px;
    margin: 0 auto;
    display: block;
  }

  .hero-text p {
    margin-top: 30px;
    text-align: center;
  }
}

.divider {
  background-color: #ebe7e7;
  width: 250px;
  height: 2px;
  margin: 20px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-medium {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.container-l {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.container-max {
  max-width: 1920px;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    z-index: 9999;
    padding: 15px;
  }

  body:not(.home) .header-container {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
    transform: none;
  }

  body:not(.home) .header-wrapper {
    background-color: #303965;
  }
}

.nav {
  margin: 0;
  list-style-type: none;
  display: flex;
}

.nav .page_item:last-child {
  margin-right: 0;
}

.nav li {
  margin: 0 15px;
}

@media (min-width: 1000px) and (max-width: 1280px) {
  .nav li {
    margin: 0 5px;
  }
}

.nav li a {
  color: #fff;
  font-size: 18px;
}

.nav .current-menu-item > a,
.nav a.active {
  font-weight: 700;
  color: #d6b369;
}

.nav a:hover {
  color: #d6b369;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

@media (max-width: 991px) {
  .header-right {
    margin-left: auto;
    margin-right: 20px;
  }
}

.header-social .fab {
  color: #10913e;
  font-size: 28px;
}

.header-social a {
  background-color: #fff;
  padding: 5px;
  display: block;
  transition: 0.3s;
}

.header-social a:hover {
  transform: translateY(-5px);
}

.breadcrumbs {
  font-size: 15px;
  margin-bottom: 20px;
  color: #666;
}

.breadcrumbs a {
  color: #303965;
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 5px;
}

.overlay {
  display: none;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  transition: all 0.3s ease;
}

.overlay.is-active {
  display: block;
}

.header-menu {
  display: none;
}

@media (max-width: 999px) {
  .header-menu {
    display: block;
    background: #0956af;
    color: #fff;
    transform: translateX(100%);
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    height: 100vh;
    overflow: hidden;
    padding: 10px 20px 30px;
    max-width: 350px;
    border-left: 1px solid #fff;
  }
}

.header__mobile-button {
  margin-top: -10px;
  background-color: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header__menu-icon {
  background: #fff;
  display: block;
  width: 26px;
  height: 3px;
  margin-top: 6px;
}

.header-menu.is-active {
  transform: translateX(0);
  display: block;
  z-index: 3000000;
  transition: all 0.3s ease;
}

.header-menu__top {
  display: flex;
}

.header__btn-close {
  padding-top: 25px;
  padding-right: 25px;
  margin-left: auto;
  background-color: transparent;
  cursor: pointer;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-mobile {
  margin-top: 50px;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.nav-mobile li {
  text-align: left;
  margin-bottom: 20px;
}

.nav-mobile li a {
  font-size: 26px;
  color: #fff;
}

.nav-mobile .current_page_item a {
  text-decoration: underline;
}

.nav-mobile .sub-menu {
  margin-top: 20px;
}

.nav-mobile .sub-menu a {
  font-size: 20px;
}

@media (max-width: 999px) {
  .nav {
    display: none;
  }
  .header-wrapper {
    padding: 10px 0;
    background: #303965;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
  }
  .header-lang {
    display: none;
  }
  .header-lang-mobile {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
  }

  .header-lang-mobile img {
    width: 30px !important;
    height: 18px !important;
  }

  .header-lang-mobile li {
    list-style: none;
  }
}

@media (min-width: 1000px) {
  .header__mobile-button {
    display: none;
  }
  .header-lang-mobile {
    display: none;
  }
}

.text-center {
  text-align: center;
}

/* about us */

.about-us {
  padding: 50px 0;
  background: #fff;
  color: #303965;
  box-shadow: 0px 0px 7px #ccc;
}

@media (min-width: 1025px) {
  .about-us .section-divider {
    justify-content: left;
  }
  .about-us .section-title-wrapper {
    margin-left: 70px;
  }
  .about-us .section-title {
    text-align: left;
  }
}

.about-us .about-content p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.3;
}

/* about page */

.about {
  position: relative;
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #303965;
  transition: all 0.5s ease;

  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-picture {
  flex: 0 0 50%;
  border-radius: 50px;
  overflow: hidden;
}

@media (min-width: 1281px) {
  .about-picture {
    flex: 0 0 800px;
  }
}

.about-picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Мобільна версія */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .about-picture {
    flex: none;
    width: 100%;
  }
}

.about .section-title {
  width: 100%;
  color: #fff;
  padding: 40px 20px;
  background: rgb(67 74 129 / 50%);
}

.main-text p {
  line-height: 1.5;
  font-size: 17px;
}

.about-bg {
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.about-image,
.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.about-video {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.about:hover .about-video.ready {
  opacity: 1;
}

.about:hover .about-image.hide {
  opacity: 0;
}

/* секції на головній */
.about-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  padding: 1rem;
}

.about-us.about--left .about-image,
.about-us.about--left .about-video {
  width: 50%;
  height: 650px;
  object-fit: contain;
  right: 20px;
  left: auto;
}

.about-us.about--right .about-image,
.about-us.about--right .about-video {
  width: 50%;
  height: 650px;
  object-fit: contain;
  left: 20px;
  right: auto;
}

@media (max-width: 767px) {
  .about-wrapper {
    padding: 30px 10px;
  }
}

.main-text {
  max-width: 620px;
  background: linear-gradient(to top, rgb(107 117 215 / 70%), transparent);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 10px;
  color: #fff;
  transition: all 0.5s ease;
}

.main-text .main-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
  z-index: 1;
  line-height: 1.4;
}

.video-title {
  font-size: 3rem;
  color: #fff;
  text-align: center;
  z-index: 1;
}

@media (min-width: 992px) {
  .about-us-main-text .main-description {
    font-size: 1.2rem;
  }
}

.about-content-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
}

.main-description {
  font-size: 1.3rem;
  line-height: 1.5;
  padding: 20px;
  background-color: rgba(58, 69, 85, 0.7);
  z-index: 11;
  max-width: 600px;
  width: 100%;
  color: #fff;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.about-btn-wrapper {
  margin-left: auto;
  margin-right: 100px;
}

.main-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  gap: 10px;

  padding: 18px 38px;

  background: linear-gradient(135deg, #303965 0%, #44518f 100%);
  color: #fff;

  border: 4px solid rgba(214, 179, 105, 0.5);
  border-radius: 18px;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;

  box-shadow:
    0 10px 25px rgba(48, 57, 101, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

/* блиск */
.main-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );

  transition: 0.7s;
}

/* hover */
.main-link:hover {
  transform: translateY(-3px);

  background: linear-gradient(135deg, #39457a 0%, #5364b0 100%);
  border-color: #d6b369;

  box-shadow:
    0 16px 35px rgba(48, 57, 101, 0.45),
    0 0 20px rgba(214, 179, 105, 0.2);
}

.main-link:hover::before {
  left: 140%;
}

/* active */
.main-link:active {
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(48, 57, 101, 0.3);
}

.main-link span {
  transition: transform 0.3s ease;
}

.main-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .about-content-wrapper {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }
  .about-btn-wrapper {
    margin: auto;
  }
  .main-description {
    border-radius: 40px;
    font-size: 1rem;
  }
  .about .section-title {
    font-size: 26px;
    padding: 20px;
    margin-bottom: 30px;
  }
  .about {
    height: auto;
  }
}

/* program page */

.program {
  padding: 70px 0;
}

/* members */
.organizers {
  padding: 80px 0;
  background: linear-gradient(135deg, #eaf1f8, #ffffff);
  color: #1a1a1a;
}

.organizers__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
}

.organizers__left {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.organizers__right {
  flex: 1 1 100%;
  max-width: 100%;
}

.organizers__section {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.organizers__subtitle {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  border-left: 4px solid #0074cc;
  padding-left: 12px;
  color: #003366;
}

.organizers__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organizers__item {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  padding-left: 15px;
  position: relative;
}

.organizers__item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0074cc;
}

.organizers__slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.organizers__slider .swiper {
  width: 100%;
  height: auto;
}

.organizers__slider .swiper-wrapper {
  display: flex;
  align-items: center;
}

.organizers__slider .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}

.organizers__slider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* або cover, якщо тобі треба обрізку */
  max-width: 100%;
  border-radius: 12px;
}

/* Swiper buttons */
.swiper-button-next.place-next,
.swiper-button-prev.place-prev {
  color: #fff;
  width: 40px;
  height: 40px;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

@media (min-width: 768px) {
  .organizers__left {
    flex: 1 1 45%;
    max-width: 600px;
  }

  .organizers__right {
    flex: 1 1 50%;
    max-width: 750px;
  }
}

/* У слайдері — обмеження зображення */
.organizers__slider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain; /* або cover */
}

/* activity section */
.activity {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.activity .section-title-wrapper {
  margin-bottom: 10px;
}

.activity-subtitle {
  font-size: 20px;
  text-align: center;
}

.activity-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 70px;
}

.activity-item {
  width: 45%;
  display: flex;
  gap: 5%;
}

.activity-item-title {
  font-size: 22px;
  color: #333;
  font-weight: 700;
  margin-bottom: 20px;
}

.activity-item-text,
.activity-item-text p {
  line-height: 1.4;
  font-size: 16px;
}

.activity-item-img {
  width: 100px;
  height: 100px;
  flex: 1 0 auto;
}

.activity-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

@media (max-width: 1100px) {
  .activity-item {
    flex-direction: column;
    width: 45%;
  }
  .activity-item-img {
    flex: 0 1 auto;
  }
}

@media (max-width: 767px) {
  .activity-wrapper img {
    width: 300px;
  }
  .activity-item {
    width: 100%;
    align-items: center;
    justify-content: center;
  }
  .activity-item-title {
    text-align: center;
  }
  .activity-item-text,
  .activity-item-text p {
    text-align: center;
  }
}

/* parthers */
.partners {
  padding: 70px 0;
  background-color: #f5f5f5;
}

.partners-title {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.partners-logos {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-logo {
  height: 140px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
}

/* achievements */

.achievements {
  background-color: #303965;
  color: #fff;
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.achievements-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.achievements-content {
  flex: 1 1 auto;
  margin-bottom: 30px;
}

.achievements-content h2 {
  font-size: 32px;
  line-height: 1.4;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.achievements-content h2 span {
  color: #f2c244;
}

.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background-color: transparent;
  color: #f2c244;
  border-color: #f2c244;
}

.achievements-stats {
  display: flex;
  gap: 40px;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1 1 150px;
}

.stat-circle {
  width: 150px;
  height: 150px;
  border: 3px solid #d5b467;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: bold;
}

.stat-item p {
  font-weight: 700;
  font-size: 20px;
}

@media (max-width: 768px) {
  .achievements-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .achievements-stats {
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
  }

  .stat-circle {
    width: 100px;
    height: 100px;
    font-size: 28px;
  }

  .achievements-content h2 {
    font-size: 28px;
  }
}

/* gallery */
.gallery {
  padding: 60px 0;
  background-color: #f5f5f5;
  box-shadow: 0px 0px 7px #ccc;
}

.gallery-title {
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid a {
  width: auto;
  height: 300px;
}

@media (max-width: 767px) {
  .gallery-grid a {
    height: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Адаптивність */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* news */

.news {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.news-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 7px #ccc;
}

.news-image img {
  width: 100%;
  height: 240px;
  display: block;
}

@media (max-width: 767px) {
  .news-image img {
    height: auto;
  }
}

.news-date {
  font-weight: bold;
  color: #777;
  line-height: 1.2;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-date-item {
  border: 1px solid #7b1b8f;
  padding: 5px 10px;
}

.news-day {
  display: block;
  font-size: 20px;
}

.news-month {
  display: block;
  font-size: 14px;
}

.news-content {
  padding: 20px;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #005f2f;
}

.news-title a {
  color: #0956af;
  text-decoration: none;
}

.news-excerpt {
  flex-grow: 1;
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

.news-page {
  padding: 70px 0;
  background-color: #f2f2f2;
}

.news-page .section-title-wrapper {
  margin-bottom: 50px;
}

.btn-read {
  display: inline-flex;
  align-self: start;
  padding: 8px 16px;
  background-color: transparent;
  border: 2px solid #303965;
  border-radius: 5px;
  font-weight: 600;
  color: #303965;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-read:hover {
  background-color: #303965;
  color: #fff;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

.news-more .btn-outline,
.news-more.btn-outline {
  padding: 10px 20px;
  border: 2px solid #303965;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  color: #303965;
  text-decoration: none;
  transition: 0.3s;
}

.news-more .btn-outline:hover,
.news-more.btn-outline:hover {
  background-color: #303965;
  color: #fff;
  cursor: pointer;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-title {
    font-size: 16px;
  }
}

/* single post template */

.article {
  padding: 60px 20px;
  background-color: #f9f9f9;
  color: #333;
}

@media (max-width: 767px) {
  .article {
    padding: 20px;
  }
}

.article .container {
  margin: 0 auto;
  background: #f5f5f5;
  padding: 30px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.post-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #222;
}

.post-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
  font-weight: 500;
}

.post-day {
  background-color: #7b1b8f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
}

.post-month {
  text-transform: uppercase;
  color: #7b1b8f;
  font-weight: 700;
  align-self: center;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 40px;
}

.post-text p {
  margin-bottom: 20px;
}

.back-to-news {
  text-align: center;
}

.back-to-news .btn-outline {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid #303965;
  border-radius: 5px;
  color: #303965;
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.back-to-news .btn-outline:hover {
  background-color: #303965;
  color: #fff;
}

@media (max-width: 600px) {
  .single-post .container {
    padding: 20px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-text {
    font-size: 1rem;
  }
}

/* contacts */

.contacts {
  background-color: #8cb59d;
}

.contact-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  flex-shrink: 0;
}

.contact-icon img {
  width: 50px;
  height: 50px;
}

.contacts-title {
  text-transform: uppercase;
  font-size: 28px;
  color: #fff;
  margin: 0;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.contact-info i {
  min-width: 18px;
  text-align: center;
}

.contact-info a {
  color: #005f2f;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #003f20;
}

@media (max-width: 991px) {
  .section-img {
    max-width: 100%;
  }

  .contacts-info {
    padding-left: 50px;
    padding-right: 20px;
  }
}

/* footer */
.footer {
  padding-top: 40px;
  background-color: #303965;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto 70px;
}

.footer-col {
  width: 30%;
}

.footer a,
.footer h3 {
  color: #fff;
}

.footer ul {
  list-style-type: none;
  padding-left: 0;
}

.footer__menu a {
  font-size: 20px;
  font-weight: 500;
  transition: all 0.5s ease;
  padding-bottom: 2px;
}

.footer .submenu-icon i {
  display: none;
}

@media (min-width: 768px) {
  .footer .sub-menu {
    border-left: 1px solid #d4d4d4;
  }
}

.footer__menu .sub-menu .current_page_item a {
  color: #d6b369;
  font-weight: 700;
}

.footer__menu .sub-menu {
  margin: 25px 0 0 5px;
  padding-left: 20px;
}

.footer-logo {
  display: block;
  width: 300px;
}

@media (max-width: 767px) {
  .footer-logo {
    margin: 0 auto;
  }
  .footer-col {
    text-align: center;
  }
  .footer__menu .sub-menu {
    padding-left: 0;
    margin: 40px 0 40px;
  }

  .footer__menu .sub-menu li {
    margin-bottom: 20px;
  }
}

.footer__menu {
  gap: 10px 50px;
}

.footer__menu li {
  margin-bottom: 20px;
}

.footer-copy {
  color: #f2f2f2;
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid #fff;
  font-size: 14px;
}

.footer__menu li:last-child {
  margin-bottom: 0;
}

.footer__menu li a:hover {
  color: #d6b369;
}

.contact-info {
  font-size: 16px;
  color: #333;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-label {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin-bottom: 7px;
  display: block;
}

.contact-data {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: 0.3s ease;
}

@media (max-width: 767px) {
  .contact-data {
    justify-content: center;
  }
  .contact-label {
    text-align: center;
  }
}

.contact-data i {
  color: #fff;
  min-width: 18px;
}

.contact-data a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-data a:hover {
  color: #d6b369;
  text-decoration: none;
  border: none;
}

@media (max-width: 767px) {
  .footer__menu {
    flex-direction: column;
  }

  .footer-nav li {
    margin-bottom: 20px;
  }

  .footer__logos-item img {
    width: 300px;
  }

  .footer__menu .current_page_item {
    padding-bottom: 2px;
  }

  .footer__contacts a {
    display: flex;
    align-items: center;
  }

  .footer__contacts a svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
  }

  .footer__contacts ul li {
    margin-bottom: 10px;
  }

  .footer-copy {
    padding: 20px 0;
    font-size: 14px;
    text-align: center;
    color: #fbfbfb;
    border-top: 1px solid #fbfbfb;
  }

  @media (max-width: 1000px) {
    .footer-wrapper {
      justify-content: center;
      flex-wrap: wrap;
      gap: 50px;
    }

    .footer-col {
      width: 50%;
    }
  }

  @media (max-width: 650px) {
    .footer-col {
      width: 100%;
    }
  }

  .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 70px;
  }

  .page-title__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f9fbff;
    margin-right: 25px;
  }

  .page-title span {
    color: #2f327d;
    font-size: 45px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .swiper-bg-video,
  .swiper-fallback-img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
}

.submenu-icon {
  font-size: 0.7em;
  margin-left: 5px;
}

.nav .sub-menu {
  display: none;
  position: absolute;
  background: transparent;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  z-index: 999;
}

body:not(.home) .nav .sub-menu {
  background-color: #0956af;
}

.nav .sub-menu .current_page_item a {
  color: #d6b369;
}

/* Батьківський елемент має відносне позиціонування */
.nav li.menu-item-has-children {
  position: relative;
}

/* Показувати підменю при ховері */
.nav li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* Стилі для посилань у підменю */
.nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* Стилі при наведенні */
.nav .sub-menu li a:hover {
  color: #d6b369;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 30px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 100px;
}

.event-card__image {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  min-height: 300px;
}

.event-card__meta {
  display: flex;
  align-items: flex-start;
}

.event-card__location {
  margin-left: 15px;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card__text {
  line-height: 1.3;
  font-size: 16px;
}

.event-card__text ul {
  list-style-type: disc;
}

.event-card__content {
  padding: 25px 40px;
  position: relative;
  color: #303965;
  font-size: 18px;
}

.event-arrow {
  fill: #fff;
}

.event-card__btn {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5817ab;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (min-width: 768px) {
  .event-card:nth-child(even) .event-card__image {
    order: 2;
  }

  .event-card:nth-child(even) .event-card__content {
    order: 1;
  }
}

.event-card:nth-child(even) .event-arrow {
  transform: rotate(180deg);
}

.event-card:nth-child(even) .event-card__btn {
  left: auto;
  right: -24px;
  background: #303965;
}

@media (max-width: 767px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__btn {
    display: none;
  }

  .event-card--reverse .event-card__image,
  .event-card--reverse .event-card__content {
    order: initial;
  }

  .event-card__content {
    padding: 20px;
  }
  .event-card__title {
    font-size: 16px;
  }
  .event-card__date {
    margin-bottom: 5px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #303965;
  color: white;
  font-size: 24px;
  text-decoration: none;
  border: 2px solid #fff;
  padding: 12px 20px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 0;
  pointer-events: none;
}

.back-to-top:hover {
  transform: translateY(-7px);
  background-color: #07468e;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Слайдер */

.section-slider {
  padding: 50px 0;
  background: #f5f5f5;
  display: flex;
}

.custom-swiper-section {
  border-radius: 30px;
  padding: 15px;
  position: relative;
}

.custom-swiper .swiper-wrapper {
  align-items: stretch;
  padding-bottom: 40px;
}

.custom-swiper-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.custom-swiper-section .swiper-slide {
  box-shadow: 0px 0px 7px #ccc;
  border-radius: 20px;
  height: auto;
  display: flex;
}

@media (max-width: 767px) {
  .custom-swiper-section {
    padding: 30px 15px;
  }

  .custom-swiper-section .container {
    padding: 0 10px;
  }
}

/* .slider-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
} */

.slider-title {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  transition: 0.3s;
}

/* Навігація */

.slider-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.custom-prev,
.custom-next {
  position: absolute !important;
  top: 50%;
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #303965 !important;
  border-radius: 50%;
  border: none;

  transform: translateY(-50%);
  pointer-events: auto;
  cursor: pointer;

  background-image: none !important;
}

.custom-prev {
  left: -80px;
}

.custom-next {
  right: -80px;
}

@media (max-width: 1550px) {
  .custom-prev,
  .custom-next {
    display: none;
  }
}

.custom-next::before,
.custom-prev::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;

  background-image: url("/wp-content/themes/friends/images/arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.custom-prev::before {
  transform: rotate(180deg);
}

.slide-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  transition: 0.3s;
  position: relative;
}

.slide-image {
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: 0.5s;
}

.slide-card:hover .slide-image img {
  transform: scale(1.1);
}

.slide-date {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #303965;
  font-weight: 600;
  font-size: 16px;
}

.slide-info {
  padding: 15px;
}

.slide-text {
  font-size: 18px;
  line-height: 1.5;
  color: #303965;
  font-weight: 600;
  padding-right: 50px;
}

.slide-date-img {
  margin-right: 15px;
}

.slide-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  fill: #7a0891;
  transition: 0.3s;
}

.slide-card:hover .slide-arrow {
  transform: translateX(5px);
}

.swiper-pagination {
  bottom: 0 !important;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 5px !important;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  background: #112374;
  width: 20px; /* робимо “витягнуту” */
  border-radius: 10px;
}

/* Responsive */

.gallery-slider {
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .gallery-slider {
    height: 100vw;
    border-radius: 25px;
  }
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* desktop grid */
@media (min-width: 768px) {
  .gallery-slider .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery-slider .swiper-slide {
    width: auto !important;
  }
}

.gallery-slider .swiper-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gallery-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background-color: #d9d9d9;
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
}

/* active dot */
.gallery-slider .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 20px;
  background-color: #000;
}

.slider-top-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.slider-top:hover .slider-title {
  color: #ffcc00;
}
@media (min-width: 1024px) {
  .header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    transition:
      transform 0.35s ease,
      background 0.35s ease;
  }

  /* сховати header */
  .header-wrapper.header-hidden {
    transform: translateY(-100%);
  }

  /* default inner header */
  .header-container {
    transition:
      background 0.35s ease,
      padding 0.35s ease;
  }

  /* HOME PAGE — верх сторінки */
  .home .header-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 1280px;

    background: transparent;
  }

  /* HOME PAGE — після скролу */
  .home .header-wrapper.scrolled .header-container {
    position: relative;

    top: 0;
    left: 0;

    max-width: 100%;
    transform: none;

    padding: 20px 40px;

    background: rgba(48, 57, 101, 0.92);

    backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  body {
    padding-top: 60px;
  }

  body.home {
    padding-top: 0;
  }
}

.hidden-slide {
  display: none;
}

.show-gallery-btn {
  display: block;
  margin: 30px auto 0;
  padding: 10px 20px;
  border: 2px solid #303965;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  color: #303965;
  text-decoration: none;
  transition: 0.3s;
}

.show-gallery-btn:hover {
  background-color: #303965;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 767px) {
  .show-gallery-btn {
    display: none;
  }
}
