/* PTE Melbourne page only. Isolated under .pte-melbourne-page. */
.pte-melbourne-page {
  --ptem-blue: #2456e6;
  --ptem-blue-dark: #173996;
  --ptem-blue-deep: #102b78;
  --ptem-navy: #092a78;
  --ptem-blue-soft: #eef4ff;
  --ptem-blue-soft-2: #f6f9ff;
  --ptem-yellow: #ffc400;
  --ptem-ink: #15203a;
  --ptem-copy: #52617e;
  --ptem-border: #dce5f4;
  --ptem-border-strong: #c8d6ee;
  --ptem-surface: #ffffff;
  --ptem-shadow: 0 20px 48px rgba(25, 55, 110, .11);
  --ptem-shadow-soft: 0 10px 28px rgba(31, 55, 98, .07);
  background: #fff;
  color: var(--ptem-ink);
  overflow: hidden;
}
.pte-melbourne-page *,
.pte-melbourne-page *::before,
.pte-melbourne-page *::after { box-sizing: border-box; }
.pte-melbourne-page a { text-underline-offset: 3px; }
.pte-melbourne-page p { color: var(--ptem-copy); line-height: 1.66; }
.pte-melbourne-page h1,
.pte-melbourne-page h2,
.pte-melbourne-page h3 { color: var(--ptem-navy); font-family: var(--font-head, "Poppins", sans-serif); }
#pte-practice-melbourne,
#pte-mock-test-melbourne { scroll-margin-top: calc(var(--header-h, 76px) + 18px); }

/* Hero */
.ptem-hero {
  position: relative;
  padding: clamp(48px, 5.8vw, 76px) 0 clamp(46px, 5.2vw, 68px);
  background:
    radial-gradient(circle at 95% 12%, rgba(60,119,255,.09), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  isolation: isolate;
}
.ptem-hero::before { display: none; }
.ptem-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -145px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(33,100,242,.035);
  pointer-events: none;
  z-index: 0;
}
.ptem-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(350px,.88fr);
  gap: clamp(34px, 4.5vw, 62px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.ptem-hero__copy { max-width: 760px; }
.ptem-eyebrow,
.ptem-section-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid #d8e4fb;
  border-radius: 999px;
  background: rgba(238,244,255,.9);
  color: var(--ptem-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.ptem-hero h1 {
  margin: 14px 0 16px;
  max-width: 760px;
  font-size: clamp(2.4rem, 4.45vw, 4.25rem);
  line-height: 1.035;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.ptem-hero__copy > p {
  margin: 0 0 11px;
  max-width: 700px;
  font-size: clamp(.99rem, 1.15vw, 1.08rem);
}
.ptem-hero__copy > p:last-of-type { margin-bottom: 0; }
.ptem-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ptem-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: var(--font-head, "Poppins", sans-serif);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ptem-button:hover { transform: translateY(-2px); }
.ptem-button:focus-visible { outline: 3px solid rgba(36,86,230,.24); outline-offset: 3px; }
.ptem-button--primary { background: var(--ptem-blue); color: #fff; box-shadow: 0 12px 26px rgba(36,86,230,.22); }
.ptem-button--primary:hover { background: var(--ptem-blue-dark); color: #fff; box-shadow: 0 15px 32px rgba(23,57,150,.22); }
.ptem-button--secondary { background: rgba(255,255,255,.9); border-color: var(--ptem-border-strong); color: var(--ptem-ink); box-shadow: 0 6px 18px rgba(31,55,98,.05); }
.ptem-button--secondary:hover { border-color: #aebfdf; color: var(--ptem-blue); background: #fff; }
.ptem-button--light { background: #fff; color: var(--ptem-blue-dark); flex: 0 0 auto; }
.ptem-button--light:hover { color: var(--ptem-blue); box-shadow: 0 12px 26px rgba(0,0,0,.13); }

/* Hero visual card */
.ptem-hero__panel {
  position: relative;
  padding: 21px;
  border: 1px solid rgba(187,204,234,.92);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
  box-shadow: var(--ptem-shadow);
  backdrop-filter: blur(12px);
  transform: translateY(2px);
}
.ptem-hero__panel::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--ptem-blue) 0 68%, var(--ptem-yellow) 68% 100%);
  opacity: .95;
}
.ptem-hero__panel::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -36px;
  bottom: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,86,230,.1) 0 36%, rgba(36,86,230,0) 38%);
  pointer-events: none;
}
.ptem-hero__panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 0 15px;
  border-bottom: 1px solid var(--ptem-border);
  position: relative;
  z-index: 1;
}
.ptem-panel-icon,
.ptem-card__icon,
.ptem-skill-card__icon,
.ptem-cta-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--ptem-blue-soft);
  color: var(--ptem-blue);
}
.ptem-panel-icon { width: 44px; height: 44px; box-shadow: inset 0 0 0 1px rgba(36,86,230,.08); }
.ptem-hero__panel-top strong { display: block; font-family: var(--font-head, "Poppins", sans-serif); font-size: .98rem; }
.ptem-hero__panel-top span:last-child { display: block; margin-top: 2px; color: var(--ptem-copy); font-size: .82rem; }
.ptem-mini-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin: 14px 0;
  position: relative;
  z-index: 1;
}
.ptem-mini-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 11px;
  border: 1px solid var(--ptem-border);
  border-radius: 13px;
  background: #fff;
  color: var(--ptem-blue);
  box-shadow: 0 5px 15px rgba(31,55,98,.035);
}
.ptem-mini-card:nth-child(2n) { background: #fbfcff; }
.ptem-mini-card strong { color: var(--ptem-ink); font-size: .87rem; }
.ptem-hero__metric {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ptem-blue-deep), var(--ptem-blue));
  box-shadow: 0 12px 24px rgba(23,57,150,.18);
  color: #fff;
  position: relative;
  z-index: 1;
}
.ptem-hero__metric p { margin: 0; color: #fff; font-size: .83rem; line-height: 1.48; }
.ptem-hero__metric strong { color: #fff; }

/* Sections */
.ptem-section { padding: clamp(34px, 3.8vw, 49px) 0; }
.ptem-section--soft {
  background: linear-gradient(180deg, #f8faff 0%, #f5f8fe 100%);
  border-top: 1px solid #edf1f8;
  border-bottom: 1px solid #edf1f8;
}
.ptem-section-heading { max-width: 760px; margin: 0 0 20px; }
.ptem-section-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(1.8rem, 2.8vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.ptem-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }

.ptem-card-grid { display: grid; gap: 16px; }
.ptem-card-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ptem-card-grid--balanced { align-items: stretch; }
.ptem-card,
.ptem-skill-card {
  border: 1px solid var(--ptem-border);
  border-radius: 18px;
  background: var(--ptem-surface);
  box-shadow: var(--ptem-shadow-soft);
}
.ptem-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: clamp(19px, 2vw, 25px);
}
.ptem-card--wide { max-width: 1060px; margin: 0 auto; }
.ptem-card--accent { background: linear-gradient(145deg, #f4f7ff 0%, #fff 72%); }
.ptem-card__icon { width: 46px; height: 46px; box-shadow: inset 0 0 0 1px rgba(36,86,230,.07); }
.ptem-card__content { min-width: 0; }
.ptem-card h2,
.ptem-card h3 { margin: 0 0 10px; line-height: 1.2; letter-spacing: -.015em; }
.ptem-card h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
.ptem-card h3 { font-size: clamp(1.32rem, 1.8vw, 1.67rem); }
.ptem-card p { margin: 0 0 9px; }
.ptem-card p:last-child { margin-bottom: 0; }
.ptem-card a { color: var(--ptem-blue); font-weight: 700; }
.ptem-card a:hover { color: var(--ptem-blue-dark); }

.ptem-skill-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.ptem-skill-card {
  min-height: 100%;
  padding: 19px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ptem-skill-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ptem-blue), rgba(36,86,230,.2));
  opacity: 0;
  transition: opacity .2s ease;
}
.ptem-skill-card:hover { transform: translateY(-2px); border-color: #bac9e6; box-shadow: 0 15px 34px rgba(31,55,98,.1); }
.ptem-skill-card:hover::after { opacity: 1; }
.ptem-skill-card__icon { width: 42px; height: 42px; margin-bottom: 12px; }
.ptem-skill-card h3 { margin: 0 0 6px; font-size: 1.04rem; }
.ptem-skill-card p { margin: 0; font-size: .91rem; line-height: 1.58; }
.ptem-inline-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 15px;
  padding: 14px 16px;
  border: 1px solid #d8e4fb;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  color: var(--ptem-blue);
  box-shadow: 0 7px 20px rgba(31,55,98,.035);
}
.ptem-inline-note p { margin: 0; }
.ptem-inline-note a { color: var(--ptem-blue); font-weight: 700; }

.ptem-benefit-card {
  background: linear-gradient(145deg, var(--ptem-blue-deep) 0%, var(--ptem-blue) 100%);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(23,57,150,.19);
}
.ptem-benefit-card h3 { color: #fff; }
.ptem-benefit-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ptem-benefit-list li {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
}
.ptem-benefit-list li > span:first-child { color: #fff; }

/* CTA */
.ptem-section--cta { padding-top: 14px; padding-bottom: clamp(32px, 3.6vw, 46px); }
.ptem-cta-card {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(24px, 3.2vw, 38px);
  border-radius: 18px;
  background: linear-gradient(135deg, #0b4bdc 0%, #082c80 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(11,75,220,.22);
}
.ptem-cta-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  pointer-events: none;
}
.ptem-cta-card__heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.ptem-cta-card__heading h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.6rem, 2.25vw, 2.15rem);
  line-height: 1.16;
}
.ptem-cta-card__icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.ptem-cta-card__copy { position: relative; z-index: 1; }
.ptem-cta-card__copy p {
  max-width: 1000px;
  margin: 0 0 12px;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
}
.ptem-cta-card__copy p:last-of-type { margin-bottom: 0; }
.ptem-cta-card__button {
  display: inline-flex;
  width: auto;
  margin-top: 22px;
  min-height: 50px;
  padding: 12px 20px;
  box-shadow: 0 16px 34px rgba(3,14,43,.22);
}
.ptem-cta-card__button:hover { box-shadow: 0 18px 38px rgba(3,14,43,.28); }

/* FAQ */
.ptem-faq-section { padding-top: clamp(38px, 4.4vw, 56px); }
.ptem-faq-grid { max-width: 980px; margin: 0 auto; display: grid; gap: 9px; }
.ptem-faq {
  border: 1px solid var(--ptem-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(31,55,98,.045);
}
.ptem-faq summary {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 22px;
  gap: 11px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s ease;
}
.ptem-faq summary:hover { background: #fbfcff; }
.ptem-faq summary::-webkit-details-marker { display: none; }
.ptem-faq__number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ptem-blue-soft);
  color: var(--ptem-blue);
  font-size: .74rem;
  font-weight: 800;
}
.ptem-faq__question { color: var(--ptem-ink); font-family: var(--font-head, "Poppins", sans-serif); font-weight: 700; line-height: 1.32; }
.ptem-faq__toggle { position: relative; width: 17px; height: 17px; }
.ptem-faq__toggle::before,
.ptem-faq__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ptem-blue);
  transform: translate(-50%,-50%);
  transition: transform .2s ease;
}
.ptem-faq__toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.ptem-faq[open] { border-color: #c8d7f0; box-shadow: 0 9px 26px rgba(31,55,98,.06); }
.ptem-faq[open] .ptem-faq__toggle::after { transform: translate(-50%,-50%) rotate(0deg); }
.ptem-faq__answer { padding: 0 16px 15px 65px; }
.ptem-faq__answer p { margin: 0; line-height: 1.58; }

/* Tablet */
@media (max-width: 1040px) {
  .ptem-hero__grid { grid-template-columns: minmax(0,1.04fr) minmax(320px,.96fr); gap: 30px; }
  .ptem-hero h1 { font-size: clamp(2.35rem, 5.3vw, 3.85rem); }
  .ptem-skill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .ptem-hero { padding-top: 42px; }
  .ptem-hero__grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .ptem-hero__copy { max-width: 760px; }
  .ptem-hero__panel { width: 100%; max-width: 700px; }
  .ptem-mini-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ptem-mini-card { justify-content: center; min-width: 0; }
  .ptem-card-grid--2 { grid-template-columns: minmax(0,1fr); }
}

/* Mobile */
@media (max-width: 620px) {
  .ptem-hero { padding: 34px 0 38px; }
  .ptem-hero h1 { margin-top: 12px; font-size: clamp(2.02rem, 10vw, 2.95rem); line-height: 1.055; }
  .ptem-hero__copy > p { font-size: .97rem; line-height: 1.62; }
  .ptem-hero__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .ptem-button { width: 100%; min-height: 45px; }
  .ptem-hero__panel { padding: 17px; border-radius: 19px; }
  .ptem-hero__panel::before { left: 17px; right: 17px; }
  .ptem-hero__panel-top { padding-bottom: 12px; }
  .ptem-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 11px 0; }
  .ptem-mini-card { justify-content: flex-start; min-height: 50px; padding: 9px; }
  .ptem-hero__metric { padding: 12px; }
  .ptem-section { padding: 29px 0; }
  .ptem-section-heading { margin-bottom: 16px; }
  .ptem-section-heading h2 { font-size: clamp(1.68rem, 8vw, 2.15rem); }
  .ptem-skill-grid { grid-template-columns: 1fr; gap: 10px; }
  .ptem-card { gap: 12px; padding: 17px; border-radius: 16px; }
  .ptem-card__icon { width: 42px; height: 42px; }
  .ptem-card h2 { font-size: 1.42rem; }
  .ptem-card h3 { font-size: 1.3rem; }
  .ptem-skill-card { padding: 16px; }
  .ptem-skill-card__icon { margin-bottom: 10px; }
  .ptem-inline-note { padding: 13px 14px; margin-top: 12px; }
  .ptem-cta-card { padding: 20px; border-radius: 18px; }
  .ptem-cta-card__heading { gap: 12px; }
  .ptem-cta-card__heading h2 { margin-bottom: 11px; font-size: clamp(1.55rem, 7vw, 2rem); }
  .ptem-cta-card__icon { width: 50px; height: 50px; flex-basis: 50px; }
  .ptem-cta-card__copy p { line-height: 1.62; }
  .ptem-cta-card__button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 14px;
    font-size: .9rem;
  }
  .ptem-faq-section { padding-top: 34px; }
  .ptem-faq summary { grid-template-columns: 34px minmax(0,1fr) 18px; gap: 8px; padding: 12px; }
  .ptem-faq__number { width: 32px; height: 32px; }
  .ptem-faq__question { font-size: .94rem; }
  .ptem-faq__answer { padding: 0 12px 13px 54px; }
}
@media (max-width: 420px) {
  .ptem-hero__grid { gap: 22px; }
  .ptem-mini-card { gap: 7px; }
  .ptem-mini-card strong { font-size: .82rem; }
  .ptem-card { flex-direction: column; }
  .ptem-inline-note { flex-direction: column; gap: 8px; }
  .ptem-faq__answer { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pte-melbourne-page *,
  .pte-melbourne-page *::before,
  .pte-melbourne-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
