/* ==========================================================================
   SpinaFX Investors Page
   ========================================================================== */

/* ===== HERO BANNER ===== */
.spinafx-hero-banner {
  --banner-aspect-ratio: 416 / 325;

  position: relative;
  aspect-ratio: var(--banner-aspect-ratio);
  max-height: 376px;
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 30px;

  @media screen and (max-width: 1099px) {
    aspect-ratio: unset;
    max-height: none;
    min-height: 370px;
  }

  @media screen and (max-width: 475px) {
    min-height: 325px;
  }

  @media screen and (min-width: 1100px) {
    --banner-aspect-ratio: 1440 / 376;
  }
}

.spinafx-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.spinafx-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide mobile bg on desktop */
.spinafx-hero-bg.mobile {
  display: none;
}

.spinafx-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--spinafx-overlay-dark);
  pointer-events: none;
  display: none;
}

/* ===== HERO TITLE ===== */
.spinafx-hero-title-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 114px;
  @media screen and (min-width: 500px){
    margin-top: 142px;
  }
}

.spinafx-hero-title {
  font-family: var(--spinafx-font-heading);
  font-size: var(--spinafx-text-6xl);
  font-weight: 400;
  color: var(--spinafx-color-bg-subtle);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -1.04px;
}

.spinafx-hero-divider {
  width: 182px;
  height: 2px;
  background: var(--spinafx-color-divider);
  margin: 39px auto 0;
}

/* ===== SCROLL DOWN BUTTON ===== */
.spinafx-scroll-down {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--spinafx-transition-base), opacity var(--spinafx-transition-base);
  transition: all ease 0.3s !important;
}

.spinafx-scroll-down:hover {
  transform: translateY(0.5rem);
  opacity: 0.7;
}

.spinafx-scroll-down:focus {
  outline: none;
}

.spinafx-scroll-down-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--spinafx-color-white);
}

.spinafx-scroll-down-icon svg {
  width: 33px;
  height: 52px;
}

/* ===== INVESTORS SECTION ===== */
.spinafx-investors-section {
  position: relative;
  padding: var(--spinafx-space-25) 1rem;
  padding-bottom: 0;
  overflow: hidden;
}

.spinafx-investors-container {
  max-width: 1120px;
  margin: 0 auto;
}

.spinafx-investors-title {
  font-family: var(--spinafx-font-heading);
  font-size: var(--spinafx-text-6xl);
  font-weight: 600;
  color: var(--spinafx-color-brand);
  line-height: 1.2;
  letter-spacing: -1.04px;
  margin-bottom: 16px;
}

.spinafx-investors-description {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-color-text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.spinafx-investors-contact {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-color-text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.spinafx-highlight {
  color: var(--spinafx-color-link);
  font-weight: 600;
}
.spinafx-highlight a{
  color: var(--spinafx-color-link);
  transition: opacity 0.2s ease;
}

.spinafx-highlight a:hover {
  opacity: 0.7;
}


.media-contact-link{
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.media-contact-link span{
    color: var(--spinafx-color-text-muted);
}

.spinafx-highlight-dark {
  color: var(--spinafx-color-text);
  font-weight: 600;
}

.spinafx-link {
  color: var(--spinafx-color-link);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.spinafx-link:hover {
  opacity: 0.7;
}

/* ===== MEDIA SECTION ===== */
.spinafx-media-section {
  position: relative;
  padding: var(--spinafx-space-25) 1rem;
  overflow: hidden;

}


.spinafx-media-title {
  font-family: var(--spinafx-font-heading);
  font-size: var(--spinafx-text-6xl);
  font-weight: 600;
  color: var(--spinafx-color-brand);
  line-height: 1.2;
  letter-spacing: -1.04px;
  margin-bottom: 48px;
}

/* ===== ACCORDION ===== */
.spinafx-accordion-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 1.5rem;
  overflow-anchor: none;
}

.spinafx-accordion-item {
  background: var(--spinafx-color-bg-light);
  border: 1px solid var(--spinafx-color-border-light);
  border-radius: var(--spinafx-radius-lg);
  overflow: hidden;
}

/* ===== POST CARD (first blog post item only) ===== */
.spinafx-accordion-item--post[data-index="0"] {
  border: none;
}

.spinafx-post-card {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px 24px;
  border-radius: 12px;
  overflow: hidden;
}

.spinafx-post-card-image {
  width: 496px;
  height: 279px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
}

.spinafx-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spinafx-post-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spinafx-post-card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--spinafx-color-text-muted);
  font-size: var(--spinafx-text-sm);
  line-height: 1.5;
}

.spinafx-post-card-date svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.spinafx-post-card-title {
  font-family: var(--spinafx-font-heading);
  font-size: var(--spinafx-text-3xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--spinafx-color-text);
  margin: 0;
}

.spinafx-post-card-excerpt {
  font-size: var(--spinafx-text-base);
  line-height: 1.7;
  color: var(--spinafx-color-text-muted);
  margin: 0;
}

.spinafx-post-card-link {
  font-size: var(--spinafx-text-base);
  line-height: 1.5;
  color: var(--spinafx-color-link);
  text-decoration: underline !important;
  text-decoration-color: var(--spinafx-color-link);
  text-underline-offset: 5px;
  transition: opacity 0.2s ease;
}

.spinafx-post-card-link:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .spinafx-post-card {
    flex-direction: column;
    padding: 16px;
    align-items: flex-start;
  }

  .spinafx-post-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 576;
  }

  .spinafx-post-card-title {
    font-size: var(--spinafx-text-lg);
    font-weight: 600;
    line-height: 1.4;
  }
}

.spinafx-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  cursor: pointer;
  transition: background 0.3s;
}

.spinafx-accordion-header:hover,
.spinafx-accordion-header.active {
  background: var(--spinafx-accordion-hover-bg);
}

.spinafx-accordion-title {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-color-text);
  line-height: 1.4;
  flex: 1;
  padding-right: 20px;
}

.spinafx-accordion-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--spinafx-color-icon-dark);
}

.spinafx-accordion-icon svg {
  width: 100%;
  height: 100%;
}
.spinafx-accordion-header .spinafx-accordion-icon.active{
    display: none;
}
.spinafx-accordion-header.active .spinafx-accordion-icon{
    display: none;
}
.spinafx-accordion-header.active .spinafx-accordion-icon.active {
  display: block;
}

.spinafx-accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.35s ease;
  will-change: max-height, opacity;
}

.spinafx-accordion-content.active {
  opacity: 1;
  max-height: none;
}

.spinafx-accordion-content-inner {
  padding: 0 32px 24px;
}

.spinafx-content-box {
  background: var(--spinafx-color-white);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  .eb-gallery-img-wrapper .eb-gallery-link-wrapper{
      aspect-ratio: 1;
  }
  .eb-gallery-img-wrapper.grid{
      grid-template-columns: repeat(4, auto);
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper{
      position: relative;
      overflow: hidden;
      cursor: pointer;
      isolation: isolate;
      transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                  box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                  filter 0.45s ease;
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper::after{
      content: "";
      position: absolute;
      inset: 0;
      background: var(--spinafx-gallery-gradient);
      opacity: 0;
      transition: opacity 0.45s ease;
      pointer-events: none;
      z-index: 1;
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper::before{
      content: "";
      position: absolute;
      inset: 0;
      border: 1px solid transparent;
      transition: border-color 0.45s ease;
      pointer-events: none;
      z-index: 2;
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper:hover{
      transform: translateY(-4px);
      box-shadow: var(--spinafx-shadow-gallery);
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper:hover img{
      transform: scale(1.08);
      filter: saturate(1.08) contrast(1.02);
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper:hover::after{
      opacity: 1;
  }
  .eb-gallery-img-wrapper.grid .eb-gallery-link-wrapper:hover::before{
      border-color: var(--spinafx-gallery-border-hover);
  }
}

.spinafx-content-subtitle {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-color-text);
  line-height: 1.4;
  font-weight: 600;
}

.spinafx-content-image {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1804 / 630;
  background: linear-gradient(135deg, var(--spinafx-color-bg-light), var(--spinafx-color-border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spinafx-content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spinafx-content-section,
.spinafx-content-text-widgets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 .spinafx-content-section ul {
    color: var(--spinafx-color-text-muted);
    margin-top: 1rem;
    margin-bottom: 1rem;
    opacity: 0.7;
 }

.spinafx-content-section strong {
    color: var(--spinafx-color-text);
    font-weight: 600;
}

.spinafx-content-section h3 {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-color-text);
  opacity: 0.7;
  line-height: 1.4;
  font-weight: 600;
  margin: 0;
  margin-top: var(--spinafx-text-sm);
}
.spinafx-content-section .wp-caption .wp-caption-text{
  color: var(--spinafx-color-text-muted);
  line-height: 1.7;
  opacity: 0.7;

}
.spinafx-content-section .wp-caption{
    margin-bottom: 0;
}

.spinafx-content-section p,
.spinafx-content-text-widgets p{
  font-size: var(--spinafx-text-base);
  color: var(--spinafx-color-text-muted);
  line-height: 1.7;
  margin: 0;
  opacity: 0.7;
}
.spinafx-content-section h2,
.spinafx-content-text-widgets h2{
    font-size: var(--spinafx-text-base);
    line-height: 1.4;
    font-weight: 600;
    color: var(--spinafx-color-text);
    opacity: 0.7;
}
.spinafx-content-text-widgets h2{
    margin-bottom: 10px;
}

.spinafx-content-section .spinafx-highlight {
  color: var(--spinafx-color-link);
  font-weight: 600;
}

.spinafx-content-section .spinafx-highlight-dark {
  color: var(--spinafx-color-text);
  font-weight: 600;
}

.spinafx-content-section .spinafx-link {
  text-decoration: underline;
}

.spinafx-content-section .spinafx-quote {
  font-style: italic;
}

.spinafx-content-divider {
  width: 164px;
  height: 4px;
  background: var(--spinafx-color-accent);
}

.spinafx-contact-section h3 {
  font-size: var(--spinafx-text-lg);
  color: var(--spinafx-color-text);
  line-height: 1.4;
  font-weight: 600;
}

.spinafx-contact-section p {
  font-size: var(--spinafx-text-base);
  color: var(--spinafx-color-text-light);
  line-height: 1.7;
  margin: 0;
}

.spinafx-contact-section .spinafx-highlight-dark {
  color: var(--spinafx-color-text);
  font-weight: 600;
}

.spinafx-contact-section .spinafx-highlight {
  color: var(--spinafx-color-link);
  font-weight: 400;
  margin-top: 0;
}

.spinafx-contact-section .spinafx-link {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .spinafx-hero-title-container {
    padding-bottom: var(--spinafx-space-4);
  }

}

@media (max-width: 1024px) {
  .spinafx-investors-hero .spinafx-hero-banner {
    padding: 0;
  }

  .spinafx-hero-title-container {
    padding: 0 var(--spinafx-container-padding-mobile);
    padding-bottom: var(--spinafx-space-4);
  }

  .spinafx-hero-title {
    font-size: var(--spinafx-text-5xl);
    letter-spacing: -1.6px;
    line-height: 1.3;
  }

  .spinafx-scroll-down-icon svg {
    width: 21px;
    height: 34px;
  }

  .spinafx-investors-section {
    padding: 32px var(--spinafx-container-padding-mobile);
    padding-bottom: 0;
  }

  .spinafx-investors-title {
    font-size: var(--spinafx-text-5xl);
    letter-spacing: -1.6px;
    line-height: 1.3;
  }

  .spinafx-investors-description {
    font-size: var(--spinafx-text-lg);
    line-height: 1.4;
  }

  .spinafx-investors-contact {
    font-size: var(--spinafx-text-lg);
    line-height: 1.4;
  }

  .spinafx-media-section {
    margin-top: 16px;
    padding: 16px var(--spinafx-container-padding-mobile) 32px;
  }

  .spinafx-media-title {
    font-size: var(--spinafx-text-5xl);
    letter-spacing: -1.6px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .spinafx-media-container {
    width: 100%;
  }
  .spinafx-accordion-list {
      gap: 1rem;
  }

  .spinafx-accordion-header {
    padding: 12px 16px;
  }


  .spinafx-accordion-icon {
    width: 32px;
    height: 32px;
  }

  .spinafx-accordion-content-inner {
    padding: 0 16px 16px;
  }

  .spinafx-content-box {
    padding: 16px;
    gap: 16px;
  }

  .spinafx-content-subtitle {
    font-size: var(--spinafx-text-base);
  }

  .spinafx-content-section h3 {
    font-size: var(--spinafx-text-base);
  }

  .spinafx-content-section p {
    font-size: var(--spinafx-text-sm);
  }

  .spinafx-content-section ul {
    margin-left: 1rem;
  }

  .spinafx-content-divider {
    width: 100px;
  }
}


@media (max-width: 950px){
    .spinafx-accordion-list{
        padding: 0;
    }
}

@media (max-width: 768px){
  .spinafx-accordion-title {
    font-size: var(--spinafx-text-base);
    line-height: 1.5;
    padding-right: 0;
  }
}

/* ===== MOBILE HERO BACKGROUND AT 500PX ===== */
@media (max-width: 500px) {
  /* Hide desktop background, show mobile */
  .spinafx-hero-bg:not(.mobile) {
    display: none;
  }
  .spinafx-hero-bg.mobile {
    display: block;
  }
}

/* ===== ICON SIZE AT 375PX ===== */
@media (max-width: 450px) {
  .spinafx-hero-divider {
    margin: 12px auto 0;
  }
  .spinafx-scroll-down-icon svg {
    width: 21px;
    height: 34px;
  }
}

