/* ================================================================
   HOSTINGER PARTNER — homepage promos (EN + AR)
   1. Hero announcement          2. Founder credential chip
   3. Certifications band item   4. Tech-stack tile
   5. "Who We Are" ecosystem sentence
   Colours follow the site palette (cyan / blue / white on dark
   surfaces). Hostinger purple appears ONLY as a soft glow around the
   official badge (/IMGS/partners/hostinger-partner.png), which is never
   filtered, recoloured or cropped — the glow is a box-shadow.
================================================================ */

/* ── Shared: soft glow around the badge ───────────────────── */
.hero-partner-badge,
.cred-badge.cred-partner img,
.gcert-item.gcert-partner img,
.tech-card.tech-card--partner img {
  box-shadow: 0 0 14px rgba(103, 61, 230, 0.32);
}

/* ── 1. Hero announcement ─────────────────────────────────── */
.hero-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding-block: 6px;
  padding-inline: 6px 16px;
  border: 1px solid rgba(0, 195, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(58, 123, 255, 0.1) 0%, rgba(13, 13, 24, 0.62) 45%, rgba(0, 195, 255, 0.06) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: start;
  text-decoration: none;
  /* home.css disables pointer events on .banner-content below 768px */
  pointer-events: auto;
  transition: var(--t-base);
}
[dir="rtl"] .hero-partner {
  background: linear-gradient(250deg, rgba(58, 123, 255, 0.1) 0%, rgba(13, 13, 24, 0.62) 45%, rgba(0, 195, 255, 0.06) 100%);
}
.hero-partner:hover,
.hero-partner:focus-visible {
  border-color: rgba(0, 195, 255, 0.55);
  color: var(--text-primary);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 28px rgba(0, 195, 255, 0.16);
  transform: translateY(-1px);
}
.hero-partner:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.hero-partner-badge {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 34px;
  transition: box-shadow 0.22s var(--ease);
}
.hero-partner:hover .hero-partner-badge,
.hero-partner:focus-visible .hero-partner-badge {
  box-shadow: 0 0 20px rgba(103, 61, 230, 0.45);
}
.hero-partner-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hero-partner-text {
  min-width: 0;
}
.hero-partner-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
.hero-partner-code {
  display: inline-block;
  padding: 0 7px;
  border: 1px dashed rgba(0, 195, 255, 0.6);
  border-radius: 6px;
  background: rgba(0, 195, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.6;
  direction: ltr;
  unicode-bidi: isolate;
}
.hero-partner-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}
.hero-partner-more i {
  font-size: 0.95em;
  transition: transform 0.2s var(--ease);
}
.hero-partner:hover .hero-partner-more i,
.hero-partner:focus-visible .hero-partner-more i {
  transform: translateX(3px);
}
[dir="rtl"] .hero-partner:hover .hero-partner-more i,
[dir="rtl"] .hero-partner:focus-visible .hero-partner-more i {
  transform: translateX(-3px);
}
@media (max-width: 600px) {
  /* phones: badge + one text block; "More" flows inline after the code */
  .hero-partner {
    max-width: min(100%, 360px);
    margin-top: 24px;
    padding-block: 8px;
    padding-inline: 8px 14px;
    font-size: 0.8rem;
  }
  .hero-partner-badge {
    height: 30px;
  }
  .hero-partner-body {
    display: block;
  }
  .hero-partner-more {
    margin-inline-start: 4px;
    padding-inline-start: 0;
    border-inline-start: 0;
    vertical-align: baseline;
  }
}

/* ── 2. Founder credential chip ───────────────────────────── */
.cred-badge.cred-partner {
  padding-block: 8px;
  padding-inline: 8px 14px;
  border-color: var(--border-cyan);
  color: var(--text-primary);
  text-decoration: none;
}
.cred-badge.cred-partner img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 22px;
}
.cred-badge.cred-partner:hover,
.cred-badge.cred-partner:focus-visible {
  border-color: var(--cyan);
  background: rgba(0, 195, 255, 0.06);
  box-shadow: 0 0 18px rgba(0, 195, 255, 0.14);
  transform: translateY(-1px);
}
.cred-badge.cred-partner:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .cred-badge.cred-partner {
    padding-block: 7px;
    padding-inline: 7px 11px;
  }
  .cred-badge.cred-partner img {
    height: 20px;
  }
}

/* ── 3. Certifications & Partnerships band item ───────────── */
a.gcert-item {
  color: inherit;
  text-decoration: none;
}
.gcert-item.gcert-partner img {
  width: auto;
  height: 20px;
}
.gcert-item.gcert-partner:focus-visible {
  border-color: var(--border-cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (max-width: 960px) {
  .gcert-item.gcert-partner img {
    height: 18px;
  }
}

/* ── 4. Tech-stack tile ("Cloud & Hosting") ───────────────── */
/* the group keeps the shared 780px row width (tiles shrink to fit
   five, the same way the three-tile Security row grows to fit three) */
.tech-card.tech-card--partner {
  text-decoration: none;
}
.tech-card.tech-card--partner img,
.tech-card.tech-card--partner:hover img {
  width: min(100%, 124px);
  height: auto;
  max-width: none;
  max-height: none;
  filter: none;
}
.tech-card.tech-card--partner:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(103, 61, 230, 0.42);
}
.tech-card.tech-card--partner:focus-visible {
  border-color: var(--border-cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  /* 3-column phone grid: the wide badge spans two cells so the
     second row (DigitalOcean + Hostinger) is filled edge to edge */
  .tech-card.tech-card--partner {
    grid-column: span 2;
    aspect-ratio: auto;
  }
  .tech-card.tech-card--partner img,
  .tech-card.tech-card--partner:hover img {
    width: min(100%, 140px);
  }
}

/* ── 5. "Who We Are" ecosystem sentence ───────────────────── */
#about p:has(+ .about-eco) {
  margin-bottom: 18px;
}
#about .about-eco {
  max-width: 740px;
  margin-inline: auto;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.about-eco a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0, 195, 255, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.about-eco a.about-eco-partner {
  text-decoration-color: rgba(58, 123, 255, 0.75);
}
.about-eco a:hover,
.about-eco a:focus-visible {
  color: var(--cyan);
  text-decoration-color: currentColor;
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-partner,
  .hero-partner-badge,
  .hero-partner-more i,
  .cred-badge.cred-partner,
  .about-eco a {
    transition: none;
  }
  .hero-partner:hover,
  .hero-partner:focus-visible,
  .hero-partner:hover .hero-partner-more i,
  .hero-partner:focus-visible .hero-partner-more i,
  [dir="rtl"] .hero-partner:hover .hero-partner-more i,
  [dir="rtl"] .hero-partner:focus-visible .hero-partner-more i,
  .cred-badge.cred-partner:hover,
  .cred-badge.cred-partner:focus-visible,
  .tech-card.tech-card--partner:hover img {
    transform: none;
  }
}
