/*
 * AL-JAWAD — Project System 2026
 * Namespace: .ajp-* (Al-Jawad Projects)
 * Phase 7 — Mobile-first, RTL-native, Image-proof focused
 *
 * ISOLATION POLICY:
 * - Uses ONLY .ajp-* prefixed selectors
 * - Does NOT redefine: body, h1, h2, img globally
 * - Safe to coexist with: theme-2026.css, ux-2026.css, header-2026.css,
 *   home-2026.css, service-2026.css
 */

/* ════════════════════════════════════════
   SHARED LAYOUT
   ════════════════════════════════════════ */
.ajp-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px)  { .ajp-container { padding-inline: 32px; } }
@media (min-width: 1280px) { .ajp-container { padding-inline: 40px; } }

/* ════ LISTING HERO ════ */
.ajp-listing-hero {
  background: linear-gradient(150deg, #061a2b 0%, #0b3557 45%, #0d5c6e 80%, #087782 100%) !important;
  padding-block: 56px 0 !important;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #e6b858;
  /* Ensure this renders above global page-hero overrides */
  isolation: isolate;
}
.ajp-listing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(8,119,130,.18) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ajp-listing-hero-inner {
  position: relative;
  text-align: center;
  padding-bottom: 0;
}
.ajp-listing-hero-inner > .ajp-breadcrumb {
  margin-bottom: 18px;
}
.ajp-listing-hero-inner h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-block: 0 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  letter-spacing: -.5px;
}
.ajp-listing-hero-inner > p {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin-bottom: 28px;
}
.ajp-listing-hero-inner strong { color: #e6b858; }

/* Stats Bar */
.ajp-listing-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 28px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 18px;
  flex-wrap: wrap;
}
.ajp-stat-item {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 6px 20px;
  border-left: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.ajp-stat-item:last-child { border-left: none; }
.ajp-stat-number {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #e6b858;
  line-height: 1.1;
}
.ajp-stat-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   LISTING BODY
   ════════════════════════════════════════ */
.ajp-listing-body {
  background: #f1f5f9;
  padding-block: 36px 52px;
}

/* ════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════ */
.ajp-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  background: rgba(0,0,0,.15);
  padding: 5px 16px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}
.ajp-breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color 150ms;
}
.ajp-breadcrumb a:hover { color: #e6b858; }
.ajp-breadcrumb-sep { color: rgba(255,255,255,.4); font-size: .72rem; }
.ajp-breadcrumb [aria-current="page"] { color: #fff; font-weight: 700; }

/* ════════════════════════════════════════
   PROJECTS GRID — LISTING
   ════════════════════════════════════════ */
.ajp-listing-section {
  padding-block: 40px 48px;
  background: #f8fafc;
}
.ajp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .ajp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .ajp-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ════════════════════════════════════════
   PROJECT CARD
   ════════════════════════════════════════ */
.ajp-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 260ms ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.ajp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(11,53,87,.12);
  border-color: #087782;
}
.ajp-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #0b3557;
}
.ajp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.ajp-card:hover .ajp-card-media img { transform: scale(1.03); }

/* Split Before/After */
.ajp-card-ba-split {
  position: absolute;
  inset: 0;
  display: flex;
}
.ajp-card-ba-before, .ajp-card-ba-after {
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: flex 400ms ease;
  position: relative;
}
.ajp-card-ba-before { border-right: 2px solid #fff; }
.ajp-card:hover .ajp-card-ba-before { flex: 1.5; }
.ajp-card:hover .ajp-card-ba-after { flex: 0.5; }
.ajp-card-ba-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(30,41,59,.8);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.ajp-card-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: auto;
  background: rgba(6,26,43,.78);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ajp-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0b3557 0%, #087782 100%);
  color: rgba(255,255,255,.7);
  font-size: 2.8rem;
}
.ajp-card-fallback span {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
}
.ajp-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.ajp-card-subtitle {
  font-size: .72rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
}
.ajp-card-title {
  font-size: .98rem;
  font-weight: 900;
  color: #061a2b;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 200ms;
}
.ajp-card:hover .ajp-card-title { color: #087782; }
@media (min-width: 640px) {
  .ajp-card-title { font-size: 1.05rem; }
}

.ajp-card-desc {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ajp-card-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 800;
  color: #0b3557;
  transition: color 200ms;
}
.ajp-card-link i { font-size: .75rem; transition: transform 200ms; }
.ajp-card:hover .ajp-card-link { color: #087782; }
.ajp-card:hover .ajp-card-link i { transform: translateX(-4px); }

/* ════════════════════════════════════════
   LISTING INTERNAL LINKS BLOCKS
   ════════════════════════════════════════ */
.ajp-listing-internal-blocks {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ajp-internal-block {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(11,53,87,.07);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.ajp-internal-block h3 {
  color: #0b3557;
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ajp-internal-block h3 i { color: #087782; font-size: .95rem; }

.ajp-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ajp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  background: #f8fafc;
  color: #0b3557;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 200ms ease;
}
.ajp-chip:hover {
  background: #0b3557;
  color: #fff;
  border-color: #0b3557;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11,53,87,.15);
}
.ajp-chip-primary {
  background: linear-gradient(135deg, #0b3557, #087782);
  color: #fff;
  border-color: transparent;
}
.ajp-chip-primary:hover {
  background: linear-gradient(135deg, #061a2b, #0b3557);
  transform: translateY(-2px);
}

/* Empty State */
.ajp-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #94a3b8;
}
.ajp-empty-state i { font-size: 3.5rem; margin-bottom: 16px; display: block; opacity: .35; }
.ajp-empty-state p { font-size: 1.1rem; }

/* Listing Bottom CTA */
.ajp-listing-bottom-cta {
  text-align: center;
  margin-top: 44px;
  padding: 40px 24px;
  background: linear-gradient(135deg, #061a2b 0%, #0b3557 50%, #087782 100%);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(6,26,43,.18);
  position: relative;
  overflow: hidden;
}
.ajp-listing-bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ajp-listing-bottom-cta > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════
   LISTING CTA (legacy alias)
   ════════════════════════════════════════ */
.ajp-listing-cta {
  background: linear-gradient(135deg, #061a2b 0%, #0b3557 50%, #087782 100%);
  border-radius: 20px;
  padding: 44px 28px;
  text-align: center;
  margin-block: 0 40px;
  box-shadow: 0 8px 28px rgba(6,26,43,.14);
  position: relative;
  overflow: hidden;
}
.ajp-listing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ajp-listing-cta > * { position: relative; z-index: 1; }
.ajp-listing-cta h2 {
  color: #fff;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.ajp-listing-cta p {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  margin-bottom: 22px;
  max-width: 560px;
  margin-inline: auto;
}
.ajp-listing-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.ajp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6b858;
  color: #061a2b;
  font-weight: 900;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 200ms ease;
}
.ajp-btn-primary:hover { background: #f0c96a; transform: translateY(-2px); }
.ajp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: 11px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 200ms ease;
}
.ajp-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════ */
.ajp-empty { text-align: center; padding: 60px 20px; color: #64748b; }
.ajp-empty i { font-size: 3rem; margin-bottom: 16px; opacity: .35; display: block; }

/* ════════════════════════════════════════
   ═══════════════════════════════════════
   PROJECT DETAIL
   ═══════════════════════════════════════
   ════════════════════════════════════════ */

.ajp-detail-hero {
  background: linear-gradient(135deg, #061a2b 0%, #0b3557 60%, #0d4870 100%);
  padding-block: 36px 28px;
  position: relative;
  overflow: hidden;
}
.ajp-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ajp-detail-hero-inner { position: relative; }
.ajp-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #e6b858;
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.ajp-detail-hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-block: 0 14px;
}
.ajp-detail-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.ajp-detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
}
.ajp-detail-meta-item i { color: #e6b858; font-size: .78rem; }
.ajp-detail-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* DETAIL BODY */
.ajp-detail-body { padding-block: 32px 48px; background: #f8fafc; }
.ajp-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .ajp-detail-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 28px;
  }
}

/* BEFORE/AFTER */
.ajp-ba-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.ajp-ba-heading {
  padding: 14px 18px 12px;
  font-size: .95rem;
  font-weight: 900;
  color: #0b3557;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.ajp-ba-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ajp-ba-col { position: relative; overflow: hidden; }
.ajp-ba-col + .ajp-ba-col { border-right: 2px solid #fff; }
.ajp-ba-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ajp-ba-label {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}
.ajp-ba-label--before { background: rgba(30,41,59,.75); color: rgba(255,255,255,.9); }
.ajp-ba-label--after  { background: rgba(8,119,130,.85); color: #fff; }

/* Single main image */
.ajp-main-image-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.ajp-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* DESCRIPTION */
.ajp-desc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-section-heading {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0b3557;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ajp-prose { font-size: .95rem; color: #374151; line-height: 1.85; }
.ajp-prose p { margin-block: 0 .85em; }

/* STORY */
.ajp-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 640px) { .ajp-story-grid { grid-template-columns: repeat(3, 1fr); } }
.ajp-story-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-story-card i { font-size: 1.4rem; color: #087782; margin-bottom: 8px; display: block; }
.ajp-story-card h3 { font-size: .9rem; font-weight: 900; color: #0b3557; margin-bottom: 8px; }
.ajp-story-card p { font-size: .86rem; color: #64748b; line-height: 1.7; margin: 0; }

/* FACTS */
.ajp-facts-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-facts-list dl { margin: 0; }
.ajp-facts-list dl div {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  align-items: baseline;
}
.ajp-facts-list dl div:last-child { border-bottom: none; }
.ajp-facts-list dt { font-size: .8rem; font-weight: 800; color: #0b3557; min-width: 110px; flex-shrink: 0; }
.ajp-facts-list dd { font-size: .85rem; color: #374151; margin: 0; }

/* SIDEBAR */
.ajp-sidebar { display: flex; flex-direction: column; gap: 16px; }

.ajp-service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0b3557 0%, #087782 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: .92rem;
  transition: opacity 200ms;
  margin-top: 10px;
}
.ajp-service-link:hover { opacity: .9; }

.ajp-related-articles {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-article-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #374151;
  transition: color 180ms;
}
.ajp-article-link:last-child { border-bottom: none; }
.ajp-article-link:hover { color: #087782; }
.ajp-article-link i { color: #087782; margin-top: 3px; flex-shrink: 0; }
.ajp-article-link strong { font-size: .88rem; line-height: 1.4; display: block; }
.ajp-article-link small { font-size: .75rem; color: #94a3b8; }

.ajp-related-services {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ajp-svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  color: #0b3557;
  text-decoration: none;
  transition: all 180ms;
}
.ajp-svc-chip:hover { background: #0b3557; color: #fff; border-color: #0b3557; }

.ajp-expert-card {
  background: linear-gradient(135deg, #0b3557 0%, #061a2b 100%);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #fff;
}
.ajp-expert-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ajp-expert-copy small { font-size: .72rem; color: rgba(255,255,255,.6); display: block; margin-bottom: 3px; }
.ajp-expert-copy h4 { font-size: .95rem; font-weight: 900; margin-bottom: 4px; color: #fff; }
.ajp-expert-copy p { font-size: .78rem; color: rgba(255,255,255,.72); margin: 0; }

/* RELATED PROJECTS */
.ajp-related-projects {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ajp-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 640px) { .ajp-related-grid { grid-template-columns: repeat(3, 1fr); } }
.ajp-related-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 200ms;
}
.ajp-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11,53,87,.1); border-color: #087782; }
.ajp-related-img-wrap { aspect-ratio: 3/2; overflow: hidden; background: #0b3557; }
.ajp-related-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms; }
.ajp-related-card:hover .ajp-related-img { transform: scale(1.04); }
.ajp-related-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: rgba(255,255,255,.4);
  background: linear-gradient(135deg, #0b3557 0%, #087782 100%);
}
.ajp-related-card-body { padding: 12px 14px; background: #fff; }
.ajp-related-card-title {
  font-size: .88rem; font-weight: 800; color: #061a2b; line-height: 1.35;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ajp-related-card-link { font-size: .75rem; color: #087782; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* DETAIL CTA */
.ajp-detail-cta {
  background: linear-gradient(135deg, #061a2b 0%, #0b3557 50%, #087782 100%);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(6,26,43,.14);
}
.ajp-detail-cta h3 { color: #fff; font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 900; margin-bottom: 10px; }
.ajp-detail-cta p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 20px; max-width: 500px; margin-inline: auto; }
.ajp-detail-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
