/* ================================================================
   MediTech Access – Custom Stylesheet
   Recreated from the original Unify-based MTAC design
   Using Bootstrap 5 + Raleway + corporate colours
   ================================================================ */

:root {
  --mtac-red: #9b191b;
  --mtac-red-hover: #7d1416;
  --mtac-dark: #3c3c3c;
  --mtac-light-gray: #f7f7f7;
  --mtac-link: #1e73be;
  --mtac-body-font: 'Raleway', sans-serif;
}

/* ── Global ── */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--mtac-body-font);
  color: var(--mtac-dark);
  font-size: 15px;
  line-height: 1.8;
}

::selection {
  background: #03556d;
  color: #fff;
}

a {
  color: var(--mtac-link);
  transition: color 0.2s;
}
a:hover {
  color: var(--mtac-red);
}

.container-fluid {
  max-width: 94%;
}

.container-920 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--mtac-red);
  font-weight: 400;
}

.doc-title {
  font-size: 2.667rem;
  font-weight: 900;
  text-align: center;
  color: var(--mtac-red);
}

.section-hero-title {
  font-size: 2.667rem;
  font-weight: 900;
}

.doc-section-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.doc-description {
  font-size: 1.2rem;
}

/* ── Colour utilities ── */
.text-mtac-red { color: var(--mtac-red) !important; }
.text-white-75 { color: rgba(255, 255, 255, 0.75); }

.mtac-bg-red { background-color: var(--mtac-red); }
.mtac-bg-darkgrey { background-color: var(--mtac-dark); }
.mtac-bg-light-gray { background-color: var(--mtac-light-gray); }

/* ── Buttons ── */
.btn-mtac-red {
  background-color: var(--mtac-red);
  border-color: var(--mtac-red);
  color: #fff;
}
.btn-mtac-red:hover {
  background-color: var(--mtac-red-hover);
  border-color: var(--mtac-red-hover);
  color: #fff;
}
.btn-mtac-outline {
  background-color: transparent;
  border: 2px solid var(--mtac-red);
  color: var(--mtac-red);
}
.btn-mtac-outline:hover {
  background-color: var(--mtac-red);
  color: #fff;
}

/* ── Header / Navbar ── */
.mtac-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo-header {
  min-width: 160px;
  max-width: 200px;
  height: auto;
}

.navbar .nav-link {
  font-size: 0.933rem;
  letter-spacing: 0.056rem;
  color: var(--mtac-dark);
  font-weight: 500;
  padding: 0.5rem 0.8rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--mtac-red);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--mtac-red);
  background-color: var(--mtac-light-gray);
}

.dropdown-menu {
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-width: 180px;
  padding: 0.25rem 0;
  font-size: 0.88rem;
  border-radius: 2px;
  margin-top: 0;
}

.dropdown-item {
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
}

/* ── Hover dropdowns (desktop) – no caret arrow ── */
@media (min-width: 992px) {
  .nav-hover-dropdown > .nav-link {
    /* Remove Bootstrap caret */
    pointer-events: auto;
  }
  .nav-hover-dropdown > .nav-link::after {
    display: none !important;
  }

  .nav-hover-dropdown:hover > .dropdown-menu,
  .nav-hover-dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  .nav-hover-dropdown .dropdown-menu {
    margin-top: 0;
  }
}

/* ── Language switch inline ── */
.lang-switch .nav-link {
  font-size: 0.933rem;
  letter-spacing: 0.05rem;
}
.lang-switch a:hover {
  color: var(--mtac-red) !important;
}

/* ── Hero Split Banner ── */
.mtac-hero-split {
  overflow: hidden;
}

.hero-split-red {
  background-color: var(--mtac-red);
  min-height: 420px;
}

.hero-split-title {
  color: #fff !important;
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  line-height: 1.05;
}

.hero-split-tagline,
.hero-split-tagline .rich-text,
.hero-split-tagline p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-split-content .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  letter-spacing: 0.04rem;
  padding: 0.5rem 1.4rem;
}
.hero-split-content .btn-outline-light:hover {
  background: #fff;
  color: var(--mtac-red);
}

.hero-split-image {
  overflow: hidden;
  min-height: 420px;
  position: relative;
}
.hero-split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

@media (max-width: 991.98px) {
  .hero-split-red {
    min-height: 320px;
  }
  .hero-split-title {
    font-size: 2.6rem;
  }
  .hero-split-image {
    min-height: 280px;
  }
}

.hero-block {
  position: relative;
  overflow: hidden;
}
.hero-block.has-bg {
  min-height: 400px;
}
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-block .container {
  z-index: 1;
}

/* Hero block as section divider (e.g. "Success Story" red banner) */
.page-about .hero-block:not(.has-bg) {
  background-color: var(--mtac-red);
  color: #fff;
  padding: 2.5rem 0;
}
.page-about .hero-block:not(.has-bg) .hero-title {
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 0.06rem;
  margin: 0;
}

/* ── Services / Icon Blocks ── */
.mtac-services {
  background: #fff;
}

.icon-block {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.icon-block:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.icon-block-icon {
  font-size: 2.5rem;
  color: var(--mtac-red);
}

.icon-block-img {
  height: 50px;
  width: auto;
}

.icon-block-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mtac-dark);
  letter-spacing: 0.03rem;
}

.icon-block-link {
  text-decoration: none;
  color: inherit;
}
.icon-block-link:hover .icon-block-title {
  color: var(--mtac-red);
}

/* ── Who We Are (overlap style) ── */
.mtac-whoweare {
  margin-top: 2rem;
}

.whoweare-wrapper {
  position: relative;
}

.whoweare-photo {
  display: block;
  min-height: 400px;
  object-fit: cover;
}

.whoweare-details-overlay {
  background: var(--mtac-dark);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .whoweare-details-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    max-width: 520px;
    z-index: 2;
  }
}

@media (max-width: 991.98px) {
  .whoweare-photo {
    min-height: 280px;
  }
}

/* ── Video Section ── */
.mtac-video {
  background: #f8f8f8;
}
.video-wrapper {
  max-width: 900px;
}
.video-wrapper video {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  border-radius: 0.375rem;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}
.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--mtac-red);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  padding-left: 6px;
}
.video-play-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

/* ── News Cards ── */
.news-card {
  background: transparent;
  border: 1px solid #6d6d6d;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.news-card:hover {
  border-color: var(--mtac-red);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-card-title {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mtac-news .news-card-title:hover {
  color: var(--mtac-red);
}

.news-date {
  font-size: 0.82rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
}

/* ── News Article ── */
.newsdoc-container {
  margin-top: 120px;
  max-width: 950px;
  padding: 0 15px;
}

.newsdoc-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
}

.all-posts-nav a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04rem;
}

.avatar-news {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mtac-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #999;
}

.article-body {
  font-size: 1rem;
  line-height: 1.9;
}
.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 1.5rem;
}
.article-body img {
  max-width: 100%;
  height: auto;
}

/* ── Team Members ── */
.team-member-block {
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
}
.team-member-block:last-child {
  border-bottom: none;
}

.team-photo-wrapper {
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  width: 100%;
}

.team-bio {
  font-size: 0.93rem;
  line-height: 1.8;
}

.team-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mtac-red);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.team-linkedin-btn:hover {
  background: var(--mtac-red-hover);
  color: #fff;
}

.team-contact {
  font-size: 0.85rem;
}

/* ── Timeline ── */
.timeline-year {
  font-size: 1.4rem;
}

/* Horizontal timeline row with connecting line */
.timeline-row {
  position: relative;
}
.timeline-row::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #ddd;
  z-index: 0;
}
.timeline-row .timeline-block {
  position: relative;
  z-index: 1;
  background: #fff;
}
.timeline-row .icon-block-img {
  height: 40px;
  width: auto;
}

/* ── Circle Image Cards (values / services) ── */
.circle-img-wrapper {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 50%;
}
.circle-img-wrapper img {
  object-fit: cover;
}

.service-circle-icon {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--mtac-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--mtac-red);
  transition: background-color 0.3s;
}
.service-circle-card:hover .service-circle-icon {
  background-color: #eee;
}

.values-row .circle-image-block {
  height: 100%;
}
.values-row .circle-image-block h5 {
  font-size: 0.95rem;
  letter-spacing: 0.03rem;
}

/* ── Image Text Block ── */
.image-text-block {
  overflow: hidden;
}
.image-text-block:nth-child(even) {
  background-color: var(--mtac-light-gray);
}
.image-text-block .row {
  min-height: 350px;
}
.image-text-img-col img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-text-content-col {
  padding: 2rem;
  font-size: 0.93rem;
}
.image-text-content-col ul {
  padding-left: 1.2rem;
}

/* ── Contact Page ── */
.titleimg-wrapper {
  max-height: 350px;
  overflow: hidden;
}
.titleimg-wrapper img {
  width: 100%;
  object-fit: cover;
}

.contact-us-title {
  font-size: 1.467rem;
  font-weight: 700;
}

/* ── Footer ── */
.mtac-footer {
  border-top: 3px solid var(--mtac-red);
  padding-top: 2rem;
}

.footer-hint-company {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--mtac-dark);
}

.footer-links a {
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--mtac-red) !important;
}

/* ── Page Header Banner (image + overlay title) ── */
.page-header-banner {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}
.header-banner-img {
  position: relative;
}
.header-banner-img img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.55) blur(1px);
}
.header-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.header-banner-title {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}
.header-banner-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  max-width: 800px;
  margin: 0 auto;
}
.header-banner-intro {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  max-width: 750px;
  margin: 1rem auto 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Legacy fallback */
.page-header-img {
  max-height: 400px;
  overflow: hidden;
}
.page-header-img img {
  width: 100%;
  object-fit: cover;
}

/* ── CTA Block ── */
.cta-block h3 {
  color: inherit;
}

/* ── Section Dividers ── */
hr.section-divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 0 auto;
  max-width: 80%;
}

/* ── Rich Text Content ── */
.content-body .rich-text img {
  max-width: 100%;
  height: auto;
}

/* ── News Index Year Filters ── */
.page-news-index .btn-sm {
  font-size: 0.82rem;
  padding: 0.25rem 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .doc-title {
    font-size: 2rem;
  }
  .whoweare-details {
    min-height: auto;
  }
  .newsdoc-container {
    margin-top: 80px;
  }
}

@media (max-width: 767.98px) {
  .doc-title {
    font-size: 1.6rem;
  }
  .footer-hint-company {
    font-size: 1.4rem;
  }
  .logo-header {
    min-width: 120px;
    max-width: 150px;
  }
}

/* Offset scroll target for sticky header */
.image-text-block[id] {
  scroll-margin-top: 90px;
}

/* ── Service section tabs ── */
.service-section-tabs {
  border-bottom: 2px solid var(--mtac-light-gray);
  padding-bottom: 0.75rem;
}
.service-tab-link {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.service-section-tabs .service-tab-link:hover {
  background-color: var(--mtac-red);
  color: #fff;
}
/* Offset scroll target for sticky header */
.image-text-block[id] {
  scroll-margin-top: 90px;
}
