/* --- Base Styles & Variables --- */
:root {
    /* Healthpal Inspired Palette */
    --primary-color: #8DC63F; /* Teal/Cyan Accent */
    --secondary-color: #0072BC; /* Dark Blue/Gray for Text */
    --accent-color: #f59e0b; /* Subtle Yellow/Orange for specific highlights if needed */
    --text-color: #334155; /* Slightly lighter dark text */
    --light-text-color: #f8fafc; /* Off-white */
    --bg-color: #ffffff;
    --light-gray: #f1f5f9; /* Lighter gray background */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
      0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-family: "Inter", sans-serif; /* Switched font */
    --border-radius: 8px; /* Consistent border radius */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    font-size: 16px; /* Base font size */
  }
  
  .container {
    max-width: 1200px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 20px;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--secondary-color);
    font-weight: 700; /* Bolder headings */
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 3.5rem; /* Larger H1 */
  }
  h2 {
    font-size: 2.5rem; /* Larger H2 */
    text-align: center;
    margin-bottom: 3.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  
  p {
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: #007a70; /* Darker primary */
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space */
  }
  
  .content-section {
    padding: 80px 0;
  }
  
  /* --- Header & Navigation --- */
  header {
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Fixed height */
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color); /* Dark logo */
    /* If using the span: */
    /* span { color: var(--primary-color); } */
  }
  
  nav ul {
    display: flex;
  }
  
  nav ul li {
    margin-left: 30px;
  }
  
  nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    /* Subtle hover/active state */
    color: var(--primary-color);
    background-color: #e7f6e6; /* Very light primary */
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary-color);
  }
  
  /* --- Buttons --- */
  .cta-button,
  .secondary-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius); /* Consistent radius */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    font-size: 1rem;
    border: 1px solid transparent; /* Base border */
  }
  
  .cta-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
    margin-right: 10px;
  }
  
  .cta-button:hover {
    background-color: #007a70; /* Darker primary */
    color: var(--light-text-color);
    border-color: #007a70;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .secondary-button {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }
  
  .secondary-button:hover {
    background-color: #e7f6e6; /* Light primary bg */
    color: #007a70;
    border-color: #007a70;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  
  /* --- Hero Section --- */
  .hero-section {
    background-color: var(--bg-color); /* Clean background */
    /* Optional: Subtle gradient like Healthpal */
    /* background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); */
    color: var(--secondary-color);
    padding: 100px 0 60px 0; /* Adjust padding */
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-section .container {
     display: flex;
     flex-direction: column;
     align-items: center;
  }
  
  
  .hero-section h1 {
    color: var(--secondary-color);
    font-size: 4rem; /* Larger H1 */
    font-weight: 700;
    margin-bottom: 1.5rem;
    max-width: 800px;
  }
  
  .hero-section p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-color);
    line-height: 1.8;
  }
  
  /* Hero Stats */
  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 3rem;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Slight overlay if needed */
    border-radius: var(--border-radius);
    /* box-shadow: var(--shadow); */ /* Optional shadow */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }
  
  .stat-item {
    text-align: center;
    padding: 10px 20px;
    min-width: 150px;
  }
  
  .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  
  .stat-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0;
  }
  
  /* --- About Section --- */
  .about-section {
    background-color: var(--light-gray);
  }
  
  .about-image {
    flex-basis: 40%;
    min-width: 0;
    border-radius: var(--border-radius);
    /* Subtle border to frame Ghibli style */
     border: 1px solid var(--border-color);
     box-shadow: var(--shadow);
     /* object-fit: cover; */ /* Ensure it fits well */
  }
  
  .about-content div {
    /* Text container */
    flex-basis: 55%;
    flex-grow: 1;
    min-width: 0;
  }
  .about-section h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 1.5rem;
  }
  
  /* --- Features Section --- */
  .features-section {
    background-color: var(--bg-color);
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .feature-card {
    background: var(--bg-color);
    padding: 35px; /* More padding */
    text-align: left; /* Align text left */
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color); /* Cleaner border */
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }
  
  .feature-card i {
    font-size: 1.8rem; /* Slightly smaller icon */
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Display icon nicely */
    background-color: #e7f6e6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    margin-top: 10px; /* Space after icon */
  }
  
  /* --- Benefits Section --- */
  .benefits-section {
    background-color: var(--light-gray);
  }
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  .benefit-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    /* border-left: 4px solid var(--primary-color); */ /* Alternative highlight */
  }
  .benefit-card i.fa-users, /* Specific icons */
  .benefit-card i.fa-user-md,
  .benefit-card i.fa-hospital {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
  }
  .benefit-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
  }
  .benefit-card ul {
      padding-left: 5px; /* Align list */
  }
  .benefit-card ul li {
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-size: 0.95rem;
  }
  .benefit-card ul li::before {
    /* Cleaner checkmark */
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
  }
  
  /* --- Partner Section (Placeholder - Style like About) --- */
  /* No partner section in original HTML, reusing About styles if added */
  /* Add specific styles if you re-introduce the partner section */
  
  /* --- Technology Section --- */
  .technology-section {
    background-color: var(--light-gray); /* Lighter background */
    color: var(--secondary-color);
    text-align: center;
  }
  .technology-section h2 {
    color: var(--secondary-color); /* Darker text */
  }
  .tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px 50px; /* Adjust gap */
    margin-top: 3rem;
  }
  .tech-icons span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }
  .tech-icons i {
    margin-right: 10px;
    color: var(--primary-color); /* Accent icons */
    font-size: 1.4rem;
    vertical-align: middle;
  }
  
  /* --- FAQ Section --- */
  .faq-section {
    background-color: var(--bg-color);
  }
  .faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden; /* Contain borders */
  }
  .faq-item {
    border-bottom: 1px solid var(--border-color);
  }
  .faq-item:last-child {
    border-bottom: none;
  }
  .faq-question {
    background: var(--bg-color);
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
  }
  .faq-question:hover {
    background-color: var(--light-gray);
  }
  .faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
  }
  .faq-question.active i {
    transform: rotate(180deg);
  }
  .faq-answer {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--bg-color);
  }
  .faq-answer p {
    padding: 0 20px 20px 20px;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.8;
  }
  .faq-answer.active {
   /* max-height will be set by JS */
    padding-top: 10px; /* Add padding when open */
  }
  
  
  /* --- Contact Section --- */
  .contact-section {
    background-color: var(--light-gray);
  }
  .contact-section form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background: var(--bg-color);
    padding: 40px; /* More padding */
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }
  .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 25px; /* Increase spacing */
  }
  .form-group input {
    flex: 1;
  }
  #contact-form input,
  #contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  #contact-form input:focus,
  #contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 167, 157, 0.2); /* Focus ring */
  }
  #contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 25px; /* Match input group */
  }
  
  #contact-form button {
    display: block;
    width: auto;
    margin: 1rem auto 0 auto; /* Center button */
    padding: 12px 40px;
  }
  
  /* --- Footer --- */
  footer {
    background-color: var(--secondary-color); /* Dark footer bg */
    color: var(--light-gray); /* Light text on dark */
    padding-top: 60px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
  }
  .footer-col h4 {
    color: var(--bg-color); /* White headings */
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
  }
  /* Underline effect for footer headings */
  .footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--primary-color);
    height: 2px;
    width: 50px;
  }
  
  .footer-col ul li {
    margin-bottom: 10px;
  }
  .footer-col ul li a {
    color: var(--light-gray);
    opacity: 0.8;
    transition: opacity 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95rem;
  }
  .footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--primary-color);
  }
  
  .footer-about .logo { /* Style footer logo */
      color: var(--bg-color);
      margin-bottom: 1rem;
      display: block;
  }
  .footer-about p {
      color: var(--light-gray);
      opacity: 0.8;
      font-size: 0.95rem;
      line-height: 1.8;
  }
  
  .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 10px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--light-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .social-links a:hover {
    color: var(--secondary-color);
    background-color: var(--primary-color);
  }
  
  .footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-gray);
    opacity: 0.7;
  }
  
  
  /* --- Responsive Design --- */
  @media (max-width: 992px) {
      h1 { font-size: 3rem; }
      h2 { font-size: 2.2rem; }
      .hero-section h1 { font-size: 3.2rem; }
  }
  
  @media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .content-section { padding: 60px 0; }
  
    nav ul {
      display: none; /* Hide normal nav */
    }
    .menu-toggle {
      display: block; /* Show hamburger */
    }
    /* Basic Mobile Nav Style (requires JS) */
    nav ul.active {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 70px; /* Match header height */
      left: 0;
      width: 100%;
      background: var(--bg-color);
      box-shadow: var(--shadow);
      padding: 10px 0;
      border-top: 1px solid var(--border-color);
    }
    nav ul.active li {
      margin: 0;
      text-align: center;
    }
     nav ul.active li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
     nav ul.active li:last-child a {
        border-bottom: none;
    }
  
  
    .hero-section { min-height: 70vh; padding: 80px 0 40px 0; }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p { font-size: 1.1rem; }
    .hero-stats { gap: 20px; justify-content: space-around;}
    .stat-item h3 {font-size: 2rem;}
    .stat-item p {font-size: 0.8rem;}
  
  
    .about-content,
    .partner-content { /* Assuming partner content exists */
      flex-direction: column;
      text-align: center;
      gap: 30px;
    }
    .about-image,
    .partner-image {
      flex-basis: auto;
      width: 80%;
      max-width: 400px;
      margin: 0 auto;
    }
    .about-content div,
    .partner-content div {
      flex-basis: auto;
      width: 100%;
    }
  
    .features-grid,
    .benefits-grid {
      grid-template-columns: 1fr; /* Stack cards */
    }
  
    .form-group {
      flex-direction: column;
      gap: 0;
      margin-bottom: 15px; /* Reduce gap */
    }
    #contact-form input,
    #contact-form textarea {
      margin-bottom: 15px;
    }
     #contact-form textarea {
         margin-bottom: 15px;
     }
  
    .tech-icons { gap: 15px 20px; }
    .tech-icons span { padding: 8px 15px; }
  
    .footer-grid {
       grid-template-columns: 1fr; /* Stack footer columns */
       text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
     .social-links { margin-top: 1rem;}
  }