/* ==========================================================================
   WZ-MED-001 (하늘마루안과의원) — Main Stylesheet
   Reference: Medin Medeye Ophthalmology Template
   ========================================================================== */

:root {
  --medeye-blue: #26a7eb;
  --medeye-blue-dark: #1793d6;
  --medeye-blue-light: #6cc3f1;
  --medeye-topline-text: #bfe9ff;
  --medeye-heading: #444444;
  --medeye-body: #787878;
  --medeye-dark-panel: #444444;
  --medeye-grey-bg: #f6f7f5;
  --medeye-footer-bg: #f7f7f7;
  --medeye-badge-grey: #707070;
  --medeye-border: #e5e5e5;
  --medeye-white: #ffffff;
  --font-heading: 'Poppins', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  color: var(--medeye-body);
  background-color: var(--medeye-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.noScroll,
body.modal-open {
  overflow: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--medeye-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

a {
  color: var(--medeye-blue);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a:hover {
  color: var(--medeye-blue-dark);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--medeye-blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: 15px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--medeye-heading);
  line-height: 1.25;
}

h1, .h1 {
  font-size: 36px;
  line-height: 42px;
}

h2, .h2 {
  font-size: 30px;
  line-height: 38px;
}

h3, .h3 {
  font-size: 26px;
  line-height: 32px;
}

h4, .h4 {
  font-size: 22px;
  line-height: 30px;
}

h5, .h5 {
  font-size: 18px;
  line-height: 24px;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 20px;
}

.theme-color {
  color: var(--medeye-blue) !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-nowrap {
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  .text-md-left {
    text-align: left !important;
  }
  .text-md-right {
    text-align: right !important;
  }
}

/* ==========================================================================
   Grid & Layout Utilities (Bootstrap 4 Compatible)
   ========================================================================== */

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.row-sm-space {
  margin-right: -7.5px;
  margin-left: -7.5px;
}
.row-sm-space > [class*="col"] {
  padding-right: 7.5px;
  padding-left: 7.5px;
}

.row-xs-space {
  margin-right: -5px;
  margin-left: -5px;
}
.row-xs-space > [class*="col"] {
  padding-right: 5px;
  padding-left: 5px;
}

.col, .col-auto,
.col-sm, .col-sm-auto, .col-sm-4, .col-sm-6, .col-sm-8,
.col-md, .col-md-auto, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9,
.col-lg, .col-lg-auto, .col-lg-2, .col-lg-4, .col-lg-6,
.col-xl-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

@media (min-width: 576px) {
  .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .order-sm-1 { order: 1; }
  .order-sm-2 { order: 2; }
}

@media (min-width: 768px) {
  .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

@media (min-width: 992px) {
  .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1200px) {
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .d-xl-none { display: none !important; }
}

.order-1 { order: 1; }
.order-2 { order: 2; }

/* Display & Flex Utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.ml-auto { margin-left: auto !important; }

@media (min-width: 576px) {
  .d-sm-inline { display: inline !important; }
}
@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-none { display: none !important; }
  .flex-md-row { flex-direction: row !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-block { display: block !important; }
  .align-items-lg-center { align-items: center !important; }
  .flex-lg-column { flex-direction: column !important; }
}

/* Spacing Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mt-4 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 20px !important; }
.p-0 { padding: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 10px !important; padding-bottom: 10px !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-15 { padding-left: 15px !important; padding-right: 15px !important; }

@media (min-width: 576px) {
  .mt-sm-0 { margin-top: 0 !important; }
  .mt-sm-3 { margin-top: 30px !important; }
  .mt-sm-4 { margin-top: 40px !important; }
}
@media (min-width: 768px) {
  .mt-md-0 { margin-top: 0 !important; }
  .mt-md-4 { margin-top: 40px !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .py-md-2 { padding-top: 20px !important; padding-bottom: 20px !important; }
}
@media (min-width: 992px) {
  .mt-lg-0 { margin-top: 0 !important; }
  .mt-lg-2 { margin-top: 20px !important; }
  .mt-lg-3 { margin-top: 30px !important; }
  .mt-lg-4 { margin-top: 40px !important; }
  .mt-lg-5 { margin-top: 50px !important; }
  .pt-lg-6 { padding-top: 60px !important; }
  .pr-lg-3 { padding-right: 30px !important; }
  .px-lg-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .px-lg-8 { padding-left: 80px !important; padding-right: 80px !important; }
}
@media (min-width: 1200px) {
  .pt-xl-1 { padding-top: 10px !important; }
}

/* ==========================================================================
   Header & Member Bar (TPL-001 4-1절)
   ========================================================================== */

.header {
  position: relative;
  z-index: 1010;
  background: var(--medeye-white);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
}

.header-topline {
  background-color: var(--medeye-blue);
  color: var(--medeye-topline-text);
  font-size: 14px;
  line-height: 17px;
  min-height: 38px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
}

.header-info,
.header-phone {
  display: inline-flex;
  align-items: center;
  color: var(--medeye-topline-text);
}

.header-phone {
  margin-left: 35px;
}

.header-topline .header-info + .header-info,
.header-topline .header-phone + .header-info {
  margin-left: 35px;
}

.header-info i,
.header-phone i {
  color: var(--medeye-white);
  font-size: 14px;
  margin-right: 8px;
}

.header-topline a {
  color: var(--medeye-topline-text);
}

.header-topline a:hover {
  color: var(--medeye-white);
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-social .hovicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--medeye-blue);
  font-size: 12px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-social .hovicon:hover {
  background: var(--medeye-white);
  color: var(--medeye-blue-dark);
  transform: translateY(-1px);
}

/* Member Bar (.member-links / .member-bar inside .header-topline) */
.member-links {
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  gap: 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.member-links a {
  color: var(--medeye-white);
  text-decoration: none;
  white-space: nowrap;
}

.member-links a:hover {
  color: #e2f5ff;
  text-decoration: underline;
}

/* Hide member-links when html.no-member-bar is active (Design A) */
html.no-member-bar .member-links,
html.no-member-bar .member-bar {
  display: none !important;
}

/* On mobile (<992px):
   - Design B (default): .header-topline stays visible as a slim 34px bar showing .member-links on the right
   - Design A (html.no-member-bar or if .member-links is removed): .header-topline is hidden on mobile just like reference */
@media (max-width: 991.98px) {
  .header-topline {
    min-height: 34px;
    padding: 4px 0;
  }
  .header-topline-left,
  .header-topline .header-social {
    display: none !important;
  }
  .member-links {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    font-size: 12px;
  }
  html.no-member-bar .header-topline {
    display: none !important;
  }
  .header-topline:not(:has(.member-links)) {
    display: none !important;
  }
}

/* Header Main Content */
.header-content {
  padding: 28px 0;
  background: var(--medeye-white);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

body.stickNav .header-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  padding: 12px 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.header-logo {
  display: inline-flex;
  align-items: center;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.navbar {
  padding: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 52px;
  color: var(--medeye-heading);
  padding: 0 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link:hover {
  color: var(--medeye-blue);
}

.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--medeye-heading);
  padding: 8px;
  cursor: pointer;
}

/* Header Search */
.header-search {
  position: relative;
  margin-left: 16px;
}

.header-search .form-inline {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search > .form-inline > i.icon-search {
  font-size: 18px;
  color: var(--medeye-heading);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.header-search > .form-inline > i.icon-search:hover {
  color: var(--medeye-blue);
}

.header-search input[type="text"] {
  position: absolute;
  right: 0;
  top: 100%;
  width: 240px;
  height: 40px;
  padding: 6px 40px 6px 14px;
  border: 1px solid var(--medeye-border);
  border-radius: 20px;
  background: var(--medeye-white);
  font-size: 14px;
  color: var(--medeye-heading);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 1030;
}

.header-search button[type="submit"] {
  position: absolute;
  right: 6px;
  top: calc(100% + 4px);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--medeye-blue);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1031;
}

.header-search.opened input[type="text"],
.header-search.opened button[type="submit"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Header & Drawer (<992px) */
@media (max-width: 991.98px) {
  .header-content {
    padding: 14px 0;
    position: relative;
  }
  .header-content .row {
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .header-logo img {
    height: 24px;
    width: auto;
  }
  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1025;
  }
  .header-search {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    z-index: 1025;
  }
  .header-nav-wrap {
    width: 100%;
    position: static;
  }
  .header-nav {
    width: 100%;
  }
  .navbar-collapse {
    display: none;
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    background: var(--medeye-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 16px 20px 24px;
    z-index: 1020;
  }
  html.no-member-bar .navbar-collapse {
    top: 78px;
    max-height: calc(100vh - 78px);
  }
  .navbar-collapse.show {
    display: block;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .navbar-nav .nav-link {
    line-height: 44px;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 8px;
  }
}

/* ==========================================================================
   QuickLinks Bar (Desktop Right Floating & Mobile Top Bar)
   ========================================================================== */

.quickLinks-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 98px;
  height: 762px;
  z-index: 100;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.quickLinks {
  width: 98px;
  pointer-events: auto;
  position: relative;
}

.quickLinks .container {
  padding: 0;
  width: 98px;
  max-width: 98px;
}

.quickLinks .row {
  flex-direction: column;
  margin: 0;
}

.quickLinks .col {
  padding: 0;
  width: 98px;
  flex: 0 0 auto;
  position: relative;
}

.quickLinks .col-close,
.quickLinks-open {
  display: none;
}

.quickLinks .link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  padding: 6px 8px;
  color: var(--medeye-white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  background-color: #17a8ea;
  transition: background-color 0.2s ease;
}

.quickLinks .col:nth-child(1) .link { background-color: #17a8ea; }
.quickLinks .col:nth-child(2) .link { background-color: #23b0ee; }
.quickLinks .col:nth-child(3) .link { background-color: #34b7f1; }
.quickLinks .col:nth-child(4) .link { background-color: #46bef3; }
.quickLinks .col:nth-child(5) .link { background-color: #58c6f5; }
.quickLinks .col:nth-child(6) .link { background-color: #6acdf7; }

.quickLinks .link i {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--medeye-white);
}

.quickLinks .link span {
  display: block;
  word-break: keep-all;
}

.quickLinks .col:hover > .link,
.quickLinks .col.hovered > .link,
.quickLinks .link.active {
  background-color: #0e8fc9 !important;
}

.quickLinks .link-drop {
  position: absolute;
  top: 0;
  right: 98px;
  width: 370px;
  background: var(--medeye-white);
  padding: 25px 28px;
  box-shadow: -5px 8px 25px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  z-index: 110;
  color: var(--medeye-body);
  text-align: left;
}

.quickLinks .col:nth-child(5) .link-drop,
.quickLinks .col:nth-child(6) .link-drop {
  top: auto;
  bottom: 0;
}

.quickLinks .col:hover > .link-drop,
.quickLinks .col.hovered > .link-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.link-drop-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--medeye-heading);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.link-drop-title i {
  color: var(--medeye-blue);
  font-size: 20px;
  margin-right: 10px;
}

.row-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.row-table tr {
  border-bottom: 1px solid #efefef;
}

.row-table tr:last-child {
  border-bottom: none;
}

.row-table td {
  padding: 7px 4px;
  color: var(--medeye-body);
}

.row-table td:first-child i {
  font-style: normal;
  font-weight: 500;
  color: var(--medeye-heading);
}

.row-table td:last-child {
  text-align: right;
  color: var(--medeye-heading);
  font-weight: 500;
}

.google-map {
  width: 100%;
  height: 270px;
  background: #eaf4fa;
  position: relative;
  overflow: hidden;
}

/* Mobile QuickLinks Top Bar (<992px) */
@media (max-width: 991.98px) {
  .header-quickLinks {
    position: relative;
    z-index: 1022;
  }
  .js-quickLinks-wrap-m .quickLinks {
    width: 100%;
  }
  .js-quickLinks-wrap-m .quickLinks .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .js-quickLinks-wrap-m .quickLinks .row {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .js-quickLinks-wrap-m .quickLinks .col {
    width: 16.666667%;
    flex: 1 1 16.666667%;
  }
  .js-quickLinks-wrap-m .quickLinks .link {
    width: 100%;
    height: 44px;
    padding: 4px;
  }
  .js-quickLinks-wrap-m .quickLinks .link i {
    font-size: 20px;
    margin-bottom: 0;
  }
  .js-quickLinks-wrap-m .quickLinks .link span {
    display: none;
  }
  .js-quickLinks-wrap-m .quickLinks .link-drop {
    display: none;
  }
  .quickLinks-top {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: var(--medeye-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    z-index: 1030;
  }
  .quickLinks-top .link-drop {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 20px 18px;
    box-shadow: none;
  }
}

/* ==========================================================================
   Main Hero Slider (#mainSliderWrapper)
   ========================================================================== */

.section.mt-0:first-child {
  position: relative;
}

#mainSliderWrapper {
  position: relative;
  width: 100%;
  height: 762px;
  overflow: hidden;
  background-color: #2c353d;
}

.loading-content {
  display: none;
}

.main-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
}

.main-slider .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.main-slider .img--holder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.main-slider .img--holder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 34, 44, 0.34);
}

.slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vert-wrap,
.vert {
  width: 100%;
}

.slide-txt1 {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 400;
  line-height: 68px;
  color: var(--medeye-white);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.slide-txt1 b {
  font-weight: 700;
}

.slide-txt2 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.48px;
  color: var(--medeye-white);
  margin-top: 25px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.slide-btn {
  margin-top: 42px;
}

.main-slider .slide.active .slide-txt1 {
  animation: medeyeFadeInDown 0.7s ease both;
}

.main-slider .slide.active .slide-txt2,
.main-slider .slide.active .slide-btn {
  animation: medeyeFadeInUp 0.7s 0.15s ease both;
}

@keyframes medeyeFadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes medeyeFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slider Dots */
.slider-dots,
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

#mainSlider .slider-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
}

.slider-dots button,
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: #d8d8d8;
  padding: 0;
  font-size: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dots button.active,
.carousel-dots button.active {
  background: var(--medeye-blue);
  transform: scale(1.15);
}

#mainSlider .slider-dots button {
  width: 9px;
  height: 9px;
  background: transparent;
  border: 1.5px solid var(--medeye-white);
}

#mainSlider .slider-dots button.active {
  background: var(--medeye-white);
}

@media (max-width: 991.98px) {
  #mainSliderWrapper {
    height: 360px;
  }
  .slide-txt1 {
    font-size: 30px;
    line-height: 38px;
  }
  .slide-txt2 {
    font-size: 14px;
    margin-top: 12px;
  }
  .slide-btn {
    margin-top: 20px;
  }
}

@media (max-width: 575.98px) {
  #mainSliderWrapper {
    height: 185px;
  }
  .slide-txt1 {
    font-size: 22px;
    line-height: 28px;
  }
  .slide-txt2,
  .slide-btn {
    display: none;
  }
  #mainSlider .slider-dots {
    bottom: 12px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0.5px;
  color: var(--medeye-white);
  background-color: var(--medeye-blue);
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 15px 38px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn:hover {
  background-color: var(--medeye-white);
  color: var(--medeye-blue);
  border-color: var(--medeye-blue);
}

.slide-btn .btn:hover {
  background-color: var(--medeye-blue-dark);
  color: var(--medeye-white);
  border-color: transparent;
}

.btn i.icon-right-arrow:first-child {
  display: none;
}

.btn i.icon-right-arrow:last-child {
  font-size: 12px;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.btn:hover i.icon-right-arrow:last-child {
  transform: translateX(4px);
}

.btn-sm {
  font-size: 13px;
  line-height: 20px;
  padding: 9px 24px;
  border-radius: 22px;
}

.btn-xs {
  font-size: 13px;
  line-height: 18px;
  padding: 7px 16px;
  border-radius: 16px;
}

.btn-gradient {
  background-image: linear-gradient(to right, #26a7eb 0%, #6cc3f1 100%);
  border: none;
  margin: 6px 0 14px;
}

.btn-gradient i.icon-placeholder2 {
  display: none;
}

.btn-gradient:hover {
  background-image: linear-gradient(to right, #1793d6 0%, #26a7eb 100%);
  color: var(--medeye-white);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.4px;
  color: var(--medeye-blue);
  text-decoration: none;
}

.btn-link i {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-link:hover {
  color: var(--medeye-heading);
}

.btn-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Sections, Promo Counter, & Watermark Headings
   ========================================================================== */

.page-content {
  overflow: hidden;
  width: 100%;
}

.section {
  position: relative;
  margin-top: 110px;
}

.section.bg-grey {
  background: var(--medeye-grey-bg) url("../images/bg-grey.webp") repeat;
  padding: 100px 0;
}

@media (max-width: 767.98px) {
  .section {
    margin-top: 64px;
  }
  .section.bg-grey {
    padding: 64px 0;
  }
}

/* Promo Text Counter Banner */
.promo-text {
  padding: 30px 0;
  text-align: center;
}

.promo-text h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 37px;
  color: var(--medeye-heading);
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-text h4 i {
  font-size: 38px;
  color: var(--medeye-heading);
  margin-right: 4px;
}

.promo-text .text-lg {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--medeye-blue);
}

.promo-text p {
  font-size: 16px;
  color: var(--medeye-body);
  margin: 0;
}

@media (max-width: 575.98px) {
  .promo-text {
    padding: 22px 0;
  }
  .promo-text h4 {
    font-size: 18px;
    line-height: 28px;
  }
  .promo-text h4 i {
    display: block;
    width: 100%;
    font-size: 36px;
    margin: 0 0 4px;
  }
  .promo-text .text-lg {
    font-size: 28px;
  }
  .promo-text p {
    font-size: 14px;
  }
}

/* Section Headings & Watermarks */
.title-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
}

.h-sub {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1px;
  color: var(--medeye-blue);
  margin-bottom: 14px;
}

.h-decor {
  position: relative;
  z-index: 2;
  width: 53px;
  height: 3px;
  background-color: var(--medeye-blue);
  margin: 18px auto 0;
}

.footer .h-decor {
  margin: 14px 0 22px;
}

.title-with-clone,
.title-left,
.reviews-title {
  position: relative;
  display: inline-block;
}

.title-with-clone::after,
.title-left::after,
.reviews-title::after {
  content: attr(data-title);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: #f6f7f5;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.bg-grey .title-with-clone::after {
  color: var(--medeye-white);
  left: 0;
  transform: translate(110px, -56%);
}

@media (max-width: 767.98px) {
  h1, .h1, .title-left {
    font-size: 26px;
    line-height: 34px;
  }
  .title-with-clone::after,
  .title-left::after,
  .reviews-title::after {
    font-size: 68px;
    left: 50% !important;
    transform: translate(-50%, -55%) !important;
  }
}

/* ==========================================================================
   Services Section (#servicesSection)
   ========================================================================== */

.services-cards-viewport {
  overflow: hidden;
  width: 100%;
}

.services-cards-track {
  display: flex;
  transition: transform 0.45s ease;
}

.service-card-slide {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.service-card-style3 {
  background: var(--medeye-white);
  padding: 26px 28px 30px;
  height: 338px;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card-style3.active,
.service-card-style3:hover {
  border-color: var(--medeye-blue);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.service-card-icon {
  font-size: 58px;
  line-height: 60px;
  color: #cfcfcf;
  height: 64px;
  display: flex;
  align-items: center;
}

.service-card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  color: var(--medeye-heading);
  margin: 18px 0 12px;
  transition: color 0.2s ease;
}

.service-card-style3.active .service-card-name {
  color: var(--medeye-blue);
}

.service-card-style3 p {
  font-size: 15px;
  line-height: 24px;
  color: var(--medeye-body);
  margin-bottom: auto;
}

.service-card-style3 .btn-link {
  margin-top: 20px;
}

.service-card-style3.active .btn-link {
  color: var(--medeye-heading);
}

.service-card-style3.active .btn-link i {
  color: var(--medeye-blue);
}

/* Right Service Info Panel (1/6 Counter) */
.service-info-carousel-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-info-carousel {
  position: relative;
}

.service-info {
  display: none;
  animation: fadeIn 0.35s ease;
}

.service-info.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.service-info-num {
  font-family: var(--font-body);
  font-size: 50px;
  font-weight: 700;
  line-height: 50px;
  color: var(--medeye-blue);
  margin-bottom: 26px;
}

.service-info p {
  font-size: 15px;
  line-height: 26px;
  color: var(--medeye-body);
}

.service-info-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.service-arrow-btn {
  width: 58px;
  height: 38px;
  border-radius: 20px;
  border: none;
  background: var(--medeye-white);
  color: var(--medeye-blue);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.service-arrow-btn:hover {
  background: var(--medeye-blue);
  color: var(--medeye-white);
}

@media (max-width: 991.98px) {
  .service-card-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .service-card-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .service-info-carousel-wrap {
    margin-top: 32px;
    text-align: center;
  }
  .service-info-arrows {
    display: none;
  }
}

/* ==========================================================================
   About Ophthalmology Tabs Section (#aboutSection)
   ========================================================================== */

.nav-pills-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nav-pills-simple .nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: 0.5px;
  color: var(--medeye-heading);
  padding: 0 25px;
  border-right: 1px solid var(--medeye-border);
  cursor: pointer;
}

.nav-pills-simple .nav-link:last-child {
  border-right: none;
}

.nav-pills-simple .nav-link.active,
.nav-pills-simple .nav-link:hover {
  color: var(--medeye-blue);
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  position: relative;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.tab-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.tab-pane > .row {
  position: relative;
  z-index: 1;
}

.about-media-wrap {
  position: relative;
  display: inline-block;
  padding-right: 40px;
}

.video-btn-circle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-40%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--medeye-white);
  color: var(--medeye-blue);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.35), 0 8px 25px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.video-btn-circle:hover {
  background: var(--medeye-blue);
  color: var(--medeye-white);
  transform: translateY(-40%) scale(1.05);
}

/* Marker Check List */
.marker-list-md {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.marker-list-md li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 24px;
  color: var(--medeye-heading);
}

.marker-list-md li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background-color: var(--medeye-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (min-width: 992px) {
  .two-col-list-lg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }
}

.collapsed-view-all-list {
  display: none;
}

@media (max-width: 767.98px) {
  .nav-pills-simple .nav-link {
    padding: 0 12px;
    font-size: 13px;
  }
  .about-media-wrap {
    padding-right: 15px;
    margin-bottom: 20px;
  }
  .video-btn-circle {
    width: 72px;
    height: 72px;
    font-size: 18px;
  }
  .marker-list-md.collapsed-md--3 li:nth-child(n+4) {
    display: none;
  }
  .marker-list-md.collapsed-md--3 li:nth-child(3) {
    opacity: 0.45;
  }
  .marker-list-md.collapsed-md--7 li:nth-child(n+8) {
    display: none;
  }
  .collapsed-view-all-list {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--medeye-body);
    text-decoration: underline;
  }
}

/* Prices Box (Tab C) */
.prices-box {
  background: var(--medeye-white);
  padding: 36px 28px 40px;
  margin: 10px 0 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  border-top: 3px solid var(--medeye-blue);
}

.prices-box-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--medeye-heading);
  margin-bottom: 16px;
}

.prices-box-price {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--medeye-blue);
  margin-bottom: 22px;
}

.prices-box-price sub {
  font-size: 16px;
  font-weight: 500;
  bottom: 0;
}

.prices-box-row {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: var(--medeye-body);
}

.prices-box-link {
  margin-top: 28px;
}

/* ==========================================================================
   Speciality Vertical Tabs Section (#specialitySection)
   ========================================================================== */

.tab-vert-wrap {
  background: var(--medeye-white);
  margin-top: 34px;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.03);
}

.tab-vert-wrap > .col-md-4 {
  background-color: var(--medeye-dark-panel);
}

.nav-pills-v {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  background-color: var(--medeye-dark-panel);
  height: 100%;
}

.nav-pills-v .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100px;
  padding: 36px 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: var(--medeye-white);
  border-bottom: 1px solid #575757;
  cursor: pointer;
}

.nav-pills-v .nav-link span {
  margin-right: 10px;
  font-weight: 600;
}

.nav-pills-v .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background-color: var(--medeye-blue);
  transition: width 0.35s ease;
}

.nav-pills-v .nav-link.active::after,
.nav-pills-v .nav-link:hover::after {
  width: 100%;
}

.tab-content-v {
  padding: 46px 50px;
}

.tab-content-v .nav-pills-v {
  display: none;
}

.tab-content-v h3 {
  font-size: 26px;
  margin-bottom: 18px;
}

.icn-text-vert {
  text-align: center;
  margin-top: 12px;
}

.icn-text-vert-icn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f8f9f8;
  color: var(--medeye-blue);
  font-size: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.icn-text-vert-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  color: var(--medeye-heading);
  margin: 0;
}

/* Mobile Accordion Behavior for Speciality (<768px) */
@media (max-width: 767.98px) {
  .tab-vert-wrap > .col-md-4 {
    display: none;
  }
  .tab-content-v {
    padding: 0;
  }
  .tab-content-v .tab-pane {
    display: block !important;
    opacity: 1 !important;
  }
  .tab-content-v .nav-pills-v {
    display: flex;
    padding: 0 20px;
  }
  .tab-content-v .nav-pills-v .nav-link {
    height: 60px;
    padding: 16px 0;
    font-size: 17px;
  }
  .tab-content-m {
    display: none;
    padding: 28px 20px 32px;
  }
  .tab-content-m.show {
    display: block;
  }
  .icn-text-vert {
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   Equipment Section (#equipmentSection)
   ========================================================================== */

.simple-content-carousel {
  position: relative;
  margin-top: 36px;
}

.simple-content-carousel-item {
  display: none;
}

.simple-content-carousel-item.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.simple-content-carousel-item h4 {
  font-size: 24px;
  font-weight: 600;
  color: var(--medeye-heading);
  margin-bottom: 16px;
}

.table-striped-custom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 15px;
  color: var(--medeye-heading);
}

.table-striped-custom th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 16px;
  color: var(--medeye-heading);
}

.table-striped-custom td {
  padding: 10px 16px;
  color: var(--medeye-body);
}

.table-striped-custom tbody tr:nth-child(even) {
  background-color: #f7f8f6;
}

/* ==========================================================================
   FAQ / Patient Information Section (#faqSection)
   ========================================================================== */

.banner-left {
  min-height: 756px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.faq-wrap {
  padding: 95px 80px;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-item > a {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--medeye-white);
  padding: 18px 44px 18px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--medeye-heading);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-item > a span:first-child {
  color: var(--medeye-blue);
  margin-right: 8px;
}

.faq-item > a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--medeye-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.faq-item > a.collapsed::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-item-content {
  display: none;
  padding: 20px 24px 14px 36px;
  font-size: 15px;
  line-height: 26px;
  color: var(--medeye-body);
}

.faq-item-content.show {
  display: block;
}

@media (max-width: 1199.98px) {
  .banner-left {
    min-height: 360px;
  }
  .faq-wrap {
    padding: 56px 24px;
  }
}

@media (max-width: 575.98px) {
  .banner-left {
    min-height: 220px;
  }
  .faq-wrap {
    padding: 40px 15px;
  }
  .faq-item > a {
    font-size: 15px;
    padding: 15px 38px 15px 16px;
  }
}

/* ==========================================================================
   Specialists Section (#specialistsSection)
   ========================================================================== */

.content-search {
  max-width: 280px;
  height: 43px;
  margin: 36px auto 0;
  border: 1px solid var(--medeye-border);
  background: var(--medeye-white);
}

.content-search .input-wrap {
  flex: 1;
}

.content-search .form-control {
  width: 100%;
  height: 41px;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--medeye-heading);
  background: transparent;
}

.content-search button {
  width: 42px;
  height: 41px;
  border: none;
  border-left: 1px solid var(--medeye-border);
  background: transparent;
  color: var(--medeye-blue);
  font-size: 16px;
  cursor: pointer;
}

.specialist-carousel2 {
  position: relative;
  margin: 0;
}

.doctor-box-h-wrap {
  display: none;
  width: 100%;
}

.doctor-box-h-wrap.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.doctor-box-h {
  display: flex;
  align-items: center;
  background: var(--medeye-white);
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.doctor-box-h-photo {
  flex: 0 0 45%;
  max-width: 45%;
}

.doctor-box-h-photo img {
  width: 100%;
  height: 479px;
  object-fit: cover;
  object-position: top center;
}

.doctor-box-h-info {
  flex: 0 0 55%;
  max-width: 55%;
  padding: 0 20px 0 50px;
}

.doctor-box-h-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--medeye-heading);
  margin-bottom: 24px;
}

.doctor-box-h-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doctor-box-h-table td {
  padding: 7px 14px;
  vertical-align: middle;
}

.doctor-box-h-table tr:nth-child(odd) {
  background-color: #f8f9f8;
}

.doctor-box-h-table td:first-child {
  font-weight: 600;
  color: var(--medeye-heading);
  width: 36%;
  white-space: nowrap;
}

.schedule-row span {
  display: flex;
  justify-content: space-between;
  max-width: 240px;
}

. schedule-row span span:last-child {
  color: var(--medeye-heading);
  font-weight: 500;
}

.contact-inline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-inline li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-inline i {
  color: #707070;
  font-size: 14px;
}

.doctor-box-h-booking {
  margin-top: 26px;
}

@media (max-width: 991.98px) {
  .doctor-box-h {
    flex-direction: column;
    padding: 20px;
  }
  .doctor-box-h-photo,
  .doctor-box-h-info {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
  .doctor-box-h-photo img {
    height: auto;
    max-height: 360px;
    margin-bottom: 22px;
  }
  .doctor-box-h-booking {
    text-align: center;
  }
}

/* ==========================================================================
   Clinic Testimonials Section (#testimonialsSection)
   ========================================================================== */

.reviews-style3-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 522px;
  overflow: hidden;
}

.reviews-left,
.reviews-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 360px;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.reviews-left {
  left: 0;
  background-position: left center;
}

.reviews-right {
  right: 0;
  background-position: right center;
}

.reviews-style3 {
  position: relative;
  z-index: 2;
  max-width: 750px;
  width: 100%;
  padding: 90px 20px 60px;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
}

.reviews-title-icon {
  font-family: Georgia, serif;
  font-size: 140px;
  font-weight: 700;
  line-height: 80px;
  color: var(--medeye-badge-grey);
  margin-bottom: 4px;
}

.reviews-carousel {
  margin-top: 28px;
}

.review {
  display: none;
}

.review.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.review-text {
  font-size: 19px;
  font-style: italic;
  line-height: 32px;
  color: #424242;
  margin-bottom: 24px;
  word-break: keep-all;
}

.review-author {
  font-size: 16px;
  color: var(--medeye-body);
}

.review-author-position {
  font-size: 16px;
  font-style: italic;
  color: var(--medeye-blue);
}

@media (max-width: 1199.98px) {
  .reviews-left,
  .reviews-right {
    width: 240px;
    opacity: 0.35;
  }
}

@media (max-width: 767.98px) {
  .reviews-style3-wrap {
    flex-direction: column;
    min-height: auto;
  }
  .reviews-left {
    position: relative;
    width: 100%;
    height: 230px;
    opacity: 1;
    background-position: center;
    margin-bottom: 10px;
  }
  .reviews-right {
    display: none;
  }
  .reviews-style3 {
    padding: 30px 15px 20px;
  }
  .review-text {
    font-size: 16px;
    line-height: 27px;
  }
}

/* ==========================================================================
   Clinic Events Section (#eventsSection)
   ========================================================================== */

.events-viewport {
  overflow: hidden;
  width: 100%;
  padding: 15px 0;
}

.events-track {
  display: flex;
  transition: transform 0.45s ease;
}

.event-slide {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.blog-post-style3 {
  background: var(--medeye-white);
  padding: 37px 37px 32px;
  height: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-post-style3:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.blog-post-style3 .post-image {
  margin: -37px -37px 0;
  overflow: hidden;
  height: 235px;
}

.blog-post-style3 .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-post-style3:hover .post-image img {
  transform: scale(1.04);
}

.post-date-bg {
  display: inline-block;
  height: 36px;
  line-height: 36px;
  padding: 0 26px;
  border-radius: 18px;
  background-color: var(--medeye-badge-grey);
  color: var(--medeye-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  top: -18px;
  margin-bottom: -6px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--medeye-heading);
  margin: 8px 0 10px;
}

.post-teaser {
  font-size: 15px;
  line-height: 26px;
  color: var(--medeye-body);
}

@media (max-width: 991.98px) {
  .event-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .event-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .blog-post-style3 {
    padding: 30px 24px 28px;
  }
  .blog-post-style3 .post-image {
    margin: -30px -24px 0;
  }
}

/* ==========================================================================
   Full-width Center CTA Banner (.banner-center)
   ========================================================================== */

.banner-center {
  position: relative;
  min-height: 491px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 42, 52, 0.46);
}

.banner-center-caption {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  max-width: 820px;
}

.banner-center-text1-1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
  color: var(--medeye-white);
}

.banner-center-text5 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--medeye-white);
  margin: 18px auto 0;
}

@media (max-width: 767.98px) {
  .banner-center {
    min-height: 300px;
  }
  .banner-center-caption {
    padding: 56px 20px;
  }
  .banner-center-text1-1 {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ==========================================================================
   Contact Section (#contactSection) & Forms
   ========================================================================== */

.banner-contact-us {
  background-repeat: no-repeat;
  background-position: left center;
  position: relative;
}

.contact-form {
  margin-top: 24px;
}

.form-control {
  display: block;
  width: 100%;
  height: 42px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: #424242;
  background-color: var(--medeye-white);
  border: 1px solid var(--medeye-border);
  border-radius: 5px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--medeye-blue);
  outline: none;
}

textarea.form-control {
  height: 112px;
  resize: vertical;
  padding-top: 12px;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.input-group > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 40px;
  background: #f5f6f7;
  border: 1px solid var(--medeye-border);
  border-right: none;
  border-radius: 5px 0 0 5px;
  color: var(--medeye-blue);
  font-size: 15px;
}

.input-group .form-control,
.input-group .datepicker-wrap {
  flex: 1;
}

.input-group .form-control {
  height: 40px;
  border-radius: 0 5px 5px 0;
}

.successform,
.errorform {
  display: none;
  padding: 12px 16px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 14px;
}

.successform {
  background: #e6f7ee;
  color: #16794b;
  border: 1px solid #b5e6cc;
}

.errorform {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f5c2c7;
}

.shift-right {
  max-height: 620px;
  width: auto;
  display: block;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .shift-right {
    max-height: 360px;
    margin: 20px auto 0;
  }
}

/* ==========================================================================
   Footer (.footer)
   ========================================================================== */

.footer {
  background-color: var(--medeye-footer-bg);
  padding-top: 56px;
  font-size: 15px;
}

.footer-logo img {
  height: 34px;
  width: auto;
}

.footer-text {
  font-size: 14px;
  line-height: 23px;
  color: var(--medeye-body);
}

.footer-biz-info {
  margin: 14px 0 18px;
  font-size: 13.5px;
  line-height: 22px;
  color: var(--medeye-body);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-social .hovicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--medeye-white);
  color: var(--medeye-blue);
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.footer-social .hovicon:hover {
  background: var(--medeye-blue);
  color: var(--medeye-white);
  transform: translateY(-2px);
}

.footer h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--medeye-heading);
  margin-bottom: 0;
}

.footer-post {
  align-items: center;
  margin-bottom: 16px;
}

.footer-post-photo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 14px;
}

.footer-post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-post-title a {
  font-size: 14px;
  font-weight: 600;
  color: var(--medeye-heading);
  display: block;
  line-height: 20px;
}

.footer-post-title a:hover {
  color: var(--medeye-blue);
}

.footer-post-text p {
  font-size: 13px;
  color: var(--medeye-body);
  margin: 2px 0 0;
}

.icn-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icn-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 22px;
}

.icn-list li > i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--medeye-blue);
  font-size: 16px;
}

.icn-list .phone {
  color: var(--medeye-blue);
  font-size: 15px;
}

.footer-bottom {
  background-color: var(--medeye-blue);
  color: var(--medeye-white);
  padding: 11px 0;
  margin-top: 42px;
  font-size: 14px;
  line-height: 26px;
}

.footer-bottom a {
  color: var(--medeye-white);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .footer {
    padding-top: 40px;
  }
  .footer h3 {
    margin-top: 28px;
  }
}

/* ==========================================================================
   Back To Top & Modals
   ========================================================================== */

.backToTop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--medeye-blue);
  color: var(--medeye-white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(38, 167, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 1015;
}

.backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.backToTop:hover {
  background: var(--medeye-blue-dark);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(18, 26, 34, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: auto;
}

#videoModal .modal-dialog {
  max-width: 760px;
}

.modal-content {
  position: relative;
  background: var(--medeye-white);
  border-radius: 6px;
  padding: 32px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.modal-content .close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--medeye-body);
  font-size: 18px;
  cursor: pointer;
}

.modal-content .close:hover {
  color: var(--medeye-heading);
}
