/* Hero Section */
.comparison-hero {
    background: linear-gradient(rgba(106, 61, 179, 0.88), rgba(74, 48, 120, 0.95)), url('/images/protrain/fit-test-vs-medical-clearance-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0 60px;
    /* Increased padding */
    color: var(--light-color);
    text-align: center;
}

.comparison-hero__title {
    /* H1 */
    font-size: 3rem;
    /* Larger */
    font-weight: 800;
    /* Bolder */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    color: var(--light-color);
    letter-spacing: -1px;
}

.comparison-hero__subtitle {
    /* P */
    font-size: 1.3rem;
    /* Larger */
    max-width: 850px;
    /* Wider */
    margin: 0 auto 2.5rem;
    /* More space */
    font-family: 'Lora', serif;
    opacity: 0.98;
    /* More opaque */
    line-height: 1.6;
}

.comparison-hero__features {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* More space */
    margin-bottom: 3rem;
    /* More space */
    flex-wrap: wrap;
}

.comparison-hero__feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    /* Slightly more visible */
    padding: 10px 20px;
    /* More padding */
    border-radius: 25px;
    /* Pill shape */
    font-size: 0.95rem;
    /* Slightly larger text */
    font-weight: 600;
    /* Bolder */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.comparison-hero__feature-item .material-icons {
    /* Material Icons in features */
    font-size: 1.2em;
    /* Adjust size relative to text */
    vertical-align: middle;
    margin-right: 8px;
    /* More space */
    color: var(--accent-color);
}

.comparison-hero__cta .btn {
    /* Button */
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 8px;
    /* Rounded corners */
    font-weight: 700;
}

.comparison-hero__cta .btn .material-icons {
    font-size: 1.2em;
    vertical-align: middle;
    margin-left: 8px;
}

/* Quick Nav */
.quick-nav {
    background-color: #f8f9fa;
    /* Standard quick nav bg */
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 1020;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quick-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-nav__item a {
    padding: 8px 15px;
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.quick-nav__item a:hover,
.quick-nav__item a.active {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
}

/* General Content Section Styles (for all sections) */
.content-section {
    padding: 70px 0;
    /* Consistent padding top and bottom */
    scroll-margin-top: 140px;
    /* Adjust for sticky nav */
}

.content-section__title {
    /* H2 */
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.3rem;
    /* Slightly larger */
}

.content-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    /* Wider underline */
    height: 4px;
    /* Thicker underline */
    background-color: var(--accent-color);
    border-radius: 2px;
}

.content-section__description {
    text-align: center;
    max-width: 850px;
    /* Wider text block */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    /* Consistent bottom margin for descriptions */
    font-size: 1.15rem;
    /* Slightly larger */
    color: #555;
    line-height: 1.8;
}

/* Intro Section specific styles */
.intro-clarification-boxes {
    margin-top: 3rem;
    /* Space from description */
}

.intro-box {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    text-align: left;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.intro-box__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.intro-box h3 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.intro-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}


/* Two-Column Comparison Section - UNIQUE LAYOUT CORE */
.two-column-comparison-section {
    padding: 60px 0;
    /* Padding around the comparison grid */
    background-color: var(--bg-color);
    /* Light grey background for the whole section */
    position: relative;
}

.comparison-grid {
    border-radius: 15px;
    /* More rounded corners for the whole grid container */
    overflow: hidden;
    /* To clip children with border-radius */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    /* More pronounced overall shadow for depth */
    background-color: var(--light-color);
    /* Fallback if cards don't fill */
}

.comparison-card {
    padding: 40px 45px;
    /* Ample padding within each card */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures cards in a row are equal height */
}

.comparison-card--medical {
    background-color: rgba(106, 61, 179, 0.05);
    /* Lighter purple for Medical Clearance */
}

.comparison-card--fit-test {
    background-color: rgba(0, 123, 255, 0.05);
    /* Light blue/grey for Fit Test */
}

.comparison-card__header {
    text-align: center;
    margin-bottom: 25px;
    /* More space */
    padding-bottom: 25px;
    /* More padding */
    border-bottom: 3px solid var(--accent-color);
    /* Thicker prominent underline for header */
}

.comparison-card__icon {
    font-size: 3.5rem;
    /* Larger icon */
    color: var(--primary-color);
    margin-bottom: 15px;
    /* More space */
    display: block;
    line-height: 1;
}

.comparison-card__title {
    /* H3 in card */
    font-size: 2rem;
    /* More prominent title */
    color: var(--secondary-color);
    font-weight: 700;
    /* Bolder */
    margin-bottom: 0;
}

.comparison-card__content {
    flex-grow: 1;
    /* Pushes CTA to bottom */
    font-size: 1.05rem;
    /* Slightly larger text */
    line-height: 1.7;
    color: var(--text-color);
}

.comparison-card__content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    /* More space */
}

.comparison-card__content li {
    margin-bottom: 12px;
    /* More space */
    padding-left: 30px;
    /* More indentation for icon */
    position: relative;
}

/* Material Icon for list bullets */
.comparison-card__content li .material-icons {
    font-size: 1.2rem;
    /* Size of the checkmark */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 4px;
    /* Adjust vertical alignment */
}

.comparison-card__content strong {
    /* For emphasis within text */
    font-weight: 700;
    /* Bolder */
    color: var(--secondary-color);
}

.comparison-card__content .highlight-text {
    color: var(--primary-color);
    font-weight: bold;
}

.comparison-card__cta {
    margin-top: auto;
    /* Push to bottom */
    padding-top: 25px;
    /* More padding */
    text-align: center;
    border-top: 1px solid var(--border-color);
    /* Subtle separator */
}

.comparison-card__cta .btn {
    font-size: 1rem;
    padding: 12px 25px;
    width: auto;
    /* Allow button to size naturally */
    max-width: 100%;
    font-weight: 600;
}

.comparison-card__cta .btn .material-icons {
    font-size: 1em;
    vertical-align: middle;
    margin-left: 8px;
}

.comparison-card--medical .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.comparison-card--medical .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.comparison-card--fit-test .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.comparison-card--fit-test .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}


/* Why Both Section (Compliance Flow) */
.why-both-section {
    background-color: var(--light-color);
    /* White background for this section */
}

.compliance-flowchart {
    text-align: center;
    margin: 40px 0;
    /* More margin */
}

.compliance-flowchart img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.flowchart-steps {
    display: flex;
    justify-content: center;
    /* Center the flow */
    align-items: flex-start;
    /* Align items to top */
    margin: 3rem 0;
    /* More margin */
    flex-wrap: wrap;
    gap: 20px;
    /* Gap between items */
}

.flowchart-step {
    text-align: center;
    padding: 20px;
    /* More padding */
    flex-basis: 220px;
    /* Base width for each step */
    flex-shrink: 0;
    /* Prevent shrinking too much */
    background-color: var(--bg-color);
    /* Light background for each step */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push icon/text to ends */
    min-height: 180px;
    /* Ensure consistent height */
    border: 1px solid #eee;
}

.flowchart-step__icon {
    font-size: 3rem;
    /* Larger icon */
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.flowchart-step p {
    font-weight: 600;
    /* Bolder text */
    color: var(--secondary-color);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.flowchart-arrow .material-icons {
    font-size: 2.5rem;
    /* Larger arrow */
    color: var(--accent-color);
    padding: 0 15px;
    /* Padding for horizontal spacing */
    align-self: center;
    /* Center arrow vertically */
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .flowchart-steps {
        flex-direction: column;
        align-items: center;
    }

    .flowchart-arrow .material-icons {
        transform: rotate(90deg);
        margin: 10px 0;
        padding: 0;
    }

    .flowchart-step {
        width: 90%;
        max-width: 300px;
        margin-bottom: 15px;
        min-height: auto;
    }
}


/* Risks Section */
.risks-section {
    background-color: var(--bg-color);
    /* Use general background color */
}

.risk-category {
    margin-bottom: 1.5rem;
    padding: 25px;
    /* More padding */
    background-color: var(--light-color);
    border-left: 5px solid var(--accent-color);
    /* More prominent border */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* More shadow */
    height: 100%;
    /* For equal height columns */
}

.risk-category h3 {
    /* Using h3 for consistent structure */
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.risk-category p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section--comparison .accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-section--comparison .accordion-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-section--comparison .accordion-body a {
    font-weight: 600;
    text-decoration: underline;
}

.faq-section--comparison .accordion-body a:hover {
    color: var(--secondary-color);
}


/* Final CTA Section - Completely styled */
.final-cta-section {
    padding: 80px 0;
    /* Generous padding */
    text-align: center;
    color: var(--light-color);
    /* Default text color for dark background CTAs */
    background-color: var(--secondary-color);
    /* Fallback background, overridden by --n95 */
    border-top: 5px solid var(--accent-color);
    /* A strong dividing line */
}

.final-cta-section__title {
    font-size: 2.8rem;
    /* Larger, more impactful */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: var(--light-color);
    /* Ensure high contrast with background */
}

.final-cta-section__text {
    font-size: 1.2rem;
    /* Larger */
    max-width: 750px;
    /* Wider text block */
    margin: 0 auto 3rem;
    /* More space below text */
    opacity: 0.95;
    /* Less transparent */
    line-height: 1.7;
}

.final-cta-section__button .btn {
    font-size: 1.35rem;
    /* Larger button */
    padding: 18px 45px;
    /* More padding */
    border-radius: 12px;
    /* More rounded */
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    /* More pronounced shadow */
}

.final-cta-section__button .btn:hover {
    transform: translateY(-5px);
    /* More pronounced lift */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.final-cta-section__button .btn .material-icons {
    font-size: 1em;
    vertical-align: middle;
    margin-left: 8px;
}

.final-cta-section__secondary-text {
    font-size: 1rem;
    /* Slightly larger */
    margin-top: 2rem;
    /* More space */
    opacity: 0.85;
    /* Less transparent */
}

.final-cta-section__secondary-text a {
    font-weight: 700;
    /* Bolder link */
    text-decoration: underline;
}

/* N95 specific overrides (already partially present, just ensuring they fit the new general styles) */
.final-cta-section--comparison {
    background-color: var(--primary-color);
    /* Main primary color for comparison CTA */
    color: var(--light-color);
    /* Ensure text is light */
}

.final-cta-section--comparison .final-cta-section__title {
    color: var(--light-color);
}

.final-cta-section--comparison .btn-primary {
    background-color: var(--light-color);
    /* White button */
    border-color: var(--light-color);
    color: var(--primary-color);
    /* Primary text on white button */
}

.final-cta-section--comparison .btn-primary:hover {
    background-color: var(--accent-color);
    /* Accent hover */
    border-color: var(--accent-color);
    color: var(--light-color);
    /* White text on accent hover */
}

.final-cta-section--comparison .final-cta-section__secondary-text a {
    color: var(--accent-color);
    /* Keep accent color for link */
}

.final-cta-section--comparison .final-cta-section__secondary-text a:hover {
    color: white;
    text-decoration: none;
    /* Make hover slightly different */
}


@media (max-width: 991.98px) {

    /* Tablet */
    .quick-nav {
        top: 60px;
    }

    .content-section {
        scroll-margin-top: 120px;
        padding: 50px 0;
    }

    .comparison-hero__title {
        font-size: 2.4rem;
    }

    .comparison-hero__subtitle {
        font-size: 1.15rem;
    }

    .comparison-hero__features {
        gap: 15px;
        margin-bottom: 2rem;
    }

    .comparison-hero__feature-item {
        font-size: 0.9rem;
        padding: 8px 18px;
    }

    .comparison-hero__cta .btn {
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    .content-section__title {
        font-size: 2rem;
        padding-bottom: 12px;
    }

    .content-section__title::after {
        width: 60px;
        height: 3px;
    }

    .content-section__description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    /* Forcing columns to stack on tablet and below */
    .comparison-grid .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .comparison-card--medical {
        border-bottom: 1px solid var(--border-color);
        /* Add border when stacked */
        border-right: none;
        /* Remove vertical border when stacked */
        border-radius: 15px 15px 0 0;
        /* Adjust border radius for stacked top card */
    }

    .comparison-card--fit-test {
        border-radius: 0 0 15px 15px;
        /* Adjust border radius for stacked bottom card */
    }

    .comparison-card {
        padding: 30px 25px;
    }

    .comparison-card__icon {
        font-size: 3rem;
    }

    .comparison-card__title {
        font-size: 1.8rem;
    }

    .comparison-card__content {
        font-size: 1rem;
    }

    .comparison-card__content li {
        margin-bottom: 10px;
        padding-left: 25px;
    }

    .comparison-card__content li .material-icons {
        font-size: 1.1rem;
        top: 3px;
    }

    .flowchart-step {
        flex-basis: 45%;
    }

    /* Allow two columns on tablet */
    .flowchart-arrow .material-icons {
        display: none;
    }

    /* Hide arrows if they break layout */
    .flowchart-steps {
        justify-content: space-around;
        gap: 15px;
    }

    .flowchart-step:nth-child(even) {
        margin-left: auto;
    }

    /* For better 2-column layout */

    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-section__title {
        font-size: 2.2rem;
    }

    .final-cta-section__text {
        font-size: 1.1rem;
        max-width: 650px;
        margin-bottom: 2.5rem;
    }

    .final-cta-section__button .btn {
        font-size: 1.2rem;
        padding: 14px 35px;
    }

    .final-cta-section__secondary-text {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {

    /* Mobile */
    .comparison-hero {
        padding: 50px 0 30px;
    }

    .comparison-hero__title {
        font-size: 2rem;
    }

    .comparison-hero__subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .comparison-hero__cta .btn {
        font-size: 1rem;
        padding: 10px 25px;
    }

    .quick-nav__list {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px 0;
    }

    .quick-nav__item a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section__title {
        font-size: 1.8rem;
    }

    .content-section__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .intro-box {
        padding: 20px;
    }

    .intro-box h3 {
        font-size: 1.2rem;
    }

    .intro-box__icon {
        font-size: 2.2rem;
    }

    .comparison-card {
        padding: 25px 20px;
    }

    .comparison-card__icon {
        font-size: 2.8rem;
    }

    .comparison-card__title {
        font-size: 1.6rem;
    }

    .comparison-card__content {
        font-size: 0.95rem;
    }

    .comparison-card__content li {
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .comparison-card__content li .material-icons {
        font-size: 1rem;
        top: 2px;
    }

    .comparison-card__cta {
        padding-top: 20px;
    }

    .comparison-card__cta .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .flowchart-steps {
        flex-direction: column;
        align-items: center;
        margin: 2rem 0;
        gap: 10px;
    }

    .flowchart-step {
        width: 100%;
        max-width: 280px;
        padding: 15px;
    }

    .flowchart-step__icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .flowchart-step p {
        font-size: 1rem;
    }

    .risk-category {
        padding: 20px;
        border-left: 4px solid var(--accent-color);
    }

    .risk-category h3 {
        font-size: 1.3rem;
    }

    .risk-category p {
        font-size: 0.95rem;
    }

    .final-cta-section {
        padding: 40px 0;
    }

    .final-cta-section__title {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }

    .final-cta-section__text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .final-cta-section__button .btn {
        font-size: 1rem;
        padding: 12px 28px;
    }

    .final-cta-section__secondary-text {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}