/**
 * Mediox Index-2 Professional Style
 * Matches https://pixydrops.com/mediox-html/index-2.html
 */

:root {
  --mediox-black: #d4a52e;
  --mediox-base: #f7c637;
  --mediox-white: #FFFFFF;
  --mediox-primary: #f7c637;
}

/* Page background */
.mediox-index2 .main-content {
  background: #f0f4f8;
}

.mediox-index2 .main-content::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(13, 71, 161, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 131, 143, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Mediox Index-2 header - main-header--three */
.main-header {
  position: relative;
  z-index: 1000;
}

.main-header.sticky-header {
  position: sticky;
  top: 0;
}

.header-mediox-container {
  max-width: 1651px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  overflow: visible;
}

.header-mediox-container.container-fluid {
  max-width: 100%;
  padding: 0 24px;
}

.main-header--three {
  position: relative;
  background-color: var(--mediox-base);
  border-top: 4px solid var(--mediox-black);
  font-family: 'Manrope', var(--font-sans);
}

.main-header__inner {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-header__left {
  display: flex;
  align-items: center;
  margin-right: 40px;
  padding-left: 176px; /* Align logo pocket left edge with container */
}

.main-header__sidebar-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  margin-left: 80px;
  margin-right: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}

.main-header__sidebar-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mediox-white);
  border-radius: 20px;
  transition: all 0.3s;
}

.main-header__sidebar-btn span:nth-child(1) {
  width: 14px;
}

.main-header__sidebar-btn:hover span {
  background: var(--mediox-black);
  width: 100%;
}

.main-header__logo {
  position: relative;
}

.main-header__logo a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--mediox-white);
  font-size: 1rem;
  font-weight: 300;
  border: 1px solid rgba(51, 193, 237, 0.6);
  border-radius: 4px;
}

.main-header__logo::before {
  content: "";
  width: 330px;
  height: calc(100% + 60px);
  background-color: var(--mediox-black);
  position: absolute;
  top: calc(50% - 1px);
  left: -176px;
  transform: translateY(-50%);
}

.main-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--mediox-white);
}

.main-header__logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mediox-white);
}

.main-header__logo-tagline {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
  font-weight: 500;
}

/* Smooth outward curve - right edge of logo pocket (Mediox logo__shape) */
.main-header__logo__shape {
  width: 66px;
  height: 118px;
  position: absolute;
  top: -43px;
  right: -55px;
  background-color: var(--mediox-black);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 118"><g transform="translate(0,118) scale(0.05,-0.05)"><path d="M0 1180 l0 -1181 55 13 c195 47 214 78 625 1005 196 443 373 824 393 847 43 47 171 116 216 116 26 0 31 32 31 190 l0 190 -660 0 -660 0 0 -1180z"/></g></svg>');
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 118"><g transform="translate(0,118) scale(0.05,-0.05)"><path d="M0 1180 l0 -1181 55 13 c195 47 214 78 625 1005 196 443 373 824 393 847 43 47 171 116 216 116 26 0 31 32 31 190 l0 190 -660 0 -660 0 0 -1180z"/></g></svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top center;
  mask-position: top center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.main-header__right {
  display: flex;
  align-items: center;
}

.main-header__nav {
  margin-right: 59px;
}

.main-menu__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-menu__list > li + li {
  margin-left: 38px;
}

.main-menu__list > li > a {
  color: var(--mediox-white);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.main-menu__list > li.current > a,
.main-menu__list > li:hover > a {
  color: var(--mediox-black);
}

.main-header__search {
  font-size: 16px;
  color: var(--mediox-white);
  margin-left: 40px;
  transition: color 0.3s;
}

.main-header__search:hover {
  color: var(--mediox-black);
}

.main-header__btn {
  margin-left: 90px;
  background-color: var(--mediox-black) !important;
  color: var(--mediox-white) !important;
  padding: 12px 20px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.main-header__btn:hover {
  color: var(--mediox-base) !important;
}

.main-header__btn .mediox-btn__icon {
  font-size: 11px;
}

.mobile-nav__btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.mobile-nav__btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mediox-white);
  border-radius: 20px;
}

/* Mobile */
@media (max-width: 1199px) {
  .main-header__inner {
    padding: 23px 0;
  }

  .main-header__left {
    margin-right: 0;
    padding-left: 120px;
  }

  .main-header__logo::before {
    left: -120px;
    width: 280px;
    height: calc(100% + 4px);
  }

  .main-header__sidebar-btn {
    display: none;
  }

  .main-header__nav {
    margin-right: 0;
    display: none;
  }

  .main-header__nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mediox-base);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .main-menu__list {
    flex-direction: column;
  }

  .main-menu__list > li + li {
    margin-left: 0;
  }

  .main-menu__list > li > a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .main-header__search {
    margin-left: 30px;
  }

  .main-header__btn {
    margin-left: 30px;
  }

  .mobile-nav__btn {
    display: flex;
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  .main-header__sidebar-btn {
    display: flex;
  }

  .mobile-nav__btn {
    display: none;
  }
}

@media (max-width: 991px) {
  .main-header__btn {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .main-header__left {
    padding-left: 80px;
  }

  .main-header__logo::before {
    left: -80px;
    width: 220px;
  }
}

/* Hero - Rounded banner with image background */
.hero-mediox2 {
  margin: var(--spacing-xl);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
  .hero-mediox2 {
    margin: var(--spacing-xl) var(--spacing-2xl);
  }
}

/* Real medical/radiology background image */
.hero-mediox2__bg {
  background: #f7c637;
}

.hero-mediox2__bg-img {
  background-image: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?w=1920');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.hero-mediox2__bg-overlay {
  background: linear-gradient(90deg, rgba(10, 34, 65, 0.92) 0%, rgba(10, 34, 65, 0.78) 50%, rgba(10, 34, 65, 0.45) 100%);
}

/* Label - white like "24/7 EMERGENCY SERVICE" */
.hero-mediox2__label {
  color: rgba(255,255,255,0.95) !important;
  font-size: 0.8125rem;
}

/* Slider arrows - WHITE circular with dark arrows */
.hero-mediox2__arrow {
  background: #fff !important;
  border: none !important;
  color: #37474f !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-mediox2__arrow:hover {
  background: #f5f5f5 !important;
  color: #f7c637 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Info box - solid dark blue, professional (matches demo) */
.hero-mediox2__info-box {
  background: var(--mediox-black) !important;
  border: none !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border-radius: 20px;
}

.hero-mediox2__info-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, var(--mediox-base) 50%);
  opacity: 0.7;
  border-radius: 0 20px 0 0;
}
