@charset "utf-8";
/* CSS Document */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

section {
    padding: 4rem 1rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Custom styles for testimonial cards */
testimonial-card {
    display: block;
    margin-bottom: 2rem;
}
/* Subject Flip Cards */
.subject-card {
    perspective: 1000px;
    height: 250px;
    cursor: pointer;
}

.subject-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.subject-card:hover .subject-card-inner,
.subject-card:focus .subject-card-inner,
.subject-card.flipped .subject-card-inner {
    transform: rotateY(180deg);
}

.subject-card-front, 
.subject-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: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.subject-card-front {
    color: #1e293b;
}

.subject-card-back {
    background: #ffffff;
    transform: rotateY(180deg);
    color: #334155;
    border: 1px solid #e2e8f0;
}

.subject-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}
.tutor-badge {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #e0e7ff;
    color: #3b82f6;
    font-weight: 500;
}
.subject-card-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.subject-card-btn:hover {
    background: #2563eb;
}
/* Form input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}
/* Responsive typography */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }
}

/* Form animation */
form {
    transition: all 0.3s ease;
}

form.submitting {
    transform: scale(0.98);
    opacity: 0.8;
}
