/* ==============================================================================
   SMALL TOOLS & HEALTH & SAFETY PAGE STYLES
   Extracted from main.css lines ~9260-10645
   ============================================================================== */

/* ==============================================================================
   SMALL TOOLS PAGE STYLES
   ============================================================================== */

/* Tools Hero */
.tools-hero {
    position: relative;
    background-color: var(--fosseway-navy);
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

.tools-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.9) 0%, rgba(0, 26, 51, 0.75) 100%);
}

.tools-hero .container {
    position: relative;
    z-index: 1;
}

.tools-hero-content {
    max-width: 800px;
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin: 0 auto;
}

.tools-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.tools-hero h1 span {
    color: var(--fosseway-green);
}

.tools-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.tools-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tools-hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.01em;
}

.tools-hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa523 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(105, 190, 40, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tools-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #7acc3a 0%, var(--fosseway-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 190, 40, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tools-hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tools-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* ==============================================================================
   TAILORED TRAINING FEATURE
   ============================================================================== */

.tools-feature {
    padding: var(--spacing-lg) 0;
    background-color: white;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    background: var(--fosseway-navy);
    padding: 2.5rem 3rem;
    border-radius: 16px;
}

.feature-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.feature-stat .stat-icon {
    color: var(--fosseway-green);
    margin-bottom: 0.5rem;
}

.feature-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.feature-divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.feature-info h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.feature-card-centered {
    justify-content: center;
    text-align: center;
}

.feature-card-centered .feature-info {
    max-width: 700px;
}

/* Feature Badge */
.feature-badge {
    display: inline-block;
    background-color: var(--fosseway-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 768px) {
    .tools-feature {
        padding: 1rem 0;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
        margin: 0 1rem;
    }

    .feature-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .feature-info p {
        font-size: 0.95rem;
    }

    .feature-divider {
        width: 60px;
        height: 1px;
        display: none;
    }
}

/* ==============================================================================
   EQUIPMENT CATEGORIES
   ============================================================================== */

.tools-categories {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.tools-categories .categories-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tools-categories .categories-header h2 {
    color: var(--fosseway-navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.tools-categories .categories-header p {
    color: var(--fosseway-grey);
    font-size: 1.1rem;
}

.tool-group {
    margin-bottom: var(--spacing-lg);
}

.tool-group:last-child {
    margin-bottom: 0;
}

.tool-group-header {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.tool-group-badge {
    display: inline-block;
    background-color: var(--fosseway-green);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.tool-group-badge.construction {
    background-color: var(--fosseway-navy);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

.tool-group:last-child .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 750px;
}

/* ==============================================================================
   NEW TOOL CARD DESIGN
   ============================================================================== */

.tool-card-new {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
    position: relative;
}

.tool-card-new:hover {
    border-color: var(--fosseway-green);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.tool-card-new.featured {
    border-color: var(--fosseway-green);
    border-width: 2px;
}

.tool-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--fosseway-green);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}

.tool-card-image {
    height: 200px;
    background: linear-gradient(135deg, #f0f4f0 0%, #e8ece8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tool-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card-content {
    padding: 1.5rem;
    text-align: center;
}

.tool-card-content h3 {
    color: var(--fosseway-navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tool-card-content p {
    color: var(--fosseway-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.tool-card-duration {
    display: inline-block;
    margin-top: 0.75rem;
    background: rgba(0, 34, 68, 0.08);
    color: var(--fosseway-navy);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

/* ==============================================================================
   LEGACY TOOL CARD (backwards compatibility)
   ============================================================================== */

.tool-card {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.tool-card:hover {
    border-color: var(--fosseway-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(105, 190, 40, 0.1);
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    color: var(--fosseway-green);
}

.tool-card h3 {
    color: var(--fosseway-navy);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.tool-card p {
    color: var(--fosseway-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tool Card Featured */
.tool-card.featured {
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, rgba(105, 190, 40, 0.03) 100%);
    border: 2px solid var(--fosseway-green);
    position: relative;
}

.tool-popular-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
}

.tool-duration {
    display: inline-block;
    background-color: rgba(0, 34, 68, 0.08);
    color: var(--fosseway-navy);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
}

/* ==============================================================================
   KEY LEARNING OUTCOMES
   ============================================================================== */

.tools-outcomes {
    padding: var(--spacing-xl) 0;
    background-color: #f8f9fa;
}

/* New Outcomes Section */
.tools-outcomes-new {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.outcomes-header-new {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.outcomes-header-new h2 {
    color: var(--fosseway-navy);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.outcomes-header-new p {
    color: var(--fosseway-dark-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.outcome-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 34, 68, 0.08);
    position: relative;
    overflow: hidden;
}

.outcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fosseway-green), #5aa824);
}

.outcome-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 34, 68, 0.12);
}

.outcome-card h3 {
    color: var(--fosseway-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.outcome-card h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--fosseway-green);
}

.outcome-card p {
    color: var(--fosseway-dark-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Outcomes Header Enhanced */
.outcomes-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.outcomes-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: rgba(105, 190, 40, 0.15);
    border-radius: var(--radius-md);
    color: var(--fosseway-green);
    flex-shrink: 0;
}

.outcomes-header .section-label {
    display: block;
    color: var(--fosseway-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.outcomes-header h2 {
    margin-bottom: 0;
}

.outcomes-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.outcomes-text h2 {
    color: var(--fosseway-navy);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.outcomes-text>p {
    color: var(--fosseway-dark-grey);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.outcomes-list li:last-child {
    border-bottom: none;
}

.outcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(105, 190, 40, 0.15);
    border-radius: 50%;
    color: var(--fosseway-green);
    flex-shrink: 0;
}

.outcomes-list span {
    color: var(--fosseway-dark-grey);
    font-size: 1.05rem;
    line-height: 1.5;
}

.outcomes-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.outcomes-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .outcomes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .outcomes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .tools-outcomes {
        padding: 1.5rem 0 1rem 0;
    }

    .outcomes-header-new {
        margin-bottom: 1.25rem;
    }

    .outcomes-header-new h2 {
        font-size: 1.75rem;
    }

    .outcomes-header-new p {
        font-size: 1rem;
    }

    .outcome-card {
        padding: 1.25rem 1rem 1.5rem;
    }

    .outcome-card h3 {
        font-size: 1rem;
    }

    .outcome-card p {
        font-size: 0.85rem;
    }
}

/* ==============================================================================
   TOOLS GALLERY
   ============================================================================== */

.tools-gallery {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.tools-gallery .gallery-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tools-gallery .gallery-header h2 {
    color: var(--fosseway-navy);
    font-size: 2.25rem;
    margin-bottom: var(--spacing-xs);
}

.tools-gallery .gallery-header p {
    color: var(--fosseway-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tools-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: var(--spacing-sm);
}

.tools-gallery-grid .gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #e5e7eb;
}

.tools-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.tools-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.tools-gallery-grid .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.tools-gallery-grid .gallery-item-wide {
    grid-column: span 2;
}

/* ==============================================================================
   TOOLS CTA
   ============================================================================== */

.tools-cta {
    padding: var(--spacing-xl) 0;
    background-color: #f8f9fa;
}

.tools-cta-content {
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001a33 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 34, 68, 0.25);
    position: relative;
    overflow: hidden;
}

.tools-cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fosseway-green);
}

.tools-cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.tools-cta-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

.tools-cta-content .btn {
    background-color: var(--fosseway-green);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tools-cta-content .btn:hover {
    background-color: white;
    color: var(--fosseway-navy);
}

/* Enhanced CTA */
.tools-cta-enhanced {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001a33 100%);
}

.tools-cta-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 950px;
    margin: 0 auto;
}

.tools-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background-color: rgba(105, 190, 40, 0.15);
    border-radius: 50%;
    color: var(--fosseway-green);
    flex-shrink: 0;
}

.tools-cta-enhanced .tools-cta-content {
    flex: 1;
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: left;
    max-width: none;
    margin: 0;
}

.tools-cta-enhanced .tools-cta-content::before {
    display: none;
}

.tools-cta-enhanced .section-label {
    display: inline-block;
    color: var(--fosseway-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.tools-cta-enhanced h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.tools-cta-enhanced .tools-cta-content>p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.tools-cta-features {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
    flex-wrap: wrap;
}

.tools-cta-features li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.tools-cta-features svg {
    color: var(--fosseway-green);
    flex-shrink: 0;
}

.tools-cta-enhanced .btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ==============================================================================
   SMALL TOOLS PAGE RESPONSIVE
   ============================================================================== */

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .outcomes-content {
        grid-template-columns: 1fr;
    }

    .outcomes-image {
        order: -1;
        max-height: 350px;
    }

    .tools-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .tools-gallery-grid .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .tools-gallery-grid .gallery-item-wide {
        grid-column: span 2;
    }

    .tools-cta-box {
        flex-direction: column;
        text-align: center;
    }

    .tools-cta-enhanced .tools-cta-content {
        text-align: center;
    }

    .tools-cta-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tools-hero h1 {
        font-size: 2rem;
    }

    .tools-hero-subtitle {
        font-size: 1.1rem;
    }

    .feature-box {
        flex-direction: column;
        text-align: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .tools-categories {
        padding: 2rem 0;
    }

    .tools-categories .categories-header {
        margin-bottom: 1.5rem;
    }

    .tools-categories .categories-header h2 {
        font-size: 1.75rem;
        font-weight: 700;
    }

    .outcomes-text h2,
    .tools-gallery .gallery-header h2 {
        font-size: 1.75rem;
    }

    .tools-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 180px);
    }

    .tools-gallery-grid .gallery-item-large,
    .tools-gallery-grid .gallery-item-wide {
        grid-column: span 1;
    }

    .outcomes-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tools-cta-features {
        flex-direction: column;
        align-items: center;
    }

    .tools-cta-enhanced h2 {
        font-size: 1.75rem;
    }
}

/* ==============================================================================
   HEALTH & SAFETY PAGE STYLES
   ============================================================================== */

/* Health & Safety Hero */
.hs-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001a33 100%);
    overflow: hidden;
}

.hs-hero-overlay {
    display: none;
}

.hs-hero .container {
    position: relative;
    z-index: 2;
}

.hs-hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.hs-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hs-hero h1 span {
    color: var(--fosseway-green);
}

.hs-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hs-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hs-hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.hs-hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--fosseway-green), #5aa824);
    border: none;
}

.hs-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5aa824, #4a9020);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 190, 40, 0.4);
}

.hs-hero-actions .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.hs-hero-actions .btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--fosseway-navy);
}

/* ==============================================================================
   HEALTH & SAFETY COURSE DIRECTORY
   ============================================================================== */

.hs-courses {
    padding: 5rem 0;
}

.courses-header {
    text-align: center;
    margin-bottom: 3rem;
}

.courses-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.courses-header p {
    font-size: 1.1rem;
    color: var(--dark-grey);
}

/* Course Categories */
.course-category {
    margin-bottom: 3rem;
}

.course-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.category-header h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    width: 100%;
    text-align: center;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.category-badge.tools {
    background: var(--green);
}

.category-badge.awareness {
    background: #e67e22;
}

/* Course Cards Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.courses-grid.centered {
    grid-template-columns: repeat(2, 1fr);
    max-width: 750px;
    margin: 0 auto;
}

/* ==============================================================================
   HEALTH & SAFETY COURSE CARDS
   ============================================================================== */

.hs-course-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 34, 68, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hs-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 34, 68, 0.12);
}

.hs-course-card.featured {
    border: 2px solid var(--fosseway-green);
}

/* Featured Full-Width Card (single item in category) */
.hs-featured-card {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 34, 68, 0.08), 0 8px 32px rgba(0, 34, 68, 0.04);
    transition: all 0.3s ease;
}

.hs-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 34, 68, 0.12), 0 20px 48px rgba(0, 34, 68, 0.06);
}

.hs-featured-image {
    width: 400px;
    min-height: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001428 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hs-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.hs-featured-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.hs-featured-content h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--fosseway-green);
    border-radius: 2px;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.hs-featured-content p {
    font-size: 1rem;
    color: var(--fosseway-dark-grey);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hs-featured-content p:last-of-type {
    margin-bottom: 1.75rem;
}

.hs-featured-btn {
    align-self: flex-start;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* No-image variant: centred text layout */
.hs-featured-no-image {
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.hs-featured-no-image .hs-featured-content {
    text-align: center;
    align-items: center;
    padding: 3rem 4rem;
}

.hs-featured-no-image .hs-featured-content h4::after {
    margin-left: auto;
    margin-right: auto;
}

.hs-featured-no-image .hs-featured-btn {
    align-self: center;
}

.hs-course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--fosseway-green);
    color: white;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
}

.hs-course-image {
    height: 200px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hs-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hs-course-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.75rem;
}

.hs-course-content p {
    font-size: 0.95rem;
    color: var(--fosseway-dark-grey);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.hs-course-duration {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: #f8f9fa;
    color: var(--fosseway-dark-grey);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    align-self: center;
}

.hs-course-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fosseway-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hs-course-link:hover {
    color: #5aa824;
}

/* Old course card styles for backwards compatibility */
.courses-grid .course-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.courses-grid .course-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 25px rgba(0, 34, 68, 0.1);
    transform: translateY(-3px);
}

.course-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.03) 0%, rgba(105, 190, 40, 0.08) 100%);
}

.course-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 34, 68, 0.05);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: var(--navy);
}

.course-card.featured .course-icon {
    background: rgba(105, 190, 40, 0.15);
    color: var(--green);
}

.course-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.course-card p {
    font-size: 0.95rem;
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-duration {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #f8f9fa;
    color: var(--dark-grey);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

.course-tag {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-link:hover {
    color: var(--green);
}

/* ==============================================================================
   HEALTH & SAFETY RESPONSIVE STYLES
   ============================================================================== */

@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hs-hero {
        min-height: 400px;
    }

    .hs-hero h1 {
        font-size: 2rem;
    }

    .hs-hero-subtitle {
        font-size: 1.1rem;
    }

    .compliance-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .compliance-benefit {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .courses-header h2,
    .delivery-header h2 {
        font-size: 1.75rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hs-featured-card {
        flex-direction: column;
    }

    .hs-featured-image {
        width: 100%;
        min-height: 200px;
    }

    .hs-featured-content {
        padding: 1.75rem;
        text-align: center;
    }

    .hs-featured-content h4 {
        display: block;
    }

    .hs-featured-content h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hs-featured-btn {
        align-self: center;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==============================================================================
   NPORS CTA STYLES (Shared component)
   ============================================================================== */

.npors-cta {
    padding: var(--spacing-lg) 0;
    background-color: white;
}

.npors-cta .container {
    max-width: 900px;
}

.npors-cta-card {
    text-align: center;
    background: var(--fosseway-navy);
    border-radius: 20px;
    padding: 4rem 5rem;
}

.npors-cta-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.npors-cta-card>p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.npors-cta-card .cta-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.npors-cta-card .btn-cta-primary,
.npors-cta-card .btn-cta-secondary {
    padding: 1.1rem 2.5rem;
    min-width: 200px;
    font-size: 1.05rem;
    width: auto;
}

@media (max-width: 768px) {
    .npors-cta-card {
        padding: 2.5rem 1.5rem;
    }

    .npors-cta-card h2 {
        font-size: 1.5rem;
    }

    .npors-cta-card .cta-actions {
        flex-direction: column;
    }

    .npors-cta-card .btn-cta-primary,
    .npors-cta-card .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* ==============================================================================
   NPORS CTA NEW (Small Tools & Health Safety Pages)
   ============================================================================== */

.npors-cta-new {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.npors-cta-new .npors-cta-card {
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001428 100%);
    border-radius: 24px;
    padding: 3.5rem 4rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.npors-cta-new .npors-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(105, 190, 40, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.npors-cta-new .npors-cta-card h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    position: relative;
}

.npors-cta-new .npors-cta-card>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.npors-cta-new .npors-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.npors-cta-new .npors-cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 180px;
    border-radius: 12px;
}

.npors-cta-new .npors-cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--fosseway-green), #5aa824);
    border: none;
    color: white;
}

.npors-cta-new .npors-cta-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #5aa824, #4a9020);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 190, 40, 0.4);
}

.npors-cta-new .npors-cta-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.npors-cta-new .npors-cta-buttons .btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--fosseway-navy);
}

@media (max-width: 768px) {
    .npors-cta-new {
        padding: 0;
        background: none;
    }

    .npors-cta-new .container {
        padding: 0;
        max-width: 100%;
    }

    .npors-cta-new .npors-cta-card {
        padding: 2rem 1.5rem 2.5rem;
        border-radius: 0;
    }

    .npors-cta-new .npors-cta-card h2 {
        font-size: 1.5rem;
    }

    .npors-cta-new .npors-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .npors-cta-new .npors-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}