/*
 * tutor-cards.css
 *
 * Vanilla styles for the tutor card component (.gs-card).
 * Used on: gia-su-tieu-bieu, home (featured tutors).
 * No Bootstrap dependencies.
 */


/* ── Grid ───────────────────────────────────────── */

.gs-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}


/* ── Card ───────────────────────────────────────── */

.gs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #0099ff;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s;
}

.gs-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}


/* ── Featured badge ─────────────────────────────── */

.gs-card__featured {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    background: #f59e0b;
    border-radius: 4px;
}


/* ── Body (float layout — text wraps around image) ─ */

.gs-card__body {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}


/* ── Avatar (floated left, fixed 120×160) ───────── */

.gs-card__thumb {
    float: left;
    display: block;
    width: 120px;
    height: 160px;
    margin: 0 10px 6px 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f4f8;
}

.gs-card__thumb img {
    display: block;
    width: 120px;
    height: 160px;
    object-fit: cover;
}


/* ── Info rows ──────────────────────────────────── */

.gs-card__row {
    margin-bottom: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gs-card__label {
    font-weight: 700;
    color: #333;
}

.gs-card__val {
    color: #444;
}

.gs-card__id {
    color: #0066cc;
}

.gs-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #008eff;
    text-decoration: none;
}

.gs-card__name:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* "Thông tin khác" — clamp to 3 lines */
.gs-card__row--other .gs-card__val {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #555;
}


/* ── Actions bar ────────────────────────────────── */

.gs-card__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 12px 10px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    clear: both;
}

.gs-card__btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.gs-card__btn--view          { color: #fff; background: #2563eb; }
.gs-card__btn--view:hover    { color: #fff; background: #1d4ed8; }

.gs-card__btn--choose        { color: #fff; background: #10b981; }
.gs-card__btn--choose:hover  { color: #fff; background: #059669; }


/* ── Occupation filter-tag colour ───────────────── */

.tag-occupation {
    color: #6b7280;
    background: rgba(107, 114, 128, .08);
    border-color: #d1d5db;
}


/* ── Responsive ─────────────────────────────────── */

/* Mobile — single column */
@media (max-width: 767px) {
    .gs-list-grid  { grid-template-columns: 1fr; }
    .gs-card__name { font-size: 13.5px; }
}

/* Small phones */
@media (max-width: 400px) {
    .gs-card__thumb     { width: 100px; height: 133px; }
    .gs-card__thumb img { width: 100px; height: 133px; }
    .gs-card__body      { padding: 8px; }
    .gs-card__actions   { gap: 8px; }
    .gs-card__btn       { font-size: 11px; padding: 4px 12px; }
}
