@import url("https://fonts.googleapis.com/css2?family=Righteous&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --font-family: "Roboto", sans-serif;
  --second-family: "Righteous", sans-serif;
  --third-family: "Arial", sans-serif;
}

/* ====== Базові стилі ====== */

.dataspace-landing {
  padding: 40px 48px 32px;
  max-width: 1312px;
  margin: auto;
}

.page-template-layout-1 {
  background-color: #fff;
}

.dataspace-landing .project-logo,
.dataspace-landing .orchestrator-logo {
  max-height: 80px;
  margin-bottom: 10px;
}
.dataspace-landing .project-description {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.dataspace-landing .project-participants ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
  padding: 0;
}
.dataspace-landing .project-participants img {
  height: 50px;
  border-radius: 4px;
}

.layout-1__header {
  display: flex;
  align-items: center;
  margin-bottom: 52px;
}
.layout-1__image {
  width: 563px;
  height: 488px;
  border-radius: 56px;
  overflow: hidden;
}
.layout-1__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.layout-1__title-block {
  box-sizing: border-box;
  box-shadow: 0 2px 24px 0 rgba(13, 13, 13, 0.1);
  background: #fff;
  border-radius: 56px;
  width: 100%;
  max-width: 900px;
  margin-left: -120px;
  height: 488px;
  padding: 30px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.layout-1__title-block h1 {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 60px;
  line-height: 110%;
  color: #01122e;
  margin: 0;
}
.layout-1__short-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 150%;
  color: #324a6d;
  margin-top: 20px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.cta-btn {
  border-radius: 16px;
  padding: 12px 32px;
  box-shadow: 0 2px 8px 0 rgba(0, 117, 219, 0.2);
  background: #0075db;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
}
.layout-1__meta {
  display: flex;
  justify-content: space-between;
  max-width: 860px;
  margin: 52px auto;
  flex-wrap: wrap;
  gap: 20px;
}
.meta-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  color: #6b6b6b;
  margin: 0;
}
.layout-1__meta .meta-org {
  flex-direction: column;
}
.meta-org,
.meta-partners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
}
.meta-partners {
  gap: 0;
}
.meta-block-partners .meta-title {
  margin: 0 auto;
  display: block;
}
.meta-org img {
  margin: 0 auto;
  max-height: 70px;
}
#dataspace-popup-wrapper .meta-partners .partner img{
  width: auto;
  height: 75px;
}
#dataspace-popup-wrapper .meta-partners {
  justify-content: flex-start;
}
.partner-logo {
  height: 70px;
  width: 100%;
}
.partner img {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
.layout-1__meta .meta-org-name,
.layout-1__meta .partner-name {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #01122e;
}
.meta-block-partners {
  width: 100%;
  max-width: 640px;
}
.layout-1__contnet {
  border-radius: 56px;
  box-shadow: 0 2px 24px 0 rgba(13, 13, 13, 0.1);
  background: #fff;
  padding: 52px 68px 58px;
}
.layout-1__contnet h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 34px;
  line-height: 140%;
  color: #01122e;
  margin-bottom: 28px;
}
.layout-1__contnet h2:not(:first-of-type) {
  margin-top: 50px;
}
.layout-1__contnet p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: #01122e;
  margin-bottom: 20px;
}
.layout-1__contnet p a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #2271B1;
}
.layout-1__footer {
  text-align: center;
  margin-top: 30px;
  background: #fff;
}
.layout-1__footer img {
  max-height: 54px;
}

/* ====== Layout 2 ====== */
.layout-2__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.layout-2__content {
  width: 100%;
  max-width: 610px;
}
.layout-2__content h1 {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 60px;
  line-height: 110%;
  color: #01122e;
  margin: 0;
}
.layout-2__short-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 150%;
  color: #324a6d;
  margin-top: 32px;
}
.layout-2__meta-area {
  margin-top: 52px;
  display: flex;
  gap: 100px;
}
.layout-2__meta-area .meta-org img {
  width: auto;
  height: 48px;
}
.layout-2__meta-area .meta-org-name {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #01122e;
}
.layout-2__meta-area .meta-partners {
  max-width: 820px;
  margin-top: 0;
}
.layout-2__meta-area .partner {
  display: flex;
  flex-shrink: 0;
  width: calc(100% / 3);
  box-sizing: border-box;
  gap: 10px;
  align-items: center;
}
.layout-2__meta-area .partner .partner-name {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #01122e;
}
.layout-2__meta-area .partners-slider {
  margin-top: 34px;
}
.meta-area {
  margin-top: 30px;
}
.meta-single {
  margin-bottom: 20px;
}
.meta-label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.meta-inline,
.meta-partners-inline {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.meta-inline img,
.meta-partners-inline img {
  max-height: 40px;
}
.meta-partners-inline p {
  font-size: 14px;
  margin-top: 4px;
}
.layout-2__image {
  width: 581px;
  height: 495px;
  position: relative;
}
.layout-2__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.layout-2__image::after {
  content: "";
  background-image: url("/wp-content/plugins/dataspace-extension/assets/images/Frame.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  inset: -3px;
  z-index: 1;
}
.layout-2__description {
  background: #fafafa;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 40px;
}
.layout-2__description h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 34px;
  line-height: 140%;
  color: #01122e;
  margin-bottom: 28px;
}
.layout-2__description h2:not(:first-of-type) {
  margin-top: 50px;
}
.layout-2__description p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: #01122e;
  margin-bottom: 20px;
}
.layout-2__description p a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #2271B1;
}
.layout-2__footer {
  text-align: center;
  margin-top: 30px;
}
.layout-2__footer img {
  max-height: 40px;
}

/* ====== Layout 2 slider arrows (робочі) ====== */
.partners-slider {
  position: relative;
  width: 640px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.meta-partners {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.meta-partners {
  gap: 0;
}
.meta-org,
.meta-partners {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  margin-top: 34px;
}

.partner {
  flex: 0 0 calc(640px / 3);
  width: calc(640px / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  text-align: center;
  padding: 0 10px;
}

.layout-2__meta-area .partner img {
  width: 70px;
  height: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(1, 209, 209, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2em;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev {
  left: 5px;
}

.slider-next {
  right: 5px;
}

.slider-prev.disabled,
.slider-next.disabled {
  background: rgba(1, 209, 209, 0.3);
  cursor: not-allowed;
}

/* ====== Layout 2 partners slider (робочі стилі) ====== */
.layout-2__meta-area .partners-slider {
  width: 800px;
  margin: 20px auto 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
}
.layout-2__meta-area .meta-partners {
  display: flex;
  flex-direction: row;
  gap: 32px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.layout-2__meta-area .partner {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  gap: 12px;
  box-sizing: border-box;
  text-align: left;
  padding: 0 8px;
}
.layout-2__meta-area .partner img {
  width: 70px;
  height: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.layout-2__meta-area .partner .partner-name {
  font-size: 20px;
  font-weight: 600;
  color: #01122e;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ====== Медіа-запити ====== */

@media (max-width: 1300px) {
  .layout-2__content {
    max-width: 570px;
  }
  .layout-2__image {
    width: 574px;
    height: 489px;
    position: relative;
  }
}

@media (max-width: 1200px) {
  .layout-2__content h1 {
    font-size: 48px;
  }
  .layout-2__short-description {
    font-size: 18px;
  }
  .layout-2__content {
    max-width: 500px;
  }
  .layout-2__image {
    width: 388px;
    height: 331px;
  }
  .layout-2__meta-area .partners-slider {
    width: 630px;
  }
  .layout-1__title-block h1 {
    font-size: 48px;
  }
}

@media (max-width: 900px) {
  .layout-2__meta-area .partners-slider {
    width: 100%;
    overflow: hidden;
  }
  .layout-2__meta-area .partner {
    flex: 0 0 auto;
  }
}

@media (max-width: 800px) {
  .layout-2__header {
    flex-wrap: wrap-reverse;
  }
  .layout-2__image {
    width: calc(100vw - 96px);
    height: calc(100vw - 200px);
  }
  .layout-2__content {
    max-width: 100%;
  }
  .layout-2__meta-area {
    gap: 50px;
    flex-wrap: wrap;
  }
  .layout-2__meta-area .meta-single {
    margin-left: auto;
    margin-right: auto;
  }
  .layout-2__meta-area .partners-slider {
    width: 680px;
  }
}

@media (max-width: 600px) {
  .dataspace-landing {
    padding: 40px 20px 32px;
  }
  .layout-2__image {
    width: calc(100vw - 40px);
    height: calc(100vw - 93px);
  }
  .layout-2__content h1 {
    font-size: 40px;
  }
  .layout-1__image {
    height: 360px;
    border-radius: 32px;
  }
  .layout-1__title-block {
    padding: 32px 20px;
    border-radius: 32px;
  }
  .layout-1__title-block h1 {
    font-size: 40px;
  }
  .layout-1__contnet {
    padding: 32px 20px;
    border-radius: 32px;
  }
  .layout-1__contnet p {
    margin-top: 0;
  }
  .layout-1__contnet p:last-of-type {
    margin-bottom: 0;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .dataspace-landing {
    padding: 24px 16px;
  }
  .layout-1__header {
    flex-wrap: wrap;
  }
  .layout-1__image {
    width: 100%;
  }
  .layout-1__title-block {
    margin-left: 0;
    margin-top: -90px;
    height: auto;
    padding: 42px;
  }
  .meta-block {
    margin: 0 auto;
  }
  .meta-org,
  .meta-partners {
    margin-top: 22px;
    gap: 0;
  }
  .layout-1__meta {
    gap: 64px;
  }
  .partners-slider,
  .layout-2__meta-area .partners-slider {
    width: calc(100vw - 32px);
  }
  .partner,
  .layout-2__meta-area .partner {
    flex: 0 0 auto;
    width: calc(100vw - 32px);
    flex-direction: column;
  }
  .slider-prev {
    left: 10px;
  }
  .slider-next {
    right: 10px;
  }
  .layout-2__meta-area .meta-partners {
    gap: 0;
  }
  .layout-2__description {
    padding: 20px 0;
  }
  .layout-2__image {
    width: calc(100vw - 32px);
    height: calc(100vw - 87px);
  }
  .meta-title {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .layout-2__image {
    width: calc(100vw - 32px);
    height: calc(100vw - 80px);
  }
}
