:root {
  --color-1: #121524;
  --color-2: #B4C9E8; /* main */
  --color-3: #485F88;
  --color-4: #9DACCC;
  --color-5: #C0C9D8;
  /* C0C9D8 is 192, 201, 216 in RGB */
  --glass-bg: rgba(255, 255, 255, 0.45); 
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-2);
  color: #4D6893;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 5%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 60px rgba(18, 21, 36, 0.1);
}

nav[aria-label="Main navigation"] {
  margin-left: auto;
}

.logo {
  margin-top: -1rem;
  margin-bottom: -1rem;
  margin-right: 2rem;
  display: flex;
  align-items: center;
}

.logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(18,21,36,0.3));
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: #4D6893;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@media (hover: hover) {
  nav a:hover {
    color: #121524;
    text-shadow: 0 0 20px rgba(192, 201, 216, 0.5);
  }
}

.btn {
  background: var(--color-4);
  color: var(--color-1);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(157, 172, 204, 0.3);
}

@media (hover: hover) {
  .btn:hover {
    background: #D0E5F8;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 5%;
  min-height: 80vh;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 65%;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent, black 25%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%);
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--color-3), var(--color-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-1);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
}

.hero-content .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-5), var(--color-4));
}

.hero-content .btn:hover {
  background: linear-gradient(135deg, #D0E5F8, var(--color-5));
  color: var(--color-1);
}

.ask-btn {
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.6rem !important;
}
.ask-btn span {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.ask-btn .icon-links {
  display: flex;
  gap: 8px;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 8px;
}
.ask-btn img {
  height: 28px;
  width: auto;
  transition: transform 0.2s;
}
.ask-btn img:hover {
  transform: scale(1.1);
}

/* Cards Section */
.cards-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 5% 6rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(18, 21, 36, 0.25);
  color: #4675A3;
  transition: transform 0.3s ease, border-color 0.3s ease;
  width: calc(25% - 1.5rem);
  min-width: 250px;
  box-sizing: border-box;
}

@media (hover: hover) {
  .glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(18, 21, 36, 0.4);
  }
}

.glass-card .icon {
  position: relative;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
}

.glass-card .icon::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-3);
  mix-blend-mode: color;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.glass-card:hover .icon::after {
  opacity: 0.2;
}

.glass-card .icon img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  filter: sepia(0.2) contrast(1.1) brightness(0.95);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.glass-card:hover .icon img {
  transform: scale(1.05);
  filter: sepia(0) contrast(1.1) brightness(1);
}

.glass-card h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-1);
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.glass-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4675A3;
  line-height: 1.4;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

/* 3D Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  transition: opacity 0.3s;
  margin-top: -150px;
  margin-left: -150px;
}

/* Footer */
footer {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.5rem 5%;
  text-align: center;
  color: #4D6893;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-column h4 {
  color: var(--color-1);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-column p {
  color: #4D6893;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
}

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

.footer-services li {
  margin-bottom: 0.8rem;
}

.footer-services a, .footer-links-col a, .map-link {
  color: #4D6893;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-services a:hover, .footer-links-col a:hover, .map-link:hover {
  color: #121524;
}

.location-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-icon {
  width: 20px;
  height: auto;
}

.location-item h5 {
  color: var(--color-1);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.location-item p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.map-link {
  display: inline-block;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--color-5);
}

.mt-3 {
  margin-top: 1.5rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contacts-page, .doctors-page, .about-page {
  padding: 8rem 5% 4rem;
  flex: 1;
  position: relative;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6;
}

.tint-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-2);
  mix-blend-mode: color;
  z-index: -1;
  pointer-events: none;
}

.assistance-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow {
  color: var(--color-1);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.assistance-header h1 {
  font-size: 4.5rem;
  color: var(--color-1);
  font-weight: 700;
  margin: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.contact-card, .doctor-card {
  position: relative !important;
  animation: none !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.contact-card h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--color-1);
  text-align: center;
}

.contact-info {
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: #4D6893;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #121524;
}

.whatsapp-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.whatsapp-tag span {
  color: #4D6893;
  font-weight: 600;
}

.whatsapp-tag a {
  color: #25D366;
  font-weight: 700;
  font-size: 1.1rem;
}

.whatsapp-tag a:hover {
  color: #128C7E;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-top: auto;
}

.questions-block {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem;
  border-radius: 24px;
}

.questions-block h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-1);
}

.questions-block p {
  font-size: 1.2rem;
  color: #4D6893;
  margin-bottom: 2.5rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #4675A3;
  border-color: #25D366;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  color: #4675A3;
}

/* Lab Tests Page */
.lab-page {
  padding: 8rem 5% 4rem;
  flex: 1;
}

.lab-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 5rem;
}

.category-card {
  position: relative !important;
  animation: none !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 3rem;
  background: rgba(157, 172, 204, 0.15) !important;
  border: 1px solid rgba(157, 172, 204, 0.3) !important;
}

.category-card h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--color-1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.lab-table th:first-child,
.lab-table td:first-child {
  width: 75%;
  padding-right: 1rem;
}

.lab-table th:last-child,
.lab-table td:last-child {
  width: 25%;
}

.lab-table th {
  padding: 1.2rem 1rem;
  font-weight: 600;
  color: #4D6893; /* #9DACCC */
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lab-table td {
  padding: 1rem;
  color: #4675A3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.05rem;
}

.lab-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1400px) {
  nav ul { gap: 3rem; }
  nav a { font-size: 1.5rem; }
  header { padding: 1.5rem 5%; }
  .logo img { height: 90px; }
  .btn { padding: 1.2rem 2.8rem; font-size: 1.5rem; }
}

@media (max-width: 1200px) {
  nav ul { gap: 2rem; }
  nav a { font-size: 1.2rem; }
  header { padding: 1rem 5%; }
  .logo img { height: 70px; }
  .btn { padding: 1rem 2rem; font-size: 1.2rem; }
  
  .glass-card-1 { left: 0; }
  .glass-card-2 { left: 40px; }
  .glass-card-3 { left: 80px; }
  .glass-card-4 { left: 120px; }
}

@media (max-width: 968px) {
  header {
    padding: 1rem 5%;
  }

  .hero-section {
    flex-direction: column;
    padding: 4rem 5%;
    text-align: center;
  }
  
  .hero-bg-image {
    width: 100%;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, transparent, black 25%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%);
  }

  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .assistance-header h1 {
    font-size: 3.5rem;
  }
  
  .cards-section {
    padding: 2rem 5% 4rem;
  }
  
  .glass-card {
    width: calc(50% - 1rem);
  }
  
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav a { font-size: 1rem; }
  .logo img { height: 45px; }
  .btn { padding: 0.8rem 1.6rem; font-size: 1rem; border-radius: 30px; }
  
  .ask-btn > span {
    display: none;
  }
  .ask-btn .icon-links {
    border-left: none;
    padding-left: 0;
  }
  .ask-btn {
    padding: 0.4rem 0.6rem !important;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .assistance-header h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .contact-card, .doctor-card, .category-card {
    padding: 1.5rem !important;
    max-width: 100% !important;
    margin: 0 auto;
  }
  
  .contact-card h2, .category-card h2 {
    font-size: 1.6rem !important;
    word-break: break-word;
    margin-bottom: 1.5rem;
  }
  
  .contact-card h2 {
    text-align: center;
  }
  
  .cards-section {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .glass-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 10px auto;
  }
  
  @media (hover: hover) {
    .glass-card:hover {
      transform: translateY(-5px);
    }
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-links a {
    margin: 0;
  }
  
  .dropdown-submenu-content {
    position: static !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 0 1rem !important;
    max-height: none !important;
    transform: none !important;
  }
  
  .category-card {
    max-width: 100% !important;
  }
  
  .lab-table {
    table-layout: auto;
  }
  
  .lab-table th, .lab-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
  }
  
  .lab-table th:first-child, .lab-table td:first-child {
    width: auto;
    padding-right: 0.5rem;
  }
  
  .lab-table th:last-child, .lab-table td:last-child {
    width: auto;
    text-align: right;
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  transform: translateY(3px);
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}

.dropbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0px 10px 40px 0px rgba(18, 21, 36, 0.2);
  z-index: 101;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  padding: 0.5rem 0;
}

.dropdown-content a {
  color: #4D6893 !important;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #121524 !important;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown.active .dropbtn svg rect {
  fill: #121524 !important;
}

.dropdown.active .dropbtn span {
  color: #121524 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(77, 104, 147, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-4);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--color-4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--color-2);
}

.footer-bottom-links .separator {
  color: var(--color-4);
  opacity: 0.5;
}

/* Submenu inside Dropdown */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .submenu-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dropdown-submenu .submenu-btn span {
  padding: 5px 10px;
  cursor: pointer;
}
.dropdown-submenu-content {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;
  left: auto;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0px 10px 40px 0px rgba(18, 21, 36, 0.2);
  z-index: 102;
  border-radius: 16px;
  overflow-y: auto;
  max-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0;
}
.dropdown-submenu.active .dropdown-submenu-content {
  display: block;
}
.dropdown-submenu-content a {
  color: #4D6893 !important;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.dropdown-submenu-content a:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #121524 !important;
}

/* Accordion in lab-tests.html and doctors.html */
.category-card .table-responsive,
.doctor-card .accordion-content {
  display: none; /* hidden by default */
}
.category-card.active .table-responsive {
  display: block;
}
.doctor-card.active .accordion-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.category-card h2,
.doctor-card h2 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-icon {
  font-size: 2rem;
  font-weight: 300;
  transition: transform 0.3s;
}
.category-card.active .accordion-icon,
.doctor-card.active .accordion-icon {
  transform: rotate(45deg);
}
