/* ============================================================
   Qalam standalone pages: Services, About, Contact
   ============================================================ */
.inner-page-body {
  background: #f8fafc;
  color: #163853;
  font-family: var(--cd-font, 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.inner-page-body button,
.inner-page-body input,
.inner-page-body select,
.inner-page-body textarea { font: inherit; }

/* Shared copy of the exact compact header used by Courses and Reviews. */
.qalam-simple-header {
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 50px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #091a27 0%, #0d283c 50%, #15374e 100%);
}

.qalam-simple-header-decor {
  position: absolute;
  top: -50px;
  right: -30px;
  z-index: 1;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 174, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.qalam-section-kicker,
.qalam-inline-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 800;
}

.qalam-simple-header-title {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.3;
}

.qalam-simple-header-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
}

.qalam-simple-header-breadcrumbs .home-icon {
  display: inline-flex;
  align-items: center;
  color: #14b8ae;
  font-size: 0.95rem;
}

.qalam-simple-header-breadcrumbs a {
  color: #14b8ae;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qalam-simple-header-breadcrumbs a:hover { color: #2dd4bf; }
.qalam-simple-header-breadcrumbs .sep { color: rgba(255, 255, 255, 0.4); font-size: 0.82rem; }
.qalam-simple-header-breadcrumbs .current { color: #e2e8f0; font-weight: 500; }

.standalone-services-section {
  padding-top: 5.25rem;
  padding-bottom: 5.25rem;
}

.qalam-empty-state {
  padding: 48px 22px;
  border: 1px dashed #b6d7d4;
  border-radius: 20px;
  color: #64748b;
  text-align: center;
  background: rgba(255, 255, 255, 0.64);
}

.qalam-empty-state i {
  display: block;
  margin-bottom: 10px;
  color: #14b8a6;
  font-size: 2rem;
}

.qalam-empty-state p { margin: 0; }

.qalam-inline-cta-section {
  padding: 0 0 84px;
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
}

.qalam-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 30px 34px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 118, 110, 0.09);
}

.qalam-inline-cta-kicker,
.qalam-section-kicker {
  color: #0f766e;
  font-size: 0.86rem;
}

.qalam-inline-cta h2 {
  margin: 7px 0;
  color: #163853;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 900;
}

.qalam-inline-cta p { margin: 0; color: #64748b; }

.qalam-inline-cta-button,
.contact-whatsapp-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #0f8b83);
  box-shadow: 0 9px 20px rgba(20, 184, 166, 0.25);
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qalam-inline-cta-button:hover,
.contact-whatsapp-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.34);
}

/* About */
.about-page-body { background: #fbfaf8; }
.about-reference-intro { padding: 58px 0 52px; background: #fbfaf8; }

.about-reference-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: 'visual copy';
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  /* Grid tracks must stay physical: photo on the left, copy on the right. */
  direction: ltr;
}

.about-reference-visual { grid-area: visual; position: relative; min-height: 292px; padding: 14px 0 24px 24px; direction: rtl; }
.about-reference-image-main { position: relative; z-index: 2; overflow: hidden; height: 258px; border-radius: 10px; box-shadow: 0 17px 30px rgba(15, 43, 78, 0.2); }
.about-reference-image-main::after { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(5, 35, 66, 0.05), rgba(10, 118, 126, 0.22)); content: ''; }
.about-reference-image-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-reference-image-accent { position: absolute; z-index: 1; top: -4px; left: -24px; width: 43%; height: 116px; overflow: hidden; border: 3px solid #fbfaf8; border-radius: 8px; box-shadow: 0 9px 18px rgba(15, 43, 78, 0.14); }
.about-reference-image-accent img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }

.about-reference-copy { grid-area: copy; direction: rtl; text-align: right; }
.about-reference-copy h2 { margin: 9px 0 17px; color: #122f50; font-size: clamp(2.15rem, 3.5vw, 3.1rem); font-weight: 900; line-height: 1.32; }
.about-reference-copy p { margin: 0; color: #587086; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 2.05; }
.about-reference-copy .about-reference-lead { margin-bottom: 12px; color: #284b67; font-weight: 700; }

.about-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 42px; }
.about-pillar-card { padding: 26px 22px; border: 1px solid #edf0f3; border-radius: 9px; background: #ffffff; box-shadow: 0 8px 22px rgba(15, 43, 78, 0.05); text-align: center; }
.about-pillar-icon { display: inline-grid; width: 41px; height: 41px; place-items: center; color: #153b5e; font-size: 1.48rem; }
.about-pillar-card h2 { margin: 11px 0 9px; color: #163853; font-size: 1.14rem; font-weight: 900; }
.about-pillar-card p { margin: 0; color: #718499; font-size: 0.9rem; line-height: 1.9; }

.about-core-values-section { padding: 36px 0; background: var(--cd-navy, #15374e); color: #ffffff; }
.about-core-values-heading { display: flex; align-items: center; justify-content: flex-start; gap: 11px; margin-bottom: 25px; }
.about-core-values-heading h2 { margin: 0; color: #ffffff; font-size: 1.5rem; font-weight: 900; }
.about-core-values-list { display: flex; align-items: stretch; justify-content: space-between; }
.about-core-value { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 68px; border-left: 1px solid rgba(255, 255, 255, 0.11); color: #ffffff; text-align: center; padding: 6px 10px; }
.about-core-value:last-child { border-left: 0; }
.about-core-value i { color: var(--cd-teal-light, #1ec7bb); font-size: 1.2rem; }
.about-core-value span { font-size: 0.9rem; font-weight: 800; }

.about-strengths-section { padding: 67px 0 78px; background: #fbfaf8; }
.about-strengths-heading { text-align: right; }
.about-strengths-heading h2 { margin: 8px 0 24px; color: #163853; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 900; }
.about-strengths-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.about-strength-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 46px; border-bottom: 1px solid #e5e9eb; color: #294d68; font-size: 0.98rem; font-weight: 700; }
.about-strength-item i { color: #15374e; font-size: 1.05rem; }
.about-strength-item__check { width: 20px; height: 20px; flex-shrink: 0; color: #15374e; }

/* Contact */
.contact-page-section { padding: 72px 0 96px; background: linear-gradient(180deg, #f8fafc 0%, #f4faf9 100%); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  grid-template-areas: 'form sidebar';
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
}

.contact-form-card,
.contact-info-card {
  border-radius: 24px;
}

.contact-form-card {
  grid-area: form;
  padding: clamp(26px, 4.2vw, 48px);
  border: 1px solid #dce6ec;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(22, 56, 83, 0.06);
}

.contact-info-card {
  grid-area: sidebar;
  position: sticky;
  top: 112px;
  padding: clamp(27px, 3vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.22), transparent 33%),
    linear-gradient(145deg, #102b4e, #08213d);
  box-shadow: 0 22px 40px rgba(9, 35, 66, 0.22);
}

.contact-info-card::after {
  position: absolute;
  left: -58px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 50%;
  content: '';
}

.contact-form-heading,
.contact-info-heading { text-align: right; }

.contact-form-heading h2,
.contact-info-heading h2 {
  margin: 0;
  color: #143450;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 900;
}

.contact-form-heading p,
.contact-info-heading p {
  margin: 14px 0 0;
  line-height: 1.9;
}

.contact-form-heading p { color: #688096; }
.contact-info-heading { position: relative; z-index: 1; }
.contact-info-heading h2 { color: #ffffff; }
.contact-info-heading p { color: #d9e7f1; font-size: 0.94rem; }

.contact-form-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 0;
  border: 0;
  border-radius: 13px;
  background: #e6f8f2;
  color: #16745c;
  font-weight: 700;
}

.contact-form { margin-top: 30px; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 22px; }
.contact-field { min-width: 0; }

.contact-field label {
  display: block;
  margin-bottom: 9px;
  color: #173a58;
  font-size: 0.91rem;
  font-weight: 800;
}

.contact-field label em { color: #e64b59; font-style: normal; }

.contact-input-wrap,
.contact-textarea-wrap {
  position: relative;
}

.contact-input-wrap > i,
.contact-textarea-wrap > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 16px;
  color: #92a8ba;
  font-size: 1.06rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-textarea-wrap > i { top: 18px; transform: none; }

.contact-input-wrap input,
.contact-input-wrap select,
.contact-textarea-wrap textarea {
  width: 100%;
  border: 1px solid #dce6ee;
  border-radius: 11px;
  outline: 0;
  background: #fbfcfe;
  color: #173a58;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-input-wrap input,
.contact-input-wrap select {
  min-height: 54px;
  padding: 12px 46px 12px 14px;
}

.contact-input-wrap input::placeholder,
.contact-textarea-wrap textarea::placeholder { color: #9babbb; }

.contact-input-wrap select {
  appearance: none;
  cursor: pointer;
}

.contact-select-wrap > i { right: auto; left: 15px; font-size: 0.75rem; }
.contact-select-wrap select { padding-left: 38px; }

.contact-textarea-wrap textarea {
  display: block;
  min-height: 160px;
  padding: 15px 46px 15px 15px;
  line-height: 1.8;
  resize: vertical;
}

.contact-input-wrap input:focus,
.contact-input-wrap select:focus,
.contact-textarea-wrap textarea:focus {
  border-color: #14b8a6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.contact-field-error { display: block; margin-top: 7px; color: #d9485d; font-size: 0.78rem; font-weight: 700; }
.contact-message-field { margin-top: 23px; }

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 29px;
}

.contact-form-footer p { margin: 0; color: #7890a3; font-size: 0.8rem; }
.contact-form-footer p i { margin-left: 5px; color: #0f9389; }

.contact-submit-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 167px;
  min-height: 52px;
  padding: 11px 21px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #19b8a8, #0c8c84);
  box-shadow: 0 10px 20px rgba(15, 139, 131, 0.25);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-button:hover { transform: translateY(-2px); box-shadow: 0 13px 24px rgba(15, 139, 131, 0.34); }

.contact-info-list { position: relative; z-index: 1; margin-top: 28px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(214, 236, 247, 0.14);
  color: #ffffff;
}

.contact-info-item:last-child { border-bottom: 0; }

.contact-info-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(20, 184, 174, 0.48);
  border-radius: 12px;
  color: #14b8ae;
  font-size: 1.08rem;
}

.contact-info-content { min-width: 0; }
.contact-info-item b,
.contact-info-item strong,
.contact-info-item a { display: block; }
.contact-info-item b { margin-bottom: 3px; color: #14b8ae; font-size: 0.76rem; font-weight: 800; }
.contact-info-values { display: grid; gap: 4px; }
.contact-info-item strong,
.contact-info-item a { color: #ffffff; font-size: 0.91rem; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.contact-info-item a:hover { color: #8ef0e3; }

.contact-info-socials {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(214, 236, 247, 0.14);
  color: #d9e7f1;
  font-size: 0.81rem;
  font-weight: 800;
}

.contact-info-socials .footer-social-links { gap: 6px; margin: 0; }
.contact-info-socials .social-link-item { width: 33px; height: 33px; border-color: rgba(214, 236, 247, 0.22); background: rgba(255, 255, 255, 0.06); color: #bffbf2; }
.contact-info-socials .social-link-item:hover { border-color: #5eead4; background: #14b8a6; color: #ffffff; }

@media (max-width: 767.98px) {
  .qalam-simple-header { padding: 95px 0 40px; }
  .standalone-services-section { padding-top: 4.3rem; padding-bottom: 4.3rem; }
  .qalam-inline-cta { align-items: stretch; flex-direction: column; padding: 25px 20px; }
  .qalam-inline-cta-button { width: 100%; }
  .about-reference-intro { padding: 42px 0 47px; }
  .about-reference-grid { grid-template-columns: 1fr; grid-template-areas: 'copy' 'visual'; gap: 28px; }
  .about-reference-copy { text-align: right; }
  .about-reference-visual { width: min(100%, 420px); margin: 0 auto; min-height: 238px; }
  .about-reference-image-main { height: 216px; }
  .about-pillars-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .about-pillar-card { padding: 21px 18px; }
  .about-core-values-section { padding: 30px 0; }
  .about-core-values-heading { margin-bottom: 18px; }
  .about-core-values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .about-core-value { min-height: auto; border: 0 !important; padding: 8px 4px; }
  .about-strengths-section { padding: 50px 0 60px; }
  .about-strengths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .about-strength-item { gap: 7px; font-size: clamp(0.78rem, 3.25vw, 0.98rem); }
  .about-strength-item__check { width: 18px; height: 18px; flex-shrink: 0; }
  .contact-page-section { padding: 50px 0 68px; }
  .contact-layout { grid-template-columns: 1fr; grid-template-areas: 'form' 'sidebar'; gap: 18px; }
  .contact-info-card { position: static; }
  .contact-form-card, .contact-info-card { padding: 25px 20px; border-radius: 19px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-message-field { margin-top: 18px; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-form-footer p { text-align: center; }
  .contact-submit-button { width: 100%; }
}

@media (min-width: 520px) and (max-width: 767.98px) {
  .about-core-values-list { grid-template-columns: repeat(3, 1fr); }
}
