:root {
  --mhedia-primary: #0097a7;
  --mhedia-secondary: #03c0d5;
  --mhedia-dark: #072a33;
  --mhedia-ink: #0b2230;
  --mhedia-soft: #f2fbfd;
}

:root,
body {
  --tj-color-theme-primary: var(--mhedia-primary) !important;
  --tj-color-theme-bg: var(--mhedia-soft) !important;
  --tj-color-theme-bg-2: #e5f7fa !important;
  --tj-color-theme-bg-dark: var(--mhedia-dark) !important;
  --tj-color-heading-primary: var(--mhedia-ink) !important;
}

body {
  background: radial-gradient(circle at top right, #d8f4fa 0%, #eefbfd 36%, #f7fdff 100%);
}

.logo-area .site-logo img,
.site-logo .primary_logo img {
  max-height: 44px;
  width: auto;
}

.site_navigation nav ul:not(.sub-menu)>li.current-menu-item>a,
.site_navigation nav ul:not(.sub-menu)>li>a:hover,
.sec_subtitle,
.sec_subtitle span,
.theme-color {
  color: var(--mhedia-primary) !important;
}

.hero_title,
.sec_title,
.tj-fz-h2,
.tj-fz-h3,
.tj-fz-h4,
.tj-fz-h5 {
  color: var(--mhedia-ink);
}

.tj-primary-btn,
.tj_icon_btn,
.tj-btn-primary,
.wpcf7-submit,
button[type="submit"] {
  background: linear-gradient(120deg, var(--mhedia-primary), var(--mhedia-secondary)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.tj-theme-dark,
.footer_area,
.footer-area,
.tj-footer-area {
  background: linear-gradient(135deg, #072a33, #0b4250) !important;
}

.contact-form-wrap,
.tj_contact_wrap,
.contact-form-box {
  box-shadow: 0 24px 50px rgba(8, 48, 58, 0.08);
  border-radius: 20px;
}

.mhedia-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mhedia-contact-notice {
  margin-bottom: 22px;
  border: 1px solid #a8e8c2;
  border-radius: 8px;
  background: #e5f9ed;
  color: #14582b;
  padding: 14px 16px;
  font-weight: 700;
}

.mhedia-contact-notice-error {
  border-color: #f0b4b4;
  background: #ffe8e8;
  color: #842222;
}

/* Premium readability pass */
.section_heading .sec_title {
  max-width: 22ch;
  line-height: 1.08;
}

.hero_title.fs-120 {
  font-size: clamp(52px, 6.8vw, 104px) !important;
  line-height: 0.96 !important;
}

.section_heading .sec_title.fs-230 {
  font-size: clamp(58px, 8.8vw, 132px) !important;
  line-height: 0.94 !important;
}

.section_heading .sec_title.fs-120 {
  font-size: clamp(42px, 5.4vw, 76px) !important;
  line-height: 1 !important;
}

.section_heading .sec_title:not(.fs-120):not(.fs-230) {
  font-size: clamp(36px, 4.3vw, 64px);
  line-height: 1.04;
}

.tj-fz-h4,
.blog_title.tj-fz-h4 {
  font-size: clamp(25px, 2.3vw, 38px) !important;
  line-height: 1.12 !important;
}

.tj-fz-h5,
.project_title.tj-fz-h5,
.tj_team_member .name.tj-fz-h5 {
  font-size: clamp(22px, 1.9vw, 31px) !important;
  line-height: 1.12 !important;
}

.section_heading .sec_subtitle {
  letter-spacing: 0;
  text-transform: uppercase;
}

.editor_text p,
.tj-el-desc,
.contact_info {
  color: #23404b;
  line-height: 1.68;
}

.tj_service_item .service_categories .category,
.tags .category,
.step_tags .category {
  border: 1px solid #bde8ef;
}

.widget_title,
.widget_title span,
.tj_footer_widget .flip-text {
  color: #e8f7fb;
}

@media (max-width: 767px) {
  .section_heading .sec_title {
    max-width: 100%;
  }
}

/* Keep visual blocks clean when source image ratios vary */
.h1_hero_shape_animation img,
.h1_hero_video video,
.tj_process_img img,
.tj_project_item .project_image img,
.tj_blog_item .blog_image img,
.tj_team_member .member_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h1_hero_video video {
  min-height: 340px;
}

.h1_hero_video .video-direct-link {
  margin-top: 14px;
  text-align: center;
}

.h1_hero_video .video-direct-link a {
  color: var(--mhedia-secondary);
  text-decoration: underline;
  font-weight: 600;
}

.tj_team_member .member_image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.tj_client_item a {
  text-decoration: none;
}

.mhedia-partner-name {
  display: block;
  margin-top: 8px;
  color: var(--mhedia-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.builder-page {
  background: #f7fdff;
}

.builder-section {
  padding: 90px 0;
  color: var(--mhedia-ink);
}

.builder-section[style*="max-width"] {
  margin-right: auto;
  margin-left: auto;
}

.builder-theme-soft {
  background: #eaf8fb;
}

.builder-theme-dark {
  background: #072a33;
  color: #fff;
}

.builder-theme-dark .builder-kicker,
.builder-theme-dark .builder-text,
.builder-theme-dark p,
.builder-theme-dark h1,
.builder-theme-dark h2,
.builder-theme-dark h3,
.builder-theme-dark a {
  color: #fff;
}

.builder-inner {
  display: grid;
  gap: 40px;
}

.builder-hero .builder-inner,
.builder-content .builder-inner {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  align-items: center;
}

.builder-layout-image_left .builder-split-copy,
.builder-layout-image_left .builder-hero-copy {
  order: 2;
}

.builder-layout-centered .builder-inner,
.builder-layout-full .builder-inner {
  grid-template-columns: 1fr;
  text-align: center;
}

.builder-layout-centered .builder-heading,
.builder-layout-centered .builder-text,
.builder-layout-centered .builder-hero-copy {
  margin-right: auto;
  margin-left: auto;
}

.builder-layout-full .container {
  max-width: none;
  width: 100%;
}

.builder-kicker {
  margin: 0 0 14px;
  color: var(--mhedia-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.builder-heading,
.builder-hero-copy,
.builder-split-copy {
  max-width: 820px;
}

.builder-section h1,
.builder-section h2 {
  margin: 0;
  color: inherit;
  font-family: var(--tj-ff-heading);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.builder-section h3 {
  margin: 0 0 12px;
  color: inherit;
  font-family: var(--tj-ff-heading);
  font-size: 28px;
  line-height: 1.15;
}

.builder-text {
  max-width: 760px;
  margin-top: 22px;
  color: #24434d;
  font-size: 19px;
  line-height: 1.7;
}

.builder-text p {
  margin: 0 0 18px;
}

.builder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 26px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--mhedia-primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.builder-media {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.builder-card {
  overflow: hidden;
  border: 1px solid #ccecf2;
  border-radius: 8px;
  background: #fff;
  color: var(--mhedia-ink);
  padding: 24px;
}

.builder-card img {
  width: calc(100% + 48px);
  max-width: none;
  height: 220px;
  margin: -24px -24px 22px;
  object-fit: cover;
  display: block;
}

.builder-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.builder-tags {
  color: var(--mhedia-primary);
  font-size: 14px;
  font-weight: 800;
}

.builder-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.builder-logo {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px solid #ccecf2;
  border-radius: 8px;
  background: #fff;
  color: var(--mhedia-ink);
  text-align: center;
  text-decoration: none;
  padding: 20px;
}

.builder-logo img {
  max-width: 120px;
  max-height: 72px;
  object-fit: contain;
}

.builder-contact-box {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid #ccecf2;
  border-radius: 8px;
  background: #fff;
}

.builder-contact-box a {
  color: var(--mhedia-primary);
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
}

.mhedia-project-modal-open {
  overflow: hidden;
}

.mhedia-project-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  padding: 28px;
}

.mhedia-project-modal.is-open {
  display: grid;
  place-items: center;
}

.mhedia-project-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 51, 0.72);
  backdrop-filter: blur(8px);
}

.mhedia-project-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(860px, calc(100vh - 56px));
  overflow: auto;
  border-radius: 8px;
  background: #f7fdff;
  color: var(--mhedia-ink);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.28);
  padding: 34px;
}

.mhedia-project-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  border: 0;
  border-radius: 8px;
  background: var(--mhedia-dark);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.mhedia-project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.mhedia-project-head span {
  grid-column: 1 / -1;
  color: var(--mhedia-primary);
  font-weight: 800;
  text-transform: uppercase;
}

.mhedia-project-head h2 {
  margin: 0;
  color: var(--mhedia-ink);
  font-family: var(--tj-ff-heading);
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1;
}

.mhedia-project-head strong {
  color: var(--mhedia-primary);
  white-space: nowrap;
}

.mhedia-project-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #24434d;
  font-size: 20px;
  line-height: 1.45;
}

.mhedia-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.mhedia-project-gallery img,
.mhedia-project-video {
  width: 100%;
  border-radius: 8px;
  background: #e6f6f8;
  object-fit: cover;
  display: block;
}

.mhedia-project-gallery img {
  aspect-ratio: 16 / 10;
}

.mhedia-project-gallery img:first-child {
  grid-column: 1 / -1;
  max-height: 520px;
}

.mhedia-project-video {
  max-height: 520px;
  margin-top: 16px;
}

.mhedia-project-text {
  max-width: 820px;
  margin-top: 30px;
  color: #243f49;
  font-size: 19px;
  line-height: 1.8;
}

.mhedia-project-text p {
  margin: 0 0 22px;
}

.mhedia-project-documents {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.mhedia-project-documents h3 {
  margin: 0;
  color: var(--mhedia-ink);
  font-family: var(--tj-ff-heading);
  font-size: 28px;
}

.mhedia-project-documents a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #bde8ef;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--mhedia-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mhedia-project-actions {
  margin-top: 32px;
}

@media (max-width: 991px) {
  .builder-hero .builder-inner,
  .builder-content .builder-inner,
  .builder-grid,
  .builder-logo-grid {
    grid-template-columns: 1fr;
  }

  .builder-section h1,
  .builder-section h2 {
    font-size: 52px;
  }

  .mhedia-project-head,
  .mhedia-project-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .builder-section {
    padding: 64px 0;
  }

  .builder-section h1,
  .builder-section h2 {
    font-size: 40px;
  }

  .builder-text {
    font-size: 17px;
  }

  .mhedia-project-modal {
    padding: 12px;
  }

  .mhedia-project-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .mhedia-project-lead,
  .mhedia-project-text {
    font-size: 17px;
  }
}

.mhedia-article-main {
  background: linear-gradient(180deg, #eefbfd 0%, #ffffff 38%, #f6fcfd 100%);
}

.mhedia-article-hero {
  padding: 190px 0 70px;
}

.mhedia-article-kicker {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--mhedia-primary);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.mhedia-article-title {
  max-width: 980px;
  margin: 0;
  color: var(--mhedia-ink);
  font-family: var(--tj-ff-heading);
  font-size: clamp(48px, 6.8vw, 78px);
  line-height: 1;
}

.mhedia-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  color: #48616a;
  font-weight: 700;
}

.mhedia-article-meta img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.mhedia-article-meta span + span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 14px 2px 0;
  border-radius: 50%;
  background: var(--mhedia-primary);
}

.mhedia-article-lead {
  max-width: 760px;
  margin: 34px 0 0;
  color: #24434d;
  font-size: 21px;
  line-height: 1.45;
}

.mhedia-article-media {
  padding: 0 0 70px;
}

.mhedia-article-media img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.mhedia-article-body {
  padding: 0 0 100px;
}

.mhedia-article-content {
  max-width: 820px;
  color: #243f49;
  font-size: 18px;
  line-height: 1.85;
}

.mhedia-article-content p {
  margin: 0 0 28px;
}

.mhedia-article-content h2,
.mhedia-article-content h3,
.mhedia-article-content h4 {
  margin: 44px 0 18px;
  color: var(--mhedia-ink);
  font-family: var(--tj-ff-heading);
  line-height: 1.08;
}

.mhedia-article-content h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.mhedia-article-content h3 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.mhedia-article-content h4 {
  font-size: 25px;
}

.mhedia-article-content ul,
.mhedia-article-content ol {
  margin: 0 0 30px;
  padding-left: 28px;
}

.mhedia-article-content li {
  margin-bottom: 10px;
}

.mhedia-article-content blockquote {
  margin: 42px 0;
  border-left: 5px solid var(--mhedia-primary);
  background: #eaf8fb;
  color: var(--mhedia-ink);
  padding: 24px 28px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
}

.mhedia-article-content a {
  color: var(--mhedia-primary);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.mhedia-article-content .article-lead {
  display: block;
  margin: 0 0 34px;
  color: #183740;
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.35;
  font-weight: 800;
}

.mhedia-article-content .article-small {
  display: inline;
  color: #56727b;
  font-size: 0.88em;
  line-height: 1.6;
}

.mhedia-article-content .article-large {
  display: block;
  margin: 34px 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.mhedia-article-content .article-xlarge {
  display: block;
  margin: 40px 0;
  color: var(--mhedia-ink);
  font-family: var(--tj-ff-heading);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
}

.mhedia-article-content .article-highlight {
  display: inline;
  border-radius: 6px;
  background: #dff6fb;
  color: #073844;
  padding: 0 .22em;
  font-weight: 900;
}

.mhedia-article-content .article-gradient {
  background: linear-gradient(120deg, var(--mhedia-primary), #04c9dd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--mhedia-primary);
  font-weight: 900;
}

.mhedia-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
}

.mhedia-related-articles {
  padding: 90px 0;
  background: #eaf8fb;
}

.mhedia-related-articles .section_heading {
  margin-bottom: 36px;
}

.mhedia-related-articles .sec_title {
  max-width: 720px;
}

.mhedia-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mhedia-related-item {
  overflow: hidden;
  border: 1px solid #ccecf2;
  border-radius: 8px;
  background: #fff;
}

.mhedia-related-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mhedia-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mhedia-related-content {
  padding: 22px;
}

.mhedia-related-content span,
.mhedia-related-link {
  color: var(--mhedia-primary);
  font-size: 14px;
  font-weight: 700;
}

.mhedia-related-content h3 {
  margin: 10px 0 18px;
  font-family: var(--tj-ff-heading);
  font-size: 24px;
  line-height: 1.15;
}

.mhedia-related-content p {
  margin: 0 0 18px;
  color: #3d5963;
  line-height: 1.6;
}

.mhedia-related-content h3 a,
.mhedia-related-link {
  text-decoration: none;
}

.mhedia-related-content h3 a {
  color: var(--mhedia-ink);
}

.mhedia-archive-hero {
  padding-bottom: 88px;
}

.mhedia-archive-articles {
  background: #f6fcfd;
}

@media (max-width: 991px) {
  .mhedia-article-hero {
    padding-top: 150px;
  }

  .mhedia-article-title {
    font-size: 50px;
  }

  .mhedia-article-lead {
    font-size: 21px;
  }

  .mhedia-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mhedia-article-hero {
    padding: 130px 0 48px;
  }

  .mhedia-article-media,
  .mhedia-article-body {
    padding-bottom: 56px;
  }

  .mhedia-article-content {
    font-size: 18px;
  }

  .mhedia-article-title {
    font-size: 38px;
  }

  .mhedia-article-lead {
    font-size: 19px;
  }

  .mhedia-article-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
