/* DzExams.pro — هوية بصرية 2026 (teal + gold) */
:root {
  --dz-teal: #0b5e55;
  --dz-teal-deep: #064840;
  --dz-teal-bright: #0d7377;
  --dz-gold: #c9a227;
  --dz-gold-soft: #e8c96a;
  --dz-ink: #0f172a;
  --dz-ink-muted: #475569;
  --dz-surface: #f3f6f5;
  --dz-surface-warm: #faf8f3;
  --dz-header-h: 66px;
  --dz-font-ar: "Noto Naskh Arabic", "Droid Arabic Kufi", serif;
  --dz-font-brand: "Outfit", "Segoe UI", sans-serif;
}

body.ar {
  font-family: var(--dz-font-ar);
}

.site-navbar .navbar-header.dz-brand-header {
  background: linear-gradient(135deg, var(--dz-teal-deep) 0%, var(--dz-teal) 55%, var(--dz-teal-bright) 100%) !important;
  box-shadow: 0 2px 16px rgba(6, 72, 64, 0.35);
}

.site-navbar .navbar-brand.navbar-brand-center.dz-brand-link {
  font-family: var(--dz-font-brand);
  gap: 10px;
}

.dz-brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dz-brand-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.08em;
}

.dz-brand-title .dz-brand-suffix {
  color: var(--dz-gold-soft);
  font-weight: 600;
}

#dz-live-search-input.dz-navbar-live-search-input:focus {
  outline: 2px solid var(--dz-gold);
  border-color: var(--dz-teal-bright);
}

.dz-live-search-navbar-panel .dz-live-open {
  background: var(--dz-teal);
}

.site-menubar {
  background: linear-gradient(180deg, #1a3330 0%, #152826 100%) !important;
  border-left: 1px solid rgba(201, 162, 39, 0.15);
}

.site-menubar-category.dz-nav-brand {
  padding: 14px 12px 10px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.dz-nav-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.dz-nav-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dz-nav-brand-name {
  color: #fff;
  font-family: var(--dz-font-brand);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.dz-nav-brand-tag {
  color: rgba(232, 201, 106, 0.85);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.badge-primary.bg-2,
.bg-purple-701 {
  background-color: var(--dz-teal) !important;
}

/* ——— Hero الرئيسية ——— */
.dz-hero {
  position: relative;
  margin: -8px -8px 28px;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  direction: rtl;
  text-align: center;
}

.dz-hero__atmosphere {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(165deg, rgba(6, 72, 64, 0.72) 0%, rgba(11, 94, 85, 0.55) 45%, rgba(13, 115, 119, 0.42) 100%),
    url("../../img1/hero-c.webp") center / cover no-repeat;
  transform: scale(1.06) translate3d(0, 0, 0);
  animation: dz-hero-ken 22s ease-in-out infinite alternate;
}

.dz-hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse 42% 32% at 28% 38%, rgba(232, 201, 106, 0.2), transparent 62%);
  animation: dz-hero-light 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.dz-hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 162, 39, 0.18), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(15, 23, 42, 0.35));
  pointer-events: none;
}

.dz-hero__inner {
  position: relative;
  z-index: 1;
  width: min(720px, 94vw);
  padding: clamp(28px, 6vw, 56px) 16px clamp(36px, 7vw, 64px);
  animation: dz-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dz-hero__logo {
  width: clamp(88px, 18vw, 128px);
  height: clamp(88px, 18vw, 128px);
  margin: 0 auto 14px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: dz-logo-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.dz-hero__region {
  margin: 0 0 6px;
  font-size: clamp(13px, 2.5vw, 15px);
  color: rgba(232, 201, 106, 0.95);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.dz-hero__brand {
  margin: 0 0 10px;
  font-family: var(--dz-font-brand);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.dz-hero__brand .dz-hero__dot {
  color: var(--dz-gold-soft);
}

.dz-hero__tagline {
  margin: 0 auto 22px;
  max-width: 28em;
  font-size: clamp(15px, 3.2vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.dz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dz-hero__actions a {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: var(--dz-font-ar);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.dz-hero__actions a:first-child {
  background: var(--dz-gold);
  color: var(--dz-ink) !important;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}

.dz-hero__actions a:not(:first-child) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.dz-hero__actions a:hover,
.dz-hero__actions a:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  color: inherit !important;
}

.dz-hero__actions a:first-child:hover {
  background: var(--dz-gold-soft);
}

.dz-hero__actions a:not(:first-child):hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes dz-hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dz-logo-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dz-hero-ken {
  from {
    transform: scale(1.05) translate3d(-2%, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(2.4%, -1.4%, 0);
  }
}

@keyframes dz-hero-light {
  from {
    transform: translate3d(-6%, 5%, 0);
    opacity: 0.4;
  }
  to {
    transform: translate3d(14%, -8%, 0);
    opacity: 0.9;
  }
}

@keyframes dz-hero-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.dz-kenburns {
  overflow: hidden !important;
}

.dz-kenburns .overlay-figure {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.06);
  transform-origin: center center;
  animation: dz-hero-zoom 16s ease-in-out infinite alternate;
}

#dz-home-moy .dz-kenburns .overlay-figure {
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

#dz-home-sec .dz-kenburns .overlay-figure {
  animation-duration: 18s;
  animation-delay: -6s;
}

@media (max-width: 480px) {
  .dz-brand-mark {
    width: 38px;
    height: 38px;
  }

  .dz-hero {
    min-height: min(68vh, 560px);
  }

  .dz-hero__actions a {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dz-hero__atmosphere,
  .dz-hero__atmosphere::before,
  .dz-hero__inner,
  .dz-hero__logo,
  .dz-kenburns .overlay-figure {
    animation: none !important;
  }
}
