@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
/* SBA Frontend Styles */

:root {
    --sba-color-primary: #cda34f;
    --sba-color-secondary: #6c757d;
    --sba-color-tertiary: #333;
    --sba-color-quaternary: #999;
    --sba-color-quinary: #666;

    --sba-color-eggshell-dark: #f7f5e6;
    --sba-color-eggshell-light: #f8f8f3;
    --sba-color-warm-grey: #968787;
    --sba-color-light-grey: #eff2f5;
    --sba-color-dark-grey: #575e67;
    --sba-color-white: #ffffff;
    --sba-color-black: #000000;
    --sba-color-red: #8d230f;
    --sba-color-gold: #cda34f;
    --sba-color-yellow: #EBB000;
    --sba-color-orange: #d77621;
    --sba-color-purple: #574968;
    --sba-color-academy-purple: #574968;
    --sba-color-speaking-rosa: #baa39f;
    --sba-color-dark-purple: #3F3250;
    --sba-color-club-green: #5b7065;
    --sba-color-consulting-blue: #6b8190;
    --sba-color-corporate-blue: #374d62;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Nunito Sans", sans-serif!important;
    font-size: 16px;
    font-weight: 400;
    color: #374d62!important;
    background: #fff!important;
}

.main-navigation .main-nav ul li a {
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Nunito Sans", sans-serif!important;
}

.main-navigation .main-nav ul li[class*="current-menu-"]>a {
    color: var(--sba-color-gold) !important;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover>a {
    color: var(--sba-color-gold) !important;
}

#footer-widgets {
    background: #2c3e50;
}

#footer-widgets,
#footer-widgets a {
    color: #e2e2e2;
    text-decoration: none;
}

#footer-widgets a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-widget-2 #block-15 {
    margin-bottom: 8px;
}

.main-navigation .main-nav ul li a {
    line-height: 40px;
}

.site-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Nunito Sans", sans-serif!important;
    color: #374d62!important;
    font-weight: 700!important;
}

.wp-block-heading {
    font-size: 20px!important;
    font-weight: 700!important;
    color: #fff!important;
    margin-bottom: 6px;
}

a {
    color: #374d62;
}

hr {
    position: relative;
    border-top: 0px !important;
    width: 80% !important;
    margin: 0 auto !important;
    margin-bottom: 30px !important;
}

hr:after {
    content: '';
    height: 80% !important;
    width: 0.5px;
    background: #cda34f;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.sba-container {
    width: 100%;
}

.sba-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

.text-center {
    text-align: center;
}

.sba-center-align {
    display: flex;
        flex-direction: column;
        justify-content: center;
}

.wpcf7-form-control {
    width: 100%;
}

.page.type-page {
    width: 100%;
}


/* ========================================
   SHARED COMPONENT LIBRARY
   ======================================== */

/* ========================================
   BUTTON COMPONENTS
   ======================================== */

/* Base Button Styles */
.sba-btn,
.wp-block-button__link {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
    vertical-align: middle;
}

.sba-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.sba-btn:disabled,
.sba-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Sizes */
.sba-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.sba-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Button Colors */
.sba-btn-primary {
    color: white;
    background-color: var(--sba-color-gold);
    border-color: #c49840;
}

.sba-btn-primary:hover {
    color: white;
    background-color: #b88e3a;
    border-color: rgb(143, 104, 26);
    text-decoration: none;
}

.sba-btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(205, 163, 79, 0.25);
}

.sba-btn-secondary {
    color: white;
    background-color: var(--sba-color-dark-grey);
    border-color: #6c757d;
}

.sba-btn-secondary:hover {
    color: white;
    background-color: #545b62;
    border-color: #4e555b;
    text-decoration: none;
}

.sba-btn-secondary:focus {
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.25);
}

.sba-btn-default {
    color: #333;
    background-color: white;
    border-color: #ddd;
}

.sba-btn-default:hover {
    color: #333;
    background-color: #f8f9fa;
    border-color: #ccc;
    text-decoration: none;
}

.sba-btn-default:focus {
    box-shadow: 0 0 0 3px rgba(221, 221, 221, 0.25);
}

.sba-btn-success {
    color: white;
    background-color: #28a745;
    border-color: #28a745;
}

.sba-btn-success:hover {
    color: white;
    background-color: #218838;
    border-color: #1e7e34;
    text-decoration: none;
}

.sba-btn-success:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.sba-btn-danger {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

.sba-btn-danger:hover {
    color: white;
    background-color: #c82333;
    border-color: #bd2130;
    text-decoration: none;
}

.sba-btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.sba-btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.sba-btn-warning:hover {
    color: #212529;
    background-color: #e0a800;
    border-color: #d39e00;
    text-decoration: none;
}

.sba-btn-warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.sba-btn-info {
    color: white;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.sba-btn-info:hover {
    color: white;
    background-color: #138496;
    border-color: #117a8b;
    text-decoration: none;
}

.sba-btn-info:focus {
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25);
}

.sba-btn-light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.sba-btn-light:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
    text-decoration: none;
}

.sba-btn-light:focus {
    box-shadow: 0 0 0 3px rgba(248, 249, 250, 0.25);
}

.sba-btn-dark {
    color: white;
    background-color: #343a40;
    border-color: #343a40;
}

.sba-btn-dark:hover {
    color: white;
    background-color: #23272b;
    border-color: #1d2124;
    text-decoration: none;
}

.sba-btn-dark:focus {
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.25);
}

/* Button Variants */
.sba-btn-outline {
    background-color: transparent;
}

.sba-btn-outline.sba-btn-primary {
    color: #cda34f;
    border-color: #cda34f;
}

.sba-btn-outline.sba-btn-primary:hover {
    color: white;
    background-color: #cda34f;
    border-color: #cda34f;
}

.sba-btn-outline.sba-btn-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.sba-btn-outline.sba-btn-secondary:hover {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
}

.sba-btn-outline.sba-btn-default {
    color: #333;
    border-color: #ddd;
}

.sba-btn-outline.sba-btn-default:hover {
    color: #333;
    background-color: #f8f9fa;
    border-color: #ccc;
}

/* Button Groups */
.sba-btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.sba-btn-group .sba-btn {
    border-radius: 0;
}

.sba-btn-group .sba-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.sba-btn-group .sba-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.sba-btn-group .sba-btn:not(:first-child) {
    margin-left: -1px;
}

.sba-btn-group .sba-btn:hover {
    z-index: 1;
}

/* ========================================
   SEARCH COMPONENTS
   ======================================== */

/* General Search Filters */
.sba-search-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sba-search-filters::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(205, 163, 79, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(184, 142, 58, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.sba-search-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cda34f, #b88e3a, #cda34f);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.sba-search {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    display: flex;
}

.sba-search::before {
    content: '\f002';
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sba-search:focus-within::before {
    color: #cda34f;
    transform: translateY(-50%) scale(1.1);
}

.sba-search input {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px 16px 44px!important;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #495057;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sba-search input:focus {
    outline: none;
    border-color: #cda34f;
    box-shadow: 0 0 0 4px rgba(205, 163, 79, 0.1);
    transform: translateY(-1px);
}

.sba-search input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.sba-search button {
    margin-left: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sba-search button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sba-search button:hover::before {
    left: 100%;
}

.sba-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 163, 79, 0.3);
}

.sba-search button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(205, 163, 79, 0.2);
}

.sba-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    align-items: end;
}

.sba-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.sba-filter-group::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 163, 79, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sba-filter-group:hover::before {
    opacity: 1;
}

.sba-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    display: inline-block;
}

.sba-filter-group label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #cda34f, #b88e3a);
    transition: width 0.3s ease;
}

.sba-filter-group:hover label::after {
    width: 30px;
}

.sba-filters select,
.select2.select2-container {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.sba-filters select:focus {
    outline: none;
    border-color: #cda34f;
    box-shadow: 0 0 0 4px rgba(205, 163, 79, 0.1);
    transform: translateY(-1px);
}

.sba-filters select:hover,
.select2.select2-container:hover {
    border-color: #cda34f;
    transform: translateY(-1px);
}

/* ONLY target Select2 elements - all classes start with .select2- */

.select2.select2-container {
    padding: 7px 8px;
}

/* Main selection box - match standard select appearance */
.select2.select2-container--default .selection {
    border-radius: 4px;
    padding: 0;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
}

.select2-container--default .select2-selection--multiple {
    border: 0!important;
    padding-right: 6px!important;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2271b1;
    box-shadow: none !important;
    outline: none !important;
    border: 0!important;
}

/* Container for selected items */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 0;
}

/* Selected item badges */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #cda34f !important;
    border: 0!important;
    border-radius: 3px;
    color: #fff;
    padding: 3px 8px;
    margin: 0;
    font-size: 13px !important;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Remove button on badges */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff!important;
    font-size: 14px;
    font-weight: bold;
    margin-right: 0;
    order: 2;
    cursor: pointer;
    top: -2px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #f0f0f0;
    background: #b88e3a !important;
}

/* Placeholder text */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder,
.select2-search--dropdown .select2-search__field::placeholder {
    color: #646970;
    margin: 0;
    padding: 0;
    line-height: 28px;
    color: #495057;
}

/* Add dropdown arrow like standard select */
.select2-container--default .select2-selection--multiple::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #555;
    pointer-events: none;
}

.select2-container--default.select2-container--open .select2-selection--multiple::after {
    border-top: none;
    border-bottom: 5px solid #555;
}

/* Dropdown menu */
.select2-dropdown {
    border: 1px solid #8c8f94;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Search box in dropdown */
.select2-container .select2-search--inline .select2-search__field,
.select2-search--dropdown .select2-search__field::placeholder {
    font-size: 14px!important;
    font-weight: 500!important;
    font-family: "Nunito Sans", sans-serif!important;
    color: #495057!important;
}
.select2-search--dropdown {
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}


/* Dropdown options */
.select2-results__option {
    padding: 8px;
    font-size: 14px;
}

/* Highlighted option */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #2271b1;
    color: #fff;
}

/* Overall Select2 container */
.select2-container {
    font-size: 14px;
}



.sba-filter-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.sba-clear-filters {
    /* Button styles now handled by .sba-btn classes */
    position: relative;
    overflow: hidden;
}

.sba-clear-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sba-clear-filters:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sba-search-filters {
        padding: 24px 20px;
        margin-bottom: 30px;
    }
    
    .sba-search input {
        max-width: 100%;
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .sba-search button {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
    
    .sba-filters {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sba-filter-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .sba-filter-actions .sba-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sba-search-filters {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .sba-search input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .sba-filters select {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ========================================
   Page specific styles
   ======================================== */

.sba-modules-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sba-page-results {
    margin-top: 30px;
}

.sba-page-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.sba-page-results-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.sba-page-results-count {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.sba-page-results-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.sba-page-results-grid-1 {
    grid-template-columns: 1fr;
}

.sba-page-results-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sba-page-results-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sba-page-results-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sba-no-page-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.sba-no-page-results p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* Difficulty Badge Colors */
.sba-difficulty-beginner {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.sba-difficulty-intermediate {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
}

.sba-difficulty-advanced {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Responsive Design for Modules */
@media (max-width: 1024px) {
    .sba-modules-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sba-modules-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sba-modules-frontend {
        padding: 15px;
    }
    
    .sba-modules-header h2 {
        font-size: 2rem;
    }
    
    .sba-modules-grid-4,
    .sba-modules-grid-3,
    .sba-modules-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .sba-modules-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .sba-modules-header h2 {
        font-size: 1.8rem;
    }
    
    .sba-modules-count {
        font-size: 1rem;
    }
}

/* ========================================
   SEARCH CARD COMPONENT
   ======================================== */
.sba-search-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sba-search-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Featured image styles */
.sba-search-card-image {
    width: calc(100% + 40px);
    flex: 0 0 0;
    min-height: 150px;
    max-height: 250px;
    overflow: hidden;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.sba-search-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.sba-card-featured-image {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    display: block;
}

.sba-search-card-header {
    margin-bottom: 15px;
}

.sba-search-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.sba-search-card-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.sba-search-card-title a:hover {
    color: #005177;
}

/* Sticky post icon */
.sba-sticky-icon {
    margin-left: 8px;
    color: var(--sba-color-primary);
    font-size: 0.9em;
    vertical-align: middle;
}

.sba-search-card-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.sba-sticky-post .sba-search-card-title {
    font-weight: 600;
}

.sba-search-card-subtitle {
    font-style: italic;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.sba-search-card-content {
    flex-grow: 1;
    margin-bottom: 15px;
}

.sba-search-card-description {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

.sba-search-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.sba-search-card-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.sba-search-card-taxonomies {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.sba-search-card-taxonomies > div {
    margin-bottom: 5px;
}

.sba-search-card-taxonomies strong {
    margin-right: 5px;
}

.sba-search-card-external {
    margin-bottom: 15px;
    font-size: 14px;
}

.sba-search-card-external a {
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.sba-search-card-external a:hover {
    color: #005177;
    text-decoration: underline;
}

.sba-search-card-file {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.sba-search-card-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sba-search-card-file-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.sba-search-card-file-icon {
    font-size: 16px;
}

.sba-search-card-file-meta {
    color: #6c757d;
    font-size: 12px;
}

.sba-search-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sba-search-card-date {
    font-size: 12px;
    color: #999;
}

.sba-search-card-author {
    font-size: 12px;
    color: #999;
}

.sba-search-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sba-search-card-visibility {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sba-search-card-visibility.sba-visibility-public {
    background: #d4edda;
    color: #155724;
}

.sba-search-card-visibility.sba-visibility-private {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive adjustments for search cards */
@media (max-width: 768px) {
    .sba-search-card {
        padding: 15px;
    }
    
    .sba-search-card-title {
        font-size: 16px;
    }
    
    .sba-search-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sba-search-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */
.sba-load-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.sba-load-more-btn {
    background: var(--sba-color-primary, #cda34f);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sba-load-more-btn:hover {
    background: #b58e3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.sba-load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sba-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sba-load-more-loading {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.sba-load-more-counter {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.sba-load-more-counter .sba-showing-count,
.sba-load-more-counter .sba-total-count {
    font-weight: 600;
    color: var(--sba-color-primary, #cda34f);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--sba-color-primary, #cda34f);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.scroll-to-top-btn.visible {
    bottom: 30px;
    opacity: 1;
    animation: slideUp 0.4s ease-out;
}

.scroll-to-top-btn:hover {
    background: #b58e3d;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        bottom: -60px;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .scroll-to-top-btn.visible {
        bottom: 20px;
    }
    
    @keyframes slideUp {
        from {
            bottom: -60px;
            opacity: 0;
        }
        to {
            bottom: 20px;
            opacity: 1;
        }
    }
}

/* ========================================
   GRID SYSTEM
   ======================================== */

.sba-grid {
    display: grid;
    gap: 20px;
}

.sba-grid-1 { grid-template-columns: 1fr; }
.sba-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sba-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sba-grid-4 { grid-template-columns: repeat(4, 1fr); }

.sba-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sba-grid-auto-sm {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.sba-grid-auto-lg {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.sba-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sba-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sba-card-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.sba-card-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
}

.sba-card-content {
    padding: 20px 25px;
}

.sba-card-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}


}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */

.sba-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.sba-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.sba-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sba-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.sba-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Sizes */
.sba-button-small {
    padding: 8px 16px;
    font-size: 12px;
}

.sba-button-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Button Variants */
.sba-button-primary {
    background: #0073aa;
}

.sba-button-primary:hover {
    background: #005a87;
}

.sba-button-secondary {
    background: #6c757d;
}

.sba-button-secondary:hover {
    background: #545b62;
}

.sba-button-success {
    background: #28a745;
}

.sba-button-success:hover {
    background: #1e7e34;
}

.sba-button-danger {
    background: #dc3545;
}

.sba-button-danger:hover {
    background: #c82333;
}

.sba-button-warning {
    background: #ffc107;
    color: #212529;
}

.sba-button-warning:hover {
    background: #e0a800;
    color: #212529;
}

/* Button States */
.sba-button.loading {
    position: relative;
    color: transparent;
}

.sba-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   FORM COMPONENTS
   ======================================== */

.sba-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.sba-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sba-form-input {
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

.sba-form-input:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.sba-form-input::placeholder {
    color: #999;
}

.sba-form-input:invalid {
    border-color: #dc3545;
}

.sba-form-input:valid {
    border-color: #28a745;
}

.sba-form-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.sba-form-input.success {
    border-color: #28a745;
    background-color: #f8fff8;
}

.sba-form-select {
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.sba-form-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.sba-form-textarea {
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.sba-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* ========================================
   BADGE COMPONENTS
   ======================================== */



.sba-badge-type {
    background: #e3f2fd;
    color: #1565c0;
}

.sba-badge-difficulty {
    background: #f3e5f5;
    color: #7b1fa2;
}

.sba-badge-difficulty.sba-difficulty-beginner {
    background: #e8f5e9;
    color: #2e7d32;
}

.sba-badge-difficulty.sba-difficulty-intermediate {
    background: #fff3e0;
    color: #ef6c00;
}

.sba-badge-difficulty.sba-difficulty-advanced {
    background: #ffebee;
    color: #c62828;
}

.sba-badge-time {
    background: #fff9c4;
    color: #f57f17;
}

.sba-badge {
    font-size: 12px;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75em;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.sba-badge a {
    color: white !important;
    text-decoration: none !important;
}

.sba-badge-primary {
    background: #0073aa;
}

.sba-badge-secondary {
    background: #6c757d;
}

.sba-badge-success {
    background: #28a745;
}

.sba-badge-danger {
    background: #dc3545;
}

.sba-badge-warning {
    background: #ffc107;
    color: #212529;
}

.sba-badge-info {
    background: #17a2b8;
}

.sba-badge-module-type {
    background: #667eea;
}

.sba-badge-content-type {
    background: var(--sba-color-academy-purple);
}

.sba-badge-format {
    background: var(--sba-color-club-green);
}

.sba-badge-language {
    background: var(--sba-color-speaking-rosa);
}

/* ========================================
   TAG COMPONENTS
   ======================================== */

.sba-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
}

.sba-tag:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* ========================================
   MESSAGE COMPONENTS
   ======================================== */

.sba-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.sba-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sba-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sba-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.sba-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========================================
   RESPONSIVE GRID SYSTEM
   ======================================== */

@media (max-width: 1200px) {
    .sba-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sba-grid-3,
    .sba-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sba-grid-2,
    .sba-grid-3,
    .sba-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .sba-card-header,
    .sba-card-content,
    .sba-card-footer {
        padding: 15px 20px;
    }
    
    .sba-info-card {
        padding: 20px;
    }
    
    .sba-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sba-card-header,
    .sba-card-content,
    .sba-card-footer {
        padding: 12px 15px;
    }
    
    .sba-info-card {
        padding: 15px;
    }
}

/* Tooltips */
.sba-tooltip {
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 200px;
    word-wrap: break-word;
}

.sba-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Notifications */
.sba-notification {
    position: fixed;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 400;
    z-index: 10000;
    /* max-width: 300px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease, top 0.3s ease;
    word-wrap: break-word;
}

/* Mobile responsive positioning */
@media (max-width: 768px) {
    .sba-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .sba-notification.show {
        transform: translateY(0);
    }
}

.sba-notification.show {
    transform: translateX(0);
}

.sba-notification-info {
    background: #0073aa;
}

.sba-notification-success {
    background: #28a745;
}

.sba-notification-error {
    background: #dc3545;
}

.sba-notification-warning {
    background: #ffc107;
    color: #333;
}

/* Mobile Menu */
.sba-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
}

.sba-mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .sba-mobile-menu-toggle {
        display: block;
    }
    
    .sba-mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .sba-mobile-menu.active {
        left: 0;
    }
    
    .sba-mobile-menu-toggle.active {
        color: #0073aa;
    }
}

/* Skip Link */
.sba-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.sba-skip-link:focus {
    top: 0;
}

/* Clickable Elements */
.sba-clickable {
    cursor: pointer;
    user-select: none;
}

.sba-clickable:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading States */
.sba-loading:not(.sba-login-button .sba-loading) {
    position: relative;
    color: transparent;
}

.sba-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Enhancements */
.sba-form-loading input[type="submit"],
.sba-form-loading button[type="submit"] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Message Styles */
.sba-message {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-weight: 500;
}

.sba-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sba-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sba-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.sba-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Animations */
.sba-animated {
    transition: all 0.3s ease;
}

.sba-fade-in {
    animation: fadeIn 0.5s ease;
}

.sba-slide-up {
    animation: slideUp 0.5s ease;
}

.sba-slide-down {
    animation: slideDown 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Utilities */
.sba-hidden-mobile {
    display: block;
}

.sba-hidden-desktop {
    display: none;
}

@media (max-width: 768px) {
    .sba-hidden-mobile {
        display: none;
    }
    
    .sba-hidden-desktop {
        display: block;
    }
}

/* Focus Management */
.sba-focus-trap {
    position: relative;
}

.sba-focus-trap:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .sba-tooltip {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .sba-notification {
        border: 2px solid #000;
    }
    
    .sba-message {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .sba-animated,
    .sba-fade-in,
    .sba-slide-up,
    .sba-slide-down {
        animation: none;
        transition: none;
    }
    
    .sba-mobile-menu {
        transition: none;
    }
    
    .sba-skip-link {
        transition: none;
    }
}

/* SBA Menu Items in Primary Navigation */
.sba-menu-item {
    position: relative;
}

.sba-menu-item .sba-menu-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.sba-menu-item .sba-menu-link:hover {
    background-color: rgba(0, 115, 170, 0.1);
    color: #0073aa;
}

.sba-menu-item.sba-dashboard-item .sba-menu-link {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.sba-menu-item.sba-dashboard-item .sba-menu-link:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    color: white;
}

.sba-menu-item.sba-profile-item .sba-menu-link {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.sba-menu-item.sba-profile-item .sba-menu-link:hover {
    background-color: #e9ecef;
    border-color: #0073aa;
    color: #0073aa;
}

.sba-menu-item.sba-login-item .sba-menu-link {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
}

.sba-menu-item.sba-login-item .sba-menu-link:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}


/* Responsive adjustments for menu items */
@media (max-width: 768px) {
    .sba-menu-item .sba-menu-link {
        padding: 0.75rem 1rem;
        margin: 2px 0;
        text-align: center;
    }
}

/* SBA Top Header Styles */
.sba-top-header {
    background: #f2f2f2;
    color: #333;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 1000;
}

.sba-top-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
}

.sba-top-header-left {
    display: flex;
    align-items: center;
}

.sba-top-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sba-contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sba-contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sba-contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sba-contact-info a:hover {
    color: #0073aa;
}

.sba-contact-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #3498db;
}

.sba-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sba-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sba-social-link:hover {
    background: #CDA34F;
    color: #fff;
    transform: translateY(-2px);
}

.sba-social-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sba-top-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sba-top-nav-menu {
    display: flex;
    align-items: center;
}

.sba-top-nav-items {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sba-top-nav-items .menu-item {
    margin: 0;
    padding: 0;
}

.sba-top-nav-items .sba-menu-link {
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
}

.sba-top-nav-items .menu-item.current-menu-item .sba-menu-link,
.sba-top-nav-items .sba-menu-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--sba-color-gold) !important;
}


/* Footer Styling */
.site-footer {
    background: #2c3e50;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    padding: 20px 0;
    color: #d1d1d1;
}

.site-footer h5 {
    color: #fff;
}

.site-footer a:link,
.site-footer a:visited {
    color: #d1d1d1;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer a:active {
    color: #fff;
}

.sba-social-links {
    padding-top: 20px;
}

/* Site Info */
.site-info {
    background: #34495e;
    padding: 20px 0;
    font-size: 12px;
}

.site-info .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-right a {
    color: #0073aa;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .site-info .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        padding: 30px 0;
    }
    
    .footer-widgets-container {
        padding: 0 15px;
    }
    
    .footer-columns {
        gap: 25px;
    }
}


.sba-currently-viewing {
    color: #27ae60;
    font-weight: 500;
    font-size: 11px;
    background: var(--sba-color-eggshell-light);
    padding: 3px 8px;
    border-radius: 4px;
    border-left: 3px solid var(--sba-color-gold);
    display: inline-block;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sba-currently-viewing .sba-top-menu-product-link,
.sba-currently-viewing .sba-top-menu-class-link {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.sba-top-link {
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sba-top-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0073aa;
}

.sba-top-link.sba-login-link {
    background: #27ae60;
    color: #fff;
}

.sba-top-link.sba-login-link:hover {
    background: #2ecc71;
    color: #fff;
}

.sba-top-link.sba-register-link {
    background: #3498db;
    color: #fff;
}

.sba-top-link.sba-register-link:hover {
    background: #5dade2;
    color: #fff;
}

/* Mobile Toggle for Top Header */
.sba-top-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sba-top-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Top Header */
@media (max-width: 768px) {
    .sba-top-header {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .sba-top-header-container {
        padding: 0 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .sba-top-header-left,
    .sba-top-header-right {
        width: 100%;
        justify-content: center;
    }
    
    .sba-contact-info {
        gap: 15px;
    }
    
    .sba-social-links {
        gap: 8px;
    }
    
    .sba-social-link {
        width: 28px;
        height: 28px;
    }
    
    .sba-top-menu {
        gap: 10px;
    }
    
    .sba-top-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .sba-top-nav-items {
        gap: 8px;
    }
    
    .sba-top-nav-items .sba-menu-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    
    .sba-currently-viewing {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .sba-top-mobile-toggle {
        display: block;
    }
    
    .sba-top-header.mobile-open .sba-top-header-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .sba-top-header.mobile-open .sba-social-links,
    .sba-top-header.mobile-open .sba-top-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sba-top-header {
        padding: 4px 0;
    }
    
    .sba-top-header-container {
        padding: 0 10px;
    }
    
    .sba-contact-info {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .sba-social-links {
        justify-content: center;
    }
    
    .sba-top-menu {
        flex-direction: column;
        gap: 6px;
    }
    
    
    
    .sba-currently-viewing {
        font-size: 9px;
        padding: 2px 4px;
        border-left-width: 2px;
    }
    
    .sba-top-nav-items {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .sba-top-nav-items .sba-menu-link {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* SBA Dynamic Header Menu Styles */
.sba-header-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* User Menu (Logged In) */
.sba-user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sba-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.sba-user-info:hover {
    background: #e9ecef;
    border-color: #0073aa;
}

.sba-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0073aa;
}

.sba-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sba-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sba-user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
}

.sba-user-role {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sba-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Guest Menu (Not Logged In) */
.sba-guest-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Menu Links */
.sba-header-menu .sba-menu-link {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--contrast, #333);
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sba-header-menu .sba-menu-link:hover {
    color: var(--accent, #0073aa);
    text-decoration: none;
}

.sba-header-menu .sba-menu-link:active {
    transform: translateY(0);
}

.sba-header-menu .sba-menu-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Style Variations */
.sba-header-menu-compact .sba-user-info {
    padding: 6px 10px;
}

.sba-header-menu-compact .sba-user-avatar {
    width: 28px;
    height: 28px;
}

.sba-header-menu-compact .sba-user-name {
    font-size: 13px;
}

.sba-header-menu-compact .sba-user-role {
    font-size: 11px;
}

.sba-header-menu-compact .sba-menu-link {
    padding: 6px 12px;
    font-size: 13px;
}

.sba-header-menu-minimal .sba-user-info {
    background: transparent;
    border: none;
    padding: 4px 8px;
}

.sba-header-menu-minimal .sba-user-info:hover {
    background: #f8f9fa;
}

.sba-header-menu-minimal .sba-menu-link {
    background: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
    padding: 6px 12px;
}

.sba-header-menu-minimal .sba-menu-link:hover {
    background: #0073aa;
    color: white;
}

/* Mobile Menu Toggle */
.sba-mobile-toggle {
    display: none;
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
}

/* Tooltip Styles for Header Menu */
.sba-header-menu .sba-tooltip {
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sba-header-menu .sba-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}

/* Feedback Messages */
.sba-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.sba-feedback-success {
    background: #28a745;
}

.sba-feedback-error {
    background: #dc3545;
}

.sba-feedback-info {
    background: #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hover states for better UX */
.sba-user-info.hovered {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.sba-header-menu .sba-menu-link.focused {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading animation for menu links */
.sba-header-menu .sba-menu-link.loading .dashicons {
    animation: spin 1s linear infinite;
}

/* Animation for menu appearance */
.sba-header-menu {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for user info */
.sba-user-info {
    position: relative;
    overflow: hidden;
}

.sba-user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sba-user-info:hover::before {
    left: 100%;
}

/* Focus states for accessibility */
.sba-header-menu .sba-menu-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sba-user-info:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading state */
.sba-header-menu .sba-menu-link.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design for Header Menu */
@media (max-width: 768px) {
    .sba-header-menu {
        gap: 12px;
    }
    
    .sba-user-menu {
        gap: 12px;
    }
    
    .sba-user-info {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .sba-user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .sba-user-name {
        font-size: 13px;
    }
    
    .sba-user-role {
        font-size: 11px;
    }
    
    .sba-header-menu .sba-menu-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .sba-user-actions {
        gap: 6px;
    }
    
    .sba-mobile-toggle {
        display: block;
    }
    
    .sba-header-menu.mobile-open .sba-user-actions,
    .sba-header-menu.mobile-open .sba-guest-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #e1e1e1;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 10px;
        z-index: 1000;
        min-width: 200px;
    }
    
    .sba-header-menu.mobile-open .sba-user-actions {
        display: none;
    }
    
    .sba-user-actions.mobile-visible {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .sba-header-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        position: relative;
    }
    
    .sba-user-menu {
        flex-direction: column;
        gap: 8px;
    }
    
    .sba-user-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .sba-guest-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .sba-header-menu .sba-menu-link {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .sba-header-menu.mobile-open .sba-user-actions,
    .sba-header-menu.mobile-open .sba-guest-menu {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        min-width: auto;
    }
    
    .sba-mobile-toggle {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
}

/* Dark mode support for header menu */
@media (prefers-color-scheme: dark) {
    .sba-user-info {
        background: #2a2a2a;
        border-color: #444;
        color: #e1e1e1;
    }
    
    .sba-user-info:hover {
        background: #333;
        border-color: #0073aa;
    }
    
    .sba-user-name {
        color: #e1e1e1;
    }
    
    .sba-user-role {
        color: #ccc;
    }
    
    .sba-header-menu-minimal .sba-user-info:hover {
        background: #2a2a2a;
    }
    
    .sba-header-menu-minimal .sba-menu-link {
        color: #0073aa;
        border-color: #0073aa;
    }
    
    .sba-header-menu-minimal .sba-menu-link:hover {
        background: #0073aa;
        color: white;
    }
}

/* SBA Members Gallery Styles */
.sba-members-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sba-members-header {
    text-align: center;
    margin-bottom: 30px;
}

.sba-members-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 600;
}

.sba-members-count {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.sba-members-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.sba-members-empty p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.sba-members-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.sba-members-grid-1 {
    grid-template-columns: 1fr;
}

.sba-members-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sba-members-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sba-members-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sba-member-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sba-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.sba-member-avatar {
    margin-bottom: 15px;
}

.sba-member-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0073aa;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.sba-member-info {
    text-align: center;
}

.sba-member-name {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.sba-member-role {
    margin-bottom: 10px;
}

.sba-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sba-role-badge.sba-role-member {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.sba-role-badge.sba-role-administrator {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.sba-role-badge.sba-role-editor {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.sba-role-badge.sba-role-author {
    background: #e8f5e8;
    color: #388e3c;
    border: 1px solid #a5d6a7;
}

.sba-role-badge.sba-role-contributor {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}

.sba-role-badge.sba-role-subscriber {
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}

.sba-member-email {
    margin-top: 10px;
}

.sba-member-email a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.sba-member-email a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Team Link Loading States */
.sba-class-link.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.sba-class-link.loading .sba-class-name::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.sba-clear-selection.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.sba-clear-selection.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

/* Responsive Design for Members Gallery */
@media (max-width: 768px) {
    .sba-members-gallery {
        padding: 15px;
    }
    
    .sba-members-header h2 {
        font-size: 1.5rem;
    }
    
    .sba-members-count {
        font-size: 1rem;
    }
    
    .sba-members-grid-2,
    .sba-members-grid-3,
    .sba-members-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .sba-member-card {
        padding: 15px;
    }
    
    .sba-member-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .sba-member-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sba-members-gallery {
        padding: 10px;
    }
    
    .sba-members-header {
        margin-bottom: 20px;
    }
    
    .sba-members-header h2 {
        font-size: 1.3rem;
    }
    
    .sba-member-card {
        padding: 12px;
    }
    
    .sba-member-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .sba-member-name {
        font-size: 1rem;
    }
    
    .sba-role-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Print Styles */
@media print {
    .sba-mobile-menu,
    .sba-mobile-menu-toggle,
    .sba-tooltip,
    .sba-notification,
    .sba-skip-link,
    .sba-header-menu {
        display: none !important;
    }
}


.sba-modules-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sba-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.sba-organized-insighthub-view {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.sba-categories-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #6c757d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sba-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.sba-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sba-category-list-item {
    margin-bottom: 10px;
}

.sba-category-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #3e3e3e;
}

.sba-category-link:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.sba-categories-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sba-category-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.sba-category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sba-category-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sba-category-title {
    color: #0073aa;
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.sba-category-description {
    color: #666;
    margin: 0;
    font-style: italic;
    font-size: 0.95em;
}

.sba-category-modules {
    padding: 20px;
}

.sba-modules-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sba-module-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sba-module-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sba-related-link,
.sba-file-link {
    color: var(--sba-color-gold);
    font-weight: 400;
    font-size: 1em;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.sba-related-link:hover {
    color: #0073aa;
}

.sba-tag-link {
    border: 1px solid var(--sba-color-corporate-blue);
    padding: 2px 8px;
    display: inline-block;
    border-radius: 4px;
}

.sba-module-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sba-meta-badge {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    display: inline-block;
}

.sba-difficulty-beginner {
    background: #d4edda;
    color: #155724;
}

.sba-difficulty-intermediate {
    background: #fff3cd;
    color: #856404;
}

.sba-difficulty-advanced {
    background: #f8d7da;
    color: #721c24;
}

.sba-no-modules {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0;
}

/* Force override any theme styles */
.sba-modules-frontend * {
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .sba-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sba-modules-frontend {
        padding: 15px;
    }

    .sba-category-title {
        font-size: 1.3em;
    }
}

/* InsightHub Pinboard Styles */
.sba-add-to-insighthub::before,
.sba-remove-from-insighthub::before {
    content: '\f276';
    margin-right: 5px;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}


.sba-remove-from-insighthub {
    background: #f8f8f8;
}

.sba-remove-from-insighthub:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.sba-remove-from-insighthub:before {
    content: "\f146";
    margin-right: 5px;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sba-add-to-insighthub.loading,
.sba-remove-from-insighthub.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* InsightHub Modal Styles */
.sba-insighthub-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sba-insighthub-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.sba-insighthub-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.sba-insighthub-modal-header h3 {
    margin: 0;
    color: #333;
}

.sba-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sba-close-modal:hover {
    color: #333;
}

.sba-insighthub-modal-content {
    padding: 20px;
}

.sba-form-group {
    margin-bottom: 20px;
}

.sba-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.sba-form-group input,
.sba-form-group textarea,
.sba-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: white;
}
/*
.sba-form-group textarea {
    resize: vertical;
    min-height: 80px;
}
*/
.sba-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.sba-cancel-btn,
.sba-add-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sba-cancel-btn {
    background: #f0f0f0;
    color: #333;
}

.sba-cancel-btn:hover {
    background: #e0e0e0;
}

.sba-add-btn {
    background: #0073aa;
    color: white;
}

.sba-add-btn:hover {
    background: #005177;
}

.sba-add-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* My InsightHub Styles */
.sba-my-insighthub {
    margin: 20px 0;
}

.sba-my-insighthub-header {
    margin-bottom: 30px;
    text-align: center;
}

.sba-my-insighthub-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.sba-insighthub-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.sba-my-insighthub-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.sba-my-insighthub-empty h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.sba-my-insighthub-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.sba-grid-1 { grid-template-columns: 1fr; }
.sba-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sba-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sba-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* InsightHub cards - consolidated with search card styles */
.sba-insighthub-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sba-insighthub-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sba-insighthub-card-header {
    margin-bottom: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.sba-insighthub-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.sba-insighthub-title a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sba-insighthub-title a:hover {
    color: #005177;
    text-decoration: underline;
}

.sba-insighthub-visibility {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sba-visibility-public {
    background: #d4edda;
    color: #155724;
}

.sba-visibility-private {
    background: #f8d7da;
    color: #721c24;
}

.sba-insighthub-card-content {
    flex-grow: 1;
    margin-bottom: 15px;
    padding: 15px 20px;
}

.sba-insighthub-excerpt {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

.sba-insighthub-external {
    margin-bottom: 15px;
    font-size: 14px;
}

.sba-insighthub-external a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
    font-size: 14px;
}

.sba-insighthub-external a:hover {
    color: #005177;
    text-decoration: underline;
}

.sba-insighthub-related {
    font-size: 14px;
    color: #666;
}

.sba-insighthub-modules,
.sba-insighthub-tools {
    margin-bottom: 8px;
}

.sba-insighthub-modules strong,
.sba-insighthub-tools strong {
    color: #333;
}

.sba-insighthub-modules a,
.sba-insighthub-tools a {
    color: #0073aa;
    text-decoration: none;
}

.sba-insighthub-modules a:hover,
.sba-insighthub-tools a:hover {
    text-decoration: underline;
}

.sba-insighthub-card-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.sba-insighthub-date {
    font-size: 12px;
    color: #999;
}

.sba-insighthub-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sba-button {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sba-button:hover {
    background: #005177;
    color: white;
    text-decoration: none;
}

.sba-button-small {
    padding: 4px 8px;
    font-size: 12px;
}

.sba-button-danger {
    background: #dc3545;
}

.sba-button-danger:hover {
    background: #c82333;
}

.sba-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sba-grid-2,
    .sba-grid-3,
    .sba-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .sba-insighthub-card {
        padding: 15px;
    }
    
    .sba-insighthub-title {
        font-size: 16px;
    }
    
    .sba-insighthub-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sba-insighthub-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sba-insighthub-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ========================================
   USER DASHBOARD STYLES
   ======================================== */

.sba-frontend-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #6b7280;
    background: white;
}

.sba-user-info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sba-user-info-section h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

/* Selection Header */
.sba-selection-header {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sba-selection-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.sba-selection-label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.sba-selection-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sba-selection-item {
    display: inline-flex;
    align-items: center;
    background: #6b7280;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(107, 114, 128, 0.2);
}

.sba-selection-role {
    background: var(--sba-color-consulting-blue);
}

.sba-selection-class {
    background: var(--sba-color-academy-purple);
    color: rgba(255, 255, 255, 0.8);
}

.sba-selection-class:hover {
    color: rgba(255, 255, 255, 1);
}

.sba-auto-selected {
    font-size: 10px;
    opacity: 0.9;
    font-style: italic;
}

.sba-selection-type {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

.sba-selection-separator {
    color: #666;
    font-weight: bold;
    font-size: 16px;
}

.sba-selection-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sba-clear-all {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #f3f4f6;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sba-clear-all:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

/* Auto-selection info */
.sba-auto-selection-info {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.sba-info-icon {
    margin-right: 4px;
}

/* Current Selection Shortcode */
.sba-current-selection {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sba-current-selection h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.sba-dashboard-link {
    display: inline-block;
    background: #6b7280;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(107, 114, 128, 0.2);
}

.sba-dashboard-link:hover {
    background: #4b5563;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

/* Roles Section */
.sba-roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sba-role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: #666;
}

.sba-role-badge.sba-role-sba_member {
    background: #0073aa;
}

.sba-role-badge.sba-role-administrator {
    background: #dc3232;
}

.sba-role-badge.sba-role-editor {
    background: #00a32a;
}

.sba-role-badge.sba-role-author {
    background: #826eb4;
}

.sba-role-badge.sba-role-contributor {
    background: #f56e28;
}

.sba-role-badge.sba-role-subscriber {
    background: #8c8f94;
}

.sba-primary-role-badge {
    background: #0073aa !important;
    font-size: 14px;
    padding: 8px 16px;
}

.sba-no-roles {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Roles & Teams Cards Section */
.sba-roles-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 15px;
    padding: 0;
}

.sba-role-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-left: 4px solid #6b7280;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sba-role-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transform: translateY(-1px);
    border-color: #d1d5db;
}

.sba-role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.sba-role-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.sba-role-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sba-role-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

.sba-role-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.sba-role-description {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
}

.sba-role-classes h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sba-role-classes .sba-classes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sba-role-classes .sba-class-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.sba-role-classes .sba-class-item:hover {
    background: #f3f4f6;
}

.sba-role-classes .sba-class-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
}

.sba-class-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.sba-class-link:hover {
    color: #6b7280;
    text-decoration: underline;
}

.sba-class-link:hover .sba-class-name {
    color: #6b7280;
}

.sba-class-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.sba-no-teams-in-role {
    margin: 0;
    color: #999;
    font-style: italic;
    font-size: 13px;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.sba-no-roles-teams {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-style: italic;
}

.sba-no-roles-teams p {
    margin: 0;
    font-size: 14px;
}

/* WordPress Role Cards */
.sba-wp-role-card {
    border-left-color: #8c8f94;
}

.sba-wp-role-card .sba-role-type {
    background: #e7e7e7;
    color: #666;
}

/* Teams Section (Legacy - for backward compatibility) */
.sba-classes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sba-class-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sba-class-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.sba-team-role {
    font-size: 12px;
    color: #0073aa;
    background: #e7f3ff;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.sba-no-teams {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Primary Role Section */
.sba-primary-role {
    text-align: center;
}

.sba-role-description {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Access Information Section */
.sba-access-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.sba-access-info p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

.sba-access-info ul {
    margin: 0;
    padding-left: 20px;
}

.sba-access-info li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.sba-access-info li:before {
    content: "✓";
    color: #00a32a;
    font-weight: bold;
    margin-right: 8px;
}

/* Compact Mode */
.sba-frontend-dashboard.sba-compact .sba-user-info-section {
    padding: 12px;
    margin-bottom: 15px;
}

.sba-frontend-dashboard.sba-compact .sba-user-info-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sba-frontend-dashboard.sba-compact .sba-role-badge {
    font-size: 11px;
    padding: 4px 8px;
}

.sba-frontend-dashboard.sba-compact .sba-class-item {
    padding: 8px;
}

.sba-frontend-dashboard.sba-compact .sba-class-name {
    font-size: 14px;
}

.sba-frontend-dashboard.sba-compact .sba-access-info {
    padding: 10px;
}

.sba-frontend-dashboard.sba-compact .sba-access-info ul {
    font-size: 13px;
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.sba-profile-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sba-profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.sba-profile-header h2 {
    margin: 0;
    color: #374151;
    font-size: 1.8rem;
    font-weight: 600;
}

.sba-profile-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.sba-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #f3f4f6;
    transition: border-color 0.3s ease;
}

.sba-profile-avatar img:hover {
    border-color: #6b7280;
}

.sba-profile-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.sba-profile-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sba-profile-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sba-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sba-profile-submit {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
    box-shadow: 0 1px 2px rgba(107, 114, 128, 0.2);
}

.sba-profile-submit:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.sba-profile-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(107, 114, 128, 0.3);
}

.sba-profile-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state */
.sba-profile-submit.loading {
    position: relative;
    color: transparent;
}

.sba-profile-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.sba-form-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Profile Picture Upload Styles */
.sba-profile-picture-group {
    margin-bottom: 25px;
}

.sba-profile-picture-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.sba-current-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sba-current-avatar img {
    border-radius: 50%;
    border: 3px solid #e1e1e1;
    transition: border-color 0.3s ease;
}

.sba-avatar-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.sba-upload-area {
    flex: 1;
}

.sba-file-input {
    display: none;
}

.sba-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 2px dashed #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
}

.sba-upload-button:hover {
    background: #f3f4f6;
    border-color: #4b5563;
    color: #4b5563;
    transform: translateY(-1px);
}

.sba-upload-icon {
    font-size: 1.2rem;
}

.sba-upload-text {
    font-size: 0.95rem;
}

.sba-file-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.sba-file-name {
    display: block;
    font-weight: 500;
}

.sba-file-size {
    display: block;
    color: #999;
}

.sba-upload-help {
    margin-top: 8px;
    color: #666;
}

.sba-upload-help small {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* File upload states */
.sba-file-input:focus + .sba-upload-button {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

.sba-upload-button.dragover {
    background: #f3f4f6;
    border-color: #4b5563;
    color: #4b5563;
}

/* Responsive Design for Dashboard and Profile */
@media (max-width: 768px) {
    .sba-user-info-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .sba-roles-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sba-role-card {
        padding: 15px;
    }
    
    .sba-role-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sba-role-title {
        font-size: 16px;
    }
    
    .sba-role-classes .sba-class-item {
        padding: 8px;
    }
    
    .sba-role-classes .sba-class-name {
        font-size: 13px;
    }
    
    .sba-selection-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .sba-selection-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sba-selection-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    

    
    .sba-profile-header h2 {
        font-size: 1.5rem;
    }
    
    .sba-form-group input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .sba-profile-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .sba-profile-picture-upload {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .sba-current-avatar {
        align-self: center;
    }
    
    .sba-upload-button {
        justify-content: center;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .sba-roles-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sba-role-card {
        padding: 16px;
    }
    
    .sba-role-title {
        font-size: 16px;
    }
    
    .sba-class-description {
        font-size: 11px;
    }
    
    .sba-roles-list {
        gap: 6px;
    }
    
    .sba-role-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .sba-class-item {
        padding: 10px;
    }
    
    .sba-class-name {
        font-size: 14px;
    }
    
    .sba-profile-form-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .sba-profile-header {
        margin-bottom: 1.5rem;
    }
    
    .sba-profile-form {
        gap: 1.25rem;
    }
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */


html { 
    margin-top: 0 !important; 
}

body.admin-bar { 
    margin-top: 32px !important; 
}

body.admin-bar .site-header { 
    top: 0 !important; 
}

/* Modules Overview */
.sba-modules-overview {
    margin-top: 20px;
}

.sba-modules-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.sba-stat-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    flex: 1;
}

.sba-stat-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 14px;
}

.sba-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
}

.sba-quick-actions {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.sba-quick-actions h2 {
    margin-top: 0;
}

.sba-quick-actions .button {
    margin-right: 10px;
}

.sba-recent-modules {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.sba-recent-modules h2 {
    margin-top: 0;
}

.sba-module-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sba-module-item {
    border-bottom: 1px solid #f0f0f1;
    padding: 15px 0;
}

.sba-module-item:last-child {
    border-bottom: none;
}

.sba-module-title a {
    text-decoration: none;
    font-weight: 500;
    color: #0073aa;
}

.sba-module-title a:hover {
    color: #005177;
}

.sba-module-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.sba-module-categories {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

/* Tools Overview */
.sba-tools-overview {
    margin-top: 20px;
}

.sba-tools-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.sba-recent-tools {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.sba-recent-tools h2 {
    margin-top: 0;
}

.sba-tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sba-tool-item {
    border-bottom: 1px solid #f0f0f1;
    padding: 15px 0;
}

.sba-tool-item:last-child {
    border-bottom: none;
}

.sba-tool-title a {
    text-decoration: none;
    font-weight: 500;
    color: #0073aa;
}

.sba-tool-title a:hover {
    color: #005177;
}

.sba-tool-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.sba-info-card-categories {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

/* InsightHub Overview */
.sba-insighthub-overview {
    margin-top: 20px;
}

.sba-insighthub-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.sba-recent-insights {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.sba-recent-insights h2 {
    margin-top: 0;
}

.sba-insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sba-insight-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.sba-insight-item:last-child {
    border-bottom: none;
}

.sba-insight-title {
    margin-bottom: 5px;
}

.sba-insight-title a {
    text-decoration: none;
    font-weight: 500;
    color: #0073aa;
}

.sba-insight-title a:hover {
    text-decoration: underline;
}

.sba-insight-meta {
    font-size: 12px;
    color: #666;
}

.sba-insight-meta span {
    margin-right: 15px;
}

.sba-insight-categories {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Member Professional Info */
.sba-member-professional {
    margin: 8px 0;
    font-size: 0.9em;
    color: #666;
}

.sba-member-title-company {
    font-weight: 500;
}

.sba-member-title {
    font-weight: 500;
}

.sba-member-company {
    font-style: italic;
}

.sba-member-work-phone {
    margin: 4px 0;
}

.sba-member-work-phone a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
}

.sba-member-work-phone a:hover {
    text-decoration: underline;
}

.sba-member-linkedin {
    margin: 4px 0;
}

.sba-member-linkedin a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
}

.sba-member-linkedin a:hover {
    text-decoration: underline;
}

/* Tools Frontend */
.sba-tools-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* InsightHub Frontend */
.sba-insighthub-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* InsightHub search filters now use general search classes */
.sba-insighthub-search-filters {
    /* Use general sba-search-filters styles */
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sba-insighthub-search {
    /* Use general sba-search styles */
    margin-bottom: 15px;
}

.sba-insighthub-search input {
    /* Use general sba-search input styles */
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sba-insighthub-search button {
    /* Use general sba-search button styles */
    margin-left: 10px;
}

.sba-insighthub-filters {
    /* Use general sba-filters styles */
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sba-insighthub-filters select {
    /* Use general sba-filters select styles */
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sba-insighthub-filters button {
    /* Use general sba-filters button styles */
}

.sba-insighthub-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sba-insighthub-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sba-insighthub-item h3 a {
    color: #333;
    text-decoration: none;
}

.sba-insighthub-item h3 a:hover {
    color: #0073aa;
}

.sba-insighthub-excerpt {
    margin-bottom: 15px;
    color: #666;
}

.sba-insighthub-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.sba-insighthub-meta span {
    margin-right: 15px;
}

.sba-insighthub-taxonomies {
    margin-bottom: 10px;
}

.sba-insighthub-categories,
.sba-insighthub-tags {
    font-size: 12px;
    margin-bottom: 5px;
}

.sba-insighthub-categories a,
.sba-insighthub-tags a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 5px;
}

.sba-insighthub-external a {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
}

.sba-insighthub-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Archive Override Styles */
.sba-modules-archive-override {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sba-modules-archive-override .entry-content {
    margin: 0;
    padding: 0;
}

.sba-modules-archive-override .sba-modules-frontend {
    margin: 0;
    padding: 0;
}

.sba-tools-archive-override {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sba-tools-archive-override .entry-content {
    margin: 0;
    padding: 0;
}

/* --------------------------------- */
/* Single Page Override */
/* --------------------------------- */


.sba-single-page-main-content {
    padding: 30px;
    min-width: 0;
        /* Prevents grid overflow */
}

.sba-single-page-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: fit-content;
}

.sba-single-page-sidebar .sba-info-card {
    margin-bottom: 20px;
}

/* Single Tool Override */
.sba-single-tool-override {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.sba-tool-main-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sba-tool-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.sba-tool-sidebar h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.sba-tool-sidebar .sba-tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sba-tool-sidebar .sba-meta-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.sba-tool-sidebar .sba-tool-taxonomies {
    margin-bottom: 20px;
}

.sba-tool-sidebar .sba-tool-url {
    margin-bottom: 20px;
}

.sba-tool-sidebar .sba-tool-external-link {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
    display: block;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sba-tool-sidebar .sba-tool-external-link:hover {
    color: #005177;
    text-decoration: underline;
}

.sba-tool-sidebar .sba-tool-file {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sba-tool-sidebar .sba-tool-file-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 8px;
}

.sba-tool-sidebar .sba-tool-file-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.sba-tool-sidebar .sba-file-icon {
    font-size: 16px;
}

.sba-tool-sidebar .sba-file-meta {
    color: #6c757d;
    font-size: 12px;
}

.sba-tool-sidebar .sba-tool-modules {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.sba-tool-sidebar .sba-module-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.sba-tool-sidebar .sba-module-link:hover {
    color: #005177;
    text-decoration: underline;
}

.sba-single-page-main-content h1 {
    margin-top: 0;
    color: #333;
}

.sba-single-page-main-content .sba-tool-subheading {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.sba-single-page-main-content .sba-tool-content-title {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.sba-single-page-main-content .entry-content {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sba-single-tool-override {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Single Page Override Styles */
.sba-single-page-override {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 20px 0;
}

.sba-single-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sba-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sba-info-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid var(--sba-color-primary);
    padding-bottom: 10px;
}

/* Frontend Edit Links */
.sba-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.sba-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.sba-edit-link:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.sba-edit-link i {
    font-size: 12px;
}

/* Class Single Page Override Styles */
.sba-class-parent-role {
    margin-top: 15px;
    font-size: 16px;
}

.sba-class-parent-role a {
    color: #fff;
    text-decoration: underline;
}

.sba-class-parent-role a:hover {
    color: #f0f0f0;
}

.sba-class-body {
    line-height: 1.6;
    color: #555;
}


.sba-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sba-dashboard-link:hover {
    background: #5a6fd8;
    color: #fff;
    text-decoration: none;
}


.sba-meta-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sba-meta-item:last-child {
    border-bottom: none;
}

.sba-meta-item strong {
    color: #333;
    display: inline-block;
    width: 100px;
}

.sba-meta-item a {
    color: #667eea;
    text-decoration: none;
}

.sba-meta-item a:hover {
    text-decoration: underline;
}

.sba-meta-label {
    font-weight: bold;
    margin-right: 5px;
}

/* Role Single Page Override Styles */


.sba-role-description,
.sba-role-requirements,
.sba-role-responsibilities {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #ff6b6b;
}

.sba-role-description h3,
.sba-role-requirements h3,
.sba-role-responsibilities h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.sba-role-body {
    line-height: 1.6;
    color: #555;
}

.sba-role-classes {
    margin-top: 30px;
}

.sba-role-classes h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.sba-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.sba-class-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.sba-class-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sba-class-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sba-class-card h4 a {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 16px;
}

.sba-class-card h4 a:hover {
    text-decoration: underline;
}

.sba-class-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.sba-role-meta {
    margin-top: 15px;
}

/* Selection Display Styles */
.sba-selection-display {
    margin-bottom: 15px;
}

.sba-selection-type {
    font-size: 12px;
    opacity: 0.8;
}

.sba-selection-separator {
    color: #666;
    margin: 0 5px;
}

.sba-auto-selected {
    color: #4caf50;
    font-weight: bold;
}

.sba-selection-actions {
    text-align: center;
}

.sba-clear-selection {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.sba-clear-selection:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sba-single-page-override {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    

    .sba-classes-grid {
        grid-template-columns: 1fr;
    }
    
    .sba-post-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tool Rating System Styles */
.sba-tool-rating {
    
}

.sba-rating-stars {
    position: relative;
    display: inline-block;
    margin-bottom: 0px;
}

.sba-rating-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 4px;
}

.sba-rating-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
    transition: width 0.3s ease;
    z-index: -1;
    min-height: 20px;
}

.sba-rating-stars-container {
    position: relative;
    display: flex;
    z-index: 3;
}

.sba-star {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 2px;
    border-radius: 2px;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
    background: transparent;
    position: relative;
    z-index: 2;
    -webkit-text-stroke: 1px #ddd;
    text-stroke: 1px #ddd;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.sba-star.filled {
    color: #ffd700 !important;
    -webkit-text-stroke: 1px #ffd700;
    text-stroke: 1px #ffd700;
    -webkit-text-fill-color: #ffd700;
    text-fill-color: #ffd700;
}

.sba-star:hover {
    transform: scale(1.1);
    color: #ffd700 !important;
    -webkit-text-stroke: 1px #ffd700;
    text-stroke: 1px #ffd700;
    -webkit-text-fill-color: #ffd700;
    text-fill-color: #ffd700;
}

.sba-rating-info {
    font-size: 14px;
    color: #666;
    margin-top: 0px;
}

.sba-rating-score {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.sba-rating-count {
    color: #999;
}

/* Rating Message Styles */
.sba-rating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sba-rating-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sba-rating-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Stars are now transparent with stroke, background fill shows through */

/* Hover effects for rating stars - handled by JavaScript */

/* Responsive rating system */
@media (max-width: 768px) {
    .sba-star {
        font-size: 18px;
    }
    
    .sba-rating-info {
        font-size: 13px;
    }
    
    .sba-rating-message {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Access Control Information Styles */
.sba-access-info {
    margin-top: 10px;
}

.sba-access-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.sba-access-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sba-role-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.sba-class-badge {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.sba-meta-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

/* Add to InsightHub Button Styles */
.sba-add-to-insighthub-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

.sba-add-to-insighthub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.sba-add-to-insighthub-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.sba-add-to-insighthub-btn.sba-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.sba-insighthub-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin: 15px 0;
}

.sba-insighthub-form h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.sba-insighthub-form .sba-form-group {
    margin-bottom: 15px;
}

.sba-insighthub-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.sba-insighthub-form input,
.sba-insighthub-form textarea,
.sba-insighthub-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.sba-insighthub-form input:focus,
.sba-insighthub-form textarea:focus,
.sba-insighthub-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.sba-login-required,
.sba-error {
    color: #dc3545;
    font-size: 14px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 10px 0;
}

/* Login Page Styles */

.sba-login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

.sba-login-header {
    margin-bottom: 30px;
}

.sba-login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.sba-login-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.sba-login-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.sba-login-form {
    text-align: left;
}

.sba-form-group {
    margin-bottom: 20px;
}

.sba-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.sba-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sba-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sba-remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.sba-remember-checkbox {
    margin-right: 8px;
    transform: scale(1.1);
}

.sba-remember-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.sba-login-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sba-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.sba-login-button:active {
    transform: translateY(0);
}

.sba-login-button .sba-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.sba-login-button.loading .sba-loading {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sba-login-footer {
    margin-top: 30px;
    text-align: center;
}

.sba-login-footer p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.sba-login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.sba-login-footer a:hover {
    text-decoration: underline;
}

.sba-login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

.sba-login-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

/* Password Reset Form Styles */
.sba-password-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sba-password-input-container .sba-form-input {
    flex: 1;
}

.sba-generate-password-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.sba-generate-password-btn:hover {
    background: #218838;
}

/* hCaptcha Styles */
.sba-form-group .h-captcha {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.sba-form-group .h-captcha iframe {
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    
    .sba-login-card {
        padding: 30px 20px;
    }
    
    .sba-login-title {
        font-size: 24px;
    }
    
    .sba-password-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .sba-generate-password-btn {
        width: 100%;
    }
}

/* API Key Interface Styles */
.sba-api-key-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin: 20px 0;
}

.sba-api-key-container h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.sba-api-key-instructions {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.sba-api-key-instructions p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #1976d2;
}

.sba-api-key-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.sba-api-key-instructions li {
    margin-bottom: 5px;
    color: #555;
}

.sba-api-key-field {
    margin-bottom: 20px;
}

.sba-api-key-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.sba-api-key-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sba-api-key-input-container input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    background: #fff;
}

.sba-copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sba-copy-btn:hover {
    background: #218838;
}

.sba-generate-btn {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sba-generate-btn:hover {
    background: #e0a800;
}

.sba-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sba-api-key-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.sba-api-key-info p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #333;
}

.sba-api-key-info code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
    color: #495057;
    word-break: break-all;
}


/* Layout Switcher */
.sba-layout-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sba-organized-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.sba-part-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sba-part-title {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 1.4em;
    font-weight: 600;
}

.sba-category-section {
    margin-bottom: 20px;
}

.sba-category-section:last-child {
    margin-bottom: 0;
}

.sba-category-title {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 10px;
    border-left: 3px solid #0073aa;
}

.sba-module-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sba-module-item {
    margin-bottom: 8px;
}

.sba-module-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.sba-module-link:hover {
    background: #f0f0f0;
    border-color: #0073aa;
    transform: translateX(4px);
}

.sba-module-title {
    font-weight: 500;
    flex: 1;
}

.sba-module-meta-inline {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}


@media (max-width: 768px) {
    .sba-organized-modules-grid {
        grid-template-columns: 1fr;
    }

    .sba-module-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sba-module-meta-inline {
        margin-left: 0;
    }
}

/* Hide GeneratePress featured image on single custom post types since we show it in sba-single-page-featured-image */
body.single-sba_module .featured-image.page-header-image-single.grid-container.grid-parent,
body.single-sba_tool .featured-image.page-header-image-single.grid-container.grid-parent,
body.single-sba_insighthub .featured-image.page-header-image-single.grid-container.grid-parent {
    display: none !important;
}

.sba-single-page-featured-image {
    margin-bottom: 20px;
}

.sba-tag-link-text {
    margin-bottom: 2px;
}


/* Color for text */
.has-primary-blue-color {
    color: #0051a3;
}

.has-bright-red-color {
    color: #ff4b4b;
}

/* Color for backgrounds */
.has-corporate-blue-background-color {
    background-color: #374d62;
}

.has-consulting-blue-background-color {
    background-color: #6b8190;
}

.has-speaking-rosa-background-color {
    background-color: #baa39f;
}

.has-orange-background-color {
    background-color: #d77621;
}

.has-academy-purple-background-color {
    background-color: #574968;
}

.has-dark-purple-background-color {
    background-color: #3F3250;
}

.has-club-green-background-color {
    background-color: #5b7065;
}


.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #4267cf;
}

.tooltip .tooltiptext {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    text-transform: none;
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 8px!important;
    line-height: 1.5;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.break-out {
    margin-left: calc(-50vw + 50% - 8px);
    margin-right: calc(-50vw + 50% - 8px);
    width: 100vw;
    position: relative;
    left: 0;
}

.mb-1 {
    margin-bottom: 10px !important;
}

.mb-2 {
    margin-bottom: 20px !important;
}