/* ===== HỒ SƠ GIA SƯ - SPECIFIC STYLES ===== */

/* Page background */
.page-content-bg {
  background: var(--gray-light);
  padding-bottom: 56px;
  min-height: 60vh;
}

/* Breadcrumb override for light bg */
.page-content-bg .breadcrumb {
  padding: 18px 0 22px;
  color: #6b7280;
  background: transparent;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 600;
}
.page-content-bg .breadcrumb a { color: var(--navy); }
.page-content-bg .breadcrumb a:hover { color: var(--orange); }
.page-content-bg .breadcrumb span[aria-current="page"] {
  color: var(--orange);
}
.page-content-bg .breadcrumb i {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ===== PROFILE LAYOUT ===== */
.profile-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ===== LEFT SIDEBAR ===== */
.profile-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card {
  background: var(--navy);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(10,31,68,0.18);
}

/* Avatar – circular */
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(255,255,255,0.18);
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.profile-verified {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(240,124,26,0.95);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.profile-verified i { margin-right: 4px; }

/* Name & info spacing */
.profile-info { margin-bottom: 18px; }

/* Name & title */
.profile-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.profile-check {
  color: var(--orange);
  font-size: 1rem;
}
.profile-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--orange-light);
  margin-bottom: 4px;
}
.profile-school {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* Stats */
.profile-stats {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}
.profile-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.82);
}
.profile-stat i {
  color: var(--orange);
  width: 16px;
  text-align: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.profile-stat strong { color: #fff; }

.profile-detail-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #334155;
}

.profile-detail-stat i {
  color: var(--orange);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.profile-detail-stat strong {
  color: #334155;
  font-weight: 700;
}

/* Subject tags */
.profile-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.subject-tag {
  background: rgba(240,124,26,0.14);
  color: #ffb15a;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(240,124,26,0.25);
}

/* Fee */
.profile-fee {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: center;
}
.fee-label { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.fee-amount { font-size: 1rem; font-weight: 800; color: var(--orange-light); }
.fee-amount span { font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.55); }

/* Action buttons */
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-zalo {
  background: #0068ff;
  color: #fff;
  border: none;
}
.btn-zalo:hover { background: #0055cc; transform: translateY(-2px); }

/* Extra sidebar cards */
.sidebar-extra-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.extra-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.extra-card-title i { color: var(--orange); }

/* Schedule */
.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: var(--gray-light);
  border-radius: 7px;
  font-size: 0.8rem;
}
.schedule-day { font-weight: 600; color: var(--navy); }
.schedule-time { color: var(--orange); font-weight: 700; }

/* Area tags */
.area-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.area-tag {
  background: rgba(10,31,68,0.08);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(10,31,68,0.12);
}

/* ===== MAIN CONTENT ===== */
.profile-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section cards */
.profile-section {
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

/* Section header */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10,31,68,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  flex-shrink: 0;
}
.section-icon-trophy { background: rgba(240,124,26,0.12); color: var(--orange); }
.section-icon-book   { background: rgba(59,130,246,0.10); color: #3b82f6; }
.section-icon-method { background: rgba(234,179,8,0.12); color: #b45309; }
.section-icon-review { background: rgba(34,197,94,0.10); color: #16a34a; }

.section-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===== EDUCATION CARDS ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.timeline-item {
  padding: 0;
}
.timeline-content {
  min-width: 0;
  height: 100%;
  background: #f8fafc;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.timeline-period {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 8px;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.timeline-school,
.timeline-note {
  font-size: 0.83rem;
  color: #6b7280;
  line-height: 1.6;
}
.timeline-school {
  margin-bottom: 2px;
}

/* ===== ACHIEVEMENT LIST ===== */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.achieve-check {
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.program-text-list strong {
  color: var(--navy);
}

/* ===== METHOD GRID ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.method-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.method-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(10,31,68,0.12);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  font-family: 'Roboto', Arial, sans-serif;
}
.method-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.method-desc {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ===== RATING SUMMARY ===== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(10,31,68,0.04), rgba(240,124,26,0.04));
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(240,124,26,0.12);
}
.rating-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.rating-right { flex: 1; }
.rating-stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 4px; }
.rating-count { font-size: 0.8rem; color: var(--gray); margin-bottom: 10px; }
.rating-bars { display: flex; flex-direction: column; gap: 5px; }
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--gray);
}
.rating-bar-row > span:first-child { min-width: 28px; text-align: right; }
.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(10,31,68,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
}
.bar-pct { min-width: 32px; text-align: left; color: var(--text-mid); font-weight: 600; }

/* ===== REVIEW ITEMS ===== */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item {
  padding: 18px;
  background: var(--gray-light);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.review-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-item-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(10,31,68,0.1);
  flex-shrink: 0;
}
.review-item-name { font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.review-item-stars { color: #f59e0b; font-size: 0.82rem; margin-top: 2px; }
.review-item-date { margin-left: auto; font-size: 0.75rem; color: var(--gray); }
.review-item-text {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
}

/* ===== BOTTOM CTA ===== */
.profile-cta-bar {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-bar-text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.cta-bar-text span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.cta-bar-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-cta-call {
  color: #fff !important;
  border-color: rgba(255,255,255,0.5) !important;
}
.profile-cta-call:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #fff !important;
}

/* ===== BOOKING MODAL ===== */
body.modal-open {
  overflow: hidden;
}

.tutor-booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 41, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 9998;
}

.tutor-booking-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 9999;
}

.tutor-booking-overlay.active,
.tutor-booking-modal.active {
  opacity: 1;
  visibility: visible;
}

.tutor-booking-dialog {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(10, 31, 68, 0.28);
}

.tutor-booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: #1d3f7a;
  border-bottom: 3px solid var(--orange);
}

.tutor-booking-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fbff;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tutor-booking-title i {
  color: var(--orange);
}

.tutor-booking-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #f8fbff;
  cursor: pointer;
}

.tutor-booking-close:hover {
  background: rgba(255,255,255,0.26);
}

.tutor-booking-form {
  padding: 26px 24px 28px;
}

.tutor-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tutor-booking-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutor-booking-field-full {
  grid-column: 1 / -1;
}

.tutor-booking-field label {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.tutor-booking-field label span {
  color: var(--orange);
}

.tutor-booking-field input,
.tutor-booking-field textarea {
  width: 100%;
  border: 1px solid #d6deeb;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--navy);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

.tutor-booking-field textarea {
  min-height: 132px;
  resize: vertical;
}

.tutor-booking-field input:focus,
.tutor-booking-field textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240,124,26,0.12);
}

.tutor-booking-field input[readonly] {
  background: #eef3fb;
  color: #5c6c88;
  font-weight: 700;
  cursor: not-allowed;
}

.tutor-booking-submit {
  width: 100%;
  margin-top: 22px;
  min-height: 54px;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.tutor-booking-submit:disabled,
.tutor-booking-submit.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.tutor-booking-success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #15803d;
  font-size: 0.92rem;
  font-weight: 700;
}

.tutor-booking-success.is-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
  color: #b91c1c;
}

.tutor-booking-thanks-overlay,
.tutor-booking-thanks-modal {
  z-index: 10001;
}

.tutor-booking-thanks-dialog {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 28px 60px rgba(10, 31, 68, 0.28);
}

.tutor-booking-thanks-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #eef3fb;
  color: #4b5d7a;
}

.tutor-booking-thanks-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.24);
}

.tutor-booking-thanks-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.75rem;
  font-weight: 900;
}

.tutor-booking-thanks-text {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.tutor-booking-thanks-button {
  margin-top: 24px;
  min-width: 150px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .profile-sidebar { width: 250px; }
}

@media (max-width: 860px) {
  .profile-layout { flex-direction: column; }
  .profile-sidebar { width: 100%; }
  .profile-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; text-align: left; }
  .profile-avatar-wrap { margin-bottom: 0; }
  .profile-info { text-align: left; }
  .profile-name { justify-content: flex-start; }
  .profile-subjects { justify-content: flex-start; }
  .profile-fee { text-align: left; }
  .profile-actions { flex-direction: row; }
  .profile-actions .profile-btn { flex: 1; }
  .profile-stats { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .profile-section { padding: 20px 18px; }
  .timeline { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }
  .rating-summary { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-cta-bar { flex-direction: column; text-align: center; }
  .cta-bar-actions { justify-content: center; width: 100%; }
  .review-item-date { display: none; }
  .tutor-booking-modal { padding: 14px; }
  .tutor-booking-grid { grid-template-columns: 1fr; }
  .tutor-booking-head,
  .tutor-booking-form { padding-left: 18px; padding-right: 18px; }
  .tutor-booking-title { font-size: 1.05rem; }
}

@media (max-width: 400px) {
  .page-content-bg { padding-bottom: 36px; }
  .profile-cta-bar { padding: 18px; }
}
