/* Africa eLearning Plugin Styles */

/* User Courses Styles */
.ae-user-courses { 
    margin: 20px 0; 
}

.ae-courses-list { 
    list-style: none; 
    padding: 0; 
    margin: 15px 0 0 0; 
}

.ae-courses-list li { 
    margin-bottom: 8px; 
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ae-courses-list li:last-child { 
    border-bottom: none; 
}

.ae-courses-list a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 500;
}

.ae-courses-list a:hover { 
    color: #0073aa; 
    text-decoration: underline;
}

/* User Groups Styles */
.ae-user-groups { 
    margin: 20px 0; 
}

.ae-groups-list { 
    list-style: none; 
    padding: 0; 
    margin: 15px 0 0 0; 
}

.ae-groups-list li { 
    margin-bottom: 8px; 
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ae-groups-list li:last-child { 
    border-bottom: none; 
}

.ae-groups-list a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 500;
}

.ae-groups-list a:hover { 
    color: #0073aa; 
    text-decoration: underline;
}

/* Reset Password Form Styles */
.ae-reset-password-form {
    max-width: 400px;
    margin: 20px 0;
}

.ae-reset-password-form .form-group {
    margin-bottom: 15px;
}

.ae-reset-password-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ae-reset-password-form .phone-input-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    align-items: stretch;
}

.ae-reset-password-form .country-select {
    width: 200px;
    min-width: 200px;
    padding: 8px 12px;
    border: none;
    border-right: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    background: #f9f9f9;
    cursor: pointer;
    height: auto;
    line-height: 1.4;
}

.ae-reset-password-form .country-select:focus {
    outline: none;
    background: #fff;
}

.ae-reset-password-form #phone {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    height: auto;
    line-height: 1.4;
}

.ae-reset-password-form #phone:focus {
    outline: none;
}

/* Ensure Select2 dropdown matches the field height */
.ae-reset-password-form .select2-container .select2-selection--single {
    height: 38px !important;
    border: none !important;
    background: transparent !important;
}

.ae-reset-password-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
}

.ae-reset-password-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.ae-reset-password-form .submit-btn {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ae-reset-password-form .submit-btn:hover {
    background-color: #005a87;
}

/* LearnDash Certificates Widget Styles */
.ld-certificates-widget {
    margin: 20px 0;
}

.ld-certificates-title {
    margin-bottom: 20px;
    color: #333;
}

.ld-no-certificates {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

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

.ld-certificates-list {
    display: block;
}

.ld-certificate-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ld-certificate-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ld-certificate-content {
    text-align: center;
}

.ld-certificate-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.ld-certificate-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.ld-certificate-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.ld-certificate-date {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    font-style: italic;
}

.ld-certificate-download-btn {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.ld-certificate-download-btn:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

/* List layout specific styles */
.ld-certificates-list .ld-certificate-item {
    margin-bottom: 15px;
    text-align: left;
}

.ld-certificates-list .ld-certificate-content {
    text-align: left;
}

.ld-certificates-list .ld-certificate-download-btn {
    margin-top: 10px;
}
