/* css/pages/tutor-profile-v3.css */
/* ===== TUTOR PROFILE PAGE STYLES ===== */

/* CSS Variables */

/* Breadcrumb */
.breadcrumb-container {
    background: var(--light);
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb a::after {
    content: '>';
    margin-left: 10px;
    color: var(--gray-400);
}

.breadcrumb span {
    color: var(--dark);
    font-weight: 500;
}

/* Main Profile Layout */
.tutor-profile {
    padding: 50px 0 50px;
    background: white;
}

.profile-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Tutor Header */
.tutor-header-minimal {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.tutor-avatar {
    position: relative;
    flex-shrink: 0;
}

.tutor-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid white;
}

.tutor-meta {
    flex: 1;
}

.tutor-meta h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: var(--dark);
    font-weight: 700;
}

.meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.tutor-bio {
    color: var(--gray-600);
    line-height: 1.5;
    margin: 10px 0 0 0;
    font-size: 0.95rem;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.pricing {
    display: flex;
    gap: 15px;
}

.price-tag {
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.price-tag.online {
    background: #e3f2fd;
    color: #1976d2;
}

.price-tag.inperson {
    background: #e8f5e9;
    color: #2e7d32;
}

.price-tag small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.price-tag span {
    font-size: 1.3rem;
    font-weight: bold;
    display: block;
}

.actions {
    display: flex;
    gap: 10px;
}



/* Sections */
.about-section,
.subjects-section,
.teaching-style,
.reviews-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.about-section h2,
.subjects-section h2,
.teaching-style h2,
.reviews-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.about-section h2 i,
.subjects-section h2 i,
.teaching-style h2 i,
.reviews-section h2 i {
    color: var(--primary);
}

/* About Content */
.about-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Education Section */
.education-section {
    margin-top: 40px;
}

.education-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.education-section h3 i {
    color: var(--primary);
}

.education-timeline {
    position: relative;
    padding-left: 30px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.education-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.education-card::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    z-index: 1;
}

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

.edu-degree h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.edu-institution {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.edu-year {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
}

.edu-desc {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.edu-achievements {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.achievement-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 15px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.achievement-tag i {
    font-size: 0.8rem;
}

/* Subjects Section */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.subject-category {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.subject-category h4 {
    margin: 0 0 15px 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-tag {
    padding: 6px 15px;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    font-weight: 500;
    transition: var(--transition);
}

.subject-tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Teaching Style */
.style-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.style-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.style-point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.style-point i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.style-point h4 {
    margin: 0 0 8px 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.style-point p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-header {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius-lg);
}

.overall-rating {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 5px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-count {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.rating-breakdown {
    flex: 1;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-label {
    min-width: 50px;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 4px;
}

.breakdown-percent {
    min-width: 30px;
    text-align: right;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Review Cards */
.reviews-list {
    margin-bottom: 30px;
}

.review-card {
    padding: 25px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    background: white;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-card:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-left: 10px;
}

.review-subject .subject-tag {
    padding: 4px 12px;
    background: var(--light);
    color: var(--gray-700);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.review-body p {
    margin: 0;
    line-height: 1.6;
    color: var(--gray-800);
    font-size: 0.95rem;
}

/* Right Column Cards */
.profile-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.quick-contact-card,
.availability-card,
.details-card,
.certifications-card,
.share-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 25px;
    transition: var(--transition);
}

.quick-contact-card:hover,
.availability-card:hover,
.details-card:hover,
.certifications-card:hover,
.share-card:hover {
    box-shadow: var(--shadow-lg);
}

.quick-contact-card h3,
.availability-card h3,
.details-card h3,
.certifications-card h3,
.share-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.quick-contact-card h3 i,
.availability-card h3 i,
.details-card h3 i,
.certifications-card h3 i,
.share-card h3 i {
    color: var(--primary);
}

/* Pricing Table */
.pricing-table {
    margin-bottom: 20px;
}

.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--light);
    border: 2px solid transparent;
    transition: var(--transition);
}

.pricing-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pricing-row.online {
    border-color: rgba(33, 150, 243, 0.2);
}

.pricing-row.in-person {
    border-color: rgba(76, 175, 80, 0.2);
}

.pricing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.pricing-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pricing-row.online .pricing-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.pricing-row.in-person .pricing-icon {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.pricing-details h4 {
    margin: 0 0 4px 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
}

.pricing-desc {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-row.online .price {
    color: #2196f3;
}

.pricing-row.in-person .price {
    color: #4caf50;
}

.period {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-right: 5px;
}

/* Package Info */
.package-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 193, 7, 0.2);
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--gray-700);
    flex-wrap: wrap;
    text-align: center;
}

.package-info i {
    color: #ffc107;
}

.view-packages {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.view-packages:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Action Buttons */
.action-buttons-three {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    background: white;
    border: 1px solid var(--gray-300);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.favorite-btn:hover {
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1), rgba(255, 64, 129, 0.05));
    border-color: #ff4081;
    color: #ff4081;
}

.favorite-btn .btn-icon {
    background: rgba(255, 64, 129, 0.1);
    color: #ff4081;
}

.favorite-btn:hover .btn-icon {
    background: #ff4081;
    color: white;
    transform: scale(1.1);
}

.chat-btn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-color: #2196f3;
    color: #2196f3;
}

.chat-btn .btn-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.chat-btn:hover .btn-icon {
    background: #2196f3;
    color: white;
    transform: scale(1.1);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary-dark);
    color: white;
    font-weight: 600;
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.primary-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.primary-btn:hover .btn-icon {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-text {
    flex: 1;
    min-width: 0;
}

.btn-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: inherit;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.primary-btn .btn-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Availability Card */
.availability-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.day-slot {
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.day-slot:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.day-slot.unavailable {
    background: rgba(244, 67, 54, 0.05);
    border-color: rgba(244, 67, 54, 0.2);
    opacity: 0.8;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.day {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.day::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.day-slot.unavailable .day::before {
    background: #f44336;
}

.session-count {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
}

.day-slot.unavailable .session-count {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.time-slot-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.time-slot-item.weekend {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.2);
}

.time-slot-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.time-slot-item i.fa-sun {
    color: #ff9800;
}

.time-slot-item i.fa-moon {
    color: #673ab7;
}

.time-slot-item i.fa-clock {
    color: var(--primary);
}

.time {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.session-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 70px;
    text-align: center;
}

.session-type.online {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.session-type.in-person {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.session-type.hybrid {
    background: rgba(255, 193, 7, 0.1);
    color: #ff8f00;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.unavailable-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    border: 1px dashed rgba(244, 67, 54, 0.3);
    color: #f44336;
    font-weight: 500;
}

.unavailable-message i {
    font-size: 1.2rem;
}

.availability-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.availability-note {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    max-width: 500px;
    line-height: 1.5;
}

.availability-note i {
    color: var(--primary);
    flex-shrink: 0;
}

#viewFullCalendar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

#viewFullCalendar:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#viewFullCalendar i {
    font-size: 1rem;
}

/* Details Card */
.details-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.detail-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.detail-item i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.detail-item .label {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: block;
    margin-bottom: 2px;
}

.detail-item .value {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

/* Certifications Card */
.certifications-card h3 i {
    color: #ffc107;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
    border-left: 4px solid #ffc107;
}

.cert-item i {
    color: #ffc107;
    font-size: 0.9rem;
}

.cert-item span {
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Share Card */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--light);
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-btn.link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cta-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.cta-content h2 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.cta-image:hover img {
    transform: scale(1.05);
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Base mobile styles */
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .container {
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Breadcrumb */
    .breadcrumb-container {
        padding: 12px 0;
    }
    
    .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb a {
        white-space: nowrap;
        padding: 4px 8px;
        background: var(--gray-100);
        border-radius: 6px;
        font-size: 0.9rem;
    }
    
    .breadcrumb a::after {
        display: none;
    }
    
    .breadcrumb span {
        padding: 4px 8px;
        background: var(--primary-light);
        color: var(--primary-dark);
        border-radius: 6px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    /* Profile layout */
    .tutor-profile {
        padding: 20px 0 30px;
    }
    
    .profile-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        display: flex;
        flex-direction: column;
    }
    
    .profile-right {
        position: static;
        margin-top: 0;
        order: -1; /* Move right column to top on mobile */
    }
    
    /* Tutor header */
    .tutor-header-minimal {
        padding: 20px;
        margin-bottom: 24px;
        order: 1; /* Main content comes after right column */
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .tutor-avatar {
        align-self: center;
    }
    
    .tutor-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .tutor-meta h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .meta-info span {
        font-size: 0.9rem;
        padding: 6px 12px;
        background: var(--gray-100);
        border-radius: 20px;
        width: fit-content;
    }
    
    .tutor-bio {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.5;
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .pricing {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .price-tag {
        flex: 1;
        max-width: 140px;
        padding: 12px 10px;
        min-width: auto;
    }
    
    .price-tag span {
        font-size: 1.3rem;
    }
    
    .actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .actions .btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        height: 44px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .actions .btn-text {
        display: inline !important;
        font-size: 0.9rem;
    }
    
    .mobile-only {
        display: inline-flex !important;
    }
    
    /* Sections */
    .about-section,
    .subjects-section,
    .teaching-style,
    .reviews-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .about-section h2,
    .subjects-section h2,
    .teaching-style h2,
    .reviews-section h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    /* About Content */
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: justify;
    }
    
    /* Education section */
    .education-section {
        margin-top: 32px;
    }
    
    .education-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .education-timeline {
        padding-left: 20px;
    }
    
    .education-timeline::before {
        width: 2px;
    }
    
    .education-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .education-card::before {
        left: -30px;
        top: 25px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .edu-year {
        align-self: flex-start;
        padding: 4px 12px;
        font-size: 0.85rem;
    }
    
    .edu-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .edu-achievements {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .achievement-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    /* Subjects */
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .subject-category {
        padding: 16px;
    }
    
    .subject-category h4 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .subject-tags {
        justify-content: center;
        gap: 6px;
    }
    
    .subject-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Teaching style */
    .style-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .style-point {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        align-items: center;
        gap: 12px;
    }
    
    .style-point i {
        margin: 0;
        font-size: 1.8rem;
    }
    
    .style-point h4 {
        font-size: 1.1rem;
    }
    
    .style-point p {
        font-size: 0.9rem;
    }
    
    /* Reviews */
    .reviews-header {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .overall-rating {
        width: 100%;
        text-align: center;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .rating-breakdown {
        width: 100%;
    }
    
    .breakdown-item {
        gap: 10px;
    }
    
    .breakdown-label {
        min-width: 60px;
        font-size: 0.85rem;
    }
    
    .breakdown-bar {
        flex: 1;
        height: 10px;
    }
    
    .breakdown-percent {
        min-width: 35px;
        font-size: 0.85rem;
    }
    
    .review-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }
    
    .reviewer-info h4 {
        font-size: 1rem;
    }
    
    .review-body p {
        font-size: 0.9rem;
    }
    
    /* Right column cards */
    .quick-contact-card,
    .availability-card,
    .details-card,
    .certifications-card,
    .share-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .quick-contact-card h3,
    .availability-card h3,
    .details-card h3,
    .certifications-card h3,
    .share-card h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    /* Pricing table */
    .pricing-table {
        margin-bottom: 16px;
    }
    
    .pricing-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .pricing-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .pricing-details h4 {
        font-size: 1rem;
    }
    
    .pricing-desc {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    /* Package info */
    .package-info {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Action buttons */
    .action-buttons-three {
        gap: 12px;
    }
    
    .action-btn {
        padding: 16px;
        gap: 12px;
        min-height: 56px;
    }
    
    .btn-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.85rem;
    }
    
    /* Availability */
    .day-slot {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .day {
        font-size: 1rem;
    }
    
    .time-slots {
        gap: 10px;
    }
    
    .time-slot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .time {
        order: 2;
    }
    
    .session-type {
        order: 3;
        align-self: flex-start;
    }
    
    .availability-footer {
        padding-top: 16px;
        gap: 12px;
    }
    
    .availability-note {
        font-size: 0.8rem;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    #viewFullCalendar {
        width: 100%;
        min-width: auto;
        padding: 12px;
    }
    
    /* Details grid */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    /* Certifications */
    .cert-list {
        gap: 10px;
    }
    
    .cert-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Share buttons */
    .share-buttons {
        justify-content: space-between;
        gap: 8px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex: 1;
    }
    
    /* CTA section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .cta-image {
        order: -1;
    }
    
    .cta-image img {
        height: 180px;
    }
    
    /* View All Reviews Button */
    #viewAllReviewsBtn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ===== MOBILE RESPONSIVENESS FIX ===== */

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Base mobile styles */
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .container {
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Breadcrumb */
    .breadcrumb-container {
        padding: 12px 0;
    }
    
    .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb a {
        white-space: nowrap;
        padding: 4px 8px;
        background: var(--gray-100);
        border-radius: 6px;
        font-size: 0.9rem;
    }
    
    .breadcrumb a::after {
        display: none;
    }
    
    .breadcrumb span {
        padding: 4px 8px;
        background: var(--primary-light);
        color: var(--primary-dark);
        border-radius: 6px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    /* Profile layout - CORRECT ORDER */
    .tutor-profile {
        padding: 20px 0 30px;
    }
    
    .profile-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        display: flex;
        flex-direction: column;
    }
    
    /* MAINTAIN DESKTOP ORDER ON MOBILE */
    /* Don't reorder - keep the desktop order: profile-left first, then profile-right */
    .profile-left {
        order: 1;
    }
    
    .profile-right {
        order: 2;
        position: static;
        margin-top: 0;
    }
    
    /* Tutor header - Should come first */
    .tutor-header-minimal {
        padding: 20px;
        margin-bottom: 24px;
        order: 0; /* Ensure it comes first */
    }
    
    /* Right column cards specific ordering */
    .quick-contact-card {
        order: 1;
    }
    
    .availability-card {
        order: 2;
    }
    
    .details-card {
        order: 3;
    }
    
    /* Left column sections */
    .about-section {
        order: 4;
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .subjects-section {
        order: 5;
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .teaching-style {
        order: 6;
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .reviews-section {
        order: 7;
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    /* Back to right column */
    .certifications-card {
        order: 8;
    }
    
    .share-card {
        order: 9;
    }
    
    /* Now apply styles to maintain the flow */
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .tutor-avatar {
        align-self: center;
    }
    
    .tutor-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .tutor-meta h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .meta-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .meta-info span {
        font-size: 0.9rem;
        padding: 6px 12px;
        background: var(--gray-100);
        border-radius: 20px;
        width: fit-content;
    }
    
    .tutor-bio {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.5;
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .pricing {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .price-tag {
        flex: 1;
        max-width: 140px;
        padding: 12px 10px;
        min-width: auto;
    }
    
    .price-tag span {
        font-size: 1.3rem;
    }
    
    .actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .actions .btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        height: 44px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .actions .btn-text {
        display: inline !important;
        font-size: 0.9rem;
    }
    
    .mobile-only {
        display: inline-flex !important;
    }
    
    /* Sections common styles */
    .about-section h2,
    .subjects-section h2,
    .teaching-style h2,
    .reviews-section h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    /* About Content */
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: justify;
    }
    
    /* Education section */
    .education-section {
        margin-top: 32px;
    }
    
    .education-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .education-timeline {
        padding-left: 20px;
    }
    
    .education-timeline::before {
        width: 2px;
    }
    
    .education-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .education-card::before {
        left: -30px;
        top: 25px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .edu-year {
        align-self: flex-start;
        padding: 4px 12px;
        font-size: 0.85rem;
    }
    
    .edu-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .edu-achievements {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .achievement-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    /* Subjects */
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .subject-category {
        padding: 16px;
    }
    
    .subject-category h4 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .subject-tags {
        justify-content: center;
        gap: 6px;
    }
    
    .subject-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Teaching style */
    .style-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .style-point {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        align-items: center;
        gap: 12px;
    }
    
    .style-point i {
        margin: 0;
        font-size: 1.8rem;
    }
    
    .style-point h4 {
        font-size: 1.1rem;
    }
    
    .style-point p {
        font-size: 0.9rem;
    }
    
    /* Reviews */
    .reviews-header {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .overall-rating {
        width: 100%;
        text-align: center;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .rating-breakdown {
        width: 100%;
    }
    
    .breakdown-item {
        gap: 10px;
    }
    
    .breakdown-label {
        min-width: 60px;
        font-size: 0.85rem;
    }
    
    .breakdown-bar {
        flex: 1;
        height: 10px;
    }
    
    .breakdown-percent {
        min-width: 35px;
        font-size: 0.85rem;
    }
    
    .review-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }
    
    .reviewer-info h4 {
        font-size: 1rem;
    }
    
    .review-body p {
        font-size: 0.9rem;
    }
    
    /* Right column cards */
    .quick-contact-card,
    .availability-card,
    .details-card,
    .certifications-card,
    .share-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .quick-contact-card h3,
    .availability-card h3,
    .details-card h3,
    .certifications-card h3,
    .share-card h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    /* Pricing table */
    .pricing-table {
        margin-bottom: 16px;
    }
    
    .pricing-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .pricing-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .pricing-details h4 {
        font-size: 1rem;
    }
    
    .pricing-desc {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    /* Package info */
    .package-info {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Action buttons */
    .action-buttons-three {
        gap: 12px;
    }
    
    .action-btn {
        padding: 16px;
        gap: 12px;
        min-height: 56px;
    }
    
    .btn-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.85rem;
    }
    
    /* Availability */
    .day-slot {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .day {
        font-size: 1rem;
    }
    
    .time-slots {
        gap: 10px;
    }
    
    .time-slot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .time {
        order: 2;
    }
    
    .session-type {
        order: 3;
        align-self: flex-start;
    }
    
    .availability-footer {
        padding-top: 16px;
        gap: 12px;
    }
    
    .availability-note {
        font-size: 0.8rem;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    #viewFullCalendar {
        width: 100%;
        min-width: auto;
        padding: 12px;
    }
    
    /* Details grid */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    /* Certifications */
    .cert-list {
        gap: 10px;
    }
    
    .cert-item {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Share buttons */
    .share-buttons {
        justify-content: space-between;
        gap: 8px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex: 1;
    }
    
    /* CTA section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .cta-image {
        order: -1;
    }
    
    .cta-image img {
        height: 180px;
    }
    
    /* View All Reviews Button */
    #viewAllReviewsBtn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Tablet (769px to 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .profile-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        position: static;
    }
    
    .quick-contact-card {
        grid-column: span 2;
    }
    
    .tutor-header-minimal {
        padding: 30px;
    }
    
    .header-top {
        align-items: center;
    }
    
    .meta-info {
        justify-content: flex-start;
    }
    
    .actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .style-points {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .reviews-header {
        flex-direction: row;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cta-card {
        padding: 30px;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 12px;
    }
    
    .cta-buttons .btn {
        flex: 1;
        min-width: 200px;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .tutor-avatar img {
        width: 90px;
        height: 90px;
    }
    
    .tutor-meta h1 {
        font-size: 1.4rem;
    }
    
    .meta-info span {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .price-tag {
        max-width: 120px;
        padding: 10px 8px;
    }
    
    .price-tag span {
        font-size: 1.2rem;
    }
    
    .actions .btn {
        min-width: 120px;
        height: 42px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .education-card {
        padding: 18px;
    }
    
    .education-card::before {
        left: -25px;
        top: 22px;
        width: 14px;
        height: 14px;
    }
    
    .subject-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .action-btn {
        padding: 14px;
        min-height: 52px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .btn-title {
        font-size: 0.95rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
    
    .cta-card {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    #viewFullCalendar {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Very small devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .tutor-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .tutor-meta h1 {
        font-size: 1.3rem;
    }
    
    .price-tag {
        max-width: 110px;
        padding: 8px 6px;
    }
    
    .actions .btn {
        min-width: 110px;
        height: 40px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .subject-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .action-btn {
        padding: 12px;
        min-height: 48px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.2rem;
    }
    
    .cta-content p {
        font-size: 0.85rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .action-btn,
    .share-btn,
    .subject-tag,
    .achievement-tag {
        min-height: 44px;
        min-width: 44px;
    }
    
    .action-btn,
    .btn {
        padding: 12px 16px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .action-btn:hover,
    .share-btn:hover,
    .subject-tag:hover {
        transform: none;
    }
    
    /* Add active states for touch feedback */
    .btn:active,
    .action-btn:active,
    .share-btn:active,
    .subject-tag:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Improve tap targets */
    .meta-info span,
    .achievement-tag {
        padding: 8px 12px;
        margin: 2px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        position: relative;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    /* Smooth scrolling for iOS */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .profile-wrapper {
        gap: 20px;
    }
    
    .header-top {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .tutor-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .tutor-meta h1 {
        font-size: 1.4rem;
    }
    
    .meta-info {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .actions {
        flex-wrap: nowrap;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-card {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .cta-content h2 {
        font-size: 1.4rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .quick-contact-card {
        grid-column: span 2;
    }
}