:root{
--medical-blue: #1976d2;
  --light-grey: #f5f7fa;
  --white: #fff;
}

body {
  background: var(--light-grey);
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}

nav {
  background: lightgray;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}
body {
  padding-top: 0;
}

.nav-container img{
  height: 50px;
  width: 60px;
  border-radius: 50%;
}

.nav-container span {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: black;
}

.links {
  display: flex;
  gap: 1.5rem;
}

.links a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.links a:hover, .links a:focus {
  background: var(--medical-blue);
  color: var(--light-grey);
}

.links a[href="emergency.html"] {
  background: #d32f2f;
  color: #fff !important;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 1.3rem;
  transition: background 0.2s;
  margin-left: 100px;
}

.links a[href="emergency.html"]:hover,
.links a[href="emergency.html"]:focus {
  background: var(--medical-blue);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger a {
  height: 8px;
  width: 100%;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 700px) {

 .nav-container img{
  height: 40px;
  width: 50px;
  border-radius: 50%;
}

.nav-container span {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: black;
}

  .hamburger {
    display: flex;
    margin-left: auto;
    font-size: 2rem;
  }
  .links {
    display: none !important;
    flex-direction: column;
    width: 60%;
    border-radius: 20px;
    margin-left: 40px;
    background: #333333;
    position: absolute;
    top: 60px;
    left: 200px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    z-index: 1000;
   padding: 1rem 1rem;
  }
  
.links a[href="emergency.html"] {
  background: #d32f2f;
  color: #fff !important;
  border-radius: 10px;
  transition: background 0.2s;
  width: 50%;
  margin-left: 0%;
}

.links a[href="emergency.html"]:hover,
.links a[href="emergency.html"]:focus {
  background: var(--medical-blue);
  color: #fff;
}

  
 .links.open {
    display: flex !important;
  }
  .nav-container {
    position: relative;
  }
}

.doctor-intro{
    background: url(images/background7.jpg);
    padding: 2rem 0;
    margin: 1rem auto;
    text-align: center;
}
.doctor-intro h2{
    font-size: 3rem;
    color: white;
}
.doctor-intro p{
    color: lightgray;
    font-size: 1.2rem;
    font-style: italic;
    padding-top: 0;
}

.doctor{
    display: block;
    background-color: lightblue;
    padding: 0 40px;
    margin: 10px auto 30px auto;
    border-radius: 30px;
}

.doctor-container{
  display: flex;
  align-items: center;
  gap: 5%;
  flex-wrap: wrap;
  padding-bottom: 50px;
  margin: 0;
}

.doctor-container img {
  width: 35%;
  height: 35% ;
  border-radius: 20px !important;
  object-fit: cover;
  margin-left: 30px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  padding: 10px;

}
.doctor-grid{
    flex: 1;
    display: table-column;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    text-align: center;
}

.doctor-grid h3 {
  flex: 1;
  color: #333;
  font-size: 1.5rem;
}

.doctor-grid p {
  font-size: 1rem;
  padding-bottom: 3rem;
  margin-top: 0;
}
.doctor-grid h4 {
  font-size: 2rem;
  text-decoration: underline;
}
.doctor-grid h6 {
  font-size: 1.5rem;
  font-style: italic;
}
.doctor-grid i{
    font-size: 1.4rem;
}
.doctor-grid span{
  font-size: 1.1rem;
}
.doctor-grid a{
    font-size: 1.2rem;
    color: #000;
    background-color: #10e02e;
}
.doctor-grid a:hover,
.doctor-grid a:focus {
    background-color: #d32f2f;
}

.doctor-card{
    flex: 1;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
    transition: transform 0.2s;
}

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

.doctor-card p {
    margin: 0.5rem 0;
    padding: 0.4rem ;
    font-size: 1.1rem;
    color: #333;
}

.doctor-card b {
    font-weight: bold;
    color: #10e02e;
}


.expert{
    padding: 2rem 0;
    text-align: center;
    background-color: lightgray;
    border-radius: 30px;
    margin-bottom: 2rem;
}
.expert h2{
    font-size: 1.8rem;
    color: #333;
}

.expert p {
    font-size: 1rem;
    font-style: italic;
    padding-bottom: 3rem;
    margin-top: 0;
}
.expert-grid{
    display: flex;
    flex-direction: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: 160px;
}
.expert-card {
  background: lightgray;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: space-between;
  text-align: flex-start;
  min-width: 30%;
  max-width: 40%;
  gap: 1rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.expert-card:hover {
    background-color: lightblue;
  box-shadow: 0 4px 20px rgba(25, 118, 210, 0.18);
  transform: translateY(-4px) scale(1.03);
}

.expert-card h3 {
  color: #1976d2;
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.7rem;
}
.expert-card p {
  color: #444;
  font-size: 1rem;
  margin: 0;
  font-style: italic;
}

.value-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.expert-services {
  margin-top: 2rem;
  background-color: lightgray;
  padding: 1rem;
  border-radius: 8px;
  margin: 0 0 2rem 2rem;
  gap: 1rem;
  text-align: center;
}
.expert-services h4 {
  margin: 0 1rem 1rem 0;
  font-size: 1.5rem;
  color: #1976d2;
}
.expert-services i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
.expert-services span {
  font-size: 1.2rem;
  color: #333;
}

@media (max-width: 700px) {
    .doctor-intro h2{
        font-size: 1.5rem;
        padding-top: 1rem;
    }
    .doctor-intro p{
        font-size: 0.7rem;
        padding-bottom: 1rem;
        margin-top: 0;
    }

    .doctor{
        margin: 0 0 1rem 0;
    }

  .doctor-container {
    flex-direction: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.3rem !important;
  }
  .doctor-container img {
    width: 40% !important;
    max-width: 60% !important;
    height: 280px !important;
    margin-left: 3px !important;
    display: block !important;
    padding-top: 0.2rem !important;
    margin-top: 0.5rem !important;
  }
  .doctor-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    width: 50% !important;
  }
  .doctor-grid h3{
    font-size: 1rem !important;
    padding-bottom: 0.5rem;
  }
  .doctor-grid p{
    font-size: 0.8rem !important;
    padding-bottom: 0.8rem;
  }
  .doctor-grid h4 {
    font-size: 1rem !important;
  }
  .doctor-grid h6{
    font-size: 0.6rem !important;
  }
  .doctor-card{
    display:none !important;
  }
  .doctor-grid a{
    font-size: 0.8rem !important;
    margin-top: 0.7rem;
    background-color: lightblue !important;
  }
  .doctor-grid i{
    font-size: 0.8rem !important;
    margin-top: 0.7rem;
    padding-right: 1.5rem;
  }
  .doctor-grid span{
    font-size: 0.6rem !important;
    margin-top: 0.7rem;
  }

  .expert{
    padding: 2rem 0.5rem 0 0.5rem !important;
    background: none;
  }
   .expert h2 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.1rem;

}
.expert p {
  font-size: 0.6rem;
  margin: 0;
  font-style: italic;
}

.expert-grid{
    margin-left: 10px !important;
}

  .expert-card {
    padding: 1rem 0.5rem !important;
    margin-bottom: 1.2rem !important;
  } 
  .expert-card h3{
    font-size: 1rem;
  }
  .expert-card p {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem !important;
  }
   
  .expert-services{
    margin-right: 25px !important;
  }
  .expert-services h4{
    font-size: 1rem;
  }
  .expert-services i{
    font-size: 1rem;
    margin-right: 0.5rem;
  }
  .expert-services span{
    font-size: 0.8rem;
  }
}

.consultation {
  background: var(--medical-blue);
  padding: 2rem 0;
  margin: 3rem auto;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
}
.consultation h2{
  color: white;
  font-size: 2rem;
}
.consultation p {
  color: white;
  font-size: 1rem;
  font-style: italic;
}

.consultation .btn {
  display: inline-block;
  background: #fff;
  color: blue;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem 2.2rem;
  border-radius: 32px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(211, 47, 47, 0.15);
  margin: 1rem auto;
  transition: background 0.2s, transform 0.2s;
}
.consultation .btn:hover, .consultation .btn:focus {
  background: lightblue;
  color: #fff;
  transform: scale(1.05);
}
@media (max-width: 700px) {
  .consultation {
    padding: 1rem 0;
  }
  .consultation h2{
    font-size: 1.2rem;
  }
  .consultation p {
    font-size: 0.6rem;
  }
  .consultation .btn {
    font-size: 0.6rem;
    padding: 0.5rem;
    margin: 0.5rem;
    height: 20px;
  }
}


footer {
  background: #333333;
  color: #fff;
  padding: 2.5rem 1rem 1rem 1rem;
  margin:  0.3rem 0.5rem 3rem 0.5rem ;
  font-size: 1rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}
.footer-col {
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-col img{
  height: 35px;
  width: 40px;
  border-radius: 50%;
}


.footer-col h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.footer-col b {
  font-size: 1.1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.7rem;
}
.footer-col ul li a {
  color: #bbdefb;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: #43e97b;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #bbdefb;
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 20px 0;
    min-height: 10vh;
    
  }
  .footer-col {
    min-width: unset;
  }
  .footer-col h3 {
    font-size: 1rem;
  }
  .footer-col p{
    font-size: 0.7rem;
  }
  .footer-col b {
    font-size: 0.7rem;
  }
  .footer-col ul li {
    font-size: 0.6rem;
  }
}