/* ==========================================================================
   Legal and General Consultants - site stylesheet
   Colours are set in :root. Section background colours (.bg-xxxxxx) come from
   the original design; dark ones switch text to white automatically.
   ========================================================================== */

:root {
  --navy: #16253c;
  --blue: #103b7e;
  --orange: #fe8533;
  --orange-2: #ee7c11;
  --cyan: #06d8f4;
  --ink: #1f2937;
  --muted: #5b6777;
  --line: #e6ebf2;
  --soft: #f1f1f1;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(16, 59, 126, .12);
  --wrap: 1180px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* ---------- layout helpers ---------- */
.container { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.block { padding: 56px 0; }
.block:first-of-type { padding-top: 24px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.col { flex: 1 1 0; min-width: 260px; }
.stack { display: block; }
.stack > .stack { margin-top: 0; }

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, h6 { color: #111827; line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1.w-heading { font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: #111; }
h2.w-heading, h2 { font-size: clamp(26px, 3vw, 36px); color: var(--blue); }
h3, h3.w-heading { font-size: 22px; }
h4.w-heading, h4 { font-size: 22px; color: var(--blue); font-weight: 700; }
h5.w-heading, h5 { font-size: 18px; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.w-text ul, .checks { padding-left: 0; list-style: none; }
.w-text ul li, .checks li { position: relative; padding: 4px 0 4px 26px; }
.w-text ul li::before, .checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
}
.lead { font-size: 18px; color: var(--muted); }
.eyebrow { font-size: 14px; color: var(--blue); font-weight: 500; margin-bottom: 4px; }

/* ---------- buttons ---------- */
.btn, .btn-apply {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: 600 15px/1 var(--font); text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #0b2c60; color: #fff; transform: translateY(-1px); }
.btn-apply { background: var(--orange); padding: 11px 22px; border-radius: 6px; }
.btn-apply:hover { background: var(--orange-2); color: #fff; }
.badge { background: rgba(255,255,255,.2); border-radius: 4px; padding: 2px 6px; font-size: 12px; }
.read-more { font-weight: 600; text-decoration: none; color: var(--blue); }
.read-more::after { content: " \2192"; }

/* ---------- top bar + navigation ---------- */
.site-header { position: relative; z-index: 50; }
.topbar { background: #fff; padding: 10px 0; }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.contact-strip { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
.contact-strip li { margin: 2px 0; }
.contact-strip a { color: #1a5a9a; text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; }
.contact-right { text-align: right; }
.contact-right a { color: var(--blue); font-weight: 700; }
.contact-strip .ti { display: inline-block; width: 1.2em; color: #d33; }
.brand img { width: 150px; height: auto; margin: 0 auto; }
.navbar { background: var(--navy); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 12px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 14px 12px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.menu > li > a:hover, .menu > li > a[aria-current="page"] { color: var(--cyan); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; border-radius: 0 0 8px 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.submenu a:hover, .submenu a[aria-current="page"] { background: #eef4ff; color: var(--blue); }
.menu-cta { display: none; }
.navbar-inner > .btn-apply { flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- main content blocks ---------- */
.bg-f1f1f1 { background: #f1f1f1; }
.bg-eeeeee { background: #eeeeee; }
.bg-d9e9ff { background: #d9e9ff; }
.bg-edfcff { background: #edfcff; }
.bg-e8f9ff { background: #e8f9ff; }
.bg-c1f1ff { background: #c1f1ff; }
.bg-b0efff { background: #b0efff; }
.bg-ffffff { background: #fff; }
.bg-16253c, .bg-002c4d, .bg-001831, .bg-001338, .bg-000000, .bg-0b2349, .bg-103b7e {
  color: #fff;
}
.bg-16253c h1, .bg-16253c h2, .bg-16253c h3, .bg-16253c h4, .bg-16253c h5,
.bg-002c4d h1, .bg-002c4d h2, .bg-002c4d h3, .bg-002c4d h4, .bg-002c4d h5,
.bg-001831 h1, .bg-001831 h2, .bg-001831 h3, .bg-001831 h4, .bg-001831 h5,
.bg-001338 h1, .bg-001338 h2, .bg-001338 h3, .bg-001338 h4, .bg-001338 h5,
.bg-000000 h1, .bg-000000 h2, .bg-000000 h3, .bg-000000 h4, .bg-000000 h5,
.bg-0b2349 h1, .bg-0b2349 h2, .bg-0b2349 h3, .bg-0b2349 h4, .bg-0b2349 h5,
.bg-103b7e h1, .bg-103b7e h2, .bg-103b7e h3, .bg-103b7e h4, .bg-103b7e h5 { color: #fff; }
.bg-16253c .w-text ul li::before, .bg-002c4d .w-text ul li::before { background: var(--cyan); }

/* nested coloured panels, and text that sits on a dark background */
.panel { padding: 28px 30px; border-radius: 14px; margin: 16px 0; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5, .on-dark h6,
.on-dark p, .on-dark li, .on-dark td, .on-dark th, .on-dark span, .on-dark strong, .on-dark label { color: #fff; }
.on-dark a { color: #9fd8ff; }
.on-dark .w-text ul li::before, .on-dark .checks li::before { background: var(--cyan); }
.on-dark .progress-track { background: rgba(255,255,255,.2); }

/* feature cards (three icon boxes under the hero) */
.row > .col:has(.feature-icon) { align-self: stretch;
  border: 1px solid var(--orange); padding: 30px 26px; text-align: center; background: #fff;
}
.feature-icon { width: 60px; height: 60px; margin: 0 auto 10px; color: var(--orange); }
.feature-icon svg { width: 100%; height: 100%; }
.row > .col:has(.feature-icon) h4 { margin-bottom: 8px; }
.row > .col:has(.feature-icon) p { color: var(--muted); }

/* hero slider */
.slider { position: relative; overflow: hidden; border-radius: 14px; background: #111; aspect-ratio: 16 / 7; }
.slider .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slider .slide.is-active { opacity: 1; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.slider button { font: inherit; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.7); color: var(--navy); font-size: 22px; cursor: pointer;
}
.slider-prev { left: 12px; } .slider-next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: var(--orange); }
.slider-dots button:not(.is-active):hover { background: #fff; }
/* full-width hero: the carousel (or the page's header photo) spans the whole screen under the navigation */
.block-hero { padding: 0 !important; width: 100%; }
.hero-wrap, .hero-banner { width: 100%; }
.hero-wrap .slider {
  width: 100%; aspect-ratio: auto; border-radius: 0;
  height: clamp(240px, 40vw, 640px);
}
.hero-wrap .slider .slide img { border-radius: 0; }
.hero-banner img {
  width: 100%; height: clamp(220px, 36vw, 560px); object-fit: cover; border-radius: 0;
}
/* the hero sits at the top of the page; feature row overlaps it slightly */
.block:first-of-type + .block { padding-top: 0; }

/* images */
img.w-image { border-radius: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 0; }
.gallery.cols-4 img { height: 240px; border-radius: 0; }
.gallery.cols-7 { grid-template-columns: repeat(7, 1fr); align-items: center; }
.gallery.cols-7 img { height: 110px; object-fit: contain; border-radius: 0; background: #fff; }
@media (max-width: 760px) { .gallery.cols-4, .gallery.cols-7 { grid-template-columns: repeat(2, 1fr); } }
.row > .col > p > img.w-image, .row > .col > p > a > img.w-image { width: 100%; height: 260px; object-fit: cover; }
.row > .col > p > a { display: block; }

/* destination tiles and progress */
.progress { margin: 10px 0 16px; }
.progress-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.progress-track { height: 16px; background: #e5ecf6; border-radius: 3px; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: var(--blue); }
.progress:nth-of-type(2) .progress-fill { background: var(--orange); }

/* accordion / faq */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--blue); font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "\2212"; }
.faq-body { padding-top: 10px; color: var(--muted); }

/* counters */
.stat { text-align: center; padding: 20px; }
.stat-num { font-size: 48px; font-weight: 900; color: var(--cyan); line-height: 1.1; margin: 0; }
.stat-label { font-size: 16px; font-weight: 500; margin: 6px 0 0; }
.bg-16253c .stat-num, .bg-002c4d .stat-num { color: var(--cyan); }

/* list of checks */
.checks li { margin-bottom: 4px; }

/* search (ask) bar */
.ask-form {
  display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 28px auto 0;
  border: 2px solid var(--orange); border-radius: 40px; padding: 6px 6px 6px 22px; background: #fff;
}
.ask-form input {
  flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 0; background: transparent;
}
.ask-form .btn { background: var(--orange); border-radius: 30px; }
.ask-form .btn:hover { background: var(--orange-2); }

/* blog and archive cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(16, 59, 126, .10);
  display: flex; flex-direction: column;
}
.card > a > img { width: 100%; height: 190px; object-fit: cover; border-radius: 0; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 19px; margin: 6px 0 8px; }
.card-body h3 a { color: #111827; text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-body > p:not(.card-meta) { color: var(--muted); font-size: 15px; }
.card-meta { font-size: 13px; color: var(--muted); margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.card-meta .tag { color: #fff; background: var(--orange); border-radius: 4px; padding: 0 8px; font-weight: 500; }
.card .read-more { margin-top: auto; padding-top: 6px; }

/* forms */
.contact-form { max-width: 720px; margin: 0 auto; }
.contact-form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 12px; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cfd8e6; border-radius: 8px; font: inherit; font-size: 15px; background: #fff;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn { margin-top: 6px; cursor: pointer; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; } }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 40, .6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 26px 30px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.modal-head h2 { font-size: 22px; margin: 0; }
.modal-close { background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; color: var(--muted); }

/* ---------- gallery image viewer ---------- */
.gallery a.lb-open { display: block; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery a.lb-open img { transition: transform .25s ease; }
.gallery a.lb-open:hover img { transform: scale(1.03); }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 14, 26, .92);
  display: flex; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close {
  top: 16px; right: 16px; width: auto; height: 44px; padding: 0 18px; border-radius: 22px;
  background: #fff; color: #111; font: 600 16px/1 var(--font); display: flex; align-items: center; gap: 6px; z-index: 2;
}
.lb-close span { font-size: 26px; line-height: 1; }
.lb-close:hover { background: #e9eef7; }
.lightbox button { z-index: 2; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 60px 12px; } .lb-prev, .lb-next { width: 38px; height: 38px; } }

/* ---------- floating social + whatsapp ---------- */
.side-social {
  position: fixed; right: 0; top: 40%; z-index: 90; display: flex; flex-direction: column;
}
.side-social a { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
.side-social svg { width: 20px; height: 20px; fill: currentColor; }
.side-social .s-facebook { background: #3b5998; }
.side-social .s-linkedin { background: #0a66c2; }
.side-social .s-youtube { background: #e52d27; }
.side-social .s-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.side-social .s-pinterest { background: #cb2027; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 34px; height: 34px; fill: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #d7def0; padding: 52px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 14px; }
.footer-about p { color: #b9c5dd; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-social a:hover { background: var(--orange); }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-group { border-bottom: 1px solid rgba(255,255,255,.12); padding: 6px 0; }
.footer-group summary { cursor: pointer; color: #fff; font-weight: 500; padding: 6px 0; list-style: none; }
.footer-group summary::-webkit-details-marker { display: none; }
.footer-group summary::after { content: " +"; color: var(--orange); }
.footer-group[open] summary::after { content: " \2212"; }
.footer-links { list-style: none; margin: 0 0 6px; padding: 0 0 0 4px; }
.footer-links li { padding: 3px 0; }
.footer-links a { color: #c8d3ea; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-general { margin-top: 10px; }
.footer-contact p { margin-bottom: 14px; color: #c8d3ea; font-size: 14px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--orange); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 16px 0 22px; text-align: center; }
.foot-bottom p { margin: 0; font-size: 13px; color: #9fb0cf; }

/* study destination pages: one shared pattern (title, then content cards) */
.study-page { padding-top: 44px; }
.study-page h1.w-heading { margin-bottom: 28px; }
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.study-card {
  background: #fff; border-radius: var(--radius); padding: 26px 28px;
  box-shadow: 0 6px 22px rgba(16, 59, 126, .10); border-top: 4px solid var(--orange);
}
.study-card.study-intro { grid-column: 1 / -1; border-top-color: var(--blue); }
.study-h { font-size: 22px; color: var(--blue); margin-bottom: 12px; }
.study-card:has(+ .study-band) { grid-column: 1 / -1; }
.study-contact { grid-column: 1 / -1; border-top-color: var(--blue); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 4px 0; }
.study-band {
  grid-column: 1 / -1; margin: 10px 0 0; padding: 14px 22px; font-size: 24px; color: #fff;
  background: var(--navy); border-radius: var(--radius);
}
.study-body > * + * { margin-top: 12px; }
.study-body { overflow-wrap: anywhere; min-width: 0; }
.study-body table { width: 100%; border-collapse: collapse; }
.study-body td, .study-body th { padding: 6px 8px; vertical-align: top; }
.study-body p, .study-body li { color: #333c4a; }
.study-body img.w-image { width: 100%; height: auto; max-height: 240px; object-fit: contain; background: #fff; border-radius: 10px; margin: 0 0 14px; }
.study-body .w-image { display: block; }
.study-body .gallery { margin-top: 8px; }
.study-body .faq details { border-bottom-color: #e6ebf2; }
.study-body .checks li::before { background: var(--orange); }
@media (max-width: 760px) { .study-grid { grid-template-columns: 1fr; } .study-card { padding: 20px; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .topbar-inner { grid-template-columns: 1fr; text-align: center; }
  .contact-right { text-align: center; }
  .contact-left { order: 2; }
  .nav-toggle { display: block; }
  .navbar-inner > .btn-apply { display: none; }
  .navbar-inner { position: relative; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0;
    box-shadow: 0 16px 30px rgba(0,0,0,.25);
  }
  .menu.is-open { display: flex; }
  .menu > li > a { padding: 12px 4px; }
  .submenu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: rgba(255,255,255,.06); border-radius: 0; padding: 0 0 0 14px; }
  .has-sub.is-open > .submenu { display: block; }
  .submenu a { color: #e6ecf8; }
  .submenu a:hover { background: transparent; color: var(--cyan); }
  .menu-cta { display: block; margin-top: 10px; }
  .menu-cta .btn-apply { width: 100%; justify-content: center; }
  .caret { border-color: #fff; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .block { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .row { gap: 22px; }
  .col { min-width: 100%; }
  .stat-num { font-size: 38px; }
  .slider { aspect-ratio: 4 / 3; }
  .ask-form { flex-direction: column; border-radius: 16px; padding: 12px; align-items: stretch; }
  .ask-form .btn { justify-content: center; }
  .side-social { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   MODERN REFRESH: softer surfaces, hover lift, image zoom, entrance motion
   Content and layout are unchanged; this block only adds visual polish.
   ========================================================================= */

/* headings and buttons: a little more presence */
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.btn, .btn-apply {
  border-radius: 999px; padding: 12px 28px;
  box-shadow: 0 6px 16px rgba(16, 59, 126, .18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover, .btn-apply:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 59, 126, .25); }
.btn-apply:hover { box-shadow: 0 10px 22px rgba(254, 133, 51, .35); }

/* images: zoom on hover inside a clipped frame */
img.w-image, .card > a > img, .gallery img, .study-body img.w-image, .hero-banner img {
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}
p:has(> img.w-image), .w-text:has(img), .gallery a, .card > a, .hero-banner, .study-card:has(img) {
  overflow: hidden;
}
img.w-image:hover, .card:hover > a > img, .gallery img:hover, .study-body img.w-image:hover {
  transform: scale(1.07);
  filter: saturate(1.08);
}
.hero-banner:hover img { transform: scale(1.03); }

/* hero slide: slow Ken Burns zoom on the active slide */
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.slider .slide.is-active img { animation: kenburns 9s ease-out forwards; }
.slider-prev, .slider-next { transition: background .2s ease, transform .2s ease; }
.slider-prev:hover, .slider-next:hover { background: #fff; transform: translateY(-50%) scale(1.08); }

/* entrance: images fade and rise when the page loads (no JS needed) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
img.w-image, .card, .study-card, .feature-icon, .stat {
  animation: rise-in .7s ease backwards;
}
.card:nth-child(2), .study-card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3), .study-card:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4) { animation-delay: .24s; }

/* cards: lift and deepen shadow on hover */
.card, .study-card, .panel {
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover, .study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 59, 126, .18);
}
.row > .col:has(.feature-icon) {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.row > .col:has(.feature-icon):hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(16, 59, 126, .15);
}
.feature-icon { transition: transform .4s ease; }
.row > .col:has(.feature-icon):hover .feature-icon { transform: scale(1.12) rotate(-4deg); }

/* gallery: a soft overlay appears on hover */
.gallery a.lb-open { position: relative; }
.gallery a.lb-open::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,37,60,.45), transparent 60%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.gallery a.lb-open:hover::after { opacity: 1; }

/* links and menu: animated underline */
.read-more { position: relative; display: inline-block; }
.read-more::before {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.read-more:hover::before { transform: scaleX(1); transform-origin: left; }
.menu > li > a { position: relative; }
.menu > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transition: transform .3s ease;
}
.menu > li > a:hover::after { transform: scaleX(1); }

/* social icons: pop on hover */
.side-social a, .footer-social a { transition: transform .25s ease, background .25s ease; }
.side-social a:hover, .footer-social a:hover { transform: scale(1.12); }
.wa-float { transition: transform .25s ease; }
.wa-float:hover { transform: scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  img.w-image, .card, .study-card, .feature-icon, .stat, .slider .slide.is-active img { animation: none !important; }
  img.w-image:hover, .card:hover > a > img, .gallery img:hover { transform: none; }
}

/* ---------- ALL content images inside <main> (covers untagged <img> too) ----------
   Header/footer logos and the lightbox are excluded on purpose. */
main img {
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease, opacity .6s ease;
  cursor: zoom-in;
}
main img:hover {
  transform: scale(1.07);
  filter: saturate(1.08);
}
/* clip the zoomed image inside its own frame so it never overlaps the text around it */
main :where(p, a, figure, div, li, td, th, span):has(> img) {
  overflow: hidden;
}
main img.lb-img, main .lightbox img { cursor: default; }
main img[src=""] { display: none; }

/* entrance for every content image (keeps hover working: fill-mode does not stick) */
@keyframes img-in {
  from { opacity: 0; transform: scale(.98); }
  to   { opacity: 1; transform: none; }
}
main img { animation: img-in .8s ease backwards; }
main img.lb-img { animation: none; }

@media (prefers-reduced-motion: reduce) {
  main img, main img:hover { animation: none !important; transform: none !important; transition: none !important; }
}

/* ---------- Study in Australia + What we do: image panels ----------
   Images are shown at their true size (never stretched) and the empty area
   of each panel is filled with the site blue. */
.page-what-we-do .hero-wrap .slider { background: #103b7e; }
.page-what-we-do .slider .slide img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 80%; max-height: 70%;
  object-fit: contain; background: transparent; border-radius: 0;
}
.page-study-in-australia .study-body img.w-image {
  background: #103b7e; object-fit: contain; width: 100%;
  height: 240px; max-height: none; padding: 14px; box-sizing: border-box; border-radius: 10px;
}
