/* Reset */
.blox-ph-body *,
.blox-ph-body *::before,
.blox-ph-body *::after {
    box-sizing: border-box;
}

.blox-ph-body {
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Container - holds text content only */
.blox-ph-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Content */
.blox-ph-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

/* Rich Text */
.blox-ph-content h6 {
    margin: 0;
}

.blox-ph-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.blox-ph-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
    color: #666;
}

/* CTAs */
.blox-ph-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Marquee - full page width, anchored to bottom */
.blox-ph-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

.blox-ph-marquee-mask {
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.blox-ph-marquee-strip {
    display: flex;
    gap: 16px;
    will-change: transform;
}

.blox-ph-marquee-item {
    flex-shrink: 0;
    overflow: hidden;
}

.blox-ph-marquee-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Keyframes */
@keyframes blox-ph-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* Hover pause */
.blox-ph-marquee:hover .blox-ph-marquee-strip {
    animation-play-state: paused;
}

/* No-motion mode (theme setting or per-module toggle) */
.blox-ph-no-motion .blox-ph-marquee-strip {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
}

.blox-ph-no-motion .blox-ph-marquee {
    position: relative;
    height: auto;
}

.blox-ph-no-motion .blox-ph-marquee-mask {
    -webkit-mask-image: none;
    mask-image: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .blox-ph-marquee-strip {
        animation-play-state: paused !important;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .blox-ph-content h1 {
        font-size: 36px;
    }

    .blox-ph-content p {
        font-size: 16px;
        max-width: none;
    }

    .blox-ph-content {
        gap: 16px;
    }

    .blox-ph-ctas {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .blox-ph-content h1 {
        font-size: 28px;
    }

    .blox-ph-content p {
        font-size: 15px;
    }

    .blox-ph-content {
        gap: 12px;
    }

    .blox-ph-ctas {
        gap: 12px;
    }
}

/* Section Dividers */
.blox-ph-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.blox-ph-divider-top {
  bottom: 100%;
}

.blox-ph-divider-bottom {
  top: 100%;
}

.blox-ph-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
}
