body {
  font-family: "Tajawal", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f8f9;
  color: #37474f;
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

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

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: #fff;
}

.section-title {
  font-size: 2.8em;
  color: #1e88e5;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  width: -webkit-fill-available;
  margin-inline: auto;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #4db6ac;
}

/* Header */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.main-nav ul li {
  margin-right: 20px;
}

.main-nav ul li:last-child {
  margin-right: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: #37474f;
  font-size: 1em;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: #29b6f6;
}

.main-nav ul li .button {
  padding: 10px 20px;
  color: white;
}

.main-nav ul li .button:hover {
  color: white;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-toggle span {
  height: 3px;
  width: 25px;
  background-color: #37474f;
  margin-bottom: 5px;
  border-radius: 1px;
  transition: transform 0.3s ease-in-out;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.redesigned-hero {
  background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
  color: #263238;
  padding: 70px 0;
}

.redesigned-hero .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.redesigned-hero .hero-content {
  flex: 1;
  padding: 20px;
  text-align: right;
}

.redesigned-hero .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1565c0;
}

.redesigned-hero .hero-subtitle {
  font-size: 1.6em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #455a64;
}

.hero-buttons a {
  margin-left: 15px;
}

.hero-buttons a:last-child {
  margin-left: 0;
}

.redesigned-hero .hero-image {
  flex: 1;
  padding: 20px;
  text-align: center;
}

.redesigned-hero .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.button {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.button:hover {
  transform: scale(1.05);
}

.primary-button {
  background-color: #4db6ac;
  color: #fff;
}

.secondary-button {
  background-color: #f44336;
  color: #fff;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.service-item:hover {
  transform: translateY(-10px) !important;
}

.icon-wrapper {
  background-color: #e0f7fa;
  color: #29b6f6;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2em;
  margin: 0 auto 20px;
}

.service-item h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #263238;
  font-weight: 600;
}

.service-item p {
  color: #546e7a;
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #1e88e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease-in-out;
}

.read-more i {
  margin-right: 8px;
}

.read-more:hover {
  color: #0d47a1;
  transform: translateX(5px);
}

/* About Section */
.about .container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 50px;
  align-items: center;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.about-content {
  text-align: right;
}

.about-content h2 {
  margin-bottom: 30px;
  color: #1e88e5;
}

.about-content p {
  font-size: 1.1em;
  color: #546e7a;
  line-height: 1.9;
  margin-bottom: 25px;
}

.about-values {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.about-values li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.about-values i {
  font-size: 1.5em;
  color: #4db6ac;
  margin-left: 15px;
  min-width: 30px;
  text-align: center;
}

.about-values strong {
  font-weight: 700;
  color: #263238;
  margin-right: 5px;
}

/* Doctors Section */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.doctor-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.doctor-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #e0f7fa;
  transition: transform 0.3s ease-in-out;
}

.doctor-card:hover img {
  transform: scale(1.08);
}

.doctor-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #263238;
  font-weight: 600;
}

.doctor-card p {
  color: #546e7a;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.doctor-social {
  display: flex;
  justify-content: center;
}

.doctor-social a.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e1f5fe;
  color: #1e88e5;
  text-decoration: none;
  margin: 0 8px;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease,
    transform 0.3s ease-in-out;
}

.doctor-social a.social-icon:hover {
  background-color: #64b5f6;
  color: #fff;
  transform: rotate(360deg) scale(1.1);
}

.doctors-cta {
  text-align: center;
  margin-top: 50px;
}

.doctors-cta p {
  font-size: 1.1em;
  color: #546e7a;
  margin-bottom: 20px;
}

/* Contact Section */

.redesigned-contact {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.redesigned-contact::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(0, 188, 212, 0.2);
  border-radius: 50%;
  animation: pulse 3s infinite alternate;
}

.redesigned-contact::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background-color: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  animation: float 4s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-15px);
    opacity: 0.8;
  }
}

.redesigned-contact .container {
  max-width: 1200px;
  margin: 0 auto;
}

.redesigned-contact .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.redesigned-contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.redesigned-contact .contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.redesigned-contact .contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  text-align: right;
}

.redesigned-contact .contact-info-item i {
  font-size: 2em;
  color: #00bcd4;
  margin-left: 20px;
  width: 40px;
  text-align: center;
}

.redesigned-contact .contact-info-item h3 {
  font-size: 1.4em;
  color: #37474f;
  margin-bottom: 5px;
  margin-block: 0;
  margin-left: 1.5rem;
}

.redesigned-contact .contact-info-item p {
  color: #546e7a;
  line-height: 1.6;
  margin-block: 0;
}

.redesigned-contact .contact-info-item a {
  text-decoration: none;
  color: black;
}

.redesigned-contact .contact-details .social-links {
  margin-top: 30px;
  text-align: right;
}

.redesigned-contact .contact-details .social-links h3 {
  font-size: 1.2em;
  color: #37474f;
  margin-bottom: 15px;
}

.redesigned-contact .contact-details .social-links .social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.redesigned-contact .contact-details .social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #00bcd4;
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.redesigned-contact .contact-details .social-links a:hover {
  background-color: #008394;
  transform: scale(1.1);
}

.redesigned-contact .contact-form-wrapper {
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.redesigned-contact .contact-form-wrapper h3 {
  font-size: 1.8em;
  color: #1e88e5;
  margin-bottom: 30px;
  text-align: right;
}

.redesigned-contact .contact-form .form-group {
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.redesigned-contact .contact-form .form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1em;
  transition: border-color 0.3s ease;
  direction: rtl;
}

.redesigned-contact .contact-form .form-control:focus {
  outline: none;
  border-color: #00bcd4;
}

.redesigned-contact .contact-form label {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #999;
  font-size: 1em;
  pointer-events: none;
  transition: all 0.3s ease;
}

.redesigned-contact .contact-form .form-control:focus + label,
.redesigned-contact
  .contact-form
  .form-control:not(:placeholder-shown)
  + label {
  top: -10px;
  right: 10px;
  font-size: 0.8em;
  color: #00bcd4;
  background-color: #fff;
  padding: 0 5px;
  border-radius: 4px;
}

.redesigned-contact .contact-form .full-width {
  grid-column: 1 / -1;
}

.redesigned-contact .contact-submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
  background-color: #00bcd4;
  color: #fff;
  border: none;
  cursor: pointer;
}

.redesigned-contact .contact-submit-button:hover {
  background-color: #008394;
  transform: translateY(-2px);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .redesigned-contact .contact-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .redesigned-contact .contact-details {
    margin-bottom: 30px;
    text-align: center;
  }

  .redesigned-contact .contact-details .social-links {
    text-align: center;
  }

  .redesigned-contact .contact-details .social-links .social-icons {
    justify-content: center;
  }

  .redesigned-contact .contact-form-wrapper h3 {
    text-align: center;
  }
}

/* Footer */
.footer {
  background-color: #00bcd4;
  color: #fff;
  padding: 25px 0;
  font-size: 0.9em;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 40px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.footer-links ul li {
  margin-left: 20px;
}

.footer-links ul li:last-child {
  margin-left: 0;
}

.footer-links ul li a {
  color: #e0f7fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer p {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 992px) {
  .redesigned-hero .container,
  .about .container,
  .contact .container {
    grid-template-columns: 1fr;
  }

  .redesigned-hero .hero-content,
  .redesigned-hero .hero-image,
  .about-content,
  .about-image,
  .contact-info,
  .contact-form {
    text-align: center;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    margin-left: 0;
    margin-bottom: 15px;
    width: 80%;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 40px;
  }

  .contact .container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    margin-top: 40px;
  }

  .redesigned-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .redesigned-hero .hero-content {
    text-align: center;
    margin-bottom: 30px;
  }

  .redesigned-hero .hero-title {
    font-size: 2.6em;
  }

  .redesigned-hero .hero-subtitle {
    font-size: 1.3em;
  }

  .hero-buttons a {
    width: 100%;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 99;
  }

  .main-nav.open ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav.open ul li {
    margin: 15px 0;
  }

  .main-nav.open ul li a {
    padding: 12px 20px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.4em;
    margin-bottom: 40px;
  }

  .redesigned-hero {
    padding: 100px 0;
  }

  .redesigned-hero .hero-title {
    font-size: 2.8em;
  }

  .redesigned-hero .hero-subtitle {
    font-size: 1.4em;
  }

  .services-grid,
  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .main-nav.open {
    top: 80px;
  }
}
