/* Technologies, Blogs, Our Team and FAQs pages */
.cd-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 48px 80px;
  box-sizing: border-box;
  width: 100%;
  font-family: "Josefin Sans", sans-serif;
}

.cd-page-title {
  font-weight: 300;
  text-align: center;
  font-size: 32px;
  margin: 48px 0 8px;
}

.cd-page-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 24px;
  color: #545454;
}

.cd-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  color: #fdaf16;
}

/* Media frame (4:5, Instagram portrait) */
.cd-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6f6f6;
  border-radius: .375rem;
}

.cd-media img,
.cd-media video,
.cd-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Embedded video link (YouTube, Vimeo, Instagram) */
.cd-media iframe {
  border: 0;
}

.cd-media-embed {
  background: #000;
}

/* Instagram's embed adds its own header and footer around the 4:5 post */
.cd-media-instagram {
  aspect-ratio: auto;
  height: 0;
  padding-bottom: calc(125% + 200px);
  background: #fff;
}

.cd-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 32px;
}

.cd-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fdaf16;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  pointer-events: none;
}

/* Technologies */
.cd-tech-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}

.cd-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}

.cd-tech-media {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.cd-tech:nth-child(even) .cd-tech-media {
  order: 2;
}

.cd-tech-text {
  order: 1;
}

.cd-tech-text h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0 16px;
}

.cd-tech-text p {
  font-size: 16px;
  line-height: 26px;
  margin: 0 0 24px;
  color: #545454;
  white-space: pre-line;
}

.cd-tech-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-tech-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.cd-tech-points i {
  color: #fdaf16;
  font-size: 20px;
}

/* Blog list */
.cd-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.cd-tab {
  font-size: 15px;
  padding: 8px 18px;
  border-radius: .375rem;
  border: 1px solid #eaeaea;
  background: #fff;
  color: #000;
  transition: background .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}

.cd-tab:hover {
  color: #fdaf16;
}

.cd-tab.active,
.cd-tab.active:hover {
  background: #fdaf16;
  border-color: #fdaf16;
  color: #fff;
}

.cd-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px 28px;
  margin-top: 48px;
}

.cd-blog-empty {
  text-align: center;
  color: #636571;
  margin-top: 48px;
}

.cd-blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: #000;
}

.cd-blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cd-blog-meta .cd-blog-category {
  color: #fdaf16;
  font-weight: 600;
}

.cd-blog-meta .cd-blog-date {
  color: #636571;
  margin-inline-start: auto;
}

.cd-blog-card-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: #000;
  transition: color .3s ease-in-out;
}

.cd-blog-card:hover .cd-blog-card-title {
  color: #fdaf16;
}

.cd-blog-card-excerpt {
  font-size: 15px;
  line-height: 22px;
  color: #545454;
}

/* Blog post */
.cd-post {
  max-width: 860px;
  margin: 0 auto;
}

.cd-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 32px 0 24px;
  font-size: 15px;
  color: #fdaf16;
}

[dir="rtl"] .cd-post-back i {
  transform: scaleX(-1);
}

.cd-post-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fdaf16;
  font-weight: 600;
}

.cd-post h1 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  margin: 12px 0 10px;
}

.cd-post-date {
  font-size: 13px;
  color: #636571;
  margin-bottom: 28px;
}

.cd-post-media {
  max-width: 480px;
}

.cd-post-body {
  font-size: 17px;
  line-height: 28px;
  color: #545454;
  margin-top: 28px;
  white-space: pre-line;
}

/* Our Team */
.cd-team-tagline {
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: #fdaf16;
  margin-bottom: 16px;
}

.cd-team-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 26px;
  color: #545454;
}

.cd-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 32px;
  margin-top: 56px;
}

.cd-team-member {
  text-align: start;
  display: flex;
  flex-direction: column;
}

.cd-team-member h3 {
  font-size: 20px;
  font-weight: 700;
  color: #545454;
  margin: 20px 0 4px;
}

.cd-team-role {
  font-size: 15px;
  line-height: 22px;
  font-style: italic;
  color: #fdaf16;
  margin-bottom: 10px;
}

.cd-team-member p {
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  color: #545454;
}

/* FAQs */
.cd-faq-page {
  max-width: 880px;
}

.cd-faq-title {
  margin-bottom: 32px;
}

.cd-faq-tabs {
  margin: 0 0 24px;
}

.cd-faq-list {
  text-align: start;
  border-top: 1px solid #dee2e6;
}

.cd-faq-item {
  border-bottom: 1px solid #dee2e6;
}

.cd-faq-item[hidden] {
  display: none;
}

.cd-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  color: #000;
}

.cd-faq-question[aria-expanded="true"] {
  font-weight: 600;
}

.cd-faq-question i {
  font-size: 24px;
  color: #fdaf16;
  flex-shrink: 0;
}

.cd-faq-answer {
  padding: 0 0 24px;
  padding-inline-end: 48px;
  font-size: 16px;
  line-height: 26px;
  color: #545454;
  white-space: pre-line;
}

/* Untranslated (English) team/FAQ text keeps its own direction on Arabic pages */
[dir="rtl"] .cd-team-member h3,
[dir="rtl"] .cd-team-role,
[dir="rtl"] .cd-team-member p,
[dir="rtl"] .cd-faq-question span,
[dir="rtl"] .cd-faq-answer {
  unicode-bidi: plaintext;
}

/* Digits stay Latin/LTR in Arabic */
[dir="rtl"] .cd-blog-date,
[dir="rtl"] .cd-post-date {
  unicode-bidi: plaintext;
}

@media (max-width: 991px) {
  .cd-page {
    padding: 16px 16px 64px;
  }

  .cd-page-title {
    margin-top: 32px;
  }

  .cd-tech-list {
    gap: 56px;
    margin-top: 40px;
  }

  .cd-tech {
    gap: 28px;
  }

  /* Stacked: media always above the text */
  .cd-tech:nth-child(even) .cd-tech-media {
    order: 0;
  }

  .cd-post h1 {
    font-size: 28px;
    line-height: 36px;
  }
}

/* Phones: smaller technology media, two team members per row, so photos are not full-screen */
@media (max-width: 575px) {
  .cd-tech-media {
    max-width: 240px;
  }

  .cd-team-intro {
    font-size: 15px;
    line-height: 23px;
  }

  .cd-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
    margin-top: 40px;
  }

  .cd-team-member h3 {
    font-size: 16px;
    line-height: 21px;
    margin: 12px 0 4px;
  }

  .cd-team-role {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 6px;
  }

  .cd-team-member p {
    font-size: 14px;
    line-height: 21px;
  }
}

@media (max-width: 400px) {
  .cd-tech {
    grid-template-columns: 1fr;
  }

  .cd-blog-grid {
    grid-template-columns: 1fr;
  }
}
