/* =========================================================
   TOUR-X – shared stylesheet
   Pages: mooc.html (Design Box)  ·  tot.html (ToT Box)
   Header replicates the MOOC platform header (mooc.tour-x.eu).
   Page-specific parts use modifiers: .hero--mooc / .hero--tot,
   .modules. Footer replicates the MOOC platform footer.
   ========================================================= */

:root {
  --blue: #0e86ad;          /* teal */
  --blue-dark: #0a6788;
  --navy: #102d52;
  --yellow: #f2c200;
  --yellow-dark: #deb000;
  --text: #33415a;
  --muted: #56647a;
  --bg-soft: #eef5fb;
  --card: #f4f8fc;
  --border: #dbe6f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 24px; }

.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 36px; border-radius: 6px; font-weight: 600; font-size: 15px;
  transition: background .2s, color .2s;
}
.btn-primary { background: var(--yellow); color: var(--navy); font-weight: 700; box-shadow: 0 3px 10px rgba(242, 194, 0, .35); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue-dark); background: rgba(255, 255, 255, .8); font-weight: 700; }
.btn-outline:hover { background: var(--blue); color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 600; font-size: 14.5px;
}
.link .ic { transition: transform .2s; }
.link:hover .ic { transform: translateX(3px); }

/* ---------- Header (same as the MOOC platform – mooc.tour-x.eu) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5; color: #1d2125;
}
.header-inner { display: flex; align-items: stretch; height: 70px; padding: 0 16px; }
.header-brand { display: flex; align-items: center; margin-right: 24px; }
.header-brand img { display: block; height: 52px; width: auto; }

.main-nav ul { display: flex; height: 100%; }
.main-nav a {
  display: flex; align-items: center; height: 70px; padding: 0 8px;
  color: #1d2125; transition: background-color .15s;
}
.main-nav a:hover, .main-nav a:focus { background-color: #f8f9fa; }
.main-nav a.active { font-weight: 700; }

.header-user { display: flex; align-items: stretch; margin-left: auto; }
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-btn {
  display: flex; align-items: center; gap: 4px; padding: 6px 12px;
  background: none; border: 0; border-radius: 8px;
  font: inherit; color: #1d2125; cursor: pointer;
}
.lang-btn:hover { background-color: #f8f9fa; }
.lang-ic { width: 20px; height: 14px; margin-right: 2px; }
.lang-caret { width: 10px; height: 10px; margin-left: 2px; }
.lang-menu {
  position: absolute; top: calc(100% - 6px); right: 0; min-width: 240px; padding: 8px 0;
  background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; }
.lang-menu a { position: relative; display: block; padding: 4px 24px 4px 48px; color: #1d2125; white-space: nowrap; }
.lang-menu a:hover { background-color: #e9ecef; }
.lang-menu a[aria-current="true"]::before {
  content: ''; position: absolute; left: 22px; top: 50%; width: 5px; height: 10px;
  border: solid #1d2125; border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg);
}
.header-divider { width: 1px; margin: 8px 4px; background-color: #dee2e6; }
.header-login { display: flex; align-items: center; padding-left: 8px; color: #22b2d0; }
.header-login:hover { text-decoration: underline; color: #1b8ca4; }

.nav-toggle { display: none; align-self: center; margin-right: 8px; background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #1d2125; margin: 4px 0; border-radius: 1px; }

/* =========================================================
   HERO – shared
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e9f4fc 0%, #f7fbfe 100%);
}
.hero h1 {
  font-weight: 800;
  background: linear-gradient(180deg, #13a0c4 0%, #0b5f86 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 span {
  background: linear-gradient(180deg, #f7cf1e, #e0ac00);
  -webkit-background-clip: text; background-clip: text;
}
.hero h2 { font-weight: 700; color: var(--navy); }

/* ---------- HERO – mooc.html (curved photo on the right) ---------- */
.hero--mooc { min-height: 248px; }
.hero--mooc .hero-inner { position: relative; z-index: 2; padding-top: 24px; padding-bottom: 26px; }
.hero--mooc .hero-text { max-width: 700px; }
.hero--mooc h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 18px; }
.hero--mooc h2 { font-size: 20px; margin-bottom: 8px; }
.hero--mooc p { font-size: 15px; color: var(--text); max-width: 690px; }
.hero--mooc p + p { margin-top: 6px; }
.hero--mooc p strong { font-weight: 700; color: var(--navy); }

.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  clip-path: ellipse(92% 150% at 100% 100%);
}
.hero-img {
  position: absolute; inset: 0;
  background: #1b6fd0 center 65% / cover no-repeat;
}
.hero-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(20deg, rgba(10, 80, 110, .75) 0%, rgba(10, 80, 110, .35) 35%, rgba(10, 80, 110, 0) 60%);
}
.hero--mooc .hero-tagline {
  position: absolute; z-index: 2; left: 26%; bottom: 40px;
  color: #fff; max-width: none; font-size: 21px; font-style: italic; font-weight: 500; line-height: 1.12;
  letter-spacing: .5px; transform: rotate(-8deg); transform-origin: left bottom;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.hero-tagline::after {
  content: ''; position: absolute; right: 0; bottom: -4px; width: 48px; height: 4px;
  background: var(--yellow); border-radius: 3px; transform: rotate(-4deg);
}

/* ---------- HERO – tot.html (traveller | text | fading coast photo) ---------- */
.hero-coast {
  position: absolute; top: 0; right: 0; bottom: 0; width: 34%;
  background: #7fb8dc 40% 58% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 25%, #000 50%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 25%, #000 50%);
}
.hero--tot .hero-inner { position: relative; display: flex; align-items: stretch; min-height: 380px; }
.hero-visual { position: relative; flex: 0 0 360px; }
.traveller { position: absolute; right: 0; bottom: 0; width: 322px; height: auto; display: block; }

.script { font-family: 'Caveat', cursive; font-weight: 600; color: var(--navy); }
.script::after { content: ''; display: block; height: 5px; border-radius: 5px; background: var(--yellow); }
.script-left {
  position: absolute; left: -8px; top: 96px; z-index: 2;
  font-size: 24px; line-height: 1.1; transform: rotate(-14deg); transform-origin: left top;
}
.script-left::after { width: 90px; margin: 4px 0 0 20px; transform: rotate(-4deg); }
.script-right {
  position: absolute; right: 36px; top: 24px; z-index: 2;
  font-size: 28px; line-height: 1.05; transform: rotate(-10deg);
  text-shadow: 0 0 8px rgba(255, 255, 255, .9);
}
.script-right::after { width: 84px; margin: 2px 0 0 56px; }

.hero--tot .hero-text { position: relative; z-index: 2; flex: 1; max-width: 610px; padding: 34px 0 30px 40px; }
.hero--tot h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1px; margin-bottom: 10px; }
.hero--tot h2 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.hero--tot p { font-size: 16.5px; color: var(--muted); line-height: 1.4; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  background: #fff; border-radius: 20px; font-size: 13.5px; font-weight: 700; color: var(--navy);
  box-shadow: 0 2px 8px rgba(16, 45, 82, .06);
}
.pills .ic { width: 18px; height: 18px; color: var(--blue); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 14px 0; }
.section-title { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; }
.section-title::after {
  content: ''; display: block; width: 44px; height: 5px; margin-top: 6px;
  border-radius: 5px; background: var(--yellow);
}
.section-lead { color: var(--text); font-size: 15px; margin-top: 2px; }

/* ---------- Guide cards (mooc) ---------- */
.guides .section-title { margin-bottom: 6px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.guide-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border-radius: 6px; padding: 16px 18px 18px;
  transition: box-shadow .2s, transform .2s;
}
.guide-card:hover { box-shadow: 0 8px 22px rgba(16, 45, 82, .1); transform: translateY(-2px); }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 62px; height: 62px; border-radius: 50%; background: var(--blue); color: #fff;
}
.icon-circle .ic { width: 32px; height: 32px; }
.guide-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 6px 0 8px; }
.guide-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }

/* ---------- Module cards (tot) ---------- */
.modules .section-title { margin-bottom: 10px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.module {
  --c: #4f9b4f; --bg1: #e8f3e3; --bg2: #d6ebcc; --btn: #cde6c2;
  position: relative; overflow: hidden; min-height: 170px; padding: 16px 20px 16px;
  border-radius: 8px; background: linear-gradient(135deg, var(--bg1), var(--bg2));
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.module:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 45, 82, .1); }
.m-blue { --c: #2e8fce; --bg1: #e7f3fc; --bg2: #d7ebf9; --btn: #c8e3f7; }
.m-yellow { --c: #e3ab00; --bg1: #fff7dd; --bg2: #fcecb8; --btn: #fbe38b; }
.m-red { --c: #b83248; --bg1: #fdeef0; --bg2: #fbdfe3; --btn: #f8c9d0; }

.m-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.m-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.m-green .m-icon { background: #3d8b3d; color: #cfe9c6; }
.m-yellow .m-icon { background: var(--yellow); color: #3a2a00; }
.m-red .m-icon { color: #9c2438; }
.m-icon .ic { width: 30px; height: 30px; }
.module h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.m-green h3 { color: #1f4d25; }
.m-red h3 { color: #8f1d31; }
.module p { position: relative; z-index: 1; flex: 1; max-width: 190px; font-size: 14.5px; color: var(--muted); }
.m-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 6px 20px; border-radius: 16px; background: var(--btn);
  font-size: 14px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s;
}
.m-btn:hover { background: var(--c); color: #fff; }
.m-art { position: absolute; right: 0; bottom: 0; width: 60%; height: 80%; color: var(--c); pointer-events: none; }

/* ---------- At a glance ---------- */
.glance { background: var(--bg-soft); border-radius: 8px; padding: 8px 16px 16px; }
.glance-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.stat {
  display: flex; align-items: center; gap: 26px; padding: 4px 18px;
  min-height: 60px;
}
.stat + .stat { border-left: 1px solid #c9d6ea; padding-left: 56px; }
.stat-ic { width: 48px; height: 48px; color: var(--blue); flex-shrink: 0; }
.stat strong { display: block; font-size: 25px; font-weight: 700; color: var(--blue); line-height: 1.15; }
.stat span { display: block; color: var(--muted); font-size: 15px; }
.stat small { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
/* text variant (tot): label + description instead of big numbers */
.glance-text .stat strong { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.glance-text .stat span { font-size: 14.5px; }
.glance-text .stat-ic { width: 42px; height: 42px; }
.glance-text .stat { gap: 20px; }
.glance-text .stat + .stat { padding-left: 32px; }
.glance-text .stat:last-child span { white-space: nowrap; }

/* ---------- Card row: curricula (mooc) / steps (tot) ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 10px;
}
.section-head > div { flex: 1; }
.section-head .link { margin-bottom: 18px; }
.section-head .section-title::after { margin-bottom: 4px; }
.curr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.curr-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.curr-card:hover { box-shadow: 0 10px 26px rgba(16, 45, 82, .12); transform: translateY(-3px); }
.curr-img { height: 84px; background: #9ab8dc center / cover no-repeat; }
.curr-icon {
  position: absolute; top: 50px; left: 16px;
  width: 56px; height: 56px; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--yellow);
}
.curr-icon .ic { width: 28px; height: 28px; }
.curr-body { display: flex; flex-direction: column; flex: 1; padding: 30px 16px 14px; }
.curr-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 10px; }
.meta { flex: 1; margin-bottom: 10px; }
.meta li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted); margin-bottom: 5px; line-height: 1.35;
}
.meta .ic { width: 16px; height: 16px; color: var(--navy); margin-top: 1px; }

.step { padding-top: 18px; }
.step .step-num {
  margin-left: 16px; width: 48px; height: 48px;
  font-size: 20px; font-weight: 800; box-shadow: 0 0 0 3px var(--yellow);
}
.step .curr-body { padding-top: 14px; }
.step p { flex: 1; font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* ---------- Info boxes: languages + help (mooc) / resources (tot) ---------- */
.info-grid { display: grid; grid-template-columns: 1.52fr 1fr; gap: 18px; }
.info-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border-radius: 8px; padding: 10px 16px; min-height: 48px;
}
.langs .ic-lg { color: var(--navy); }
.langs strong { font-size: 14px; font-weight: 600; color: var(--navy); margin-right: 26px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 4px 12px; border-radius: 20px;
  background: #d9edf5; color: var(--navy); font-size: 12.5px; font-weight: 600;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--yellow); color: var(--navy); }

.help { gap: 10px; }
.q-circle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy);
}
.q-circle .ic { width: 18px; height: 18px; }
.help-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.help-text strong { font-size: 13.5px; color: var(--navy); }
.help-text span { font-size: 12.5px; color: var(--muted); }
.help .link { font-size: 13px; }

.res-title { margin-bottom: 10px; }
.res-grid { grid-template-columns: repeat(3, 1fr); }
.res-grid .info-box { transition: box-shadow .2s, transform .2s; }
.res-grid .info-box:hover { box-shadow: 0 8px 20px rgba(16, 45, 82, .1); transform: translateY(-2px); }
.res-grid .q-circle { width: 42px; height: 42px; background: var(--blue); color: #fff; }
.res-grid .q-circle .ic { width: 22px; height: 22px; }
.res-grid .help-text strong { font-size: 15px; }
.res-grid .help-text span { font-size: 13.5px; }
.dl { width: 22px; height: 22px; color: var(--navy); }
.res-grid .info-box:hover .dl { color: var(--blue); }

/* resource card with more than one file: small download buttons under the title, instead of a single card link */
.res-files { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.res-file {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 10px 4px 14px; border: 1px solid #c9dbe8; border-radius: 16px;
  background: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--navy);
  transition: background .2s, border-color .2s, color .2s;
}
.res-grid .res-file .dl { width: 16px; height: 16px; color: currentColor; }
.res-file:hover, .res-file:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Footer (same as the MOOC platform – mooc.tour-x.eu) ---------- */
.site-footer {
  margin-top: 28px; background: #fff; color: #000; text-align: center;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5;
}
.footer-social { padding: 15px; }
.footer-block { margin-top: 8px; }
.footer-title { font-size: 15px; font-weight: 500; line-height: 1.2; margin-bottom: 8px; }
.footer-block ul { display: flex; justify-content: center; gap: 4px; }
.sn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; color: #fff;
  transition: background-color .15s;
}
.sn svg { width: 16px; height: 16px; }
.sn-round { border-radius: 50%; }
.sn-website { background-color: #22b2d0; }
.sn-website:hover { background-color: #146778; }
.sn-facebook { background-color: #4167b2; }
.sn-facebook:hover { background-color: #263c67; }
.sn-linkedin { background-color: #007bb5; }
.sn-linkedin:hover { background-color: #00364f; }
.sn-instagram { background-color: #8a3ab9; }
.sn-instagram:hover { background-color: #50226b; }

.footer-eu { background-color: #1a92ab; color: #fff; padding: 8px 16px; }
.footer-eu p { margin-bottom: 24px; }
.footer-eu img { display: block; height: 40px; width: auto; margin: 0 auto; }

.footer-license { padding: 15px 0; }
.footer-license img { display: block; width: 323px; max-width: 100%; height: auto; margin: 0 auto; }

/* =========================================================
   temp.html – copy of the MOOC platform home page (pf- = platform)
   ========================================================= */
body.platform {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5; color: #1d2125;
}
.platform .site-footer { margin-top: 0; }
.pf-container { max-width: 85%; margin: 0 auto; padding: 0 15px; }

/* Slideshow */
.pf-slideshow { padding-top: 32px; padding-bottom: 32px; }
.pf-carousel { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1500 / 540; background: #22b2d0; }
.pf-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.pf-slide.active { opacity: 1; }
.pf-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-carousel::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
}
.pf-control {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 15%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.pf-control svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.pf-prev { left: 0; }
.pf-next { right: 0; }
.pf-carousel:hover .pf-control { opacity: .6; }
.pf-carousel .pf-control:hover { opacity: .95; }
.pf-indicators {
  position: absolute; left: 15%; right: 15%; bottom: 15px; z-index: 3;
  display: flex; justify-content: center; gap: 6px; padding: 8px 0;
  background: rgba(20, 20, 20, .85); border-radius: 4px;
}
.pf-indicators button {
  display: block; width: 30px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: #fff; opacity: .5; transition: opacity .6s;
}
.pf-indicators button.active { opacity: 1; }

/* Main area */
.pf-main { background: #f1f6fd; padding: 36px 0 32px; }
.pf-h2 { font-size: 30px; font-weight: 700; line-height: 1.2; color: #1d2125; margin-bottom: 20px; }
.pf-h2--center { text-align: center; }

/* New banners → mooc.html / tot.html */
.pf-banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; padding: 0 16px; margin-bottom: 44px; }
.pf-banner {
  position: relative; display: block; min-height: 220px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08); transition: transform .2s, box-shadow .2s;
}
.pf-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); }
.pf-banner-img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  background: center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.pf-banner-body {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; max-width: 62%; min-height: 220px; padding: 22px 26px;
}
.pf-banner-tag {
  padding: 2px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.pf-banner-title { font-size: 25px; font-weight: 700; line-height: 1.15; }
.pf-banner-text { font-size: 15px; line-height: 1.4; }
.pf-banner-meta { font-size: 13px; font-weight: 600; opacity: .85; }
.pf-banner-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 700;
  transition: gap .2s;
}
.pf-banner-btn svg { width: 16px; height: 16px; }
.pf-banner:hover .pf-banner-btn { gap: 12px; }

.pf-banner--mooc { background: #1a92ab; color: #fff; }
.pf-banner--mooc .pf-banner-tag { background: rgba(255, 255, 255, .2); color: #fff; }
.pf-banner--mooc .pf-banner-btn { background: #f2c200; color: #102d52; }

.pf-banner--tot { background: #e6bd00; color: #1d2125; }
.pf-banner--tot .pf-banner-tag { background: #22b2d0; color: #fff; }
.pf-banner--tot .pf-banner-btn { background: #1a92ab; color: #fff; }

/* Course cards */
.pf-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 34px; padding: 0 16px; }
.pf-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #e9ecef; border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
}
.pf-card-img { position: relative; display: block; height: 240px; padding: 8px; background: #e6bd00 center / cover no-repeat; }
.pf-cat {
  display: inline-block; padding: 4px 6px; border-radius: 8px;
  background: #22b2d0; color: #fff; font-size: 13px; line-height: 1;
}
.pf-card-body { min-height: 116px; padding: 13px 13px 16px; font-size: 17px; line-height: 1.45; }
.pf-coursename { display: block; color: #22b2d0; margin-bottom: 1px; }
.pf-coursename:hover { text-decoration: underline; }

/* Course categories */
.pf-categories { position: relative; margin-top: 48px; }
.pf-categories .pf-h2 { text-align: left; margin-bottom: 16px; }
.pf-cat-actions { text-align: right; margin-bottom: 8px; }
.pf-expand { color: #22b2d0; font-size: 17px; }
.pf-expand:hover { text-decoration: underline; }
.pf-cat-tree { padding-left: 22px; }
.pf-cat-tree > li { margin-bottom: 6px; }
.pf-cat-tree > li > a { color: #22b2d0; font-size: 15px; }
.pf-cat-tree a:hover { text-decoration: underline; }
.pf-count { font-size: 12px; color: #1d2125; }
.pf-cat-courses { display: none; padding: 4px 0 6px 22px; }
.pf-cat-tree.expanded .pf-cat-courses { display: block; }
.pf-cat-courses li { font-size: 14px; margin: 3px 0; }
.pf-cat-courses a { color: #1d2125; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .guide-grid, .module-grid { grid-template-columns: repeat(2, 1fr); }
  .curr-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { gap: 18px; }
  .stat + .stat { padding-left: 28px; }

  .hero--mooc .hero-text { max-width: 55%; }

  .hero-visual { flex-basis: 290px; }
  .traveller { width: 270px; }
  .script-left { font-size: 21px; }
  .script-right { display: none; }
  .hero--tot .hero-text { padding-left: 24px; max-width: 540px; }
  .hero--tot h1 { font-size: 38px; }
  .hero-coast { width: 30%; }
}

@media (max-width: 960px) {
  .hero--mooc { min-height: 0; }
  .hero--mooc .hero-text { max-width: none; }
  .hero-media { position: relative; width: 100%; height: 220px; clip-path: none; }
  .hero--mooc .hero-tagline { left: 24px; bottom: 30px; }

  .hero--tot { display: flex; flex-direction: column-reverse; }
  .hero--tot .hero-inner { min-height: 0; }
  .hero-visual { display: none; }
  .hero--tot .hero-text { max-width: none; padding: 28px 0 24px; }
  .hero-coast { position: relative; width: 100%; height: 220px; -webkit-mask-image: none; mask-image: none; }

  .glance-grid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .stat + .stat { border-left: 0; padding-left: 18px; }
  .curr-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }

  .pf-container { max-width: 95%; }
  .pf-banners { grid-template-columns: 1fr; gap: 20px; }
  .pf-course-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .header-brand { margin-right: 0; }
  .header-brand img { height: 42px; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0; display: none;
    background: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; height: auto; }
  .main-nav a { height: auto; padding: 12px 16px; border-top: 1px solid #f1f3f5; }
  .langbutton { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero--mooc h1 { font-size: 28px; }
  .hero--tot h1 { font-size: 34px; }
  .hero-cta .btn { flex: 1; }
  .guide-grid, .module-grid, .curr-grid, .glance-grid { grid-template-columns: 1fr; }
  .guide-card { gap: 16px; padding: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .link { margin-bottom: 0; }
  .langs { flex-wrap: wrap; }
  .chips { gap: 8px; }
  .help { flex-wrap: wrap; }
  .res-files { width: 100%; }
  .res-file { flex: 1; }

  .pf-container { max-width: 100%; }
  .pf-slideshow { padding-top: 16px; padding-bottom: 16px; }
  .pf-h2 { font-size: 24px; }
  .pf-banners, .pf-course-grid { padding: 0; }
  .pf-course-grid { grid-template-columns: 1fr; }
  .pf-banner-img { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .pf-banner-body { max-width: none; }
}
