@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&family=Raleway:wght@300;400;600;700&display=swap');

:root {
  --mi-red: #D52100;
  --mi-red-dark: #B31C00;
  --mi-text: #000000;
  --mi-text-muted: #717171;
  --mi-white: #ffffff;
  --mi-max-width: 1011px;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  color: var(--mi-text);
  background: #fff;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- Hide core / Olivero leftovers ---- */
.visually-hidden, .skip-link, #toolbar-administration,
.region-breadcrumb, .breadcrumb .breadcrumb__list,
.messages-list, .page-title + .tabs, .tabs, .action-links,
.feed-icons, .node__meta,
.field--name-field-meta-description,
.field--name-field-show-certification-strip,
.field--name-field-show-partner-carousel,
.field--name-field-grid-style,
.field--name-field-display-order,
.field--name-field-featured-on-homepage,
.field--name-field-status-active,
#block-myinteredu-theme-search-form-wide,
#block-myinteredu-theme-search-form-narrow,
#block-myinteredu-theme-account-menu,
#block-myinteredu-theme-breadcrumbs,
#block-myinteredu-theme-main-menu,
#block-myinteredu-theme-powered,
#block-myinteredu-theme-site-branding {
  display: none !important;
}

/* ---- Layout ---- */
.myinteredu-container {
  width: min(var(--mi-max-width), calc(100% - 72px));
  margin: 0 auto;
}

/* ---- Header ---- */
.myinteredu-header {
  background: #fff;
  padding: 10px 0 8px;
}
.myinteredu-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.myinteredu-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.myinteredu-logo {
  width: 160px;
  max-width: 100%;
  display: block;
}

@media (min-width: 1101px) {
  .myinteredu-header__inner {
    width: min(1240px, calc(100% - 40px));
    gap: 24px;
  }

  .myinteredu-logo-link {
    width: clamp(160px, calc(100vw - 802px), 460px);
    height: 160px;
    flex: 0 0 clamp(160px, calc(100vw - 802px), 460px);
  }

  .myinteredu-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
  }
}

/* ---- Navigation ---- */
.myinteredu-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mi-red);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.myinteredu-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.myinteredu-nav-toggle[aria-expanded='true'] .myinteredu-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.myinteredu-nav-toggle[aria-expanded='true'] .myinteredu-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.myinteredu-nav-toggle[aria-expanded='true'] .myinteredu-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.myinteredu-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}
.myinteredu-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.myinteredu-nav__link {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: var(--mi-text-muted);
  font-family: 'Julius Sans One', Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
@media (min-width: 1101px) {
  .myinteredu-nav__list {
    gap: 24px;
  }
  .myinteredu-nav__link {
    font-size: 17px;
    padding-bottom: 9px;
  }
}
.myinteredu-nav__link:hover,
.myinteredu-nav__link.is-active {
  color: var(--mi-red);
}
.myinteredu-nav__link.is-active {
  border-bottom-color: var(--mi-red);
}
.myinteredu-nav__item {
  position: relative;
}
.myinteredu-nav__item--services > .myinteredu-nav__link {
  padding-right: 18px;
}
.myinteredu-nav__item--services > .myinteredu-nav__link::after {
  content: '▾';
  position: absolute;
  top: 50%;
  right: 0;
  font-size: 11px;
  line-height: 1;
  color: currentColor;
  transform: translateY(-58%);
}
.myinteredu-subnav {
  list-style: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 30;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.myinteredu-nav__item--services:hover > .myinteredu-subnav,
.myinteredu-nav__item--services:focus-within > .myinteredu-subnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.myinteredu-subnav__link {
  display: block;
  padding: 8px 18px;
  color: var(--mi-text-muted);
  text-decoration: none;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.myinteredu-subnav__link:hover,
.myinteredu-subnav__link:focus {
  color: var(--mi-red);
  background: rgba(213, 33, 0, 0.05);
}
/* ---- Main Content ---- */
.myinteredu-main {
  min-height: 360px;
  padding: 12px 0 90px;
}

.myinteredu-site-shell--services .myinteredu-main {
  padding-bottom: 42px;
}

.myinteredu-site-shell--services .myinteredu-footer {
  margin-top: 28px;
}

/* ---- Standalone page heroes ---- */
.myinteredu-page-hero {
  width: 100%;
}

.myinteredu-page-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.myinteredu-site-shell--resources .myinteredu-page-hero--resources {
  margin: 0 0 28px;
}

.myinteredu-site-shell--services .myinteredu-page-hero--services,
.myinteredu-site-shell--about .myinteredu-page-hero--about-us,
.myinteredu-page-hero--contact {
  margin: 0 0 28px;
}

.myinteredu-site-shell--russian .myinteredu-page-hero--russian,
.myinteredu-site-shell--turkce .myinteredu-page-hero--turkce {
  margin: 0 0 28px;
}

.myinteredu-page-hero--students-families,
.myinteredu-page-hero--schools,
.myinteredu-page-hero--professionals,
.myinteredu-page-hero--academic-advisory,
.myinteredu-page-hero--international-mobility,
.myinteredu-page-hero--professional-development,
.myinteredu-page-hero--ru-academic-advisory,
.myinteredu-page-hero--ru-international-mobility,
.myinteredu-page-hero--ru-professional-development,
.myinteredu-page-hero--tr-academic-advisory,
.myinteredu-page-hero--tr-international-mobility,
.myinteredu-page-hero--tr-professional-development {
  margin: 0 0 28px;
}

/* Turkish detail pages: use Raleway for headings since Julius Sans One lacks Turkish glyphs */
.myinteredu-site-shell--turkce .myinteredu-main h1,
.myinteredu-site-shell--turkce .myinteredu-main h2 {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.myinteredu-page-hero--home {
  margin: 0 0 24px;
  background: #d86b5c url('../assets/images/bg-texture-red.jpg') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.myinteredu-page-hero--home .myinteredu-page-hero__image {
  display: block;
  width: min(var(--mi-max-width), calc(100% - 72px));
  max-width: var(--mi-max-width);
  height: auto;
  object-fit: contain;
}

.myinteredu-site-shell--resources .myinteredu-page-hero--resources .myinteredu-page-hero__image,
.myinteredu-site-shell--services .myinteredu-page-hero--services .myinteredu-page-hero__image,
.myinteredu-site-shell--about .myinteredu-page-hero--about-us .myinteredu-page-hero__image,
.myinteredu-page-hero--contact .myinteredu-page-hero__image,
.myinteredu-site-shell--russian .myinteredu-page-hero--russian .myinteredu-page-hero__image,
.myinteredu-site-shell--turkce .myinteredu-page-hero--turkce .myinteredu-page-hero__image,
.myinteredu-page-hero--students-families .myinteredu-page-hero__image,
.myinteredu-page-hero--schools .myinteredu-page-hero__image,
.myinteredu-page-hero--professionals .myinteredu-page-hero__image,
.myinteredu-page-hero--academic-advisory .myinteredu-page-hero__image,
.myinteredu-page-hero--international-mobility .myinteredu-page-hero__image,
.myinteredu-page-hero--professional-development .myinteredu-page-hero__image,
.myinteredu-page-hero--ru-academic-advisory .myinteredu-page-hero__image,
.myinteredu-page-hero--ru-international-mobility .myinteredu-page-hero__image,
.myinteredu-page-hero--ru-professional-development .myinteredu-page-hero__image,
.myinteredu-page-hero--tr-academic-advisory .myinteredu-page-hero__image,
.myinteredu-page-hero--tr-international-mobility .myinteredu-page-hero__image,
.myinteredu-page-hero--tr-professional-development .myinteredu-page-hero__image {
  height: clamp(320px, 52vw, 760px);
  object-fit: cover;
}

.myinteredu-site-shell--about .myinteredu-page-hero--about-us .myinteredu-page-hero__image {
  object-position: top center;
}

#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/home/keyvisual.jpg"]),
.myinteredu-site-shell--resources #block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/resources/keyvisual.jpg"]),
.myinteredu-site-shell--services #block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/services/keyvisual.jpg"]),
.myinteredu-site-shell--about #block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/about-us/keyvisual.jpg"]),
.myinteredu-site-shell--contact #block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/contact-us/keyvisual.jpg"]),
.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > p:first-child:has(> img) {
  display: none;
}

/* Hide duplicate legacy keyvisuals on detail pages that use Twig-based heroes */
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/students-families/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/schools/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/professionals/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/academic-advisory/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/international-mobility/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/professional-development/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/ru-academic-advisory/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/ru-international-mobility/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/ru-professional-development/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/tr-academic-advisory/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/tr-international-mobility/keyvisual."]),
#block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/tr-professional-development/keyvisual."]) {
  display: none;
}

.myinteredu-site-shell--resources .myinteredu-main {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 24px;
}

.myinteredu-site-shell--legal .myinteredu-main {
  padding-top: 0;
  padding-bottom: 56px;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-page-title {
  max-width: 949px;
  margin: 0 auto 18px;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-page-title h1,
.myinteredu-site-shell--about #block-myinteredu-theme-page-title h1,
.myinteredu-site-shell--contact #block-myinteredu-theme-page-title h1 {
  text-align: center;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > p,
.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > ul,
.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > ol,
.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > li {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > p:has(> img) {
  margin-bottom: 18px;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > p:has(> br:only-child) {
  display: none;
}

.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > ul,
.myinteredu-site-shell--legal #block-myinteredu-theme-content > article > div > div > ol {
  padding-left: 1.35rem;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.myinteredu-site-shell--resources #block-myinteredu-theme-page-title {
  max-width: 949px;
  margin: 0 auto 18px;
}

.myinteredu-site-shell--resources #block-myinteredu-theme-page-title h1 {
  text-align: center;
}

.myinteredu-site-shell--resources #block-myinteredu-theme-content > article > div > div > p:first-child:has(> img[src*="/myinteredu-source/resources/keyvisual.jpg"]) {
  display: none;
}

.myinteredu-site-shell--resources #block-myinteredu-theme-content > article > div > div > p {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.myinteredu-main h1 {
  font-family: 'Julius Sans One', Arial, sans-serif;
  color: var(--mi-red);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 14px;
}
.myinteredu-main h2,
.myinteredu-main .field--name-field-intro-heading {
  font-family: 'Julius Sans One', Arial, sans-serif;
  color: var(--mi-red);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 10px;
}
.myinteredu-main h3,
.myinteredu-main .field--name-field-heading,
.myinteredu-main .field--name-field-title {
  color: var(--mi-red);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 10px;
}
.myinteredu-main .field--name-field-intro-subheading {
  color: var(--mi-red);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.myinteredu-main .field--name-field-intro-text,
.myinteredu-main .field--name-body,
.myinteredu-main .field--name-field-body,
.myinteredu-main .field--name-field-lead {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.04rem;
}

#block-myinteredu-theme-content > article > div > div:not(:has(.cm_column_wrapper)) > p:not(:first-child),
#block-myinteredu-theme-content > article > div > div:not(:has(.cm_column_wrapper)) > ul,
#block-myinteredu-theme-content > article > div > div:not(:has(.cm_column_wrapper)) > ol,
#block-myinteredu-theme-content > article > div > div:not(:has(.cm_column_wrapper)) > blockquote,
#block-myinteredu-theme-content > article > div > div:not(:has(.cm_column_wrapper)) > #block-myinteredu-theme-page-title {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Services overview hero/title/intro order ---- */
#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > p:first-child {
  margin: 0 0 30px;
}

/* ---- Russian + Turkish landing pages: keyvisual, title, intro order ---- */
#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/russian/keyvisual.jpg"]),
#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/turkce/keyvisual.jpg"]) {
  display: flow-root;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/russian/keyvisual.jpg"]) > p:first-child,
#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/turkce/keyvisual.jpg"]) > p:first-child {
  margin: 0 0 20px;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/russian/keyvisual.jpg"]) > p:first-child img,
#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/turkce/keyvisual.jpg"]) > p:first-child img {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  object-fit: cover;
}

.myinteredu-site-shell--russian #block-myinteredu-theme-content article h2,
.myinteredu-site-shell--turkce #block-myinteredu-theme-content article h2 {
  max-width: 949px;
  margin: 0 auto 12px;
  text-align: center !important;
}

.myinteredu-site-shell--russian #block-myinteredu-theme-content article h2 span {
  font-family: 'Julius Sans One', Arial, sans-serif !important;
  font-size: clamp(1.8rem, 3.8vw, 3rem) !important;
  line-height: 1.15;
}

.myinteredu-site-shell--turkce #block-myinteredu-theme-content article h2 span {
  font-family: 'Raleway', Arial, sans-serif !important;
  font-size: clamp(1.8rem, 3.8vw, 3rem) !important;
  line-height: 1.15;
}

.myinteredu-site-shell--russian #block-myinteredu-theme-content article > div > div > #block-myinteredu-theme-page-title ~ p,
.myinteredu-site-shell--turkce #block-myinteredu-theme-content article > div > div > #block-myinteredu-theme-page-title ~ p,
.myinteredu-site-shell--russian #block-myinteredu-theme-content article > div > div > #block-myinteredu-theme-page-title ~ h2,
.myinteredu-site-shell--turkce #block-myinteredu-theme-content article > div > div > #block-myinteredu-theme-page-title ~ h2 {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
}

.myinteredu-site-shell--russian #block-myinteredu-theme-content > article > div > div > #block-myinteredu-theme-page-title ~ p,
.myinteredu-site-shell--turkce #block-myinteredu-theme-content > article > div > div > #block-myinteredu-theme-page-title ~ p {
  text-align: center !important;
}

.myinteredu-site-shell--russian #block-myinteredu-theme-content > article > div > div > #block-myinteredu-theme-page-title ~ p:not([style]):has(> br:only-child),
.myinteredu-site-shell--turkce #block-myinteredu-theme-content > article > div > div > #block-myinteredu-theme-page-title ~ p:not([style]):has(> br:only-child) {
  display: none;
}

.myinteredu-site-shell--russian .cm_column_wrapper,
.myinteredu-site-shell--turkce .cm_column_wrapper {
  margin-top: 20px;
  margin-bottom: 48px;
  height: auto !important;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > p:first-child img {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  object-fit: cover;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > #block-myinteredu-theme-page-title {
  max-width: 949px;
  margin: 0 auto 22px;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > #block-myinteredu-theme-page-title h1 {
  text-align: center;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > #block-myinteredu-theme-page-title ~ p {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > #block-myinteredu-theme-page-title ~ p:not([style]):has(> br:only-child) {
  display: none;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > .cm_column_wrapper {
  margin-top: 28px;
}

#block-myinteredu-theme-content > article > div > div:has(> p > img[src*="/myinteredu-source/services/keyvisual.jpg"]) > .cm_column_wrapper .cm_widget_block {
  width: 100% !important;
  max-width: none !important;
}

/* ---- CM4All legacy column layout ---- */
.cm_column_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}
.cm_column {
  box-sizing: border-box;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
}
.cm_column > .com_cm4all_wdn_Button {
  margin-top: auto;
}
.cm_column_gap {
  display: none;
}
.clearFloating {
  display: none;
}
.cm_widget_anchor {
  display: none;
}
.cm_widget_block {
  margin: 0;
  text-align: center;
}

/* Service cards: "more" buttons should match original (pill-shaped red) */
.cm-widget-button_2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  background: var(--mi-red);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cm-widget-button_2 a {
  color: #fff;
  text-decoration: none;
}

/* Info card titles should be italic like original */
.cm_column_wrapper ~ .cm_column_wrapper h3 {
  font-style: italic;
}
/* Info cards: 2nd wrapper has 25% columns — override to 50% for 2×2 grid */
.cm_column_wrapper ~ .cm_column_wrapper .cm_column {
  width: 50% !important;
}

/* Reserve image height for the lower 2×2 home teaser block before lazy images load. */
.cm_column_wrapper ~ .cm_column_wrapper [data-uro-type^="image"] {
  aspect-ratio: 3 / 2;
}

.cm_column_wrapper ~ .cm_column_wrapper [data-uro-type^="image"] picture,
.cm_column_wrapper ~ .cm_column_wrapper [data-uro-type^="image"] img {
  display: block;
  width: 100%;
  height: 100%;
}

.cm_column_wrapper ~ .cm_column_wrapper [data-uro-type^="image"] img {
  object-fit: cover;
}

/* ---- Home hero texture frame ---- */
@media (min-width: 1100px) {
  .myinteredu-main__inner article p:first-child:has(> img[src*="/myinteredu-source/home/keyvisual.jpg"]) {
    position: relative;
    z-index: 0;
    margin-bottom: 18px;
  }

  .myinteredu-main__inner article p:first-child:has(> img[src*="/myinteredu-source/home/keyvisual.jpg"])::before,
  .myinteredu-main__inner article p:first-child:has(> img[src*="/myinteredu-source/home/keyvisual.jpg"])::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(max((100vw - 100%) / 2, 0px) + 28px);
    background: #d86b5c url('../assets/images/bg-texture-red.jpg') center center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
  }

  .myinteredu-main__inner article p:first-child:has(> img[src*="/myinteredu-source/home/keyvisual.jpg"])::before {
    left: calc(-1 * (max((100vw - 100%) / 2, 0px) + 28px));
    background-position: right center;
  }

  .myinteredu-main__inner article p:first-child:has(> img[src*="/myinteredu-source/home/keyvisual.jpg"])::after {
    right: calc(-1 * (max((100vw - 100%) / 2, 0px) + 28px));
    background-position: left center;
  }
}

/* Center page title below moved keyvisual on all pages */
#block-myinteredu-theme-page-title {
  max-width: 949px;
  margin-left: auto;
  margin-right: auto;
}
#block-myinteredu-theme-page-title h1 {
  text-align: center;
}

/* Contact page: hide the entire legacy article area since we now use the hero block and custom form. */
.myinteredu-main__inner article:has(img[src*="/myinteredu-source/contact-us/keyvisual.jpg"]) {
  display: none !important;
}

/* ---- Paragraphs ---- */
.node, .paragraph { margin-bottom: 28px; }
.field--name-field-sections > .field__item,
.field--name-field-service-blocks > .field__item,
.field--name-field-theme-sections > .field__item {
  margin-bottom: 34px;
}

.paragraph--type--card-grid-section .field--name-field-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.paragraph--type--card-grid-section .field--name-field-grid-style { display: none; }

.paragraph--type--feature-card-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.paragraph--type--feature-card-item .field--name-field-summary {
  color: #404040;
}

.paragraph--type--feature-card-item .field--name-field-link a,
.paragraph--type--cta-section .field--name-field-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--mi-red);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  width: fit-content;
}
.paragraph--type--feature-card-item .field--name-field-link a:hover,
.paragraph--type--cta-section .field--name-field-link a:hover {
  background: var(--mi-red-dark);
}

.paragraph--type--service-cluster { padding: 0; }
.paragraph--type--service-cluster .field--name-field-bullet-items .field__item { margin-bottom: 7px; }
.paragraph--type--cta-section { margin-top: 22px; }

/* ---- Contact fallback form ---- */
.myinteredu-contact-fallback {
  max-width: 949px;
  margin: 24px auto 0;
}

.myinteredu-contact-fallback__inner {
  padding: 20px 24px 28px;
}

.myinteredu-contact-fallback__intro,
.myinteredu-contact-fallback__status,
.myinteredu-contact-fallback__error,
.myinteredu-contact-fallback__mail-note {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.myinteredu-contact-fallback__intro {
  margin-bottom: 18px;
}

.myinteredu-contact-fallback__status {
  margin-bottom: 12px;
  color: var(--mi-text-muted);
  min-height: 1.6em;
}

.myinteredu-contact-fallback__error {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(213, 33, 0, 0.08);
  border-left: 4px solid var(--mi-red);
  color: var(--mi-red-dark);
  font-size: 0.98rem;
}

.myinteredu-contact-fallback__form {
  max-width: 720px;
  margin: 0 auto;
}

.myinteredu-contact-fallback__grid {
  display: grid;
  gap: 16px;
}

.myinteredu-contact-fallback__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.myinteredu-contact-fallback__field label,
.myinteredu-contact-fallback__consent label,
.myinteredu-contact-fallback__required {
  font-size: 1rem;
}

.myinteredu-contact-fallback__field input,
.myinteredu-contact-fallback__field select,
.myinteredu-contact-fallback__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: var(--mi-text);
  font: inherit;
}

.myinteredu-contact-fallback__field textarea {
  min-height: 180px;
  resize: vertical;
}

.myinteredu-contact-fallback__field input:focus,
.myinteredu-contact-fallback__field select:focus,
.myinteredu-contact-fallback__field textarea:focus,
.myinteredu-contact-fallback__consent input:focus {
  outline: 2px solid rgba(213, 33, 0, 0.25);
  outline-offset: 1px;
  border-color: var(--mi-red);
}

.myinteredu-contact-fallback__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.myinteredu-contact-fallback__consent input {
  margin-top: 5px;
  flex: 0 0 auto;
}

.myinteredu-contact-fallback__actions {
  margin-top: 18px;
  text-align: center;
}

.myinteredu-contact-fallback__required {
  margin-bottom: 10px;
}

.myinteredu-contact-fallback__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 11px 28px;
  border: 0;
  background: var(--mi-red);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.myinteredu-contact-fallback__submit:hover,
.myinteredu-contact-fallback__submit:focus {
  background: var(--mi-red-dark);
}

.myinteredu-contact-fallback__mail-note {
  margin-top: 16px;
  font-size: 0.98rem;
  color: var(--mi-text-muted);
}

/* ---- Footer ---- */
.myinteredu-footer {
  margin-top: 48px;
  color: #fff;
  background: url('../assets/images/bg-texture-red.jpg') center / cover no-repeat;
}
.myinteredu-footer__cta {
  text-align: center;
  padding: 36px 0 20px;
}
.myinteredu-footer__cta-text {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.myinteredu-footer__cta-link {
  color: #fff;
  text-decoration: underline;
}

/* Professionals page: slightly stronger closing CTA without restructuring content. */
.myinteredu-main .mi-page-cta--professionals {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

.myinteredu-main .mi-page-cta--professionals .mi-page-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--mi-red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(213, 33, 0, 0.2);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.myinteredu-main .mi-page-cta--professionals .mi-page-cta__link:hover,
.myinteredu-main .mi-page-cta--professionals .mi-page-cta__link:focus {
  background: var(--mi-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(213, 33, 0, 0.28);
}
.myinteredu-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding: 48px 0 34px;
}
.myinteredu-footer__contact { flex: 1 1 62%; }
.myinteredu-footer__title {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.myinteredu-footer__text {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 300;
}
.myinteredu-footer__text a,
.myinteredu-footer__legal-link {
  color: #fff;
  text-decoration: underline;
}
.myinteredu-footer__badge-wrap {
  flex: 0 0 32%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.myinteredu-footer__badge {
  width: 160px;
  max-width: 100%;
  display: block;
  border-radius: 0;
}
.myinteredu-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 0 34px;
}
.myinteredu-footer__legal-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.myinteredu-footer__legal-link { font-size: 0.98rem; font-weight: 300; }
.myinteredu-footer__nav {
  width: 100%;
}
.myinteredu-footer__nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
}
.myinteredu-footer__nav-link {
  color: #fff;
  text-decoration: none;
  font-family: 'Julius Sans One', Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
}
.myinteredu-footer__nav-link:hover,
.myinteredu-footer__nav-link:focus {
  text-decoration: underline;
}

.myinteredu-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
}
.myinteredu-cookie-consent[hidden] {
  display: none;
}
.myinteredu-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.myinteredu-cookie-consent__dialog {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  color: #1d1d1d;
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  padding: 22px 22px 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.myinteredu-cookie-consent.is-open .myinteredu-cookie-consent__dialog {
  opacity: 1;
  transform: translateY(0);
}
.myinteredu-cookie-consent__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.myinteredu-cookie-consent__heading {
  margin: 0 34px 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.myinteredu-cookie-consent__text,
.myinteredu-cookie-consent__privacy-link {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.myinteredu-cookie-consent__options {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}
.myinteredu-cookie-consent__option {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #ececec;
}
.myinteredu-cookie-consent__option--disabled {
  opacity: 0.85;
}
.myinteredu-cookie-consent__option input {
  margin-top: 3px;
}
.myinteredu-cookie-consent__option-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}

.myinteredu-cookie-consent__option-copy {
  display: grid;
  gap: 6px;
}

.myinteredu-cookie-consent__option-description {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}
.myinteredu-cookie-consent__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 -22px 0;
  padding: 12px 22px 12px;
  background: linear-gradient(to top, #fff 80%, rgba(255, 255, 255, 0.92) 100%);
  border-top: 1px solid #ececec;
}
.myinteredu-cookie-consent__btn {
  border: 0;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 999px;
  font-family: 'Julius Sans One', Arial, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}
.myinteredu-cookie-consent__btn--reject {
  background: #e8e8e8;
  color: #111;
}
.myinteredu-cookie-consent__btn--accept,
.myinteredu-cookie-consent__btn--save {
  background: #8f1d1d;
  color: #fff;
}
.myinteredu-cookie-consent__privacy-link a {
  color: #8f1d1d;
}

/* ---- Scroll lock when mobile menu is open ---- */
body.myinteredu-menu-open {
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .myinteredu-header__inner { flex-direction: column; align-items: flex-start; }
  .myinteredu-nav { width: 100%; justify-content: flex-start; }
  .myinteredu-nav__list { justify-content: flex-start; gap: 16px 20px; }
  .paragraph--type--card-grid-section .field--name-field-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myinteredu-footer__top { align-items: flex-start; }
  .cm_column { width: 50% !important; }
}

@media (max-width: 760px) {
  .myinteredu-container { width: min(var(--mi-max-width), calc(100% - 36px)); }
  .myinteredu-header {
    position: relative;
    z-index: 1000;
    padding-top: 14px;
    padding-bottom: 12px;
    background: #fff;
  }
  .myinteredu-header__inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .myinteredu-logo { width: 130px; }
  .myinteredu-nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 1002;
  }
  .myinteredu-nav {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 0 20px;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 1001;
    background: #fff;
  }
  .myinteredu-nav.is-open {
    display: flex;
  }
  .myinteredu-nav__list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .myinteredu-nav__link {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
  }
  .myinteredu-nav__item--services > .myinteredu-nav__link {
    padding-right: 18px;
  }
  .myinteredu-subnav,
  .myinteredu-nav__item--services:hover > .myinteredu-subnav,
  .myinteredu-nav__item--services:focus-within > .myinteredu-subnav,
  .is-subnav-open > .myinteredu-subnav {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }
  .myinteredu-subnav {
    display: none;
  }
  .is-subnav-open > .myinteredu-subnav {
    display: block;
  }
  .myinteredu-subnav__link {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
  }
  .myinteredu-nav__list li:last-child .myinteredu-nav__link {
    border-bottom: none;
  }
  .paragraph--type--card-grid-section .field--name-field-cards { grid-template-columns: 1fr; }
  .cm_column { width: 100% !important; }
  .myinteredu-contact-fallback__inner {
    padding-left: 0;
    padding-right: 0;
  }
  .myinteredu-contact-fallback__consent {
    gap: 10px;
  }
  .myinteredu-footer__top,
  .myinteredu-footer__bottom,
  .myinteredu-footer__legal-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .myinteredu-footer__badge-wrap { justify-content: flex-start; }
}

/* ===================== Language Switcher ===================== */
.myinteredu-language-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 16px;
}

.myinteredu-language-switcher__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.myinteredu-language-switcher__link {
  display: inline-block;
  padding: 6px 10px;
  font-family: 'Julius Sans One', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.myinteredu-language-switcher__link:hover {
  color: #D52100;
  border-color: #D52100;
}

.myinteredu-language-switcher__link.is-active {
  color: #fff;
  background-color: #D52100;
  border-color: #D52100;
}

/* Drupal block-rendered language switcher */
.myinteredu-language-switcher .language-switcher-language-url {
  margin: 0;
  padding: 0;
}

.myinteredu-language-switcher .language-switcher-language-url ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.myinteredu-language-switcher .language-switcher-language-url li {
  margin: 0;
}

.myinteredu-language-switcher .language-switcher-language-url a {
  display: inline-block;
  padding: 6px 10px;
  font-family: 'Julius Sans One', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.myinteredu-language-switcher .language-switcher-language-url a:hover {
  color: #D52100;
  border-color: #D52100;
}

.myinteredu-language-switcher .language-switcher-language-url li.is-active a,
.myinteredu-language-switcher .language-switcher-language-url a.is-active {
  color: #fff;
  background-color: #D52100;
  border-color: #D52100;
}

@media (max-width: 768px) {
  .myinteredu-language-switcher {
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: 12px;
  }
}

/* Turkish language navigation fixes: Use Raleway due to missing glyphs in Julius, adjust size/spacing for longer words */
.myinteredu-site-shell--turkce .myinteredu-nav__link,
.myinteredu-site-shell--turkce .myinteredu-footer__nav-link {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 1101px) {
  .myinteredu-site-shell--turkce .myinteredu-nav__link {
    font-size: 14px;
  }
  .myinteredu-site-shell--turkce .myinteredu-nav__list {
    gap: 16px;
  }
}
