body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

/* Navigation */
.nav {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6366f1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #6366f1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333333;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 2rem 0;
  opacity: 0.95;
}

.hero-btn {
  background: white;
  color: #6366f1;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin: 0 0 3rem 0;
  text-align: center;
  font-weight: 700;
  color: #1f2937;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: #333333;
  cursor: pointer;
  transition: border-color 0.3s;
  flex: 1;
  min-width: 200px;
}

.filter-select:focus {
  outline: none;
  border-color: #6366f1;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.card-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.card-body {
  margin-bottom: 1.5rem;
}

.card-meta {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Buttons */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  display: inline-block;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Trainer Cards */
.trainer-card {
  text-align: center;
}

.trainer-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.specializations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

/* Membership Plans */
.plan-card {
  border: 3px solid #e5e7eb;
  position: relative;
}

.plan-card.featured {
  border-color: #6366f1;
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #6366f1;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: #1f2937;
  margin: 1rem 0;
}

.plan-price span {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 400;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-features li:before {
  content: "✓";
  color: #10b981;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #1f2937;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
}

.stat-label {
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
}

.booking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.booking-info h4 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.15rem;
}

.booking-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: #6366f1;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.map-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.reviews {
  margin-top: 3rem;
}

.review-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 700;
  color: #1f2937;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.25rem;
}

.hidden {
  display: none !important;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* View transition */
@view-transition {
  navigation: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6366f1;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  display: none;
  z-index: 1000;
}
/* Center all card grids */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers the cards horizontally */
  gap: 2rem; /* spacing between cards */
  margin: 0 auto;
}

/* Optional: make each card have consistent width */
.card-grid .card {
  flex: 0 1 300px; /* min width 300px, max width auto */
}

/* Primary color palette */
:root {
  --primary-blue: #4f8ef7; /* lighter blue */
  --primary-dark: #3866c8; /* darker shade for hover */
  --primary-light: #e3f0ff; /* very light blue for backgrounds/badges */
  --text-color: #333333;
}

/* Navigation */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #4f8ef7 0%, #7ab0ff 100%);
  color: white;
}

/* Hero button */
.hero-btn {
  background: white;
  color: var(--primary-blue);
}

.hero-btn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Cards hover */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Dashboard stats cards */
.stat-card {
  background: linear-gradient(135deg, #4f8ef7 0%, #7ab0ff 100%);
  color: white;
}

/* Buttons */
.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* Badges */
.badge-success {
  background: #dbeeff;
  color: var(--primary-dark);
}

.badge-info {
  background: #dbeaff;
  color: var(--primary-dark);
}

/* Modal close button */
.modal-close {
  color: #3866c8;
}

/* Trainer photo */
.trainer-photo {
  background: linear-gradient(135deg, #4f8ef7 0%, #7ab0ff 100%);
}
/* Trainer Cards */
.trainer-card {
  text-align: center;
}

.trainer-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden; /* ensures image fits circle */
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f0ff; /* fallback color if no image */
}

.trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures image fills the circle without distortion */
}
/* Trainer Photos */
.trainer-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Special adjustment for Mike Chen */
.trainer-photo.mike img {
  width: 120%;
  height: 120%;
  transform: translateY(10%);
  object-fit: cover;
}
.footer {
  background: #3b82f6; /* lighter blue */
  color: #fff;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  align-items: center;
}

.footer-section {
  margin: 5px 0;
}

.footer i {
  margin: 0 0.5rem;
  color: #dbeafe; /* lighter blue icons */
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer i:hover {
  color: #93c5fd;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}
.hero {
  background: linear-gradient(rgba(99,102,246,0.6), rgba(139,92,246,0.6)),
              url('../FOTOT/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 8rem 2rem; 
  text-align: center;
  position: relative;
}

.hero h1, .hero p {
  position: relative; 
  z-index: 1;
}
/* Sign Up as Trainer button */
.container a[href*="Registration1.php"] {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff6a00, #ff8c42);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.35);
  transition: all 0.3s ease;
}

/* Hover effect */
.container a[href*="Registration1.php"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 106, 0, 0.5);
  background: linear-gradient(135deg, #ff8c42, #ff6a00);
}

/* Center it nicely */
.container {
  text-align: center;
}
