/* Projects page styles (moved from inline <style> for CSP) */
/* ── PROJECTS PAGE EXTRA STYLES ── */
.projects-hero {
  position: relative;
  background: linear-gradient(158deg, #07152A 0%, #0A3660 45%, #0F4C81 100%);
  padding: 90px 0 80px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.projects-hero.with-bg-img {
  background-blend-mode: overlay;
}
.projects-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,  rgba(226,135,20,.04) 0px, rgba(226,135,20,.04) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(226,135,20,.04) 0px, rgba(226,135,20,.04) 1px, transparent 1px, transparent 20px);
  z-index: 2;
  animation: patternFadeIn 1.2s ease-out forwards;
}
.projects-hero::after {
  content: '';
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(226,135,20,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-frame-top, .hero-frame-bottom {
  position: absolute; left: 60px; right: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,135,20,.5), rgba(226,135,20,.8), rgba(226,135,20,.5), transparent);
}
.hero-frame-top { top: 28px; }
.hero-frame-bottom { bottom: 28px; }
.hero-frame-corner {
  position: absolute; width: 40px; height: 40px;
  border-color: rgba(226,135,20,.45); border-style: solid;
}
.hero-frame-corner.tl { top: 18px; left: 18px;  border-width: 2px 0 0 2px; }
.hero-frame-corner.tr { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.hero-frame-corner.bl { bottom: 18px; left: 18px;  border-width: 0 0 2px 2px; }
.hero-frame-corner.br { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }
.projects-hero-inner { position: relative; z-index: 2; text-align: center; }
.projects-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700; color: var(--white);
  line-height: 1.25; margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
  animation: titleFadeInUp 0.8s ease-out 0.2s both;
  opacity: 1;
}
body.rtl .projects-hero h1 { font-family: var(--font-ar); font-weight: 800; }
.projects-hero h1 .gold-text { color: var(--gold-light); }
.projects-hero-desc {
  font-size: 1rem; color: rgba(255,255,255,.72);
  max-width: 580px; margin: 0 auto 1.8rem; line-height: 1.85;
  animation: textFadeInUp 0.8s ease-out 0.4s both;
  opacity: 1;
}
.hero-breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(226,135,20,.2);
  border-radius: 30px; padding: 8px 20px;
  animation: breadcrumbFadeIn 0.8s ease-out 0.6s forwards;
  opacity: 0;
}
.hero-breadcrumb a { color: var(--gold-light); }
.hero-breadcrumb .sep { color: rgba(226,135,20,.5); }

/* ── STATS PILLS in hero ── */
.hero-stat-pills { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-stat-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(226,135,20,.22);
  border-radius: 50px; padding: 10px 18px;
}
.hero-stat-pill i { color: var(--gold-light); font-size: .9rem; }
.hero-stat-pill span { font-size: .85rem; color: rgba(255,255,255,.8); font-weight: 600; }

/* ── FILTER + GRID ── */
.projects-grid-section { padding: var(--section-pad) 0; background: var(--ivory); position: relative; }
.projects-grid-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-deep), var(--gold), var(--navy-mid), var(--gold-dark));
}

/* Filter tabs — reuse existing but enhance */
.filter-tabs-wrap {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.filter-tabs-wrap .filter-label {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
}
.filter-tabs-wrap .filter-tabs { margin-bottom: 0; gap: 6px; }

/* ── PROJECT CARD — Enhanced ── */
.proj-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--t-mid);
  height: 100%;
  display: flex; flex-direction: column;
}
.proj-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(226,135,20,.35);
}
.proj-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
}
.proj-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.proj-card:hover .proj-card-img img { transform: scale(1.07); }

/* Category badge on image */
.proj-cat-badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: rgba(15,76,129,.88);
  border: 1px solid rgba(226,135,20,.4);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-light); z-index: 2;
  backdrop-filter: blur(4px);
}

/* Image overlay on hover */
.proj-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,18,40,.92) 0%, rgba(10,36,76,.45) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 18px;
  opacity: 0; transition: opacity .35s;
}
.proj-card:hover .proj-card-overlay { opacity: 1; }
.proj-card-overlay-actions { display: flex; gap: 8px; }
.proj-card-overlay-actions a {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--t-fast); text-decoration: none;
}
.proj-action-zoom { background: var(--gold); color: var(--navy-deep); }
.proj-action-link { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.proj-action-zoom:hover { background: var(--gold-light); color: var(--navy-deep); }
.proj-action-link:hover { background: rgba(255,255,255,.25); color: var(--white); }

/* Gold top-border on hover */
.proj-card-body {
  padding: 20px 18px;
  border-top: 3px solid transparent;
  transition: border-color .3s;
  flex-grow: 1;
}
.proj-card:hover .proj-card-body { border-top-color: var(--gold); }
.proj-card-body h5 {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--navy-deep); margin-bottom: 6px; line-height: 1.35;
}
.proj-card-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.proj-card-meta span {
  font-size: .75rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.proj-card-meta span i { color: var(--gold); font-size: .65rem; }

/* Placeholder image fallback */
.proj-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,.25);
}
.proj-img-placeholder i { font-size: 2.4rem; }
.proj-img-placeholder span { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }

/* ── FEATURED PROJECT (large card) ── */
.proj-featured {
  background: var(--navy-deep);
  border: 1px solid rgba(226,135,20,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex; flex-direction: column;
  transition: var(--t-mid);
}
.proj-featured:hover { box-shadow: var(--shadow-lg); border-color: rgba(226,135,20,.4); }
.proj-featured-img {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  min-height: 340px;
}
.proj-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-featured-badge {
  position: absolute; top: 18px; inset-inline-start: 18px;
  background: var(--gold);
  border-radius: var(--radius);
  padding: 5px 16px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy-deep); z-index: 2;
}
.proj-featured-body {
  padding: 32px 34px;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.proj-featured-cat {
  font-size: .68rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 8px;
}
.proj-featured-body h3 {
  font-family: var(--font-body); font-size: 1.25rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px; line-height: 1.35;
}
.proj-featured-body p {
  font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.8; margin-bottom: 16px;
}
.proj-featured-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 4px 12px;
}

/* ── CTA STRIP ── */
.projects-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 70px 0;
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(226,135,20,.2);
}
.projects-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23E28714' fill-opacity='0.04'%3E%3Cpath d='M20 20.5V18H0v5h20v-2.5z'/%3E%3C/g%3E%3C/svg%3E");
}
.projects-cta h2 {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem;
  position: relative;
}
body.rtl .projects-cta h2 { font-family: var(--font-ar); }
.projects-cta p { color: rgba(255,255,255,.7); font-size: .97rem; margin: 0; position: relative; }

/* ── PAGINATION STYLE ── */
.proj-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 3rem; }
.proj-page-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  background: transparent; color: var(--text-muted);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-fast);
}
.proj-page-btn:hover, .proj-page-btn.active {
  background: var(--navy); border-color: var(--navy); color: var(--gold-light);
}

@media (max-width: 991px) {
  .projects-hero {
    padding: 72px 0 60px;
    background-attachment: scroll;
  }
  .filter-tabs-wrap { flex-direction: column; align-items: stretch; }
  .filter-tabs-wrap .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs-wrap .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
  .proj-featured-img { min-height: 240px; }
  .proj-featured-body { padding: 24px 22px; }
}
@media (max-width: 767px) {
  .projects-hero { padding: 56px 0 48px; }
  .projects-hero h1 { font-size: 1.7rem; }
  .projects-hero-desc { font-size: 0.94rem; padding: 0 8px; }
  .hero-frame-top, .hero-frame-bottom { left: 16px; right: 16px; }
  .hero-frame-corner { width: 28px; height: 28px; }
  .filter-tabs-wrap { padding: 14px; }
  .hero-stat-pills { gap: 8px; justify-content: flex-start; }
  .hero-stat-pill { padding: 8px 12px; font-size: 0.8rem; }
  .proj-card-body { padding: 16px; }
  .proj-pagination { flex-wrap: wrap; justify-content: center; gap: 6px; }
}
@media (max-width: 576px) {
  .projects-hero h1 { font-size: 1.45rem; }
  .hero-breadcrumb { font-size: 0.72rem; padding: 6px 14px; }
}

@keyframes titleFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes textFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes breadcrumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
