.ampmici-smart-search {
    padding: 30px 20px 35px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8fd 100%);
}

.ampmici-search-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.ampmici-search-header {
    text-align: center;
    margin-bottom: 22px;
}

.ampmici-search-header h2 {
    font-size: 32px;
    color: #4B0082;
    margin: 0 0 10px;
    font-weight: 800;
}

.ampmici-search-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    color: #444;
    line-height: 1.7;
}

.ampmici-search-box {
    background: #ffffff;
    padding: 28px 35px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(75, 0, 130, 0.08);
    border: 1px solid rgba(75, 0, 130, 0.08);
    text-align: center;
}

/* إجبار محتوى الشورت كود على التوسيط */
.ampmici-search-box > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.ampmici-search-box form {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

/* في حال كان الشورت كود يستخدم div داخلي */
.ampmici-search-box div {
    float: none !important;
}

.ampmici-search-box select,
.ampmici-search-box button,
.ampmici-search-box input[type="submit"] {
    float: none !important;
}
.ampmici-search-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ampmici-search-box > div,
.ampmici-search-box > form {
    margin: 0 auto !important;
}
/* ===============================
   AMP MICI - Section 5 Community
================================ */

.amp-community-section {
  position: relative;
  overflow: hidden;
  padding: 110px 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 111, 0, 0.10), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8f1fc 100%);
}

.amp-community-container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.amp-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(75, 0, 130, 0.08);
  color: #4B0082;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.amp-community-content h2 {
  margin: 0 0 22px;
  color: #4B0082;
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.amp-community-content p {
  max-width: 560px;
  margin: 0 0 34px;
  color: #333333;
  font-family: 'Tajawal', sans-serif;
  font-size: 19px;
  line-height: 1.9;
}

.amp-community-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.amp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.amp-btn-primary {
  background: #FF6F00;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 111, 0, 0.25);
}

.amp-btn-primary:hover {
  background: #FF8F00;
  color: #ffffff;
  transform: translateY(-3px);
}

.amp-btn-secondary {
  background: #ffffff;
  color: #4B0082;
  border: 1px solid rgba(75, 0, 130, 0.18);
}

.amp-btn-secondary:hover {
  background: #4B0082;
  color: #ffffff;
  transform: translateY(-3px);
}

.amp-community-visual {
  position: relative;
  min-height: 430px;
}

.amp-community-card {
  position: absolute;
  width: 82%;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(75, 0, 130, 0.10);
  box-shadow: 0 28px 60px rgba(75, 0, 130, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.28s ease;
}

.amp-community-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 70px rgba(75, 0, 130, 0.18);
}

.amp-card-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #F5F5F5;
}

.amp-community-card h3 {
  margin: 0 0 8px;
  color: #4B0082;
  font-family: 'Tajawal', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.amp-community-card p {
  margin: 0;
  color: #333333;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.card-doctor {
  top: 0;
  right: 0;
}

.card-nutrition {
  top: 145px;
  left: 0;
}

.card-patients {
  bottom: 0;
  right: 50px;
}

.card-doctor .amp-card-icon {
  background: rgba(75, 0, 130, 0.08);
}

.card-nutrition .amp-card-icon {
  background: rgba(67, 160, 71, 0.10);
}

.card-patients .amp-card-icon {
  background: rgba(255, 111, 0, 0.10);
}

.amp-community-bg-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}

.amp-shape-one {
  width: 280px;
  height: 280px;
  background: rgba(75, 0, 130, 0.06);
  top: -90px;
  right: -90px;
}

.amp-shape-two {
  width: 220px;
  height: 220px;
  background: rgba(255, 111, 0, 0.08);
  bottom: -80px;
  left: 8%;
}

/* Responsive */
@media (max-width: 900px) {
  .amp-community-section {
    padding: 80px 18px;
  }

  .amp-community-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .amp-community-visual {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .amp-community-card {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

@media (max-width: 520px) {
  .amp-community-content h2 {
    font-size: 34px;
  }

  .amp-community-content p {
    font-size: 17px;
  }

  .amp-community-actions {
    flex-direction: column;
  }

  .amp-btn {
    width: 100%;
  }
  
  

  .amp-community-card {
    padding: 22px;
    border-radius: 24px;
  }
}
