.teaching-container {
    padding: 2rem 0;
}

.teaching-category {
    margin-bottom: 3rem;
}

.teaching-category-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.teaching-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.teaching-card {
    perspective: 1000px;
    height: 300px;
}

.teaching-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
    background: white;
}

.teaching-card:hover .teaching-card-inner {
    transform: rotateY(180deg);
}

.teaching-card-front,
.teaching-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 15px;
}

.teaching-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.teaching-card-back {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: white;
    transform: rotateY(180deg);
}

.teaching-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.teaching-subject {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.teaching-level {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.teaching-period {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

.teaching-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.teaching-topics li {
    padding: 0.5rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.teaching-topics li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .teaching-card {
        height: 250px;
    }
    
    .teaching-subject {
        font-size: 1.2rem;
    }
    
    .teaching-icon {
        font-size: 2rem;
    }
} 