/* SpainExchange modern layer (2026): loaded after the legacy inline Bootstrap 3 / webslidemenu styles.
   Typography, colours, header, footer and the directory components (breadcrumbs, cards, chips, tiles). */

:root {
	--se-ink: #1c2430;
	--se-ink-soft: #4a5565;
	--se-muted: #6b7686;
	--se-line: #e4e8ee;
	--se-bg: #ffffff;
	--se-card: #ffffff;
	--se-brand: #1f5fc4;
	--se-brand-dark: #174a99;
	--se-brand-soft: #eaf1fc;
	--se-accent: #d9382c;
	--se-gold: #f2b01e;
	--se-radius: 10px;
	--se-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--se-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--se-font); font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--se-ink); background: var(--se-bg); -webkit-font-smoothing: antialiased; }
a, a:visited { color: var(--se-brand); }
a:hover, a:focus { color: var(--se-brand-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(31, 95, 196, .35); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--se-font); color: var(--se-ink); letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 750; margin: 8px 0 14px; color: var(--se-ink); }
h2 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 28px 0 12px; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 650; }
strong, b { font-weight: 650; }
img { max-width: 100%; height: auto; }
.guide-text-content, .content { font-size: 16px !important; line-height: 1.65; color: var(--se-ink); }
.guide-text-content p, .content p { color: var(--se-ink); }

/* main column as a white sheet on the grey page */
.wrapper { width: auto; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
#main { min-height: 500px; padding: 18px 0 32px; }
#main > .row > aside { padding-right: 20px !important; }
#main > .row > aside .country_guide { background: var(--se-card); border-radius: var(--se-radius); border: 1px solid var(--se-line); padding: 10px; margin-bottom: 14px; }
.school-photos-th { border-radius: 8px; width: 100%; }

/* ---------- header ---------- */
.headtoppart { background: #fff; border-bottom: 1px solid var(--se-line); height: 36px; }
.headtoppart .headertopleft .address, .headtoppart .headertopleft .address a { font-size: 13px; color: var(--se-ink-soft); }
.headtoppart .headertopright a { color: var(--se-muted); }
@media (min-width: 992px) {
	.wsmainfull { background: #fff !important; height: 66px; box-shadow: 0 1px 0 var(--se-line), 0 4px 14px rgba(16, 24, 40, .04); position: relative; z-index: 50; }
	.wsmenu > .wsmenu-list > li > a { color: var(--se-ink) !important; font-weight: 600; font-size: 15px; border-right: 0 !important; padding-top: 8px; padding-bottom: 8px; }
	.wsmenu > .wsmenu-list > li > a:hover, .wsmenu > .wsmenu-list > li:hover > a { color: var(--se-brand) !important; background: transparent !important; text-decoration: none; }
	.wsmenu > .wsmenu-list > li > a .wsarrow:after { border-top-color: var(--se-muted) !important; }
	.wsmenu > .wsmenu-list > li > ul.sub-menu, .wsmenu > .wsmenu-list > li > .wsmegamenu { border-radius: 0 0 var(--se-radius) var(--se-radius); box-shadow: 0 12px 28px rgba(16, 24, 40, .14); border-top: 2px solid var(--se-brand) !important; }
	.desktoplogo { padding-top: 12px; }
	.desktoplogo img { height: 44px; width: auto; }
}
.wsmobileheader { background: #fff !important; box-shadow: 0 1px 0 var(--se-line) !important; }

/* ---------- breadcrumb ---------- */
.se-breadcrumb ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; color: var(--se-muted); }
.se-breadcrumb li { display: inline-flex; align-items: center; }
.se-breadcrumb li + li:before { content: "\203A"; margin: 0 8px; color: #a7b0bd; font-size: 15px; }
.se-breadcrumb a { color: var(--se-ink-soft); text-decoration: none; }
.se-breadcrumb a:hover { color: var(--se-brand); text-decoration: underline; }
.se-breadcrumb li[aria-current] { color: var(--se-muted); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- lead, sections ---------- */
.se-lead { font-size: 18px; color: var(--se-ink-soft); margin: -4px 0 18px; }
.se-group, .se-links, .se-related, .se-article { margin-top: 26px; }
.se-group > h2, .se-links > h2, .se-related > h2, .se-article > h2, .se-explore h2 { font-size: 19px; margin: 0 0 12px; }
.se-count { display: inline-block; min-width: 26px; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--se-brand-soft); color: var(--se-brand-dark); font-size: 13px; font-weight: 650; vertical-align: 3px; text-align: center; }
.se-more { margin: 8px 0 0; font-weight: 600; }

/* chips: compact link lists */
.se-chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.se-chips li { margin: 0; }
.se-chips a { display: inline-block; padding: 6px 13px; border: 1px solid var(--se-line); border-radius: 999px; background: #fff; color: var(--se-ink); font-size: 14px; line-height: 1.35; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.se-chips a:hover { border-color: var(--se-brand); background: var(--se-brand-soft); color: var(--se-brand-dark); text-decoration: none; }
.se-chips a span { color: var(--se-muted); font-size: 12.5px; margin-left: 3px; }
.se-chips-strong a { font-weight: 600; }

/* A-Z columns */
.se-columns { list-style: none; padding: 0; margin: 14px 0 0; columns: 4 160px; column-gap: 24px; font-size: 14.5px; }
.se-columns li { break-inside: avoid; padding: 3px 0; }

/* tiles: school types */
.se-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.se-tiles a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--se-line); border-radius: var(--se-radius); background: #fff; color: var(--se-ink); text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s; }
.se-tiles a strong { font-size: 16px; }
.se-tiles a span { color: var(--se-muted); font-size: 14px; }
.se-tiles a:hover { border-color: var(--se-brand); box-shadow: 0 6px 18px rgba(31, 95, 196, .12); transform: translateY(-1px); text-decoration: none; }

/* school lists on city pages */
.se-school-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.se-school-list li { padding: 14px 16px; border: 1px solid var(--se-line); border-radius: var(--se-radius); background: #fff; }
.se-school-list li > a { font-weight: 650; font-size: 16px; text-decoration: none; }
.se-school-list li > a:hover { text-decoration: underline; }
.se-school-list p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--se-ink-soft); }

/* result cards (listings) */
.se-cards { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 12px; }
.se-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--se-line); border-radius: var(--se-radius); background: #fff; transition: box-shadow .15s, border-color .15s; position: relative; }
.se-card:hover { border-color: #c9d4e3; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.se-card.is-featured { border-color: #f3d58d; background: linear-gradient(0deg, #fff, #fffaf0); }
.se-card-logo { flex: 0 0 auto; width: 88px; height: 88px; object-fit: contain; border: 1px solid var(--se-line); border-radius: 8px; background: #fff; padding: 4px; }
.se-card-body { min-width: 0; }
.se-card h3 { margin: 0 0 2px; font-size: 18px; }
.se-card h3 a { color: var(--se-ink); text-decoration: none; }
.se-card h3 a:after { content: ""; position: absolute; inset: 0; } /* whole card clickable, one link */
.se-card:hover h3 a { color: var(--se-brand); }
.se-card-place { margin: 0 0 6px; font-size: 14px; color: var(--se-muted); font-weight: 500; }
.se-card-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--se-ink-soft); }
.se-card-ad { list-style: none; }

/* pager */
.se-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0; }
.se-pager a, .se-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--se-line); background: #fff; color: var(--se-ink); font-size: 15px; text-decoration: none; }
.se-pager a:hover { border-color: var(--se-brand); color: var(--se-brand); text-decoration: none; }
.se-pager .se-pager-current { background: var(--se-brand); border-color: var(--se-brand); color: #fff; font-weight: 650; }
.se-pager .se-pager-gap { border: 0; background: transparent; min-width: 20px; padding: 0; }

/* ---------- school profile ---------- */
.school-profile h1 { margin-top: 4px; }
.school-profile h1 a { color: var(--se-ink); text-decoration: none; }
.school-profile h1 a:hover { color: var(--se-brand); }
.school-profile > div > div[style*="float:right"] img { border-radius: 10px; }
.school_program_details_hr { background: transparent !important; color: var(--se-ink) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; padding: 18px 0 6px !important; margin: 10px 0 6px !important; border-bottom: 2px solid var(--se-brand-soft); }
.se-explore { margin: 22px 0 8px; padding: 18px 20px; border-radius: var(--se-radius); background: var(--se-brand-soft); }
.se-explore h2 + .se-chips { margin-bottom: 14px; }
.se-explore .se-chips a { border-color: #cfdcf2; }
.se-explore h2:not(:first-child) { margin-top: 6px; }
.se-registers { margin: 0 0 12px; font-size: 14.5px; color: var(--se-ink-soft); }
.se-registers strong { color: var(--se-ink); }
.se-related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.se-related-list li { padding: 12px 14px; border: 1px solid var(--se-line); border-radius: var(--se-radius); background: #fff; display: flex; flex-direction: column; gap: 2px; }
.se-related-list a { font-weight: 650; text-decoration: none; line-height: 1.35; }
.se-related-list a:hover { text-decoration: underline; }
.se-related-list span { font-size: 13.5px; color: var(--se-muted); }

/* legacy blocks */
.one-line-list { border: 1px solid var(--se-line) !important; border-radius: 8px; padding: 9px 14px !important; margin-bottom: 6px !important; font-size: 15px !important; font-weight: 600 !important; background: #fff; }
.col-list-country, .col-list-4a { line-height: 2; }
.video-responsive { border-radius: var(--se-radius); overflow: hidden; }

/* ---------- footer ---------- */
footer.se-footer { background: #121a26; color: #c3cad6; padding: 40px 0 24px; margin-top: 24px; border: 0 !important; font-size: 14.5px; }
.se-footer-grid { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 32px; }
.se-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.se-footer ul { list-style: none; padding: 0; margin: 0; }
.se-footer li { padding: 3px 0; }
.se-footer a, .se-footer a:visited { color: #c3cad6; text-decoration: none; }
.se-footer a:hover { color: #fff; text-decoration: underline; }
.se-footer-bottom { max-width: 1180px; margin: 28px auto 0; padding: 18px 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #8f9aab; }
.se-footer-bottom a, .se-footer-bottom a:visited { color: #8f9aab; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
	body { font-size: 16px; }
	h1 { font-size: 25px; }
	h2 { font-size: 19px; }
	.wrapper { padding: 0 10px; }
	.se-card { padding: 14px; gap: 12px; }
	.se-card-logo { width: 60px; height: 60px; }
	.se-card h3 { font-size: 17px; }
	.se-lead { font-size: 16.5px; }
	.se-breadcrumb li[aria-current] { max-width: 100%; }
}

/* ---------- home ---------- */
.se-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.se-home { clear: both; }
.se-hero { clear: both; background: linear-gradient(135deg, #1f5fc4 0%, #174a99 55%, #12387a 100%); color: #fff; padding: 56px 16px 52px; position: relative; overflow: hidden; }
.se-hero:after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.se-hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.se-hero h1 { color: #fff; font-size: 44px; line-height: 1.1; margin: 0 0 12px; max-width: 18ch; }
.se-hero .se-hero-sub { font-size: 19px; color: #dbe7fb !important; max-width: 60ch; margin: 0 0 24px; }
.se-search { display: flex; gap: 8px; max-width: 640px; background: #fff; padding: 6px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.se-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; padding: 12px 14px; color: var(--se-ink); background: transparent; }
.se-search button { border: 0; border-radius: 8px; background: var(--se-gold); color: #1c2430; font-weight: 700; font-size: 16px; padding: 0 22px; cursor: pointer; }
.se-search button:hover { background: #ffc23a; }
.se-hero-quick { margin: 16px 0 0; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.se-hero-quick span { color: #b9cdf0; }
.se-hero-quick a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); text-decoration: none; }
.se-hero-quick a:hover { border-bottom-color: #fff; color: #fff; }
.se-home-body { max-width: 1180px; margin: 0 auto; padding: 8px 16px 24px; }
.se-home-section { margin-top: 40px; }
.se-home-section > h2 { font-size: 25px; margin: 0 0 16px; }
.se-tiles-lg { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.se-tiles-lg a { padding: 18px 20px; gap: 4px; }
.se-tiles-lg a strong { font-size: 18px; }
.se-tiles-lg a span { color: var(--se-ink-soft); font-size: 15px; }
.se-tiles-lg a em { font-style: normal; color: var(--se-brand); font-weight: 650; font-size: 14px; margin-top: 6px; }
.se-tiles-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.se-city-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.se-city-card { position: relative; display: block; border-radius: var(--se-radius); overflow: hidden; aspect-ratio: 16 / 9; background: #dfe6ef; }
.se-city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.se-city-card:hover img { transform: scale(1.04); }
.se-city-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #e8eef7; font-size: 14px; display: flex; flex-direction: column; }
.se-city-card span strong { color: #fff; font-size: 22px; }
.se-home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.se-related-1col { grid-template-columns: 1fr; }
.se-sponsor { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--se-line); border-radius: var(--se-radius); position: relative; }
.se-sponsor h2 { font-size: 19px; margin: 0 0 6px; }
.se-sponsor img { flex: 0 0 auto; border-radius: 8px; }
.se-sponsor-label { position: absolute; top: 8px; right: 12px; margin: 0; font-size: 12px; color: var(--se-muted); text-transform: uppercase; letter-spacing: .06em; }
.se-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.se-why-grid > div { padding: 18px 20px; border-radius: var(--se-radius); background: var(--se-brand-soft); }
.se-why-grid h3 { margin: 0 0 6px; font-size: 17px; }
.se-why-grid p { margin: 0; font-size: 15px; color: var(--se-ink-soft); }
@media (max-width: 767px) {
	.se-hero { padding: 36px 14px 34px; }
	.se-hero h1 { font-size: 31px; }
	.se-hero-sub { font-size: 16.5px; }
	.se-search input[type=search] { font-size: 16px; padding: 10px; }
	.se-search button { padding: 0 14px; }
	.se-home-cols { grid-template-columns: 1fr; }
	.se-home-section > h2 { font-size: 21px; }
	.se-sponsor { flex-direction: column; }
}

/* study programmes on profiles */
.se-programs { margin: 6px 0 10px; }
.se-program { padding: 14px 0; border-bottom: 1px solid var(--se-line); }
.se-program:last-child { border-bottom: 0; }
.se-program-name { font-size: 17px; margin: 0 0 6px; }
.se-program-text { font-size: 15px; color: var(--se-ink-soft); margin-bottom: 8px; }
.se-program-meta { font-size: 14px; color: var(--se-muted); }
.se-program-meta strong { color: var(--se-ink-soft); font-weight: 600; }

/* profile key facts */
.se-facts { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.se-facts li { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; color: var(--se-ink); }
.se-facts li span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--se-muted); }
.se-facts-cta { margin-left: auto; }
.se-btn { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--se-brand); color: #fff !important; font-weight: 650; font-size: 15px; text-decoration: none !important; }
.se-btn:hover { background: var(--se-brand-dark); }
.se-otherlang { font-size: 14px; margin: 0 0 14px; }
@media (max-width: 767px) { .se-facts-cta { margin-left: 0; width: 100%; } .se-facts-cta .se-btn { display: block; text-align: center; } }

/* legacy list indentation off for the component lists */
ul.se-chips, ul.se-facts, ul.se-tiles, ul.se-cards, ul.se-related-list, ul.se-school-list, ul.se-columns, .se-breadcrumb ol, .se-footer ul { padding-left: 0 !important; margin-left: 0 !important; list-style: none !important; }
ul.se-chips > li, ul.se-facts > li, ul.se-tiles > li, ul.se-cards > li, ul.se-related-list > li, ul.se-school-list > li, ul.se-columns > li { margin-left: 0 !important; list-style: none !important; }
.school-profile, .se-card-body, .se-related-list li { overflow-wrap: anywhere; }
.se-muted { color: var(--se-muted); font-size: .9em; }

/* forms */
#main input[type=text], #main input[type=email], #main input[type=password], #main input[type=search], #main input[type=tel], #main input[type=url], #main select, #main textarea {
	border: 1px solid #cfd6e0; border-radius: 8px; padding: 9px 12px; font-size: 15px; line-height: 1.4; background: #fff; color: var(--se-ink); height: auto; box-shadow: none; max-width: 100%;
}
#main input:focus, #main select:focus, #main textarea:focus { border-color: var(--se-brand); outline: 3px solid rgba(31, 95, 196, .15); }
#main input[type=submit], #main button[type=submit], #main input[type=button] {
	border: 0; border-radius: 8px; background: var(--se-brand); color: #fff; font-weight: 650; font-size: 15px; padding: 11px 22px; cursor: pointer; height: auto; width: auto;
}
#main input[type=submit]:hover, #main button[type=submit]:hover, #main input[type=button]:hover { background: var(--se-brand-dark); }
