* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f4f8;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1a2a6c, #2d4373);
    color: white;
    border-radius: 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

#filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#searchInput,
#stageFilter,
#subjectFilter {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    background: white;
    transition: 0.3s;
    min-width: 150px;
}

#searchInput:focus,
#stageFilter:focus,
#subjectFilter:focus {
    outline: none;
    border-color: #1a2a6c;
    box-shadow: 0 0 10px rgba(26, 42, 108, 0.2);
}

#teachers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.teacher-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid #e8ecf1;
}

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

.teacher-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.teacher-card h3 {
    font-size: 1.5rem;
    color: #1a2a6c;
    margin-bottom: 5px;
}

.teacher-card .subject {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.teacher-card .stage-badge {
    display: inline-block;
    background: #1a2a6c;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 5px 0 10px;
}

.teacher-card .detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.teacher-card .detail:last-of-type {
    border-bottom: none;
}

.teacher-card .price {
    color: #2d4373;
    font-weight: bold;
    font-size: 1.2rem;
}

.teacher-card .rating {
    color: #f39c12;
    font-weight: bold;
}

.teacher-card .phone {
    color: #1a2a6c;
    font-weight: bold;
    direction: ltr;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: scale(1.02);
}

.rate-btn {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.rate-btn:hover {
    background: #e67e22;
    transform: scale(1.02);
}

.share-btn {
    display: inline-block;
    background: #1a2a6c;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}

.share-btn:hover {
    background: #2d4373;
    transform: scale(1.02);
}

.video-btn {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.video-btn:hover {
    background: #cc0000;
    transform: scale(1.02);
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #7f8c8d;
}

.no-results {
    text-align: center;
    font-size: 1.5rem;
    color: #7f8c8d;
    width: 100%;
    padding: 50px 0;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    #filters {
        flex-direction: column;
        align-items: center;
    }
    #searchInput,
    #stageFilter,
    #subjectFilter {
        width: 90%;
    }
    .teacher-card {
        width: 95%;
    }
}