/* General Styles */
:root {
    --primary-blue: #1a4d8f;
    --accent-teal: #2a9d8f;
    --light-bg: #f8f9fa;
    --dark-text: #2b2d42;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    margin: 0;
    padding: 0;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #164263 0%, #2c9fc2 100%);
    color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 100px;
    width: auto;
}

.header-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.tagline {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

    .nav-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1100;
    }

    .main-nav {
        position: relative;
    }

    .nav-menu {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem;
        margin: 0;
        background: #c6eaf5;
        opacity: 1;
        list-style-type: none;
    }

    .nav-menu a {
        color: #164263;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .nav-menu a:hover {
        color: #ffd700;
    }

    @media (max-width: 768px) {
        .nav-toggle {
            display: block;
        }

        .nav-menu {
            display: none;
            flex-direction: column;
            background: white;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 1rem 0;
            z-index: 9999;
        }

        .nav-menu.show {
            display: flex;
        }

        .nav-menu li {
            text-align: center;
            padding: 0.8rem 0;
        }
    }


/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(135deg, rgba(26,77,143,0.1), rgba(42,157,143,0.5)), url('../images/bg2.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size:3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 5px #164263; /* Dark blue shadow */
}

.cta-button {
    background: #2c9fc2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Main Content Sections */
.section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 2.5rem, 60px);  /* min size, preferred size, max size */
    color: #164263;
    margin-bottom: 1rem;
}

.legacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

  .service-card ul li {
      padding-left: 20px;
      text-align: left;
  }

.service-card:hover {
    transform: translateY(-5px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.legacy-image {
  max-width: 95%;
}
.doctor-profile {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.doctor-profile img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #164263 0%, #2c9fc2 100%);
    color: #ffffff;
    padding: 40px 0 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
    color: #b3e0ff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-teal);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright-info {
    font-size: 0.9rem;
}

.copyright-info a {
    color: var(--accent-teal);
    text-decoration: none;
}

.legal-links {
    text-align: right;
}

.legal-links p {
    margin: 5px 0;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-teal);
}

/* Responsive Design */
@media (max-width: 768px) {

  /* Header Styles */
  .main-header {
      background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
      color: white;
      box-shadow: 0 2px 15px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
  }

  .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 2%;
      max-width: 1400px;
      margin: 0 auto;
  }

  .logo-container {
      display: flex;
      align-items: center;
      gap: 0.3rem;
  }

  .logo {
      padding-top: 1.5rem;
      height: 60px;
      width: auto;
  }
  .hero-content h2 {
      font-size: 1.8rem;
      margin-bottom: 0.8rem;
  }
  .header-text h1 {
      margin: 0;
      font-size: 1rem;
      font-weight: 400;
  }

  .header-text p {
      margin: 0;
      font-size: 0.6rem;
      font-weight: 400;
  }
  .tagline {
      margin: 0;
      font-size: 12px;
      opacity: 0.9;
      color: white;
  }

  .section {
      padding: 2rem 5% 0 5%;
      max-width: 1400px;
      margin: 0 auto;
  }

    .legacy-content {
        grid-template-columns: 1fr;
    }


    .section-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 1.5rem, 20px);  /* min size, preferred size, max size */
        color: var(--primary-blue);
        margin-bottom: 0px;
    }

    .header-contact p {
        margin-top: 10px;
        font-size: 8px;  /* min size, preferred size, max size */
        line-height: 6px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        text-align: center;
    }
}
