/* Private Lessons Styles */
:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --primary-green: #2E8B57;
    --secondary-green: #3CB371;
    --dark-green: #1a5f3a;
    --light-gold: #FFF8DC;
    --white: #ffffff;
    --black: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gold-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    --green-shadow: 0 4px 20px rgba(46, 139, 87, 0.3);
}

/* Lessons Hero Section */
.lessons-hero {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
}

.lessons-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-books {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.book {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBook 8s ease-in-out infinite;
}

.book i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    opacity: 0.3;
}

.book-1 { top: 15%; left: 10%; animation-delay: 0s; }
.book-2 { top: 25%; right: 15%; animation-delay: 2s; }
.book-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.book-4 { bottom: 20%; right: 10%; animation-delay: 6s; }

@keyframes floatBook {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

.lessons-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-icon {
    margin-bottom: 2rem;
}

.hero-icon i {
    font-size: 4rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lessons-hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lessons-hero-title .highlight {
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lessons-message {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 600;
}

/* Subject Selection Section */
.subject-selection {
    padding: 4rem 0;
    background: var(--white);
}

.selection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.selection-header h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.selection-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.pricing-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #e8f5e8, #f0f8f0);
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    padding: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-notice i {
    font-size: 1.2rem;
    color: var(--secondary-gold);
}

.selection-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--black);
    font-weight: bold;
    font-size: 1rem;
}

.form-group select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Teachers Section */
.teachers-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.teachers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.teachers-header h2 {
    color: var(--primary-green);
    font-size: 2.2rem;
    font-weight: bold;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-info i {
    color: var(--secondary-gold);
}

/* Teachers Grid */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.teacher-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
}

.teacher-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.teacher-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.teacher-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: var(--gold-shadow);
}

.teacher-info {
    flex: 1;
}

.teacher-info h3 {
    color: var(--black);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.teacher-subjects {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.teacher-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.stars i {
    color: var(--secondary-gold);
    font-size: 0.9rem;
}

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

.teacher-price {
    text-align: center;
    background: var(--light-gold);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
}

.teacher-price .price {
    display: block;
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: bold;
}

.teacher-price .currency {
    color: var(--gray);
    font-size: 0.9rem;
}

.teacher-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-gold);
    width: 16px;
}

.detail-item span {
    color: var(--gray);
}

.teacher-bio {
    margin-bottom: 1.5rem;
}

.teacher-bio p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.teacher-actions {
    display: flex;
    gap: 1rem;
}

.teacher-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view-profile {
    background: var(--light-gray);
    color: var(--black);
}

.btn-view-profile:hover {
    background: var(--gray);
    color: var(--white);
}

.btn-book-now {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--green-shadow);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.no-results-content h3 {
    color: var(--black);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results-content p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-clear-filters {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
}

/* Teacher Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.teacher-modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-content {
    padding: 2rem;
}

/* Teacher Profile */
.teacher-profile {
    direction: rtl;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: var(--gold-shadow);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    color: var(--black);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.profile-education {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-price {
    text-align: center;
    background: var(--light-gold);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
}

.profile-price .price {
    display: block;
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: bold;
}

.profile-price .currency {
    color: var(--gray);
    font-size: 1rem;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 15px;
    border-right: 4px solid var(--primary-gold);
}

.profile-section h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.profile-section h4 i {
    color: var(--primary-gold);
}

.profile-section p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.subjects-list,
.grades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-badge,
.grade-badge {
    background: var(--light-gold);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary-gold);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary-gold);
    width: 16px;
}

.info-item span {
    color: var(--gray);
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.achievements-list i {
    color: var(--primary-gold);
}

.modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-book-lesson {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.btn-book-lesson:hover {
    transform: translateY(-2px);
    box-shadow: var(--green-shadow);
}

.btn-contact-teacher {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
}

.btn-contact-teacher:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lessons-hero-title {
        font-size: 2.5rem;
    }
    
    .lessons-message {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .selection-form {
        padding: 1.5rem;
    }
    
    .teachers-header {
        flex-direction: column;
        text-align: center;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .teacher-card {
        padding: 1.5rem;
    }
    
    .teacher-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .teacher-actions {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .book {
        display: none;
    }
}

@media (max-width: 480px) {
    .lessons-hero-title {
        font-size: 2rem;
    }
    
    .lessons-hero {
        min-height: 70vh;
    }
    
    .teachers-section,
    .subject-selection {
        padding: 2rem 0;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
}

/* Pricing Details Styles */
.pricing-details {
    margin-top: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pricing-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

.pricing-item .subject-name {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1rem;
}

.pricing-item .grade-name {
    color: var(--gray);
    font-size: 0.9rem;
}

.pricing-item .price-value {
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-top: auto;
}

/* Price Range Display */
.price-range-display {
    background: linear-gradient(135deg, var(--light-gold) 0%, #fff5e6 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.price-range-display .price-range-text {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.price-range-display .price-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Updated Price Display in Cards */
.teacher-price .price {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.profile-price .price {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .pricing-item {
        padding: 0.75rem;
    }
    
    .pricing-item .subject-name {
        font-size: 0.95rem;
    }
    
    .pricing-item .grade-name {
        font-size: 0.85rem;
    }
    
    .pricing-item .price-value {
        font-size: 1rem;
    }
} 