/* WorldStrides Main Landing Page Styles */

/* ==========================================================================
   Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background-color: #f5f7fa !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important; /* Ensure vertical scrolling is enabled */
    height: auto !important; /* Allow natural height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   Header Styles (Basic - detailed styles in header.css)
   ========================================================================== */
/* Removed conflicting header styles - see header.css for header component styles */

/* ==========================================================================
   Main Container
   ========================================================================== */
/* Page wrapper - Full height layout for sticky footer */
.page-wrapper {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important; /* Always use min-height for sticky footer */
    width: 100% !important;
}

.main-container {
    display: flex !important;
    gap: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    flex: 1 0 auto !important; /* Reverted to flex: 1 to enable sticky footer */
}

/* Left Navigation - Bootstrap 4 Compatible */
.left-navigation {
    width: 230px !important;
    flex-shrink: 0 !important;
    background: #2B519C !important;
    border-radius: 0 !important;
    padding: 0 !important; /* Remove all padding - prevents spacing issues in tablet mode */
    box-shadow: 2px 0 8px rgba(43, 81, 156, 0.15) !important;
    height: calc(100vh - 60px) !important; /* Adjusted to match actual header height */
    position: fixed !important;
    left: 0 !important;
    top: 60px !important; /* Reduced from 70px to 60px to eliminate gap */
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    z-index: 100 !important;
    margin: 0 !important;
}

/* Hide scrollbar but allow scrolling if needed */
.left-navigation::-webkit-scrollbar {
    display: none !important;
}

.left-navigation {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 
 * Defense-in-depth: Hide left navigation on login pages
 * 
 * PRIMARY DEFENSE: Conditional rendering (@if shouldShowLeftNav in ClicLayout.cshtml, line 143)
 *   - The <aside class="left-navigation"> element is NOT rendered in the DOM at all on login pages
 *   - This is the definitive solution that prevents the element from existing
 * 
 * SECONDARY DEFENSE (this CSS rule):
 *   - Provides backup protection in rare edge cases:
 *     * Output caching issues where cached markup contains the nav
 *     * Third-party components or custom renderings that might inject left nav
 *     * Browser caching of older HTML
 *   - Acts as a safety net to ensure visual correctness even if primary defense fails
 * 
 * Note: Both 'login-page' and 'no-nav' classes are applied together on login pages (line 131).
 */
body.no-nav .left-navigation {
    display: none !important;
}

/* Adjust main content when no left nav */
body.no-nav .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}


.nav-title {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #8b95a5 !important;
    letter-spacing: 1px !important;
    padding: 0.5rem 1.5rem 0.25rem 1.5rem !important; /* Added top padding for desktop after removing parent padding-top */
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.nav-menu {
    padding: 5px 0 0 0 !important; /* Added 20px top padding for spacing between header and first menu item */
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    /* Removed max-height restriction to allow full height navigation */
}

/* Hide scrollbar for nav menu */
.nav-menu::-webkit-scrollbar {
    display: none !important;
}

.nav-menu {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Bootstrap List Group Overrides for Dark Theme */
.left-navigation .list-group-item,
.left-navigation .list-group-item-action {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important; /* Subtle separator */
    border-radius: 8px !important; /* Slightly more rounded corners for better UI */
    color: #E0E7F0 !important; /* Light white-blue text */
    padding: 8px 14px !important; /* Increased from 4px 12px for better touch targets and visual hierarchy */
    margin: 3px 10px !important; /* Increased from 2px 8px for better spacing */
    border-left: 3px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Smoother easing function */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
    width: calc(100% - 20px) !important; /* Account for margins */
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.left-navigation .list-group-item:last-child {
    border-bottom: none !important;
}

.left-navigation .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.12) !important; /* Increased opacity for better visibility */
    color: #ffffff !important;
    border-left-color: #7FC7FF !important; /* Light blue accent on hover */
    border-left-width: 4px !important; /* Increased from 3px for better visual feedback */
    text-decoration: none !important;
    transform: translateX(3px) !important; /* Slightly more pronounced slide effect */
    box-shadow: 0 2px 6px rgba(127, 199, 255, 0.2) !important; /* Added subtle shadow */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Icon hover effect */
.left-navigation .list-group-item:hover .nav-icon {
    color: #FFFFFF !important; /* Brighten to pure white on hover */
    opacity: 1 !important;
    transform: scale(1.05) !important; /* Slight scale up on hover */
}

.left-navigation .list-group-item.active {
    background-color: rgba(127, 199, 255, 0.40) !important; /* Increased from 0.35 for even better visibility */
    color: #ffffff !important;
    border-left: 5px solid #7FC7FF !important; /* Increased from 4px to 5px for maximum prominence */
    box-shadow: 0 3px 10px rgba(127, 199, 255, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.1) !important; /* Enhanced glow with inner highlight */
    z-index: auto !important;
    font-weight: 600 !important; /* Balanced for emphasis and readability */
}

/* Active menu item icon */
.left-navigation .list-group-item.active .nav-icon {
    color: #FFFFFF !important; /* Pure white for active item */
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(127, 199, 255, 0.6)) !important; /* Stronger glow effect */
}

.left-navigation .list-group-item.active .nav-text {
    color: #ffffff !important; /* Ensure text is white */
    font-weight: 600 !important; /* Balanced for emphasis and readability */
}

.left-navigation .list-group-item:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Left Navigation Icon Styling - Updated for FA6 */
.left-navigation .nav-icon {
    width: 24px !important; /* Increased from 22px */
    min-width: 24px !important;
    max-width: 24px !important;
    height: 19px !important; /* Increased from 17px */
    color: #E0E7F0 !important; /* Light white-blue color matching the image */
    font-size: 19px !important; /* Increased from 17px for better visibility */
    text-align: center !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin-right: 14px !important; /* Increased from 12px gap between icon and text */
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transition: all 0.2s ease-in-out !important; /* Smooth transitions */
    opacity: 0.95 !important;
}

.left-navigation .nav-text {
    flex: 1 1 auto !important;
    font-size: 15px !important; /* Increased from 14px for better readability */
    font-weight: 400 !important;
    line-height: 1.4 !important; /* Increased from 1.37 for better spacing */
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    color: #E0E7F0 !important; /* Matching icon color */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.left-navigation .external-icon {
    font-size: 0.7rem !important;
    color: #8b95a5 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* On Call Section - Bootstrap Card Override */
.on-call-section {
    background: #202C3C !important;
    color: white !important;
    padding: 0 !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
    border-top: 2px solid rgba(255, 255, 255, 0.15) !important;
    width: 100% !important;
}

.on-call-section .card-body {
    padding: 1.5rem !important;
    background: #202C3C !important;
}

.on-call-header {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: #8dd4f0 !important;
}

.on-call-header i {
    font-size: 0.9rem !important;
    color: #8dd4f0 !important;
}

.phone-number {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: white !important;
}

.phone-number a {
    transition: opacity 0.3s ease !important;
}

.phone-number a:hover {
    opacity: 0.9 !important;
}

.support-message {
    font-size: 0.8rem !important;
    opacity: 1 !important; /* Changed from 0.85 to 1 for better visibility */
    color: #b8d4e6 !important;
    line-height: 1.4 !important;
}

/* Main Content */
.main-content {
    flex: 0 1 auto !important; /* Changed from flex: 1 to allow natural height and enable scrolling */
    min-width: 0 !important;
    margin-left: 230px !important;
    /* Offset for fixed left nav */
    margin-top: 60px !important; /* Updated from 85px for tighter spacing with single row header */
    /* Maximum reduction - extremely tight spacing */
    padding: 0 2rem 2rem 2rem !important;
    /* Reduced left padding from 3rem to 2rem for better spacing */
    width: calc(100% - 230px) !important;
    /* Background inherited from body */
    /* Removed min-height to enable proper scrolling */
}

/* Content Grid Layout - Bootstrap 4 Two Column System */
.content-grid {
    margin-bottom: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Top content row - for notification box and course info center */
.top-content-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}


.top-content-row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure notification column doesn't overflow */
.notification-column {
    max-width: 75% !important;
    flex: 0 0 75% !important;
}

.course-info-column {
    max-width: 25% !important;
    flex: 0 0 25% !important;
}

/* Responsive adjustments for top row */
@media (max-width: 991px) {
    .notification-column,
    .course-info-column {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 992px) {
    .top-content-row {
        margin-top: -1rem; /* adjust as needed */
    }
}

@media (min-width: 992px) {
    .notification-column,
    .course-info-column {
        margin-top: -20px;
    }
}
/* Add spacing between cards in each column */
.content-grid-left,
.content-grid-right {
    display: flex !important;
    flex-direction: column !important;
}

/* Use margin for reliable spacing instead of gap */
.content-grid-left > *:not(:last-child),
.content-grid-right > *:not(:last-child) {
    margin-bottom: 2.5rem !important; /* Increased from 2rem to 2.5rem for more space between cards */
}

/* Set default padding for Bootstrap columns */
.content-grid > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Tighten spacing between columns - reduce gap between Our Mission and Spotlight */
.content-grid > .col-lg-9 {
    padding-right: 20px !important; /* Increased from 10px to prevent overlap */
}

/* Spotlight column spacing - removed negative margin to prevent overlap */
.content-grid > .col-lg-3 {
    padding-left: 20px !important; /* Increased from 10px for more spacing */
    padding-right: 15px !important;
    margin-left: 0 !important; /* Removed negative margin to prevent overlap with  cards */
}

/* iPad Pro and larger tablets - reset negative margin to prevent collapse */
@media (min-width: 992px) and (max-width: 1200px) {
    .content-grid > .col-lg-3 {
        margin-left: 0 !important; /* Reset negative margin for tablets */
        padding-left: 15px !important; /* Standard padding for tablets */
    }

    .content-grid > .col-lg-9 {
        padding-right: 15px !important; /* Standard padding for tablets */
    }
}

/* Mobile: Stack columns */
@media (max-width: 991px) {
    .content-grid .col-lg-9,
    .content-grid .col-lg-3 {
        margin-bottom: 2rem;
    }

    .content-grid .col-lg-3:last-child {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Content Cards - Bootstrap 4 Compatible
   ========================================================================== */
.content-card.card {
    background: white !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    z-index: 1 !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}

.content-card.card:hover {
    transform: translateZ(0) scale(1.01) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    z-index: 2 !important;
}

/* Bootstrap Card Header Overrides */
.content-card .card-header {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 0 !important;
    padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    background: transparent !important;
    border-bottom: none !important;
}

/* Icon Wrapper for Card Headers */
.content-card .card-header .icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    background: #e8f0ff !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
}

.content-card .card-header .icon-wrapper i {
    font-size: 1.5rem !important;
    color: #5b7fc7 !important;
}

.content-card .card-header h2 {
    margin: 0 !important;
    color: #1a3a5f !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

/* Bootstrap Card Body Overrides */
.content-card .card-body {
    color: #666 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
    padding: 0 1.5rem 1.5rem 1.5rem !important;
}

.content-card .card-body p {
    margin: 0 0 1rem 0 !important;
}

.content-card .card-body p:last-child {
    margin-bottom: 0 !important;
}

/* Mission Card */
.mission-card {
    width: 100% !important;
    max-width: 100% !important; /* Changed to full width for consistency */
}

.mission-card .card-header .icon-wrapper {
    background: #e8f0ff !important;
}

.mission-card .card-header .icon-wrapper i {
    color: #5b7fc7 !important;
}

/* Values Card */
.values-card {
    width: 100% !important;
    max-width: 100% !important; /* Changed to full width for consistency */
}

.values-card .card-header .icon-wrapper {
    background: #e8f0ff !important;
}

.values-card .card-header .icon-wrapper i {
    color: #00bcd4 !important;
}

.values-list {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-top: 1.5rem !important;
}

.value-badge.badge {
    background: #e8e9f3 !important;
    color: #4a5568 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.value-badge.badge:hover {
    transform: translateY(-1px) !important;
    background: #d9dbe9 !important;
}

/* Brand Positioning Card */
.brand-card {
    width: 100% !important;
    max-width: 100% !important; /* Changed to full width for consistency */
}

.brand-card .card-header .icon-wrapper {
    background: #e8f0ff !important;
}

.brand-card .card-header .icon-wrapper i {
    color: #5b7fc7 !important;
}

/* Spotlight Card */
.spotlight-card {
    background: white !important;
    color: inherit !important;
    width: 100% !important;
}

.spotlight-card .card-header .icon-wrapper {
    background: #e8f0ff !important;
}

.spotlight-card .card-header .icon-wrapper i {
    color: #8b5cf6 !important;
}

/* Spotlight Featured Content Area */
.spotlight-card .featured-content {
    background: #f3f4f6 !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    margin: 1rem 0 !important;
    border-radius: 8px !important;
}

.spotlight-card .featured-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* ON CALL Card - When used in main content area (replaces Course Info Center) */
.oncall-main-card {
    background: #00bcd4 !important;
    color: white !important;
    width: 100% !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important; /* Add spacing below on all screen sizes */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important; /* Match other cards */
}

.oncall-main-card .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 1.5rem 1rem 1.5rem !important;
}

.oncall-main-card .card-header .icon-wrapper {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
}

.oncall-main-card .card-header .icon-wrapper i {
    color: white !important;
    font-size: 1.5rem !important;
}

.oncall-main-card .card-header h2 {
    color: white !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
}

.oncall-main-card .card-body {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    text-align: center !important;
}

.oncall-main-card .phone-number {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
}

.oncall-main-card .phone-number a {
    color: white !important;
    text-decoration: none !important;
}

.oncall-main-card .phone-number a:hover {
    opacity: 0.9 !important;
}

.oncall-main-card .support-message {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
}

/* Notification Box - Bootstrap Alert Component (Desktop) */
.notification-box.alert {
    background: #fff8e1 !important;
    border-left: 4px solid #ffc107 !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.notification-box i {
    color: #f57c00 !important;
    font-size: 1.25rem !important;
    margin-top: 0.125rem !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
}

.notification-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    overflow: hidden !important;
}

.notification-box .alert-heading {
    color: #333 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
}

.notification-text {
    color: #5d4037 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    display: block !important;
}

.notification-text p {
    margin: 0 !important;
    display: inline !important;
}

.notification-text p:last-child {
    margin-bottom: 0 !important;
}

.notification-text a {
    color: #1565c0 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.notification-text a:hover {
    color: #0d47a1 !important;
}

/* ==========================================================================
   User Status Component - Bootstrap 4 Compatible (REMOVED FROM LEFT NAV)
   ========================================================================== */
/* User status styling moved to header.css for header placement */

/* ==========================================================================
   Header User Status Component - Horizontal Layout for Header Top-Right
   ========================================================================== */
/* Navbar Navigation - Reduce spacing to prevent overflow */
.bg-worldstrides .navbar-nav .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.938rem !important;
}

.bg-worldstrides .navbar-nav .nav-item {
    margin-right: 0 !important;
}

/* Header Search Bar - Styled to match screenshot */
.header-search-wrapper {
    max-width: 280px !important; /* Wider for better UX */
    min-width: 200px !important;
    flex-shrink: 0 !important; /* Prevent shrinking */
}

.header-search-wrapper .input-group {
    max-width: 100% !important;
    position: relative !important;
}

.header-search-wrapper .input-group-prepend {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
}

.header-search-wrapper .input-group-text {
    border: none !important;
    padding: 0 0.75rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
}

.header-search-wrapper .form-control {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem !important; /* Extra left padding for icon */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border-radius: 6px !important;
    height: 38px !important;
}

.header-search-wrapper .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.header-search-wrapper .form-control:focus {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1) !important;
}

/* Desktop + Tablet: Show navbar items, hide mobile row (≥ 768px) */
@media (min-width: 768px) {
    /* CRITICAL: Force hide mobile-specific row completely on desktop with maximum specificity */
    .mobile-search-row,
    div.mobile-search-row,
    .container-fluid.mobile-search-row,
    div.container-fluid.mobile-search-row {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* CRITICAL: Force show search bar and user status on tablets and desktop
       Override Bootstrap d-lg-flex (which only shows at 992px+) to also work on tablets (768px+)
       This is a workaround since the HTML template uses d-lg-flex instead of d-md-flex
       Using maximum specificity to override Bootstrap's responsive utilities */
    div.header-search-wrapper.d-none.d-lg-flex,
    .navbar-collapse .header-search-wrapper.d-none.d-lg-flex,
    .header-search-wrapper.d-none.d-lg-flex,
    .header-search-wrapper.d-none.d-md-flex,
    div.header-user-status-wrapper.d-none.d-lg-flex,
    .navbar-collapse .header-user-status-wrapper.d-none.d-lg-flex,
    .header-user-status-wrapper.d-none.d-lg-flex,
    .header-user-status-wrapper.d-none.d-md-flex {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    /* CRITICAL: Ensure mobile classes are hidden with multiple methods */
    .mobile-search,
    .mobile-user-status,
    .header-search-wrapper.mobile-search,
    .header-user-status-wrapper.mobile-user-status {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* CRITICAL: Prevent navbar from wrapping on iPad Mini */
    .bg-worldstrides .navbar {
        flex-wrap: nowrap !important;
    }

    .bg-worldstrides .navbar .container-fluid {
        flex-wrap: nowrap !important;
    }
}

/* Mobile-specific styling - Second row below hamburger (< 768px only) */
@media (max-width: 767px) {
    /* Hide desktop version completely */
    .header-search-wrapper.d-none.d-lg-flex,
    .header-user-status-wrapper.d-none.d-lg-flex {
        display: none !important;

    }

    /* Mobile Search Row - Second row below hamburger */
    .mobile-search-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.5rem 1rem !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }

    .mobile-search-row .header-search-wrapper {
        flex: 1 !important;
        max-width: 65% !important;
        margin-right: 0.75rem !important;
    }

    .mobile-search-row .header-user-status-wrapper {
        flex-shrink: 0 !important;
        max-width: 35% !important;
    }

    .header-search-wrapper.mobile-search .form-control {
        font-size: 0.875rem !important;
        padding: 0.45rem 0.6rem 0.45rem 2.2rem !important;
        height: 38px !important;
    }

    .header-search-wrapper.mobile-search .input-group-text {
        padding: 0 0.6rem !important;
    }

    .header-search-wrapper.mobile-search .input-group-text i {
        font-size: 0.875rem !important;
    }

    .mobile-user-status .header-user-status {
        gap: 0.4rem !important;
        padding: 0.35rem 0.6rem !important;
    }

    .mobile-user-status .user-avatar-circle {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.813rem !important;
    }

    .mobile-user-status .user-name-header {
        font-size: 0.875rem !important;
    }

    .mobile-user-status .logout-link {
        font-size: 0.75rem !important;
    }
}

/* User Status Wrapper - After Search Bar, with proper spacing */
.header-user-status-wrapper {
    display: flex !important;
    align-items: center !important;
    /* Spacing between search and user status */
     /* Spacing from right edge */
    flex-shrink: 0 !important; /* Prevent shrinking */
    max-width: 200px !important;
}

/* Desktop + Tablet: Hide mobile search row (≥ 768px) */
@media (min-width: 768px) {
    .mobile-search-row {
        display: none !important;
    }

    .header-user-status-wrapper.d-lg-none {
        display: none !important;
    }
    .header-user-status-wrapper {
        margin-right: 2rem !important;
    }
        .header-user-status-wrapper.d-none.d-lg-flex {
            display: flex !important;
        }
    }

.header-user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px;
    background: transparent;
    border-radius: 0;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.875rem !important;
}
@media (max-width: 768px) {
    .header-user-status {
        white-space: normal !important; /* allow wrapping */
        flex-shrink: 1 !important; /* allow shrinking */
        min-width: 0; /* critical for flex overflow fix */
    }
}
.header-user-status:hover {
    background: transparent;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    background: #0080ff;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.user-name-header {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.logout-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.logout-link:hover {
    color: white;
    text-decoration: none;
}

.logout-link i {
    font-size: 0.7rem;
}

/* ==========================================================================
   Footer Styles - Updated with Two Rows
   ========================================================================== */
.main-footer {
    background: #1e3a5f !important;
    color: white !important;
    padding: 0 !important;
    margin-top: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
}

/* Offset footer on desktop to match content area */
@media (min-width: 769px) {
    .main-footer {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
    }
}

.footer-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer Links Row */
.footer-links-row {
    background: #173450 !important;
    padding: 1.5rem 2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    /* Ensure row displays */
    min-height: 60px !important;
    /* Prevent collapse */
}

/* Hide footer links row if it's truly empty (no content) */
.footer-links-row:empty {
    display: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    /* Left-aligned per mockup */
    gap: 2rem !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    /* Ensure visibility */
    opacity: 1 !important;
    /* Ensure opacity */
}

/* Hide footer links if empty */
.footer-links:empty {
    display: none !important;
}

.footer-links li {
    margin: 0 !important;
    display: block !important;
    /* Ensure list items display */
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    /* Ensure links display */
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links a:hover {
    color: #00bcd4 !important;
}

/* Footer Copyright Row */
.footer-copyright-row {
    background: #1e3a5f !important;
    padding: 1.25rem 2rem !important;
    text-align: center !important;
}

.footer-copyright-row p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Make footer sticky at bottom - Works on all screen sizes */
.footer-section {
    margin-top: auto !important; /* Push footer to bottom */
    flex-shrink: 0 !important; /* Prevent footer from shrinking */
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
    height: auto !important;
}

/* Footer component styling - Sticky at bottom */
footer[data-footer="clic"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: calc(100% - 230px) !important; /* Account for left nav width */
    margin-left: 230px !important; /* Align with main content */
    position: relative !important;
    flex-shrink: 0 !important; /* Prevent footer from shrinking */
    margin-top: auto !important; /* Stick to bottom */
    clear: both !important;
    overflow: visible !important;
    background: #1e3a5f !important;
    z-index: 50 !important;
}

/* Footer responsive - Full width on mobile/tablet */
@media (max-width: 768px) {
    footer[data-footer="clic"] {
        width: 100% !important; /* Full width on mobile */
        margin-left: 0 !important; /* No left margin on mobile */
    }
}

.footer-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer links row - Ultra Compact - REMOVED (consolidated into copyright row) */

/* Footer copyright row - Ultra Compact - Now contains both links and copyright */
footer[data-footer="clic"] .footer-copyright-row {
    background: #0D2463 !important;
    padding: 12px 40px !important; /* Match login page padding */
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* Footer content container - Flex layout for links + copyright */
footer[data-footer="clic"] .footer-content-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

/* Footer links section - Left side */
footer[data-footer="clic"] .footer-links-section {
    display: flex !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

footer[data-footer="clic"] .footer-links-section a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s ease !important;
}

footer[data-footer="clic"] .footer-links-section a:hover {
    color: #00bcd4 !important;
}

/* Footer copyright section - Right side by default */
footer[data-footer="clic"] .footer-copyright-section {
    text-align: right !important;
}

/* Footer copyright text - Smaller */
footer[data-footer="clic"] .footer-copyright-row p {
    margin: 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.3 !important;
}

/* Center copyright when no links exist */
footer[data-footer="clic"] .footer-content-container.footer-centered {
    justify-content: center !important;
}

footer[data-footer="clic"] .footer-content-container.footer-centered .footer-copyright-section {
    text-align: center !important;
}

/* Legacy link styling - kept for backward compatibility */
footer[data-footer="clic"] a span {
    color: #ffffff !important;
}

/* Mobile Responsive - Footer adjustments */
@media (max-width: 768px) {
    footer[data-footer="clic"] {
        flex-direction: column !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    footer[data-footer="clic"] .footer-copyright-row {
        padding: 10px 24px !important; /* Reduced for mobile */
    }

    footer[data-footer="clic"] .footer-content-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }

    footer[data-footer="clic"] .footer-links-section {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    footer[data-footer="clic"] .footer-copyright-section {
        text-align: center !important;
    }
}

/* Experience Editor footer wrapper */
.experience-editor-footer-wrapper {
    border: 2px dashed #6366f1;
    padding: 15px;
    background: #eef2ff;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.experience-editor-footer-wrapper .field-label {
    font-weight: bold;
    color: #3730a3;
    margin-bottom: 15px;
    font-size: 14px;
}

.experience-editor-footer-wrapper .field-group {
    margin-bottom: 12px;
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c7d2fe;
}

.experience-editor-footer-wrapper label {
    display: block;
    font-weight: 600;
    color: #3730a3;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.experience-editor-footer-wrapper small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}

.experience-editor-footer-wrapper .preview-label {
    font-weight: bold;
    color: #3730a3;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 13px;
}


/* ==========================================================================
   Alert/Notification Box
   ========================================================================== */
.notification-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.notification-box h3 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.notification-box p {
    color: #856404;
    margin: 0;
}

.notification-box a {
    color: #004085;
    font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (768px - 991px) - Show desktop header with left nav, search, and full navigation */
@media (min-width: 768px) and (max-width: 991px) {
    /* CRITICAL: Force show left navigation on tablets with proper layout */
    .left-navigation {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 230px !important;
        position: fixed !important;
        left: 0 !important;
        top: 60px !important;
        height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 100 !important;
        padding: 0 !important; /* Remove ALL padding in tablet mode */
        margin: 0 !important;
    }

    /* Tighten nav-title spacing in tablet mode */
    .left-navigation .nav-title {
        padding: 0.5rem 1rem 0.25rem 1rem !important;
        margin: 0 !important;
    }

    /* Ensure nav-menu fills available space in tablet mode */
    .left-navigation .nav-menu {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Ensure on-call section stays at bottom without white space */
    .left-navigation .on-call-section {
        margin-top: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important; /* Remove bottom padding to eliminate white space */
        flex-shrink: 0 !important;
    }

    /* Reduce on-call section padding in tablet mode for tighter spacing */
    .left-navigation .on-call-section .card-body {
        padding: 1rem 1rem 0.75rem 1rem !important; /* Reduced from 1.5rem for compact tablet view */
    }

    /* Tighten list item spacing in tablet mode */
    .left-navigation .list-group-item {
        margin: 1px 8px !important;
        padding: 4px 12px !important;
    }

    /* Adjust main content for left nav - prevent overlap */
    .main-content {
        margin-left: 230px !important;
        width: calc(100% - 230px) !important;
        padding: 0 2rem 2rem 2rem !important;
    }

    /* Adjust footer for left nav */
    footer[data-footer="clic"] {
        width: calc(100% - 230px) !important;
        margin-left: 230px !important;
    }

    /* Adjust breadcrumb for left nav */
    .breadcrumb-nav {
        margin-left: 230px !important;
        width: calc(100% - 230px) !important;
    }

    /* CRITICAL: Hide ALL mobile header elements on tablets with maximum specificity */
    .mobile-menu-toggle,
    button.mobile-menu-toggle,
    .mobile-header-container,
    div.mobile-header-container,
    .mobile-header-container.d-md-none,
    .mobile-menu-overlay,
    div.mobile-menu-overlay,
    .mobile-header-row-1,
    .hamburger-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* CRITICAL: Force show desktop navbar on tablets */
    .navbar.d-none.d-md-block,
    header.bg-worldstrides,
    nav.navbar.navbar-expand-lg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Show navbar collapse content (navigation links) */
    .navbar-collapse,
    #navbarContent {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure navbar toggler is hidden on tablets */
    .navbar-toggler,
    button.navbar-toggler {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    * {
        box-sizing: border-box !important;
    }

    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important; /* Enable vertical scrolling */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important; /* Allow natural height */
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important; /* Changed from 100vh to auto for mobile to allow natural scrolling */
        height: auto !important; /* Ensure natural height */
    }

    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        display: flex !important;
        flex: 0 1 auto !important; /* Changed from flex: 1 to allow natural height */
    }

    /* Force left navigation to display normally - mobile stacked layout */
    .left-navigation {
        position: static !important; /* Use static instead of relative for guaranteed document flow */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure minimum height to show content */
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 0 !important; /* No margin for mobile - directly below header */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
        z-index: auto !important; /* Reset z-index for normal stacking */
        transform: none !important; /* Prevent any transforms */
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Force aside element to display in mobile */
    aside.left-navigation {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-content {
        position: static !important; /* Ensure static positioning */
        margin-left: 0 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 2rem 3rem 2rem !important; /* 32px left and right - balanced spacing for borders and footer */
        display: block !important;
        clear: both !important; /* Clear any floats */
        min-height: auto !important; /* Remove min-height to allow footer to be visible */
        height: auto !important; /* Natural height based on content */
        flex: none !important; /* Override any flex properties for mobile */
        box-sizing: border-box !important;
    }

    .content-grid {
        margin-bottom: 1.5rem !important;
    }

    /* Reset negative margins and padding for mobile - prevent Spotlight collapse */
    .content-grid > .col-lg-9,
    .content-grid > .col-lg-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important; /* No column padding - prevents cumulative overflow */
        padding-right: 0 !important; /* No column padding - prevents cumulative overflow */
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important; /* Remove bottom margin - cards handle their own spacing */
        box-sizing: border-box !important;
    }

    /* Content grid left and right columns - ensure cards have equal spacing */
    .content-grid-left,
    .content-grid-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important; /* Remove gap - cards handle their own margin-bottom */
    }

    /* Remove individual gap spacing since cards have margin-bottom */
    .content-grid-left > *:not(:last-child),
    .content-grid-right > *:not(:last-child) {
        margin-bottom: 0 !important; /* Cards handle their own spacing */
    }

    /* Top content row - ensure equal spacing */
    .top-content-row {
        margin-bottom: 0 !important; /* Cards handle their own spacing */
    }

    .top-content-row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .notification-column,
    .course-info-column {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 0 !important; /* Cards handle their own spacing */
    }

    .footer-links {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    /* User Status - Force display in mobile with maximum specificity */
    .user-status,
    .left-navigation .user-status,
    aside.left-navigation .user-status {
        padding: 1.5rem 1.5rem 1rem 1.5rem !important; /* Normal padding for mobile */
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #1a2332 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        z-index: 10 !important;
        min-height: auto !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }

    /* Mobile footer - full width, no offset */
    .footer-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important; /* No top margin to ensure it follows content */
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
        display: block !important;
        min-height: auto !important; /* Remove min-height on mobile */
        flex-shrink: 0 !important; /* Don't shrink */
        flex-grow: 0 !important; /* Don't grow */
        flex-basis: auto !important; /* Natural height */
    }

    footer[data-footer="clic"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
        display: block !important;
    }

    footer[data-footer="clic"] .footer-links-row {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.25rem 1rem !important;
        margin: 0 !important;
        display: block !important;
    }

    footer[data-footer="clic"] .footer-copyright-row {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
        display: block !important;
    }

    .user-info {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .user-details {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .user-name {
        color: white !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
    }

    .user-email {
        color: #8b95a5 !important;
        font-size: 0.8rem !important;
        display: block !important;
    }

    .user-avatar {
        width: 40px !important;
        height: 40px !important;
        background: #00bcd4 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
    }

    .logout-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.6rem 1rem !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: #b8c5d6 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
    }

    /* Navigation title - ensure it's on its own line */
    .nav-title {
        display: block !important;
        width: 100% !important;
        padding: 1rem 1.5rem 0.75rem 1.5rem !important;
    }

    /* Navigation menu - ensure it's on its own line below title */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .container {
        padding: 0 !important; /* Remove padding on mobile to prevent overflow */
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure all cards have consistent sizing and spacing in mobile */
    .content-card,
    .content-card.card,
    .mission-card,
    .values-card,
    .brand-card,
    .spotlight-card,
    .oncall-main-card {
        padding: 1.5rem !important; /* Consistent internal padding */
        margin-left: 0 !important; /* Remove side margins for full width */
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important; /* Equal vertical spacing between all cards */
        width: 100% !important; /* Full width */
        max-width: 100% !important;
        min-height: auto !important; /* Let content determine height naturally */
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure card bodies have consistent padding */
    .content-card .card-body,
    .mission-card .card-body,
    .values-card .card-body,
    .brand-card .card-body,
    .spotlight-card .card-body,
    .oncall-main-card .card-body {
        padding: 1.5rem !important;
        flex-grow: 1 !important;
    }

    /* ADP Timesheet Notification Box - Mobile - Complete Fix */
    .notification-box,
    .notification-box.alert {
        /* Box model - match other cards exactly */
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;

        /* Sizing - exact match to other cards */
        padding: 1.5rem !important;
        margin: 1.5rem 0 1.5rem 0 !important; /* Equal spacing above and below */
        width: 100% !important;
        max-width: 100% !important;

        /* Visual styling - match card appearance */
        background: #fff8e1 !important;
        border-radius: 12px !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-left: 4px solid #ffc107 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;

        /* Layout spacing */
        gap: 1rem !important;

        /* Positioning - no vertical offset needed */
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }

    /* Notification icon wrapper - ensure proper sizing and spacing */
    .notification-box i,
    .notification-box .fa,
    .notification-box .fas,
    .notification-box .far {
        /* Reset margins */
        margin: 0 !important;
        padding: 0 !important;

        /* Icon sizing */
        font-size: 1.5rem !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;

        /* Visual */
        color: #f57c00 !important;

        /* Layout */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;

        /* Alignment */
        line-height: 1 !important;
    }

    /* Notification content area */
    .notification-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Notification heading */
    .notification-box .alert-heading {
        color: #333 !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
    }

    /* Notification text */
    .notification-text {
        color: #5d4037 !important;
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .notification-text p {
        margin: 0 0 0.5rem 0 !important;
        line-height: 1.6 !important;
    }

    .notification-text p:last-child {
        margin-bottom: 0 !important;
    }

    .notification-text a {
        color: #1565c0 !important;
        font-weight: 600 !important;
        text-decoration: underline !important;
    }

    .notification-text a:hover {
        color: #0d47a1 !important;
    }

    /* On Call Card - consistent with other cards */
    .oncall-main-card {
        margin-top: 1.5rem !important; /* Add top spacing to prevent overlap with notification box above */
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
    }

    .oncall-main-card .card-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    }

    .oncall-main-card .card-body {
        padding: 0 1.5rem 1.5rem 1.5rem !important;
    }

    .card-header {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        padding: 1.5rem 1.5rem 1rem 1.5rem !important; /* Consistent header padding */
    }

    .card-header h2 {
        font-size: 1.125rem;
    }

    .card-header i {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Ensure icon wrapper has consistent size */
    .card-header .icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }

    .values-list {
        justify-content: flex-start;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .content-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .card-header i {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .card-header h2 {
        font-size: 1.1rem;
    }

    .value-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .main-container {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .main-header,
    .left-navigation,
    .main-footer,
    .search-box,
    .btn-primary {
        display: none;
    }

    .content-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .main-content {
        width: 100%;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s both;
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: #003366;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

body.menu-open {
    overflow: hidden;
}

/* Removed conflicting @media (max-width: 992px) block that was overriding mobile layout */

/* ==========================================================================
   Notification System
   ========================================================================== */
.notification {
    position: fixed;
    top: -100px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    z-index: 2000;
}

.notification.show {
    top: 20px;
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #333;
}

.notification-info {
    border-left: 4px solid #00bcd4;
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-warning {
    border-left: 4px solid #ff9800;
}

.notification-error {
    border-left: 4px solid #f44336;
}

/* ==========================================================================
   Skip to Content Link (Accessibility)
   ========================================================================== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #003366;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.content-card.hovered {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Search Box Enhanced
   ========================================================================== */
.search-box.focused input {
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00bcd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .mobile-menu-toggle,
    .notification,
    .skip-to-content {
        display: none !important;
    }
}

/* ==========================================================================
   Mobile Responsive Overrides - Tablet and Above (769px to 991px)
   ========================================================================== */
/* REMOVED: Conflicting tablet breakpoint that was hiding left navigation.
   Tablet view (768-991px) should use desktop-style layout with left nav visible.
   See tablet breakpoint at lines 1316-1380 for proper tablet layout rules. */

/* Mobile-specific adjustments (< 768px) */
@media (max-width: 767px) {
    /* Adjust footer padding for mobile - balanced padding to prevent text cutoff */
    footer[data-footer="clic"] .footer-copyright-row {
        padding: 10px 24px !important; /* Match above mobile footer padding */
    }

    /* Footer content container - stack vertically on mobile */
    footer[data-footer="clic"] .footer-content-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }

    /* Stack footer links vertically on mobile for better touch targets */
    footer[data-footer="clic"] .footer-links-section {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    footer[data-footer="clic"] .footer-copyright-section {
        text-align: center !important;
    }

    /* Fix On Call Section - Prevent text cutoff on mobile */
    .on-call-section .card-body {
        padding: 1rem 0.75rem !important;
    }

    .on-call-header {
        font-size: 0.65rem !important;
        margin-bottom: 0.5rem !important;
    }

    .phone-number {
        font-size: 1.15rem !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .support-message {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
}

/* ==========================================================================
   Breadcrumb Navigation Styles
   ========================================================================== */
.breadcrumb-nav {
    background: transparent;
    padding: 10px 1rem 10px 1rem; /* Reduced padding for tighter spacing */
    margin: 0;
    margin-left: 230px;
    width: calc(100% - 230px);
    position: relative;
    z-index: 50;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.breadcrumb-nav .breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
}

.breadcrumb-nav .breadcrumb-item {
    color: #2c5f9e;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding-left: 0 !important; /* Override Bootstrap default padding */
}

.breadcrumb-nav .breadcrumb-item a {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #357ABD;
    text-decoration: underline;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #2c5f9e;
    font-weight: 600;
}

.breadcrumb-nav .breadcrumb-item.folder-item {
    color: #2c5f9e;
    opacity: 0.85;
    cursor: default;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: #4a90e2;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    display: inline-block;
    font-size: 0.9rem;
}

/* Tablet Breadcrumb - Full width, no left offset (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .breadcrumb-nav {
        margin-left: 0;
        width: 100%;
        padding: 10px 1rem;
    }
}

/* Mobile Breadcrumb - Full width, no left offset (< 768px) */
@media (max-width: 767px) {
    .breadcrumb-nav {
        margin-left: 0;
        width: 100%;
        padding: 8px 1rem;
    }

    .breadcrumb-nav .breadcrumb-item {
        font-size: 0.85rem;
    }

    .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.35rem;
        padding-left: 0.35rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   CL Resources Page Styles
   ========================================================================== */
.cl-resources-page {
  /*  background-color: #f5f7fa;*/
    min-height: 100vh;
    padding: 0;
    margin-top: -50px; /* Cancel out main-content margin-top for tight spacing with breadcrumb */
}

.cl-resources-page .page-title {
    color: #2c5f9e;
    font-size: 1.90rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.cl-resources-page .page-description {
    /*color: #555;*/
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 40px;
    /* Card-like styling to match resource cards */
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.cl-resources-page .page-description:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cl-resources-page .page-description p {
    margin-bottom: 15px;
}

.cl-resources-page .page-description p:last-child {
    margin-bottom: 0;
}

.cl-resources-page .page-description ul,
.cl-resources-page .page-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cl-resources-page .page-description ul:last-child,
.cl-resources-page .page-description ol:last-child {
    margin-bottom: 0;
}

/* Mobile responsive for page description */
@media (max-width: 768px) {
    .cl-resources-page .page-description {
        padding: 1.25rem 1.5rem;
        font-size: 13px;
        margin-bottom: 30px;
    }
}

/* Resource Cards Container - 2 column grid */
.resource-cards-container {
    margin-top: 20px;
}

/* Individual Resource Card */
.resource-card .card {
    background-color: #ffffff;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.resource-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #4a90e2;
}

.resource-card .card-body {
    padding: 25px;
}

/* Icon Wrapper */
.resource-icon-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    min-height: 80px;
}

.resource-card .resource-icon {
    max-width: 70px;
    height: auto;
    display: block;
}

/* Card Title */
.resource-card .card-title {
    color: #2c5f9e;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    line-height: 1.3;
}

/* Card Description */
.resource-card .card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    margin-left: -10px;
}

/* Resource Link */
.resource-card .resource-link {
    color: #4a90e2;
    font-size: 0.95rem;
    text-decoration: none;
    align-items: stretch;
    margin-left: 190px;
    transition: all 0.3s ease;
}

.resource-card .resource-link:hover {
    color: #2c5f9e;
    text-decoration: none;
    transform: translateX(3px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 6px 0;
    }

    .breadcrumb-nav .breadcrumb-item {
        font-size: 0.85rem;
    }

    .cl-resources-page {
        padding: 20px 0;
    }

    .cl-resources-page .page-title {
        font-size: 1.75rem;
        margin-top: 0;
    }

    .cl-resources-page .page-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .resource-card .card-body {
        padding: 20px;
    }

    .resource-icon-wrapper {
        min-height: 60px;
        margin-bottom: 15px;
    }

    .resource-card .resource-icon {
        max-width: 60px;
    }

    .resource-card .card-title {
        font-size: 1.1rem;
    }

    .resource-card .card-text {
        font-size: 0.9rem;
    }
}

/* ====================================
   Secondary Left Navigation (leftnav2)
   ==================================== */

/* Separator between primary and secondary navigation */
.nav-separator {
    height: 2px;
    /*margin: 8px 0*;/ /* Reduced from 20px to 8px for tighter spacing */
    background: linear-gradient(90deg, rgba(127, 199, 255, 0.3) 0%, rgba(127, 199, 255, 0.8) 50%, rgba(127, 199, 255, 0.3) 100%);
    box-shadow: 0 1px 3px rgba(127, 199, 255, 0.3);
    border-radius: 2px;
}

/* Secondary Navigation Wrapper */
.secondary-nav-wrapper {
    margin-top: 8px; /* Reduced from 20px to 8px for tighter spacing */
    /* padding: 15px;*/
    padding-bottom: 40px;
    background: linear-gradient(135deg, rgba(127, 199, 255, 0.05) 0%, rgba(141, 212, 240, 0.08) 100%);
    border-radius: 8px;
    border: 1px solid rgba(127, 199, 255, 0.2);
}

/* Secondary Navigation Title */
.secondary-nav-wrapper .nav-title {
    color: #4a90e2;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(127, 199, 255, 0.3);
}

/* Secondary Navigation Items */
.secondary-nav-wrapper .list-group-item {
    background-color: rgba(127, 199, 255, 0.05);
    border: 1px solid rgba(127, 199, 255, 0.15);
    color: #2c5f9e;
    padding: 6px 14px; /* Match primary nav padding */
    margin: 1px 8px; /* Match primary nav margins for consistent left alignment */
    border-radius: 6px;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    width: calc(100% - 16px); /* Account for margins like primary nav */
}

.secondary-nav-wrapper .list-group-item:hover {
    background-color: rgba(127, 199, 255, 0.15);
    border-color: rgba(127, 199, 255, 0.4);
    color: #1a4d7a;
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(127, 199, 255, 0.2);
}

.secondary-nav-wrapper .list-group-item.active {
    background: linear-gradient(135deg, #7FC7FF 0%, #8DD4F0 100%);
    border-color: #7FC7FF;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(127, 199, 255, 0.4);
}

.secondary-nav-wrapper .list-group-item.active:hover {
    background: linear-gradient(135deg, #6AB8F5 0%, #7AC4E6 100%);
    transform: translateX(3px);
}

/* Secondary Navigation Icons */
.secondary-nav-wrapper .list-group-item i,
.secondary-nav-wrapper .list-group-item .fa,
.secondary-nav-wrapper .list-group-item .glyphicon {
    margin-right: 8px;
    color: #7FC7FF;
    transition: color 0.25s ease;
}

.secondary-nav-wrapper .list-group-item:hover i,
.secondary-nav-wrapper .list-group-item:hover .fa,
.secondary-nav-wrapper .list-group-item:hover .glyphicon {
    color: #4a90e2;
}

.secondary-nav-wrapper .list-group-item.active i,
.secondary-nav-wrapper .list-group-item.active .fa,
.secondary-nav-wrapper .list-group-item.active .glyphicon {
    color: #ffffff;
}

/* Allow text wrapping for secondary navigation items */
.secondary-nav-wrapper .list-group-item .nav-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
}

/* Align icon with first line of wrapped text */
.secondary-nav-wrapper .list-group-item {
    align-items: flex-start !important;
}

/* Mobile Responsive Adjustments for Secondary Nav */
@media (max-width: 768px) {
    .nav-separator {
        margin: 15px 0;
    }

    .secondary-nav-wrapper {
        padding: 12px;
        margin-top: 15px;
    }

    .secondary-nav-wrapper .nav-title {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .secondary-nav-wrapper .list-group-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Resource Card Styles - "more →" Link Alignment
   ========================================================================== */

/* Ensure the container for description and link uses flexbox */
.resource-card .card-body .col-9,
.resource-card .card-body .col-12 {
    display: flex;
    flex-direction: column;
}

/* Make description take available space and link align to the right */
.resource-card .card-text {
    flex-grow: 1;
}

/* Right-align the "more →" link */
.resource-card .resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
    text-align: right;
    margin-left: auto;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.resource-card .resource-link:hover {
    color: #004080;
    text-decoration: underline;
}

.resource-card .resource-link i {
    font-size: 12px;
}

/* Mobile responsive - ensure right alignment is maintained */
@media (max-width: 767px) {
    .resource-card .resource-link {
        align-self: flex-end;
        margin-left: auto;
    }
}
