* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

.navbar {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.navbar .logo {
  max-width: 150px;
}

.navbar .nav-links {
  display: flex;
  justify-content: center;
}

.navbar a {
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: color 0.3s, font-weight 0.3s;
}

.navbar a:hover {
  color: #ee2;
  font-weight: bold;
}

.navbar a.active {
  color: #ee2;
  font-weight: bold;
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  height: 50vh;
  background: url('Pics/hospital_room_with_bed.jpg') no-repeat 50% 80%/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.hero.hero-index {
  height: 100vh;
  background-position: center;
}

.hero.hero-contacts {
  background-image: url('Pics/contact.jpg');
  background-position: 50% 60%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h1, .hero p, .hero a, .hero img {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #d21212;
  font-size: 2.8em;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.hero img {
  max-width: 80%;
  border-radius: 8px;
  margin: 15px 0;
}

.hero a {
  color: #fff;
  text-decoration: none;
}

section {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

h3 {
  font-size: 1.5em;
  color: #0CB8B6;
  margin-bottom: 10px;
}

ul {
  margin: 0 0 15px 20px;
}

.product-grid, .benefits-grid, .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-card, .benefit-card, .value-card {
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card img, .benefit-card img {
  max-width: 100%;
  border-radius: 8px;
  margin: 15px 0;
}

.product-card a, .contact-info a, .contact-details a {
  color: #007bff;
  text-decoration: none;
}

.product-card a:hover, .contact-info a:hover, .contact-details a:hover {
  text-decoration: underline;
}

.section-image {
  max-width: 100%;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* Responsive video wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    padding-top: 25px;
    height: 0;
    margin-bottom: 1.5em;
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 8px;
    background: #000;
}

.contact-info p, .contact-details p {
  margin-bottom: 10px;
  text-align: center;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  resize: vertical;
  height: 120px;
}

.contact-form button {
  background: #004080;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #003366;
}

.message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.message.success {
  background: #d4edda;
  color: #155724;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
}

.highlight {
  font-weight: bold;
  color: #0CB8B6;
}

.footer-logo {
  text-align: center;
  margin: 20px 0;
}

.footer-logo img {
  max-width: 150px;
}

.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* New styles for the "Our Values" section */
.values-section-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.value-section-card {
  position: relative;
  padding: 20px;
  text-align: center;
  z-index: 1;
}

.checkmark-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #0CB8B6;
  border-radius: 50%;
  margin: 0 auto 15px;
  position: relative;
}

.checkmark-circle::before,
.checkmark-circle::after {
  content: '';
  position: absolute;
  background: #fff;
}

.checkmark-circle::before {
  width: 16px;
  height: 4px;
  transform: rotate(45deg);
  left: 16px;
}

.checkmark-circle::after {
  width: 24px;
  height: 4px;
  transform: rotate(-45deg);
  right: 10px;
}

.value-section-card h3 {
  font-size: 1.5em;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.value-section-card p {
  font-size: 1em;
  color: #666;
}

/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #e6f9f7;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: #058585;
    font-family: Arial, sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #058585;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00bfa5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #00bfa5;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background-color: #00a892;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #e6f9f7;
    color: #00bfa5;
}

.message.error {
    background-color: #ffe6e6;
    color: #ff3333;
}

@media (max-width: 768px) {
  .navbar {
      padding: 10px 20px;
      align-items: flex-start;
  }

  .navbar .logo {
      max-width: 120px;
  }

  .navbar .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      text-align: center;
      margin-top: 10px;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 5px;
      padding: 10px 0;
  }

  .navbar .nav-links.active {
      display: flex;
  }

  .navbar a {
      padding: 10px;
      display: block;
      text-shadow: none;
      color: #333;
  }

  .navbar a:hover, .navbar a.active {
      color: #007bff;
      font-weight: bold;
      background: transparent;
  }

  .navbar a:hover {
      background: rgba(0, 123, 255, 0.1);
  }

  .menu-toggle {
      display: block;
  }

  .hero, .hero.hero-index, .hero.hero-contacts {
      height: 70vh;
  }

  .hero h1 {
      font-size: 2em;
  }

  .hero p {
      font-size: 1em;
  }

  .hero img {
      max-width: 90%;
  }

  h2 {
      font-size: 1.5em;
  }

  h3 {
      font-size: 1.2em;
  }

  .values-section-grid::before {
      display: none;
  }

  .value-section-card {
      padding: 10px;
  }

  .value-section-card h3 {
      font-size: 1.2em;
  }

  .value-section-card p {
      font-size: 0.9em;
  }
}