  /**
 * Course Wishlist Styles
 */

/* Save Course Button Styles */
.save-course-btn,
.elementor-save-course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a4e8a 0%, #3a3d7a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(74, 78, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.save-course-btn:hover,
.elementor-save-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 78, 138, 0.4);
    text-decoration: none;
    color: white;
}

.save-course-btn:active,
.elementor-save-course-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 78, 138, 0.3);
}

/* Saved State */
.save-course-btn.saved,
.elementor-save-course-btn.saved {
    background: linear-gradient(135deg, #28a745 0%, #20754a 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.save-course-btn.saved:hover,
.elementor-save-course-btn.saved:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Login Required State */
.save-course-btn.login-required,
.elementor-save-course-btn.login-required {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    cursor: not-allowed;
}

.save-course-btn.login-required:hover,
.elementor-save-course-btn.login-required:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Full Width Button */
.save-course-btn.full-width,
.elementor-save-course-btn.full-width {
    width: 100%;
    display: flex;
}

/* Icon Styles */
.save-course-btn .btn-icon,
.elementor-save-course-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* SVG Icon Specific Styles */
.save-course-btn .btn-icon svg,
.elementor-save-course-btn .btn-icon svg {
    width: 100%;
    height: 100%;
    max-width: 18px;
    max-height: 18px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Font Icon Specific Styles */
.save-course-btn .btn-icon i,
.elementor-save-course-btn .btn-icon i {
    font-size: inherit;
    line-height: 1;
    transition: all 0.3s ease;
}

.save-course-btn .btn-icon:hover,
.elementor-save-course-btn .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.save-course-btn .btn-icon.before,
.elementor-save-course-btn .btn-icon.before {
    margin-right: 12px;
}

.save-course-btn .btn-icon.after,
.elementor-save-course-btn .btn-icon.after {
    margin-left: 12px;
}

/* Icon Background Variations */
.save-course-btn .btn-icon.icon-bg-solid,
.elementor-save-course-btn .btn-icon.icon-bg-solid {
    background: rgba(255, 255, 255, 0.9);
    color: #4a4e8a;
}

.save-course-btn .btn-icon.icon-bg-solid svg,
.elementor-save-course-btn .btn-icon.icon-bg-solid svg {
    fill: #4a4e8a;
}

.save-course-btn .btn-icon.icon-bg-gradient,
.elementor-save-course-btn .btn-icon.icon-bg-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.save-course-btn .btn-icon.icon-bg-gradient svg,
.elementor-save-course-btn .btn-icon.icon-bg-gradient svg {
    fill: currentColor;
}

.save-course-btn .btn-icon.icon-bg-contrast,
.elementor-save-course-btn .btn-icon.icon-bg-contrast {
    background: #ffffff;
    color: #4a4e8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.save-course-btn .btn-icon.icon-bg-contrast svg,
.elementor-save-course-btn .btn-icon.icon-bg-contrast svg {
    fill: #4a4e8a;
}

.save-course-btn .btn-icon.icon-bg-dark,
.elementor-save-course-btn .btn-icon.icon-bg-dark {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.save-course-btn .btn-icon.icon-bg-dark svg,
.elementor-save-course-btn .btn-icon.icon-bg-dark svg {
    fill: #ffffff;
}

.save-course-btn .btn-icon.icon-bg-default,
.elementor-save-course-btn .btn-icon.icon-bg-default {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.save-course-btn .btn-icon.icon-bg-default svg,
.elementor-save-course-btn .btn-icon.icon-bg-default svg {
    fill: currentColor;
}

/* Icon Shapes */
.save-course-btn .btn-icon.icon-shape-square,
.elementor-save-course-btn .btn-icon.icon-shape-square {
    border-radius: 8px;
}

.save-course-btn .btn-icon.icon-shape-rounded,
.elementor-save-course-btn .btn-icon.icon-shape-rounded {
    border-radius: 12px;
}

.save-course-btn .btn-icon.icon-shape-circle,
.elementor-save-course-btn .btn-icon.icon-shape-circle {
    border-radius: 50%;
}

/* Icon Sizes */
.save-course-btn .btn-icon.icon-size-small,
.elementor-save-course-btn .btn-icon.icon-size-small {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.save-course-btn .btn-icon.icon-size-small svg,
.elementor-save-course-btn .btn-icon.icon-size-small svg {
    max-width: 14px;
    max-height: 14px;
}

.save-course-btn .btn-icon.icon-size-large,
.elementor-save-course-btn .btn-icon.icon-size-large {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.save-course-btn .btn-icon.icon-size-large svg,
.elementor-save-course-btn .btn-icon.icon-size-large svg {
    max-width: 24px;
    max-height: 24px;
}

.save-course-btn .btn-icon.icon-size-normal,
.elementor-save-course-btn .btn-icon.icon-size-normal {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.save-course-btn .btn-icon.icon-size-normal svg,
.elementor-save-course-btn .btn-icon.icon-size-normal svg {
    max-width: 18px;
    max-height: 18px;
}

/* Saved State Icon */
.save-course-btn.saved .btn-icon,
.elementor-save-course-btn.saved .btn-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #28a745;
}

.save-course-btn.saved .btn-icon svg,
.elementor-save-course-btn.saved .btn-icon svg {
    fill: #28a745;
}

.save-course-btn.saved .btn-icon.icon-bg-solid,
.elementor-save-course-btn.saved .btn-icon.icon-bg-solid {
    background: #ffffff;
    color: #28a745;
}

.save-course-btn.saved .btn-icon.icon-bg-solid svg,
.elementor-save-course-btn.saved .btn-icon.icon-bg-solid svg {
    fill: #28a745;
}

.save-course-btn.saved .btn-icon.icon-bg-contrast,
.elementor-save-course-btn.saved .btn-icon.icon-bg-contrast {
    background: #28a745;
    color: #ffffff;
}

.save-course-btn.saved .btn-icon.icon-bg-contrast svg,
.elementor-save-course-btn.saved .btn-icon.icon-bg-contrast svg {
    fill: #ffffff;
}

.save-course-btn.saved .btn-icon.icon-bg-dark,
.elementor-save-course-btn.saved .btn-icon.icon-bg-dark {
    background: rgba(40, 167, 69, 0.3);
    color: #ffffff;
}

.save-course-btn.saved .btn-icon.icon-bg-dark svg,
.elementor-save-course-btn.saved .btn-icon.icon-bg-dark svg {
    fill: #ffffff;
}

.save-course-btn.saved .btn-icon.icon-bg-gradient,
.elementor-save-course-btn.saved .btn-icon.icon-bg-gradient {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3) 0%, rgba(40, 167, 69, 0.1) 100%);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.save-course-btn.saved .btn-icon.icon-bg-gradient svg,
.elementor-save-course-btn.saved .btn-icon.icon-bg-gradient svg {
    fill: #28a745;
}

/* Icon Animation */
.save-course-btn .btn-icon::before,
.elementor-save-course-btn .btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.save-course-btn .btn-icon:active::before,
.elementor-save-course-btn .btn-icon:active::before {
    width: 100%;
    height: 100%;
}

/* Pulse Effect for Icons */
@keyframes iconPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.save-course-btn.saved .btn-icon.pulse,
.elementor-save-course-btn.saved .btn-icon.pulse {
    animation: iconPulse 0.6s ease-in-out;
}

/* Loading Animation */
.save-course-btn .btn-loading,
.elementor-save-course-btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

.save-course-btn.loading .btn-text,
.save-course-btn.loading .btn-icon,
.elementor-save-course-btn.loading .btn-text,
.elementor-save-course-btn.loading .btn-icon {
    opacity: 0;
}

.save-course-btn.loading .btn-loading,
.elementor-save-course-btn.loading .btn-loading {
    display: block !important;
}

/* Ripple Effect */
.save-course-btn::before,
.elementor-save-course-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.save-course-btn:active::before,
.elementor-save-course-btn:active::before {
    width: 200px;
    height: 200px;
}

/* Pulse Animation for Saved State */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.save-course-btn.saved.pulse,
.elementor-save-course-btn.saved.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* Button Wrapper */
.save-course-btn-wrapper {
    display: inline-block;
}

.save-course-btn-wrapper.center {
    text-align: center;
}

.save-course-btn-wrapper.right {
    text-align: right;
}

/* Button Sizes */
.save-course-btn.size-small,
.elementor-save-course-btn.size-small {
    padding: 8px 16px;
    font-size: 12px;
}

.save-course-btn.size-large,
.elementor-save-course-btn.size-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Button Shapes */
.save-course-btn.shape-square,
.elementor-save-course-btn.shape-square {
    border-radius: 0;
}

.save-course-btn.shape-rounded,
.elementor-save-course-btn.shape-rounded {
    border-radius: 8px;
}

.save-course-btn.shape-circle,
.elementor-save-course-btn.shape-circle {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
}

.save-course-btn.shape-circle .btn-text,
.elementor-save-course-btn.shape-circle .btn-text {
    display: none;
}

/* Accessibility */
.save-course-btn:focus,
.elementor-save-course-btn:focus {
    outline: 2px solid #4a4e8a;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .save-course-btn,
    .elementor-save-course-btn {
        border: 2px solid #ffffff;
    }
    
    .save-course-btn.saved,
    .elementor-save-course-btn.saved {
        border-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .save-course-btn,
    .elementor-save-course-btn {
        transition: none;
    }
    
    .save-course-btn::before,
    .elementor-save-course-btn::before {
        display: none;
    }
    
    .save-course-btn.saved.pulse,
    .elementor-save-course-btn.saved.pulse {
        animation: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .save-course-btn,
    .elementor-save-course-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .save-course-btn.size-small,
    .elementor-save-course-btn.size-small {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .save-course-btn.size-large,
    .elementor-save-course-btn.size-large {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .save-course-btn,
    .elementor-save-course-btn {
        box-shadow: 0 4px 15px rgba(74, 78, 138, 0.5);
    }
    
    .save-course-btn:hover,
    .elementor-save-course-btn:hover {
        box-shadow: 0 6px 20px rgba(74, 78, 138, 0.6);
    }
    
    .save-course-btn.saved,
    .elementor-save-course-btn.saved {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
    }
    
    .save-course-btn.saved:hover,
    .elementor-save-course-btn.saved:hover {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    }
}

/* Hover States for SVG Icons */
.save-course-btn:hover .btn-icon svg,
.elementor-save-course-btn:hover .btn-icon svg {
    transform: scale(1.1);
}

.save-course-btn.saved:hover .btn-icon svg,
.elementor-save-course-btn.saved:hover .btn-icon svg {
    transform: scale(1.05);
}

/* Force SVG to use the current color or specified fill */
.save-course-btn .btn-icon svg,
.elementor-save-course-btn .btn-icon svg {
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Override for when explicit fill is set */
.save-course-btn .btn-icon svg[fill]:not([fill="currentColor"]),
.elementor-save-course-btn .btn-icon svg[fill]:not([fill="currentColor"]) {
    fill: currentColor !important;
}

/* Animation for icon change */
.save-course-btn .btn-icon,
.elementor-save-course-btn .btn-icon {
    transition: all 0.3s ease;
}

.save-course-btn .btn-icon.changing,
.elementor-save-course-btn .btn-icon.changing {
    transform: scale(0.8);
    opacity: 0.7;
}

/* Pulse animation for saved state */
.save-course-btn.pulse .btn-icon,
.elementor-save-course-btn.pulse .btn-icon {
    animation: pulse-icon 0.6s ease-in-out;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Message notifications */
.wishlist-message {
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideInDown 0.3s ease;
}

.wishlist-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wishlist-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wishlist-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Saved Courses Container */
.saved-courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.saved-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.saved-courses-header h2 {
    margin: 0;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.courses-count {
    background: linear-gradient(135deg, #4a4e8a 0%, #3a3d7a 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.courses-count.updated {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 78, 138, 0.3);
}

/* Saved Courses Grid */
.saved-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.saved-courses-container.list .saved-courses-grid {
    grid-template-columns: 1fr;
}

.saved-course-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.saved-course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.saved-course-item .course-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.saved-course-item .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.saved-course-item:hover .course-image img {
    transform: scale(1.05);
}

.saved-course-item .course-content {
    padding: 20px;
}

.saved-course-item .course-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.saved-course-item .course-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.saved-course-item .course-title a:hover {
    color: #4a4e8a;
}

.saved-course-item .course-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.saved-course-item .course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.saved-course-item .date-saved {
    color: #888;
    font-size: 12px;
}

.remove-course-btn {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-course-btn:hover {
    background: #dc3545;
    color: white;
}

.remove-course-btn i {
    margin-right: 4px;
}

/* List layout specific styles */
.saved-courses-container.list .saved-course-item {
    display: flex;
    align-items: center;
}

.saved-courses-container.list .saved-course-item .course-image {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.saved-courses-container.list .saved-course-item .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.saved-courses-container.list .saved-course-item .course-meta {
    border-top: none;
    padding-top: 10px;
    margin-top: auto;
}

/* Wishlist counter in navigation/header */
.wishlist-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .save-course-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .save-course-btn.compact {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .saved-courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .saved-courses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .saved-course-item .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .saved-courses-container.list .saved-course-item {
        flex-direction: column;
    }
    
    .saved-courses-container.list .saved-course-item .course-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .save-course-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .saved-courses-container {
        padding: 15px;
    }
    
    .saved-course-item .course-content {
        padding: 15px;
    }
}

/* Integration with existing theme */
.save-course-btn.theme-integration {
    /* Override theme button styles if needed */
    box-sizing: border-box;
    line-height: normal;
}

/* Accessibility improvements */
.save-course-btn:focus {
    outline: 2px solid #4a4e8a;
    outline-offset: 2px;
}

.remove-course-btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .save-course-btn,
    .remove-course-btn,
    .wishlist-message {
        display: none;
    }
}
