/* === Base Reset === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #c3ceda;
  line-height: 1.6;
}

/* === Header / Navbar === */
.custom-navbar {
  background: linear-gradient(to right, white, #e3d2dd);
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 2rem 0.5rem 2rem;
  position: relative;
  z-index: 100;
  min-height: 120px;
}
.navbar-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  margin-right: 20px;
}
.navbar-brand img {
  max-height: 90px;
  width: auto;
  height: auto;
  margin: 0;
  display: block;
}
.navbar-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.navbar-nav .nav-item {
  list-style: none;
  margin: 0 3px;
}
.navbar-nav .nav-link {
  color: #333;
  font-weight: 700;
  font-size: 1.1em;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: #e3d2dd;
  color: #0f71b9;
  text-decoration: none;
}
.navbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
}
#language-picker {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
#language-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
#language-picker li {
  margin: 0 3px;
}
#language-picker .separator { margin: 0 10px; font-weight: normal; }
#language-picker a {
  text-decoration: none;
  font-weight: 700;
  color: #333;
  transition: color 0.3s;
}
#language-picker a:hover { color: #0f71b9; }
.for-doctors {
  font-weight: bold;
  color: #0f71b9;
  text-decoration: none;
  font-size: 1em;
  margin-right: 6px;
  transition: color 0.2s;
}
.for-doctors:hover { color: #179d59; }
.custom-btn {
  color: #090909;
  font-size: 1rem;
  border-radius: 0.5em;
  background: #c3ceda;
  border: 1px solid #c3ceda;
  padding: 6px 12px;
  min-width: 70px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.custom-btn:hover {
  background: #179d59;
  border-color: #179d59;
  color: #fff;
}
.gravilog-btn {
  background-color: #0f71b9 !important;
  border-color: #0f71b9 !important;
  color: #fff !important;
}
.gravilog-btn:hover, .gravilog-btn:focus {
  background-color: #095185 !important;
  border-color: #095185 !important;
  color: #fff !important;
}
@media (min-width: 992px) {
  .custom-navbar {
    flex-direction: row;
    padding: 1rem 2rem 0.5rem 2rem;
  }
  .navbar-brand {
    margin-right: 24px;
  }
  .navbar-nav {
    margin: 0 auto;
    justify-content: center;
  }
  .navbar-right {
    margin-left: 24px;
  }
}
@media (max-width: 991.98px) {
  .custom-navbar.d-lg-flex {
    display: none !important;
  }
}

/* --- MOBILE NAVBAR --- */
.mobile-header {
  display: none !important;
}
@media (max-width: 991.98px) {
  .mobile-header {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(to right, white, #e3d2dd);
    border-radius: 0 0 10px 10px;
    padding: 8px 2vw 4px 2vw;
    min-height: 90px;
    align-items: stretch;
    z-index: 100;
  }
  .mobile-header .navbar-brand {
    justify-content: center;
    margin-bottom: 0;
    margin-right: 0;
  }
  .mobile-header .navbar-brand img {
    max-height: 70px;
  }
  .mobile-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
  }
  .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1.5px solid #bbb;
    flex: 0 0 auto;
  }
  .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: none;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #mobileNavbarContent {
    background: linear-gradient(to right, white, #e3d2dd);
    border-radius: 0 0 10px 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 8px 0;
    margin: 0 auto 10px auto;
    border: none;
    box-shadow: none;
  }
  #mobileNavbarContent .navbar-nav {
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #mobileNavbarContent .nav-item {
    width: 100%;
    margin: 0;
    list-style: none;
  }
  #mobileNavbarContent .nav-link {
    font-weight: bold;
    color: #333;
    padding: 12px 24px;
    width: 100%;
    display: block;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(150,150,150,0.08);
    transition: background 0.2s;
  }
  #mobileNavbarContent .nav-link:hover {
    background: #e3d2dd;
    color: #0f71b9;
    text-decoration: none;
  }
}

/* === Carousel / Car Cards === */
.carousel-item {
  text-align: center;
  background-image: url("assets/car-background.png");
}
.carusel, .carousel-inner {
  margin: 0;
  padding: 0;
  height: 500px;
  background-size: cover;
  background-position: center;
}
.car-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  margin: auto;
  height: 500px;
}
.car-card-content {
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}
.car-card-title {
  color: #199b56;
  font-size: 1.5rem;
  font-weight: bold;
}
.car-card-img {
  display: block;
  height: auto;
  object-fit: cover;
  max-height: 300px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .car-card { max-width: 100%; }
  .car-card-img { max-height: 200px; }
}

/* === Main Container === */
.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* === Cards === */
.card-container, .section-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 25px;
}
.card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 25%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 2px solid #e3d2dd;
  background-color: #c3ceda;
  width: 100%;
  overflow: hidden;
  transition: box-shadow 0.3s ease-in-out;
  position: relative;
}
.card img {
  width: 100%;
  height: auto;
  max-width: 180px;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 5px;
  object-fit: contain;
}
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
}

/* === Page Content / Headings === */
.heading-section {
  text-align: center;
  padding: 20px;
  background-color: #cfe2f3;
}
.heading-section h1 {
  font-size: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  margin: 0 0 5px 0;
  padding: 20px 0 0 0;
  color: #199b56;
}
.heading-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0 20px;
  color: #0f71b9;
}
.heading-section p {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0 20px;
}
h2 { color: #0f71b9; font-size: 1.8rem; font-weight: bold; }
h3 { color: #199b56; font-size: 1.3rem; font-weight: bold; text-align: center; }
h4 { font-size: 1.7rem; font-weight: bold; margin: 10px 0 20px; color: #0f71b9; }
#page { padding: 40px 20px; }
.page-content ul {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.page-content ul li {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 calc(25% - 40px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.page-content ul li img {
  max-height: 100px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
.page-content ul li img:hover { transform: scale(1.1); }
.page-content ul li strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}
.benefits { font-size: 1rem; margin-bottom: 20px; text-align: center; }

/* === Gallery === */
#gallery-page {
  padding: 20px;
  background-color: #c3ceda;
}
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
.card-baby {
  background-color: #c3ceda;
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px;
  transition: transform 0.3s ease;
  border: 2px solid #e3d2dd;
}
.card-baby:hover { transform: scale(1.05); }
.card-baby video, .card-baby img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.card-caption {
  padding: 10px;
  text-align: center;
}
.card-caption h4 { font-size: 1rem; color: #0f71b9; margin-bottom: 5px; }
.card-caption p { font-size: 0.9rem; color: #666; margin: 0; }

/* === Responsive Cards & Gallery === */
@media (max-width: 900px) {
  .card-container, .section-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 8px 2px !important;
  }
  .card, .media-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto 12px auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    height: auto !important;
  }
  .card-content, .media-card .text-content {
    padding: 18px 10px !important;
    white-space: normal !important;
    overflow: visible !important;
    height: auto !important;
    font-size: 1rem !important;
    word-break: break-word !important;
  }
  .card img, .media-card img {
    max-width: 80px !important;
    height: auto !important;
    margin-bottom: 8px !important;
  }
}
@media (max-width: 768px) {
  .card { width: 45%; }
  .car-card { max-width: 100%; }
  .car-card-img { max-height: 200px; }
}
@media (max-width: 576px) { .card { width: 100%; } }
@media (max-width: 600px) {
  .card, .media-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .card-content, .media-card .text-content {
    padding: 10px 4px !important;
    font-size: 0.97rem !important;
  }
}

/* --- Media Section --- */
.media-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.media-card {
  background: #cbe4da;
  border-radius: 12px;
  border: 3px solid #e3d2dd;
  box-sizing: border-box;
  box-shadow: none;
  padding: 18px 24px;
  min-width: 340px;
  max-width: 600px;
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.2s;
}
.media-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.media-card img {
  max-width: 80px;
  height: auto;
  margin-right: 0;
  margin-left: 0;
  border-radius: 10px;
}
.media-card .text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.2rem;
}
.media-card h2,
.media-card h2 strong {
  font-size: 1.3rem;
  color: #222;
  font-weight: bold;
  margin: 0 0 4px 0;
}
.media-card p {
  font-size: 1.05rem;
  color: #333;
  font-weight: 600;
  margin: 0;
}
@media (max-width: 900px) {
  .media-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .media-card {
    width: 95vw;
    min-width: 0;
    max-width: 600px;
    justify-content: flex-start;
  }
}

/* === Footer === */
footer {
  background: linear-gradient(to right, white, #e3d2dd);
  color: #333;
  padding: 20px 0;
  width: 100%;
}
.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 32px;
}
.footer-container > div {
  display: flex;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 10px;
  }
  .footer-container > div {
    justify-content: center;
    width: 100%;
  }
}
.footer-menu { white-space: nowrap; margin-right: 15px; }
.footer-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li { position: relative; margin: 0; }
.footer-menu li:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: #6c757d;
  opacity: 0.6;
}
.footer-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}
.footer-menu a:hover { color: #199b56; }
.download-text {
  margin: 0 15px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  white-space: nowrap;
}
.app-badges {
  display: flex;
  gap: 10px;
}
.app-badges a { display: block; transition: transform 0.2s ease; }
.app-badges img.apple, .app-badges img.google {
  height: 32px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}
.social-media {
  display: flex;
  gap: 10px;
  margin-left: auto;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  color: #0088cc;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #199b56;
}
.social-icon i { font-size: 16px; }
.social-icon img { width: 16px; height: 16px; object-fit: contain; }
footer p { margin-bottom: 10px; font-size: 1.2rem; font-weight: bold; }

/* === Utility / Misc === */
a { color: #199b56; text-decoration: underline; }
a:hover { color: #0f71b9; }