* {
  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: #ff0000;
  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 grid for the About page. Mirrors the layout from the original
 * site by presenting each value in a card with a coloured icon at the top.
 */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* On wider screens, arrange values in three columns to mirror the original site */
@media (min-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Base styling for each value card */
.value-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.value-card:hover {
  transform: translateY(-4px);
}

/* Icon wrapper: round shape with emoji icon */
.value-card .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card .emoji {
  font-size: 1.8em;
}

/* Specific colours for each value card. These colours reflect the palette from
 * the original About page: soft tints with contrasting icon colours. */
.value-card.innovation .icon-wrapper {
  background: #E8F3FE;
  color: #0C71C3;
}
.value-card.quality .icon-wrapper {
  background: #EAF7EE;
  color: #2C8C55;
}
.value-card.reliability .icon-wrapper {
  background: #FCEBEC;
  color: #D44B4B;
}
.value-card.precision .icon-wrapper {
  background: #EDE9F8;
  color: #7D55A6;
}
.value-card.global .icon-wrapper {
  background: #EFF5FB;
  color: #2A6EA9;
}
.value-card.patient .icon-wrapper {
  background: #FDEDF3;
  color: #C23A6B;
}

/* Headings and descriptions inside value cards */
.value-card h3 {
  font-size: 1.4em;
  color: #333;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 1em;
  color: #555;
}

/* ---------------------------------------------------------------------------
 * Button styles for call-to-action links, such as the brochure download in the
 * J-PAD hero section. These buttons stand out with a solid background and
 * rounded corners.
 */
.btn {
  display: inline-block;
  background: #0CB8B6;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 15px;
  /* Smooth transitions for background, transform and shadow on hover */
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.btn:hover {
  background: #097c94;
  /* Enlarge and shadow on hover for better button feedback */
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Ensure brochure button on hero section is visible on dark backgrounds */
.brochure-btn {
  background: #D21212;
}
.brochure-btn:hover {
  background: #a60f0f;
}

/* Mission and Vision card overrides: make cards subtle and consistent with original site */
#mission-vision .benefit-card {
  background: #F7F9FC;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  box-shadow: none;
}

/* Why Choose section card styling: ensure each card stands out on light blue background */
#why-choose {
  background: #F3F9FD;
  border-radius: 8px;
  padding: 40px 20px;
}
#why-choose .benefit-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: left;
}
#why-choose .benefit-card h3 {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: #333;
}
#why-choose .benefit-card p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

/* Responsive grid for the Why Choose section. Two columns on larger screens */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
@media (min-width: 992px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------------------------------
 * Contact page grid and card styles
 * These styles replicate the two-column layout from the original contact page
 * design: a message form on the left and contact information cards on the right.
 */

/* Grid container for form and contact info cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 992px) {
  .contact-grid {
    /* Allocate more space to the form column and less to the info-cards
     * column on larger screens to avoid overly wide contact cards and
     * better reflect the reference layout. The form takes two thirds of
     * the available width while the cards occupy the remaining third.
     */
    grid-template-columns: 2fr 1fr;
  }
}

/* Adjust spacing for mobile/tablet on the contact page. Reduce the
 * gap between form and contact cards for screens narrower than
 * 992px and ensure cards occupy full width so they stack neatly
 */
@media (max-width: 991px) {
  .contact-grid {
    gap: 20px;
  }
  .form-card,
  .contact-card {
    width: 100%;
  }
}

/* Card styling for the message form */
/*
 * Card styling for the message form
 * We apply a subtle transition on transform and box-shadow so
 * the card gently lifts off the page on hover. This effect
 * is more pronounced on desktop but still subtle on mobile to
 * avoid jarring animations. The hover animation adds a
 * larger shadow and slight upward movement to match the
 * reference design on the contact page.
 */
.form-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the message form card */
/*
 * Remove hover animation from the form card. The contact form should
 * remain static when hovered to keep user focus on the fields and
 * prevent unnecessary motion.
 */
/* .form-card:hover intentionally left blank to disable hover transform */

/* Container for contact info cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Base styling for individual contact cards */
/*
 * Base styling for individual contact cards
 * We include the same transition properties as the form card so
 * all cards share a consistent hover animation. When hovered,
 * the card moves slightly upward and the shadow becomes
 * deeper, creating a premium “lift” effect.
 */
.contact-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for contact cards */
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/*
 * Align contact card contents horizontally so the icon appears
 * to the left of the text (heading and details), as seen in
 * the reference design. The gap creates breathing room between
 * the icon and the text, and vertical alignment centers items
 * relative to each other.
 */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* When using horizontal layout, we don't need a bottom margin
 * on the icon wrapper. Remove margin-bottom and allow margin-right
 * via the gap to space items evenly. The width and height remain
 * unchanged to keep a consistent square icon background.
 */
.contact-card .icon-wrapper {
  margin-bottom: 0;
}

/* Icon wrapper inside contact cards */
.contact-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.5em;
}

/* Specific colours for each contact card */
.contact-card.phone .icon-wrapper {
  background: #E8F3FE;
  color: #0C71C3;
}

.contact-card.email .icon-wrapper {
  background: #EAF7EE;
  color: #2C8C55;
}

.contact-card.address .icon-wrapper {
  background: #FDEDF3;
  color: #D44B4B;
}

.contact-card.hours .icon-wrapper {
  background: #E8F3FE;
  color: #0C71C3;
}

/* Headings and paragraphs for contact cards */
.contact-card h3 {
  margin-bottom: 5px;
  font-size: 1.2em;
  color: #333;
}

.contact-card p {
  margin: 0;
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}
/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ------------------------------------------------------------------------
 * Hero call-to-action buttons
 * Provide primary and outline styles for the hero section buttons.
 */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn-cta {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  color: #fff;
  background-color: #D21212;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover {
  background-color: #a60f0f;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-cta-outline {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------------------------------
 * Product section styling
 * These styles update the product cards on the index page to match the
 * designs shown in the provided reference images. Each product section
 * has its own accent colour and subtle card styling.
 */
.product-section {
  padding: 30px;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 900px;
}
.product-section h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.product-section p {
  font-size: 1em;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}
.product-section .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

/* Specific styling for LIFE ISLAND section */
.product-section.life {
  background-color: #ffffff;
  border: 1px solid #e5e9f2;
}
.product-section.life h3 {
  color: #0c71c3;
}
.highlight-box.life {
  background-color: #e8f3fe;
  border-left: 4px solid #0c71c3;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

/* Specific styling for J-PAD section */
.product-section.jpad {
  background-color: #fff5f5;
  border: 1px solid #f6d7d7;
}
.product-section.jpad h3 {
  color: #d21212;
}
.highlight-box.jpad {
  background-color: #fdebed;
  border-left: 4px solid #d21212;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

/* Button variants for product sections */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #0c71c3;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background-color: #085498;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn-outline-primary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: transparent;
  color: #0c71c3;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #0c71c3;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-outline-primary:hover {
  background-color: #0c71c3;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn-danger {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #d21212;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-danger:hover {
  background-color: #a60f0f;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn-outline-danger {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: transparent;
  color: #d21212;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #d21212;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-outline-danger:hover {
  background-color: #d21212;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.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;
  }
}

/* ------------------------------------------------------------------------
 * Key Features grid styling for the LIFE ISLAND‑7 page
 * Mirrors the light, airy layout of the reference image with simple check
 * icons and evenly spaced feature boxes. The section sits on a pale blue
 * background to stand out from the rest of the page.
 */

/* Container for the entire key features section */
.key-features-section {
  background-color: #f3f9fd;
  border-radius: 8px;
  padding: 40px 20px;
  margin-bottom: 40px;
}

/* Centre the heading and add a subtle underline */
.key-features-section h2 {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}
.key-features-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: #0c71c3;
  border-radius: 2px;
}

/* Responsive grid for feature items */
.key-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Individual feature item styling */
.feature-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Check icon styling */
.check-icon {
  font-size: 1.4rem;
  color: #0c71c3;
  margin-right: 15px;
}

/* Feature text styling */
.feature-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}