/* ZODDIAK Foundation – Direction Page Styles
   - Direction hero
   - Direction content & grids
   - Projects & formats Swiper
   - Direction join CTA
*/

/* ---------------------------------------------
   Direction Hero
--------------------------------------------- */
.direction-hero-section { 
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff; 
}

.direction-hero-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.direction-hero-section__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 75%);
  z-index: 1;
}

.direction-hero-section .direction-hero-overlay { 
  position: relative; 
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.direction-hero-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18vh;
  width: 100%;
}

.direction-hero-section .direction-icon-large {
  margin: 0px 0 40px 0;
}

.direction-hero-section .direction-icon-large img { 
  width: 400px;
  height: auto;
  display: block;
}

.direction-title { 
  font-size: 48px; 
  text-transform: uppercase;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0.16em;
  color: var(--gold-500);
  padding-bottom: 25px;
}

.direction-subtitle { 
  letter-spacing: 0.16em;
  max-width: 700px;
  color: var(--gold-500);
  font-family: var(--font-secondary);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-height: 900px) {
  .direction-hero-section .direction-icon-large img { width: 330px; }
  .direction-hero-section__content { padding-top: 18vh; }
}

@media (max-height: 800px) {
  .direction-hero-section .direction-icon-large img { width: 320px; }
  .direction-hero-section__content { padding-top: 14vh; }
  .direction-title { margin-top: 20px !important; padding-top: 20px !important; font-size: 43px; }
}

@media (max-height: 700px) {
  .direction-hero-section .direction-icon-large img { width: 280px; }
  .direction-hero-section__content { padding-top: 10vh; }
  .direction-title { font-size: 38px; }
}

@media (max-height: 600px) {
  .direction-hero-section .direction-icon-large img { width: 260px; }
  .direction-hero-section__content { padding-top: 8vh; }
  .direction-title { font-size: 34px; }
}

@media (max-width: 950px) {
  .direction-hero-section .direction-icon-large img { width: 220px !important; }
  .direction-hero-section__content { padding-top: 6vh; }
}

@media (max-width: 767.98px) {
  .direction-subtitle {
    font-size: 14px;
  }

  .direction-content .body-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .direction-title {
    font-size: clamp(24px, 8vw, 48px) !important;
  }

  .direction-projects-swiper .project-image {
    height: 250px;
  }

  main > section.section:not(.direction-join):last-of-type,
  main > .section:not(.direction-join):last-of-type {
    padding-bottom: 30px !important;
  }

  main > section.section:has(+ .direction-join),
  main > section.section:has(+ section.direction-join) {
    padding-bottom: 30px !important;
  }

  .direction-join {
    min-height: 40vh !important;
    margin-top: 0;
  }
}

/* ---------------------------------------------
   Direction Content & Grids
--------------------------------------------- */
/* Last section in main - target the last .section before direction-join */
main > section.section:not(.direction-join):last-of-type,
main > .section:not(.direction-join):last-of-type {
  padding-bottom: 60px !important;
}

/* Alternative: if direction-join comes after, target section before it */
main > section.section:has(+ .direction-join),
main > section.section:has(+ section.direction-join) {
  padding-bottom: 60px !important;
}

.direction-content .body-text {
  color: var(--gold-500);
  text-transform: uppercase;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  padding: 30px 0;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  margin-top: 24px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .directions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .directions-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .directions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ---------------------------------------------
   Direction Projects & Formats Swiper
--------------------------------------------- */
.direction-projects-swiper {
  position: relative;
  padding-top: 3.5rem;
}

.direction-projects-swiper .swiper-button-prev,
.direction-projects-swiper .swiper-button-next {
  color: var(--gold-500);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(203, 162, 92, 0.6);
  background: radial-gradient(circle at center, rgba(203, 162, 92, 0.08), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
}

.direction-projects-swiper .swiper-button-prev::after,
.direction-projects-swiper .swiper-button-next::after {
  font-size: 18px;
}

@media (min-width: 992px) {
  .direction-projects-swiper .swiper-button-prev {
    left: -48px;
  }
  .direction-projects-swiper .swiper-button-next {
    right: -48px;
  }
}

@media (max-width: 991.98px) {
  .direction-projects-swiper .swiper-button-prev {
    left: 0;
  }
  .direction-projects-swiper .swiper-button-next {
    right: 0;
  }

  .direction-content .body-text {
    font-size: 14px !important;
  }
}

.direction-projects-swiper .swiper-button-prev:hover,
.direction-projects-swiper .swiper-button-next:hover {
  border-color: var(--gold-500);
  background: rgba(203, 162, 92, 0.15);
}

.direction-projects-swiper .swiper-pagination-bullets {
  bottom: 0;
}

.direction-projects-swiper .swiper-pagination-bullet {
  background: rgba(203, 162, 92, 0.4);
  opacity: 1;
}

.direction-projects-swiper .swiper-pagination-bullet-active {
  background: var(--gold-500);
}

/* When there are fewer than 3 slides, center the group without changing card width */
.direction-projects-swiper--few .swiper-wrapper {
  justify-content: center;
}

/* ---------------------------------------------
   Direction Events Swiper (same as Projects)
--------------------------------------------- */
.direction-events-swiper {
  position: relative;
  padding-top: 3.5rem;
}

.direction-events-swiper .swiper-button-prev,
.direction-events-swiper .swiper-button-next {
  color: var(--gold-500);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(203, 162, 92, 0.6);
  background: radial-gradient(circle at center, rgba(203, 162, 92, 0.08), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
}

.direction-events-swiper .swiper-button-prev::after,
.direction-events-swiper .swiper-button-next::after {
  font-size: 18px;
}

@media (min-width: 992px) {
  .direction-events-swiper .swiper-button-prev {
    left: -48px;
  }
  .direction-events-swiper .swiper-button-next {
    right: -48px;
  }
}

@media (max-width: 991.98px) {
  .direction-events-swiper .swiper-button-prev {
    left: 0;
  }
  .direction-events-swiper .swiper-button-next {
    right: 0;
  }
}

.direction-events-swiper .swiper-button-prev:hover,
.direction-events-swiper .swiper-button-next:hover {
  border-color: var(--gold-500);
  background: rgba(203, 162, 92, 0.15);
}

.direction-events-swiper .swiper-pagination-bullets {
  bottom: 0;
}

.direction-events-swiper .swiper-pagination-bullet {
  background: rgba(203, 162, 92, 0.4);
  opacity: 1;
}

.direction-events-swiper .swiper-pagination-bullet-active {
  background: var(--gold-500);
}

/* When there are fewer than 3 slides, center the group without changing card width */
.direction-events-swiper--few .swiper-wrapper {
  justify-content: center;
}

@media (max-width: 767.98px) {
  .direction-events-swiper .project-image {
    height: 250px;
  }
}

/* ---------------------------------------------
   Direction Join CTA
--------------------------------------------- */
.direction-join {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.direction-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.direction-join__content { 
  position: relative; 
  z-index: 1; 
}

.direction-join__description {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.direction-join__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.direction-join .btn-ghost {
  background: #D9D9D980;
  color: #fff;
  border-color: #D9D9D980;
  font-size: 16px;
  padding: 10px 15px 5px 15px;
  margin-top: 0;
  line-height: unset;
}

.direction-join .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #D9D9D980;
  transform: translateY(0px);
}

.direction-join .btn-primary {
  background: #D9D9D980;
  color: #fff;
  border: 2px solid #D9D9D980;
  font-size: 16px;
  padding: 10px 15px 5px 15px;
  margin-top: 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  line-height: unset;
  letter-spacing: 0.16em;
}

.direction-join .btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #D9D9D980;
}

/* ---------------------------------------------
   Direction Media Grid (Publications)
--------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.media-card {
  background: var(--neutral-bg);
  border: 1px solid var(--neutral-divider);
  border-radius: 8px;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.media-content {
  padding: 16px;
}


