/* -------------------------------------------------------------
   Future Legacy – Scholar Cards (Option C Layout)
   Clean • Modern • Gold Accent • Mobile-First
--------------------------------------------------------------*/

/* WRAPPER */
.fl-scholars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* -------------------------------------------------------------
   SCHOLAR CARD
--------------------------------------------------------------*/
.fl-scholar-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    overflow: hidden;
}

/* Gold strip on left */
.fl-scholar-gold {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: #E3B23C;
    border-radius: 16px 0 0 16px;
}

/* -------------------------------------------------------------
   HEADER
--------------------------------------------------------------*/
.fl-scholar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.fl-scholar-avatar {
    font-size: 32px;
}

.fl-scholar-info h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.fl-scholar-grade {
    margin: 3px 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Credits */
.fl-scholar-credits {
    text-align: right;
}
.fl-credits-label {
    font-size: 12px;
    color: #888;
}
.fl-credits-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #E3B23C;
}

/* -------------------------------------------------------------
   ASSIGNED TUTORS
--------------------------------------------------------------*/
.fl-scholar-tutors {
    margin-top: 18px;
}

.fl-scholar-tutors h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.fl-tutor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fl-tutor-chip {
    padding: 6px 12px;
    background: #f4f4f4;
    border-radius: 30px;
    font-size: 13px;
    border: 1px solid #e5e5e5;
}

.fl-no-tutors {
    font-size: 13px;
    color: #999;
}

/* -------------------------------------------------------------
   BOOKING ACCORDION
--------------------------------------------------------------*/
.fl-booking-accordion {
    margin-top: 22px;
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.fl-accordion-toggle {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.fl-accordion-arrow {
    transition: transform .25s ease;
}

.fl-accordion-panel {
    display: none;
    padding: 10px 0 0;
}

.fl-accordion-panel.open {
    display: block;
}

.fl-accordion-panel.open + .fl-accordion-toggle .fl-accordion-arrow {
    transform: rotate(180deg);
}

/* Booking row */
.fl-booking-row {
    margin-bottom: 8px;
    font-size: 14px;
}

/* No bookings message */
.fl-no-bookings {
    font-size: 14px;
    color: #999;
}

/* -------------------------------------------------------------
   MOBILE
--------------------------------------------------------------*/
@media (max-width: 650px) {
    .fl-scholar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fl-scholar-credits {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }
}
/* -------------------------------------------------------------
   Status Badges
--------------------------------------------------------------*/
.fl-status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.fl-status-upcoming {
    background: #3CB371;
}

.fl-status-completed {
    background: #3B82F6;
}

.fl-status-cancelled {
    background: #EF4444;
}

/* Tutor name styling */
.fl-tutor-name {
    font-size: 14px;
    font-weight: 600;
}

/* -------------------------------------------------------------
   Book Session Button
--------------------------------------------------------------*/
.fl-book-btn {
    display: block;
    margin-top: 16px;
    background: #E3B23C;
    padding: 12px;
    text-align: center;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background .2s ease;
}

.fl-book-btn:hover {
    background: #c89a32;
}
/* -------------------------------------------------------------
   SUBJECT BADGES
--------------------------------------------------------------*/
.fl-subject-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-left: 8px;
}

.fl-subject-maths {
    background: #3B82F6; /* Blue */
}

.fl-subject-eng {
    background: #7C3AED; /* Purple */
}

.fl-subject-afr {
    background: #E3B23C; /* Gold */
}

.fl-subject-default {
    background: #9CA3AF; /* Grey */
}

/* -------------------------------------------------------------
   TIMELINE STYLES
--------------------------------------------------------------*/
.fl-booking-timeline {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.fl-booking-timeline h4 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.fl-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.fl-tl-left {
    min-width: 75px;
}

.fl-tl-date {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.fl-tl-time {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.fl-tl-mid {
    flex: 1;
    padding: 0 10px;
}

.fl-tl-tutor {
    font-size: 13px;
}

.fl-tl-right {
    min-width: 85px;
    text-align: right;
}
