/* calculatebandscore.css - Unique styles for Calculate Band Score Page */
/* Shared styles are inherited from style.css and takeourieltstest.css */

/* Fix: Ensure step pill text is visible above images */

.hero-steps-section .intro-step-pill {
    position: relative;
    z-index: 2;
}


.hero-steps-section .intro-step-image {
    position: relative;
    z-index: 1;
}


/* Desktop: Reduce negative margin to prevent overlap */
@media (min-width: 1025px) {
    .hero-steps-section .intro-step-pill {
        margin-bottom: -10px;
        /* Override the -40px from base CSS */
    }
}

/* Mobile only: card images adjustments */
@media (max-width: 1024px) {
    .hero-steps-section .intro-step-image {
        margin-bottom: -50px;
        margin-left: -80px;
    }
}

/* Blue decorative underline style - SVG-like curved line */
/* Blue decorative underline style - Animated SVG */
.blue-underline-wrapper {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    isolation: isolate;
    /* Creates stacking context to keep underline visible */
}

.blue-underline-svg {
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 103%;
    height: 10px;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

/* Define variable for SVG stroke width */
.helps-section {
    --cbs-stroke-width: 3.6px;
}

.blue-underline-svg path {
    fill: none;
    stroke: #008cbc;
    stroke-width: var(--cbs-stroke-width);
    /* Use variable */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    /* Arbitrary large number to cover path length */
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

/* Class to trigger animation */
.blue-underline-svg.animate-draw path {
    stroke-dashoffset: 0;
}

/* Blue oval highlight style - Animated SVG */
/* Ensure the paragraph creates a stacking context so z-index: -1 goes behind text but not background */
.helps-text p {
    position: relative;
    z-index: 0;
}

/* Blue oval highlight style - Animated SVG */
.blue-oval-wrapper {
    position: relative;
    display: inline-block;
    /* Removed isolation and z-index so SVG can escape to paragraph context */
}

.blue-oval-svg {
    position: absolute;
    left: 50%;
    top: 53%;
    /* Slightly lower to center visually */
    transform: translate(-50%, -50%);
    width: 102%;
    /* Reduced from 105% */
    height: 110%;
    /* Reduced from 115% */
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.blue-oval-svg path {
    fill: none;
    stroke: #008cbc;
    stroke-width: var(--cbs-stroke-width);
    /* Use variable */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.4s ease-out;
}

.blue-oval-svg.animate-draw path {
    stroke-dashoffset: 0;
}

/* Point 4 unique column layout */
.helps-row.column-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    /* Remove default flex gap to control spacing with margins */
}

.helps-text.full-width {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 10px;
    /* Increase top margin, Small bottom margin */
    text-align: center;
}

.helps-images-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 0;
    /* Tight spacing to text */
}

.timeout-image,
.happy-image {
    max-width: 300px;
    /* Limit image width */
    height: auto;
    object-fit: contain;
}

.scotts-arrow {
    font-size: 60px;
    color: #333;
    /* Dark gray for the arrow */
    font-family: monospace;
    /* Simpler arrow style */
    line-height: 1;
    margin-bottom: 20px;
    /* Slight optical adjustment */
}

/* Mobile adjustments */

@media (max-width: 1025px) {
    .helps-section {
        --cbs-stroke-width: 2px;
        /* Smaller stroke on mobile */
    }
}

@media (max-width: 768px) {
    .helps-images-row {
        gap: 15px;
        /* Smaller gap on mobile */
        flex-direction: row;
        /* Keep row layout even on mobile */
    }

    .timeout-image,
    .happy-image {
        max-width: 45%;
        /* Ensure side-by-side fit */
    }

    .scotts-arrow {
        font-size: 40px;
    }
}