@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --dimen-blue: #5AA6C8;
  --dimen-teal: #4DB7B3;
  --dimen-dark: #4A4F55;
  --dimen-light: #F2F2F2;
}

html, body, input, textarea, select, button,
h1, h2, h3, h4, h5, h6,
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span,
.mod-menu a {
  font-family: 'Roboto', Arial, sans-serif !important;
}

body {
  color: var(--dimen-dark);
  background: #fff;
  line-height: 1.68;
}

#sp-top-bar,
.sp-top-bar,
#sp-top1,
#sp-top2,
.sp-contact-info,
.sp-module.login,
.sp-module .login,
.login-greeting,
#sp-header a[href*="option=com_users"][href*="login"],
#sp-header a[href*="view=login"] {
  display: none !important;
}

#sp-header {
  min-height: 104px;
  background: var(--dimen-blue) !important;
  box-shadow: none;
}

#sp-header .container,
#sp-header .container-inner,
#sp-header .row {
  min-height: 104px;
}

.logo-image,
.logo-image-phone,
.logo-sticky {
  max-height: 86px !important;
  max-width: 270px !important;
  width: auto !important;
}

#sp-header .logo,
#sp-logo {
  display: flex;
  align-items: center;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0;
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item > a {
  color: #173B45 !important;
}

#sp-header .sp-module ul.menu,
#sp-header .sp-module .mod-menu {
  display: none !important;
}

#sp-header .sp-module.mod-languages,
#sp-header .mod-languages {
  display: block !important;
}

#sp-header .mod-languages ul,
#sp-header .mod-languages li {
  display: inline-flex !important;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#sp-header .mod-languages a,
#sp-header .mod-languages span {
  color: #fff !important;
  font-weight: 700;
}

.burger-icon > span,
#offcanvas-toggler > .fa,
#offcanvas-toggler > .fas {
  color: #fff !important;
}

.btn,
.button,
button,
input[type="submit"],
input[type="button"],
.sppb-btn,
.sppb-btn-primary,
.readmore a,
.article-list .readmore a {
  border-radius: 6px;
}

.btn-primary,
.button,
button[type="submit"],
input[type="submit"],
.sppb-btn-primary,
.readmore a,
.article-list .readmore a {
  background: var(--dimen-teal) !important;
  border-color: var(--dimen-teal) !important;
  color: #12343C !important;
  font-weight: 700;
}

.btn-primary:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.sppb-btn-primary:hover,
.readmore a:hover {
  background: #3DA7A4 !important;
  border-color: #3DA7A4 !important;
  color: #0F2F36 !important;
}

a {
  color: #347FA1;
}

a:hover,
a:focus {
  color: #286B88;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #173B45;
  outline-offset: 3px;
}

.dimen-builder-page {
  color: var(--dimen-dark);
  background: #fff;
}

.dimen-sppb-hero {
  background: #fff;
  padding: clamp(3rem, 7vw, 6rem) 1rem 2rem;
}

.dimen-sppb-hero > div,
.dimen-sppb-grid,
.dimen-sppb-note {
  max-width: 1120px;
  margin: 0 auto;
}

.dimen-kicker {
  color: var(--dimen-blue);
  font-weight: 900;
  text-transform: uppercase;
}

.dimen-sppb-hero h1 {
  color: var(--dimen-blue);
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 1.12;
  margin: .3rem 0 1rem;
}

.dimen-sppb-hero p {
  max-width: 760px;
  font-size: 1.18rem;
  color: var(--dimen-dark);
}

.dimen-sppb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1rem 3rem;
}

.dimen-sppb-card {
  background: var(--dimen-light);
  border-left: 6px solid var(--dimen-teal);
  border-radius: 8px;
  padding: 1.35rem;
}

.dimen-sppb-card h2 {
  color: var(--dimen-blue);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 .75rem;
}

.dimen-sppb-card p {
  margin: 0;
}

.dimen-sppb-note {
  border-top: 4px solid var(--dimen-blue);
  padding: 1.5rem 1rem 4rem;
}

@media (max-width: 991px) {
  #sp-header,
  #sp-header .container,
  #sp-header .container-inner,
  #sp-header .row {
    min-height: 84px;
  }

  .logo-image,
  .logo-image-phone,
  .logo-sticky {
    max-height: 68px !important;
    max-width: 220px !important;
  }

  .dimen-sppb-grid {
    grid-template-columns: 1fr;
  }
}

.dimen-content-section,
.dimen-objectives-section,
.dimen-partners-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.dimen-content-block,
.dimen-partner-card {
  border-left: 6px solid var(--dimen-teal);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(74, 79, 85, .08);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.dimen-content-block h2,
.dimen-objectives-section h2,
.dimen-partner-card h2 {
  color: var(--dimen-blue);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.dimen-objectives-list {
  background: var(--dimen-light);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.dimen-objectives-list ul {
  margin: 0;
  padding-left: 1.25rem;
}

.dimen-objectives-list li {
  margin: .45rem 0;
}

.dimen-partner-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.dimen-partner-logo {
  width: 100%;
  max-width: 210px;
  height: auto;
  background: #fff;
  border: 1px solid #E3E7EA;
  border-radius: 8px;
  padding: 1rem;
}

.dimen-partner-card p {
  margin-bottom: .85rem;
}

@media (max-width: 767px) {
  .dimen-partner-card {
    grid-template-columns: 1fr;
  }

  .dimen-partner-logo {
    max-width: 190px;
  }
}
.dimen-language-switcher-fix,
#sp-header .sp-sign-in,
#sp-header .signin,
#sp-header .login,
#sp-header .mod-login,
#sp-header .sp-profile-wrapper,
#sp-header .sp-module-login,
#sp-header a[href*="option=com_users"],
#sp-header a[href*="view=login"] {
  display: none !important;
}

#sp-header .mod-languages,
#sp-header .sp-module.mod-languages,
#sp-menu .mod-languages {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
}

#sp-header .mod-languages ul,
#sp-menu .mod-languages ul,
#sp-header .mod-languages .lang-inline,
#sp-menu .mod-languages .lang-inline {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#sp-header .mod-languages li,
#sp-menu .mod-languages li {
  display: inline-flex !important;
}

#sp-header .mod-languages img,
#sp-menu .mod-languages img {
  width: 24px;
  height: auto;
}
.dimen-header-language-switcher {
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  margin-left: 1rem;
  white-space: nowrap;
  position: relative;
  z-index: 10001;
}

.dimen-header-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  font-weight: 900;
  font-size: .82rem;
  line-height: 1;
}

.dimen-header-language-switcher a:hover,
.dimen-header-language-switcher a:focus,
.dimen-header-language-switcher a.is-active {
  color: #173B45 !important;
  background: #fff;
  border-color: #fff;
}

@media (max-width: 991px) {
  .dimen-header-language-switcher {
    margin-left: .5rem;
    gap: .25rem;
  }

  .dimen-header-language-switcher a {
    min-width: 31px;
    height: 31px;
    font-size: .76rem;
  }
}
.dimen-header-language-switcher .dimen-lang-flag {
  font-size: 1rem;
  line-height: 1;
  margin-right: .25rem;
}

.dimen-header-language-switcher .dimen-lang-code {
  line-height: 1;
}
/* DIMEN forced language switcher: hide Joomla module duplicate, keep custom GB/EL/ES selector. */
#sp-header .mod-languages:not(.dimen-header-language-switcher),
#sp-menu .mod-languages:not(.dimen-header-language-switcher),
#sp-header .sp-module.mod-languages,
#sp-menu .sp-module.mod-languages {
  display: none !important;
}

.dimen-header-language-switcher {
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  margin-left: 1rem;
  white-space: nowrap;
  position: relative;
  z-index: 10001;
}

.dimen-header-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  min-width: 48px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  font-weight: 900;
  font-size: .82rem;
  line-height: 1;
  padding: 0 .42rem;
}

.dimen-header-language-switcher .dimen-lang-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  margin: 0;
  border-radius: 1px;
}

.dimen-header-language-switcher .dimen-lang-code {
  line-height: 1;
}

.dimen-header-language-switcher a:hover,
.dimen-header-language-switcher a:focus,
.dimen-header-language-switcher a.is-active {
  color: #173B45 !important;
  background: #fff;
  border-color: #fff;
}

@media (max-width: 991px) {
  .dimen-header-language-switcher {
    margin-left: .5rem;
    gap: .25rem;
  }

  .dimen-header-language-switcher a {
    min-width: 44px;
    height: 31px;
    font-size: .76rem;
    padding: 0 .35rem;
  }
}
/* DIMEN footer brand colour */
#sp-footer,
#sp-bottom {
  background: #5AA6C8 !important;
  color: #fff !important;
}

#sp-footer a,
#sp-bottom a,
#sp-footer .sp-copyright,
#sp-bottom .sp-module,
#sp-footer .sp-module {
  color: #fff !important;
}

.dimen-footer-copy {
  margin: 0;
  color: #fff;
  font-weight: 500;
  text-align: center;
}
/* DIMEN contact forms and social links */
.dimen-contact-page .dimen-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 0 18px;
}
.dimen-contact-panel {
  border: 1px solid rgba(17, 54, 75, .14);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(16, 44, 62, .07);
}
.dimen-contact-panel h2 {
  margin: 0 0 10px;
  color: #163646;
}
.dimen-contact-panel p {
  color: #36586a;
}
.dimen-social-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.dimen-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(90, 166, 200, .35);
  border-radius: 8px;
  color: #163646;
  background: #f7fbfd;
  font-weight: 600;
  text-decoration: none;
}
.dimen-social-link:hover,
.dimen-social-link:focus-visible {
  color: #fff;
  background: #5AA6C8;
  border-color: #5AA6C8;
  outline: 3px solid rgba(77, 183, 179, .35);
  outline-offset: 2px;
}
.dimen-social-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.dimen-social-link:nth-child(2) svg,
.dimen-social-link:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}
.dimen-rsform-contact {
  max-width: 1120px;
  margin: 24px auto 52px;
  padding: 0 18px;
}
.dimen-rsform-contact .dimen-rsform-shell {
  border: 1px solid rgba(17, 54, 75, .14);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(16, 44, 62, .07);
}
.dimen-rsform-contact fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.dimen-rsform-contact .rsform-block {
  margin: 0 0 18px;
}
.dimen-rsform-contact .formControlLabel {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #163646;
}
.dimen-rsform-contact input[type="text"],
.dimen-rsform-contact input[type="email"],
.dimen-rsform-contact textarea {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid rgba(22, 54, 70, .24);
  border-radius: 8px;
  padding: 10px 12px;
  color: #163646;
  background: #fff;
}
.dimen-rsform-contact textarea {
  min-height: 140px;
  resize: vertical;
}
.dimen-rsform-contact input:focus-visible,
.dimen-rsform-contact textarea:focus-visible {
  border-color: #5AA6C8;
  outline: 3px solid rgba(90, 166, 200, .28);
}
.dimen-rsform-contact .rsform-block-gdpr-agreement label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #36586a;
  line-height: 1.5;
}
.dimen-rsform-contact input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #4DB7B3;
}
.dimen-rsform-contact .dimen-rsform-submit-button,
.dimen-rsform-contact button[type="submit"],
.dimen-rsform-contact input[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  background: #4DB7B3;
  color: #fff;
  font-weight: 700;
}
.dimen-rsform-contact .dimen-rsform-submit-button:hover,
.dimen-rsform-contact .dimen-rsform-submit-button:focus-visible,
.dimen-rsform-contact button[type="submit"]:hover,
.dimen-rsform-contact button[type="submit"]:focus-visible,
.dimen-rsform-contact input[type="submit"]:hover,
.dimen-rsform-contact input[type="submit"]:focus-visible {
  background: #3f9f9b;
  outline: 3px solid rgba(77, 183, 179, .35);
  outline-offset: 2px;
}
.dimen-rsform-contact .formRequired,
.dimen-rsform-contact .formValidation {
  color: #9b1c1c;
}
@media (max-width: 820px) {
  .dimen-contact-page .dimen-contact-layout {
    grid-template-columns: 1fr;
  }
}

/* DIMEN project coordinator contact block */
.dimen-coordinator-card {
  position: relative;
  margin-top: 34px;
  max-width: 560px;
  padding: 22px 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.dimen-coordinator-card::before,
.dimen-coordinator-card::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(90deg, #5AA6C8 0%, #4DB7B3 100%);
  border-radius: 999px;
}
.dimen-coordinator-card::before {
  margin-bottom: 18px;
}
.dimen-coordinator-card::after {
  height: 2px;
  margin-top: 22px;
  opacity: .85;
}
.dimen-coordinator-role {
  margin: 0 0 8px;
  color: #163646;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}
.dimen-coordinator-name {
  margin: 0 0 9px;
  color: #263f4c;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}
.dimen-coordinator-email {
  margin: 0;
  color: #36586a;
  font-size: 1.02rem;
}
.dimen-coordinator-email span {
  display: none;
}
.dimen-coordinator-email a {
  color: #4DB7B3;
  font-weight: 800;
  text-decoration: none;
}
.dimen-coordinator-email a:hover,
.dimen-coordinator-email a:focus-visible {
  color: #3f9f9b;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  outline: 3px solid rgba(77, 183, 179, .25);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .dimen-coordinator-card {
    margin-top: 26px;
    padding-top: 18px;
  }
  .dimen-coordinator-role {
    font-size: 1.18rem;
  }
  .dimen-coordinator-card::before,
  .dimen-coordinator-card::after {
    max-width: 100%;
  }
}

/* DIMEN footer coordinator */
.dimen-footer-contact {
  width: min(92vw, 760px);
  margin: 0 auto 10px;
  padding: 0 0 10px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, .45);
}
.dimen-footer-contact-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.dimen-footer-role {
  margin: 0;
  color: #fff;
  font-size: .98rem;
  font-weight: 900;
}
.dimen-footer-role::after,
.dimen-footer-name::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 14px;
  vertical-align: -2px;
  background: rgba(255, 255, 255, .55);
}
.dimen-footer-name {
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-weight: 600;
}
.dimen-footer-email {
  margin: 0;
}
.dimen-footer-email a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .55);
  text-underline-offset: 4px;
}
.dimen-footer-email a:hover,
.dimen-footer-email a:focus-visible {
  color: #163646;
  text-decoration-color: #163646;
  outline: 3px solid rgba(255, 255, 255, .35);
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .dimen-footer-contact-inline {
    gap: 5px 10px;
  }
  .dimen-footer-role::after,
  .dimen-footer-name::after {
    display: none;
  }
}