/* 導航欄樣式 */
.navbar {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.nav-logo h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-logo h2.single {
  font-size: 22px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 12px;
}

.lang-select option {
  color: #111827;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}

button.nav-link {
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

/* 導航欄登入狀態顯示 */
.nav-auth {
  display: none;
}

.nav-guest {
  display: list-item;
}

body.is-authenticated .nav-auth {
  display: list-item;
}

body.is-authenticated .nav-guest {
  display: none;
}

.nav-guest-only,
.nav-admin-only {
  display: none !important;
}

.nav-auth.user-logout {
  display: none;
}

body.is-authenticated .nav-auth.user-logout {
  display: list-item;
}

.admin-only {
  display: none !important;
}

.nav-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.nav-guest-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.auth-only {
  display: block;
}

body.is-authenticated .auth-only {
  display: block;
}

.guest-only {
  display: block;
}

body.is-authenticated .guest-only {
  display: none;
}

/* 主頁樣式 */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fdfbff, #f5f5ff);
  background-size: 200% 200%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  animation: gradientShift 12s ease infinite;
}

.hero-section h1 {
  font-size: 42px;
  margin: 0 0 16px;
  color: #1f2933;
}

.hero-section p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.quick-links {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.quick-links h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1f2933;
}

.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
}

.quick-link.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border-color: transparent;
}

.quick-links-note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card.disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #1f2933;
}

.service-card .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 999px;
  vertical-align: middle;
}

.service-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

/* 通用頁面樣式 */
.page-container {
  width: 100%;
  margin: 0;
  padding: 40px 24px;
  animation: fadeUp 0.5s ease both;
}

.page-container h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: #1f2933;
}

.page-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

.content-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.5s ease both;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.content-card h2 {
  margin: 0 0 24px;
  font-size: 24px;
  color: #1f2933;
}

/* 聯絡我們 */
.contact-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(135deg, #fdfbff, #f5f5ff);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  animation: fadeUp 0.5s ease both;
}

.contact-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2933;
}

.contact-value a {
  color: #4338ca;
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* 表單樣式 */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-row input,
.form-row textarea {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.primary-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.primary-btn:active {
  transform: translateY(0);
}

.nav-logo h2 {
  animation: softFloat 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.danger-btn {
  padding: 8px 16px;
  background: #e9d5ff;
  color: #6d28d9;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.danger-btn:hover {
  background: #d8b4fe;
}

/* 科目列表 */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subject-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.subject-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subject-info strong {
  color: #1f2933;
}

.subject-info span {
  color: #6b7280;
  font-size: 14px;
}

/* 組員列表 */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-bar input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.swap-tutorial {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

/* 老師評價 */
.rating-stars {
  display: inline-flex;
  gap: 6px;
}

.rating-star {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #d1d5db;
  padding: 0;
}

.rating-star.filled {
  color: #f59e0b;
}

.rating-star:hover,
.rating-star:focus-visible {
  color: #f59e0b;
}

.rating-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) minmax(220px, 1fr);
  gap: 18px;
}

.rating-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.rating-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.rating-column-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rating-toggle {
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.rating-search {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
}

.rating-list {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  background: #f9fafb;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-side.is-collapsed .rating-search,
.rating-side.is-collapsed .rating-list {
  display: none;
}

.rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: white;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}

.rating-item:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: #f5f7ff;
}

.rating-item.active {
  border-color: rgba(79, 70, 229, 0.4);
  background: rgba(79, 70, 229, 0.08);
}

.rating-item .meta {
  font-size: 12px;
  color: #6b7280;
}

.rating-middle {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.rating-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rating-detail-section {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #f1f5ff;
  position: relative;
}

.rating-detail-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.rating-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
}

.rating-subject-badge {
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 11px;
  font-weight: 600;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
}

.rating-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  color: #6b7280;
  font-size: 14px;
}

.rating-detail-section::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #f1f5ff;
}

.rating-detail-section::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -9px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 9px solid #e5e7eb;
}

.rating-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-admin-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.rating-admin-item .meta {
  font-size: 12px;
  color: #6b7280;
}

.swap-block {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.9);
}

.swap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.swap-header h3 {
  margin: 0;
  font-size: 16px;
}

.swap-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.swap-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.swap-item select,
.swap-item input {
  width: 100%;
}

.mini-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn.danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

@media (max-width: 720px) {
  .swap-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.groupmate-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.groupmate-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr);
  gap: 20px;
}

.groupmate-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.groupmate-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.groupmate-search {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
}

.groupmate-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.groupmate-actions .groupmate-search {
  flex: 1 1 220px;
}

.groupmate-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.groupmate-filters .form-row {
  margin: 0;
}

.groupmate-pool {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.groupmate-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #1f2933;
}

.groupmate-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.groupmate-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #4f46e5;
}

.groupmate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.groupmate-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2933;
}

.badge {
  padding: 4px 12px;
  background: #4f46e5;
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.groupmate-item p {
  margin: 0 0 16px;
  color: #6b7280;
}

.groupmate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.groupmate-actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.groupmate-footer .ghost-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  background: #fff;
  width: min(720px, 100%);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.25);
  max-height: 90vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.modal-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-status {
  font-size: 13px;
  color: #6b7280;
}

.groupmate-footer span {
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 900px) {
  .groupmate-layout {
    grid-template-columns: 1fr;
  }

  .groupmate-pool {
    max-height: none;
  }
}

/* 設施網格 */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.facility-card {
  padding: 24px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.facility-card h3 {
  margin: 0 0 8px;
  color: #1f2933;
}

.facility-card p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

/* 預約列表 */
.booking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.booking-info strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2933;
}

.booking-info p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* 公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notice-item {
  padding: 24px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notice-item.important {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notice-badge {
  padding: 4px 12px;
  background: #e5e7eb;
  color: #374151;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.notice-item.important .notice-badge {
  background: #ef4444;
  color: white;
}

.notice-date {
  color: #6b7280;
  font-size: 14px;
}

.notice-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1f2933;
}

.notice-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .nav-container {
    max-width: none;
    width: 100%;
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }

  .nav-logo h2 {
    font-size: 18px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding: 24px 16px;
  }

  .page-container h1 {
    font-size: 26px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .rating-layout {
    grid-template-columns: 1fr;
  }

  .rating-column {
    min-height: 0;
  }

  .rating-side {
    order: 2;
  }

  .rating-middle {
    order: 1;
  }

  .rating-list {
    max-height: 260px;
  }

  .rating-admin-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .content-card {
    padding: 20px;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .subject-item,
  .booking-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .groupmate-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 6px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-section h1 {
    font-size: 28px;
  }
}
