
/* ==========================================
   YALLA MEDITERRANEO
   PROJECTS PAGE
========================================== */

/* ==========================================
   01 / PAGE OPENING — NO HERO
========================================== */

.projects-opening {
  position: relative;
  overflow: hidden;
  padding-block: 88px 32px;
  background: var(--off-white);
}

.projects-opening::before {
  content: "";
  position: absolute;
  top: -210px;
  right: -130px;
  width: 410px;
  height: 410px;
  border: 65px solid var(--mist);
  border-radius: 50%;
  opacity: .65;
  pointer-events: none;
}

.projects-opening-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 65px;
  padding-bottom: 85px;
}

.projects-opening h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.6vw, 7rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.075em;
}

.projects-opening h1 span {
  display: block;
}

.projects-opening-accent {
  color: var(--coral);
}

.projects-opening-aside {
  padding-bottom: 8px;
}

.projects-opening-aside > p {
  max-width: 440px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 1.09rem;
  line-height: 1.85;
}

.projects-opening-rule {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--blue) 0 35%,
    var(--saffron) 35% 58%,
    var(--coral) 58% 82%,
    var(--teal) 82% 100%
  );
}

/* ==========================================
   02 / EUROPEAN PROGRAMMES
========================================== */

.projects-european {
  background: var(--navy);
  color: var(--off-white);
}

.projects-european .section-heading h2 {
  max-width: 720px;
}

.projects-european .section-intro {
  color: var(--mist);
  line-height: 1.85;
}

.projects-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.projects-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 635px;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--radius);
  isolation: isolate;
}

.projects-erasmus {
  background: var(--blue);
  color: var(--off-white);
}

.projects-esc {
  background: var(--teal);
  color: var(--off-white);
}

.projects-feature-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.projects-feature-number {
  font-size: .88rem;
  font-weight: 850;
}

.projects-feature-category {
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-align: end;
}

/* DECORATIVE PROGRAMME SYMBOL */

.projects-feature-art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  margin-block: 16px 12px;
  isolation: isolate;
}

.projects-feature-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(229,166,60,.2),
      transparent 45%
    );
}

.projects-art-ring {
  position: absolute;
  width: 225px;
  height: 225px;
  border: 25px solid currentColor;
  border-radius: 50%;
  opacity: .13;
}

.projects-art-small-ring {
  position: absolute;
  width: 115px;
  height: 115px;
  top: 10px;
  left: 10%;
  border: 15px solid var(--saffron);
  border-radius: 50%;
  opacity: .75;
}

.projects-esc .projects-art-small-ring {
  left: auto;
  right: 10%;
  border-color: var(--mist);
}

.projects-feature-art strong {
  position: relative;
  z-index: 2;
  color: var(--saffron);
  font-size: clamp(7rem, 12vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.12em;
  transform: rotate(-11deg);
}

.projects-esc .projects-feature-art strong {
  color: var(--off-white);
  font-size: clamp(6rem, 10.5vw, 9.5rem);
  transform: rotate(8deg);
}

.projects-feature-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.projects-feature-body h3 {
  max-width: 510px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.projects-feature-body > p {
  max-width: 520px;
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 1.85;
}

.projects-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-feature-tags span {
  padding: 7px 13px;
  border: 1px solid rgba(247,248,250,.7);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.4;
}

.projects-programme-note {
  max-width: 770px;
  margin: 29px 0 0;
  color: var(--mist);
  font-size: .85rem;
  line-height: 1.7;
}

/* ==========================================
   03 / MORE PROJECT AREAS
========================================== */

.projects-other {
  background: var(--off-white);
}

.projects-other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.projects-area-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 405px;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .3s var(--ease);
}

.projects-area-card:hover {
  transform: translateY(-7px);
}

.projects-area-sand {
  background: var(--sand);
  color: var(--navy);
}

.projects-area-mist {
  background: var(--mist);
  color: var(--navy);
}

.projects-area-coral {
  background: var(--coral);
  color: var(--off-white);
}

.projects-area-teal {
  background: var(--teal);
  color: var(--off-white);
}

.projects-area-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: .85rem;
  font-weight: 850;
}

.projects-area-symbol {
  display: block;
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1;
}

.projects-area-content {
  margin-top: auto;
}

.projects-area-category {
  margin-bottom: 13px;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.projects-area-content h3 {
  max-width: 460px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 850;
  line-height: 1.15;
}

.projects-area-content > p:not(.projects-area-category) {
  max-width: 530px;
  margin-bottom: 23px;
  font-size: .98rem;
  line-height: 1.8;
}

.projects-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.projects-area-tags span {
  padding: 7px 13px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: .71rem;
  font-weight: 750;
  line-height: 1.4;
}

/* ==========================================
   04 / PROJECT APPROACH
========================================== */

.projects-approach {
  background: var(--sand);
}

.projects-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
  align-items: start;
}

.projects-approach-copy h2 {
  max-width: 590px;
  margin-bottom: 26px;
  color: var(--navy);
}

.projects-approach-copy > p:last-child {
  max-width: 480px;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.85;
}

.projects-approach-list {
  border-top: 2px solid var(--navy);
}

.projects-approach-item {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  gap: 23px;
  padding-block: 32px;
  border-bottom: 1px solid rgba(21,43,85,.3);
}

.projects-approach-number {
  padding-top: 6px;
  color: var(--coral);
  font-size: .85rem;
  font-weight: 900;
}

.projects-approach-item h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 850;
}

.projects-approach-item p {
  max-width: 440px;
  margin-bottom: 0;
  font-size: .97rem;
  line-height: 1.8;
}

/* ==========================================
   05 / PIF DOWNLOAD SECTION
========================================== */

.projects-pif {
  position: relative;
  overflow: hidden;
  background: var(--saffron);
}

.projects-pif::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -170px;
  width: 500px;
  height: 500px;
  border: 80px solid var(--coral);
  border-radius: 50%;
  opacity: .22;
  pointer-events: none;
}

.projects-pif-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: 65px;
}

.projects-pif-content h2 {
  max-width: 800px;
  margin-bottom: 27px;
  color: var(--navy);
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  font-weight: 900;
}

.projects-pif-content h2 span {
  display: block;
}

.projects-pif-highlight {
  color: var(--blue);
}

.projects-pif-content > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 0;
  font-size: 1.06rem;
  line-height: 1.85;
}

.projects-pif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.projects-pif-download {
  transition:
    transform .25s var(--ease),
    background .25s,
    opacity .25s;
}

.projects-pif-download.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.projects-pif-content .projects-pif-note {
  margin-top: 18px;
  color: var(--navy);
  font-size: .83rem;
  font-weight: 650;
}

/* DECORATIVE PIF CARD */

.projects-pif-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  isolation: isolate;
}

.projects-pif-arch {
  position: absolute;
  width: 95%;
  height: 92%;
  bottom: -70px;
  border: 32px solid var(--coral);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: .32;
}

.projects-pif-paper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(82%, 335px);
  min-height: 410px;
  padding: 31px;
  border-radius: 13px;
  background: var(--off-white);
  color: var(--navy);
  box-shadow: 18px 20px 0 rgba(21,43,85,.19);
  transform: rotate(8deg);
}

.projects-pif-paper-top {
  margin-bottom: 50px;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.projects-pif-paper-line {
  display: block;
  height: 8px;
  margin-bottom: 13px;
  border-radius: 20px;
  background: var(--mist);
}

.projects-pif-paper-line.short {
  width: 60%;
}

.projects-pif-paper strong {
  margin-top: auto;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.1em;
}

.projects-pif-paper-bottom {
  margin-top: 17px;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.projects-pif-art-circle {
  position: absolute;
  z-index: 3;
  width: 95px;
  height: 95px;
  left: -25px;
  bottom: 30px;
  border-radius: 50%;
  background: var(--teal);
}

/* ==========================================
   RESPONSIVE / TABLET
========================================== */

@media (max-width: 1100px) {

  .projects-opening-grid,
  .projects-approach-grid,
  .projects-pif-grid {
    gap: 45px;
  }

  .projects-feature-card {
    min-height: 650px;
    padding: 30px;
  }

  .projects-feature-body h3 {
    font-size: clamp(2.1rem, 3vw, 3rem);
  }

}

@media (max-width: 900px) {

  .projects-opening {
    padding-top: 65px;
  }

  .projects-opening-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 60px;
  }

  .projects-opening h1 {
    max-width: 850px;
    font-size: clamp(3rem, 8vw, 5.9rem);
  }

  .projects-opening-aside > p {
    max-width: 650px;
  }

  .projects-feature-grid {
    grid-template-columns: 1fr;
  }

  .projects-feature-card {
    min-height: 570px;
  }

  .projects-feature-art {
    min-height: 160px;
  }

  .projects-feature-art strong {
    font-size: 8rem;
  }

  .projects-feature-body h3 {
    font-size: 2.9rem;
  }

  .projects-approach-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .projects-approach-copy h2 {
    max-width: 780px;
  }

  .projects-pif-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-pif-art {
    width: min(100%, 500px);
    min-height: 390px;
    margin-inline: auto;
  }

  .projects-pif-paper {
    min-height: 350px;
  }

}

/* ==========================================
   RESPONSIVE / MOBILE
========================================== */

@media (max-width: 650px) {

  .projects-opening {
    padding-top: 48px;
    padding-bottom: 20px;
  }

  .projects-opening-grid {
    gap: 24px;
    padding-bottom: 46px;
  }

  .projects-opening h1 {
    font-size: clamp(2.8rem, 10.5vw, 4.4rem);
    letter-spacing: -.05em;
  }

  .projects-opening-aside > p {
    font-size: 1rem;
  }

  .projects-feature-card {
    min-height: 555px;
    padding: 27px;
  }

  .projects-feature-top {
    align-items: flex-start;
    gap: 16px;
  }

  .projects-feature-category {
    font-size: .62rem;
  }

  .projects-feature-art {
    min-height: 145px;
  }

  .projects-feature-art strong {
    font-size: clamp(6rem, 24vw, 8rem);
  }

  .projects-esc .projects-feature-art strong {
    font-size: clamp(5.5rem, 21vw, 7.3rem);
  }

  .projects-art-ring {
    width: 180px;
    height: 180px;
  }

  .projects-feature-body h3 {
    font-size: 2.35rem;
  }

  .projects-feature-body > p {
    font-size: .94rem;
  }

  .projects-feature-tags span {
    font-size: .68rem;
    padding: 6px 10px;
  }

  .projects-other-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .projects-area-card {
    min-height: 365px;
    padding: 28px;
  }

  .projects-area-content h3 {
    font-size: 2.2rem;
  }

  .projects-approach-item {
    grid-template-columns: 35px 1fr;
    gap: 15px;
    padding-block: 27px;
  }

  .projects-approach-item h3 {
    font-size: 1.7rem;
  }

  .projects-pif-content h2 {
    font-size: clamp(2.9rem, 10vw, 4.4rem);
  }

  .projects-pif-content > p:not(.eyebrow) {
    font-size: .98rem;
  }

  .projects-pif-actions {
    flex-direction: column;
  }

  .projects-pif-actions .btn {
    width: 100%;
  }

  .projects-pif-art {
    min-height: 335px;
  }

  .projects-pif-paper {
    width: min(75%, 260px);
    min-height: 300px;
    padding: 22px;
  }

  .projects-pif-paper-top {
    margin-bottom: 35px;
    font-size: .55rem;
  }

  .projects-pif-paper strong {
    font-size: 5rem;
  }

  .projects-pif-paper-bottom {
    font-size: .51rem;
  }

  .projects-pif-art-circle {
    width: 65px;
    height: 65px;
    left: 5px;
  }

}

/* ==========================================
   ARABIC / RTL
========================================== */

html[dir="rtl"] .projects-opening h1,
html[dir="rtl"] .projects-feature-body h3,
html[dir="rtl"] .projects-area-content h3,
html[dir="rtl"] .projects-pif-content h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

html[dir="rtl"] .projects-feature-category,
html[dir="rtl"] .projects-area-category {
  letter-spacing: 0;
}

html[dir="rtl"] .projects-feature-art,
html[dir="rtl"] .projects-pif-art,
html[dir="rtl"] .projects-pif-paper {
  direction: ltr;
}

html[dir="rtl"] .projects-feature-art strong {
  letter-spacing: -.12em;
}

html[dir="rtl"] .projects-pif-paper strong {
  letter-spacing: -.1em;
}

html[dir="rtl"] .projects-pif-actions {
  justify-content: flex-start;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  .projects-feature-card,
  .projects-area-card {
    transition: none;
  }

}
