/* Base styles */
body {
    font-family: "Avenir", Arial, sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #333;
  }
  
  header {
    text-align: center;
    padding: 20px;
    background: #0A65C1; /* brand accent color */
    color: white;
  }
  
  #filters {
    text-align: center;
    margin: 15px 0;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  #filters select,
  #filters input {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 140px;
  }
  
  /* Tutors grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  
  .card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0A65C1;
  }
  
  .card h3 {
    margin-top: 10px;
    color: #0A65C1;
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 0.9rem;
    margin: 5px 0;
    word-wrap: break-word;
  }
  
  button.showDetailsBtn {
    background-color: #0A65C1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
  }
  
  button.showDetailsBtn:hover {
    background-color: #084E94;
  }
  
  /* Details section */
  .details-container {
    margin-top: 10px;
    display: none;
    text-align: left;
  }
  
  .details-container h4 {
    margin: 5px 0;
    color: #0A65C1;
    font-size: 1rem;
  }
  
  .details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
  }
  
  .details-table th, .details-table td {
    border: 1px solid #ddd;
    padding: 6px;
    font-size: 0.85rem;
  }
  
  .details-table th {
    background: #f1f1f1;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 15px;
    background: #0A65C1;
    color: white;
    margin-top: 20px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
  
    .card img {
      width: 80px;
      height: 80px;
    }
  
    .card h3 {
      font-size: 1rem;
    }
  
    #filters select,
    #filters input {
      min-width: 120px;
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 480px) {
    .grid {
      grid-template-columns: 1fr;
    }
  
    .card {
      padding: 12px;
    }
  
    .card img {
      width: 70px;
      height: 70px;
    }
  
    .card h3 {
      font-size: 0.95rem;
    }
  }
  .subjects-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 10px;
  }
  
  .subjects-container.open {
    max-height: 500px; /* large enough for content */
    padding: 10px;
  }
  
  /* Category header */
  .subjects-container h4 {
    font-family: Avenir, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #0A65C1;
    color: #0A65C1;
  }

  /* Details list */
  .subjects-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
  }

  .subjects-container li {
    font-family: Avenir, sans-serif;
    font-size: 15px;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
  }

  /* Price style */
  .subjects-container li span.price {
    color: #0A65C1;
    font-weight: 600;
  }
  .site-logo {
    height: 70px;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .site-logo:hover {
    transform: scale(1.05);
  }
  
  header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #0A65C1;
    color: #fff;
  }
  /* Skeleton loading styles */
.skeleton {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 15px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e0e0e0;
  margin: 0 auto 10px;
}

.skeleton-line {
  height: 12px;
  background: #e0e0e0;
  margin: 6px 0;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

@keyframes pulse {
  0% { background-color: #e0e0e0; }
  50% { background-color: #f0f0f0; }
  100% { background-color: #e0e0e0; }
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #0A65C1;
  color: #fff;
}

.site-title {
  text-align: center;
}

.site-moto {
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 5px;
  color: #f1f1f1;
  font-style: italic;
}

.search-filter {
  display: flex;
  gap: 10px;
}

#searchBar {
  padding: 8px;
  border-radius: 5px;
  border: none;
  width: 200px;
}

#filterType {
  padding: 8px;
  border-radius: 5px;
  border: none;
}
footer {
  text-align: center;
  padding: 20px;
  background: #0A65C1;
  color: #fff;
}

footer .social-links {
  margin-top: 10px;
}

footer .social-links a {
  margin: 0 12px;
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

footer .social-links a:hover {
  color: #FFD700; /* golden hover */
  transform: scale(1.2);
}

.rating {
  margin: 6px 0 8px;
  color: #FFD700;
  font-size: 1.1rem;
  display: flex;
  justify-content: center; /* centers stars + count horizontally */
  align-items: center;     /* vertically align stars with count */
  gap: 5px;                /* space between stars and number */
}

.ratings-count {
  font-size: 0.9rem;
  color: #333;
  margin-left: 0;
}


.tutor-card h3 {
  margin: 10px 0 6px; /* space above and below name */
  color: #0A65C1;
  font-size: 1.2rem;
}

.tutor-card .rating {
  margin: 6px 0 8px; /* space around stars */
  color: #FFD700;
  font-size: 1.1rem;
}

.tutor-card p {
  margin: 6px 0; /* space around description & info */
  font-size: 0.9rem;
  word-wrap: break-word;
}

.tutor-card button.view-details {
  margin-top: 14px; /* space above button */
  background-color: #0A65C1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tutor-card button.view-details:hover {
  background-color: #084E94;
}
