body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  direction: rtl;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 10px 0; /* slimmer header */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px; /* keeps header height consistent */
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #345d9d;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

nav ul li a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #345d9d;
  transition: width 0.3s;
}

nav ul li a:hover {
  color: #0066cc;
}

nav ul li a:hover::after {
  width: 100%;
}

.cta-btn {
  background: #345d9d;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.2);
  transition: all 0.3s;
}

.cta-btn:hover {
  background: #004999;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px; /* now menu starts 60px below header */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 20px 10px; /* less padding on left/right */
  }

  nav ul li a {
    text-align: left; /* align text left */
    padding-right: 40px; /* move links a little to the left */
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("images/hero.png") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.7;
}

.hero-btn {
  background: #345d9d;
  color: white;
  padding: 14px 35px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.25);
  transition: all 0.3s;
  display: inline-block;
}

.hero-btn:hover {
  background: #004999;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  nav ul {
    gap: 20px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  .menu-toggle {
    display: block;
  }
  .cta-btn {
    display: none;
  }
  .hero {
    padding: 0 15px;
  }
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  @media (max-width: 768px) {
    .hero-btn {
      padding: 10px 20px; /* slimmer */
      font-size: 0.9rem; /* smaller text */
      border-radius: 25px; /* less pill-like */
      width: auto; /* no full width */
      min-width: 160px; /* keeps it tappable */
      margin: 0 auto;
    }
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto; /* let content decide height */
    min-height: 50vh; /* still tall enough to look like a hero */
    padding: 60px 15px; /* breathing space top/bottom */
    background-position: center top; /* crop the top part of the image */
  }
}

/* commmmmmmmmmmmmmmmmmmmmmment */
/* About Section */
.about {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.about .container {
  display: flex;
  flex-direction: column; /* يخلي العناصر فوق تحت */
  align-items: center;
}

.section-title {
  font-size: 2rem;
  color: #345d9d;
  margin-bottom: 15px;
}

.section-subtitle {
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* Gallery in one row */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.about-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* simple dark overlay */
.about-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.overlay {
  position: relative;
  z-index: 2;
}

.about-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-item:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  text-align: right;
}

.overlay h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.overlay p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsive for tablets */
@media (max-width: 992px) {
  .about-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

/* Responsive for mobile */
@media (max-width: 576px) {
  .about {
    padding: 50px 15px; /* Less padding for small screens */
  }

  .section-title {
    font-size: 1.6rem; /* Smaller but still bold */
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 10px; /* More breathing room */
  }

  .about-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
    gap: 15px; /* Smaller gaps */
  }

  .about-item {
    border-radius: 8px;
  }

  .overlay {
    padding: 12px;
    font-size: 0.9rem;
    text-align: center; /* Center text on mobile */
  }

  .overlay h3 {
    font-size: 1rem;
  }

  .overlay p {
    font-size: 0.85rem;
  }
}
/* Features Section  خدمات ٦ */
.features {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.features .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch; /* ✅ ensures equal height across grid */
}

.feature-item {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: right;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #345d9d;

  display: flex; /* ✅ flex inside each card */
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px; /* ✅ keeps boxes aligned */
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  font-size: 1.2rem;
  color: #345d9d;
  margin-bottom: 12px;
  position: relative;
  padding-right: 28px; /* مساحة يمين للشعار */
  display: inline-block;
}

.feature-item h3::before {
  content: "";
  position: absolute;
  right: 0; /* يظهر يمين النص */
  top: 50%;
  transform: translateY(-50%);
  width: 20px; /* عرض أيقونة */
  height: 20px; /* ارتفاع الأيقونة */
  background: url("images/Tick.png") no-repeat center;
  background-size: contain;
}

.feature-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1; /* ✅ allows paragraph to stretch neatly */
}

/* Responsive for tablets */
@media (max-width: 992px) {
  .features .container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 25px 20px;
  }
}

/* Responsive for mobile */
@media (max-width: 576px) {
  .features {
    padding: 40px 10px;
  }

  .features .container {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 per row on mobile */
    gap: 15px 10px;
  }

  .feature-item {
    padding: 15px 10px;
    border-radius: 8px;
    min-height: 160px; /* smaller min height for phones */
  }

  .feature-item h3 {
    font-size: 0.95rem;
    padding-right: 22px;
  }

  .feature-item h3::before {
    width: 16px;
    height: 16px;
  }

  .feature-item p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Gallery Section */
.gallery {
  padding: 80px 20px;
  background: #fff;
}

.gallery .container {
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Responsive for tablets */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive for mobile */
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
    gap: 10px; /* tighter gaps for small screens */
  }

  .gallery-item {
    border-radius: 8px;
  }
}

/* */

.hero-banner {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero-banner .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  color: #fff;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: bold;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-banner {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    height: 50vh;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}

/* Four Images Section */
.four-images {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.four-images .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.four-images .image-item {
  background: #fff;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #3498db;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.four-images .image-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.four-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-grow: 1;
}

/* Responsive for tablets */
@media (max-width: 992px) {
  .four-images .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Responsive for mobile */
@media (max-width: 576px) {
  .four-images {
    padding: 40px 15px;
  }

  .four-images .container {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 per row on mobile */
    gap: 15px;
  }

  .four-images .image-item {
    min-height: 160px;
    border-radius: 8px;
    border-top-width: 3px;
  }
}

/* Extra small mobile devices */
@media (max-width: 380px) {
  .four-images .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .four-images .image-item {
    min-height: 140px;
  }
}

#section7 {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 80px 20px;
  overflow: hidden;
}

/* الخلفية */
#section7 .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* طبقة فوق الخلفية */
#section7 .overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5); /* شفافية للنص */
  padding: 40px;
  border-radius: 10px;
}

/* الصور */
#section7 .images-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

#section7 .images-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* النص */
#section7 .text-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

#section7 .text-box p {
  font-size: 18px;
  margin: 0;
}

/* موبايل */
@media (max-width: 768px) {
  #section7 .images-row {
    grid-template-columns: 1fr 1fr;
  }
  #section7 .images-row img {
    height: 180px;
  }
  #section7 .text-box h2 {
    font-size: 20px;
  }
  #section7 .text-box p {
    font-size: 16px;
  }
}

/* Doctors Section */
#doctors {
  padding: 50px 20px;
  background-color: #f8f9fa;
  direction: rtl;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: #345d9d;
  font-size: 2rem;
  font-weight: bold;
}

.slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  padding: 10px 0;
}

.doctor-card {
  flex: 0 0 calc(25% - 15px);
  background: linear-gradient(135deg, #ffffff, #f3f7fb);
  border-radius:5px;
  padding: 0px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
}

.doctor-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.doctor-card img {
  width: 140px;
  height: 175px;
  border-radius: 0px;
  border: 0px solid #3498db;
  margin-bottom: 25px;
  margin-top:25px;
  object-fit:contain;
}

.doctor-card h3 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.doctor-card p {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.doctor-card .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: #345d9d;
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: background 0.3s;
  text-decoration: none;
}

.doctor-card .btn:hover {
  background: #345d9d;
}

/* Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(52, 152, 219, 0.85);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: #2980b9;
}

.prev {
  left: 15px; /* السابق على اليسار */
}

.next {
  right: 15px; /* التالي على اليمين */
}

/* Dots */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
}

.dot.active,
.dot:hover {
  background-color: #3498db;
}

/* Responsive */
@media (max-width: 1200px) {
  .doctor-card {
    flex: 0 0 calc(33.333% - 15px);
  }
}

@media (max-width: 768px) {
  .doctor-card {
    flex: 0 0 calc(50% - 15px);
  }

  .prev,
  .next {
    width: 40px;
    height: 40px;
  }
}

/* Improved Mobile Design */
@media (max-width: 480px) {
  .doctor-card {
    flex: 0 0 calc(50% - 10px); /* 2 per row instead of full width */

    border-radius: 15px;
    min-width: auto;
  }

  .doctor-card img {
    width: 90px;
    height: 90px;
    border: 3px solid #345d9d;
    margin-bottom: 10px;
  }

  .doctor-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .doctor-card p {
    font-size: 0.8rem;
  }

  .doctor-card .btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .prev,
  .next {
    width: 32px;
    height: 32px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}
/* Location Section */
#location {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

#location .section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #003366;
}

.map-container {
  max-width: 1200px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Contact Section */
#contact-form-section {
  background: #fff;
  padding: 60px 20px;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  width: 100%; /* ✅ keep wrapper inside viewport */
  box-sizing: border-box; /* ✅ respect padding */
}

.form-box {
  flex: 1;
  background: #fafafa;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-box input,
.form-box textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: border 0.3s, box-shadow 0.3s;
  width: 100%; /* ✅ always full width */
  box-sizing: border-box; /* ✅ avoid overflow */
}

.form-box input:focus,
.form-box textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px rgba(0, 102, 204, 0.2);
  outline: none;
}

.form-box textarea {
  resize: none;
  min-height: 120px;
}

.form-box button {
  background: #345d9d;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%; /* ✅ full width */
  box-sizing: border-box;
}

.form-box button:hover {
  background: #004999;
  transform: translateY(-2px);
}

.info-box {
  flex: 1;
  font-family: "Cairo", sans-serif;
  color: #333;
  box-sizing: border-box;
}

.info-box h3 {
  margin-bottom: 8px;
  color: #345d9d;
}

.info-box p {
  margin-bottom: 20px;
}

/* Responsive for tablets */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

/* Responsive for mobile */
@media (max-width: 576px) {
  #location {
    padding: 40px 15px;
  }

  #location .section-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .map-container iframe {
    height: 280px;
  }

  #contact-form-section {
    padding: 40px 15px;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .form-box,
  .info-box {
    width: 100%; /* ✅ force 100% width */
    max-width: 100%; /* ✅ prevent stretching */
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
  }

  .form-box input,
  .form-box textarea {
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
  }

  .form-box textarea {
    min-height: 100px;
  }

  .form-box button {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}

/* Contact Section */
#contact-form-section {
  background: #fff;
  padding: 60px 20px;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  width: 100%; /* ✅ keep wrapper inside viewport */
  box-sizing: border-box; /* ✅ respect padding */
}

/* === Form Box (renamed) === */
.appointment-form {
  flex: 1;
  background: #fafafa;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.appointment-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.appointment-form .form-control,
.appointment-form .custom-select {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: border 0.3s, box-shadow 0.3s;
  width: 100%; /* ✅ always full width */
  box-sizing: border-box; /* ✅ avoid overflow */
}

.appointment-form .form-control:focus,
.appointment-form .custom-select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px rgba(0, 102, 204, 0.2);
  outline: none;
}

.appointment-form button {
  background: #345d9d;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%; /* ✅ full width */
  box-sizing: border-box;
}

.appointment-form button:hover {
  background: #004999;
  transform: translateY(-2px);
}

/* === Info Box === */
.info-box {
  flex: 1;
  font-family: "Cairo", sans-serif;
  color: #333;
  box-sizing: border-box;
}

.info-box h3 {
  margin-bottom: 8px;
  color: #345d9d;
}

.info-box p {
  margin-bottom: 20px;
}

/* Responsive for tablets */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

/* Responsive for mobile */
@media (max-width: 576px) {
  #location {
    padding: 40px 15px;
  }

  #location .section-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .map-container iframe {
    height: 280px;
  }

  #contact-form-section {
    padding: 40px 15px;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .appointment-form,
  .info-box {
    width: 100%; /* ✅ force 100% width */
    max-width: 100%; /* ✅ prevent stretching */
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
  }

  .appointment-form .form-control,
  .appointment-form .custom-select {
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
  }

  .appointment-form button {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}
#footer {
  background: #003366; /* أزرق غامق يعطي تباين جميل */
  color: #fff;
  padding: 30px 15px;
  font-family: "Cairo", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.footer-text {
  font-size: 0.95rem;
  color: #e6e6e6;
  letter-spacing: 0.3px;
}

/* أيقونات السوشيال */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px; /* مسافة متساوية بين الأيقونات */
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%; /* يجعلها دائرية تماماً */
  background: #fff;
  color: #0066cc;
  font-size: 1.2rem; /* حجم الأيقونة داخل الدائرة */
  text-decoration: none; /* ✅ يزيل الخط تحت الأيقونة */
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.footer-social a:hover {
  background: #0066cc;
  color: #fff;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

#chatbot-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: "Cairo", sans-serif;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

#chatbot-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.chatbot-center-box {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chatbot-center-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 28px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.chatbot-center-box:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.chatbot-center-box:hover::before {
  opacity: 1;
}

.chatbot-iframe {
  width: 100%;
  height: 650px;
  border-radius: 22px;
  border: none;
  display: block;
  background: #f8f9fa;
  max-width: 100%;
}

@media (max-width: 768px) {
  #chatbot-section {
    padding: 40px 20px;
    min-height: 100vh;
  }

  .chatbot-center-box {
    max-width: 100%;
    padding: 6px;
    border-radius: 24px;
  }

  .chatbot-center-box::before {
    border-radius: 24px;
  }

  .chatbot-iframe {
    height: 580px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  #chatbot-section {
    padding: 30px 15px;
  }

  .chatbot-center-box {
    padding: 5px;
    border-radius: 20px;
  }

  .chatbot-center-box::before {
    border-radius: 20px;
  }

  .chatbot-iframe {
    height: 520px;
    border-radius: 16px;
  }
}
