/* Hero Section - Simplified without extra content */
.tutor-hero {
   
    padding: 40px 0 60px;
    margin-top: 40px;
}

.tutor-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Search Bar - Now part of hero */
.search-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    border-radius: 60px;
    padding: 15px 25px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-input-wrapper {
    flex: 2;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #da0b4e;
    box-shadow: 0 0 0 3px rgba(218, 11, 78, 0.1);
}



/* Preference Row */
.preference-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background: #f8fafc;
    border-radius: 50px;
    padding: 8px 20px;
}

.preference-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preference-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.preference-item select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    background: white;
    font-size: 0.85rem;
}

.location-fields-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.location-fields-top input,
.location-fields-top select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.85rem;
}

/* Main Layout */
.main-layout {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f6;
}

.filter-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.clear-btn {
    background: none;
    border: none;
    color: #da0b4e;
    cursor: pointer;
    font-size: 0.8rem;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f6;
}

.filter-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.apply-filters-btn {
    width: 100%;
    background: linear-gradient(135deg, #da0b4e, #4f46e5);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
}

/* Tutors Content */
.tutors-content {
    flex: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 0.9rem;
    color: #64748b;
    padding: 5px 5px 5px 20px;
    margin-top: 5px;
    background-color: white;
    width: 322px;
    border-radius: 40px;
}

.results-count span {
    font-weight: 700;
    color: #da0b4e;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    background: white;
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* Tutor Card */
.tutor-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #eef2f6;
    position: relative;
}

.tutor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.favorite-btn i {
    color: #94a3b8;
    font-size: 1rem;
}

.favorite-btn.active i {
    color: #da0b4e;
}

.tutor-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tutor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-info {
    padding: 18px;
}

.tutor-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tutor-headline {
    font-size: 0.75rem;
    color: #da0b4e;
    margin-bottom: 10px;
}

.tutor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.stars i {
    margin-right: 2px;
}

.star-filled {
    color: #ffc107;
}

.star-half {
    color: #ffc107;
    position: relative;
}

.star-empty {
    color: #e2e8f0;
}

.review-count {
    font-size: 0.7rem;
    color: #64748b;
}

/* Education & University Section */
.education-info {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 12px;
    margin: 10px 0;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.education-item i {
    color: #da0b4e;
    width: 18px;
    margin-top: 2px;
    font-size: 0.7rem;
}

.education-text {
    color: #334155;
    line-height: 1.4;
    flex: 1;
}

.education-text strong {
    color: #0f172a;
    font-weight: 600;
}

.tutor-bio {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.tutor-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.75rem;
}

.tutor-details i {
    width: 20px;
    color: #da0b4e;
}

.pricing {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.price-item {
    text-align: center;
    flex: 1;
}

.price-item.single {
    flex: 1;
}

.price-label {
    font-size: 0.65rem;
    color: #64748b;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: #da0b4e;
}

.session-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    color: #da0b4e;
    margin-left: 8px;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.chat-btn, .profile-btn {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.chat-btn {
    background: #f1f5f9;
    border: none;
    color: #da0b4e;
}

.chat-btn:hover {
    background: #da0b4e;
    color: white;
}

.profile-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid #da0b4e;
    color: white;
    text-decoration: none;
}

.profile-btn:hover {
    background: #da0b4e;
    color: white;
}

.no-results {
    text-align: center;
    background: white;
    border-radius: 24px;
    grid-column: 1/-1;
    padding: 10px 2px 5px 5px;
}

/* Pagination Styles */
/* Complete Pagination Styles */
.pagination-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 40px;
    display: inline-block;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
a {
    text-decoration: none !important;
}
.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #da0b4e;
    color: #da0b4e;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #da0b4e, #4f46e5);
    color: white;
    border-color: transparent;
}

.pagination-btn.active:hover {
    transform: none;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #94a3b8;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: 30px;
        gap: 15px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .pagination-ellipsis {
        min-width: 35px;
        height: 35px;
    }
    .results-count {
        font-size: 0.9rem;
        color: #64748b;
        padding: 5px 5px 5px 20px;
        margin-top: 5px;
        background-color: white;
        width: 100%;
        border-radius: 40px;
    }
    .sort-select {
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 40px;
        background: white;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pagination-controls {
        gap: 5px;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    .pagination-ellipsis {
        min-width: 32px;
        height: 32px;
    }
    .results-count {
        font-size: 0.9rem;
        color: #64748b;
        padding: 5px 5px 5px 20px;
        margin-top: 5px;
        background-color: white;
        width: 100%;
        border-radius: 40px;
    }
    .sort-select {
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 40px;
        background: white;
        width: 100%;
    }
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 1rem;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-ellipsis {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    .results-count {
        font-size: 0.9rem;
        color: #64748b;
        padding: 5px 5px 5px 20px;
        margin-top: 5px;
        background-color: white;
        width: 100%;
        border-radius: 40px;
    }
    .sort-select {
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 40px;
        background: white;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pagination-ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .results-count {
        font-size: 0.9rem;
        color: #64748b;
        padding: 5px 5px 5px 20px;
        margin-top: 5px;
        background-color: white;
        width: 100%;
        border-radius: 40px;
    }
    .sort-select {
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 40px;
        background: white;
        width: 100%;
    }
}

/* Featured Tutors Section */
.featured-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0b1120;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-card {
    background: white;
    border-radius: 18px;
    padding: 15px;
    border: 1px solid #eef2f6;
    transition: all 0.3s;
    display: flex;
    gap: 12px;
    align-items: center;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.1);
}

.featured-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.featured-info {
    flex: 1;
}

.featured-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.featured-title-small {
    font-size: 0.65rem;
    color: #da0b4e;
    margin: 2px 0;
}

.featured-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #da0b4e;
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }
    .filters-sidebar {
        width: 100%;
        position: static;
    }
    .search-card {
        flex-direction: column;
        border-radius: 30px;
    }
    .preference-row {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tutors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}