@charset "utf-8";
/* CSS Document */



body {
    font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed header */
}

/* Navbar styles */
nav {
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    #mobile-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;
        z-index: 100;
    }
}
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;
}

/* Tutor card with spherical photo */
.tutor-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    height: 100%;
}

.tutor-photo-container {
    height: 160px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
}
.tutor-photo-sphere {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    margin-top: -60px; /* Half of height to center vertically */
    object-fit: cover;
    z-index: 2;
    transition: all 0.3s ease;
}
.tutor-card:hover .tutor-photo-sphere {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.tutor-info {
    padding: 24px;
    text-align: center;
    margin-top: 0;
}
.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 {
    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;
}
.slideshow-container {
  position: relative;
}

.slides-viewport {
  overflow: hidden;
}

.slides-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  flex: 0 0 50%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Navigation arrows */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.prev { left: -20px; }
.next { right: -20px; }

/* Mobile */
@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%;
  }

  .prev { left: 5px; }
  .next { right: 5px; }
}
