/* ==========================================================================
   Advantage Education — main stylesheet (v2)
   Brand: the logo's signal red and black. Source Sans 3 for type, Hind
   Siliguri for Bangla. One memorable motif: the logo's paper-plane flight
   path, used once in the hero. Everything else stays calm and photographic.
   ========================================================================== */

:root {
	--red: #D80416;
	--red-700: #A9030F;
	--red-50: #FFF1F2;
	--red-100: #FFE1E4;
	--ink: #111318;
	--ink-2: #2B2F36;
	--muted: #5B6270;
	--line: #E5E7EB;
	--soft: #F5F6F8;
	--paper: #FFFFFF;
	--night: #14161B;
	--night-2: #1D2027;
	--white: #FFFFFF;
	--ok: #127A43;
	--danger: #B3261E;

	--f-body: "Source Sans 3", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-display: var(--f-body);

	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	--pill: 999px;
	--wrap: 1200px;
	--text: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--space: clamp(56px, 8vw, 104px);
	--shadow: 0 1px 2px rgba(17, 19, 24, .05), 0 10px 30px -12px rgba(17, 19, 24, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-700); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 2.6vw + 1.2rem, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 1.3vw + 1.15rem, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.004em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ae-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; }
.ae-skip:focus { top: 12px; color: var(--white); }
.ae-main { display: block; min-height: 50vh; }
.ae-main:focus { outline: none; }

.ae-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ae-wrap--text { max-width: calc(var(--text) + 2 * var(--gutter)); }
.ae-section { padding-block: clamp(32px, 5vw, 64px); }
.ae-section--tight { margin-top: 40px; }
.ae-section__title { margin-bottom: 20px; }
.ae-icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.ae-btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 24px;
	border-radius: var(--pill); border: 2px solid transparent;
	font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.ae-btn--primary,
.wp-block-button.is-style-ae-primary .wp-block-button__link { background: var(--red); color: var(--white); }
.ae-btn--primary:hover,
.wp-block-button.is-style-ae-primary .wp-block-button__link:hover { background: var(--red-700); color: var(--white); }
.wp-block-button__link { background: var(--ink); color: var(--white); }
.wp-block-button__link:hover { background: var(--ink-2); color: var(--white); }
.ae-btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--ink); color: var(--ink); }
.ae-btn--ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--white); }
.ae-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.75); color: var(--white); }
.ae-btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.ae-btn--lg { min-height: 54px; padding-inline: 30px; font-size: 1.0625rem; }
.ae-btn--block { width: 100%; }
.ae-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: var(--pill); cursor: pointer; }
.ae-iconbtn:hover { background: var(--soft); }

/* ---------- Top bar & header ---------- */
.ae-topbar { background: var(--night); color: #C9CDD4; font-size: .9rem; }
.ae-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ae-topbar a { color: #E4E6EA; text-decoration: none; }
.ae-topbar a:hover { color: var(--white); text-decoration: underline; }
.ae-topbar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ae-topbar__nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }

.ae-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .ae-header { top: 32px; }
.ae-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.ae-header__brand { flex: none; }
.ae-header__brand .custom-logo { max-height: 52px; width: auto; }
.ae-logo { display: block; line-height: 0; }
.ae-logo img { height: 52px; width: auto; }
.ae-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ae-header__menu { display: none; }

.ae-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ae-nav__list > li { position: relative; }
.ae-nav__list a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; border-radius: var(--r-s); }
.ae-nav__list a:hover { color: var(--red); }
.ae-nav__list .current-menu-item > a,
.ae-nav__list .current-menu-ancestor > a,
.ae-nav__list .current_page_parent > a { color: var(--red); }
.ae-nav__list .menu-item-has-children > a { padding-right: 26px; }
.ae-nav__list .menu-item-has-children > a::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.ae-nav__list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility .12s; }
.ae-nav__list .sub-menu a { font-weight: 500; }
.ae-nav__list .sub-menu a:hover { background: var(--red-50); }
.ae-nav__list li:hover > .sub-menu,
.ae-nav__list li:focus-within > .sub-menu,
.ae-nav__list li.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; }

/* Search panel */
.ae-search { border-top: 1px solid var(--line); background: var(--white); padding-block: 14px; }
.ae-search__form { display: flex; align-items: center; gap: 10px; }
.ae-search__form > .ae-icon { color: var(--muted); }
.ae-search__form input { flex: 1; min-width: 0; height: 48px; border: 0; font: inherit; font-size: 1.15rem; background: transparent; }
.ae-search__form input:focus { outline: none; }
.ae-search__form:focus-within { box-shadow: inset 0 -2px 0 var(--red); }
.ae-suggest { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--white); }
.ae-suggest a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.ae-suggest li + li a { border-top: 1px solid var(--soft); }
.ae-suggest a:hover, .ae-suggest a[aria-selected="true"] { background: var(--red-50); }
.ae-suggest__type { grid-row: span 2; align-self: center; font-size: .8rem; color: var(--muted); background: var(--soft); padding: 2px 8px; border-radius: 20px; }
.ae-suggest__sub { font-size: .88rem; color: var(--muted); }

/* Drawer (mobile menu) */
.ae-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(17, 19, 24, .55); }
.ae-drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--white); overflow-y: auto; padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.ae-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.ae-drawer__head .ae-logo img { height: 44px; }
.ae-drawer__search { display: flex; border: 1px solid var(--line); border-radius: var(--pill); padding-left: 6px; }
.ae-drawer__search input { flex: 1; border: 0; padding: 0 12px; font: inherit; min-width: 0; background: transparent; }
.ae-drawer__list { list-style: none; margin: 0; padding: 0; }
.ae-drawer__list a { display: block; padding: 12px 4px; font-size: 1.12rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--soft); }
.ae-drawer__list .sub-menu { list-style: none; padding: 0 0 4px 14px; margin: 0; }
.ae-drawer__list .sub-menu a { font-weight: 500; font-size: 1rem; padding: 9px 4px; }
.ae-drawer__list--small a { font-size: 1rem; font-weight: 500; }
.ae-drawer__contact { display: flex; flex-direction: column; gap: 8px; }
.ae-drawer__contact a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink); }
body.ae-locked { overflow: hidden; }

/* ---------- Page heading & breadcrumbs ---------- */
.ae-pagehead { position: relative; background: var(--soft); padding-block: 34px 44px; border-bottom: 1px solid var(--line); overflow: hidden; }
.ae-pagehead::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216,4,22,.10), transparent); pointer-events: none; }
.ae-pagehead__title { margin-bottom: 8px; }
.ae-pagehead__intro { max-width: 62ch; color: var(--muted); font-size: 1.15rem; margin: 0; }
.ae-pagehead .ae-chips { margin-top: 20px; }
.ae-crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; color: var(--muted); }
.ae-crumbs li + li::before { content: "/"; margin: 0 8px; color: #B9BEC7; }
.ae-crumbs a { color: var(--muted); }
.ae-crumbs a:hover { color: var(--red); }

/* ---------- Chips, tags, badges ---------- */
.ae-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ae-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ae-chip:hover { border-color: var(--red); color: var(--red); }
.ae-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ae-chip span { color: var(--muted); font-size: .85em; }
.ae-chips--lg .ae-chip { min-height: 46px; padding-inline: 18px; font-size: 1.02rem; }
.ae-chip--remove { background: var(--red-50); border-color: var(--red-100); }
.ae-chip--clear { border-style: dashed; }
.ae-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--soft); color: var(--ink-2); vertical-align: middle; }
.ae-tag--partner { background: var(--red-50); color: var(--red-700); }
.ae-demo { display: inline-block; font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; background: #FFE58F; color: var(--ink); vertical-align: middle; }
.ae-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: var(--white); font-size: .8rem; }
.ae-link-arrow { font-weight: 700; text-decoration: none; color: var(--red); white-space: nowrap; }
.ae-link-arrow::after { content: " \2192"; }
.ae-link-arrow:hover { text-decoration: underline; }

/* ---------- Grids & cards ---------- */
.ae-grid { display: grid; gap: 22px; }
.ae-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.ae-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ae-grid--dest { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Course result card */
.ae-ticket-list { display: grid; gap: 14px; }
.ae-ticket { position: relative; display: grid; grid-template-columns: 1fr minmax(170px, 220px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color .15s, box-shadow .15s; }
.ae-ticket:hover { border-color: #CDD1D8; box-shadow: var(--shadow); }
.ae-ticket__main { padding: 20px 22px; min-width: 0; }
.ae-ticket__uni { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 4px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.ae-ticket__dest { color: var(--red); }
.ae-ticket__title { font-size: 1.25rem; margin: 0 0 12px; }
.ae-ticket__title a { color: var(--ink); text-decoration: none; }
.ae-ticket__title a:hover { color: var(--red); text-decoration: underline; }
.ae-ticket__facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ae-ticket__facts li { font-size: .9rem; padding: 3px 11px; background: var(--soft); border-radius: 20px; }
.ae-ticket__stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 22px; background: var(--soft); border-left: 1px solid var(--line); border-radius: 0 var(--r-m) var(--r-m) 0; }
.ae-ticket__fee { margin: 0; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.ae-ticket__fee span { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.ae-ticket__badge { display: inline-flex; gap: 4px; align-items: center; margin: 0; font-size: .88rem; font-weight: 700; color: var(--ok); }
.ae-ticket__link { font-weight: 700; font-size: .95rem; }
.ae-ticket__link::after { content: ""; position: absolute; inset: 0; }
.ae-ticket__title a, .ae-ticket__uni a { position: relative; z-index: 1; }

/* University card */
.ae-uni { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); transition: box-shadow .15s, border-color .15s; }
.ae-uni:hover { box-shadow: var(--shadow); border-color: #CDD1D8; }
.ae-uni__logo { flex: none; width: 100%; height: 72px; border-radius: var(--r-s); background: var(--white); display: flex; align-items: center; overflow: hidden; }
.ae-uni__logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.ae-uni__logo span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-m); background: var(--red-50); font-size: 1.8rem; font-weight: 700; color: var(--red); }
.ae-uni__name { font-size: 1.15rem; margin: 0 0 2px; }
.ae-uni__name a { color: var(--ink); text-decoration: none; }
.ae-uni__name a:hover { color: var(--red); text-decoration: underline; }
.ae-uni__place { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.ae-uni__facts { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.ae-uni__facts li { padding: 7px 0; border-top: 1px solid var(--soft); }
.ae-uni__tags { margin: 12px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }

/* Destination card (photo on top) */
.ae-dest { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ae-dest:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.ae-dest__media { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--night), #3A0A10); overflow: hidden; }
.ae-dest__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ae-dest:hover .ae-dest__img { transform: scale(1.04); }
.ae-dest__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.ae-dest__name { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; }
.ae-dest__flag { font-size: 1.25rem; line-height: 1; }
.ae-dest__tagline { color: var(--muted); font-size: .97rem; line-height: 1.45; }
.ae-dest__more { margin-top: auto; padding-top: 10px; color: var(--red); font-weight: 700; font-size: .95rem; }
.ae-dest__more::after { content: " \2192"; }

/* Story card */
.ae-story { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "quote quote" "photo who"; gap: 20px 14px; align-content: space-between; padding: 28px 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); position: relative; }
.ae-story::before { content: "\201C"; position: absolute; left: 22px; top: 8px; font-size: 4.5rem; line-height: 1; color: var(--red-100); font-family: Georgia, serif; }
.ae-story__photo { grid-area: photo; margin: 0; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--red-50); display: grid; place-items: center; }
.ae-story__photo img { width: 100%; height: 100%; object-fit: cover; }
.ae-story__photo span { font-size: 1.4rem; font-weight: 700; color: var(--red); }
.ae-story__quote { grid-area: quote; margin: 22px 0 0; font-size: 1.12rem; font-weight: 500; line-height: 1.55; color: var(--ink-2); position: relative; }
.ae-story__quote p { margin: 0; }
.ae-story__quote p::before { content: "“"; } .ae-story__quote p::after { content: "”"; }
.ae-story__who { grid-area: who; align-self: center; margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.4; }
.ae-story__who a { color: var(--ink); text-decoration: none; }
.ae-story__who .ae-story__meta { display: block; }
.ae-story--result { display: flex; flex-direction: column; gap: 0; padding: 22px 22px 20px; border-top: 4px solid var(--red); }
.ae-story--result::before { content: none; }
.ae-story__result { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .82rem; font-weight: 700; color: var(--red-700); letter-spacing: .01em; }
.ae-story__tick { width: 18px; height: 18px; border-radius: 50%; background: var(--red); flex: none; position: relative; }
.ae-story__tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ae-story__course { margin: 0 0 4px; font-size: 1.14rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ae-story__course a { color: var(--ink); text-decoration: none; }
.ae-story__course a:hover { color: var(--red); }
.ae-story__uni { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.ae-story__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.ae-story__tags li { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.ae-story__person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.ae-story--result .ae-story__photo { width: 42px; height: 42px; }
.ae-story--result .ae-story__photo span { font-size: 1.1rem; }
.ae-story--result .ae-story__who strong { color: var(--ink); text-transform: capitalize; }
.ae-archive .ae-story--result, .ae-grid .ae-story--result { height: 100%; }

/* Event card */
.ae-event { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 0 18px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.ae-event__media { grid-column: 1 / -1; display: block; margin: 0 -18px; aspect-ratio: 16 / 8; overflow: hidden; background: var(--soft); }
.ae-event__media img { width: 100%; height: 100%; object-fit: cover; }
.ae-event__date { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--red-50); color: var(--red-700); border-radius: var(--r-s); font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; padding: 8px 4px; align-self: start; }
.ae-event__date span { font-size: 1.9rem; font-weight: 700; color: var(--red); line-height: 1; }
.ae-event__title { font-size: 1.12rem; margin: 0 0 4px; }
.ae-event__title a { color: var(--ink); text-decoration: none; }
.ae-event__title a:hover { text-decoration: underline; color: var(--red); }
.ae-event__meta { margin: 0 0 6px; font-size: .93rem; color: var(--muted); }

/* Post card */
.ae-post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: box-shadow .2s; }
.ae-post:hover { box-shadow: var(--shadow); }
.ae-post__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.ae-post__image img { width: 100%; height: 100%; object-fit: cover; }
.ae-post__date { margin: 16px 20px 4px; font-size: .88rem; color: var(--muted); }
.ae-post__title { margin: 0 20px 8px; font-size: 1.18rem; }
.ae-post__title a { color: var(--ink); text-decoration: none; }
.ae-post__title a:hover { color: var(--red); text-decoration: underline; }
.ae-post__excerpt { margin: 0 20px 12px; color: var(--muted); font-size: .97rem; }
.ae-post__more { margin: auto 20px 20px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.ae-post__more::after { content: " \2192"; }

/* Office card */
.ae-office { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.ae-office__name { font-size: 1.18rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ae-office__name a { color: var(--ink); text-decoration: none; }
.ae-office p, .ae-office p a { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; }
.ae-office .ae-icon { color: var(--red); margin-top: 3px; }

/* ---------- Page & block layout ---------- */
.ae-blocks > * { max-width: var(--text); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.ae-blocks > .alignwide, .ae-blocks > .ae-block { max-width: var(--wrap); }
.ae-blocks > .alignfull { max-width: none; padding-inline: 0; box-sizing: border-box; }
.ae-page { padding-block: 40px 64px; }
.ae-prose p { max-width: 68ch; }
.ae-page { --text: 720px; }
.ae-page > ul, .ae-page > ol { padding-left: calc(var(--gutter) + 1.3em); }
.ae-page > ul li, .ae-page > ol li { margin-bottom: .4em; }
.ae-page > h2 { margin-top: 1.8em; margin-bottom: .5em; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
.ae-article__body { --text: 680px; }
.ae-article__body > ul, .ae-article__body > ol { padding-left: calc(var(--gutter) + 1.3em); }
.ae-article__body > ul li, .ae-article__body > ol li { margin-bottom: .35em; }
.ae-article__body > h2 { margin-top: 1.6em; }
.ae-block { margin-block: var(--space); }
.ae-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ae-block__title { margin: 0; }

/* ---------- Homepage: hero ---------- */
.ae-hero2.alignfull { position: relative; margin: 0; padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(32px, 4vw, 56px); background: linear-gradient(180deg, #FFF6F6 0%, #FFFFFF 78%); overflow: hidden; }
.ae-hero2::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(216,4,22,.10), transparent 70%); pointer-events: none; }
.ae-hero2__inner { position: relative; max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ae-hero2__title { font-size: clamp(2.4rem, 3.4vw + 1.1rem, 4rem); line-height: 1.04; letter-spacing: -0.028em; font-weight: 800; margin-bottom: 20px; max-width: 14ch; }
.ae-hero2__lead { font-size: clamp(1.1rem, .4vw + 1rem, 1.25rem); color: var(--muted); max-width: 50ch; margin-bottom: 28px; }
.ae-hero2__search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow); }
.ae-hero2__search .ae-icon { color: var(--muted); }
.ae-hero2__search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); }
.ae-hero2__search input:focus { outline: none; }
.ae-hero2__search:focus-within { border-color: var(--red); }
.ae-hero2__search .ae-btn { min-height: 46px; }
.ae-hero2__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.ae-hero2__popular a { color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.ae-hero2__popular a:hover { color: var(--red); border-color: var(--red); }
.ae-hero2__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ae-hero2__media { position: relative; min-height: 520px; }
.ae-hero2__flight { position: absolute; left: -16%; top: -6%; width: 78%; color: var(--red); z-index: 0; }
.ae-hero2__photo { position: absolute; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--soft); box-shadow: 0 24px 48px -24px rgba(17,19,24,.45); z-index: 1; }
.ae-hero2__photo img { width: 100%; height: 100%; object-fit: cover; }
.ae-hero2__photo--a { left: 0; top: 15%; width: 52%; aspect-ratio: 3 / 4; }
.ae-hero2__photo--b { right: 0; top: 0; width: 44%; aspect-ratio: 4 / 5; }
.ae-hero2__photo--c { right: 8%; bottom: 0; width: 40%; aspect-ratio: 1; border: 6px solid var(--white); }
.ae-hero2__badge { position: absolute; left: 6%; bottom: 6%; z-index: 2; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; background: var(--white); border-radius: var(--pill); font-weight: 700; font-size: .98rem; box-shadow: var(--shadow); }
.ae-hero2__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--red-100); }

/* ---------- Homepage: why us ---------- */
.ae-why { text-align: center; }
.ae-hero2 + .ae-why { margin-top: clamp(32px, 4vw, 56px); }
.ae-why__title { margin-bottom: 36px; }
.ae-why__grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: 22px; align-items: center; text-align: left; }
.ae-why__col { display: grid; gap: 22px; }
.ae-why__card { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.ae-why__card h3 { font-size: 1.25rem; margin: 14px 0 6px; }
.ae-why__card p { margin: 0; color: var(--muted); font-size: 1rem; }
.ae-why__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red-50); color: var(--red); }
.ae-why__photo { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 170px 170px var(--r-l) var(--r-l); overflow: hidden; background: var(--red); }
.ae-why__photo img { width: 100%; height: 100%; object-fit: cover; }
.ae-why__cta { margin: 32px 0 0; }

/* ---------- Homepage: destinations ---------- */
.ae-dests--split.alignfull { background: var(--soft); padding: clamp(56px, 7vw, 96px) var(--gutter); margin-block: var(--space); }
.ae-dests__inner { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ae-dests__intro h2 { font-size: clamp(2rem, 1.8vw + 1.2rem, 2.8rem); line-height: 1.08; }
.ae-dests__intro p { color: var(--muted); font-size: 1.08rem; margin-bottom: 24px; }
.ae-dests__intro .ae-btn { margin-right: 16px; margin-bottom: 10px; }
.ae-dests__rail { min-width: 0; }
.ae-dests__railhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ae-dests__title { font-size: 1.25rem; margin: 0; }
.ae-rail-nav { display: flex; gap: 8px; }
.ae-rail-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.ae-rail-btn:hover { border-color: var(--red); color: var(--red); }
.ae-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 44px) / 3)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
.ae-rail::-webkit-scrollbar { display: none; }
.ae-rail > * { scroll-snap-align: start; }
.ae-rail--4 { grid-auto-columns: minmax(260px, calc((100% - 66px) / 4)); }
.ae-rail--3 { grid-auto-columns: minmax(280px, calc((100% - 44px) / 3)); }
.ae-railwrap .ae-block__head { align-items: center; }
.ae-railwrap .ae-rail-nav { align-items: center; gap: 10px; }
.ae-railwrap .ae-rail-nav .ae-link-arrow { margin-right: 10px; }
.ae-rail .ae-uni, .ae-rail .ae-story { height: 100%; }

/* ---------- Homepage: subjects ---------- */
.ae-subjects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ae-subject { display: flex; flex-direction: column; gap: 10px; min-height: 160px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ae-subject:hover { color: var(--ink); border-color: var(--red); box-shadow: var(--shadow); }
.ae-subject__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-s); background: var(--red-50); color: var(--red); }
.ae-subject__name { font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.ae-subject__more { margin-top: auto; color: var(--red); font-weight: 700; font-size: .92rem; }
.ae-subject__more::after { content: " \2192"; }
.ae-subjects__feature { position: relative; grid-column: span 2; display: flex; align-items: flex-end; min-height: 160px; border-radius: var(--r-m); overflow: hidden; background: var(--night); color: var(--white); text-decoration: none; isolation: isolate; }
.ae-subjects__feature:hover { color: var(--white); }
.ae-subjects__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ae-subjects__feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,27,.88), rgba(20,22,27,.25)); }
.ae-subjects__feature-text { padding: 22px; max-width: 34ch; font-size: 1rem; line-height: 1.45; }
.ae-subjects__feature-text strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }

/* ---------- Homepage: journey (a real sequence) ---------- */
.ae-journey.ae-journey { max-width: var(--wrap); margin-block: var(--space); }
.ae-journey.ae-journey > * { max-width: none; margin-inline: 0; }
.ae-steps__list { counter-reset: step; list-style: none; margin: 32px 0 0 !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; position: relative; }
.ae-steps__list li { counter-increment: step; position: relative; padding: 28px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--muted); }
.ae-steps__list li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--red); margin-bottom: 18px; letter-spacing: -0.03em; }
.ae-steps__list li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -23px; width: 24px; border-top: 2px dashed #F3A6AD; }
.ae-steps__list strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }

/* ---------- Homepage: FAQ ---------- */
.ae-faq.ae-faq { max-width: var(--wrap); margin-block: var(--space); display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.ae-faq.ae-faq > * { max-width: none !important; width: 100%; margin: 0 !important; padding: 0; }
.ae-faq__intro p { color: var(--muted); font-size: 1.08rem; }
.wp-block-details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.wp-block-details:first-child { border-top: 1px solid var(--line); }
.wp-block-details summary { cursor: pointer; padding: 18px 44px 18px 0; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.wp-block-details[open] summary::after { content: "\2013"; background: var(--red); border-color: var(--red); color: var(--white); }
.wp-block-details > :not(summary) { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.ae-cta-band.alignfull { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #E4E6EA; padding: clamp(64px, 9vw, 120px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); margin-block: var(--space) 0; text-align: left; }
.ae-cta-band.alignfull::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ae-photo-cta, none) center / cover no-repeat; }
.ae-cta-band.alignfull::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,27,.94) 0%, rgba(20,22,27,.72) 55%, rgba(20,22,27,.25) 100%); }
.ae-cta-band > * { max-width: 560px !important; margin-left: 0 !important; padding: 0 !important; }
.ae-cta-band h2 { color: var(--white); font-size: clamp(2rem, 2vw + 1.2rem, 3rem); margin-bottom: 10px; }
.ae-cta-band p { font-size: 1.15rem; }

/* Course-search box (when placed on other pages) */
.ae-quicksearch { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.ae-quicksearch__route { display: none; }
.ae-quicksearch__title { margin: 20px 22px 0; font-weight: 700; font-size: 1.15rem; }
.ae-quicksearch__row { display: grid; gap: 4px; padding: 18px 22px 22px; }
.ae-quicksearch__label { font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.ae-quicksearch__label:first-child { margin-top: 0; }
.ae-quicksearch input, .ae-quicksearch select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-s); font: inherit; background: var(--soft); color: var(--ink); }
.ae-quicksearch input:focus, .ae-quicksearch select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.ae-quicksearch .ae-btn { margin-top: 14px; width: 100%; min-height: 52px; font-size: 1.05rem; }

/* Legacy (v1 homepage) */
.ae-trust { margin-block: 0 !important; padding-block: 28px; border-bottom: 1px solid var(--line); }
.ae-trust .wp-block-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.ae-stat { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.35; }
.ae-stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--red); }
.ae-steps.ae-steps { max-width: var(--wrap); margin-block: var(--space); }
.ae-steps.ae-steps > * { max-width: none; margin-inline: 0; }

/* ---------- Finder ---------- */
.ae-finder { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; padding-block: 32px 64px; align-items: start; }
.ae-filters { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.admin-bar .ae-filters { top: 128px; }
.ae-filters__toggle { display: none; }
.ae-filters__form { padding: 20px; display: grid; gap: 14px; }
.ae-filter label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 5px; }
.ae-filter input[type=search], .ae-filter select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); font: inherit; font-size: .98rem; background: var(--soft); color: var(--ink); }
.ae-filter input:focus, .ae-filter select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); background: var(--white); }
.ae-filter--checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: .96rem; }
.ae-filter--checks input { width: 18px; height: 18px; accent-color: var(--red); }
.ae-filters__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.js .ae-filters__actions .ae-btn--primary { display: none; }
.js .ae-filters__actions .ae-btn--primary:only-child { display: inline-flex; }
.ae-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ae-results-head__count { margin: 0; font-size: 1.08rem; }
.ae-sort { display: flex; align-items: center; gap: 8px; font-size: .94rem; }
.ae-sort select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-s); font: inherit; background: var(--white); }
.ae-chips--active { margin-bottom: 16px; }
.ae-emptybox { background: var(--white); border: 1px dashed #CDD1D8; border-radius: var(--r-m); padding: 32px; }
.ae-emptybox h2 { font-size: 1.4rem; }
.ae-emptybox .ae-chips { margin-bottom: 16px; }
.ae-empty { color: var(--muted); }

/* Pagination */
.ae-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 28px 0 0; padding: 0; }
.ae-pagination a, .ae-pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 700; }
.ae-pagination a:hover { border-color: var(--red); color: var(--red); }
.ae-pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }
.ae-pagination .dots { border: 0; background: none; }

/* ---------- Detail pages ---------- */
.ae-detail__head { background: var(--soft); padding-block: 26px 36px; border-bottom: 1px solid var(--line); }
.ae-detail__kicker { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 6px; font-weight: 700; color: var(--muted); }
.ae-detail__kicker a { color: var(--red); }
.ae-detail__title { margin-bottom: 8px; }
.ae-detail__lead { font-size: 1.18rem; max-width: 60ch; color: var(--muted); }
.ae-detail__brand { display: flex; gap: 18px; align-items: center; }
.ae-detail__logo { flex: none; width: 96px; height: 96px; background: var(--white); border-radius: var(--r-m); display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); }
.ae-detail__logo img { max-height: 100%; width: auto; object-fit: contain; }
.ae-detail__cover { margin-top: 28px; }
.ae-detail__cover img { border-radius: var(--r-l); width: 100%; max-height: 440px; object-fit: cover; }
.ae-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 44px; padding-block: 36px 72px; align-items: start; }
.ae-detail__side { position: sticky; top: 100px; display: grid; gap: 12px; }
.admin-bar .ae-detail__side { top: 132px; }
.ae-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-weight: 700; text-decoration: none; }
.ae-back:hover span { text-decoration: underline; }
.ae-prose { margin-top: 32px; }
.ae-prose h2 { font-size: 1.5rem; }
.ae-note { margin-top: 32px; font-size: .93rem; color: var(--muted); }
.ae-callout { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 24px 0 0; padding: 16px 20px; background: var(--red-50); border-left: 4px solid var(--red); border-radius: var(--r-s); }
.ae-sidelink { display: block; padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--white); font-weight: 700; text-decoration: none; }
.ae-sidelink:hover { border-color: var(--red); }

.ae-facts { margin: 0; display: grid; gap: 12px; }
.ae-facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--soft); }
.ae-facts dt { font-weight: 700; color: var(--muted); }
.ae-facts dd { margin: 0; }
.ae-facts--strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.ae-facts--strip > div { display: block; padding: 14px 18px; border: 0; border-right: 1px solid var(--soft); border-bottom: 1px solid var(--soft); }
.ae-facts--strip dt { font-size: .86rem; font-weight: 600; }
.ae-facts--strip dd { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }

.ae-consult { position: relative; overflow: hidden; background: var(--night); color: #D5D8DE; border-radius: var(--r-l); padding: 26px; }
.ae-consult::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216,4,22,.45), transparent); }
.ae-consult > * { position: relative; }
.ae-consult__title { color: var(--white); font-size: 1.4rem; }
.ae-consult__alt { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.ae-consult__alt a { display: inline-flex; gap: 8px; align-items: center; color: var(--white); font-weight: 600; text-decoration: none; }
.ae-consult__alt a:hover { text-decoration: underline; }
.ae-article .ae-consult { margin-block: 40px 16px; }

.ae-map { position: relative; aspect-ratio: 16 / 10; margin-top: 24px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.ae-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Destination hero */
.ae-dest-hero { position: relative; background: var(--night); color: var(--white); padding-block: 32px 56px; isolation: isolate; overflow: hidden; }
.ae-dest-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ae-dest-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,27,.92), rgba(20,22,27,.45)); }
.ae-dest-hero .ae-crumbs ol, .ae-dest-hero .ae-crumbs a { color: #D5D8DE; }
.ae-dest-hero h1 { color: var(--white); }
.ae-dest-hero .ae-detail__lead { color: #E4E6EA; }
.ae-dest-hero__flag { font-size: 3rem; margin: 0; line-height: 1; }
.ae-dest-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Articles */
.ae-article__head { padding-block: 36px 8px; }
.ae-article__title { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }
.ae-article__meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.ae-article__image img { border-radius: var(--r-l); width: 100%; max-height: 520px; object-fit: cover; margin-block: 16px; }
.ae-article__body { padding-block: 16px 8px; font-size: 1.12rem; line-height: 1.75; }
.ae-article__body img { border-radius: var(--r-m); }
.ae-story-page__head { padding-block: 28px; }
.ae-story-page__intro { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.ae-story-page__photo { margin: 0; }
.ae-story-page__photo img { border-radius: var(--r-l); }
.ae-story-page__quote { margin: 0 0 20px; font-size: 1.45rem; font-weight: 500; line-height: 1.4; border-left: 4px solid var(--red); padding-left: 18px; }
.ae-video { margin-block: 16px; }
.ae-video iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--r-m); }

/* ---------- Forms ---------- */
.ae-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 4vw, 36px); margin-block: 24px; box-shadow: var(--shadow); }
.ae-form__title { font-size: 1.45rem; }
.ae-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ae-form__field--wide { grid-column: 1 / -1; }
.ae-form__field label { display: block; font-weight: 700; font-size: .96rem; margin-bottom: 6px; }
.ae-req { color: var(--red); }
.ae-form input[type=text], .ae-form input[type=tel], .ae-form input[type=email], .ae-form select, .ae-form textarea {
	width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #C9CDD4; border-radius: var(--r-s); font: inherit; background: var(--white); color: var(--ink);
}
.ae-form textarea { min-height: 120px; resize: vertical; }
.ae-form input:focus, .ae-form select:focus, .ae-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); border-width: 2px; }
.ae-form__error { color: var(--danger); font-size: .92rem; font-weight: 700; margin: 6px 0 0; }
.ae-form__errors { background: #FDECEC; border: 1px solid #F3B9B9; border-left: 4px solid var(--danger); border-radius: var(--r-s); padding: 14px 18px; margin-bottom: 20px; }
.ae-form__errors ul { margin: 8px 0 0; padding-left: 20px; }
.ae-form__errors a { color: var(--danger); }
.ae-form__context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; margin-bottom: 20px; background: var(--red-50); border-radius: var(--r-s); border-left: 4px solid var(--red); }
.ae-form__context-label { width: 100%; font-size: .86rem; color: var(--muted); }
.ae-form__context strong { font-size: 1.05rem; }
.ae-form__context-remove { font-size: .9rem; }
.ae-form__consent { margin: 20px 0; }
.ae-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.ae-form__consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.ae-form__note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.ae-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ae-thanks { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px; margin-block: 24px; box-shadow: var(--shadow); }
.ae-thanks__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 1.8rem; font-weight: 700; margin-bottom: 14px; }
.ae-thanks__ref { font-size: 1.18rem; }
.ae-thanks__ref strong { letter-spacing: .02em; background: var(--red-50); color: var(--red-700); padding: 2px 10px; border-radius: var(--r-s); }
.ae-search-inline { display: flex; gap: 8px; max-width: 560px; margin-top: 16px; }
.ae-search-inline input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--pill); font: inherit; }

/* ---------- Footer ---------- */
.ae-footer { background: var(--night); color: #BFC4CC; margin-top: 0; border-top: 4px solid var(--red); }
.ae-footer a { color: #E4E6EA; text-decoration: none; }
.ae-footer a:hover { color: var(--white); text-decoration: underline; }
.ae-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 64px 36px; }
.ae-footer .ae-logo img { height: 56px; }
.ae-footer__about p { margin: 18px 0; max-width: 40ch; font-size: .98rem; }
.ae-footer__title { color: var(--white); font-size: 1.08rem; margin-bottom: 14px; }
.ae-footer ul { list-style: none; margin: 0; padding: 0; }
.ae-footer__col li { margin-bottom: 9px; }
.ae-footer__contact { margin-top: 18px !important; }
.ae-footer__contact li { margin-bottom: 7px; }
.ae-footer__contact a { display: inline-flex; gap: 8px; align-items: center; }
.ae-footer__offices li { margin-bottom: 12px; }
.ae-footer__offices span { display: block; font-size: .9rem; color: #8F96A1; }
.ae-social { display: flex; gap: 8px; margin-top: 16px !important; }
.ae-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--night-2); border: 1px solid #2E323B; }
.ae-social a:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.ae-footer__base { border-top: 1px solid #2A2E36; padding-block: 20px 26px; font-size: .9rem; color: #8F96A1; }
.ae-footer__base p { margin: 0; }

/* Mobile action bar */
.ae-actionbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.ae-nav { display: none; }
	.ae-header__menu { display: inline-grid; }
	.ae-footer__grid { grid-template-columns: 1fr 1fr; }
	.ae-subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ae-subjects__feature { grid-column: span 3; }
	.ae-why__grid { grid-template-columns: 1fr 1fr; }
	.ae-why__photo { grid-column: 1 / -1; grid-row: 1; max-width: 340px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 3; border-radius: var(--r-l); }
	.ae-dests__inner { grid-template-columns: 1fr; }
	.ae-rail, .ae-rail--4, .ae-rail--3 { grid-auto-columns: minmax(240px, calc((100% - 44px) / 2.4)); }
}
@media (max-width: 900px) {
	.ae-topbar__nav { display: none; }
	.ae-header__inner { min-height: 64px; gap: 8px; }
	.ae-logo img { height: 42px; }
	.ae-header__cta { display: none; }
	.ae-hero2__inner { grid-template-columns: 1fr; }
	.ae-hero2__title { max-width: none; }
	.ae-hero2__media { min-height: 0; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; margin-inline: auto; }
	.ae-finder { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
	.ae-filters { position: static; }
	.ae-filters__toggle { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
	.ae-filters__toggle::-webkit-details-marker { display: none; }
	.ae-filters[open] .ae-filters__toggle { border-bottom: 1px solid var(--line); }
	.ae-detail__grid { grid-template-columns: 1fr; gap: 24px; }
	.ae-detail__side { position: static; }
	.ae-story-page__intro { grid-template-columns: 1fr; }
	.ae-story-page__photo { max-width: 220px; }
	.ae-trust .wp-block-columns { grid-template-columns: 1fr; gap: 12px; }
	.ae-faq.ae-faq { grid-template-columns: 1fr; }
	.ae-steps__list li::after { display: none; }

	body { padding-bottom: 68px; }
	.ae-actionbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -12px rgba(17,19,24,.25); }
	.ae-actionbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 60px; justify-content: center; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--ink); }
	.ae-actionbar a.is-primary { background: var(--red); color: var(--white); }
}
@media (max-width: 640px) {
	h1 { font-size: 2.1rem; }
	.ae-hero2__title { font-size: 2.35rem; }
	.ae-hero2__search { padding-left: 14px; }
	.ae-hero2__search .ae-btn { padding-inline: 16px; }
	.ae-hero2__actions .ae-btn { flex: 1 1 100%; }
	.ae-hero2__badge { font-size: .85rem; padding: 9px 14px; left: 2%; }
	.ae-form__grid { grid-template-columns: 1fr; }
	.ae-ticket { grid-template-columns: 1fr; }
	.ae-ticket__stub { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-m) var(--r-m); }
	.ae-facts > div { grid-template-columns: 1fr; gap: 2px; }
	.ae-footer__grid { grid-template-columns: 1fr; }
	.ae-grid--dest { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ae-subjects { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ae-subjects__feature { grid-column: span 2; }
	.ae-subject { min-height: 140px; padding: 16px; }
	.ae-why__grid { grid-template-columns: 1fr; }
	.ae-why__photo { grid-column: auto; }
	.ae-rail, .ae-rail--4, .ae-rail--3 { grid-auto-columns: 84%; }
	.ae-dest__name { font-size: 1.12rem; }
	.admin-bar .ae-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.ae-topbar, .ae-header, .ae-footer, .ae-actionbar, .ae-consult, .ae-filters { display: none !important; }
}

/* ---------- Floating contact menu and assistant ---------- */
.ae-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.ae-fab > * { pointer-events: auto; }
.ae-fab__panel[hidden], .ae-fab__hint[hidden] { display: none !important; }
.ae-fab__buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.ae-fab__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; box-shadow: 0 10px 26px -8px rgba(17,19,24,.45); transition: transform .18s ease, box-shadow .18s ease; }
.ae-fab__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(17,19,24,.5); }
.ae-fab__btn:focus-visible { outline: 3px solid var(--red-100); outline-offset: 3px; }
.ae-fab__btn.is-contact { background: linear-gradient(145deg, #F0233A, var(--red) 45%, var(--red-700)); }
.ae-fab__btn.is-bot { background: var(--night); }
.ae-fab__btn .ae-fab__shut { display: none; }
.ae-fab__btn[aria-expanded="true"] .ae-fab__open { display: none; }
.ae-fab__btn[aria-expanded="true"] .ae-fab__shut { display: grid; }
.ae-fab__btn svg { display: block; }
.ae-fab__hint { position: absolute; right: 74px; bottom: 14px; white-space: nowrap; background: var(--white); color: var(--ink); font-weight: 700; font-size: .9rem; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(17,19,24,.35); cursor: pointer; }
.ae-fab__hint::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: inherit; transform: translateY(-50%) rotate(45deg); }

.ae-fab__panel { transform-origin: bottom right; animation: ae-pop .18s ease-out; }
@keyframes ae-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.ae-contact { width: 290px; max-width: calc(100vw - 28px); box-sizing: border-box; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #23262E 0%, #3A1016 55%, var(--red-700) 100%); box-shadow: 0 24px 50px -18px rgba(17,19,24,.55); display: grid; gap: 10px; }
.ae-contact__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.08); transition: background .15s ease; }
.ae-contact__item:hover, .ae-contact__item:focus-visible { background: rgba(255,255,255,.22); color: #fff; }
.ae-contact__item > span:last-child { min-width: 0; }
.ae-contact__item strong { display: block; font-size: 1rem; }
.ae-contact__item small { display: block; font-size: .8rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-contact__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.ae-contact__icon.is-call { background: linear-gradient(145deg, #F0233A, var(--red-700)); }
.ae-contact__icon.is-wa { background: #25D366; }
.ae-contact__icon.is-mail { background: linear-gradient(145deg, #FFB547, #F08A00); }

.ae-bot { width: 380px; height: min(600px, calc(100vh - 140px)); display: flex; flex-direction: column; background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: 0 28px 60px -20px rgba(17,19,24,.45), 0 0 0 1px rgba(17,19,24,.06); }
.ae-bot__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; background: var(--night); color: #fff; }
.ae-bot__head strong { display: block; font-size: 1.02rem; }
.ae-bot__head small { display: flex; align-items: center; gap: 6px; font-size: .8rem; opacity: .75; }
.ae-bot__avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.ae-bot__avatar img { width: 30px; height: 30px; }
.ae-bot__dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; display: inline-block; }
.ae-bot__x { margin-left: auto; background: transparent; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ae-bot__x:hover { background: rgba(255,255,255,.12); }
.ae-bot__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ae-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.ae-msg p { margin: 0; }
.ae-msg p + p { margin-top: 8px; }
.ae-msg--bot { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ae-msg--me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ae-msg__link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--red); }
.ae-msg--typing { display: flex; gap: 4px; padding: 14px; }
.ae-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: ae-dot 1s infinite; }
.ae-msg--typing span:nth-child(2) { animation-delay: .15s; } .ae-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ae-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.ae-bchips { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ae-bchip { display: block; text-align: center; padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--red-100); background: var(--white); color: var(--red-700); font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ae-bchip:hover, .ae-bchip:focus-visible { background: var(--red-50); border-color: var(--red); color: var(--red-700); }
.ae-bot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.ae-bot__form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: .95rem; }
.ae-bot__form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.ae-bot__form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.ae-bot__form button:hover { background: var(--red-700); }

@media (max-width: 900px) {
	.ae-fab { right: 14px; bottom: 82px; }
	.ae-fab__btn.is-contact { display: none; } /* the bottom action bar already has Call and WhatsApp */
	.ae-fab__btn { width: 54px; height: 54px; }
	.ae-fab__hint { right: 66px; bottom: 10px; }
}
@media (max-width: 640px) {
	.ae-fab.is-open { inset: 0; right: 0; bottom: 0; align-items: stretch; z-index: 90; }
	.ae-fab.is-open .ae-fab__buttons { display: none; }
	.ae-bot { width: 100%; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ae-fab__panel, .ae-msg--typing span { animation: none; }
	.ae-fab__btn { transition: none; }
}
@media print { .ae-fab { display: none !important; } }

/* Story cards with the student's photo */
.ae-story--result.has-photo { padding-top: 0; border-top: 0; overflow: hidden; }
.ae-story__media { display: block; margin: 0 -22px 18px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); border-bottom: 4px solid var(--red); }
.ae-story__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .35s ease; }
.ae-story--result.has-photo:hover .ae-story__media img { transform: scale(1.03); }
.ae-story--result.has-photo .ae-story__person { padding-top: 14px; }
.ae-story-page__intro:has(.is-poster) { grid-template-columns: minmax(0, 420px) 1fr; }
.ae-story-page__photo.is-poster img { border-radius: var(--r-l); box-shadow: 0 18px 40px -22px rgba(17,19,24,.45); width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .ae-story__media img { transition: none; } }
@media (max-width: 900px) { .ae-story-page__intro:has(.is-poster) { grid-template-columns: 1fr; } .ae-story-page__photo.is-poster { max-width: 460px; } }

/* Policy pages */
.ae-page > .ae-policy-summary { background: var(--red-50); border: 1px solid var(--red-100); border-left: 5px solid var(--red); border-radius: var(--r-m); padding: 22px 28px 10px; margin-block: 8px 28px; box-sizing: border-box; max-width: calc(var(--text) + 2 * var(--gutter)); }
.ae-policy-summary h2 { margin: 0 0 .5em; font-size: 1.25rem; }
.ae-policy-summary ul { padding-left: 1.2em; }
.ae-policy-summary li { margin-bottom: .45em; }
.ae-policy-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ae-policy-table th, .ae-policy-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); }
.ae-policy-table thead th { background: var(--soft); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
.ae-policy-table td:first-child { font-weight: 600; color: var(--ink); width: 45%; }
.ae-page > .ae-policy-table { margin-block: 12px 20px; }
@media (max-width: 640px) { .ae-page > .ae-policy-summary { padding: 18px 18px 6px; margin-inline: var(--gutter); max-width: none; } .ae-policy-table th, .ae-policy-table td { padding: 10px 8px; } }
