/* Load Nohemi if available */
@font-face {
  font-family: 'Nohemi';
  src: url('/wp-content/uploads/fonts/Nohemi-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('/wp-content/uploads/fonts/Nohemi-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nohemi';
  src: url('/wp-content/uploads/fonts/Nohemi-Medium.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

@property --zg-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.zg-wrap {
  --zg-yellow: #FFB000; --zg-orange: #FF5A02; --zg-dark-blue: #081C30;
  position: relative; width: 100dvw; max-width: 100dvw;
  margin-left: calc(50% - 50dvw); margin-right: calc(50% - 50dvw);
  margin-top: 0; margin-bottom: 0;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); 
  border-radius: 0; overflow: hidden; isolation: isolate;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(255, 176, 0, 0.10), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255, 90, 2, 0.10), transparent 45%),
              linear-gradient(150deg, #0E2640 0%, #081C30 60%, #05121F 100%);
}
body { overflow-x: hidden; }

.zg-wrap::before, .zg-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.30; z-index: 0; pointer-events: none;
}
.zg-wrap::before { width: 320px; height: 320px; top: -80px; left: -80px; background: var(--zg-yellow); animation: zg-float 12s ease-in-out infinite alternate; }
.zg-wrap::after { width: 280px; height: 280px; bottom: -70px; right: -70px; background: var(--zg-orange); animation: zg-float 14s ease-in-out infinite alternate-reverse; }
@keyframes zg-float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 20px) scale(1.15); } }

.zg-grid {
  position: relative; z-index: 1; display: grid; width: 100%; max-width: 1000px; margin: 0 auto;
  grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 4rem); justify-content: center; align-items: center; perspective: 1000px;
}
@media (max-width: 700px) { .zg-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

.zg-tile {
  --zg-focus: 0 0 0 3px #FFB000, 0 0 0 5px #081C30;
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
  width: 100%; max-width: 100%; justify-self: center; border-radius: 1.25rem; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background-size: cover; background-position: center; background-repeat: no-repeat; outline: none; -webkit-font-smoothing: antialiased;
  transform-style: preserve-3d; will-change: transform, box-shadow;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, filter .3s ease;
  opacity: 0; animation: zg-enter .8s cubic-bezier(.2, .8, .2, 1) forwards;
}
@media (min-width: 701px) { .zg-tile { max-width: 440px; } }

.zg-tile:nth-child(1) { animation-delay: .05s; } .zg-tile:nth-child(2) { animation-delay: .15s; }
.zg-tile:nth-child(3) { animation-delay: .25s; } .zg-tile:nth-child(4) { animation-delay: .35s; }
.zg-tile:nth-child(5) { animation-delay: .45s; } .zg-tile:nth-child(6) { animation-delay: .55s; }
.zg-tile:nth-child(n+7) { animation-delay: .65s; }

@keyframes zg-enter { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

.zg-tile::after {
  content: ''; position: absolute; inset: -4%; background: inherit; background-size: cover; background-position: center; background-repeat: no-repeat;
  z-index: 0; animation: zg-kenburns 16s ease-in-out infinite alternate; pointer-events: none; transition: filter .4s ease;
}
@keyframes zg-kenburns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.08) translate(-1%, -1%); } }
.zg-tile:hover::after { animation-play-state: paused; filter: brightness(1.1) saturate(1.05); }

.zg-tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(145deg, rgba(8, 28, 48, 0.82) 0%, rgba(8, 28, 48, 0.52) 100%); z-index: 1; transition: background .4s ease;
}
.zg-tile:hover::before { background: linear-gradient(145deg, rgba(8, 28, 48, 0.62) 0%, rgba(8, 28, 48, 0.30) 100%); }
.zg-tile:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 26px 40px -12px rgba(0, 0, 0, 0.9), 0 0 0 2px #FF5A02 inset; filter: brightness(1.06); }

.zg-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; }
.zg-shine::before {
  content: ''; position: absolute; top: -50%; left: -75%; width: 50%; height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.20) 40%, rgba(255,176,0,0.30) 50%, rgba(255,255,255,0.20) 60%, transparent 100%);
  transform: skewX(-20deg); opacity: 0; transition: opacity .2s ease;
}
.zg-tile:hover .zg-shine::before { opacity: 1; animation: zg-shine 1s ease-out forwards; }
@keyframes zg-shine { 0% { left: -75%; } 100% { left: 125%; } }

.zg-ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: conic-gradient(from var(--zg-angle), transparent 0%, #FF5A02 25%, #FFB000 50%, #FF5A02 75%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.zg-tile:hover .zg-ring { opacity: 1; animation: zg-rotate 2.4s linear infinite; }
@keyframes zg-rotate { to { --zg-angle: 360deg; } }

.zg-tile:focus-visible { outline: none; box-shadow: var(--zg-focus); transform: scale(1.02); animation: zg-focus-pulse 1.4s ease-in-out infinite; }
@keyframes zg-focus-pulse { 0%, 100% { box-shadow: 0 0 0 3px #FFB000, 0 0 0 5px #081C30; } 50% { box-shadow: 0 0 0 5px #FFB000, 0 0 0 7px #081C30; } }

.zg-tile-title {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0 1.25rem;
  font-family: 'Nohemi', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; /* SEMI-BOLD APPLIED */
  letter-spacing: -0.02em; text-align: center; text-transform: uppercase; line-height: 1.05; word-break: break-word; margin: 0; color: #FFB000;
  text-shadow: 0 3px 14px rgba(8,28,48,0.95), 0 1px 6px rgba(8,28,48,0.75); font-synthesis: none; will-change: transform, letter-spacing;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .3s ease, letter-spacing .4s ease, text-shadow .3s ease;
}
.zg-tile:hover .zg-tile-title { color: #FF5A02; letter-spacing: 0.01em; transform: translateY(-3px) scale(1.05); text-shadow: 0 4px 22px rgba(255,90,2,0.55), 0 1px 8px rgba(8,28,48,0.85); }

@media (prefers-reduced-motion: reduce) {
  .zg-wrap::before, .zg-wrap::after, .zg-tile, .zg-tile::after, .zg-tile::before, .zg-shine::before, .zg-ring, .zg-tile-title { animation: none !important; transition: none !important; }
  .zg-tile { opacity: 1; transform: none; } .zg-tile:hover, .zg-tile:hover .zg-tile-title { transform: none; }
  .zg-tile:hover .zg-shine::before, .zg-tile:hover .zg-ring { display: none; } .zg-tile:focus-visible { animation: none; }
}