/* AMDH Custom Styles - Pages تقديم الجمعية */

.amdh-wrap {
  direction: rtl;
  font-family: system-ui;
  line-height: 1.8;
}

.amdh-hero {
  padding: 28px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b7ca0, #22a8c7);
  color: #fff;
  margin-bottom: 22px;
}

.amdh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.amdh-card {
  border: 1px solid #e7edf2;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.amdh-card h4 {
  font-size: 18px;
  margin: 8px 0;
}

.amdh-card img {
  max-width: 100%;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px auto;
}

.amdh-btn {
  display: inline-block;
  background: #0b7ca0;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.amdh-note {
  background: #f4fbfe;
  border-right: 4px solid #0b7ca0;
  padding: 12px 14px;
  border-radius: 8px;
}

/* AMDH Header/Footer refresh */
:root {
  --amdh-brand: #0b7ca0;
  --amdh-brand-2: #19a3b3;
  --amdh-brand-3: #084d8d;
  --amdh-ink: #1d2a3a;
  --amdh-soft: #eef6fb;
}

.topbar.topbar-style-1 {
  background: linear-gradient(110deg, #09385f, #0f6d94 45%, #13a7a7);
  border-bottom: 0;
  box-shadow: 0 10px 25px rgba(6, 44, 73, 0.2);
}

.topbar.topbar-style-1 .top-menu > li > a,
.topbar.topbar-style-1 .top-menu > li > span {
  color: #f3fbff;
}

.topbar.topbar-style-1 .top-menu > li.amdh-top-contact a {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-inline-end: 10px;
  font-weight: 700;
}

.amdh-phone-text {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  letter-spacing: 0.3px;
}

.topbar.topbar-style-1 .top-menu > li.amdh-top-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-inline-end: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.topbar.topbar-style-1 .top-menu > li.amdh-top-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.main-menu-wrapper {
  position: relative;
  background: radial-gradient(circle at 10% 0, #ecf9ff, #ffffff 60%);
  border-bottom: 1px solid #deedf8;
  overflow: visible;
}

.main-menu-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background:
    linear-gradient(120deg, rgba(11, 124, 160, 0.07), rgba(25, 163, 179, 0.06) 45%, rgba(8, 77, 141, 0.08));
  pointer-events: none;
  z-index: 0;
}

.main-menu-wrapper .main-menu-inner {
  position: relative;
  z-index: 2;
}

.main-menu-wrapper .main-menu-container {
  margin: 10px 0;
  padding: 6px 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(236, 249, 255, 0.96));
  border: 1px solid #d4ebf8;
  box-shadow: 0 12px 24px rgba(16, 87, 127, 0.12);
  position: relative;
  z-index: 2;
}

.main-menu-wrapper .main-menu > li > a {
  position: relative;
  color: var(--amdh-ink);
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: color 0.22s ease;
}

.main-menu-wrapper .main-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amdh-brand), var(--amdh-brand-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-menu-wrapper .main-menu > li:hover > a,
.main-menu-wrapper .main-menu > .current-menu-item > a,
.main-menu-wrapper .main-menu > .current-menu-ancestor > a {
  color: var(--amdh-brand-3);
}

.main-menu-wrapper .main-menu > li:hover > a::after,
.main-menu-wrapper .main-menu > .current-menu-item > a::after,
.main-menu-wrapper .main-menu > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.main-menu-wrapper .menu-action-buttons > div {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(12, 79, 120, 0.12);
}

.site-footer .amdh-footer-contact {
  background: linear-gradient(125deg, #0c557f, #158ab0 52%, #17a88d);
  color: #fff;
  padding: 24px 0;
  margin-top: 14px;
}

.site-footer .amdh-footer-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer .amdh-footer-contact-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.site-footer .amdh-footer-contact-copy p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .amdh-source-social-links {
  margin-top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer .amdh-source-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  background: linear-gradient(140deg, rgba(7, 36, 59, 0.9), rgba(12, 63, 95, 0.88));
  border: 1px solid rgba(159, 228, 255, 0.5);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  box-shadow: 0 10px 20px rgba(3, 21, 36, 0.45);
  backdrop-filter: blur(2px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.site-footer .amdh-source-social-links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(140deg, rgba(9, 50, 81, 0.95), rgba(16, 84, 122, 0.95));
  border-color: rgba(201, 240, 255, 0.8);
  box-shadow: 0 14px 24px rgba(2, 14, 26, 0.5);
}

.site-footer .amdh-source-social-links i {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.site-footer .amdh-source-social-links .source-youtube i {
  color: #ff4b4b;
}

.site-footer .amdh-source-social-links .source-facebook i {
  color: #4ea1ff;
}

.site-footer .amdh-source-social-links .source-instagram i {
  color: #ff89cf;
}

.site-footer .amdh-source-social-links .source-tiktok i {
  color: #ffffff;
}

.site-footer .amdh-source-social-links .source-linkedin i {
  color: #6ab8ff;
}

.site-footer .amdh-footer-contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .amdh-phone-pill {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  background: #fff;
  color: #0f628a;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}

.site-footer .amdh-footer-manifesto {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f3b5b, #145f8c);
  border: 1px solid rgba(142, 214, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.site-footer .amdh-footer-manifesto p {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 2.05;
  text-align: center;
  direction: rtl;
  max-width: 980px;
  margin-inline: auto;
}

.site-footer .amdh-social-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .amdh-social-pills a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-footer .amdh-social-pills a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.site-footer .copy-footer {
  background: linear-gradient(180deg, #07263f, #041726);
}

.amdh-footer-contact-info {
  background: linear-gradient(180deg, #0a4d72, #07354f);
  border-top: 1px solid rgba(142, 214, 255, 0.25);
  padding: 28px 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-item.contact-email {
  order: 1;
}

.contact-item.contact-address {
  order: 2;
}

.contact-item.contact-fax {
  order: 3;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(142, 214, 255, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.contact-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(142, 214, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #11a5d6, #1fa8bb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 6px 12px rgba(17, 165, 214, 0.3);
}

.contact-content {
  width: 100%;
}

.contact-content h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
  text-align: center;
}

.contact-item.contact-email .contact-content p,
.contact-item.contact-fax .contact-content p {
  margin: 0;
  color: rgba(241, 250, 255, 0.9);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.contact-item.contact-address .contact-content p {
  margin: 0;
  color: rgba(241, 250, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.contact-item.contact-email .contact-content p {
  font-size: 16px;
  font-weight: 700;
}

.contact-item.contact-email .contact-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(140, 214, 255, 0.18);
  border: 1px solid rgba(140, 214, 255, 0.45);
  color: #d2f1ff;
  text-decoration: none;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.contact-item.contact-email .contact-content a:hover {
  background: rgba(140, 214, 255, 0.28);
  color: #ffffff;
  text-decoration: none;
}

.contact-content p a {
  color: #8cd6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-content p a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-footer .amdh-footer-contact {
    padding: 18px 0;
  }

  .site-footer .amdh-footer-contact-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .amdh-footer-contact-copy,
  .site-footer .amdh-footer-contact-actions {
    width: 100%;
    justify-content: center;
  }

  .site-footer .amdh-footer-contact-copy h3 {
    font-size: 20px;
  }

  .site-footer .amdh-phone-pill {
    width: 100%;
    justify-content: center;
  }

  .site-footer .amdh-source-social-links {
    justify-content: center;
    width: 100%;
  }

  .site-footer .amdh-source-social-links a {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-item {
    padding: 14px;
  }

  .contact-item.contact-email {
    order: 1;
  }

  .contact-item.contact-address {
    order: 2;
  }

  .contact-item.contact-fax {
    order: 3;
  }

  .contact-item.contact-email .contact-content p {
    font-size: 15px;
  }

  .contact-item.contact-email .contact-content a {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
  }
}

/* AMDH Header & Logo Decoration - Modern Creative Design */

.site-header.header-style-1 .header-inner .container {
  padding: 0 !important;
}

.site-header.header-style-1 .header-inner .row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
}

.site-header.header-style-1 .header-inner .row-height {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.site-header.header-style-1 .logo-col {
  padding: 20px 12px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
}

.site-header.header-style-1 .logo-col .col-inside {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.site-header.header-style-1 .logo-col:hover .col-inside {
  transform: translateY(-4px);
}

/* AMDH Header & Logo Decoration - Universal */
.site-header .site-branding {
  text-align: center;
}

.site-header .site-branding .logo {
  position: relative;
  display: inline-block;
  border: 3px solid #0d96a7 !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, rgba(13, 150, 167, 0.05), rgba(34, 168, 199, 0.05)) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  line-height: 0 !important;
  box-sizing: border-box;
  z-index: 1;
}

.site-header .site-branding .logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(13, 167, 167, 0.2), transparent 70%);
  border-radius: 50%;
  animation: amdh-logo-glow 3s ease-in-out infinite;
  z-index: -1;
}

.site-header .site-branding .logo:hover {
  border-color: #0a7a8a !important;
  background: linear-gradient(135deg, rgba(13, 150, 167, 0.1), rgba(34, 168, 199, 0.1)) !important;
  box-shadow: 0 4px 15px rgba(13, 167, 167, 0.2) !important;
}

.site-header .site-branding .logo img {
  display: block;
  max-width: 150px !important;
  height: auto !important;
  filter: drop-shadow(0 4px 10px rgba(13, 167, 167, 0.2)) !important;
  transition: all 0.3s ease !important;
}

.site-header .site-branding .logo:hover img {
  filter: drop-shadow(0 6px 15px rgba(13, 167, 167, 0.4)) !important;
  transform: scale(1.04) !important;
}

@keyframes amdh-logo-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(13, 167, 167, 0.3);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(13, 167, 167, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@media (max-width: 767px) {
  .rh-header {
    display: block !important;
  }

  .rh-header .logo-container.rh-img-logo {
    font-size: 0;
  }

  .rh-header .logo-container.rh-img-logo img {
    display: block !important;
    max-width: 150px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .site-branding {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .site-header .site-branding .logo,
  .site-header .site-branding .logo a,
  .site-header .site-branding .logo img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 130px !important;
  }

  .site-header .site-branding .logo.img-logo .site-title,
  .site-header .site-branding .logo.text-logo,
  .site-header .site-branding .logo.text-logo .site-title {
    display: none !important;
  }

  .site-header .site-branding .logo.img-logo img {
    display: block !important;
    max-width: 130px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
  }

  .site-header.header-style-1 .logo-col,
  .site-header.header-style-1 .header-inner .row,
  .site-header.header-style-1 .header-inner .row-height {
    justify-content: center !important;
  }
}
