/* ZODDIAK Foundation – Programs, Events & Investment Styles
   - Program hero and body
   - Program CMS detail (gallery, sections)
   - Event cards specifics
   - Instagram embeds
   - Join banner and custom investment items
*/

/* ---------------------------------------------
   Program Hero & Body
--------------------------------------------- */
.program-hero {
  padding: 96px 0 24px;
  background: transparent;
  padding-top: 200px;
}

.program-meta {
  margin-top: 8px;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.program-image { width: 100%; }

.program-image .event-detail-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.program-body .event-description { margin-top: 24px; }
.program-body .body-text { color: var(--gold-500); }
.program-cta .btn { min-width: 140px; }

.program-section {
  padding: 0px 0;
}

@media (max-width: 767.98px) {
  .program-hero { padding-top: 100px; }

  .program-section {
    padding: 0;
  }
}

/* Hide empty sections and their containers */
.program-section:empty,
.program-full-width-wrapper:empty {
  display: none;
  padding: 0 !important;
  margin: 0;
}

.section.program-section:empty,
.section.program-full-width-wrapper:empty {
  padding: 0 !important;
}

.program-section:has(.program-section__text:empty),
.program-section:has(.program-cms-gallery:empty) {
  display: none;
  padding: 0 !important;
  margin: 0;
}

.section.program-section:has(.program-section__text:empty),
.section.program-section:has(.program-cms-gallery:empty) {
  padding: 0 !important;
}

.program-section__text:empty,
.program-cms-gallery:empty {
  display: none;
  padding: 0 !important;
  margin: 0;
}

.program-section .cms-plugin:empty {
  display: none;
}

.program-section:has(> .container > .program-section__text:only-child:empty) {
  display: none;
  padding: 0 !important;
}

.section.program-section:has(> .container > .program-section__text:only-child:empty) {
  padding: 0 !important;
}

.program-section:has(> .program-cms-gallery:only-child:empty) {
  display: none;
  padding: 0 !important;
}

.section.program-section:has(> .program-cms-gallery:only-child:empty) {
  padding: 0 !important;
}

.program-cms-gallery {
  display: block;
}

@media (max-width: 767.98px) {
  .program-cms-gallery {
    position: relative;
    padding-bottom: 0;
  }

  .program-cms-gallery.swiper-initialized .swiper-wrapper {
    display: flex;
  }

  .program-cms-gallery.swiper-initialized > * {
    flex-shrink: 0;
    width: 100%;
  }

  .program-cms-gallery .swiper-pagination {
    bottom: 0;
  }

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

  .program-cms-gallery .swiper-pagination-bullet-active {
    background: var(--gold-500);
  }
}

.program-section__text {
  max-width: 860px;
  margin: 0 auto;
  color: var(--gold-500);
  text-align: center;
  text-transform: uppercase;
  padding: 0;
}

.program-section__text:has(> *:not(:empty)),
.program-section__text:has(> .cms-plugin),
.program-section__text:has(> p),
.program-section__text:has(> div),
.program-section__text:has(> h1),
.program-section__text:has(> h2),
.program-section__text:has(> h3),
.program-section__text:has(> h4),
.program-section__text:has(> h5),
.program-section__text:has(> h6),
.program-section__text:has(> ul),
.program-section__text:has(> ol) {
  padding: 100px 0px;
}

@media (max-width: 767.98px) {
  .program-section__text:has(> *:not(:empty)),
  .program-section__text:has(> .cms-plugin),
  .program-section__text:has(> p),
  .program-section__text:has(> div),
  .program-section__text:has(> h1),
  .program-section__text:has(> h2),
  .program-section__text:has(> h3),
  .program-section__text:has(> h4),
  .program-section__text:has(> h5),
  .program-section__text:has(> h6),
  .program-section__text:has(> ul),
  .program-section__text:has(> ol) {
    padding: 30px 0;
  }
}

/* Program text block, Instagram, and join banner styles moved to cms-plugins.css */

/* ---------------------------------------------
   CMS Program Detail Template
--------------------------------------------- */
.program-cms-hero {
  position: relative;
  background: #050505;
  padding-top: 160px;
}

.program-cms-backlink {
  padding: 16px 0 8px;
}

.program-cms-backlink__link {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding-left: 10px;
}

.program-cms-hero__media {
  overflow: hidden;
}

.program-cms-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

/* Full-width image plugin (styled like hero media) */
/* Full width image styles moved to cms-plugins.css */

.program-cms-hero__content {
  padding: 48px 0 64px;
}

@media (max-width: 767.98px) {
  .program-cms-hero {
    padding-top: 60px;
  }

  .program-cms-hero__content {
    padding: 10px 0;
  }

  .program-cms-hero__media {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .program-cms-hero__media img {
    width: 1440px;
    max-width: 1440px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  /* Full width image mobile styles moved to cms-plugins.css */
}

.program-full-width-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.program-full-width-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* Program Gallery styles moved to program-gallery.css */

.program-cms-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.program-cms-hero__title {
  font-size: clamp(0.8rem, 5vw, 1.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 30px;
}

.program-cms-hero__subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--gold-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.5rem, 5vw, 0.9rem);
}

.program-cms-hero__meta {
  margin-top: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.program-cms-hero__directions {
  margin-top: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-sec);
  margin-bottom: 30px;
  text-align: center;
}

.program-cms-hero__directions a {
  color: var(--text-sec);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.program-cms-hero__directions a:hover {
  color: var(--gold-500);
}

.program-cms-hero__directions .divider {
  color: var(--text-muted);
  text-align: center;
}

/* ---------------------------------------------
   Events / Program Tags
--------------------------------------------- */
.event-subtitle {
  margin-top: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sec);
  font-size: 14px;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.program-tags .badge {
  background: rgba(205,162,74,.12);
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
}

/* ---------------------------------------------
   Join Banner (Program & CMS)
--------------------------------------------- */
.section.join-banner {
  margin-top: 50px;
}

.join-banner { padding: 0 !important; min-height: 70vh !important; }

.join-banner-bg {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/static/images/join_team.563f61f3222d.png") center/cover no-repeat;
  width: 100%;
}

.join-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 75%);
}

.join-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 16px;
  width: 100%;
}

.join-emblem { width: 230px; height: auto; margin-bottom: 24px; }

.join-banner .section-title {
  font-size: 36px;
  margin: 0;
}

.join-banner .section-subtitle {
  font-size: 36px;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  color: var(--gold-500);
  letter-spacing: 0.16em;
}

.join-banner .btn-ghost,
.join-banner .btn--primary {
  background: #D9D9D980;
  color: #000;
  border: 0px solid #000;
  font-size: 16px;
  padding: 10px 30px 5px 30px;
  margin-top: 0;
  line-height: unset;
  min-width: 200px;
}

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

.join-banner.partnership {
  height: auto !important;
  padding: 0;
}

.join-banner.partnership .section-title {
  font-size: 36px;
  margin: 0;
}

.join-banner.partnership .section-subtitle {
  font-size: 36px;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  color: var(--gold-500);
  letter-spacing: 0.16em;
}

/* ---------------------------------------------
   Contacts & Misc
--------------------------------------------- */
.contacts-section,
.contacts-section .body-text {
  color: var(--gold-500);
}

.contact-subtitle {
  color: var(--gold-500);
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ---------------------------------------------
   Investment Platform & Custom Items
--------------------------------------------- */
.custom-item-card {
  background: var(--bg-deep);
  border: 1px solid var(--bg-deep);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.custom-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.custom-item-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--bg-deep);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.custom-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-item-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--neutral-bg-deep);
}

.custom-item-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gold-500);
  font-family: var(--font-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.custom-item-description {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
  letter-spacing: 0.16em;
  font-family: var(--font-primary);
}

.custom-item-content .btn {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gold-500);
  margin-bottom: 20px;
  flex: 0 0 auto;
  background: transparent;
  padding: 10px 15px;
  border-radius: 5px;
  text-transform: uppercase;
  border: 1px solid var(--gold-500);
  width: 100%;
  font-family: var(--font-secondary);
  letter-spacing: 0.16em;
}

.investment-platform .program-hero h1 {
  font-size: 30px
}

.investment-platform {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.investment-platform::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/static/images/heros/investments.7ef9f50f5561.png") center/cover no-repeat;
  background-size: cover;
  z-index: -2;
  pointer-events: none;
}

.investment-platform::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: -1;
  pointer-events: none;
}

.investment-platform main,
.investment-platform footer {
  position: relative;
  z-index: 1;
}

.investment-platform .program-hero .body-text a {
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gold-500);
  margin-bottom: 20px;
  flex: 1;
  background: transparent;
  padding: 10px 15px;
  border-radius: 5px;
  text-transform: uppercase;
  border: 1px solid var(--gold-500);
}

.investment-platform .program-body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  background: transparent;
  padding: 10px 15px;
  border-radius: 5px;
  text-transform: uppercase;
  color: var(--gold-500);
  letter-spacing: 0.16em;
}

.investment-platform .custom-items {
  padding-top: 0;
  background: transparent;
}

.custom-items-swiper {
  position: relative;
  padding-bottom: 3.5rem;
  padding-top: 3.5rem;
  width: 100%;
}

.custom-items-swiper .swiper-wrapper {
  align-items: stretch;
}

.custom-items-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.custom-items-swiper .swiper-pagination-bullets {
  bottom: 0;
}

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

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

.custom-items-swiper--few .swiper-wrapper {
  justify-content: center;
}

/* Project image mobile height */
@media (max-width: 767.98px) {
  .project-image {
    height: 250px;
  }

  .section.join-banner {
    margin-top: 25px;
  }

  .join-banner {
    min-height: 50vh !important;
  }

  .join-banner-bg {
    min-height: 50vh;
  }

  .join-banner-content {
    padding: 32px 16px;
  }

  .join-emblem {
    width: 120px;
    margin-bottom: 16px;
  }

  .join-banner .section-title {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }

  .join-banner .section-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }

  .join-banner .btn-ghost,
  .join-banner .btn--primary {
    font-size: 14px;
    padding: 8px 24px 4px 24px;
    min-width: 160px;
  }

  /* Program Gallery styles moved to program-gallery.css */
}


