/* Hero PaperWise Section Styles - Bootstrap Grid with Bottom-Left Positioning */
.section-hero-paperwise {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 73vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 0px !important;
}

.section-hero-paperwise .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0px 0px 40px 40px;
    overflow: hidden;
}

/* YouTube Video Background */
.section-hero-paperwise .hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.section-hero-paperwise .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130vw;
    height: 130vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

/* Video fallback image (shown while video loads or if it fails) */
.section-hero-paperwise .hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}
.hero-cta .btn-primary-paperwise{
	padding: 16px 26px;
}
.hero-cta .cta-right-btn{
    color: white;
    border-color: white;
}
.hero-cta .cta-right-btn:hover{
    background-color: var(--paperwise-accent);
    color: var(--paperwise-dark-green);
    border-color: var(--paperwise-accent);
}
.cta-left-btn{
    margin-right: 6px;
}
/* When video is present, disable background-image on hero-background */
.section-hero-paperwise .hero-background.has-video {
    background-image: none !important;
}

.section-hero-paperwise .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 53%);
    z-index: 1;
}

.section-hero-paperwise .container-fluid {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    margin: 0 auto;
}

.section-hero-paperwise .hero-content {
	padding-bottom: 40px;
    max-width: 558px;
}

.section-hero-paperwise .hero-title {
    font-family: 'Impact', sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.2197265625;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paperwise-off-white);
    margin: 0 0 29px 0;
    text-align: left;
    width: 77%;
}

.section-hero-paperwise .hero-title-highlight {
    color: var(--paperwise-accent);
    display: block;
    width: 100%;
}

.section-hero-paperwise .hero-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5714285714285714;
    letter-spacing: 0.028571429;
    color: var(--paperwise-off-white);
    margin: 0 0 29px 0;
    text-align: left;
	width: 60%;
}

.section-hero-paperwise .hero-cta {
    position: relative;
}

/* Hero CTA uses global button styles */

/* Responsive Design */
@media (max-width: 1200px) {
    .section-hero-paperwise {
        height: 62.5vw;
        min-height: 450px;
        max-height: 750px;
    }

    /* Bottom padding now handled via ACF and utility classes */

    .section-hero-paperwise .hero-title {
        font-size: clamp(28px, 3vw, 36px);
    }

    .section-hero-paperwise .hero-description {
        font-size: clamp(13px, 1.17vw, 14px);
    }

    /* Global button styles handle responsive sizing */
}

@media (max-width: 768px) {
    .section-hero-paperwise {
        height: 70vh;
        min-height: 400px;
        margin-left: 0 !important;
    }

    .section-hero-paperwise .hero-content {
        max-width: 100%;
    }

    .section-hero-paperwise .hero-title {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: left;
    }

    .section-hero-paperwise .hero-description {
        font-size: 14px;
        margin-bottom: 25px;
        text-align: left;
    }

    /* Global button styles handle responsive sizing */
}

@media (max-width: 480px) {
    .section-hero-paperwise {
        height: 50vh;
        min-height: 350px;
    }

    .section-hero-paperwise .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .section-hero-paperwise .hero-description {
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    /* Global button styles handle responsive sizing */
}

/* Video Responsive Adjustments */
@media (max-width: 768px) {
    .section-hero-paperwise .hero-video {
        /* Ensure video covers on mobile even with aspect ratio changes */
        width: 177.78vh; /* 16:9 aspect ratio */
        height: 56.25vw; /* 16:9 aspect ratio */
    }
}

/* Video on mobile: ensure proper coverage */
@media (max-width: 480px) {
    .section-hero-paperwise .hero-video {
        width: 300%;
        height: 100%;
        min-height: 100%;
    }
}

/* ============================================
   Text Color Variants
   ============================================ */

/* Light text (default - for dark backgrounds) */
.section-hero-paperwise.text-color-light .hero-title {
    color: var(--paperwise-off-white);
}

.section-hero-paperwise.text-color-light .hero-title-highlight {
    color: var(--paperwise-accent);
}

.section-hero-paperwise.text-color-light .hero-description {
    color: var(--paperwise-off-white);
}

/* Dark text (for light backgrounds) */
.section-hero-paperwise.text-color-dark .hero-title {
    color: var(--paperwise-dark-green);
}

.section-hero-paperwise.text-color-dark .hero-title-highlight {
    color: var(--paperwise-accent);
}

.section-hero-paperwise.text-color-dark .hero-description {
    color: var(--paperwise-dark-green);
}