/* Elementor Free page layout. The classes are included in the bundled JSON template. */

.elementor-page .majd-main-content,
.elementor-page .elementor,
.single-elementor_library .majd-main-content,
.single-elementor_library .elementor {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Elementor loads its own container background rules after the theme CSS.
   These full-width section rules therefore need an explicit priority. */
.majd-el-hero,
.majd-el-qualification-strip,
.majd-el-about,
.majd-el-section,
.majd-el-contact {
  --width: 100%;
  --max-width: none;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.majd-el-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 0 !important;
  background: linear-gradient(112deg, #eaf5fa 0%, #d9edf6 58%, #c9e4f2 100%) !important;
}

/* Deliberately no radial glow or circle behind the head. */
.majd-el-hero::before,
.majd-el-hero::after {
  display: none !important;
  content: none !important;
}

.majd-el-hero-inner,
.majd-el-qualification-inner,
.majd-el-about-inner,
.majd-el-section-inner,
.majd-el-contact-inner {
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

.majd-el-hero-inner {
  --display: flex;
  --flex-direction: row;
  --justify-content: flex-start;
  --align-items: stretch;
  position: relative !important;
  display: flex !important;
  min-height: 650px;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 30px !important;
}

.majd-el-hero-copy {
  --display: flex;
  --flex-direction: column;
  --justify-content: center;
  --align-items: flex-start;
  position: relative !important;
  z-index: 4 !important;
  display: flex !important;
  width: 58% !important;
  max-width: 680px !important;
  flex: 0 0 58% !important;
  padding: 72px 0 80px !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.majd-el-hero-media {
  --width: 42%;
  position: relative !important;
  z-index: 2 !important;
  width: 42% !important;
  flex: 0 0 42% !important;
  min-height: 650px;
  overflow: visible;
}

.majd-el-hero-media > .elementor-element,
.majd-el-hero-media .elementor-widget-container,
.majd-el-hero-media .elementor-shortcode {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.majd-elementor-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(540px, 45vw) !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 28px rgba(18, 50, 74, 0.07));
  pointer-events: none;
}

.majd-el-eyebrow .elementor-heading-title,
.majd-el-section-kicker .elementor-heading-title {
  color: var(--majd-teal-dark);
  font-family: var(--majd-sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.majd-el-eyebrow {
  margin-bottom: 14px;
}

.majd-el-title .elementor-heading-title {
  margin: 0;
  color: var(--majd-navy-deep);
  font-family: var(--majd-serif);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.majd-el-role .elementor-heading-title {
  color: var(--majd-navy);
  font-family: var(--majd-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.majd-el-institution,
.majd-el-hero-text {
  color: #345066;
  font-family: var(--majd-sans);
}

.majd-el-institution p,
.majd-el-hero-text p {
  margin: 0;
}

.majd-el-institution {
  margin-top: 2px;
  font-size: 16px;
}

.majd-el-divider {
  width: 66px !important;
  margin: 24px 0 25px;
}

.majd-el-divider .elementor-divider-separator {
  width: 66px !important;
  border-top: 3px solid var(--majd-teal) !important;
}

.majd-el-slogan .elementor-heading-title {
  color: var(--majd-navy-deep);
  font-family: var(--majd-serif);
  font-size: clamp(28px, 2.7vw, 39px);
  font-weight: 700;
  line-height: 1.22;
}

.majd-el-hero-text {
  max-width: 630px;
  font-size: 17px;
  line-height: 1.7;
}

.majd-el-actions {
  display: flex !important;
  margin-top: 28px;
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px !important;
}

.majd-el-button .elementor-button,
.majd-el-button-outline .elementor-button {
  min-height: 48px;
  padding: 14px 24px !important;
  border: 1px solid var(--majd-teal) !important;
  border-radius: 5px !important;
  background: var(--majd-teal) !important;
  color: var(--majd-white);
  font-family: var(--majd-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.majd-el-button .elementor-button:hover {
  border-color: var(--majd-teal-dark) !important;
  background: var(--majd-teal-dark) !important;
}

.majd-el-button-outline .elementor-button {
  background: transparent !important;
  color: var(--majd-navy);
}

.majd-el-button-outline .elementor-button:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  color: var(--majd-teal-dark);
}

.majd-el-text-link .elementor-button {
  padding: 10px 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--majd-teal-dark);
  font-family: var(--majd-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.majd-el-qualification-strip {
  padding: 0 !important;
  border-top: 1px solid rgba(18, 50, 74, 0.08);
  border-bottom: 1px solid rgba(18, 50, 74, 0.08);
  background: #e8f6fc !important;
}

.majd-el-qualification-inner {
  --display: grid;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 !important;
}

.majd-el-qualification {
  display: flex !important;
  min-height: 80px;
  padding: 16px 20px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  border-left: 1px solid var(--majd-line);
  color: var(--majd-navy);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.majd-el-qualification:first-child {
  border-left: 0;
}

.majd-el-qualification .elementor-widget-text-editor p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.majd-check {
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--majd-teal);
  color: var(--majd-white);
  font-size: 16px;
  font-weight: 900;
}

.majd-el-about {
  padding: 100px 0 106px !important;
  background: var(--majd-white) !important;
}

.majd-el-about-inner {
  --display: grid;
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end !important;
  gap: 72px !important;
}

.majd-el-about-title .elementor-heading-title {
  color: var(--majd-navy-deep);
  font-family: var(--majd-serif);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.majd-el-about-copy {
  padding-left: 24px !important;
  border-left: 2px solid var(--majd-teal);
  color: var(--majd-muted);
  font-size: 16px;
}

.majd-el-about-copy p {
  margin: 0;
}

.majd-el-section {
  padding: 82px 0 88px !important;
}

.majd-el-specialties {
  background: linear-gradient(180deg, #eff9fd 0%, #e3f3fa 100%) !important;
}

.majd-el-science {
  background: var(--majd-white) !important;
}

.majd-el-section-inner {
  --display: flex;
  --flex-direction: column;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.majd-el-section-heading {
  display: flex !important;
  max-width: 820px;
  margin: 0 auto 48px !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
}

.majd-el-section-title .elementor-heading-title {
  color: var(--majd-navy-deep);
  font-family: var(--majd-serif);
  font-size: clamp(37px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.majd-el-section-description {
  max-width: 710px;
  color: var(--majd-muted);
}

.majd-el-section-description p {
  margin: 0;
}

.majd-el-card-grid {
  --display: grid;
  display: grid !important;
  width: 100%;
  gap: 24px !important;
}

.majd-el-card-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.majd-el-card-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.majd-el-card {
  --display: flex;
  --flex-direction: column;
  --align-items: center;
  display: flex !important;
  min-height: 320px;
  padding: 30px 24px 28px !important;
  flex-direction: column !important;
  align-items: center !important;
  border: 1px solid rgba(18, 50, 74, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 48px rgba(18, 50, 74, 0.09);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.majd-el-card:hover {
  box-shadow: 0 22px 58px rgba(18, 50, 74, 0.13);
  transform: translateY(-5px);
}

.majd-el-card-grid-three .majd-el-card {
  min-height: 276px;
  box-shadow: none;
}

.majd-el-card-icon {
  display: grid;
  width: 98px;
  height: 98px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--majd-ice) !important;
}

.majd-el-card-icon .elementor-widget-container,
.majd-el-card-icon .elementor-shortcode {
  display: grid;
  place-items: center;
}

.majd-shortcode-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
}

.majd-shortcode-icon img {
  width: 54px;
  height: 54px;
}

.majd-el-card-title .elementor-heading-title {
  color: var(--majd-navy-deep);
  font-family: var(--majd-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.22;
}

.majd-el-card-copy {
  color: var(--majd-muted);
  font-size: 15px;
  line-height: 1.58;
}

.majd-el-card-copy p {
  margin: 0;
}

.majd-el-section-action {
  margin-top: 38px;
  text-align: center;
}

.majd-el-contact {
  padding: 0 0 48px !important;
  background: var(--majd-white) !important;
}

.majd-el-contact-inner {
  --display: grid;
  display: grid !important;
  grid-template-columns: minmax(250px, 1fr) minmax(320px, 1.15fr) auto;
  align-items: center !important;
  gap: 34px !important;
  padding: 36px 42px !important;
  border: 1px solid rgba(18, 50, 74, 0.06);
  border-radius: 14px;
  background: linear-gradient(110deg, #eaf6fb 0%, #d5edf8 100%) !important;
}

.majd-el-contact-title .elementor-heading-title {
  color: var(--majd-navy-deep);
  font-family: var(--majd-serif);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.18;
}

.majd-el-contact-copy {
  color: var(--majd-muted);
  font-size: 14px;
}

.majd-el-contact-copy p {
  margin: 0;
}

.majd-el-contact-details {
  display: flex !important;
  padding: 4px 34px !important;
  flex-direction: column !important;
  gap: 13px !important;
  border-right: 1px solid rgba(18, 50, 74, 0.18);
  border-left: 1px solid rgba(18, 50, 74, 0.18);
}

.majd-el-contact-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
}

.majd-el-contact-link .elementor-widget-shortcode {
  width: 24px;
  flex: 0 0 24px;
}

.majd-el-contact-link .majd-shortcode-icon,
.majd-el-contact-link .majd-shortcode-icon img {
  width: 23px;
  height: 23px;
}

.majd-el-contact-link .elementor-widget-heading {
  flex: 1;
}

.majd-el-contact-link .elementor-heading-title,
.majd-el-contact-link .elementor-heading-title a {
  color: var(--majd-navy-deep);
  font-family: var(--majd-sans);
  font-size: 17px;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .majd-elementor-portrait {
    right: -20px;
    width: 520px !important;
  }

  .majd-el-card-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .majd-el-contact-inner {
    grid-template-columns: 1fr 1.1fr;
  }

  .majd-el-contact-button {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .majd-el-hero-inner,
  .majd-el-qualification-inner,
  .majd-el-about-inner,
  .majd-el-section-inner,
  .majd-el-contact-inner {
    width: min(calc(100% - 34px), 1180px) !important;
  }

  .majd-el-hero-inner {
    --flex-direction: column;
    flex-direction: column !important;
  }

  .majd-el-hero-copy,
  .majd-el-hero-media {
    --width: 100%;
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
  }

  .majd-el-hero-copy {
    padding: 62px 0 28px !important;
  }

  .majd-el-hero-media {
    min-height: 520px;
  }

  .majd-elementor-portrait {
    right: 50%;
    width: 560px !important;
    transform: translateX(50%);
  }

  .majd-el-qualification-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .majd-el-qualification:nth-child(3) {
    border-left: 0;
  }

  .majd-el-qualification:nth-child(n + 3) {
    border-top: 1px solid var(--majd-line);
  }

  .majd-el-about-inner {
    grid-template-columns: 1fr;
    gap: 35px !important;
  }

  .majd-el-card-grid-three {
    grid-template-columns: 1fr;
  }

  .majd-el-card-grid-three .majd-el-card {
    min-height: 0;
  }

  .majd-el-contact-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .majd-el-contact-details {
    align-items: center !important;
    padding: 24px 0 !important;
    border-top: 1px solid rgba(18, 50, 74, 0.18);
    border-right: 0;
    border-bottom: 1px solid rgba(18, 50, 74, 0.18);
    border-left: 0;
  }

  .majd-el-contact-button {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .majd-el-title .elementor-heading-title {
    font-size: 42px;
  }

  .majd-el-role .elementor-heading-title {
    font-size: 18px;
  }

  .majd-el-actions {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .majd-el-actions .elementor-widget-button,
  .majd-el-actions .elementor-button {
    width: 100%;
  }

  .majd-el-hero-media {
    min-height: 410px;
  }

  .majd-elementor-portrait {
    width: 445px !important;
  }

  .majd-el-qualification-inner {
    grid-template-columns: 1fr;
  }

  .majd-el-qualification,
  .majd-el-qualification:nth-child(3) {
    min-height: 60px;
    justify-content: flex-start !important;
    border-top: 1px solid var(--majd-line);
    border-left: 0;
    text-align: left;
  }

  .majd-el-qualification:first-child {
    border-top: 0;
  }

  .majd-el-qualification .elementor-widget-text-editor p {
    justify-content: flex-start;
  }

  .majd-el-about {
    padding: 74px 0 !important;
  }

  .majd-el-about-title .elementor-heading-title,
  .majd-el-section-title .elementor-heading-title {
    font-size: 36px;
  }

  .majd-el-section {
    padding: 66px 0 72px !important;
  }

  .majd-el-card-grid-four {
    grid-template-columns: 1fr;
  }

  .majd-el-card {
    min-height: 0;
  }

  .majd-el-contact-inner {
    padding: 30px 22px !important;
  }

  .majd-el-contact-link .elementor-heading-title,
  .majd-el-contact-link .elementor-heading-title a {
    font-size: 15px;
  }
}
