/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: rgb(65, 199, 199);
}

/* Header styles */
header {
  background-color: #ffffff;
  padding: 1rem 5%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: #00bcd4;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  object-fit: contain;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bcd4;
  transition: color 0.3s ease;
}


.nav-right {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin-left: 2rem;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  transition: color 0.3s ease;
}

header.scrolled nav ul li a {
  color: #fff;
}

nav ul li a:hover {
  color: #00bcd4;
}

header.scrolled nav ul li a:hover {
  color: #f0f0f0;
}

/* Hero section styles */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  padding: 5rem 10%;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 80vh;
  color: #fff;
  background-color: #00bcd4; /* fallback */
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Cards */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  margin: 3rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  text-align: center;
  width: 100%;
}

.card-title {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.card-btn {
  display: inline-block;
  background-color: #00bcd4;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  font-weight: 600;
  border: none;
  margin-top: auto;
}

.card-btn:hover {
  background-color: #008c9e;
}

/* Card details toggle */
.card-details {
  margin-top: 15px;
  text-align: left;
  color: #444;
  font-size: 0.9rem;
  display: none;
}

/* Contact form styles */
.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: url('/static/images/healthcare1.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 80vh;
}

form {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
}

form h1 {
  margin-bottom: 20px;
  color: #00bcd4;
  text-align: center;
  font-weight: 700;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00bcd4;
  outline: none;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #008c9e;
}

/* Doctor page background image */
#doctbc {
  position: fixed;
  width: 100%;
  height: 110vh;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.2;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 5%;
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    margin-left: 1rem;
  }

  nav ul li {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
  }

  .card {
    max-width: 100%;
    margin: 1rem 0.5rem;
  }

  .contact-form {
    padding: 2rem 1rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  nav ul {
    justify-content: center;
  }

  .search-bar {
    width: 100%;
  }
}
