/* =========================================================
   PRACTICE KART - PREMIUM TUTOR CARD (MOCKUP STYLE)
   ========================================================= */

/* --- 1. The Fluid Grid --- */
body .pk-tutor-grid,
body .pk-tutor-cta-grid {
    display: grid !important;
    gap: 24px;
    align-items: stretch !important;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

/* --- 2. The Card Container --- */
body .pk-tutor-card {
    background: #ffffff !important;
    border: 1px solid #E5E7EB !important; /* Slightly sharper border color */
    border-radius: 12px;
    padding: 0 !important; 
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100% !important;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-top: 16px; 
}

body .pk-tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08) !important;
    border-color: #CCFBF1 !important;
}

/* --- 3. Teal Top Banner --- */
body .pk-tutor-top {
    height: 70px;
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    flex-shrink: 0;
}

/* --- 4. Overlapping Avatar & Verified Badge --- */
body .pk-tutor-head {
    margin-top: -36px !important; /* Pulls the avatar up over the banner */
    padding: 0 24px !important;   /* <--- This is the left/right wall padding! */
    display: flex;
    justify-content: space-between; /* Pushes avatar left, badge right */
    align-items: flex-end;
    position: relative;
    z-index: 2; /* Ensures it sits on top of the teal banner */
}

body .pk-tutor-avatar-photo,
body .pk-tutor-card .pk-avatar.lg {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff; 
    background: #ffffff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: cover;
    flex-shrink: 0;
}

/* Fallback Avatar Text */
body .pk-tutor-card .pk-avatar.lg {
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #fff;
}
body .pk-tutor-card .pk-avatar.lg.tint-teal { background: #0F766E; border-color: #fff; }
body .pk-tutor-card .pk-avatar.lg.tint-coral { background: #F97316; border-color: #fff; }
body .pk-tutor-card .pk-avatar.lg.tint-amber { background: #D97706; border-color: #fff; }
body .pk-tutor-card .pk-avatar.lg.tint-rose { background: #BE185D; border-color: #fff; }

/* The Verified Badge */
body .pk-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E6F6F4;
    color: #0F766E;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px; /* Lifts it slightly above the text below */
}
body .pk-verified-badge svg { width: 14px; height: 14px; }

/* --- 5. Card Body & Content --- */
body .pk-tutor-body {
    padding: 16px 24px 24px !important; 
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

body .pk-tutor-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* --- 6. Subject Pills --- */
body .pk-tutor-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body .pk-subject-pill {
    background: #F9FAFB;
    color: #4B5563;
    border: 1px solid #E5E7EB;
    border-radius: 6px; 
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    white-space: nowrap;
}

/* --- 7. Meta Information (Stacked) --- */
body .pk-tutor-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #4B5563;
    margin-top: 4px;
}

body .pk-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

body .pk-meta-item svg {
    flex-shrink: 0;
    color: #9CA3AF;
    width: 16px;
    height: 16px;
}

/* --- 8. Action Buttons --- */
body .pk-tutor-actions {
    display: flex !important;
    gap: 12px;
    margin-top: auto !important; 
    align-items: stretch;
    padding: 16px 24px 24px !important; /* <-- REPLACE padding-top with this to add wall spacing */
    border-top: 1px solid #F3F4F6;
}

body .pk-view-profile-btn {
    flex: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #0F766E !important;
    border: 1px solid #CCFBF1 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    min-height: 42px;
    transition: all 0.2s ease;
    text-align: center;
}

body .pk-view-profile-btn:hover {
    background: #F0FBF9 !important;
    border-color: #0F766E !important;
}

body .pk-wa-icon-btn,
body .pk-wa-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px;
    height: 42px;
    border-radius: 8px !important;
    background: #F97316 !important;
    color: #ffffff !important;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

body .pk-wa-icon-btn:hover,
body .pk-wa-btn:hover {
    background: #EA580C !important;
    transform: scale(1.05);
}

/* --- 9. MOBILE OPTIMIZATIONS --- */
@media (max-width: 600px) {
    body .pk-tutor-grid { gap: 16px; }
    body .pk-tutor-head { padding: 0 20px !important; }
    body .pk-tutor-body { padding: 16px 20px 20px !important; }
    body .pk-tutor-avatar-wrap { padding: 0 20px !important; }
}