/* =============================================================
   Unified styles.css
   Source: style.css + inline styles from about.html, app_page, index.html,
           privacypolicy.html, termsconditions.html
   Notes:
   - Where duplicate class names existed, properties were merged.
   - Utility/responsive rules consolidated; animations deduped.
   - If a particular page needs different values for shared classes
     (e.g., .home-container, .btn, .card), consider adding a page-scoped
     wrapper (e.g., body.about-page .home-container { ... }).
   ============================================================= */

/* ============================
   1) Base / Reset
   ============================ */
   html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
  }
  
  h1 {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
  }
  
  /* Reusable container */
  .container {
    padding: 40px;
    text-align: center;
  }
  
  /* ============================
     2) Header / Top Bar
     ============================ */
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #e8e8e8 250px, #004080 250px);
    padding: 10px 20px;
  }
  
  .top-left {
    display: flex;
    align-items: center;
  }
  
  .top-right {
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }
  
  .logo {
    height: 75px;
    margin-right: 15px;
  }
  
  .site-title {
    font-size: 2.3rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
  }
  .site-title:hover { text-decoration: none; cursor: pointer; }
  
  .top-bar .title {
    font-size: 33px;
    font-weight: bold;
    color: white;
  }
  
  .top-bar .subtitle {
    font-size: 14px;
    margin-left: 10px;
    color: #cccccc;
  }
  
  /* ============================
     3) Navigation & Buttons
     ============================ */
  .nav-btn {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: transparent;
    transition: all 0.2s ease;
    margin-right: 50px;
    font-size: 1.5rem;
  }
  .nav-btn:hover {
    background-color: #fff;
    color: #001f3f;
    border: 1px solid #001f3f;
    transform: scale(1.07);
  }
  
  /* Generic button */
  .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px; /* fixed: added px unit */
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    background-color: #004080; /* default */
    color: #fff;
    border: none;
  }
  
  /* Variant buttons (from index.html) */
  .btn.primary { background: #007bff; color: #fff; }
  .btn.primary:hover { background: #005fd1; }
  .btn.secondary { background: #f2f4f7; color: #111827; border: 1px solid #e5e7eb; }
  .btn.secondary:hover { background: #e9eef3; }
  
  /* Primary CTA button (about/app pages) */
  .primary-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    animation: fadeInUp 1s ease;
  }
  .primary-btn:hover { background-color: #0056b3; }
  
  .back-button {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
  }
  .back-button:hover { background-color: #e0e0e0; }
  
  /* ============================
     4) Alerts
     ============================ */
  .alert {
    background-color: #ffcccc;
    color: #800000;
    padding: 10px;
    margin: 15px auto;
    width: 60%;
    border-radius: 5px;
  }
  
  /* ============================
     5) Cards & Grids
     ============================ */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
  /* Generic card (merged base + index variants) */
  .card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #eef2f7; /* from index */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* index */
    align-items: flex-start;  /* index */
    min-height: 200px;       /* index */
    aspect-ratio: 1 / 1;     /* base */
  }
  .card:hover { transform: scale(1.03); }
  
  .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  /* ============================
     6) Tables
     ============================ */
  .patient-table tr {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
  }
  .patient-table tr:hover {
    background-color: #e8f0fe;
    transform: scale(1.01);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* ============================
     7) Footer
     ============================ */
  body > .container { flex: 1; }
  
  .site-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #ccc;
    padding: 15px 20px;
    text-align: center;
    margin-top: auto;
  }
  
  .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-logo {
    height: 40px;
    transition: transform 0.2s ease;
    cursor: pointer;
  }
  .footer-logo:hover { transform: scale(1.05); }
  
  .footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
  }
  .footer-links a:hover { text-decoration: underline; }
  
  /* ============================
     8) Home / General Sections
     ============================ */
  /* NOTE: Multiple pages defined .home-container. Merged for widest reuse. */
  .home-container {
    /* from base */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
  
    /* from about/app pages */
    max-width: 1000px;
    margin: 60px auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }
  
  .home-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Typography inside home areas */
  .home-content h1 { text-align: center; font-size: 32px; margin-bottom: 30px; color: #222; }
  .home-content p { font-size: 17px; line-height: 1.7; margin-bottom: 25px; color: #444; }
  
  /* ============================
     9) Landing (index.html) specific blocks
     ============================ */
  .home-wrap { max-width: 1120px; margin: 60px auto; padding: 0 20px; }
  
  .hero {
    background: radial-gradient(1200px 600px at 20% 0%, #eaf3ff 0%, #ffffff 45%);
    border-radius: 20px;
    padding: 56px 28px;
    box-shadow: 0 10px 34px rgba(0,0,0,.07);
    text-align: center;
  }
  
  .badge-row { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 14px; }
  
  .badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; background: #eef5ff; color: #1b4d9b; border: 1px solid #d9e8ff;
  }
  .badge.important { background: #fff5e6; color: #8a4b00; border-color: #ffe1b3; }
  
  .hero h1 { font-size: 42px; line-height: 1.12; color: #1a1f36; margin: 12px 0 12px; }
  .hero p.sub { font-size: 18px; color: #475467; line-height: 1.7; max-width: 820px; margin: 0 auto 22px; }
  .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
  
  .trust { margin-top: 22px; color: #6b7280; font-size: 14px; }
  
  .feature-section { margin-top: 48px; }
  .feature-head { text-align: center; margin-bottom: 22px; }
  .feature-head h2 { font-size: 28px; color: #1f2937; margin-bottom: 8px; }
  
  .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card h3 { margin: 0 0 8px; font-size: 18px; color: #111827; }
  .card p { margin: 0; color: #4b5563; line-height: 1.65; font-size: 15px; }
  
  .how { margin-top: 48px; padding: 28px; border: 1px solid #eef2f7; border-radius: 16px; background: #fafcff; }
  .how h2 { text-align: center; font-size: 26px; margin-bottom: 18px; color: #1f2937; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 18px; }
  .step strong { display: block; color: #111827; margin-bottom: 6px; }
  
  .cta-band {
    margin: 48px 0 12px;
    padding: 28px 24px;
    background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
    border: 1px solid #e7efff; border-radius: 16px; text-align: center;
  }
  .cta-band h3 { margin: 0 0 8px; font-size: 24px; color: #111827; }
  .cta-band p { margin: 0 0 16px; color: #4b5563; }
  
  /* ============================
     10) About page: team member cards
     ============================ */
  .member-title {
    margin-top: 60px;
    font-size: 28px;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 30px;
    text-align: center;
  }
  
  .team-member {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background-color: #f8f9fa;
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow .25s ease, background-color .25s ease;
    cursor: pointer;
    outline: none; /* focus handled below */
  }
  
  .team-member:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); }
  
  /* Focus ring for keyboard users */
  .team-member:focus-visible { box-shadow: 0 0 0 3px rgba(0,123,255,.35), 0 6px 16px rgba(0,0,0,.08); }
  
  .team-member.expanded { background-color: #ffffff; box-shadow: 0 12px 26px rgba(0,0,0,.10); }
  
  .member-photo {
    width: 160px;          /* circle size */
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
    line-height: 0;
    transition: width .25s ease;
  }
  
  .member-photo img {
    display: block;        /* removes baseline gap */
    width: 100%;
    height: height;
    object-fit: contain;
    object-position: center;
  }
  
  .team-member.expanded .member-photo img { width: 110px; height: 110px; }
  
  .member-info { flex: 1; min-width: 0; }
  .member-info h3 { margin: 0 0 10px; font-size: 20px; color: #222; }
  
  .info-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 15px; color: #555; }
  .info-label { font-weight: 600; white-space: nowrap; }
  
  /* Details (animated height) */
  .details {
    overflow: hidden;
    max-height: 0;     /* animated inline via JS */
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
    margin-top: 0;
  }
  .team-member.expanded .details { opacity: 1; margin-top: 14px; }
  
  .details .detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .details .detail-card { background: #f7fbff; border: 1px solid #e6f0ff; border-radius: 10px; padding: 12px 14px; }
  .details h4 { margin: 0 0 8px; font-size: 16px; color: #1f2a44; }
  .details p, .details ul { margin: 0; font-size: 14px; color: #445066; line-height: 1.6; }
  .details ul { padding-left: 18px; }
  
  /* ============================
     11) Terms / Privacy Containers
     ============================ */
  .terms-container {
    /* merged base + privacy/terms */
    max-width: 1000px; /* use larger cap */
    margin: 60px auto;
    padding: 40px 20px; /* base uses 40 20; privacy uses 40 */
    background-color: #ffffff;
    border-radius: 16px; /* privacy */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* privacy */
    line-height: 1.6;
    color: #333;
    animation: fadeInUp 0.6s ease;
  }
  
  .terms-container h1 {
    font-size: 2rem; /* base */
    margin-bottom: 10px; /* base */
    color: #004080; /* base heading color */
    text-align: center; /* privacy */
  }
  
  .terms-container h2 {
    font-size: 1.2rem; /* base */
    margin-top: 30px;  /* base */
    color: #002b5c;    /* base */
  }
  
  /* Additional variants from privacy/terms */
  .terms-container section { margin-bottom: 30px; }
  .terms-container p { font-size: 17px; line-height: 1.7; color: #444; margin-bottom: 20px; }
  .terms-container h2.alt { font-size: 24px; margin-top: 20px; color: #007bff; }
  .terms-container ul { padding-left: 20px; margin-top: 10px; }
  .terms-container li { margin-bottom: 10px; line-height: 1.6; }
  
  /* Links inside terms */
  .terms-container a { color: #0074D9; text-decoration: none; }
  .terms-container a:hover { text-decoration: underline; }
  
  .logo-wrapper { text-align: center; margin-bottom: 20px; }
  .terms-logo { height: 60px; max-width: 160px; } /* merged base+privacy */
  .terms-logo:hover { transform: scale(1.05); transition: transform 0.2s ease; cursor: pointer; }
  
  /* ============================
     12) Animations
     ============================ */
  @keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* ============================
     13) Responsive
     ============================ */
  @media (max-width: 1120px) {
    .home-wrap { margin: 36px auto; }
  }
  
  @media (max-width: 960px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 34px; }
  }
  
  @media (max-width: 900px) {
    .details .detail-row { grid-template-columns: 1fr; }
  }
  
  @media (max-width: 800px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 768px) {
    .team-member { flex-direction: column; text-align: left; }
    .member-photo img { width: 80px; height: 80px; }
    .team-member.expanded .member-photo img { width: 90px; height: 90px; }
  
    .home-container { margin: 30px 16px; padding: 24px; }
    .home-container h1 { font-size: 28px; }
    .home-container p { font-size: 16px; }
    .primary-btn { width: 100%; text-align: center; }
  
    .terms-container { margin: 30px 16px; padding: 24px; }
    .terms-container h1 { font-size: 28px; }
    .terms-container h2 { font-size: 20px; }
    .terms-logo { max-width: 120px; height: auto; }
  }
  
  @media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero { padding: 36px 18px; }
    .hero h1 { font-size: 28px; }
  }
  
  @media (max-width: 500px) {
    .card-grid { grid-template-columns: 1fr; }
  }
  


/* ===========================
   Mobile-only header tweaks
   =========================== */
   @media (max-width: 768px) {
    /* Make the header a single solid color to avoid the left-side light band */
    .top-bar {
      background: #004080 !important;
      padding: 10px 12px;
      position: relative; /* for the dropdown to anchor */
    }
  
    /* Layout: logo + title on the left, hamburger on the right */
    .top-left {
      flex: 1;
      align-items: center;
      gap: 8px;
    }
  
    /* Shrink the logo and kill big inline margins on mobile */
    .logo {
      height: 44px;            /* was 75px */
      margin: 0 !important;    /* override inline margin-left */
      width: auto;
    }
  
    /* Keep the title on one line with ellipsis so it never overflows */
    .site-title {
      margin: 0 !important;    /* override inline margin-left */
      font-size: 1.25rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;                 /* take remaining space between logo and hamburger */
      color: #fff;             /* ensure contrast on the solid header */
    }
  
    /* Hide desktop nav buttons on small screens */
    .nav-btn { display: none !important; }
  
    /* Show hamburger on mobile only */
    .hamburger {
        display: inline-flex;
        flex-direction: column;     /* stack the bars vertically */
        justify-content: center;
        align-items: center;
        gap: 5px;                   /* space between bars */
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 6px;               /* a bit of inner padding */
    }

    .hamburger-bar {
        display: block;
        width: 24px;                /* length of each bar */
        height: 3px;                /* thickness of each bar */
        background-color: #fff;     /* white bars on dark background */
        border-radius: 2px;         /* slight rounding looks nicer */
        transition: all 0.3s ease;  /* smooth animation */
    }

    .hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    }
    .hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    }
      
  
    .top-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }
  
    /* Dropdown panel */
    .mobile-menu {
      position: absolute;
      top: 100%;
      right: 8px;
      margin-top: 8px;
      width: calc(100% - 16px);
      max-width: 260px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.12);
      padding: 8px;
      z-index: 1000;
    }
    .mobile-menu a {
      display: block;
      padding: 10px 12px;
      border-radius: 8px;
      text-decoration: none;
      color: #111827;
      font-weight: 600;
    }
    .mobile-menu a:hover {
      background: #f3f4f6;
    }
  }