@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Roboto+Condensed:wght@400;700&display=swap');
/* Typography Reset */
body, h1, h2, h3, h4, h5, h6, p, a, ul, ol, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.form-row input[type="text"], .form-row input[type="tel"], .form-row textarea, .form-row select {
  outline: none !important;
}

div.nsl-container.nsl-container-block .nsl-container-buttons {
    min-width: 100% !important;
}

body.login {
  background-color: #08334f;
}

/* Body Styles */
body {
    font-family: 'Roboto Condensed', sans-serif !important;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* Optional: Set a light background */
}

.slide-content div {
  border-radius: 8px !important;
}

.slide-text {
  max-width: 400px !important;
}

/*Adding the text selection color */
::selection {
    background-color: #257ab8; /* Gold highlight */
    color: #fff; /* Black text */
}
::-moz-selection {
    background-color: #257ab8;
    color: #fff;
}

/* Header Styles */
h1, h2 {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 500 !important; /* Adjust if needed */
    margin-bottom: 0.5em;
    color: #222; /* Optional: A darker color for headers */
}

h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 400 !important; /* Adjust if needed */
    margin-bottom: 0.5em;
    color: #222; /* Optional: A darker color for headers */
    line-height: 1.3em !important;
}

h1 {
    font-size: 34px !important;
}

h2 {
    font-size: 28px !important;
}

h3 {
    font-size: 24px !important;
}

h4 {
    font-size: 22px !important;
}

h5 {
    font-size: 18px !important;
}

h6 {
    font-size: 16px !important;
}

/* Paragraphs and Text */
p {
    font-size: 16px !important; /* Adjust font size as needed */
    line-height: 1.4em !important;
}

/* Links */
a {
    color: currentColor;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4em !important;
}

a:hover {
    text-decoration: none !important;
}

.teams-video-about a {
    background-color: #fff;
    transition: var(--transition);
    color: #257ab8;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: var(--transition);
}

span {
    line-height: 1.4em !important;
}

/* Lists */
ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    list-style-position: inside;
}

li {
    line-height: 1.5;
}

button, a, button:focus, a:focus, button:focus-visible, a:focus-visible {
    outline: none !important;
}

[type=color], [type=date], [type=datetime-local], [type=datetime], [type=email], [type=month], [type=number], [type=password], [type=search], [type=tel], [type=text], [type=time], [type=url], [type=week], textarea {
    appearance: none !important; /* Remove default browser styling */
    -webkit-appearance: none !important; /* Chrome, Safari */
    -moz-appearance: none !important; /* Firefox */
    -ms-appearance: none !important; /* IE, Edge */
    background-color: #fff !important; /* Light background */
    font-family: 'Roboto Condensed', sans-serif; /* Font */
    font-size: 16px !important; /* Readable font size */
    color: #333 !important; /* Neutral text color */
    width: 100% !important; /* Ensure it fits the container */
    max-width: 100%;
    margin: 0px !important;
    border-radius: 8px !important; /* Rounded corners */
    padding: 12px 14px !important; /* Comfortable padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 1px solid #ccc; /* Subtle border */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[type=color]:hover, [type=date]:hover, [type=datetime-local]:hover, [type=datetime]:hover, [type=email]:hover, [type=month]:hover, [type=number]:hover, [type=password]:hover, [type=search]:hover, [type=tel]:hover, [type=text]:hover, [type=time]:hover, [type=url]:hover, [type=week]:hover, textarea:hover {
    border-color: #257ab8 !important; /* Highlight border on hover */
    background-color: #fafafa !important; /* Slightly darker background */
    box-shadow: rgba(37, 122, 184, 0.2) 0px 0px 0px 3px;
}

[type=color]:focus, [type=date]:focus, [type=datetime-local]:focus, [type=datetime]:focus, [type=email]:focus, [type=month]:focus, [type=number]:focus, [type=password]:focus, [type=search]:focus, [type=tel]:focus, [type=text]:focus, [type=time]:focus, [type=url]:focus, [type=week]:focus, textarea:focus {
    border-color: #257ab8 !important; /* Highlight border on hover */
    background-color: #fafafa !important; /* Slightly darker background */
    box-shadow: rgba(37, 122, 184, 0.2) 0px 0px 0px 3px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #fafafa;
    color: #000;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #fff;
    cursor: pointer;
}

.header-container {
    position: relative;
    overflow-x: hidden;
}

/* Header Styling */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
}

.left-header, .right-header {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.custom-logo-link img {
    height: auto;
    width: auto;
    max-height: 28px;
    border-radius: 4px;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-icon {
    width: 24px;
    height: 24px;
}

.site-logo a {
    align-items: center !important;
    display: flex;
    justify-content: center;
    height: auto;
    width: auto;
    max-height: 34px;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: -330px; /* Start hidden */
    width: 300px;
    height: 100vh;
    padding: 15px;
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 85px; /* Space for header */
}

.sidebar.visible {
    left: 0; /* Show sidebar */
}

/* Sidebar Menu Styling */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}


.sidebar-menu li {
    margin: 0;
    padding: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 5px solid transparent;
    border-radius: 4px;
}

.sidebar-menu a:hover {
    background-color: #fafafa;
    color: #000;
    border-left-color: #adb5bd;
}

.sidebar-menu .current-menu-item > a {
    background-color: #fafafa;
    color: #000;
    border-left-color: #257ab8;
    font-weight: 500;
}


/*Sidebar Fixed Styling*/
/* ========================================================================
   FIXED SIDEBAR STYLING
   Add this to your existing CSS file or replace the sidebar section
   ======================================================================== */

/* Main wrapper for course layout */
.ld-single-course-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap; /* Changed from wrap to nowrap for better sidebar behavior */
    align-items: flex-start; /* Ensures sidebar aligns to top */
  }
  
  /* Sidebar - Fixed positioning */
  .ld-course-sidebar {
    flex: 0 0 320px; /* Fixed width, won't grow or shrink */
    min-width: 320px;
    max-width: 320px;
    position: sticky;
    top: 20px; /* Distance from top of viewport when stuck */
    max-height: calc(100vh - 40px); /* Full viewport height minus top offset */
    overflow-y: auto; /* Enable scrolling inside sidebar */
    overflow-x: hidden;
    
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  .ld-course-sidebar::-webkit-scrollbar {
    display: none;
  }
  
  /* Ensure sidebar content container can scroll */
  .sld-sidebar {
    min-height: 85vh;
    max-height: calc(100vh - 40px);
    overflow: hidden; /* Parent container doesn't scroll, only tabs content */
  }
  
  /* Make tab content scrollable */
  .sld-tab-content {
    max-height: calc(100vh - 140px); /* Account for tabs and padding */
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .sld-tab-content::-webkit-scrollbar {
    display: none;
  }
  
  /* Main content area */
  .ld-course-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
  }
  
  /* ========================================================================
     RESPONSIVE ADJUSTMENTS
     ======================================================================== */
  
  /* Tablet */
  @media (max-width: 1030px) {
    .ld-single-course-wrapper {
      flex-wrap: wrap; /* Allow wrapping on smaller screens */
    }
    
    .ld-course-sidebar {
      position: relative; /* Remove sticky on tablet */
      max-height: none;
      flex: 0 0 100%;
      max-width: 100%;
      order: 2; /* Move sidebar below content */
    }
    
    .sld-sidebar {
      max-height: none;
    }
    
    .sld-tab-content {
      max-height: 600px; /* Fixed height for mobile */
    }
  }
  
  /* Mobile */
  @media (max-width: 768px) {
    .ld-single-course-wrapper {
      flex-direction: column;
    }
    
    .ld-course-sidebar {
      min-width: 100%;
      max-width: 100%;
      order: 1;
    }
  }

/* Bottom sidebar menu */
.sidebar-menu-bottom {
    margin-bottom: 100px;
}

.bottom-icon-container li {
    margin: 0;
    padding: 0;
}

.bottom-icon-container .current-menu-item > a {
    background-color: #fafafa;
    color: #000;
    border-left-color: #257ab8;
    font-weight: 500;
}

.bottom-icon-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-icon-container a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 5px solid transparent;
    border-radius: 4px;
}

.bottom-icon-container a:hover {
    background-color: #fafafa;
    color: #212529;
    border-left-color: #adb5bd;
}

.sidebar-menu img,
.bottom-icon-container img,
.sidebar-menu i,
.bottom-icon-container i,
.sidebar-menu svg,
.bottom-icon-container svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.menu-item-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Fix for when both icon and avatar are present */
.menu-item-avatar + img,
.menu-item-avatar + i,
.menu-item-avatar + svg {
    margin-bottom: 3px;
    display: none;
}

.sidebar-menu img, .bottom-icon-container img {
    margin-bottom: 3px;
}

/* Overlay for closing sidebar on mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 998;
    display: none;
}

.sidebar-overlay.visible {
    display: block;
}

/* Primary Menu in Header */
.primary-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav li {
    margin-left: 1rem;
}

.primary-nav a {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.primary-nav a:hover {
    color: #007bff;
}

.primary-nav .current-menu-item > a {
    color: #007bff;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .primary-menu-container {
        display: none; /* Hide the top menu on mobile */
    }
}

/* Selecting Dropdown */
select {
    appearance: none !important; /* Remove default browser styling */
    -webkit-appearance: none !important; /* Chrome, Safari */
    -moz-appearance: none !important; /* Firefox */
    -ms-appearance: none !important; /* IE, Edge */
    background-color: #fff !important; /* Light background */
    font-family: 'Roboto Condensed', sans-serif; /* Font */
    font-size: 16px !important; /* Readable font size */
    color: #333 !important; /* Neutral text color */
    width: 100% !important; /* Ensure it fits the container */
    cursor: pointer !important; /* Pointer cursor */
    margin: 0 !important;
    border-radius: 8px !important; /* Rounded corners */
    padding: 16px 24px 16px 24px !important; /* Comfortable padding */
    height: auto !important;
    max-width: auto !important;
    width: auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 1px solid #ccc; /* Subtle border */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none !important;
}


/* Remove dropdown arrow for IE and Edge */
select::-ms-expand {
    display: none !important;
}

/* Remove any Foundation-specific styling */
select.foundation-select,
select:not([multiple]) {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    background-image: none !important;
}

/* Styles for dropdown options */
select option {
    background-color: #ffffff !important; /* Light background */
    outline: none !important;
    color: #333 !important; /* Neutral text color */
    font-family: 'Roboto Condensed', sans-serif; /* Consistent font */
    font-size: 1rem !important; /* Readable size */
    padding: 0.5em !important; /* Comfortable spacing */
    border-bottom: 1px solid #fafafa !important; /* Subtle dividers */
    border-radius: 0 !important; /* No radius for consistency inside dropdown */
}

/* Highlight selected option */
select option:checked {
    background-color: #257ab8 !important; /* Highlight selected color */
    color: #fff !important; /* White text for contrast */
}

/* Hover effect for dropdown */
select:hover {
    border-color: #257ab8 !important; /* Highlight border on hover */
    background-color: #fafafa !important; /* Slightly darker background */
    outline: none !important;
}

select:active {
    outline: none !important;
}

/* Hover effect for dropdown options */
select option:hover {
    background-color: #257ab8 !important; /* Highlight hover color */
    color: #ffffff !important; /* White text for contrast */
}

/* Main Content */
.main-content {
    margin-top: 40px; /* Push below header */
    padding: 40px 15px;
    transition: 0.3s ease-in-out;
    background-color: #fafafa;
    min-height: 100vh;
    overflow-x: hidden; overflow-y: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 799px) {
    .main-content {
        margin-top: 75px; /* Push below header */
    }
}


.container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 200px;
}

.ld-container {
    margin: 0 auto;
    width: 100%;
    max-width: 1950px;
    padding-bottom: 200px;
}

@media (max-width: 770px) {
    .ld-custom-theme .ld-course-sidebar {
        order: 1;
    }

    .ld-custom-theme .ld-lesson-content {
        order: 2;
    }

}

@media (max-width: 800px) {

    .ld-custom-theme {
        margin-top: 100px !important;
    }
}

.user-avatar-container a {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 10px 20px;
    font-size: 18px;
}
.user-avatar-container img  {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* User Info Container */
.user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* User Email Styles */
.user-email {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.user-email:before {
    content: "\f0e0"; /* Font Awesome email icon */
    font-family: "FontAwesome";
    margin-right: 8px;
    color: #888;
}

.user-additional-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.view-more-btn {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #eaeaea;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: #e0e0e0;
}

.user-bio {
    margin-top: 10px;
}

.user-bio h4 {
    margin-bottom: 5px;
    font-size: 1em;
}

/* User Role Styles */
.user-role {
    margin: 5px 0;
    font-size: 14px;
    color: #fff;
    background-color: #4285f4;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Role-specific Colors */
.user-role:contains("Administrator") {
    background-color: #ea4335; /* Red for admins */
}

.user-role:contains("Subscriber") {
    background-color: #34a853; /* Green for subscribers */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .user-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
    }
    
    .user-info {
        align-items: center;
    }
}

/*Main Content Settings Page*/
.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Space between grid items */
    margin-top: 20px;
}

.settings-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.settings-container h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #031f3f; /* Primary color */
}

.settings-container p {
    font-size: 16px;
    color: #031f3f;
}


/* Responsive Design */
@media (max-width: 1024px) { /* Tablet */
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) { /* Mobile */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .setting-title {
        display: none;
    }
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Space between grid items */
    margin-top: 20px;
}

.people-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.people-container h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #031f3f; /* Primary color */
}

.people-container p {
    font-size: 16px;
    color: #031f3f;
}


/* Responsive Design */
@media (max-width: 1024px) { /* Tablet */
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) { /* Mobile */
    .people-grid {
        grid-template-columns: 1fr;
    }
}


/*General Settings Information*/
#general-settings-display {
    margin-top: 15px;
    margin-bottom: 25px;
}

.general-settings-edit {
    margin-bottom: 25px;
}

.general-display-group {
    padding: 15px 25px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color:#fff;
}

#general-settings-form {
    margin-top: 15px;
}

/*people-query Information*/
#people-query-display {
    margin-top: 15px;
    margin-bottom: 25px;
}

.people-query-edit {
    margin-bottom: 25px;
}

.people-display-group {
    padding: 15px 25px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color:#fff;
}

#people-query-form {
    margin-top: 15px;
}


.account-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 600px;
    gap: 25px;
}

/* Avatar selection states */
.avatar-option.processing {
    opacity: 0.7;
    position: relative;
}

.avatar-option.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.avatar-option.success {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success message notification */
.update-success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    display: none;
}


/* Enhanced styling for profile and avatar selection */
.profile-image {
    position: relative;
    width: 150px;
    height: 150px;
    padding: 0px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.dash-profile-image {
    position: relative;
    width: 100px;
    height: 100px;
    padding: 0px;
    margin-bottom: 10px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.profile-image:hover {
    transform: scale(1.05);
}

.edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-image:hover .edit-overlay {
    opacity: 1;
}

.edit-icon {
    font-size: 18px;
    margin-bottom: 2px;
    background-color: #fff;
}

.edit-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.edit-event-button {
    background: none;
    border: none;
    padding: 10px; /* Ensures a clickable area */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.edit-text {
    font-size: 14px;
    font-weight: 600;
}

.avatar-option {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.avatar-option.selected {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}



/* 404 Page Styling */
.error-404 {
    text-align: center;
    margin: 0 auto;
    margin-top: 100px;
    min-height: 100vh;
    min-width: 200px;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 0;
}

.error-404 h1 {
    color: #333;
    margin-bottom: 10px;
}

.error-404 p {
    color: #666;
    margin-bottom: 20px;
}

.error-404 a {
    max-width: 200px;
}

/* Container for the search bar */
#custom-search-bar-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Search input field */
#custom-search-input {
    width: 100%;
    min-height: 60px;
    padding: 7px 24px 7px 60px !important;;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
    color: #333;
    font-family: "roboto condensed";
}

#custom-search-input::placeholder {
    color: #333; /* Light gray color */
    font-size: 16px;
    font-family: "roboto condensed";
}

#custom-search-input:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
    outline: none;
}

#custom-search-input:focus::placeholder {
    color: transparent; /* Hides the placeholder text */
}

.no-results-search {
    padding: 10px 15px; 
}

/* Search results container */
#custom-search-results {
    margin-top: 10px; 
    position: absolute;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    max-height: 400px; /* Set a max-height for the container */
    overflow-y: scroll; /* Enable vertical scrolling */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

#custom-search-results::-webkit-scrollbar {
    width: 0px; /* Hide the scrollbar */
    background: transparent; /* Optional: make the scrollbar area transparent */
}

/* Search results list */
.custom-search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual search result item */
.custom-search-results-list li a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.custom-search-results-list li:last-child {
    border-bottom: none;
}

/* Search result link */
.custom-search-results-list li a {
    text-decoration: none;
    color: #333;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    line-height: 1.5em;
    font-family: "roboto condensed";
}

/* Hover effect for search result link */
.custom-search-results-list li a:hover {
    background-color: #f8f8f8;
    color: #257ab8;
}

.search-excerpt {
    font-size: 14px;
    line-height: 1.25em;
    font-family: "roboto";
    font-weight: 400;
}

#custom-search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none;
    font-size: 18px;
}


/* Resources Grid Styles */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
    gap: 15px;
    margin: 40px 0;
}

/* Responsive grid */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .resources-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Resource Card Link */
.resource-card-link {
    text-decoration: none !important;
    color: inherit; /* Inherit text color */
    display: block; /* Ensure the link fills the card */
}

/* Resource Card */
.resource-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex; /* Use flex to make content stretch */
    flex-direction: column; /* Stack content vertically */
    height: 100%; /* Ensure card fills grid cell */
}

/* Resource Image */
.resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Resource Content */
.resource-content {
    padding: 20px;
    flex: 1; /* Make content area take remaining space */
    display: flex;
    flex-direction: column; /* Stack title and excerpt vertically */
}

/* Resource Title */
.resource-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    min-height: 3.6rem; /* Reserve space for multi-line titles */
}

/* Note: .resource-title a is not needed since the entire card is now a link */
.resource-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-title a:hover {
    color: #0073aa; /* WordPress blue */
}

/* Resource Excerpt */
.resource-excerpt {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1; /* Ensure excerpt stretches to fill space */
}

/* Resource Link (not used since entire card is now clickable) */
.resource-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #005177;
}

/* No resources message */
.no-resources {
    text-align: center;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 8px;
    color: #666;
}


/*CSS for Organization Chart*/
#org-chart-container {
    width: 100%;
    height: 100vh;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    touch-action: pinch-zoom;
}
#org-chart {
    position: absolute;
    padding: 0;
    box-sizing: border-box;
    min-height: 600px;
    min-width: 100%;
    cursor: grab;
    transform-origin: center top;
}
#org-chart:active {
    cursor: grabbing;
}
.level {
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: center;
}
.node {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 15px;
    width: 360px;
    min-width: 320px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    position: absolute;
    margin: 0 60px; /* Increased from 40px to 60px */
    overflow: hidden;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, #a0aec0, #cbd5e0);
    margin-right: 12px;
    flex-shrink: 0;
}
.node-content {
    text-align: left;
    flex-grow: 1;
}
.node h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}
.node p {
    margin: 4px 0;
    font-size: 13px;
    color: #4a5568;
}
.node a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}
.node a:hover {
    color: #000;
}
.connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-origin: center top;
}
/* Department group colors */
.color-michael { background: #f0f4f8; } /* CEO */
.color-dwight { background: #e6ffe6; } /* CIO */
.color-jim { background: #e6f3ff; } /* COO and team */
.color-pamela { background: #ffe6e6; } /* CSO and team */

/* Instructions overlay */
#instructions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #4a5568;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .node {
        width: 100%;
        max-width: 340px;
    }
}

.btn-org-chart {
    position: absolute;
    top: 90px !important;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #fafafa;
    color: #000;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

.btn-org-chart:hover {
    background-color: #fff;
}

.btn-text {
    margin-right: 8px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}


/* GideonSoft Widget Styles */
.item-title {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.gid-btn-wrapper {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: dashed 2px #de6f13;
}

.gid-btn-wrapper:hover {
    border: dashed 2px #257ab8;
}

.feed-item {
    font-family: 'roboto', sans-serif;
    font-weight: 400;
    color: #333;
    font-size: 16px;
    padding: 20px 20px;
    /*border-bottom: 1px solid #333;*/
    border: 1px solid #eaeaea;
    border-radius: 8px;
    position: relative;
    margin-bottom: 10px;
}

.item-title,
.item-desc {
    display: block;
}

.item-date {
    font-size: 14px;
    display: block;
    text-align: left;
    margin-top: 10px;
}

.feed-item:first-of-type {
    padding-top: 20px;
}

.feed-item:last-of-type {
    padding-bottom: 20px;
    /*border-bottom: none;*/
}

.gideonsoft_section-class::-webkit-scrollbar {
    display: none;
}

.gideonsoft_section-class .feed-item {
    color: #575653;
    border-bottom: 1px solid #000;
}

.gideonsoft_section-class .feed-item:last-of-type {
    border-bottom: none;
}

#gideonsoft-reset-btn {
    padding: 6px 8px;
    background-color: transparent;
    color: #333;
    border: 1px solid #eaeaea;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    font-family: 'roboto condensed';
    margin-left: 10px;
    margin-bottom: 10px;
}

#gideonsoft-reset-btn:hover,
#gideonsoft-reset-btn:focus,
#gideonsoft-reset-btn:active {
    text-decoration: none;
    color: #257ab8;
    border: 1px solid #eaeaea;
    outline: none;
    box-shadow: none;
}

#gideonsoft-signin-btn {
    padding: 10px 24px;
    background-color: #de6f13;
    color: #fff;
    border: 1px solid #de6f13;
    font-family: 'roboto condensed';
    border-radius: 8px;
    font-size: 16px;
}

#gideonsoft-signin-btn:hover,
#gideonsoft-signin-btn:focus {
    background-color: #257ab8;
    color: white;
    border: 1px solid #257ab8;
    font-family: 'roboto condensed';
}

.item-title,
.item-desc,
.feed-item a {
    line-height: 1.2em;
}

.feed-item a {
  background-color: #257ab8;
  padding: 5px 10px;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.gsoft-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.feed-na {
    color: black;
    font-size: 16px;
    line-height: 1.2em;
}

#login-frame {
    height: 600px !important;
}


/*Forcing Google Auth Button Styles*/
div.nsl-container .nsl-button-google[data-skin="dark"] {
    border-radius: 8px !important;
    padding: 12px !important;
}

/* ========================================================================
   LEARNDASH CUSTOM THEME - MODERN LIGHT DESIGN
   ======================================================================== */

/* ========================================================================
   1. CSS VARIABLES
   ======================================================================== */
   :root {
    /* Primary Colors */
    --ld-primary: #257ab8;
    --ld-primary-hover: #de6f13;
    --ld-secondary: #00d2ff;
    
    /* Text Colors */
    --ld-text-dark: #2d3748;
    --ld-text-light: #718096;
    
    /* Background Colors */
    --ld-background: #ffffff;
    --ld-background-alt: #f7fafc;
    
    /* Status Colors */
    --ld-progress: #48bb78;
    --ld-progress-bg: #e2e8f0;
    --ld-incomplete: #e53e3e;
    --ld-complete: #38a169;
    
    /* Accent & UI */
    --ld-accent: #6b46c1;
    --ld-border: #e2e8f0;
    --ld-shadow: rgba(0, 0, 0, 0.05);
    --ld-shadow-hover: rgba(0, 0, 0, 0.1);
  }
  
  /* ========================================================================
     2. HIDE DEFAULT LEARNDASH ELEMENTS
     ======================================================================== */
  #learndash_lesson_topics_list,
  #learndash_quizzes,
  #learndash_course_content,
  #learndash_course_status,
  .learndash_topic_dots,
  #learndash_back_to_lesson,
  .learndash_lesson_materials, 
  .learndash_course_materials, 
  .learndash_topic_materials, 
  .learndash_quiz_materials {
    display: none !important;
  }
  
  .learndash-wrapper .ld-lesson-status,
  .learndash-wrapper .ld-topic-status,
  .learndash-wrapper .ld-course-status,
  .learndash-wrapper .ld-breadcrumbs,
  .learndash-wrapper .ld-tabs .ld-tabs-navigation {
    display: none !important;
  }
  
  /* ========================================================================
     3. GLOBAL STYLING & BASE ELEMENTS
     ======================================================================== */
  .ld-custom-theme * {
    box-sizing: border-box;
    transition: all 0.2s ease;
  }
  
  .ld-custom-theme {
    color: var(--ld-text-dark);
    line-height: 1.6;
    margin-top: 40px;
    padding: 0 35px;
  }
  
  /* ========================================================================
     4. TYPOGRAPHY
     ======================================================================== */
  .ld-custom-theme h1,
  .ld-custom-theme h2,
  .ld-custom-theme h3,
  .ld-custom-theme h4 {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ld-text-dark);
  }
  
  .ld-custom-theme h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
  
  .ld-custom-theme h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  
  .ld-custom-theme h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .ld-custom-theme h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .ld-custom-theme p {
    margin-bottom: 1.25rem;
  }
  
  /* Material Headings */
  .learndash_course_materials h1,
  .learndash_course_materials h2,
  .learndash_course_materials h3,
  .learndash_course_materials h4,
  #learndash_course_content_title {
    text-transform: capitalize !important;
  }
  
  /* ========================================================================
     5. BUTTONS
     ======================================================================== */
  
  /* Primary Button Styles */
  .ld-custom-theme .ld-button,
  .ld-custom-theme .learndash_mark_complete_button,
  .ld-custom-theme #learndash_mark_complete_button, #learndash_mark_complete_button,
  .ld-custom-theme .learndash_next_prev_link a,
  .ld-custom-theme .ld-focus-comments .form-submit #submit,
  .ld-content-action a,
  .wpProQuiz_button,
  #learndash_back_to_lesson a,
  .next-link,
  .prev-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    min-height: 50px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
  }
  
  .ld-custom-theme .ld-button:hover,
  .ld-custom-theme .learndash_mark_complete_button:hover,
  .ld-custom-theme #learndash_mark_complete_button:hover,
  .ld-custom-theme .learndash_next_prev_link a:hover,
  .ld-custom-theme .ld-focus-comments .form-submit #submit:hover,
  .ld-content-action a:hover,
  .wpProQuiz_button:hover,
  #learndash_back_to_lesson a:hover,
  .next-link:hover,
  .prev-link:hover {
    background-color: #ffffff;
    border: 1px solid #257ab8;
    color: #257ab8;
    transform: none;
    cursor: pointer;
  }
  
  /* Complete Button (Green) */
  .ld-custom-theme .ld-content-actions .learndash_mark_complete_button,
  .learndash-wrapper .wpProQuiz_content .wpProQuiz_button,
  .learndash-wrapper .wpProQuiz_content .wpProQuiz_button2,
  .learndash-wrapper .ld-quiz-actions .quiz_continue_link {
    background-color: var(--ld-complete) !important;
    color: #fff !important;
    border: none !important;
    min-width: 250px !important;
    text-align: center !important;
  }
  
  .ld-custom-theme .ld-content-actions .learndash_mark_complete_button:hover,
  .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:hover,
  .learndash-wrapper .wpProQuiz_content .wpProQuiz_button2:hover {
    background-color: var(--ld-complete) !important;
    opacity: 1 !important;
  }
  
  /* Alert Button Override */
  .ld-custom-theme .learndash-wrapper .ld-alert .ld-button {
    color: #ffffff !important;
    background-color: var(--ld-primary) !important;
    border-color: var(--ld-primary) !important;
    white-space: nowrap;
  }
  
  .learndash-wrapper .ld-button:not(.ld-button-reverse):not(.learndash-link-previous-incomplete):not(.ld-button-transparent):not(.ld--ignore-inline-css) {
    background-color: var(--ld-complete) !important;
  }
  
  /* Secondary Button */
  .ld-custom-theme .ld-button-secondary {
    background-color: white;
    color: var(--ld-primary);
    border: 1px solid var(--ld-border);
    border-radius: 8px;
  }
  
  .ld-custom-theme .ld-button-secondary:hover {
    background-color: var(--ld-background-alt);
  }
  
  /* Button Size Variants */
  .ld-custom-theme .ld-button-sm {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .ld-custom-theme .ld-button-lg {
    padding: 16px 24px;
    font-size: 16px;
  }
  
  /* Navigation Link Spacing */
  .next-link span,
  .prev-link span {
    margin-top: -3px;
  }
  
  /* Course Action Button Position */
  .ld-course-action .ld-button {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  /* Remove Mark Complete Icon */
  .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .sfwd-mark-complete::after {
    display: none !important;
  }
  
  /* Quiz Button Spacing */
  .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:not(.wpProQuiz_button_reShowQuestion):not(.wpProQuiz_button_restartQuiz) {
    margin-left: 10px !important;
  }
  
  /* ========================================================================
     6. CONTENT ACTIONS LAYOUT
     ======================================================================== */
  
  /* Content Actions Container */
  .ld-custom-theme .ld-content-actions .ld-button,
  .ld-custom-theme .ld-content-actions .ld-course-step-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    background-color: #fafafa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 30px !important;
    min-width: 250px !important;
  }
  
  .ld-custom-theme .ld-content-actions .ld-button:hover,
  .ld-custom-theme .ld-content-actions .ld-course-step-back:hover {
    background-color: #fafafa !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
  }
  
  /* Mark Complete Form Inline */
  .ld-custom-theme .ld-content-actions .sfwd-mark-complete {
    display: inline-block;
    margin-right: 12px;
  }
  
  /* Content Action Display */
  .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions .ld-content-action {
    display: flex !important;
  }
  
  /* Hide Step Back Button */
  .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions .ld-content-action .ld-course-step-back {
    width: auto !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    background-color: var(--ld-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 50px !important;
    min-width: 250px !important;
  }
  
  /* Hide Additional Action Links */
  .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions .ld-content-action + a {
    display: none !important;
  }
  
  /* Icon Spacing */
  .ld-custom-theme .ld-content-actions .ld-button .ld-icon {
    line-height: 1;
  }
  
  .ld-custom-theme .ld-content-actions .ld-icon-arrow-left {
    margin-right: 8px;
  }
  
  .ld-custom-theme .ld-content-actions .ld-icon-arrow-right {
    margin-left: 8px;
  }
  
  /* Remove Link Underlines */
  .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) a:not(.button) {
    border-bottom: none !important;
  }
  
  /* ========================================================================
     7. CARDS
     ======================================================================== */
  .ld-custom-theme .ld-item-card {
    background-color: var(--ld-background);
    border-radius: 8px;
    border: 1px solid #eaeaea;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .ld-custom-theme .ld-item-card:hover {
    transform: translateY(-5px);
  }
  
  .ld-custom-theme .ld-item-card-header {
    position: relative;
    padding-top: 60%;
    background-color: var(--ld-background-alt);
    overflow: hidden;
  }
  
  .ld-custom-theme .ld-item-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .ld-custom-theme .ld-item-card-body {
    padding: 15px;
  }
  
  .ld-custom-theme .ld-item-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ld-text-dark);
  }
  
  .ld-custom-theme .ld-item-card-excerpt {
    font-size: 0.95rem;
    color: var(--ld-text-light);
    margin-bottom: 1.25rem;
  }
  
  .ld-custom-theme .ld-item-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--ld-background-alt);
    border-top: 1px solid var(--ld-border);
  }
  
  /* ========================================================================
     8. PROGRESS BAR
     ======================================================================== */
  .ld-custom-theme .ld-progress-bar,
  .ld-progress-bar {
    height: 10px;
    background-color: var(--ld-progress-bg);
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
  }
  
  .ld-custom-theme .ld-progress-bar-percentage,
  .ld-progress-bar-percentage {
    height: 100%;
    background-color: var(--ld-progress);
    border-radius: 5px;
    transition: width 0.6s ease;
  }
  
  .ld-custom-theme .ld-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--ld-text-light);
    margin-bottom: 0.5rem;
  }
  
  /* ========================================================================
     9. COURSE GRID
     ======================================================================== */
  .ld-custom-theme .ld-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 2rem 0;
  }
  
  /* ========================================================================
     10. STATUS INDICATORS
     ======================================================================== */
  .ld-custom-theme .ld-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    pointer-events: none;
  }
  
  .ld-custom-theme .ld-status-completed {
    background-color: rgba(56, 161, 105, 0.1);
    color: var(--ld-complete);
  }
  
  .ld-custom-theme .ld-status-incomplete,
  .ld-custom-theme .ld-status-not-started {
    background-color: rgba(229, 62, 62, 0.1);
    color: var(--ld-incomplete);
  }
  
  .ld-custom-theme .ld-status-in-progress {
    background-color: rgba(58, 123, 213, 0.1);
    color: var(--ld-primary);
  }
  
  /* Status Icons */
  .ld-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    min-height: 20px;
    min-width: 20px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
  }
  
  .ld-status-icon.ld-status-complete {
    background-color: #10b981;
    color: white;
  }
  
  .ld-status-icon.ld-status-incomplete {
    color: #94a3b8;
  }
  
  /* ========================================================================
     11. COURSE NAVIGATION & ACCORDION
     ======================================================================== */
  
  /* Course Navigation */
  .ld-custom-theme .ld-course-navigation {
    background-color: var(--ld-background);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--ld-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
  }
  
  .ld-custom-theme .ld-course-navigation-heading {
    padding: 1.25rem 1.5rem;
    background-color: var(--ld-primary);
    color: white;
  }
  
  .ld-custom-theme .ld-course-navigation-heading h3 {
    margin: 0;
    color: white;
  }
  
  .ld-custom-theme .ld-course-navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .ld-custom-theme .ld-course-navigation-item {
    border-bottom: 1px solid var(--ld-border);
  }
  
  .ld-custom-theme .ld-course-navigation-item:last-child {
    border-bottom: none;
  }
  
  .ld-custom-theme .ld-course-navigation-item-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--ld-text-dark);
    transition: background-color 0.2s ease;
  }
  
  .ld-custom-theme .ld-course-navigation-item-link:hover,
  .ld-custom-theme .ld-course-navigation-item-link.active {
    background-color: var(--ld-background-alt);
  }
  
  .ld-custom-theme .ld-course-navigation-item-icon {
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }
  
  .ld-custom-theme .ld-course-navigation-item-text {
    flex: 1;
  }
  
  .ld-custom-theme .ld-course-navigation-item-status {
    margin-left: 0.75rem;
  }
  
  /* Navigation Container */
  .ld-navigation-container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  #learndash_next_prev_link {
    display: flex;
    gap: 20px;
  }
  
  /* Accordion Styles */
  .ld-course-navigation-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .ld-accordion-item {
    border-bottom: 1px solid #e2e8f0;
  }
  
  .ld-accordion-item:last-child {
    border-bottom: none;
  }
  
  .ld-accordion-header {
    display: flex;
    align-items: center;
    position: relative;
    background-color: #f8fafc;
    transition: background-color 0.3s ease;
  }
  
  .ld-accordion-header:hover {
    background-color: #f1f5f9;
  }
  
  .ld-accordion-lesson-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    flex-grow: 1;
  }
  
  .ld-accordion-lesson-link.active {
    background-color: #e0f2fe;
    color: #0369a1;
  }
  
  /* Accordion Toggle */
  .ld-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .ld-icon-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }
  
  .ld-accordion-item.expanded .ld-icon-arrow {
    transform: rotate(-135deg);
  }
  
  /* Accordion Content */
  .ld-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
  }
  
  .ld-accordion-item.expanded .ld-accordion-content {
    max-height: 1000px;
  }
  
  /* Child Items */
  .ld-accordion-children {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .ld-accordion-child {
    border-top: 1px solid #f1f5f9;
  }
  
  .ld-accordion-child-link {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 40px;
    text-decoration: none;
    color: #475569;
    font-size: 0.95em;
  }
  
  .ld-accordion-child-link.active {
    background-color: #e0f2fe;
    color: #0369a1;
  }
  
  .ld-accordion-child-link:hover {
    background-color: #f8fafc;
  }
  
  /* Quiz Accordion Items */
  .ld-accordion-quiz-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .ld-accordion-quiz-link {
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 65px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9em;
  }
  
  .ld-accordion-quiz-link.active {
    background-color: #e0f2fe;
    color: #0369a1;
  }
  
  .ld-accordion-quiz-link:hover {
    background-color: #f8fafc;
  }
  
  /* Course Home Link */
  .sld-course-home-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #111;
  }
  
  .sld-course-home-link:hover {
    background: #f8fafc;
  }
  
  .sld-course-home-link .sld-course-home-title {
    flex: 1;
    text-align: center;
    line-height: 1.2;
  }
  
  .sld-course-home-link .sld-home-spacer {
    width: 18px;
    display: inline-block;
  }
  
  .sld-course-home-link i {
    font-size: 16px;
    opacity: 0.9;
  }
  
  /* ========================================================================
     12. LESSON CONTENT
     ======================================================================== */
  .ld-custom-theme .ld-lesson-content {
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 2rem;
  }
  
  .ld-custom-theme .ld-lesson-header,
  .ld-custom-theme .ld-topic-header,
  .ld-custom-theme .ld-quiz-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ld-border);
  }
  
  .ld-custom-theme .ld-lesson-title {
    margin-top: 0;
    margin-bottom: 25px;
  }
  
  .ld-custom-theme .ld-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--ld-text-light);
    font-size: 14px;
    align-items: center;
  }
  
  .ld-custom-theme .ld-lesson-body {
    line-height: 1.7;
  }
  
  /* ========================================================================
     13. QUIZ STYLING
     ======================================================================== */
  .ld-custom-theme .ld-quiz-container {
    background-color: var(--ld-background);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--ld-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .ld-custom-theme .ld-question {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ld-border);
  }
  
  .ld-custom-theme .ld-question:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .ld-custom-theme .ld-question-title {
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .ld-custom-theme .ld-question-options {
    list-style: none;
    padding: 0;
  }
  
  .ld-custom-theme .ld-question-option {
    margin-bottom: 0.75rem;
  }
  
  .ld-custom-theme .ld-question-option label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--ld-background-alt);
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .ld-custom-theme .ld-question-option label:hover {
    background-color: white;
    box-shadow: 0 2px 4px var(--ld-shadow);
  }
  
  .ld-custom-theme .ld-question-option input {
    margin-right: 0.75rem;
  }
  
  /* WPProQuiz Content Styling */
  .wpProQuiz_content {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--ld-border);
  }
  
  .wpProQuiz_content .wpProQuiz_questionList {
    border-radius: 8px;
    border-color: var(--ld-border);
    cursor: pointer;
    background-color: var(--ld-background-alt);
  }
  
  .wpProQuiz_content .wpProQuiz_questionListItem input,
  .wpProQuiz_questionListItem label {
    cursor: pointer;
  }
  
  /* ========================================================================
     14. COURSE COMPLETE
     ======================================================================== */
  .ld-custom-theme .ld-course-complete {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--ld-background);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--ld-shadow);
  }
  
  .ld-custom-theme .ld-course-complete-icon {
    font-size: 4rem;
    color: var(--ld-complete);
    margin-bottom: 1.5rem;
  }
  
  .ld-custom-theme .ld-course-complete-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .ld-custom-theme .ld-course-complete-message {
    font-size: 1.125rem;
    color: var(--ld-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  
  /* ========================================================================
     15. COURSE MATERIALS & DOWNLOADS
     ======================================================================== */
  .learndash_course_materials,
  .learndash_course_content {
    padding: 25px;
    background-color: var(--ld-background);
    border-radius: 8px;
    border: solid 1px #f3f3f3;
    margin-top: 25px;
    margin-bottom: 35px;
  }
  
  .ld-custom-theme .ld-course-materials {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--ld-background-alt);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--ld-shadow);
  }
  
  .ld-custom-theme .ld-course-materials h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--ld-text-dark);
  }
  
  .ld-custom-theme .ld-download-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ld-background);
    background-color: var(--ld-accent);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--ld-shadow);
    transition: all 0.2s ease;
  }
  
  .ld-custom-theme .ld-download-link:hover {
    background-color: var(--ld-primary-hover);
    box-shadow: 0 4px 8px var(--ld-shadow-hover);
    transform: translateY(-1px);
  }
  
  .ld-custom-theme .ld-download-link .download-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/gallery/download.svg');
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  .ld-custom-theme .ld-download-link span {
    flex: 1;
  }
  
  /* ========================================================================
     16. COURSE CTA (Call-to-Action)
     ======================================================================== */
  .ld-course-cta {
    margin-top: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f9fafb;
  }
  
  .ld-course-cta .cta-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f2ff;
    color: var(--ld-primary);
  }
  
  .ld-course-cta .cta-title {
    margin: 4px 0 2px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
  }
  
  .ld-course-cta .cta-sub {
    margin: 0;
    color: #475569;
    font-size: 14px;
  }
  
  .ld-course-cta .cta-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .ld-course-cta .cta-actions .ld-button {
    display: inline-block;
  }
  
  .ld-course-cta .req-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #475569;
  }
  
  .ld-course-cta .req-list li.done {
    opacity: 0.65;
    text-decoration: line-through;
  }
  
  .ld-course-cta .meta {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
  }
  
  /* ========================================================================
     17. PAGINATION
     ======================================================================== */
  .ld-custom-theme .ld-pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
  }
  
  .ld-custom-theme .ld-pagination-item {
    margin: 0 0.25rem;
  }
  
  .ld-custom-theme .ld-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ld-text-dark);
    background-color: var(--ld-background);
    border: 1px solid var(--ld-border);
    transition: all 0.2s ease;
  }
  
  .ld-custom-theme .ld-pagination-link:hover {
    background-color: var(--ld-background-alt);
  }
  
  .ld-custom-theme .ld-pagination-link.active {
    background-color: var(--ld-primary);
    color: white;
    border-color: var(--ld-primary);
  }
  
  /* ========================================================================
     18. SINGLE COURSE TEMPLATE
     ======================================================================== */
  .ld-custom-theme .ld-single-course-wrapper {
    margin: 2rem 0;
  }
  
  .ld-custom-theme .ld-course-content,
  .ld-custom-theme .ld-course-sidebar {
    margin-bottom: 2rem;
  }

  .ld-single-course-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap; /* Changed from wrap to nowrap for better sidebar behavior */
    align-items: flex-start; /* Ensures sidebar aligns to top */
  }
  
  /* ========================================================================
     19. LEARNDASH DEFAULT ELEMENT OVERRIDES
     ======================================================================== */
  
  /* Lessons & Quizzes Headings */
  #learndash_lessons #lesson_heading,
  #learndash_profile .learndash_profile_heading,
  #learndash_quizzes #quiz_heading,
  #learndash_lesson_topics_list div > strong {
    background-color: #257ab8;
    color: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 14px;
  }
  
  #learndash_course_content #lesson_heading,
  #learndash_course_content #quiz_heading {
    font-size: 15px;
  }
  
  /* Lessons & Quizzes Containers */
  #learndash_lessons,
  #learndash_quizzes,
  #learndash_profile,
  #learndash_lesson_topics_list > div {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 20px;
    clear: both;
  }
  
  #learndash_lessons > div > div,
  #learndash_quizzes > div > div {
    border: 1px solid #eaeaea;
  }
  
  /* Links Styling */
  #learndash_lessons a,
  #learndash_quizzes a,
  .expand_collapse a,
  .learndash_topic_dots a,
  .learndash_topic_dots a > span,
  #learndash_lesson_topics_list span a,
  #learndash_profile a,
  #learndash_profile a span {
    color: #000;
    font-family: inherit;
    font-size: 14px;
  }
  
  #learndash_lessons h4 > a:hover,
  #learndash_quizzes h4 > a:hover,
  #learndash_lesson_topics_list ul > li > span.topic_item:hover {
    background-color: #eaeaea;
  }
  
  /* Expand/Collapse */
  .expand_collapse {
    margin-top: -15px;
  }
  
  /* Topic Dots */
  #learndash_course_content .learndash_topic_dots ul > li:nth-of-type(odd) {
    background-color: #ffffff;
  }
  
  #learndash_course_content .learndash_topic_dots ul > li:hover {
    background-color: #fff;
  }
  
  /* Layout Sidebar */
  .ld-layout__sidebar {
    margin-top: 0 !important;
  }
  
  /* Tabs Content */
  .learndash-wrapper .ld-tabs .ld-tabs-content .ld-tab-content {
    padding: 0 !important;
  }
  
  /* ========================================================================
     20. ANIMATIONS
     ======================================================================== */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .ld-custom-theme .ld-fade-in {
    animation: fadeIn 0.5s ease forwards;
  }
  
  /* ========================================================================
     21. RESPONSIVE DESIGN - TABLET
     ======================================================================== */
  @media (max-width: 1030px) {
    /* Content Actions Grid Layout */
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions {
      display: grid !important;
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: stretch;
      text-align: center !important;
    }
  
    .ld-custom-theme .ld-content-actions .sfwd-mark-complete {
      margin-right: 0 !important;
    }
  
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions .ld-content-action {
      display: flex !important;
      gap: 12px;
      width: 100%;
    }
  
    /* Middle Group Spanning */
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) 
    .ld-content-actions .ld-content-action:nth-child(2) {
      grid-column: 1 / -1;
      display: grid !important;
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: stretch;
    }
  
    .ld-custom-theme .ld-content-actions .sfwd-mark-complete,
    .ld-custom-theme .ld-content-actions .ld-course-step-back {
      width: 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
    }
  
    .ld-custom-theme .ld-content-actions .learndash_mark_complete_button,
    .ld-custom-theme .ld-content-actions .ld-course-step-back,
    .ld-custom-theme .ld-content-actions .ld-button {
      width: 100% !important;
      min-width: 0 !important;
      text-align: center;
    }
  }
  
  /* ========================================================================
     22. RESPONSIVE DESIGN - MOBILE
     ======================================================================== */
  @media (max-width: 768px) {
    /* Course Grid */
    .ld-custom-theme .ld-course-grid {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 15px;
    }
  
    /* Typography */
    .ld-custom-theme h1 {
      font-size: 1.75rem;
    }
  
    .ld-custom-theme h2 {
      font-size: 1.5rem;
    }
  
    .ld-custom-theme h3 {
      font-size: 1.25rem;
    }
  
    /* Lesson & Quiz Containers */
    .ld-custom-theme .ld-lesson-content,
    .ld-custom-theme .ld-quiz-container {
      padding: 0;
    }
  
    /* Course Action Button */
    .ld-course-action .ld-button {
      top: 0 !important;
      right: 0 !important;
    }
  
    /* Lesson Title */
    .ld-custom-theme .ld-lesson-title {
      max-width: 60%;
      font-size: 28px !important;
      margin-bottom: 15px;
    }
  
    /* Download Links */
    .ld-custom-theme .ld-download-link {
      width: 100%;
      justify-content: center;
    }
  
    /* Single Course Layout */
    .ld-custom-theme .ld-single-course-wrapper {
      flex-direction: column;
    }
  
    .ld-custom-theme .ld-course-sidebar {
      min-width: 100%;
      order: 1;
    }
  
    /* Content Actions - Mobile Layout */
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions {
      grid-template-columns: 1fr !important;
      gap: 10px;
      padding: 0 !important;
    }
  
    .ld-custom-theme .ld-content-actions .sfwd-mark-complete {
      margin-right: 0 !important;
    }
  
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) 
    .ld-content-actions .ld-content-action:nth-child(2) {
      grid-column: auto;
      grid-template-columns: 1fr;
    }
  
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions .ld-content-action {
      padding: 0 !important;
    }
  
    .ld-custom-theme .ld-content-actions .learndash_mark_complete_button,
    .ld-custom-theme .ld-content-actions .ld-course-step-back,
    .ld-custom-theme .ld-content-actions .ld-button,
    .ld-custom-theme .ld-content-actions .sfwd-mark-complete {
      width: 100% !important;
      min-width: 0 !important;
    }
  
    .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .learndash_mark_complete_button {
      text-align: center !important;
    }
  }

  /* ========================================================================
     QUIZ STYLES
     ======================================================================== */

    .wpProQuiz_content .wpProQuiz_questionList {
      padding: 25px;
    }

    .wpProQuiz_questionListItem label {
      display: flex;
      align-items: center;
      padding: 10px 15px;
      background-color: #ffffff;
      border: 1px solid #dddddd;
      border-radius: 4px;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    /* Style label when its input is checked */
    .wpProQuiz_questionListItem input[type="radio"]:checked + label,
    .wpProQuiz_questionListItem label:has(input[type="radio"]:checked) {
      background-color: #ffffff;
      border-color: #257ab8;
    }

    .wpProQuiz_content .wpProQuiz_questionListItem input {
      margin-right: 10px;
    }

    .wpProQuiz_content .wpProQuiz_sortable, .wpProQuiz_sortStringItem {
      padding: 10px 15px;
      border: 1px solid #dddddd;
      background-color: #ffffff;
      box-shadow: none;
      border-radius: 4px;
    }

    /* Fixed footer container only — no descendant overrides */
    .ld-fixed-cta {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2147483647;            /* above sticky headers/players */
      display: flex;
      justify-content: space-between; /* prev/next left, mark-complete right */
      align-items: center;
      gap: 12px;
      padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
      background: rgba(255,255,255,0.98);
      backdrop-filter: saturate(150%) blur(6px); /* optional polish */
      border-top: 1px solid #e5e7eb;
      box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    }

    /* Preserve your original element styling; only add spacing if needed */
    .ld-fixed-cta #learndash_next_prev_link { margin: 0; }
    .ld-fixed-cta #sfwd-mark-complete { margin: 0; }

    /* Prevent content from hiding behind the fixed bar */
    body { padding-bottom: 84px; }



  
  /* ========================================================================
     END OF LMS STYLESHEET
     ======================================================================== */

     /* ========================================================================
     Start of the Resources Filter Styles
     ======================================================================== */


     :root {
       --drop-accent: #257ab8;
       --drop-radius: 8px;
       --drop-shadow: 0 2px 6px rgba(0,0,0,.05);
     }
 
     .drop-container { margin-bottom: 5px; position: relative; }
 
     .drop-native-hidden { display: none; }
 
     .drop-custom { position: relative; width: 280px; }
     .drop-btn {
       width: 100%;
       display: flex; align-items: center; justify-content: space-between;
       gap: 10px;
       padding: 12px 14px;
       border: 1px solid #d0d7de;
       border-radius: var(--drop-radius);
       background: #fff; color: #222;
       cursor: pointer;
       box-shadow: var(--drop-shadow);
       transition: border-color .2s, box-shadow .2s;
     }
     .drop-btn:hover,
     .drop-btn:focus {
       outline: none;
       border-color: var(--drop-accent);
       box-shadow: 0 0 0 3px rgba(37,122,184,.2);
     }
     .drop-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
     .drop-chevron {
       display: inline-grid; place-items: center; color: #6b7280;
       transition: transform .2s ease, color .2s ease;
     }
     .drop-open .drop-chevron { transform: rotate(180deg); color: var(--drop-accent); }
 
     @media (max-width: 768px) {
         .filter-section {
             margin-top: 15px;
         }
     }
 
     .drop-listbox {
       display: none;
       position: absolute; top: calc(100% + 8px); left: 0; right: 0;
       background: #fff; border: 1px solid #d0d7de; border-radius: 4px;
       box-shadow: 0 8px 20px rgba(0,0,0,.15);
       overflow: hidden; z-index: 10;
       max-height: 320px; overflow-y: auto;
     }
     .drop-open .drop-listbox { display: block; }
 
     .drop-option {
       display: flex; align-items: center; justify-content: space-between;
       gap: 10px; padding: 10px 14px; cursor: pointer;
       transition: background .15s ease;
     }
     .drop-option:hover { background: rgba(37,122,184,.08); }
     .drop-option[aria-selected="true"] {
       background: rgba(37,122,184,.15);
       border-left: 3px solid var(--drop-accent);
     }
     .drop-check { color: var(--drop-accent); opacity: 0; transition: opacity .15s; }
     .drop-option[aria-selected="true"] .drop-check { opacity: 1; }
 
     .resources-grid.drop-loading { opacity: .5; pointer-events: none; position: relative; }
     .resources-grid.drop-loading::after {
       content: "Loading...";
       position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
       font-size: 18px; font-weight: bold;
     }
 
     @media (max-width: 480px) {
       .drop-custom { width: 100%; }
     }
     
    .collateral-archive-container { max-width: 1200px; margin: 0 auto; padding: 40px 15px; }
    .collateral-archive-header { text-align: left; margin: 40px 0; }
    .collateral-archive-header h1 { font-weight: 500 !important; margin-bottom: 0.5em; color: #222; font-size: 34px !important; }
    .collateral-archive-subtitle { color: #666; font-size: 18px; margin: 0; }
    
    .collateral-grid { 
        display: grid; 
        grid-template-columns: repeat(5, 1fr); 
        gap: 15px; 
        margin-bottom: 40px; 
    }
    
    @media (max-width: 1200px) { .collateral-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
    @media (max-width: 992px) { .collateral-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
    @media (max-width: 768px) { .collateral-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }
    @media (max-width: 576px) { .collateral-grid { grid-template-columns: 1fr; gap: 20px; } }
    
    .collateral-card { 
        background: #fff; 
        border: 1px solid #ddd; 
        border-radius: 16px; 
        padding: 20px; 
        transition: box-shadow 0.3s ease, transform 0.3s ease; 
        text-decoration: none; 
        color: inherit; 
        display: block; 
        position: relative; 
    }
    .collateral-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .collateral-image { 
        width: 100%; 
        height: 150px;
        overflow: hidden; 
        background: #f5f5f5; 
        border-radius: 8px; 
        margin-bottom: 15px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        position: relative; 
    }
    .collateral-image img { width: 100%; height: 100%; object-fit: contain; }
    
    .collateral-file-preview { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        gap: 12px; 
        padding: 20px; 
        width: 100%; 
        height: 100%; 
        background: #ffffff; 
    }
    .collateral-file-icon-img { width: 80px; height: 80px; object-fit: contain; }
    .collateral-file-type { 
        font-size: 14px; 
        font-weight: 600; 
        color: #495057; 
        text-transform: uppercase; 
        letter-spacing: 1px; 
        margin-top: 5px; 
    }
    
    .collateral-title { 
        font-weight: 600; 
        font-size: 16px !important; 
        text-align: center;
        margin-bottom: 10px; 
        color: #333; 
        line-height: 1.4; 
    }
    .collateral-excerpt { color: #555; font-size: 16px; line-height: 1.5; margin-bottom: 15px; }
    
    .collateral-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 16px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 5;
    }
    .collateral-card:hover::before { opacity: 1; visibility: visible; }
    
    .collateral-download-picture {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -80%);
        width: 100px;
        height: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10;
        pointer-events: none;
    }
    .collateral-card:hover .collateral-download-picture { opacity: 1; visibility: visible; }
    
    .collateral-button-group {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 60%);
        display: flex;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10;
        flex-direction: column;
    }
    .collateral-card:hover .collateral-button-group { opacity: 1; visibility: visible; }
    
    .collateral-download-btn { 
        display: inline-flex; 
        align-items: center; 
        gap: 8px; 
        padding: 8px 24px; 
        background: #257ab8; 
        color: white; 
        text-decoration: none; 
        border-radius: 4px; 
        font-weight: 500; 
        font-size: 14px; 
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .collateral-download-btn:hover { 
        background: #1e6299; 
        color: white; 
        text-decoration: none;
    }
    .collateral-download-btn img { 
        width: 16px; 
        height: 16px; 
        filter: brightness(0) invert(1);
    }
    
    .collateral-preview-btn { 
        display: inline-flex; 
        align-items: center; 
        gap: 8px; 
        padding: 8px 24px; 
        background: #fff; 
        border: 1px solid #eaeaea;
        color: #333333; 
        text-decoration: none; 
        border-radius: 4px; 
        font-weight: 500; 
        font-size: 14px; 
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .collateral-preview-btn:hover { 
        opacity: .75;
        text-decoration: none;
    }
    .collateral-preview-btn img { 
        width: 16px; 
        height: 16px; 
        filter: brightness(0.5) grayscale(1);
    }
    
    .collateral-filters { margin-bottom: 30px; }
    .filter-group { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        gap: 15px; 
        flex-wrap: wrap;
    }
    .sub-filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
    
    .no-results-message { 
        text-align: center; 
        padding: 40px 20px; 
        color: #666; 
        font-size: 14px; 
        background: #f8f9fa; 
        border-radius: 10px; 
        margin: 20px 0; 
        display: none; 
        grid-column: 1 / -1; 
    }
    .no-collateral-message { 
        text-align: center; 
        padding: 60px 20px; 
        color: #666; 
        font-size: 14px; 
        grid-column: 1 / -1; 
    }
    .no-collateral-message h3 { color: #333; margin-bottom: 15px; font-size: 16px; }
    
    .collateral-loading-container { padding: 40px 20px; display: none; text-align: center; }
    .collateral-loading-container lottie-player { width: 100px; height: 100px; margin: 0 auto; }
    
    .drop-native-hidden { position: absolute; opacity: 0; pointer-events: none; }
    .drop-custom { position: relative; display: inline-block; min-width: 200px; }
    .drop-btn { 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        width: 100%; 
        padding: 10px 16px; 
        background: #fff; 
        border: 1px solid #ddd; 
        border-radius: 8px; 
        cursor: pointer; 
        font-size: 14px; 
        color: #333; 
        transition: all 0.2s; 
    }
    .drop-btn:hover { border-color: #257ab8; }
    .drop-custom.drop-open .drop-btn { 
        border-color: #257ab8; 
        box-shadow: 0 0 0 2px rgba(37, 122, 184, 0.1); 
    }
    .drop-value { display: flex; align-items: center; gap: 8px; flex: 1; }
    .drop-chevron { color: #999; transition: transform 0.2s; font-size: 12px; }
    .drop-custom.drop-open .drop-chevron { transform: rotate(180deg); }
    .drop-listbox { 
        position: absolute; 
        top: calc(100% + 4px); 
        left: 0; 
        right: 0; 
        background: #fff; 
        border: 1px solid #ddd; 
        border-radius: 8px; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
        max-height: 300px; 
        overflow-y: auto; 
        z-index: 1000; 
        display: none; 
    }
    .drop-custom.drop-open .drop-listbox { display: block; }
    .drop-option { 
        display: flex; 
        align-items: center; 
        gap: 8px; 
        padding: 10px 16px; 
        cursor: pointer; 
        transition: background 0.15s; 
    }
    .drop-option:hover { background: #f5f7fa; }
    .drop-opt-text { flex: 1; font-size: 14px; color: #333; }
    .drop-check { color: #257ab8; font-size: 14px; opacity: 0; transition: opacity 0.15s; }
    .drop-option[aria-selected="true"] .drop-check { opacity: 1; }
    .drop-option[aria-selected="true"] { background: #f0f7ff; }

    /* Helpful Resources Section */
.helpful-resources-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.helpful-resources-title {
    font-size: 24px;
    font-weight: 500;
    color: #222;
    margin-bottom: 24px;
    text-align: left;
}

.helpful-resources-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.helpful-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.helpful-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.helpful-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f8f8;
}

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

.helpful-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 14px;
}

.helpful-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpful-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.helpful-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .helpful-resources-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .helpful-resources-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .helpful-resources-container {
        flex-direction: column;
        gap: 16px;
    }

    .helpful-card {
        flex: none;
        width: 100%;
    }

    .helpful-card-image {
        height: 180px;
    }

    .helpful-card-content {
        padding: 14px;
    }

    .helpful-card-title {
        font-size: 15px;
    }

    .helpful-card-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .helpful-card-image {
        height: 150px;
    }

    .helpful-card-content {
        padding: 12px;
    }
}
    
    @media (max-width: 768px) {
        .collateral-grid { grid-template-columns: 1fr; gap: 20px; }
        .collateral-archive-header h1 { font-size: 28px !important; }
        .filter-group { flex-direction: row; align-items: flex-start; gap: 10px; }
        .drop-custom { min-width: 150px; width: 60%; }
        .sub-filter-group { width: 60%; }
        
        .collateral-card::before { display: none; }
        .collateral-download-picture { display: none !important; }
        .collateral-title { text-align: center !important; font-size: 18px !important; }
        
        .collateral-button-group {
            position: static;
            transform: none;
            opacity: 1;
            visibility: visible;
            justify-content: center;
            margin-top: 15px;
            flex-direction: column;
        }
        
        .collateral-download-btn,
        .collateral-preview-btn {
            width: 100%;
            justify-content: center;
            box-shadow: none;
        }
        
        .collateral-download-btn:hover,
        .collateral-preview-btn:hover { transform: none; }
        
        .collateral-content { display: flex; flex-direction: column; }
    }

    a.collateral-card-link {
      text-decoration: none;
      color: inherit;
      display: block;
    }
    a.collateral-card-link:hover {
        text-decoration: none;
    }
  