:root {
  --primary: #0f5d7a;
  --primary-dark: #0a4760;
  --secondary: #179875;
  --accent: #d7f1ec;
  --text: #183642;
  --muted: #637a84;
  --surface: #ffffff;
  --surface-alt: #f2f8fa;
  --border: #d7e5eb;
  --shadow: 0 14px 36px rgba(15, 93, 122, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fdff 0%, #ffffff 30%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(215, 241, 236, 0.5), rgba(242, 248, 250, 0.8));
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.page-hero h1,
.hero-copy h1 {
  margin: 0.5rem 0 0.75rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
}

.section-heading p,
.hero-copy p,
.page-hero p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(23, 152, 117, 0.12);
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 229, 235, 0.9);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(15, 93, 122, 0.2));
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-tagline {
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  transform: translateY(-1px);
}

.site-nav .btn {
  transform: none;
}

.site-nav .btn-primary,
.site-nav .btn-primary:hover,
.site-nav .btn-primary.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8a00, #ff5a36);
  box-shadow: 0 14px 28px rgba(255, 90, 54, 0.24);
}

.site-nav .btn-primary:hover,
.site-nav .btn-primary.active {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 90, 54, 0.3);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.75rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
}

.hero-section,
.page-hero {
  padding: 5rem 0 4rem;
}

.hero-grid,
.feature-split,
.contact-grid,
.profile-layout,
.admin-layout,
.detail-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.8fr;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.hero-actions,
.button-row,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats div,
.mini-stat {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(215, 229, 235, 0.9);
}

.hero-stats strong,
.mini-stat strong {
  display: block;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
}

.hero-card,
.highlight-panel,
.filter-panel,
.results-panel,
.form-card,
.dashboard-card {
  padding: 1.5rem;
}

.check-list,
.contact-list,
.footer-grid a,
.meta-list,
.profile-list {
  display: grid;
  gap: 0.75rem;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "•";
  color: var(--secondary);
  font-weight: 700;
  margin-right: 0.55rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card,
.benefit-card,
.testimonial-card,
.contact-card,
.admin-card,
.tutor-card,
.profile-card {
  padding: 1.5rem;
}

.step-badge,
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.step-badge {
  width: 42px;
  height: 42px;
  background: rgba(15, 93, 122, 0.1);
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.two-column {
  grid-template-columns: repeat(2, 1fr);
}

.subject-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.subject-cloud span {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.highlight-panel {
  align-self: start;
  background: linear-gradient(180deg, #0f5d7a, #0b7184);
  color: white;
}

.page-hero {
  background: linear-gradient(135deg, rgba(15, 93, 122, 0.08), rgba(23, 152, 117, 0.12));
}

.page-hero .container {
  max-width: 900px;
}

.search-layout,
.contact-grid,
.feature-split,
.profile-layout,
.admin-layout,
.detail-grid,
.footer-grid {
  grid-template-columns: repeat(2, 1fr);
}

.search-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 320px 1fr;
}

.filter-panel,
.sticky-card {
  position: sticky;
  top: 110px;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 93, 122, 0.12);
}

.input-error {
  border-color: #d64545;
}

.error-text {
  color: #c53939;
  font-size: 0.92rem;
}

.success-message {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: #e7f8f1;
  color: #12654d;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 93, 122, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1180a0);
  color: white;
}

.btn-secondary {
  background: rgba(15, 93, 122, 0.08);
  color: var(--primary);
}

.btn-sm {
  padding: 0.75rem 1rem;
}

.btn-block {
  width: 100%;
}

.tutor-card {
  display: grid;
  gap: 1rem;
}

.tutor-top,
.profile-header,
.lead-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.rating-badge {
  padding: 0.45rem 0.75rem;
  background: rgba(23, 152, 117, 0.12);
  color: var(--secondary);
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.profile-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.detail-grid {
  grid-template-columns: repeat(2, 1fr);
}

.detail-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-alt);
}

.sidebar-box + .sidebar-box {
  margin-top: 1rem;
}

.map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 93, 122, 0.1), rgba(23, 152, 117, 0.14));
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 700;
  margin-top: 1rem;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tab-button {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 700;
}

.tab-button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 93, 122, 0.08);
}

.status-tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.status-new {
  background: rgba(23, 152, 117, 0.12);
  color: var(--secondary);
}

.status-review {
  background: rgba(15, 93, 122, 0.12);
  color: var(--primary);
}

.status-pending {
  background: rgba(255, 193, 7, 0.16);
  color: #966f00;
}

.site-footer {
  background: #0d2430;
  color: #d4e5ec;
  padding-top: 3.5rem;
}

.footer-grid h3 {
  color: white;
  font-family: "Poppins", sans-serif;
  margin-top: 0;
}

.brand-footer {
  color: white;
}

.brand-footer .brand-tagline {
  color: rgba(212, 229, 236, 0.75);
}

.footer-bottom {
  padding: 1.2rem 0 1.8rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}
