/**
 * Theme Name: Hello-child
 * Template:   hello-elementor
 */


.lbc-user-menu-wrapper {
    position: relative;
    display: inline-block;
}


.lbc-user-toggle {
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;          
    align-items: center;
    gap: 6px;
    line-height: 1;              
    padding: 0;                    
    border: 0;
}

/* Ícone Font Awesome */
.lbc-user-icon {
    font-size: 12px;
    display: inline-block;         
    transform-origin: center center;
    transition: transform .25s ease;
}


.lbc-user-menu-wrapper:hover .lbc-user-icon,
.lbc-user-menu-wrapper:focus-within .lbc-user-icon {
    transform: rotate(180deg);
}


.lbc-user-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;

    position: absolute;
    right: 0;
    top: calc(100% + 4px);      

    min-width: 160px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    /* Escondido por padrão, mas SEM display:none pra evitar “pulo” */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition: opacity .2s ease;
    z-index: 9999;
}

    /* Mostra dropdown quando o rato está em qualquer parte do wrapper (nome + menu) */
.lbc-user-menu-wrapper:hover .lbc-user-dropdown,
.lbc-user-menu-wrapper:focus-within .lbc-user-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Links internos do dropdown */
.lbc-user-dropdown li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap; /* não quebra em duas linhas em header estreito */
}

.lbc-user-dropdown li a:hover {
    background: #f2f2f2;
}

.lbc-user-greeting {
	color: #067A96 !important;
}

/* LearnDash Course Filter Styles */
.ld-course-filter-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    font-family: 'Roboto', sans-serif;
}

.ld-filter-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.ld-filter-sidebar h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.ld-checkbox-group {
    margin-bottom: 10px;
}

.ld-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.ld-filter-content {
    flex-grow: 1;
}

.ld-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ld-search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
    max-width: 600px;
}

.ld-search-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: block;
}

.ld-search-wrapper input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 15px;
    padding-right: 40px; /* Space for icon */
    font-size: 14px;
    outline: none;
    height: 42px;
    box-sizing: border-box;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: border-color 0.3s;
}

.ld-search-wrapper input:focus {
    border-color: #067a96;
}

.ld-search-wrapper button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.ld-results-info {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
}

.ld-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ld-course-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px; /* Slightly less rounded than 8px to match image */
    padding: 0; /* Padding handled inside sections */
    text-align: left;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ld-course-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ld-card-header {
    background: #f0f0f0;
    padding: 0;
    display: block; /* Changed from flex to block to avoid centering issues with image */
    height: 180px;
    position: relative;
    overflow: hidden;
}

.ld-card-image {
    width: 100%;
    height: 100%;
    display: block; /* Changed from flex to block */
}

.ld-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* Flex centering only for placeholder */
.ld-card-image:has(.ld-placeholder-image) {
    display: flex;
    align-items: center;
    justify-content: center;
}


.ld-placeholder-image {
    font-size: 50px;
    color: #333;
}

.ld-card-body {
    padding: 20px 20px 10px;
}

.ld-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
    line-height: 1.3;
}

.ld-card-title a {
    text-decoration: none;
    color: inherit;
}

.ld-card-author {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.ld-card-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0 20px;
}

.ld-card-footer {
    padding: 15px 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ld-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ld-meta-icon {
    background: #067a96; /* Teal color */
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Alternate colors for icons if desired, or keep uniform */
.ld-meta-item:nth-child(2) .ld-meta-icon { background: #067a96; }
.ld-meta-item:nth-child(3) .ld-meta-icon { background: #067a96; }
.ld-meta-item:nth-child(4) .ld-meta-icon { background: #067a96; }

.ld-meta-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ld-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.ld-meta-value {
    font-size: 12px;
    color: #666;
}

.ld-course-pagination {
    margin-top: 30px;
    text-align: right;
}

.ld-pagination-link {
    display: inline-block;
    padding: 5px 10px;
    margin-left: 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.ld-pagination-link.active,
.ld-pagination-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}


.ld-results-info {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
}

.ld-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ld-course-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px; /* Slightly less rounded than 8px to match image */
    padding: 0; /* Padding handled inside sections */
    text-align: left;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ld-course-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}



.ld-placeholder-image {
    font-size: 40px;
    color: #ccc;
}

.ld-card-body {
    padding: 20px 20px 10px;
}

.ld-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
    line-height: 1.3;
}

.ld-card-title a {
    text-decoration: none;
    color: inherit;
}

.ld-card-category {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    font-weight: 500;
}

.ld-card-author {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.ld-card-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0 20px;
}

.ld-card-footer {
    padding: 15px 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ld-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ld-meta-icon {
    background: #067a96; /* Teal color */
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Alternate colors for icons if desired, or keep uniform */
.ld-meta-item:nth-child(2) .ld-meta-icon { background: #067a96; }
.ld-meta-item:nth-child(3) .ld-meta-icon { background: #067a96; }
.ld-meta-item:nth-child(4) .ld-meta-icon { background: #067a96; }

.ld-meta-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ld-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.ld-meta-value {
    font-size: 12px;
    color: #666;
}

.ld-course-pagination {
    margin-top: 30px;
    text-align: right;
}

.ld-pagination-link {
    display: inline-block;
    padding: 5px 10px;
    margin-left: 5px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.ld-pagination-link.active,
.ld-pagination-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .ld-course-filter-container {
        flex-direction: column;
    }
    .ld-filter-sidebar {
        width: 100%;
    }
    
    /* Table Responsive */
    .ld-table-controls {
        flex-direction: column;
    }
    .ld-table-search input,
    .ld-table-filters select {
        width: 100%;
    }
    .ld-course-table {
        display: block;
        overflow-x: auto;
    }
}

/* Course Table Shortcode Styles */
.ld-course-table-container {
    margin: 20px 0;
    font-family: 'Roboto', sans-serif;
}

/* Filter Row */
.ld-table-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.ld-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ld-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ld-filter-group input,
.ld-filter-group select {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    min-width: 200px;
    color: #555;
    outline: none;
    transition: border-color 0.3s;
    height: 42px; /* Fixed height for consistency */
    box-sizing: border-box;
}

.ld-filter-group input:focus,
.ld-filter-group select:focus {
    border-color: #067a96;
}

/* Search Input specific styles */
.ld-filter-group input#ld-table-search-input {
    width: 250px;
    padding-right: 40px; /* Space for icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* Select specific styles */
.ld-filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px; /* Space for icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
}

/* Buttons */
.ld-table-buttons {
    display: flex;
    gap: 10px;
    /* margin-bottom: 30px; Removed to align with inputs */
    height: 42px; /* Match input height */
}

.ld-table-buttons button {
    height: 100%; /* Fill container height */
    padding: 0 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ld-btn-primary {
    background: #067a96;
    color: #fff;
}

.ld-btn-primary:hover {
    background: #056178;
}

.ld-btn-secondary {
    background: #eee;
    color: #333;
}

.ld-btn-secondary:hover {
    background: #ddd;
}

/* Table */
.ld-course-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: none; /* Remove outer border */
    box-shadow: none; /* Remove shadow for cleaner look */
}

.ld-course-table thead {
    background: #067a96 !important;
    color: #fff;
}

.ld-course-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none; /* No borders on header */
}

.ld-course-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee; /* Only bottom border */
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 14px;
    color: #333;
}

.ld-course-table tbody tr {
    transition: background-color 0.2s;
}

.ld-course-table tbody tr:hover {
    background-color: #f9f9f9;
}

.ld-col-url a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.ld-col-url a:hover {
    text-decoration: underline;
}

.ld-col-action {
    text-align: center;
    width: 50px;
}

.ld-action-icon {
    color: #8B0000;
    font-size: 24px;
    transition: color 0.3s;
}

.ld-action-icon:hover {
    color: #6B0000;
}

#ld-table-no-results {
    padding: 20px;
    text-align: center;
    color: #777;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ld-table-filters-row {
        grid-template-columns: 1fr;
    }
    
    .ld-course-table {
        display: block;
        overflow-x: auto;
    }
}
