
/*
  🎯 SAFETY TRAINING PAGE - PREMIUM DARK THEME DESIGN
  
  This section contains the complete dark theme implementation for the Safety 
  Training page, featuring:
  
  ✨ KEY FEATURES:
  - Hexagonal course cards using CSS clip-path for exact brochure match
  - Dark background (#1a1a1a) throughout entire page
  - Green accent colors (#4CAF50) for consistent branding
  - Professional loading animation with safety training logo
  - Responsive design optimized for all screen sizes
  - Complete footer and header dark theme overrides
  
  🔧 TECHNICAL IMPLEMENTATION:
  - Uses body.safety-training-page class for scoped theming
  - CSS clip-path polygon for perfect hexagonal shapes
  - Comprehensive !important overrides for dark backgrounds
  - Gradient effects and hover animations for premium feel
  
  📱 RESPONSIVE BEHAVIOR:
  - Cards scale appropriately on mobile devices
  - Logo sizing adapts to screen width
  - Hover effects work on both desktop and touch devices
*/

/* Safety Training Brochure Page Styles - Exact Brochure Match */
.brochure-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    padding: var(--section-padding-y) 0;
    border-bottom: 3px solid #4CAF50;
    position: relative;
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.brochure-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-12);
    align-items: center;
    text-align: left;
}

.brochure-title {
    font-size: var(--h1-size);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--spacing-6);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

.brochure-subtitle {
    font-size: var(--h3-size);
    font-weight: var(--font-weight-semibold);
    color: #4CAF50;
    margin-bottom: var(--spacing-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brochure-tagline {
    font-size: var(--font-size-base);
    color: #e0e0e0;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-8);
    font-weight: var(--font-weight-normal);
}

.brochure-content {
    flex: 1;
}

.brochure-visual {
    text-align: center;
}

.brochure-cta {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-8);
}

.btn-hero-primary {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    color: white !important;
    padding: var(--spacing-4) var(--spacing-8);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    min-height: 44px;
}

/* Ensure hero buttons always have WHITE text on safety training page */
body.safety-training-page .btn-hero-primary,
body.safety-training-page .brochure-cta .btn-hero-primary,
body.safety-training-page a.btn-hero-primary,
.safety-training-page .btn-hero-primary,
.brochure-cta a.btn-hero-primary,
a.btn-hero-primary,
.btn-hero-primary {
    color: white !important;
    text-shadow: none !important;
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    border: none !important;
    font-weight: 600 !important;
}

/* Force WHITE text with highest specificity possible for all button states */
html body.safety-training-page main section.brochure-hero .brochure-cta a.btn-hero-primary,
html body.safety-training-page main section.brochure-hero .brochure-cta a.btn-hero-primary:visited,
html body.safety-training-page main section.brochure-hero .brochure-cta a.btn-hero-primary:hover,
html body.safety-training-page main section.brochure-hero .brochure-cta a.btn-hero-primary:focus,
html body.safety-training-page main section.brochure-hero .brochure-cta a.btn-hero-primary:active {
    color: white !important;
    font-weight: 600 !important;
}

/* Additional ID-based rule for extra specificity */
#schedule-training-btn,
#schedule-training-btn:visited,
#schedule-training-btn:hover,
#schedule-training-btn:focus,
#schedule-training-btn:active {
    color: white !important;
    font-weight: 600 !important;
}

body.safety-training-page .btn-hero-secondary,
body.safety-training-page .brochure-cta .btn-hero-secondary,
body.safety-training-page a.btn-hero-secondary,
.safety-training-page .btn-hero-secondary,
.brochure-cta a.btn-hero-secondary {
    color: #ffffff !important;
    text-shadow: none !important;
}


.btn-hero-primary:hover {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:focus-visible {
    outline: 3px solid #66BB6A !important;
    outline-offset: 2px !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-hero-secondary {
    background: transparent;
    color: #ffffff !important;
    padding: var(--spacing-4) var(--spacing-8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    min-height: 44px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-hero-secondary:focus-visible {
    outline: 3px solid white !important;
    outline-offset: 2px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Brochure Courses Section */
.brochure-courses {
    padding: var(--spacing-16) 0;
    background: #1a1a1a !important;
    position: relative;
    overflow: hidden;
}

/* Hexagonal background pattern */
.brochure-courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(60deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(-60deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 100px 173px;
    background-position: 0 0, 0 0, 0 0;
    z-index: 0;
}

.brochure-courses > * {
    position: relative;
    z-index: 1;
}

.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-6);
    margin-top: var(--spacing-12);
}

.brochure-card {
    background: #333333;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white !important;
    text-align: left;
    overflow: hidden;
    min-height: 280px;
}

.brochure-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: #404040;
    border-color: rgba(76, 175, 80, 0.6);
}

.course-title {
    font-size: var(--h3-size);
    font-weight: var(--font-weight-semibold);
    color: white !important;
    margin-bottom: var(--spacing-4);
    line-height: var(--line-height-snug);
    border-bottom: 2px solid #4CAF50;
    padding-bottom: var(--spacing-3);
}

.course-description {
    font-size: var(--font-size-base);
    color: #e0e0e0 !important;
    line-height: 1.8;
    margin-bottom: var(--spacing-8);
    flex-grow: 1;
}

.course-offerings {
    margin-top: auto;
}

.course-offerings ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.course-offerings li {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: #e0e0e0;
}

.course-offerings li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: var(--spacing-2);
    font-size: 1.2em;
}

.course-meta {
    display: flex;
    gap: var(--spacing-2);
    margin: var(--spacing-4) 0;
    flex-wrap: wrap;
}

.course-badge {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: white;
    padding: var(--spacing-1) var(--spacing-3);
    background: #4CAF50;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
}

.course-duration {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: white;
    padding: var(--spacing-1) var(--spacing-3);
    background: #666;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
}

.course-max {
    font-size: var(--font-size-xs);
    color: #c0c0c0;
    padding: var(--spacing-1) var(--spacing-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
}

.course-cta {
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-course {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white !important;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    font-size: var(--btn-font-size);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    width: 100%;
    justify-content: center;
    min-height: 44px;
}

.btn-course:hover {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-course:focus-visible {
    color: white !important;
    outline: 3px solid #66BB6A !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(102,187,106,.25) !important;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .brochure-hero {
        min-height: 60vh;
        padding: var(--section-padding-y-sm) 0;
    }
    
    .brochure-header {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-8);
        text-align: center;
    }
    
    .brochure-content {
        order: 2;
    }
    
    .brochure-visual {
        order: 1;
        text-align: center;
    }
    
    .brochure-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-3);
    }
    
    .brochure-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .brochure-card {
        min-height: 280px;
    }
}

/* Removed explicit breakpoints - using minmax(350px, 1fr) auto-fit for responsive behavior */

/* Contact Section */
.contact-section {
    padding: var(--spacing-12) 0;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-top: 3px solid #4CAF50;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-8);
    align-items: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-6);
    text-align: center;
}

.contact-details {
    background: #333333;
    padding: var(--spacing-6);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #4CAF50;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-3);
    border-bottom: 1px solid #4CAF50;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-label {
    font-weight: 600;
    color: white;
    width: 80px;
    flex-shrink: 0;
}

.contact-value {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #4CAF50;
}

.contact-action {
    text-align: center;
}

/* Bottom Schedule Training button - WHITE text (Safety Training page only) */
body.safety-training-page .contact-action .btn-primary,
body.safety-training-page .contact-action .btn-primary:visited,
body.safety-training-page .contact-action .btn-primary:hover,
body.safety-training-page .contact-action .btn-primary:focus,
body.safety-training-page .contact-action .btn-primary:active {
    font-size: 1.2rem;
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: 12px;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
    transition: all 0.3s ease;
}

.contact-action .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Removed grid override - using main minmax(350px, 1fr) for all breakpoints */
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
}

@media (max-width: 768px) {
    .brochure-title {
        font-size: 2.5rem;
    }
    
    .brochure-subtitle {
        font-size: 1.25rem;
    }
    
    .brochure-tagline {
        font-size: 1.1rem;
    }
    
    .brochure-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .brochure-card {
        padding: var(--spacing-8) var(--spacing-6);
        min-height: 240px;
        margin: var(--spacing-3);
    }
    
    .course-title {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    .course-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .brochure-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .brochure-subtitle {
        font-size: 1.1rem;
    }
    
    .brochure-tagline {
        font-size: 1rem;
    }
    
    .brochure-hero {
        padding: var(--spacing-12) 0 var(--spacing-8);
    }
    
    .brochure-courses {
        padding: var(--spacing-12) 0;
    }
    
    .contact-section {
        padding: var(--spacing-8) 0;
    }
    
    .brochure-card {
        padding: var(--spacing-6) var(--spacing-4);
        min-height: 200px;
        margin: var(--spacing-2);
    }
    
    .course-title {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .course-description {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .course-option {
        font-size: 0.75rem;
        padding: var(--spacing-1);
    }
    
    .course-duration {
        font-size: 0.85rem;
        padding: var(--spacing-1) var(--spacing-2);
    }
}

/* ============================================================================
   SAFETY TRAINING PAGE - COMPLETE DARK THEME OVERRIDE
   ============================================================================ */

/* Page-wide dark theme for Safety Training */
body.safety-training-page {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: white !important;
}

/* Safety Training page loader - uses standard sizing with custom background */
body.safety-training-page .page-loader {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}

/* Safety Training logo is taller, scale it down to match visual size of other logos */
body.safety-training-page .loader-logo {
    width: 200px;
}

body.safety-training-page .loader-logo img {
    max-width: 100%;
}

/* Fix loading screen progress text visibility on Safety Training page */
body.safety-training-page .progress-counter {
    color: white !important;
}

/* Responsive sizing for Safety Training logo */
@media (max-width: 768px) {
    body.safety-training-page .loader-logo {
        width: 170px;
    }
}

@media (max-width: 480px) {
    body.safety-training-page .loader-logo {
        width: 150px;
    }
}

/* Ensure dark theme sections override any global styles */
body.safety-training-page .brochure-courses {
    background: #1a1a1a !important;
}

body.safety-training-page .brochure-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%) !important;
}

/* Additional enterprise-grade theming overrides */
body.safety-training-page .brochure-courses {
    background: #1a1a1a !important;
    color: #f8fafc !important;
}

body.safety-training-page .brochure-courses .course-title {
    color: #fff !important;
}

body.safety-training-page .brochure-courses .course-description,
body.safety-training-page .brochure-courses li,
body.safety-training-page .brochure-courses .course-meta,
body.safety-training-page .brochure-courses .course-duration,
body.safety-training-page .brochure-courses .course-max {
    color: #cbd5e1 !important;
}

/* Ensure course cards have proper text contrast */
body.safety-training-page .brochure-card {
    color: #f8fafc !important;
}

body.safety-training-page .brochure-card *:not(.btn-course):not(a.btn-course) {
    color: inherit !important;
}

/* Ensure buttons maintain proper contrast - WHITE text for Book Training buttons */
html body.safety-training-page .btn-course,
html body.safety-training-page .course-cta .btn-course,
html body.safety-training-page .course-cta a.btn-course,
html body.safety-training-page a.btn-course {
    color: #ffffff !important;
    min-height: 44px !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

/* Additional high-specificity rules for all button states */
html body.safety-training-page .course-cta a.btn-course:link,
html body.safety-training-page .course-cta a.btn-course:visited,
html body.safety-training-page .course-cta a.btn-course:hover,
html body.safety-training-page .course-cta a.btn-course:focus,
html body.safety-training-page .course-cta a.btn-course:active {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* Make dropdown arrow visible on Safety Training page dark background */
body.safety-training-page .nav-dropdown-toggle,
body.safety-training-page .dropdown-arrow {
    color: white !important;
}

/* Specifically target the SVG arrow stroke with maximum specificity */
body.safety-training-page .nav-item.nav-dropdown .nav-dropdown-container .nav-dropdown-toggle,
body.safety-training-page .nav-item.nav-dropdown .nav-dropdown-container .nav-dropdown-toggle svg,
body.safety-training-page .nav-item.nav-dropdown .nav-dropdown-container .nav-dropdown-toggle svg.dropdown-arrow,
body.safety-training-page .nav-item.nav-dropdown .nav-dropdown-container .nav-dropdown-toggle svg.dropdown-arrow path {
    stroke: white !important;
    color: white !important;
    fill: none !important;
}

/* All PNG icons on Safety Training page - transparent with drop shadow for visibility on dark background */
body.safety-training-page .course-icon-png,
body.safety-training-page .service-card-icon-png,
body.safety-training-page .service-detail-icon-png,
body.safety-training-page .feature-icon-png,
body.safety-training-page .category-icon-png,
body.safety-training-page img.service-icon,
body.safety-training-page .industry-icon,
body.safety-training-page img[src*="-icon.png"] {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

body.safety-training-page .brochure-courses h2,
body.safety-training-page .courses-title {
    color: #ffffff !important;
    text-align: center;
    margin-bottom: var(--spacing-12);
    font-size: var(--h2-size);
}

/* Ensure ALL text elements are white on safety training page */
body.safety-training-page *,
body.safety-training-page h1,
body.safety-training-page h2,
body.safety-training-page h3,
body.safety-training-page h4,
body.safety-training-page h5,
body.safety-training-page h6,
body.safety-training-page p,
body.safety-training-page span,
body.safety-training-page div,
body.safety-training-page li {
    color: white !important;
}

/* Override all section backgrounds to dark */
body.safety-training-page section,
body.safety-training-page :where(section:nth-child(odd)),
body.safety-training-page :where(section:nth-child(even)),
body.safety-training-page .contact-section {
    background: #1a1a1a !important;
}

/* Header dark theme */
body.safety-training-page .header {
    background: #2a2a2a !important;
    border-bottom: 2px solid #4CAF50;
}

body.safety-training-page .nav-link {
    color: white !important;
}

body.safety-training-page .nav-link:hover,
body.safety-training-page .nav-link.active {
    color: #4CAF50 !important;
}

/* Make dropdown arrow white with dark background to be visible against green Services button */
body.safety-training-page .nav-dropdown-toggle,
body.safety-training-page .nav-dropdown-toggle:hover,
body.safety-training-page .nav-item.nav-dropdown:hover .nav-dropdown-toggle,
body.safety-training-page .nav-item.nav-dropdown .nav-dropdown-toggle {
    color: white !important;
    background: rgba(0,0,0,0.4) !important;
    border-radius: 3px !important;
    padding: 2px !important;
}

/* Footer dark theme */
body.safety-training-page .footer {
    background: #2a2a2a !important;
    color: white;
}

body.safety-training-page .footer .footer-title,
body.safety-training-page .footer .footer-description,
body.safety-training-page .footer .footer-links a,
body.safety-training-page .footer .footer-contact-link,
body.safety-training-page .footer .footer-copyright {
    color: white !important;
}

body.safety-training-page .footer .footer-links a:hover,
body.safety-training-page .footer .footer-contact-link:hover {
    color: #4CAF50 !important;
}

/* Button and Link overrides for green accents - EXCLUDES scroll-to-top button */
body.safety-training-page .btn,
body.safety-training-page .btn-primary,
body.safety-training-page button:not(.scroll-to-top) {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    border: 2px solid #4CAF50 !important;
    color: #ffffff !important;
    padding: var(--spacing-3) var(--spacing-6) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

body.safety-training-page .btn:hover,
body.safety-training-page .btn-primary:hover,
body.safety-training-page button:not(.scroll-to-top):hover {
    background: linear-gradient(135deg, #66BB6A, #4CAF50) !important;
    border-color: #66BB6A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
}

/* All content area links use green accents - buttons excluded and overridden at end of file */
body.safety-training-page .contact-section a,
body.safety-training-page .contact-value,
body.safety-training-page a:not(.btn-course):not(.btn-primary):not(.btn-secondary):not([class*="btn-"]) {
    color: #4CAF50 !important;
    transition: color 0.3s ease;
}

body.safety-training-page .contact-section a:hover,
body.safety-training-page .contact-value:hover,
body.safety-training-page a:not(.btn-course):not(.btn-primary):not(.btn-secondary):not([class*="btn-"]):hover {
    color: #66BB6A !important;
}

/* CRITICAL OVERRIDE: Force white text on ALL Book Training buttons */
html body.safety-training-page .btn-course,
html body.safety-training-page .course-cta .btn-course,
html body.safety-training-page .course-cta a.btn-course,
html body.safety-training-page a.btn-course,
html body.safety-training-page .brochure-card .course-cta a.btn-course,
html body.safety-training-page .brochure-courses .brochure-card a.btn-course,
html body.safety-training-page a.btn-course.btn-course.btn-course {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

html body.safety-training-page .course-cta a.btn-course:link,
html body.safety-training-page .course-cta a.btn-course:visited,
html body.safety-training-page .course-cta a.btn-course:hover,
html body.safety-training-page .course-cta a.btn-course:focus,
html body.safety-training-page .course-cta a.btn-course:active {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

/* Brochure logo styling */
.brochure-logo {
    margin-bottom: var(--spacing-4);
}

.brochure-hero-logo {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    padding: var(--spacing-4);
    object-fit: contain;
}

.brochure-hero-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.3);
    object-fit: cover;
}

@media (max-width: 768px) {
    .brochure-hero-logo {
        max-width: 300px;
    }
    
    .brochure-hero-image {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .brochure-hero-logo {
        max-width: 250px;
    }
    
    .brochure-hero-image {
        max-width: 280px;
    }
}

.hero-grid {
    display: grid;
}

/* ============================================================================
   CRITICAL: Book Training Button Text Color Override
   This MUST be the last rule to override the general link color above
   ============================================================================ */
html body.safety-training-page .brochure-card .course-cta a.btn-course,
html body.safety-training-page .brochure-courses .brochure-card a.btn-course,
html body.safety-training-page a.btn-course.btn-course.btn-course,
html body.safety-training-page .brochure-courses .brochure-grid .brochure-card .course-cta a.btn-course,
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
}

/* Absolute maximum specificity for all button states */
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course:link,
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course:visited,
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course:hover,
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course:focus,
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course:active,
html body.safety-training-page main section.brochure-courses div.brochure-grid article.brochure-card div.course-cta a.btn-course:focus-visible {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

/* ============================================================================
   SAFETY TRAINING SCROLL-TO-TOP BUTTON - COMPLETE SELF-CONTAINED STYLING
   No dependencies on style.css - fully independent component
   ============================================================================ */

/* Base button styling - Transparent with Green Border */
.safety-training-page .scroll-to-top {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

/* Hover state */
.safety-training-page .scroll-to-top:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #66BB6A;
    transform: translateY(0);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

/* Visible state (triggered by JavaScript) */
.safety-training-page .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* SVG Icon - Burnt Orange Up Chevron */
.safety-training-page .scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
}

.safety-training-page .scroll-to-top svg path {
    stroke: #ff6b35;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .safety-training-page .scroll-to-top {
        bottom: 6rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    .safety-training-page .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
