/* Badges Styles */
.tutor-course-thumbnail,
.tutor-card-image {
    position: relative !important;
}

.gheras-course-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
    /* Allow clicking through to the course */
}

.g-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(2px);
    width: fit-content;
}

.g-badge i {
    font-size: 12px;
}

.g-badge.live {
    background: #ef4444;
    /* Red for Live */
}

.g-badge.recorded {
    background: #3b82f6;
    /* Blue for Recorded */
}

.g-badge.cert {
    background: #10b981;
    /* Green for Certificate */
}

/* Ask Instructor Button in Sidebar */
.gheras-ask-instructor-card {
    margin-top: 1.5rem;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.gheras-ask-instructor-btn {
    width: 100%;
    background-color: var(--primary, #213b70) !important;
    color: #fff !important;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.gheras-ask-instructor-btn:hover {
    background-color: var(--primary-light, #3258a8) !important;
    transform: translateY(-2px);
}

/* Modal Styles */
.gheras-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    /* Higher z-index to sit on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.gheras-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gheras-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gheras-modal-overlay.active .gheras-modal {
    transform: translateY(0);
}

.gheras-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gheras-modal-close:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.gheras-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.gheras-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.gheras-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.gheras-form-control:focus {
    border-color: var(--primary, #213b70);
    outline: none;
    background: #fff;
}

.gheras-modal-title {
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary, #213b70);
    font-size: 1.5rem;
    font-weight: 700;
}