@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");
:root {
  --red: #c62828;
  --red-dark: #9b211c;
  --orange: #ff7a1a;
  --orange-soft: #fff0e4;
  --white: #ffffff;
  --black: #211b19;
  --black-soft: #27201f;
  --ink: #2a2523;
  --heading: #2f2926;
  --muted: #554843;
  --line: #ead2ca;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #fffaf7 0%, #fff4ee 48%, #fffaf7 100%);
  animation: pageFadeIn 0.28s ease both;
}

body.loader-active {
  overflow: hidden;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 122, 26, 0.35), transparent 34%),
    linear-gradient(135deg, var(--black) 0%, var(--red-dark) 56%, var(--orange) 100%);
  animation: loaderAutoHide 0.45s ease 1.8s forwards;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 24px;
  text-align: center;
  animation: loaderCardIn 0.8s ease both;
}

.loader-logo-ring {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
}

.loader-logo-ring::before,
.loader-logo-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loader-logo-ring::before {
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--orange);
  border-right-color: var(--white);
  animation: logoSpin 1.4s linear infinite;
}

.loader-logo-ring::after {
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.loader-logo-ring img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.28);
  animation: logoPop 0.75s ease both;
}

.loader-eyebrow {
  margin: 2px 0 0;
  color: #ffe2d1;
  font-weight: 900;
  text-transform: uppercase;
}

.loader-card h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 0.92;
}

.loader-card p:not(.loader-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

@keyframes logoSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoPop {
  from {
    transform: scale(0.68) rotate(-14deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

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

@keyframes loaderAutoHide {
  to {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: linear-gradient(90deg, var(--black) 0%, var(--red-dark) 56%, var(--orange) 100%);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.16);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(143, 21, 21, 0.12);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.nav-links .nav-cta {
  color: var(--white);
  background: transparent;
  box-shadow: none;
}

.nav-links .nav-cta:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transform: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--red);
}

.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.16) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(198, 40, 40, 0.12) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 224, 203, 0.82)),
    url("Assets/testimonial_bg.png") center / cover no-repeat;
}

.home-hero {
  padding: 44px max(20px, calc((100% - 1160px) / 2));
  overflow: hidden;
}

.hero-content {
  position: relative;
  isolation: isolate;
  max-width: 720px;
  min-height: 320px;
  align-self: center;
  padding: 38px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content > :not(.hero-script-line) {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
}

h1 {
  max-width: 840px;
  margin-bottom: 8px;
  font-size: clamp(2.45rem, 3.4vw, 4.1rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.hero-copy,
.section-heading p,
.owner-panel p,
.package-card p,
.tutor-card p {
  color: var(--muted);
  line-height: 1.58;
}

.hero-copy {
  max-width: 580px;
  font-size: 1rem;
}

.hero-script-line {
  position: absolute;
  z-index: 0;
  left: clamp(-18px, -1vw, -6px);
  top: clamp(-10px, 2vw, 18px);
  max-width: 1100px;
  margin: 0;
  color: rgba(45, 45, 45, 0.28);
  font-family: "Brusher", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(4.4rem, 13vw, 10rem);
  font-weight: 500;
  line-height: 0.78;
  transform: rotate(-3deg);
  pointer-events: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 24px rgba(17, 17, 17, 0.12);
}

.hero-script-line::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 8%;
  bottom: 8%;
  height: 0.18em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.28), rgba(198, 40, 40, 0.2), transparent);
  transform: rotate(1deg);
}

.hero-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.button,
.contact-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 9px 18px rgba(198, 40, 40, 0.18);
}

.button.primary:hover {
  background: #e45132;
  transform: translateY(-1px);
}

.button.secondary,
.contact-list a {
  color: var(--red-dark);
  background: var(--orange-soft);
  border: 1px solid rgba(143, 21, 21, 0.18);
}

.button.secondary:hover,
.contact-list a:hover {
  color: var(--red-dark);
  background: #ffe4d2;
  border-color: rgba(255, 122, 26, 0.42);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.reveal-on-scroll {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.reveal-on-scroll.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.page-ribbon {
  min-height: 52px;
  display: flex;
  align-items: end;
  padding: 16px max(20px, calc((100% - 1160px) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.16), rgba(143, 21, 21, 0.94) 58%, rgba(255, 122, 26, 0.92)),
    linear-gradient(90deg, var(--black), var(--red), var(--orange));
  border-bottom: 6px solid var(--orange);
}

.page-ribbon .eyebrow {
  color: #ffe2d1;
}

.page-ribbon h1 {
  margin: 0;
  color: var(--white);
  text-shadow: 0 8px 22px rgba(17, 17, 17, 0.28);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.photo-grid,
.tutor-grid,
.package-grid {
  display: grid;
  gap: 14px;
}

.photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutor-grid,
.package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-card,
.tutor-card,
.package-card,
.promo-card,
.feedback-card,
.feedback-photo,
.booking-form,
.owner-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 238, 226, 0.66)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
  box-shadow: var(--shadow);
}

.photo-card,
.feedback-photo,
.promo-photo,
.tutor-photo {
  position: relative;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--black), var(--red-dark));
}

.owner-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-soft), var(--white));
}

.why-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--black), var(--red-dark));
  box-shadow: var(--shadow);
}

.photo-card img,
.feedback-photo img,
.promo-photo img,
.why-photo img,
.tutor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.owner-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 10px;
}

.team-photo {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(198, 40, 40, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(255, 255, 255, 0.9)),
    var(--white);
  box-shadow: var(--shadow);
}

.team-photo::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 122, 26, 0.34);
  border-radius: 7px;
  pointer-events: none;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center 36%;
  border: 1px solid rgba(143, 21, 21, 0.16);
  border-radius: 6px;
}

.team-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(198, 40, 40, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 232, 216, 0.28)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
  box-shadow: var(--shadow);
}

.team-gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 21, 21, 0.14);
  border-radius: 7px;
  background: var(--white);
}

.team-gallery-main {
  grid-column: auto;
}

.team-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.team-gallery-item:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.025);
}

.team-gallery-main img {
  object-position: center center;
}

input::placeholder,
textarea::placeholder {
  color: rgba(85, 72, 67, 0.52);
}

.photo-card img[src=""],
.feedback-photo img[src=""],
.promo-photo img[src=""],
.owner-photo img[src=""],
.why-photo img[src=""],
.tutor-photo img[src=""] {
  display: none;
}

.map-card iframe {
  width: 100%;
  height: 100%;
}

.map-open-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.map-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  pointer-events: none;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
}

.tool-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.search-box {
  width: min(420px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.tool-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.sort-box {
  width: 150px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  background: var(--white);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.13);
}

.view-switch,
.package-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--orange-soft);
}

.view-switch button,
.package-tabs button {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--black);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.view-switch button.active,
.package-tabs button.active {
  color: var(--white);
  background: var(--orange);
}

.tutor-card {
  display: grid;
  grid-template-columns: minmax(118px, 0.4fr) minmax(0, 0.6fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  transition: 0.2s ease;
}

.tutor-card:hover,
.package-card:hover {
  transform: translateY(-3px);
}

.tutor-profile {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tutor-photo {
  order: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.tutor-profile h3 {
  order: 2;
  margin: 0;
  text-align: center;
}

.tutor-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  font-size: 0.83rem;
}

.tutor-details p {
  margin-bottom: 0;
}

.tutor-details .complete-name {
  margin: 0 0 5px;
  color: var(--ink);
  line-height: 1.45;
}

.complete-name strong {
  font-weight: 900;
}

.tutor-card ul {
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.tutor-card li {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--black);
  background: var(--orange-soft);
  font-weight: 750;
}

.tutor-grid.list-view {
  grid-template-columns: 1fr;
}

.tutor-grid.list-view .tutor-card {
  grid-template-columns: minmax(112px, 170px) minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.tutor-grid.list-view .tutor-card ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-tabs {
  width: fit-content;
}

.package-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promo-card {
  overflow: hidden;
  transition: 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
}

.promo-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.promo-copy {
  padding: 16px;
}

.promo-copy p:not(.package-type) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.package-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  transition: 0.2s ease;
}

.package-type {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.package-card strong {
  color: var(--red);
  font-size: 1.08rem;
}

.package-card .program-code {
  display: block;
  margin: 0 0 6px;
  color: var(--red);
  font-size: 1rem;
  letter-spacing: 0;
}

.booking-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 235, 222, 0.62)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
  box-shadow: var(--shadow);
}

.booking-panel .section-heading {
  margin-bottom: 12px;
}

.booking-panel .section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
}

.booking-panel .eyebrow {
  margin-bottom: 5px;
  font-size: 0.72rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(143, 21, 21, 0.12);
}

.booking-actions .button.primary {
  margin-right: auto;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.booking-actions .button.primary:hover {
  background: var(--orange);
}

.booking-actions .button.secondary {
  min-height: 32px;
  padding: 0 10px;
  color: var(--black);
  background: var(--orange-soft);
  border: 1px solid var(--line);
  font-size: 0.76rem;
}

.booking-actions .button.secondary:hover {
  background: var(--white);
}

.hidden-field {
  display: none;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}


.about-section.single {
  display: block;
}

.owner-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 235, 222, 0.62)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
  box-shadow: var(--shadow);
}

.owner-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  border: 1px solid rgba(143, 21, 21, 0.18);
}

.owner-copy {
  display: grid;
  align-content: center;
}

.owner-copy h2 {
  margin-bottom: 8px;
}

.owner-copy p:not(.eyebrow) {
  max-width: 620px;
}

.why-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 0.52fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 232, 216, 0.6)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
  box-shadow: var(--shadow);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feedback-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.feedback-photo-grid {
  columns: 3 230px;
  column-gap: 12px;
  margin-top: 14px;
}

.feedback-photo {
  display: inline-block;
  width: 100%;
  aspect-ratio: auto;
  min-height: 120px;
  margin: 0 0 12px;
  break-inside: avoid;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.94), rgba(133, 18, 20, 0.9)),
    var(--red-dark);
}

.feedback-wide-grid {
  columns: 3 230px;
}

.feedback-wide {
  min-height: 120px;
}

.feedback-photo img,
.feedback-wide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.feedback-photo.asset-loaded {
  min-height: 0;
  background: transparent;
}

.feedback-photo.asset-missing {
  min-height: 96px;
  opacity: 0.72;
}

.feedback-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.feedback-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feedback-card strong {
  color: var(--red);
  font-style: italic;
}

.text-feedback-card {
  min-height: 170px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 226, 207, 0.38)),
    url("Assets/testimonial_bg.png") center / 145px auto repeat;
}

.booking-form {
  display: grid;
  gap: 11px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 241, 232, 0.72)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
}

.booking-form label {
  display: grid;
  gap: 5px;
  color: #4e403b;
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-form label span {
  color: var(--red);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  min-height: 36px;
  border-color: rgba(143, 21, 21, 0.16);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.94);
}

.booking-form textarea {
  min-height: 84px;
  resize: vertical;
}

.booking-form input[type="file"] {
  min-height: 0;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: rgba(255, 250, 247, 0.96);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.13);
  background: var(--white);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.booking-form > .form-note {
  padding: 8px 10px;
  border: 1px solid rgba(143, 21, 21, 0.12);
  border-radius: 7px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 239, 228, 0.7);
}

.form-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 -2px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(143, 21, 21, 0.14);
}

.booking-resource-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(143, 21, 21, 0.12);
  border-radius: 7px;
  background: rgba(255, 250, 247, 0.76);
}

.booking-resource-row .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.booking-resource-row .button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.rate-field input {
  color: var(--red);
  font-weight: 900;
  background: var(--orange-soft);
}

.downpayment-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(143, 21, 21, 0.18);
  border-radius: 7px;
  color: var(--red-dark);
  font-size: 0.78rem;
  background: var(--white);
}

.terms-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  padding: 10px;
  border: 1px solid rgba(143, 21, 21, 0.12);
  border-radius: 7px;
  color: var(--red-dark) !important;
  font-size: 0.82rem !important;
  background: rgba(255, 250, 247, 0.82);
}

.terms-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  accent-color: var(--red);
}

.terms-modal[hidden] {
  display: none;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.58);
}

.terms-modal-card {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.32);
}

.terms-modal-header,
.terms-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.terms-modal-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.terms-modal-header h2 {
  margin: 0;
  color: var(--red-dark);
  font-size: 1.1rem;
}

.terms-modal-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--red-dark);
  background: var(--orange-soft);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.terms-modal iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: var(--orange-soft);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px max(16px, calc((100% - 1160px) / 2));
  color: var(--white);
  background: var(--black);
  border-top: 4px solid var(--orange);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.site-footer a,
.site-footer span {
  font-weight: 900;
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand a:not(:first-child),
.footer-contact p,
.footer-socials span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-contact {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.footer-contact p {
  margin: 0;
}

.footer-contact p a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.footer-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.footer-icon img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.footer-icon[href*="facebook"] img {
  width: 25px;
  height: 25px;
  filter: none;
}

.footer-icon[href^="mailto"] img {
  filter: none;
}

.footer-icon[href^="tel"] img {
  filter: invert(45%) sepia(95%) saturate(573%) hue-rotate(88deg) brightness(96%) contrast(94%);
}

.footer-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.ai-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  font-family: inherit;
}

.ai-chat-toggle {
  width: 74px;
  height: 54px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.24);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ai-chat-toggle:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.chat-icon {
  position: relative;
  width: 36px;
  height: 24px;
  border: 3px solid var(--white);
  border-radius: 9px;
}

.chat-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -9px;
  width: 9px;
  height: 9px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: skewY(-35deg);
}

.chat-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 8px 0 0 var(--white), 16px 0 0 var(--white);
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 55px rgba(17, 17, 17, 0.24);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(90deg, var(--black), var(--red-dark), var(--orange));
}

.ai-chat-header .eyebrow {
  margin: 0 0 4px;
  color: #ffe2d1;
}

.ai-chat-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--black);
  background: var(--white);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.ai-chat-messages {
  max-height: 280px;
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: #fffaf7;
}

.ai-chat-message {
  width: fit-content;
  max-width: 86%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.ai-chat-message.assistant {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.ai-chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--red);
}

.ai-chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fffaf7;
}

.ai-chat-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--black);
  background: var(--orange-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.ai-chat-form input {
  min-height: 42px;
}

.ai-chat-form button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ai-chat-form button:hover {
  background: var(--orange);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255, 250, 247, 0.76), rgba(255, 231, 215, 0.68)),
      url("Assets/testimonial_bg.png") center / 150px auto repeat;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
    color: var(--red-dark);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(143, 21, 21, 0.1);
  }

  .nav-links .nav-cta {
    color: var(--red-dark);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: none;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links .nav-cta:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-color: transparent;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 34px 0 42px;
  }

  .photo-grid,
  .tutor-grid,
  .package-grid,
  .promo-grid,
  .feedback-grid,
  .feedback-text-grid,
  .feedback-photo-grid,
  .form-grid,
  .about-section,
  .owner-panel,
  .why-panel,
  .team-gallery {
    grid-template-columns: 1fr;
  }

  .team-gallery-main {
    grid-column: auto;
    grid-row: auto;
  }

  .tutor-card {
    grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  }

  .section-heading.compact,
  .tool-row,
  .package-toolbar {
    display: grid;
    align-items: start;
  }

  .tool-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sort-box {
    flex: 1 1 180px;
  }

  .tutor-grid.list-view .tutor-card,
  .tutor-grid.list-view .tutor-card ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tutor-grid.list-view .tutor-card {
    grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 24px, 1160px);
  }

  h1 {
    font-size: 2.35rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .page-ribbon {
    min-height: 92px;
    padding: 24px 16px;
  }

  .section {
    width: min(100% - 24px, 1160px);
    padding: 30px 0;
  }

  .package-tabs,
  .view-switch,
  .tool-actions,
  .package-toolbar .button,
  .hero-actions,
  .contact-list,
  .site-footer {
    width: 100%;
  }

  .package-tabs,
  .view-switch {
    overflow-x: auto;
  }

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

  .tool-actions {
    display: grid;
    align-items: stretch;
  }

  .sort-box {
    width: 100%;
  }

  .button,
  .contact-list a {
    width: 100%;
  }

  .package-tabs button,
  .view-switch button,
  .booking-resource-row .button,
  .booking-actions .button.secondary,
  .terms-modal-actions .button {
    width: auto;
  }

  .booking-actions {
    justify-content: flex-start;
  }

  .booking-actions .button.primary {
    margin-right: 0;
  }

  .owner-panel,
  .why-panel,
  .booking-form,
  .booking-panel {
    padding: 16px;
  }

  .owner-photo {
    min-height: 220px;
  }

  .tutor-card,
  .tutor-grid.list-view .tutor-card {
    grid-template-columns: 1fr;
  }

  .tutor-photo {
    max-width: 190px;
    margin: 0 auto;
  }

  .tutor-card ul,
  .tutor-grid.list-view .tutor-card ul {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ai-chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .ai-chat-panel {
    right: 0;
    bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.small-button {
  min-height: 34px;
  width: fit-content;
  padding: 0 11px;
  font-size: 0.8rem;
}

.current-program-grid {
  align-items: stretch;
}

.current-program-card {
  display: flex;
  flex-direction: column;
}

.current-program-card .promo-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.current-program-card .promo-copy p:not(.package-type) {
  margin-bottom: 16px;
}

.promo-action-button {
  min-width: 154px;
  margin-top: auto;
  align-self: flex-start;
}

.current-program-card.featured-program {
  grid-column: span 1;
}

.poster-photo {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--orange-soft), var(--white));
}

.poster-photo img {
  object-fit: contain;
  background: var(--white);
}

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

.booking-option-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.booking-option-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.booking-option-card p:not(.package-type) {
  font-size: 0.9rem;
  line-height: 1.45;
}

.featured-booking-option {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
}

.booking-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.booking-option-actions .button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.8rem;
}

.group-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.group-option-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(143, 21, 21, 0.14);
  border-radius: 8px;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.booking-poster {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-soft), var(--white));
}

.booking-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.muted-booking-option {
  background: linear-gradient(135deg, var(--white), var(--orange-soft));
}

@media (max-width: 900px) {
  .booking-option-grid,
  .featured-booking-option {
    grid-template-columns: 1fr;
  }

  .featured-booking-option {
    grid-column: span 1;
  }

  .package-actions {
    justify-content: flex-start;
  }
}

/* White card boxes with testimonial background inside each box only */

.current-program-card,
.promo-card,
.feedback-card,
.package-card,
.tutor-card,
.text-feedback-card,
.feedback-photo,
.booking-option-card,
.booking-form,
.booking-panel,
.why-panel,
.owner-panel,
.regular-group-copy,
.regular-group-poster {
  background-color: #ffffff !important;
  background-image:
    linear-gradient(rgba(255, 250, 247, 0.08), rgba(255, 238, 229, 0.12)),
    url("Assets/testimonial_bg.png") !important;

  background-size:
    auto,
    145px auto !important;

  background-position:
    center,
    top left !important;

  background-repeat:
    repeat,
    repeat !important;
}

.regular-group-feature-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: stretch;
  gap: 0;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.package-card {
  background-color: #ffffff !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 239, 229, 0.28)),
    url("Assets/testimonial_bg.png") !important;
  background-size:
    auto,
    145px auto !important;
  background-position:
    center,
    top left !important;
  background-repeat:
    repeat,
    repeat !important;
}

.regular-group-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 238, 229, 0.12)),
    url("Assets/testimonial_bg.png") center / 145px auto repeat;
}

.regular-group-poster {
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 238, 229, 0.12)),
    url("Assets/testimonial_bg.png") center / 145px auto repeat;
}

/* Testimonial background for the Home hero only */

.home-hero {
  background:
    linear-gradient(
      135deg,
      rgba(255, 122, 26, 0.10) 0%,
      rgba(255, 255, 255, 0.42) 42%,
      rgba(198, 40, 40, 0.08) 100%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.38),
      rgba(255, 224, 203, 0.30)
    ),
    url("Assets/testimonial_bg.png") center / 170px auto repeat !important;
}
/* Pr1me UI polish: forms, chat, and mobile rhythm */
.package-card,
.booking-option-card,
.booking-form,
.booking-panel,
.why-panel,
.owner-panel,
.regular-group-copy,
.service-card,
.tutor-card,
.feedback-card,
.text-feedback-card {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 236, 222, 0.4)),
    url("Assets/testimonial_bg.png") !important;
  background-position: center !important;
  background-size: auto, 118px auto !important;
  background-repeat: repeat !important;
}

.nav-links a,
.nav-links .nav-cta {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .nav-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.booking-panel {
  padding: 16px;
}

.booking-panel .section-heading h2 {
  font-size: clamp(1.28rem, 1.8vw, 1.75rem);
}

.form-grid {
  gap: 9px 10px;
}

.booking-form {
  gap: 9px;
  padding: 14px;
}

.booking-form label {
  gap: 4px;
  color: #4d403b;
  font-size: 0.77rem;
  font-weight: 850;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.booking-form textarea {
  min-height: 76px;
}

.booking-form input[type="file"] {
  padding: 7px 9px;
  font-size: 0.76rem;
}

.booking-form > .form-note,
.form-note {
  font-size: 0.76rem;
  line-height: 1.38;
}

.form-section-label {
  margin: 1px 0 -1px;
  font-size: 0.7rem;
}

.booking-resource-row {
  gap: 7px;
  padding: 8px;
}

.booking-resource-row .button,
.booking-actions .button.secondary,
.terms-modal-actions .button,
.booking-option-actions .button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.74rem;
}

.booking-actions {
  gap: 6px;
  padding-top: 9px;
}

.booking-actions .button.primary {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.downpayment-note {
  min-height: 30px;
  font-size: 0.76rem;
}

.ai-chat-widget {
  right: 16px;
  bottom: 16px;
  font-size: 14px;
}

.ai-chat-toggle {
  width: 68px;
  height: 50px;
  min-height: 50px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.22);
}

.chat-icon {
  width: 32px;
  height: 21px;
  border-width: 3px;
  border-radius: 8px;
}

.chat-icon::before {
  bottom: -8px;
  width: 8px;
  height: 8px;
}

.chat-icon::after {
  top: 7px;
  left: 5px;
  width: 3.5px;
  height: 3.5px;
  box-shadow: 8px 0 0 var(--white), 16px 0 0 var(--white);
}

.ai-chat-panel {
  bottom: 56px;
  width: min(342px, calc(100vw - 24px));
  border-radius: 8px;
}

.ai-chat-header {
  gap: 10px;
  padding: 12px 13px;
}

.ai-chat-header .eyebrow {
  margin-bottom: 2px;
  font-size: 0.72rem;
}

.ai-chat-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.28;
}

.ai-chat-header button {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  font-size: 1rem;
}

.ai-chat-messages {
  max-height: 252px;
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.84), rgba(255, 239, 229, 0.72)),
    url("Assets/testimonial_bg.png") center / 120px auto repeat;
}

.ai-chat-message {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ai-chat-suggestion-block {
  padding: 0 12px 10px;
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.84), rgba(255, 239, 229, 0.72)),
    url("Assets/testimonial_bg.png") center / 120px auto repeat;
}

.ai-chat-suggestion-block > p {
  margin: 0 0 6px;
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-chat-suggestions {
  gap: 6px;
  padding: 0 0 2px;
  background: transparent;
}

.ai-chat-suggestions button {
  min-height: 30px;
  padding: 5px 8px;
  border-color: rgba(143, 21, 21, 0.14);
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(255, 237, 222, 0.92);
  font-size: 0.74rem;
  font-weight: 850;
}

.ai-chat-suggestions button:hover {
  background: #ffe2cc;
}

.ai-chat-form {
  gap: 7px;
  padding: 10px;
}

.ai-chat-form input {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.ai-chat-form button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .nav-links {
    background:
      linear-gradient(135deg, rgba(255, 244, 235, 0.9), rgba(255, 219, 194, 0.82)),
      url("Assets/testimonial_bg.png") center / 120px auto repeat;
  }

  .nav-links a,
  .nav-links .nav-cta {
    color: var(--red-dark);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 236, 221, 0.82));
    border: 1px solid rgba(143, 21, 21, 0.14);
    box-shadow: 0 6px 14px rgba(143, 21, 21, 0.06);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero-copy,
  .section-heading p,
  .owner-panel p,
  .package-card p,
  .tutor-card p {
    font-size: 0.92rem;
  }

  .button,
  .contact-list a {
    min-height: 36px;
    font-size: 0.84rem;
  }

  .booking-panel,
  .booking-form {
    padding: 13px;
  }

  .booking-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .booking-actions .button,
  .booking-resource-row .button {
    width: 100%;
  }

  .ai-chat-widget {
    right: 10px;
    bottom: 10px;
  }

  .ai-chat-panel {
    bottom: 54px;
    width: min(330px, calc(100vw - 20px));
  }

  .ai-chat-messages {
    max-height: 230px;
  }
}

.tool-row,
.package-toolbar,
.section-heading.compact {
  gap: 12px;
}

.tool-row label,
.sort-box label,
.booking-form label {
  letter-spacing: 0;
}

.tool-row input,
.tool-row select,
.sort-box select,
.package-toolbar select,
.package-toolbar input {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
}

.package-tabs button,
.view-switch button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.package-card,
.booking-option-card,
.tutor-card,
.feedback-card {
  border-color: rgba(143, 21, 21, 0.16);
}

.package-card h3,
.booking-option-card h3,
.tutor-card h3 {
  font-size: 1.03rem;
  line-height: 1.2;
}

.package-card p,
.booking-option-card p,
.tutor-card p,
.feedback-card p {
  font-size: 0.9rem;
}

.ai-chat-form input:disabled,
.ai-chat-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 560px) {
  .tool-row input,
  .tool-row select,
  .sort-box select,
  .package-toolbar select,
  .package-toolbar input {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .package-tabs button,
  .view-switch button {
    font-size: 0.8rem;
  }

  .package-card,
  .booking-option-card,
  .tutor-card,
  .feedback-card {
    padding: 15px;
  }
}

.booking-service-section .section-heading {
  margin-bottom: 16px;
}

.booking-program-card {
  padding: 14px;
}

.booking-program-card .booking-option-copy {
  display: grid;
  align-content: start;
}

.booking-poster-top {
  aspect-ratio: 16 / 8.2;
  display: grid;
  place-items: center;
  background: #fffaf7;
}

.booking-poster-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.booking-option-card .button.primary {
  background: var(--red);
}

.booking-option-card .button.primary:hover {
  background: #e45132;
}

@media (max-width: 900px) {
  .booking-program-card {
    min-height: auto;
  }
}

.booking-option-grid {
  align-items: stretch;
}

.booking-program-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 12px;
}

.booking-program-card .booking-option-copy {
  min-height: 190px;
  align-content: start;
}

.booking-program-card .booking-option-actions {
  margin-top: auto;
  padding-top: 12px;
}

.booking-program-card .package-type {
  margin-bottom: 4px;
}

.booking-program-card h3 {
  margin-bottom: 6px;
}

.booking-program-card p:not(.package-type) {
  max-width: 95%;
  margin-bottom: 0;
  line-height: 1.42;
}

.booking-poster-top {
  aspect-ratio: 16 / 7.5;
  padding: 0;
}

.booking-poster-top img {
  object-fit: cover;
  object-position: center;
}

.booking-program-card .button.primary {
  width: auto;
  min-width: 150px;
}

@media (max-width: 900px) {
  .booking-program-card .booking-option-copy {
    min-height: auto;
  }

  .booking-poster-top {
    aspect-ratio: 16 / 8.2;
  }
}

.booking-option-grid {
  align-items: start;
}

.booking-program-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: 0;
  height: auto;
  padding: 12px;
}

.booking-program-card .booking-option-copy {
  min-height: 0;
  display: block;
}

.booking-program-card .booking-option-actions {
  margin-top: 14px;
  padding-top: 0;
}

.booking-poster-top {
  aspect-ratio: 16 / 7.9;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.booking-poster-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.booking-program-card p:not(.package-type) {
  max-width: none;
  line-height: 1.38;
}

.booking-program-card .button.primary {
  min-width: 0;
  min-height: 34px;
  padding: 0 14px;
}

/* Unified section color rhythm */
body {
  background:
    linear-gradient(180deg, #fff7f1 0%, #fff1e9 44%, #fff8f3 100%);
}

main {
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.95) 0%, rgba(255, 241, 232, 0.92) 48%, rgba(255, 248, 243, 0.96) 100%),
    url("Assets/testimonial_bg.png") center / 150px auto repeat;
}

.hero,
.home-hero,
.promo-section,
.center-section,
.packages-section,
.booking-service-section,
.about-page-section,
.tutor-section {
  background: transparent !important;
}

.home-hero {
  min-height: calc(100vh - 62px);
}

.section {
  position: relative;
}

.promo-section,
.center-section,
.packages-section,
.booking-service-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.section-heading .eyebrow,
.package-type {
  color: var(--red);
}

.current-program-card,
.promo-card,
.package-card,
.service-card,
.booking-option-card,
.booking-form,
.booking-panel,
.owner-panel,
.why-panel,
.feedback-card,
.text-feedback-card,
.tutor-card {
  border-color: rgba(155, 33, 28, 0.18) !important;
  background-color: #fffaf6 !important;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 236, 223, 0.5)),
    url("Assets/testimonial_bg.png") !important;
  background-position: center !important;
  background-size: auto, 128px auto !important;
  box-shadow: 0 14px 36px rgba(90, 36, 24, 0.09) !important;
}

.booking-poster,
.promo-photo,
.poster-photo,
.tutor-photo,
.owner-photo,
.why-photo {
  border-color: rgba(155, 33, 28, 0.16) !important;
  background: #fffaf6 !important;
}

.booking-poster img,
.promo-photo img,
.poster-photo img {
  background: #fffaf6;
}

.group-option-list span,
.booking-resource-row,
.booking-form > .form-note {
  border-color: rgba(155, 33, 28, 0.16);
  background: rgba(255, 244, 236, 0.86);
}

.button.secondary,
.contact-list a,
.nav-links a,
.nav-links .nav-cta {
  border-color: rgba(155, 33, 28, 0.16);
}

.booking-option-card .button.primary,
.promo-action-button,
.booking-actions .button.primary {
  background: linear-gradient(135deg, var(--red), #db3f2b) !important;
  box-shadow: 0 10px 20px rgba(198, 40, 40, 0.16);
}

.booking-option-card .button.primary:hover,
.promo-action-button:hover,
.booking-actions .button.primary:hover {
  background: linear-gradient(135deg, #e04a32, var(--orange)) !important;
}

.page-ribbon {
  background:
    linear-gradient(135deg, rgba(33, 27, 25, 0.2), rgba(155, 33, 28, 0.96) 56%, rgba(255, 122, 26, 0.94)),
    url("Assets/testimonial_bg.png") center / 140px auto repeat,
    linear-gradient(90deg, var(--black), var(--red), var(--orange));
}

@media (max-width: 560px) {
  .promo-section,
  .center-section,
  .packages-section,
  .booking-service-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Booking card containment cleanup */
.booking-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.booking-option-card {
  overflow: hidden;
  padding: 0 !important;
  border-radius: 10px;
  background-color: #fffaf6 !important;
}

.booking-program-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
}

.booking-program-card .booking-option-copy,
.featured-booking-option .booking-option-copy {
  padding: 18px;
}

.booking-program-card .booking-option-copy {
  display: flex;
  min-height: 206px;
  flex-direction: column;
}

.booking-program-card .booking-option-actions {
  margin-top: auto;
  padding-top: 16px;
}

.booking-poster,
.booking-poster-top {
  width: 100%;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.booking-poster-top {
  aspect-ratio: 16 / 7.2;
}

.booking-poster img,
.booking-poster-top img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.featured-booking-option {
  align-items: stretch;
  padding: 0 !important;
}

.featured-booking-option .booking-poster {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.featured-booking-option .booking-poster img {
  height: 100%;
  object-fit: contain;
}

.booking-option-card .package-type {
  margin-bottom: 6px;
}

.booking-option-card h3 {
  margin-bottom: 8px;
}

.booking-option-card p:not(.package-type) {
  margin-bottom: 0;
}

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

  .booking-program-card .booking-option-copy {
    min-height: 0;
  }

  .featured-booking-option .booking-poster {
    min-height: 0;
  }

  .featured-booking-option .booking-poster img {
    height: auto;
  }
}

/* Booking final layout: only top cards are poster cards; group cards keep old framed style */
.booking-option-grid {
  align-items: start;
}

.booking-program-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  padding: 0 !important;
  border-radius: 8px;
}

.booking-program-card .booking-poster-top {
  width: 100%;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.booking-program-card .booking-poster-top img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
}

.booking-program-card .booking-option-copy {
  min-height: 0;
  display: block;
  padding: 16px;
}

.booking-program-card .booking-option-actions {
  margin-top: 14px;
  padding-top: 0;
}

.booking-program-card p:not(.package-type) {
  max-width: none;
  line-height: 1.42;
}

.booking-program-card .button.primary {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 15px;
}

.featured-booking-option {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 14px;
  padding: 17px !important;
  overflow: visible;
}

.featured-booking-option .booking-option-copy {
  padding: 0;
}

.featured-booking-option .booking-poster {
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--orange-soft), var(--white)) !important;
}

.featured-booking-option .booking-poster img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .featured-booking-option {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* Study-Buddy booking card only */
.study-buddy-booking-card {
  align-self: start;
}

.study-buddy-booking-poster {
  aspect-ratio: 16 / 7.8 !important;
  display: grid !important;
  place-items: center;
  background: #fff !important;
}

.study-buddy-booking-poster img {
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
}

.study-buddy-booking-card .booking-option-copy {
  padding-top: 15px;
}

.study-buddy-booking-card p:not(.package-type) {
  max-width: 98%;
}

/* Final Study-Buddy alignment: match One-on-One card height */
.study-buddy-booking-poster {
  aspect-ratio: 16 / 6.85 !important;
  overflow: hidden !important;
}

.study-buddy-booking-poster img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Study-Buddy poster: show full design like One-on-One */
.study-buddy-booking-poster {
  aspect-ratio: auto !important;
  display: block !important;
  overflow: visible !important;
}

.study-buddy-booking-poster img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.feedback-role {
  color: inherit;
  font-style: italic;
  font-weight: 500;
  opacity: 0.78;
}

/* Align top booking cards without changing One-on-One image */
.booking-option-grid {
  align-items: stretch;
}

.booking-program-card {
  height: 100%;
}

.booking-program-card .booking-option-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.booking-program-card .booking-option-actions {
  margin-top: auto;
  padding-top: 16px;
}

.study-buddy-booking-card {
  height: 100%;
}
/* End Pr1me UI polish */
.payment-modal-card {
  width: min(980px, calc(100vw - 28px));
  grid-template-rows: auto minmax(280px, 1fr) auto;
}

.payment-modal-body {
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: auto;
  background: linear-gradient(135deg, #fffdf9, #fff1e5);
}

.payment-modal-body img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(66, 23, 15, 0.14);
}

@media (max-width: 640px) {
  .payment-modal-card {
    width: calc(100vw - 20px);
  }

  .payment-modal-body {
    padding: 8px;
  }
}

/* Final Pr1me Assistant sizing */
.ai-chat-panel {
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 92px));
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto auto;
}

.ai-chat-panel[hidden] {
  display: none !important;
}

.ai-chat-header {
  padding: 13px 14px;
}

.ai-chat-header .eyebrow {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.1;
}

.ai-chat-messages {
  max-height: none;
  min-height: 285px;
}

.ai-chat-message {
  font-size: 0.8rem;
  line-height: 1.38;
}

.ai-chat-form input,
.ai-chat-form button,
.ai-chat-suggestions button {
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .ai-chat-panel {
    width: min(360px, calc(100vw - 20px));
    height: min(560px, calc(100vh - 88px));
    grid-template-rows: auto minmax(240px, 1fr) auto auto;
  }

  .ai-chat-messages {
    min-height: 260px;
  }
}



/* Compact Pr1me Assistant final fix */
.ai-chat-panel {
  width: min(370px, calc(100vw - 20px));
  height: min(465px, calc(100vh - 88px));
  grid-template-rows: auto minmax(150px, 1fr) auto auto;
}

.ai-chat-header {
  min-height: 0;
  padding: 10px 12px;
}

.ai-chat-messages {
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.ai-chat-message {
  width: auto;
  max-width: 92%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ai-chat-suggestion-block {
  padding: 0 10px 8px;
}

.ai-chat-suggestions button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

.ai-chat-form {
  padding: 9px;
}

.ai-chat-form input,
.ai-chat-form button {
  min-height: 34px;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .ai-chat-panel {
    width: min(340px, calc(100vw - 18px));
    height: min(430px, calc(100vh - 82px));
  }
}

.service-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.service-link-row a {
  display: inline-flex;
  align-items: center;
}

/* =========================================================
   PR1ME ACADEMIC CENTER — CLEAN PAC PAGE DESIGN
   PAC colors:
   Navy:   #0e283b
   Red:    #df472d
   Orange: #e97b1d
   Canvas: #c2dcff
   ========================================================= */

/* ---------- PAC FOUNDATION ---------- */

body.pac-page {
  --pac-navy: #0e283b;
  --pac-navy-deep: #091d2b;
  --pac-red: #df472d;
  --pac-orange: #e97b1d;
  --pac-canvas: #ecf2ff;
  --pac-ink: #173040;
  --pac-muted: #4a6475;
  --pac-line: rgba(14, 40, 59, 0.18);
  --pac-card: rgba(255, 255, 255, 0.94);

  min-height: 100vh;
  color: var(--pac-ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--pac-canvas);
}

body.pac-page main {
  min-height: calc(100vh - 66px);
  padding-bottom: 56px;
  background: var(--pac-canvas) !important;
}

body.pac-page *,
body.pac-page button,
body.pac-page input,
body.pac-page select,
body.pac-page textarea {
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

/* Remove warm global backgrounds only on the PAC page */
body.pac-page .pac-hero,
body.pac-page .pac-program-section {
  background: transparent !important;
}

/* ---------- HEADER / NAVIGATION ---------- */

body.pac-page .pac-site-header {
  color: #ffffff;
  background: linear-gradient(
    90deg,
    var(--pac-navy-deep) 0%,
    var(--pac-navy) 72%,
    #153d55 100%
  ) !important;
  border-bottom: 3px solid var(--pac-orange) !important;
  box-shadow: 0 8px 24px rgba(9, 29, 43, 0.22);
}

body.pac-page .nav-shell {
  min-height: 68px;
}

body.pac-page .pac-brand {
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.pac-page .pac-brand-logo {
  width: 76px;
  height: 48px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

body.pac-page .brand span strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

body.pac-page .brand span small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
}

body.pac-page .nav-links {
  gap: 7px;
}

body.pac-page .nav-links a {
  position: relative;
  min-height: 36px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

body.pac-page .nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* PAC active page indicator */
body.pac-page .nav-links a.active,
body.pac-page .nav-links .pac-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.pac-page .nav-links a.active::after,
body.pac-page .nav-links .pac-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--pac-red),
    var(--pac-orange)
  );
}

/* Book a Service stays as the navigation CTA */
body.pac-page .nav-links .nav-book {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--pac-red),
    var(--pac-orange)
  );
  box-shadow: 0 8px 16px rgba(223, 71, 45, 0.22);
}

body.pac-page .nav-links .nav-book:hover {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #c93924,
    #d96812
  );
}

body.pac-page .menu-toggle {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

body.pac-page .menu-toggle span {
  background: #ffffff;
}

/* ---------- HERO ---------- */

body.pac-page .pac-hero {
  width: min(1120px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(14, 40, 59, 0.2);
  border-radius: 22px;
  background: var(--pac-card);
  box-shadow: 0 22px 52px rgba(9, 29, 43, 0.16);
}

body.pac-page .pac-hero-media {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(233, 123, 29, 0.14) 0%,
      rgba(233, 123, 29, 0) 42%
    ),
    linear-gradient(
      145deg,
      var(--pac-navy-deep),
      var(--pac-navy)
    );
  box-shadow: none;
}

/* Prevents the PAC logo/header image from being cropped */
body.pac-page .pac-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

body.pac-page .pac-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: none;
  padding: clamp(32px, 5vw, 68px);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(243, 249, 255, 0.95)
    );
}

body.pac-page .pac-hero-copy .eyebrow,
body.pac-page .pac-program-section .eyebrow,
body.pac-page .pac-program-card .package-type {
  margin: 0;
  color: var(--pac-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.pac-page .pac-hero-copy h1 {
  margin: 0;
  color: var(--pac-navy);
  font-size: clamp(2.25rem, 3.85vw, 3.55rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.pac-page .pac-hero-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--pac-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

body.pac-page .pac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- BUTTONS ---------- */

body.pac-page .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 800;
}

body.pac-page .button.primary {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--pac-red),
    var(--pac-orange)
  );
  box-shadow: 0 12px 22px rgba(223, 71, 45, 0.23);
}

body.pac-page .button.primary:hover {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #c93b26,
    #cf6513
  );
  transform: translateY(-2px);
}

body.pac-page .button.secondary {
  color: var(--pac-navy);
  border: 1px solid rgba(14, 40, 59, 0.23);
  background: #ffffff;
}

body.pac-page .button.secondary:hover {
  color: var(--pac-navy);
  border-color: var(--pac-orange);
  background: #fff9f3;
  transform: translateY(-2px);
}

/* ---------- PROGRAM SECTION ---------- */

body.pac-page .pac-program-section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 58px 0 0;
}

body.pac-page .pac-program-section .section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

body.pac-page .pac-program-section h2 {
  margin: 0;
  color: var(--pac-navy);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

body.pac-page .pac-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.pac-page .pac-program-card {
  min-height: 222px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--pac-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(9, 29, 43, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.pac-page .pac-program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(9, 29, 43, 0.15);
}

body.pac-page .pac-program-card h3 {
  margin: 0;
  color: var(--pac-navy);
  font-size: 1.38rem;
  font-weight: 850;
  line-height: 1.15;
}

body.pac-page .pac-program-card p {
  margin: 0;
  color: var(--pac-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

body.pac-page .pac-program-card strong {
  margin-top: auto;
  color: var(--pac-red);
  font-size: 0.86rem;
  font-weight: 800;
}

body.pac-page .pac-placeholder-card {
  border-style: dashed;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(238, 247, 255, 0.92)
    );
}

/* ---------- FOOTER ---------- */

body.pac-page .pac-footer {
  color: #ffffff;
  background: var(--pac-navy);
  border-top: 4px solid var(--pac-orange);
}

body.pac-page .pac-footer p,
body.pac-page .pac-footer a,
body.pac-page .pac-footer span {
  color: #ffffff;
}

body.pac-page .pac-footer a:hover {
  color: #ffd5b6;
}

/* ---------- CHAT BUTTON ---------- */

body.pac-page .ai-chat-toggle {
  background: linear-gradient(
    135deg,
    var(--pac-red),
    var(--pac-orange)
  );
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  body.pac-page .pac-hero {
    grid-template-columns: 1fr;
  }

  body.pac-page .pac-hero-media {
    min-height: 300px;
    padding: 24px;
  }

  body.pac-page .pac-hero-copy {
    padding: 36px;
  }

  body.pac-page .pac-program-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.pac-page .nav-links .nav-book {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  body.pac-page main {
    padding-bottom: 38px;
  }

  body.pac-page .pac-hero,
  body.pac-page .pac-program-section {
    width: min(100% - 24px, 1120px);
  }

  body.pac-page .pac-hero {
    margin-top: 20px;
    border-radius: 16px;
  }

  body.pac-page .pac-hero-media {
    min-height: 230px;
    padding: 18px;
  }

  body.pac-page .pac-hero-copy {
    gap: 13px;
    padding: 26px 22px 28px;
  }

  body.pac-page .pac-hero-copy h1 {
    font-size: 2.25rem;
  }

  body.pac-page .pac-program-section {
    padding-top: 40px;
  }

  body.pac-page .pac-program-card {
    min-height: 0;
    padding: 22px;
    border-radius: 13px;
  }

  body.pac-page .pac-brand-logo {
    width: 62px;
    height: 40px;
  }
}
/* Book a Service stays inactive unless its own page is open */
body.pac-page .nav-links .nav-book {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

body.pac-page .nav-links .nav-book::after {
  display: none;
}

body.pac-page .nav-links .nav-book:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* =========================================================
   COMPACT PAC HERO — paste at the end of PAC styling
   ========================================================= */

body.pac-page .pac-hero {
  width: min(1080px, calc(100% - 44px));
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  margin: 24px auto 0;
  border-radius: 16px;
}

/* Left logo panel */
body.pac-page .pac-hero-media {
  min-height: 340px;
  padding: 22px;
}

body.pac-page .pac-hero-media img {
  width: 100%;
  max-height: 210px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Right content panel */
body.pac-page .pac-hero-copy {
  gap: 12px;
  padding: 42px 46px;
}

body.pac-page .pac-hero-copy .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* Smaller heading with fewer oversized lines */
body.pac-page .pac-hero-copy h1 {
  max-width: 650px;
  font-size: clamp(2.15rem, 3.1vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

/* More compact description */
body.pac-page .pac-hero-copy p {
  max-width: 620px;
  font-size: 0.93rem;
  line-height: 1.58;
}

/* Smaller buttons */
body.pac-page .pac-actions {
  gap: 8px;
  margin-top: 2px;
}

body.pac-page .pac-actions .button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.84rem;
}

/* Bring the programs section closer to the hero */
body.pac-page .pac-program-section {
  padding-top: 40px;
}

/* Mobile compact version */
@media (max-width: 900px) {
  body.pac-page .pac-hero {
    grid-template-columns: 1fr;
  }

  body.pac-page .pac-hero-media {
    min-height: 230px;
    padding: 20px;
  }

  body.pac-page .pac-hero-media img {
    max-height: 170px;
  }

  body.pac-page .pac-hero-copy {
    padding: 32px 30px 34px;
  }
}

@media (max-width: 560px) {
  body.pac-page .pac-hero {
    width: min(100% - 24px, 1080px);
    margin-top: 18px;
    border-radius: 14px;
  }

  body.pac-page .pac-hero-media {
    min-height: 190px;
    padding: 16px;
  }

  body.pac-page .pac-hero-media img {
    max-height: 135px;
  }

  body.pac-page .pac-hero-copy {
    padding: 25px 22px 28px;
  }

  body.pac-page .pac-hero-copy h1 {
    font-size: 2.15rem;
  }

  body.pac-page .pac-hero-copy p {
    font-size: 0.9rem;
  }

  body.pac-page .pac-program-section {
    padding-top: 34px;
  }
}
/* Final chat view cleanup */
.ai-chat-panel {
  width: min(360px, calc(100vw - 22px));
  height: auto;
  max-height: min(500px, calc(100vh - 90px));
  grid-template-rows: auto auto auto auto;
}

.ai-chat-header {
  padding: 12px 14px;
}

.ai-chat-messages {
  min-height: 126px;
  max-height: 190px;
  align-content: start;
  gap: 8px;
  padding: 10px;
}

.ai-chat-message {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.ai-chat-message.assistant {
  justify-self: start;
  max-width: calc(100% - 6px);
}

.ai-chat-suggestion-block {
  padding: 8px 10px 9px;
}

.ai-chat-suggestions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ai-chat-suggestions button {
  max-width: 230px;
  white-space: nowrap;
}

.ai-chat-form {
  padding: 9px;
  border-top: 1px solid rgba(155, 33, 28, 0.14);
}

.ai-chat-form input {
  min-width: 0;
}

@media (max-width: 560px) {
  .ai-chat-panel {
    width: min(335px, calc(100vw - 18px));
    max-height: min(470px, calc(100vh - 84px));
  }

  .ai-chat-messages {
    min-height: 118px;
    max-height: 174px;
  }
}

/* Proper chat bubble flow final */
.ai-chat-panel {
  width: min(390px, calc(100vw - 22px));
  height: min(540px, calc(100vh - 88px));
  max-height: min(540px, calc(100vh - 88px));
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
}

.ai-chat-header {
  padding: 14px 16px;
}

.ai-chat-header .eyebrow {
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0;
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
}

.ai-chat-message {
  display: block;
  width: auto;
  min-width: 0;
  max-width: min(88%, 310px);
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.42;
}

.ai-chat-message.assistant {
  align-self: flex-start;
  max-width: min(88%, 310px);
}

.ai-chat-message.user {
  align-self: flex-end;
  max-width: min(88%, 310px);
}

.ai-chat-suggestion-block {
  flex: 0 0 auto;
}

.ai-chat-form {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .ai-chat-panel {
    width: min(350px, calc(100vw - 18px));
    height: min(500px, calc(100vh - 82px));
    max-height: min(500px, calc(100vh - 82px));
    grid-template-rows: auto minmax(200px, 1fr) auto auto;
  }

  .ai-chat-message,
  .ai-chat-message.assistant,
  .ai-chat-message.user {
    max-width: 90%;
  }
}

/* Chat composer spacing final */
.ai-chat-panel {
  overflow: hidden;
}

.ai-chat-messages {
  padding: 14px 16px;
}

.ai-chat-message.assistant {
  max-width: min(82%, 300px);
}

.ai-chat-suggestion-block {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(155, 33, 28, 0.08);
}

.ai-chat-suggestion-block > p {
  margin-bottom: 8px;
}

.ai-chat-suggestions {
  gap: 8px;
}

.ai-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 14px;
  border-top: 1px solid rgba(155, 33, 28, 0.12);
  background: rgba(255, 250, 247, 0.96);
}

.ai-chat-form input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.ai-chat-form button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .ai-chat-messages {
    padding: 12px 14px;
  }

  .ai-chat-suggestion-block {
    padding: 9px 14px 11px;
  }

  .ai-chat-form {
    padding: 10px 14px 13px;
  }

  .ai-chat-message.assistant {
    max-width: 86%;
  }
}

/* Smooth performance pass */
html {
  scroll-behavior: smooth;
}

body {
  animation-duration: 0.18s;
}

.site-loader {
  animation: loaderAutoHide 0.28s ease 1.15s forwards;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.loader-card {
  animation-duration: 0.42s;
}

.loader-logo-ring::before {
  animation-duration: 1.1s;
}

.loader-logo-ring img {
  animation-duration: 0.42s;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.2);
}

.reveal-on-scroll {
  transform: translateY(8px);
  transition: transform 0.28s ease-out, opacity 0.28s ease-out;
  will-change: transform, opacity;
}

.button,
.nav-links a,
.footer-icon,
.ai-chat-toggle,
.package-card,
.tutor-card,
.promo-card,
.booking-option-card,
.pac-program-card,
.team-gallery-item img {
  transition-duration: 0.16s !important;
  transition-timing-function: ease-out !important;
}

.button:hover,
.nav-links a:hover,
.footer-icon:hover,
.ai-chat-toggle:hover,
.package-card:hover,
.tutor-card:hover,
.promo-card:hover,
.booking-option-card:hover,
.pac-program-card:hover {
  transform: translateY(-1px);
}

.team-gallery-item:hover img {
  transform: scale(1.012);
  filter: none;
}

.terms-modal-card,
.ai-chat-panel,
.booking-option-card,
.package-card,
.tutor-card,
.feedback-card,
.promo-card {
  box-shadow: 0 10px 24px rgba(80, 34, 25, 0.1) !important;
}

@media (max-width: 760px) {
  .reveal-on-scroll {
    transform: translateY(4px);
    transition-duration: 0.2s;
  }

  .button:hover,
  .nav-links a:hover,
  .footer-icon:hover,
  .ai-chat-toggle:hover,
  .package-card:hover,
  .tutor-card:hover,
  .promo-card:hover,
  .booking-option-card:hover,
  .pac-program-card:hover {
    transform: none;
  }
}

/* Chat indentation and space final */
.ai-chat-panel {
  width: min(370px, calc(100vw - 24px));
  height: min(500px, calc(100vh - 88px));
  grid-template-rows: auto minmax(170px, 1fr) auto auto;
}

.ai-chat-header {
  padding: 14px 18px;
}

.ai-chat-header .eyebrow {
  display: block;
  padding-left: 0;
  font-size: 0.84rem;
}

.ai-chat-messages {
  padding: 16px 18px 12px;
  gap: 10px;
}

.ai-chat-message.assistant {
  max-width: min(84%, 292px);
  margin-left: 0;
}

.ai-chat-suggestion-block {
  padding: 10px 18px 12px;
}

.ai-chat-form {
  padding: 12px 18px 16px;
}

.ai-chat-form input {
  padding-left: 14px;
}

@media (max-width: 560px) {
  .ai-chat-panel {
    width: min(342px, calc(100vw - 20px));
    height: min(470px, calc(100vh - 84px));
    grid-template-rows: auto minmax(155px, 1fr) auto auto;
  }

  .ai-chat-header,
  .ai-chat-messages,
  .ai-chat-suggestion-block,
  .ai-chat-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ai-chat-message.assistant {
    max-width: 88%;
  }
}

/* Professional chat layout final override */
.ai-chat-widget {
  right: 18px;
  bottom: 18px;
}

.ai-chat-panel {
  right: 0;
  bottom: 64px;
  width: min(380px, calc(100vw - 36px));
  height: min(520px, calc(100vh - 104px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
}

.ai-chat-panel[hidden] {
  display: none !important;
}

.ai-chat-header {
  flex: 0 0 auto;
  padding: 16px 18px;
  box-sizing: border-box;
}

.ai-chat-header .eyebrow {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0;
}

.ai-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 16px;
  padding: 14px 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ai-chat-message {
  width: auto;
  max-width: 86%;
  margin: 0;
  padding: 9px 11px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.42;
}

.ai-chat-message.assistant {
  align-self: flex-start;
  max-width: 86%;
}

.ai-chat-message.user {
  align-self: flex-end;
  max-width: 86%;
}

.ai-chat-suggestion-block {
  flex: 0 0 auto;
  margin: 0 16px 10px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(155, 33, 28, 0.12);
  box-sizing: border-box;
}

.ai-chat-suggestion-block > p {
  margin: 0 0 8px;
  font-size: 0.68rem;
}

.ai-chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 0 5px;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
}

.ai-chat-suggestions button {
  flex: 0 0 auto;
  max-width: 230px;
  white-space: nowrap;
}

.ai-chat-form {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 10px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.ai-chat-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 0.82rem;
}

.ai-chat-form input:focus {
  box-shadow: none;
}

.ai-chat-form button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .ai-chat-widget {
    right: 10px;
    bottom: 10px;
  }

  .ai-chat-panel {
    width: min(342px, calc(100vw - 20px));
    height: min(500px, calc(100vh - 92px));
    bottom: 58px;
  }

  .ai-chat-header {
    padding: 14px 16px;
  }

  .ai-chat-messages,
  .ai-chat-suggestion-block,
  .ai-chat-form {
    margin-left: 14px;
    margin-right: 14px;
  }

  .ai-chat-message,
  .ai-chat-message.assistant,
  .ai-chat-message.user {
    max-width: 88%;
  }
}

/* Chat background cleanup */
.ai-chat-panel {
  background: linear-gradient(180deg, #fffaf8 0%, #fff3ec 100%);
  border: 1px solid rgba(155, 33, 28, 0.18);
  box-shadow: 0 18px 42px rgba(63, 24, 18, 0.18);
}

.ai-chat-messages {
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f2 100%);
  border: 1px solid rgba(155, 33, 28, 0.08);
  border-radius: 8px;
}

.ai-chat-message.assistant,
.ai-chat-message.user {
  background: #ffffff;
}

.ai-chat-suggestion-block {
  background: linear-gradient(180deg, #fff7f1 0%, #fff0e7 100%);
  border: 1px solid rgba(155, 33, 28, 0.1);
  border-radius: 8px;
  padding: 10px 12px 12px;
}

.ai-chat-form {
  background: #ffffff;
  border: 1px solid rgba(255, 108, 24, 0.32);
  border-radius: 9px;
}
/* Testimonial pattern on visible sections, not the whole main canvas */
body:not(.pac-page) main {
  background: linear-gradient(180deg, #fff7f1 0%, #fff1e9 48%, #fff8f3 100%) !important;
}

body:not(.pac-page) .home-hero,
body:not(.pac-page) .promo-section,
body:not(.pac-page) .center-section,
body:not(.pac-page) .packages-section,
body:not(.pac-page) .booking-service-section,
body:not(.pac-page) .team-section,
body:not(.pac-page) .tutors-section,
body:not(.pac-page) .why-section,
body:not(.pac-page) .feedback-section,
body:not(.pac-page) .about-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.9), rgba(255, 239, 229, 0.82)),
    url("Assets/testimonial_bg.png") center / 150px auto repeat !important;
}

body:not(.pac-page) .section:not(.home-hero) {
  border-radius: 10px;
}

body:not(.pac-page) .home-hero,
body:not(.pac-page) .page-ribbon {
  border-radius: 0;
}
/* Restore dark page ribbon design */
body:not(.pac-page) .page-ribbon {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(33, 27, 25, 0.22), rgba(155, 33, 28, 0.96) 56%, rgba(255, 122, 26, 0.94)),
    url("Assets/testimonial_bg.png") center / 140px auto repeat,
    linear-gradient(90deg, var(--black), var(--red), var(--orange)) !important;
  border-radius: 0;
}

body:not(.pac-page) .page-ribbon .eyebrow {
  color: #ffe2d1;
}

body:not(.pac-page) .page-ribbon h1 {
  color: var(--white);
  text-shadow: 0 8px 22px rgba(17, 17, 17, 0.28);
}
/* Stronger testimonial pattern visibility */
body:not(.pac-page) .home-hero,
body:not(.pac-page) .promo-section,
body:not(.pac-page) .center-section,
body:not(.pac-page) .packages-section,
body:not(.pac-page) .booking-service-section,
body:not(.pac-page) .team-section,
body:not(.pac-page) .tutors-section,
body:not(.pac-page) .why-section,
body:not(.pac-page) .feedback-section,
body:not(.pac-page) .about-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.72), rgba(255, 238, 228, 0.62)),
    url("Assets/testimonial_bg.png") center / 118px auto repeat !important;
}

body:not(.pac-page) .page-ribbon {
  background:
    linear-gradient(135deg, rgba(33, 27, 25, 0.06), rgba(155, 33, 28, 0.78) 56%, rgba(255, 122, 26, 0.74)),
    url("Assets/testimonial_bg.png") center / 115px auto repeat,
    linear-gradient(90deg, var(--black), var(--red), var(--orange)) !important;
}
/* Darker patterned cards and subsection surfaces */
body:not(.pac-page) .current-program-card,
body:not(.pac-page) .promo-card,
body:not(.pac-page) .package-card,
body:not(.pac-page) .service-card,
body:not(.pac-page) .booking-option-card,
body:not(.pac-page) .booking-form,
body:not(.pac-page) .booking-panel,
body:not(.pac-page) .owner-panel,
body:not(.pac-page) .why-panel,
body:not(.pac-page) .feedback-card,
body:not(.pac-page) .text-feedback-card,
body:not(.pac-page) .tutor-card,
body:not(.pac-page) .team-gallery,
body:not(.pac-page) .tool-row {
  background-color: #fff1e8 !important;
  background-image:
    linear-gradient(135deg, rgba(255, 246, 239, 0.52), rgba(255, 213, 188, 0.36)),
    url("Assets/testimonial_bg.png") !important;
  background-position: center !important;
  background-size: auto, 105px auto !important;
  background-repeat: repeat !important;
  border-color: rgba(155, 33, 28, 0.24) !important;
  box-shadow: 0 14px 32px rgba(90, 36, 24, 0.13) !important;
}

body:not(.pac-page) .tutor-card li,
body:not(.pac-page) .booking-resource-row,
body:not(.pac-page) .terms-check,
body:not(.pac-page) .downpayment-note,
body:not(.pac-page) .group-option-list span,
body:not(.pac-page) .service-link-row a {
  background: rgba(255, 225, 207, 0.88) !important;
}

body:not(.pac-page) .booking-poster-top,
body:not(.pac-page) .booking-poster,
body:not(.pac-page) .promo-photo,
body:not(.pac-page) .team-gallery-item,
body:not(.pac-page) .feedback-photo {
  background-color: #fff7f2 !important;
}
/* Restore header and ribbon pattern to previous visibility */
body:not(.pac-page) .page-ribbon {
  background:
    linear-gradient(135deg, rgba(33, 27, 25, 0.22), rgba(155, 33, 28, 0.96) 56%, rgba(255, 122, 26, 0.94)),
    url("Assets/testimonial_bg.png") center / 140px auto repeat,
    linear-gradient(90deg, var(--black), var(--red), var(--orange)) !important;
}
/* Clearer testimonial pattern on cards without darkening the color */
body:not(.pac-page) .current-program-card,
body:not(.pac-page) .promo-card,
body:not(.pac-page) .package-card,
body:not(.pac-page) .service-card,
body:not(.pac-page) .booking-option-card,
body:not(.pac-page) .booking-form,
body:not(.pac-page) .booking-panel,
body:not(.pac-page) .owner-panel,
body:not(.pac-page) .why-panel,
body:not(.pac-page) .feedback-card,
body:not(.pac-page) .text-feedback-card,
body:not(.pac-page) .tutor-card,
body:not(.pac-page) .team-gallery,
body:not(.pac-page) .tool-row {
  background-color: #fffaf6 !important;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 246, 239, 0.24)),
    url("Assets/testimonial_bg.png") !important;
  background-position: center !important;
  background-size: auto, 82px auto !important;
  background-repeat: repeat !important;
  border-color: rgba(155, 33, 28, 0.18) !important;
  box-shadow: 0 14px 32px rgba(90, 36, 24, 0.11) !important;
}

body:not(.pac-page) .tutor-card li,
body:not(.pac-page) .booking-resource-row,
body:not(.pac-page) .terms-check,
body:not(.pac-page) .downpayment-note,
body:not(.pac-page) .group-option-list span,
body:not(.pac-page) .service-link-row a {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 245, 238, 0.28)),
    url("Assets/testimonial_bg.png") center / 72px auto repeat !important;
  border-color: rgba(155, 33, 28, 0.14) !important;
}
.booking-actions .button[disabled],
.booking-actions .button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.25);
  box-shadow: none;
}

.booking-actions .button[disabled]:hover,
.booking-actions .button.is-disabled:hover {
  transform: none;
}
