/* "من نحن" page (templates/about.html). Everything is scoped under
   .about-page - css/components/about-us.css is loaded on every page from
   base.html, so page-specific rules live here instead. */

.about-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) 0;
  color: var(--text-dark);
}

.about-page h1,
.about-page h2,
.about-page h3 {
  color: var(--text-dark);
  font-weight: var(--font-bold);
}

.about-page p {
  line-height: 1.9;
}

/* Icon badge: brand pink circle + red glyph */
.about-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.about-icon--light {
  background-color: rgba(255, 255, 255, 0.18);
  color: white;
}

/* Hero */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--bg-primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: var(--font-medium);
}

.about-hero-title {
  font-size: 36px;
  line-height: 1.4;
  margin: 12px 0;
}

.about-hero-lead {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 12px;
}

.about-hero-tagline {
  color: var(--primary);
  font-size: 20px;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-5);
}

.about-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px 32px 4px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-actions--center {
  justify-content: center;
  margin-top: var(--space-5);
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px 16px;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-btn:hover {
  transform: translateY(-2px);
}

.about-btn--primary {
  background-color: var(--button);
  color: white;
}

.about-btn--primary:hover {
  color: white;
  filter: brightness(0.95);
}

.about-btn--outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: white;
}

.about-btn--outline:hover {
  background-color: var(--bg-primary);
  color: var(--primary);
}

.about-btn--light {
  background: white;
  color: var(--primary);
}

.about-btn--light:hover {
  color: var(--primary);
}

.about-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
}

.about-btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Sections */
.about-section {
  margin-top: var(--space-8);
}

.about-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-5);
}

.about-section-head h2 {
  font-size: 26px;
  margin: 0;
}

.about-section-head--center {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}

.about-section-sub {
  color: var(--text-secondary);
  margin: 0;
}

.about-story {
  background-color: var(--bg-primary-section);
  border-radius: 4px 24px 4px 24px;
  padding: var(--space-6);
}

.about-story p {
  color: var(--text-secondary);
  font-size: 16px;
}

.about-story p:last-child {
  margin-bottom: 0;
}

/* Cards */
.about-card {
  background: white;
  border: 1px solid var(--border-primary);
  border-radius: 4px 16px 4px 16px;
  padding: var(--space-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.about-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.about-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.about-pack-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.about-pack-head h3 {
  margin: 0;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-secondary);
  font-size: 15px;
}

.about-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.about-pack-note {
  margin-top: 12px !important;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
}

.about-pack-note i {
  color: var(--primary);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  color: var(--primary);
  font-weight: var(--font-medium);
  text-decoration: none;
}

.about-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Custom-weight highlight under the pack cards */
.about-custom {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-5);
  border: 1px dashed var(--primary);
  border-radius: 4px 16px 4px 16px;
  background-color: var(--bg-primary-section);
}

.about-custom-text {
  flex: 1;
}

.about-custom h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.about-custom p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.about-custom .about-link {
  margin-top: 0;
  white-space: nowrap;
}

/* "هتلاقينا فين" channel cards */
.about-channel {
  text-align: center;
}

.about-channel .about-icon {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

/* the "order online" card is a link - same look as the other cards */
.about-channel--online {
  display: block;
  text-decoration: none;
}

/* Governorate chips */
.about-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.about-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: white;
  color: var(--text-dark);
  font-weight: var(--font-medium);
}

.about-chips i {
  color: var(--primary);
}

.about-chips .about-chip--expanding {
  border-style: dashed;
  background-color: var(--bg-primary-section);
  color: var(--primary);
}

/* Dashboard-managed sections reuse about-us.css's .about-item look */
.about-extra {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-extra .about-content {
  width: 100%;
}

/* Closing CTA */
.about-cta {
  margin: var(--space-8) 0 var(--space-6);
  padding: var(--space-6) var(--space-5);
  border-radius: 4px 32px 4px 32px;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.about-cta h2 {
  color: white;
  font-size: 28px;
  margin: 12px 0 8px;
}

.about-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Tablet */
@media (max-width: 992px) {
  .about-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .about-page {
    padding: var(--space-4) 16px 0;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .about-hero-media {
    order: -1;
  }

  .about-hero-title {
    font-size: 26px;
  }

  .about-hero-lead {
    font-size: 15px;
  }

  .about-hero-tagline {
    font-size: 17px;
  }

  .about-section {
    margin-top: var(--space-6);
  }

  .about-section-head h2 {
    font-size: 22px;
  }

  .about-story {
    padding: var(--space-5);
  }

  .about-packs,
  .about-audience {
    grid-template-columns: 1fr;
  }

  .about-custom {
    flex-direction: column;
    text-align: center;
  }

  .about-cta {
    margin-top: var(--space-6);
  }

  .about-cta h2 {
    font-size: 22px;
  }
}

/* Phone */
@media (max-width: 480px) {
  .about-features {
    grid-template-columns: 1fr;
  }

  /* the 4 channel cards stay 2-up on phones - they're short */
  .about-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-channel {
    padding: var(--space-4) 10px;
  }

  .about-actions .about-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .about-card {
    padding: var(--space-4);
  }
}
