/* Responsive Media Queries */
@media (max-width: 1100px) {
    .pst-tutors-grid { grid-template-columns: repeat(2, 1fr); }
    .pst-not-found { grid-column: span 2; }
}

@media (max-width: 991px) {
    .pst-layout-grid { grid-template-columns: 1fr; }
    .pst-filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 310px;
        height: 100vh;
        z-index: 2000;
        transition: left 0.3s ease;
        border-radius: 0;
    }
    .pst-filter-sidebar.mobile-open { left: 0; }
    .pst-sidebar-mobile-header { display: flex; }
    .pst-mobile-filter-btn { display: flex; }
}

@media (max-width: 600px) {
    .pst-tutors-grid { grid-template-columns: 1fr; }
    .pst-not-found { grid-column: span 1; }
}

/* ==================== MOBILE TUTOR CARD DESIGN (Screenshot_1.png অনুযায়ী) ==================== */
/* ==================== MOBILE 2 CARDS PER ROW FIX ==================== */
/* ==================== PERFECT MOBILE 2-COLUMN GRID FIX ==================== */
@media (max-width: 768px) {
    /* সেকশনের প্যাডিং উভয় পাশে সমান রাখা হলো */
    .pst-search-section {
        padding: 25px 10px 60px !important;
        overflow-x: hidden;
    }

    .pst-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* উভয় পাশে সমান জায়গা রেখে নিখুঁত ২টি কলাম গ্রিড */
    .pst-tutors-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* কার্ডগুলো যাতে স্ক্রিন ছোট করলে স্বয়ংক্রিয়ভাবে ছোট হতে পারে */
    .pst-tutor-item-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        background: linear-gradient(180deg, #ffffff 65%, #f5f3ff 100%);
        border: 1px solid #ede9fe;
        border-radius: 16px;
        padding: 14px 8px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-shadow: 0 4px 12px rgba(109, 40, 217, 0.05);
    }

    /* গোল প্রোফাইল ছবি */
    .pst-tutor-img-wrap {
        width: 68px;
        height: 68px;
        border-radius: 50%;
        margin: 0 auto 10px;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(76, 29, 149, 0.1);
        border: 2px solid #ffffff;
        overflow: hidden;
        flex-shrink: 0;
    }

    .pst-tutor-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .pst-tutor-details {
        padding: 0;
        width: 100%;
        overflow: hidden;
    }

    /* টিউটরের নাম (ছোট স্ক্রিনে টেক্সট ওভারফ্লো রোধ করতে ellipsis) */
    .pst-tutor-name {
        font-size: 13px;
        font-weight: 800;
        color: #0f2942;
        line-height: 1.25;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* কলেজ বা ইউনিভার্সিটির নাম */
    .pst-tutor-uni {
        font-size: 10px;
        font-weight: 500;
        color: #8c9ba5;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* সাবজেক্ট বা ডিগ্রি (যেমন: MBBS) */
    .pst-tutor-sub {
        font-size: 11.5px;
        font-weight: 800;
        color: #3b1e54;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* লোকেশন ব্যাজ */
    .pst-tutor-loc-badge {
        font-size: 9.5px;
        padding: 2px 6px;
        margin-bottom: 8px;
    }

    /* ভিউ ডিটেইলস বাটন */
    .pst-view-details-btn {
        width: 100%;
        border-radius: 8px;
        padding: 6px 2px;
        font-size: 10.5px;
    }
}

/* একদম ছোট স্ক্রিনের (যেমন ৩৬০px) জন্য */
@media (max-width: 380px) {
    .pst-tutors-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== COMPUTER / DESKTOP TUTOR CARD DESIGN (card_com.png অনুযায়ী) ==================== */
@media (min-width: 769px) {
    .pst-tutors-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .pst-tutor-item-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .pst-tutor-item-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    }

    /* ডেস্কটপে ছবির বক্স রেক্টাঙ্গুলার এবং পরিচ্ছন্ন রাখা */
    .pst-tutor-img-wrap {
        width: 100%;
        height: 240px;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

	.pst-tutor-img-wrap img {
		width: 222px;
		height: 207px;
		object-fit: cover;
		border-radius: 50%;
	}

    .pst-tutor-details {
        padding: 22px 20px 18px;
        text-align: center;
    }

    /* টিউটরের নাম (গাঢ় নীল ও আকর্ষণীয় ফন্ট) */
	.pst-tutor-name {
		font-size: 16px;
		font-weight: 600;
		color: #0f172a;
		margin-bottom: 6px;
		line-height: 1.3;
	}

    /* কলেজ বা ইউনিভার্সিটির নাম (হালকা ছাইরঙা) */
    .pst-tutor-uni {
        font-size: 13.5px;
        color: #94a3b8;
        font-weight: 500;
        margin-bottom: 8px;
    }

    /* ডিগ্রি বা সাবজেক্ট (যেমন: MBBS) */
	.pst-tutor-sub {
		font-size: 13px;
		font-weight: 500;
		color: #0f172a;
		margin-bottom: 16px;
	}

    /* লোকেশন ব্যাজ (বর্ডারযুক্ত পিন আইকনসহ) */
    .pst-tutor-loc-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        color: #2563eb;
        padding: 6px 18px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 0;
    }

    .pst-tutor-loc-badge i {
        color: #db2777;
    }

    /* একদম নিচে সম্পূর্ণ চওড়া ভিউ ডিটেইলস বাটন */
    .pst-view-details-btn {
        display: block;
        text-align: center;
        background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
        color: #ffffff;
        text-decoration: none;
        padding: 13px;
        font-size: 15px;
        font-weight: 700;
        width: 100%;
        border-radius: 0;
        transition: opacity 0.2s ease;
    }

    .pst-view-details-btn:hover {
        opacity: 0.92;
    }
}