/* Hero styles for the construction landing page */
.construction-hero {
    background: linear-gradient(rgba(106, 61, 179, 0.85), rgba(74, 48, 120, 0.92)), url('/images/protrain/construction-respirator-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 70px 0 50px;
    color: var(--light-color);
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.construction-hero__title {
    /* H1 */
    font-size: 2.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
    color: var(--light-color);
}

.construction-hero__subtitle {
    /* P */
    font-size: 1.2rem;
    max-width: 780px;
    margin: 0 auto 2rem;
    font-family: 'Lora', serif;
    opacity: 0.9;
}

.construction-hero__features {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.construction-hero__feature-item {
    /* Badge */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 9px 18px;
    border-radius: 5px;
    /* Slightly angular */
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.construction-hero__feature-item i {
    color: var(--accent-color);
    /* Using accent for icons here */
    margin-right: 7px;
}

.construction-hero__cta .btn {
    /* Button */
    font-size: 1.1rem;
    padding: 12px 30px;
    font-weight: 600;
}

/* Quick navigation bar */
.quick-nav {
    /* Standard quick nav */
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 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;
    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 */
.content-section {
    padding: 50px 0;
    scroll-margin-top: 140px;
}

.content-section__title {
    /* H2 */
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.1rem;
}

.content-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3.5px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.content-section__description {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.content-section__subtitle {
    /* H3 */
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

/* Construction Challenges & Solutions Grid */
.construction-challenges-solutions-grid {
    background-color: var(--bg-color);
    /* Light grey section background */
    padding-top: 50px;
    padding-bottom: 50px;
}

.challenge-solution-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* For equal height cards in a row */
    display: flex;
    flex-direction: column;
    /* Align items vertically */
}

.challenge-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 61, 179, 0.1);
    /* Subtle purple shadow on hover */
}

.challenge-solution-card--challenge {
    border-top: 4px solid #dc3545;
    /* Bootstrap danger red for challenge */
}

.challenge-solution-card--solution {
    border-top: 4px solid #28a745;
    /* Bootstrap success green for solution */
}

.challenge-solution-card__icon-wrapper {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
    /* To allow centering if needed */
    width: 60px;
    height: 60px;
    line-height: 60px;
    /* Vertically center icon */
    border-radius: 50%;
    text-align: center;
    margin-left: auto;
    /* Center if needed */
    margin-right: auto;
    /* Center if needed */
}

.challenge-solution-card--challenge .challenge-solution-card__icon-wrapper {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.challenge-solution-card--solution .challenge-solution-card__icon-wrapper {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.challenge-solution-card__title {
    /* H4 */
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.challenge-solution-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-color);
    flex-grow: 1;
    /* Pushes text to fill available space */
    text-align: center;
    /* Center text within card */
}

.challenge-solution-card__text a {
    font-weight: 500;
    text-decoration: underline;
    color: var(--primary-color);
}

.challenge-solution-card__text a:hover {
    color: var(--accent-color);
}

/* Construction respirators table */
.construction-respirators-table {
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    /* For rounded corners on table */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.construction-respirators-table th {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    padding: 12px 15px;
}

.construction-respirators-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.construction-respirators-table tbody tr:last-child td {
    border-bottom: none;
}

.construction-respirators-table tbody tr:nth-child(even) {
    background-color: rgba(106, 61, 179, 0.03);
    /* Light purple striping */
}

.construction-respirators-table strong {
    color: var(--secondary-color);
}

/* OSHA Standards Section */
.osha-standards-construction {
    background-color: var(--bg-color);
}

.osha-standards-construction ul {
    list-style: none;
    padding-left: 0;
}

.osha-standards-construction li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.5rem;
}

.osha-standards-construction li::before {
    content: "\e157";
    /* Codepoint for the 'link' Material Icon */
    font-family: 'Material Icons';
    /* Tells the browser to use the Material Icons font */
    font-weight: normal;
    /* Usually normal for Material Icons */
    font-style: normal;
    font-size: 18px;
    /* Adjust size as needed */
    line-height: 1;
    /* Helps with vertical alignment */
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* For better rendering */

    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 4px;
    /* Adjust top for vertical alignment with your text */
}

/* FAQ Section for Construction */
.faq-section--construction .accordion-button {
    font-size: 1.05rem;
}

.faq-section--construction .accordion-body {
    font-size: 1rem;
}

.faq-section--construction .accordion-body a {
    font-weight: 500;
    text-decoration: underline;
}

.faq-section--construction .accordion-body a:hover {
    color: var(--secondary-color);
}

/* Final CTA Section for Construction */
.final-cta-section--construction {
    background-color: var(--primary-color);
    /* Main purple for final CTA */
    padding: 60px 0;
    text-align: center;
    color: var(--light-color);
    /* Default text color for this section */
}

.final-cta-section--construction .final-cta-section__title {
    /* H2 */
    color: var(--light-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.final-cta-section--construction .final-cta-section__text {
    /* P, main text */
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    /* Space before the button div */
    opacity: 0.9;
}

.final-cta-section--construction .final-cta-section__button .btn {
    font-size: 1.1rem;
    /* Consistent with hero button */
    padding: 12px 30px;
    /* Consistent with hero button */
}

.final-cta-section--construction .btn-primary {
    /* Specific button styling (colors, hover) */
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.final-cta-section--construction .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.final-cta-section--construction .final-cta-section__secondary-text {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 0;
    /* Relies on mb-3 from the button div for spacing above */
}

.final-cta-section--construction .final-cta-section__secondary-text a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.final-cta-section--construction .final-cta-section__secondary-text a:hover {
    color: var(--light-color);
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 991.98px) {

    /* Tablet */
    .quick-nav {
        top: 60px;
    }

    .content-section {
        scroll-margin-top: 120px;
    }

    .construction-hero__title {
        font-size: 2.2rem;
    }

    .construction-hero__subtitle {
        font-size: 1.1rem;
    }

    .challenge-solution-card {
        padding: 20px;
    }

    .challenge-solution-card__icon-wrapper {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .challenge-solution-card__title {
        font-size: 1.15rem;
    }

    .challenge-solution-card__text {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {

    /* Mobile */
    .construction-hero {
        padding: 50px 0 30px;
    }

    .construction-hero__title {
        font-size: 1.8rem;
    }

    .construction-hero__subtitle {
        font-size: 1rem;
    }

    .construction-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__title {
        font-size: 1.7rem;
    }

    .content-section__description {
        font-size: 1rem;
    }

    .challenge-solution-card {
        margin-bottom: 20px;
    }

    /* Add margin when stacked */
    /* Make table scrollable on mobile */
    .table-responsive-construction {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .construction-respirators-table {
        min-width: 600px;
        /* Ensure table has a minimum width */
    }

    /* Mobile styles for Final CTA Section */
    .final-cta-section--construction {
        padding: 40px 15px;
        /* Add horizontal padding for mobile */
    }

    .final-cta-section--construction .final-cta-section__title {
        font-size: 1.7rem;
        /* Consistent with other H2s like content-section__title on mobile */
    }

    .final-cta-section--construction .final-cta-section__text {
        font-size: 1rem;
        /* Consistent with other body text on mobile */
    }

    .final-cta-section--construction .final-cta-section__button .btn {
        font-size: 1rem;
        /* Consistent with hero button on mobile */
        padding: 10px 25px;
        /* Consistent with hero button on mobile */
    }
}