/* Import fonts */
@import url('fonts.css');

/* Import forms and cards styles */
@import url('forms.css');

/* ========================================
   SITE-WIDE BACKGROUND VIDEO
   ======================================== */

/* Container for the video background - fixed behind everything */
.site-bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-image: url('/pages/home/images/live-instructor-led-training.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video elements - dual layer for smooth crossfade */
.site-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.site-bg-video.visible {
    opacity: 1;
}

.site-bg-video.video-layer-top {
    z-index: 1;
}

.site-bg-video.video-layer-bottom {
    z-index: 0;
}

/* Overlay to fade/tint the video */
.site-bg-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.75) 0%, rgba(245, 245, 245, 0.65) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Accessibility - respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .site-bg-video {
        display: none;
    }
}

/* Ensure video elements don't affect flex layout - they're fixed position */
.site-bg-video-container,
.site-bg-video-overlay {
    position: fixed !important;
}

/* Basic styles for the page loading system */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Oswald', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Main layout adjustments for components */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#content {
    flex: 1;
}

/* Content area - Always account for fixed header */
#content {
    padding: 2rem;
    padding-top: 75px; /* Account for fixed header height (60px padding + 15px extra) */
}

/* Home page - no side/bottom padding, normal top padding */
body.home-page #content {
    padding: 0;
}

/* Page not found page - no padding (full screen display) */
body.page-not-found-page #content {
    padding: 0;
    padding-top: 60px; /* Only account for fixed header */
}

/* Global button styles - Dark to Light Pattern */
button, 
.btn, 
[class*="-btn"], 
[class*="-button"], 
a[class*="-button"],
.hero-button,
input[type="submit"],
input[type="button"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: #3a8abe !important; /* Default: Darker color */
    color: white !important;
    padding: 1rem 2rem !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Oswald', Arial, sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    transition: background-color 0.3s ease !important; /* Only animate background color */
    box-shadow: none !important; /* No shadows */
    cursor: pointer !important;
    transform: none !important;
    opacity: 1 !important; /* No opacity changes */
}

button:hover, 
.btn:hover, 
[class*="-btn"]:hover, 
[class*="-button"]:hover, 
a[class*="-button"]:hover,
.hero-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #64b5f6 !important; /* Hover: Lighter color */
    color: white !important;
    box-shadow: none !important; /* No shadows */
    transform: none !important; /* No movement */
    opacity: 1 !important; /* No opacity changes */
}

/* ========================================
   GLOBAL CARD STYLES
   ======================================== */

/* Base card styles shared across all card types */
.card-base {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.12);
    position: relative;
}

/* Material Cards - Used on legal pages */
.material-card {
    background: rgba(254, 251, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.material-card.full-width {
    width: 100%;
}

.material-card.version-history-card {
    margin-top: 20px;
}

/* Material card title sections with gradient backgrounds */
.material-title-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 32px 40px;
    color: white;
}

/* Title content layout */
.title-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.title-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Material card page titles */
.material-page-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Version History Title */
.version-history-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Last updated text */
.last-updated {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-top: 8px;
}

/* Content area for material cards */
.material-card .content-area {
    padding: 40px;
    text-align: left;
    background: #ffffff;
}

/* Solution Cards - Used on home page */
.solution-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15), 0px 2px 6px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.12);
}

/* Responsive adjustments for material cards */
@media (max-width: 768px) {
    .material-title-section {
        padding: 24px 20px;
    }
    
    .material-card .content-area {
        padding: 24px 20px;
    }
    
    .title-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .material-page-title {
        font-size: 2rem;
    }
    
    .version-history-title {
        font-size: 1.5rem;
    }
}

.hidden {
	display: none !important;
}