/**
 * ==============================================================================
 * CITY4U OFFICIAL 60FPS / 60HZ ULTRA-SMOOTH ACCELERATION ENGINE
 * Production Performance Layer for City4U International Schools (مدارس سيتي فور يو)
 *
 * 1. Business Logic Immunity: 100% preservation of backend PHP, forms & portals.
 * 2. Zero Layout Thrashing: GPU Compositor acceleration (transform, opacity).
 * 3. Spring Curve Physics: cubic-bezier(0.16, 1, 0.3, 1) at silky 60Hz.
 * 4. Content Visibility: Instant initial paint via content-visibility: auto.
 * 5. Elimination of Muddy Shadows: Clean, layered ambient micro-depth + 1px borders.
 * 6. Vector Typography: text-shadow: none !important for sharp Arabic rendering.
 * ==============================================================================
 */

/* 1. TYPOGRAPHY & ZERO MUDDY SHADOWS */
*, *::before, *::after {
  text-shadow: none !important;
}

html, body {
  background-color: #0B0B0E !important;
  color: #FFFFFF !important;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* 2. GLOBAL ELIMINATION OF MUDDY, BLURRY BOX SHADOWS */
.city-card, .cis-card, .cis-feature-card, .cis-stage-card, 
.cis-quick-card, .cis-pillar-card, .cis-stat-card, .city-btn, 
.nav-brand, .cis-quick-link, .cis-stat-item, .cis-hero-badge,
.cis-branch-card, .cis-teacher-card, .cis-faq-item, .cis-life-card,
.cis-quick-access, .cis-luxury-about, .cis-burgundy-pillars-section,
.hub-interactive-card, .city-stage-card-luxury, .cis-online-card,
.cis-hof-card, .news-card, .gallery-card, .faq-accordion-item,
.city-modal-dialog, .mobile-drawer-panel {
  box-shadow: none !important;
}

/* 3. REPLACEMENT WITH CLEAN AMBIENT DEPTH & 1PX MICRO-BORDERS */
.city-card, .cis-card, .cis-feature-card, .cis-stage-card, 
.cis-quick-card, .cis-pillar-card, .cis-stat-card,
.cis-branch-card, .cis-teacher-card, .cis-life-card, .cis-quick-link,
.city-stage-card-luxury, .cis-online-card, .cis-hof-card {
  background: rgba(18, 18, 24, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.26s ease, 
              box-shadow 0.26s ease !important;
}

.city-card:hover, .cis-card:hover, .cis-feature-card:hover, .cis-stage-card:hover,
.cis-quick-card:hover, .cis-pillar-card:hover, .cis-stat-card:hover,
.cis-branch-card:hover, .cis-teacher-card:hover, .cis-life-card:hover,
.city-stage-card-luxury:hover, .cis-online-card:hover, .cis-hof-card:hover {
  transform: translateY(-5px) translateZ(0) !important;
  border-color: rgba(212, 175, 55, 0.38) !important;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(128, 15, 50, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* 4. OFFICIAL QUICK ACCESS HUBS (smart-hubs-grid-5) */
.smart-hubs-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.hub-interactive-card {
  background: rgba(18, 18, 24, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.26s ease, 
              box-shadow 0.26s ease !important;
}

.hub-interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #800F32 0%, #D4AF37 50%, #5C0E1E 100%) !important;
  border-radius: 18px 18px 0 0;
  transition: height 0.2s ease;
}

.hub-interactive-card:hover {
  transform: translateY(-6px) translateZ(0) !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(128, 15, 50, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.hub-interactive-card:hover::before {
  height: 5px;
}

/* 5. HARDWARE-ACCELERATED BUTTONS & MICRO-INTERACTIONS */
a, button, .city-btn, .btn-stage-primary, .btn-stage-secondary,
.btn-nav-primary, .btn-nav-outline, .btn-hub-open, .btn-cis-primary,
.btn-cis-video, .btn-branch-apply, .btn-faq-trigger {
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              background-color 0.22s ease,
              border-color 0.22s ease,
              box-shadow 0.22s ease !important;
}

.btn-nav-primary, .btn-stage-primary, .btn-cis-primary {
  background: linear-gradient(135deg, #800F32 0%, #5C0E1E 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
}

.btn-nav-primary:hover, .btn-stage-primary:hover, .btn-cis-primary:hover {
  transform: translateY(-2px) translateZ(0) !important;
  box-shadow: 0 8px 24px rgba(128, 15, 50, 0.45) !important;
}

.btn-nav-outline, .btn-stage-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
}

.btn-nav-outline:hover, .btn-stage-secondary:hover {
  transform: translateY(-2px) translateZ(0) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* 6. ZERO LAYOUT-THRASHING TRANSITION OVERRIDES */
/* Ensure no element triggers expensive CPU reflow on hover */
* {
  transition-property: transform, opacity, background-color, border-color, color, box-shadow !important;
}

/* 7. CONTENT VISIBILITY AUTO: OFF-SCREEN SECTIONS OPTIMIZATION */
/* Eliminates off-screen paint work until user scrolls near the section */
.city-branches-section,
.city-learning-online-section,
.city-teachers-section,
.cis-hall-of-fame-section,
.city-gallery-section,
.city-news-events,
.city-faq-section,
.city-cta-section,
.city-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* 8. RESPONSIVE REFINEMENTS & MOBILE 60FPS (375px - 1024px) */
@media (max-width: 1200px) {
  .smart-hubs-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==============================================================================
   9. TOP NAVBAR LUXURY TRANSLUCENT GRADIENT (DESKTOP & GLOBAL)
   Allows panoramic hero banner to extend fully behind the menu
   with semi-transparent dark backing for 100% crystal-clear legibility.
   ============================================================================== */
html:not([data-theme="light"]) .top-navbar-wrapper,
.top-navbar-wrapper {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: linear-gradient(180deg, 
    rgba(11, 11, 14, 0.92) 0%, 
    rgba(11, 11, 14, 0.70) 55%, 
    rgba(11, 11, 14, 0.25) 85%, 
    transparent 100%) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40) !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease !important;
}

/* Hero stage pulled up behind the header */
.hero-stage-section {
  margin-top: -78px !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-stage-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* 2K Ultra-HD Crisp Uncompressed Panoramic Image - Enlarged & Covering Area */
.hero-stage-img {
  width: 100% !important;
  min-height: 720px !important;
  height: auto !important;
  max-height: 880px !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* Hero Overlay - comfortable padding to avoid colliding with top navbar */
.hero-stage-overlay {
  padding-top: 88px !important;
}

@media (max-width: 992px) {
  .site-header .city-nav-menu,
  .top-navbar-wrapper .nav-links-desktop {
    display: none !important;
  }
  .hero-stage-section .city-container > div {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  html:not([data-theme="light"]) .top-navbar-wrapper,
  .top-navbar-wrapper {
    background: linear-gradient(180deg, 
      rgba(11, 11, 14, 0.94) 0%, 
      rgba(11, 11, 14, 0.72) 60%, 
      rgba(11, 11, 14, 0.20) 90%, 
      transparent 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .hero-stage-section {
    margin-top: -66px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .hero-stage-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Mobile: Enlarge and cover space with students & CIS banner prominently displayed */
  .hero-stage-img {
    width: 100% !important;
    min-height: 380px !important;
    height: 380px !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: 22% 20% !important;
    display: block !important;
  }

  .hero-stage-overlay {
    position: static !important;
    padding: 1.5rem 1rem 2.5rem !important;
    background: transparent !important;
  }

  .hero-stage-content {
    background: rgba(18, 18, 24, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    padding: 2rem 1.25rem !important;
  }

  .hero-stage-h1 {
    color: #FFFFFF !important;
    font-size: 1.75rem !important;
  }

  .hero-stage-desc {
    color: #94A3B8 !important;
  }
}

@media (max-width: 768px) {
  .smart-hubs-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .site-header .btn-nav-outline {
    display: none !important;
  }
  
  .site-header .btn-nav-primary {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  
  .hero-stage-section {
    padding: 60px 0 50px;
  }
  
  .hero-stage-h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  
  .hero-stage-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  .hero-stage-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-stage-btns a, .hero-stage-btns button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .smart-hubs-grid-5 {
    grid-template-columns: 1fr;
  }
  
  .city-container, .container {
    padding: 0 14px !important;
  }
  
  .hero-stage-h1 {
    font-size: 24px !important;
  }
  
  .hub-interactive-card {
    padding: 18px 14px;
  }
  
  .nav-brand-title {
    font-size: 18px !important;
  }
  
  .nav-brand-sub {
    font-size: 10px !important;
  }
}


/* ==========================================================================
   SECTION 10: USER NOTE 1 - ROYAL BURGUNDY BRAND HIGHLIGHT ACCENTS
   ========================================================================== */
.cis-brand-highlight,
.brand-highlight,
.hero-stage-h1 span.cis-brand-highlight,
.hero-title span.cis-brand-highlight,
.city-brand-highlight {
  background: linear-gradient(135deg, #FFA3B2 0%, #E11D48 50%, #9F1239 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-fill-color: transparent !important;
  display: inline-block !important;
  font-weight: 900 !important;
  filter: drop-shadow(0 2px 12px rgba(225, 29, 72, 0.35)) !important;
}

/* ==========================================================================
   SECTION 11: USER NOTE 2 - BRANCH CODE SUPPRESSION SAFEGUARDS
   ========================================================================== */
.city-branch-card__code,
.cis-branch-code,
.branch-meta-code,
[data-branch-code] {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   SECTION 12: USER NOTE 3 - LUXURY DARK NEWS & UPDATES CARDS
   ========================================================================== */
.cis-dark-news-section {
  background: #0B0B0F !important;
}

.city-update-card,
.cis-bento-news-card {
  background: rgba(18, 18, 24, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #F8FAFC !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.city-update-card:hover,
.cis-bento-news-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(225, 29, 72, 0.45) !important;
  box-shadow: 0 16px 36px rgba(128, 15, 50, 0.25) !important;
}

.city-update-card__title,
.cis-bento-news-card .city-update-card__title,
.cis-bento-news-card h4 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  margin: 10px 0 8px !important;
}

.city-update-card__title a,
.cis-bento-news-card .city-update-card__title a,
.cis-bento-news-card h4 a {
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.city-update-card__title a:hover,
.cis-bento-news-card h4 a:hover {
  color: #FFA3B2 !important;
}

.city-update-card__excerpt,
.cis-bento-news-card .city-update-card__excerpt,
.cis-bento-news-card p {
  color: #94A3B8 !important;
  line-height: 1.65 !important;
  font-size: 14px !important;
}

.city-update-card__meta .date,
.cis-bento-news-card .date {
  color: #64748B !important;
  font-size: 13px !important;
}

.cis-bento-pill-tag {
  background: rgba(128, 15, 50, 0.2) !important;
  color: #FFA3B2 !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  display: inline-block !important;
}

.city-update-card__readmore {
  color: #FFA3B2 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 12px !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
}

.city-update-card__readmore:hover {
  color: #FFFFFF !important;
  gap: 10px !important;
}

/* ==========================================================================
   SECTION 13: USER NOTE 4 - EXECUTIVE TEACHER DISPLAY PANEL
   ========================================================================== */
.city-teachers-grid,
.csc-teachers-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 28px !important;
  margin-top: 36px !important;
}

.city-teacher-card,
.csc-teacher-card {
  background: rgba(18, 18, 24, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 32px 24px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.city-teacher-card::before,
.csc-teacher-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, #E11D48, transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.city-teacher-card:hover,
.csc-teacher-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  box-shadow: 0 18px 42px rgba(128, 15, 50, 0.28) !important;
}

.city-teacher-card:hover::before,
.csc-teacher-card:hover::before {
  opacity: 1 !important;
}

.city-teacher-card__avatar,
.csc-teacher-card__avatar {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  margin-bottom: 20px !important;
  position: relative !important;
  padding: 4px !important;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.6), rgba(128, 15, 50, 0.3)) !important;
  box-shadow: 0 0 24px rgba(225, 29, 72, 0.35) !important;
}

.city-teacher-card__avatar img,
.csc-teacher-card__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  background: #111116 !important;
  display: block !important;
}

.city-teacher-card__name,
.csc-teacher-card__name {
  color: #FFFFFF !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.02em !important;
}

.city-teacher-card__subject,
.csc-teacher-card__subject {
  display: inline-block !important;
  background: rgba(225, 29, 72, 0.14) !important;
  color: #FFA3B2 !important;
  border: 1px solid rgba(225, 29, 72, 0.3) !important;
  border-radius: 20px !important;
  padding: 4px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
}

.city-teacher-card__bio,
.csc-teacher-card__bio {
  color: #94A3B8 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ==========================================================================
   SECTION 14: USER NOTE 5 - BALANCED 2-COLUMN VISION & MISSION GRID
   ========================================================================== */
.city-vision-mission-section {
  position: relative !important;
  padding: 70px 0 !important;
}

.city-vm-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
  align-items: stretch !important;
}

@media (max-width: 860px) {
  .city-vm-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.city-vm-card {
  background: rgba(18, 18, 24, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 22px !important;
  padding: 38px 32px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

.city-vm-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(225, 29, 72, 0.45) !important;
  box-shadow: 0 18px 42px rgba(128, 15, 50, 0.25) !important;
}

.city-vm-card .city-pillar-card__icon {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(128, 15, 50, 0.3), rgba(225, 29, 72, 0.15)) !important;
  border: 1px solid rgba(225, 29, 72, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFA3B2 !important;
  margin-bottom: 22px !important;
  box-shadow: 0 0 24px rgba(225, 29, 72, 0.22) !important;
}

.city-vm-card .city-pillar-card__title {
  color: #FFFFFF !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
}

.city-vm-card .city-pillar-card__desc {
  color: #94A3B8 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* ==========================================================================
   SECTION 15: USER NOTE 6 - FULL-CONTAINER ACADEMICS GRID EXPANSION
   ========================================================================== */
.city-programs-grid,
.city-programs-grid:has(> :nth-child(2):last-child),
.city-programs-grid:has(> :nth-child(1):last-child) {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px !important;
}

@media (max-width: 860px) {
  .city-programs-grid,
  .city-programs-grid:has(> :nth-child(2):last-child),
  .city-programs-grid:has(> :nth-child(1):last-child) {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

.city-program-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================================
   SECTION 16: USER NOTE 7 - SCHOOL LIFE TALENTS & GALLERY 3-COLUMN GRIDS
   ========================================================================== */
.city-talents-luxury-section {
  position: relative !important;
  padding: 60px 0 !important;
}

.city-talents-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 26px !important;
  margin-top: 40px !important;
  align-items: stretch !important;
}

@media (max-width: 1024px) {
  .city-talents-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .city-talents-grid {
    grid-template-columns: 1fr !important;
  }
}

.city-talent-card {
  background: rgba(18, 18, 24, 0.90) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 30px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.city-talent-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(225, 29, 72, 0.45) !important;
  box-shadow: 0 16px 36px rgba(128, 15, 50, 0.28) !important;
}

.city-talent-card__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.city-talent-badge {
  background: rgba(128, 15, 50, 0.25) !important;
  color: #FFA3B2 !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
  border-radius: 16px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.city-talent-num {
  font-family: monospace !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: rgba(225, 29, 72, 0.5) !important;
}

.city-talent-card__title {
  color: #FFFFFF !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.city-talent-card__desc {
  color: #94A3B8 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin: 0 0 16px !important;
}

.city-talent-card__student {
  color: #FFA3B2 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Gallery Showcase Grid */
.city-gallery-luxury-section {
  position: relative !important;
  padding: 60px 0 !important;
}

.city-gallery-showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  margin-top: 40px !important;
  align-items: stretch !important;
}

@media (max-width: 1024px) {
  .city-gallery-showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .city-gallery-showcase-grid {
    grid-template-columns: 1fr !important;
  }
}

.city-gallery-item-card {
  background: rgba(18, 18, 24, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.city-gallery-item-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(225, 29, 72, 0.45) !important;
  box-shadow: 0 16px 36px rgba(128, 15, 50, 0.28) !important;
}

.city-gallery-item-card__thumb {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: #0B0B0F !important;
}

.city-gallery-item-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.city-gallery-item-card:hover .city-gallery-item-card__thumb img {
  transform: scale(1.06) !important;
}

.city-gallery-badge {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  background: rgba(18, 18, 24, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #FFA3B2 !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
  border-radius: 12px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.city-gallery-item-card__body {
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.city-gallery-item-card__title {
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

.city-gallery-item-card__desc {
  color: #94A3B8 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ==========================================================================
   SECTION 17: USER NOTE 8 - UNIFIED LUXURY DARK OBSIDIAN & BURGUNDY PORTAL
   ========================================================================== */
.csc-login-container {
  min-height: calc(80vh - 120px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 16px !important;
  position: relative !important;
}

.csc-login-card,
html.city-dark-mode .csc-login-card,
html[data-theme="dark"] .csc-login-card {
  background: rgba(18, 18, 24, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(225, 29, 72, 0.25) !important;
  border-top: 3px solid #E11D48 !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(128, 15, 50, 0.2) !important;
  color: #F8FAFC !important;
  max-width: 460px !important;
  width: 100% !important;
  padding: 38px 32px 32px !important;
  box-sizing: border-box !important;
}

.csc-login-header {
  text-align: center !important;
  margin-bottom: 28px !important;
}

.csc-login-header h2,
.csc-login-card h2,
html.city-dark-mode .csc-login-card h2,
html[data-theme="dark"] .csc-login-card h2 {
  color: #FFFFFF !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
}

.csc-login-header p,
.csc-login-card p,
html.city-dark-mode .csc-login-card p,
html[data-theme="dark"] .csc-login-card p {
  color: #94A3B8 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.csc-login-card form label,
html.city-dark-mode .csc-login-card form label,
html[data-theme="dark"] .csc-login-card form label {
  color: #E2E8F0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.csc-login-card form input[type="text"],
.csc-login-card form input[type="password"],
.csc-login-card #user_login,
.csc-login-card #user_pass,
html.city-dark-mode .csc-login-card form input[type="text"],
html.city-dark-mode .csc-login-card form input[type="password"],
html.city-dark-mode .csc-login-card #user_login,
html.city-dark-mode .csc-login-card #user_pass,
html[data-theme="dark"] .csc-login-card form input[type="text"],
html[data-theme="dark"] .csc-login-card form input[type="password"],
html[data-theme="dark"] .csc-login-card #user_login,
html[data-theme="dark"] .csc-login-card #user_pass {
  background: rgba(10, 10, 15, 0.85) !important;
  background-color: rgba(10, 10, 15, 0.85) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.csc-login-card form input[type="text"]:focus,
.csc-login-card form input[type="password"]:focus,
.csc-login-card #user_login:focus,
.csc-login-card #user_pass:focus,
html.city-dark-mode .csc-login-card form input[type="text"]:focus,
html.city-dark-mode .csc-login-card form input[type="password"]:focus,
html.city-dark-mode .csc-login-card #user_login:focus,
html.city-dark-mode .csc-login-card #user_pass:focus,
html[data-theme="dark"] .csc-login-card form input[type="text"]:focus,
html[data-theme="dark"] .csc-login-card form input[type="password"]:focus,
html[data-theme="dark"] .csc-login-card #user_login:focus,
html[data-theme="dark"] .csc-login-card #user_pass:focus {
  border-color: #E11D48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25) !important;
  outline: none !important;
}

.csc-login-card .login-remember,
.csc-login-card label[for="rememberme"] {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #94A3B8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin: 14px 0 20px !important;
}

.csc-login-card .login-remember input[type="checkbox"],
.csc-login-card #rememberme {
  width: 18px !important;
  height: 18px !important;
  accent-color: #E11D48 !important;
  cursor: pointer !important;
  border-radius: 4px !important;
}

.csc-login-card .login-submit,
.csc-login-card p:has(#wp-submit) {
  margin-top: 10px !important;
}

.csc-login-card input[type="submit"],
.csc-login-card #wp-submit,
html.city-dark-mode .csc-login-card input[type="submit"],
html.city-dark-mode .csc-login-card #wp-submit,
html[data-theme="dark"] .csc-login-card input[type="submit"],
html[data-theme="dark"] .csc-login-card #wp-submit {
  width: 100% !important;
  background: linear-gradient(135deg, #800F32 0%, #5C0E1E 100%) !important;
  background-color: #800F32 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 13px 24px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(128, 15, 50, 0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.csc-login-card input[type="submit"]:hover,
.csc-login-card #wp-submit:hover,
html.city-dark-mode .csc-login-card input[type="submit"]:hover,
html.city-dark-mode .csc-login-card #wp-submit:hover,
html[data-theme="dark"] .csc-login-card input[type="submit"]:hover,
html[data-theme="dark"] .csc-login-card #wp-submit:hover {
  background: linear-gradient(135deg, #9B123C 0%, #800F32 100%) !important;
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.5) !important;
  transform: translateY(-2px) !important;
}


/* ==========================================================================
   SECTION 18: ULTRA 60FPS SMOOTH RENDERING & ZERO-JANK GPU ENGINE
   ========================================================================== */

/* 1. Global Scrolling Optimization */
html {
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

body {
  overscroll-behavior-y: none !important;
  text-rendering: optimizeSpeed !important;
}

/* 2. Hover Event Suppression during Scroll (Eliminates CPU style recalculations while scrolling) */
body.is-scrolling * {
  pointer-events: none !important;
}

/* 3. Hardware Layer Promotion on Fixed / Animated Elements */
.top-navbar-wrapper,
#cityHeader,
.city-header,
.hero-stage-section,
.hero-stage-wrapper {
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  perspective: 1000px !important;
  will-change: transform !important;
}

/* 4. Elimination of GPU Gaussian Blur Stalls on Static Cards */
.city-update-card,
.cis-bento-news-card,
.city-event-card,
.cis-bento-event-card,
.city-announcement-card,
.cis-bento-announcement-card,
.city-teacher-card,
.csc-teacher-card,
.city-vm-card,
.city-talent-card,
.city-gallery-item-card,
.city-branch-card,
.hub-interactive-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: layout style paint !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

/* 5. Content-Visibility for Sub-millisecond Section Rendering */
section:not(#home):not(.hero-stage-section) {
  content-visibility: auto !important;
  contain-intrinsic-size: 1px 700px !important;
}

/* 6. Asynchronous Image Rendering Optimization */
img {
  content-visibility: auto !important;
}

/* 7. GPU Transition Optimization */
.city-update-card,
.cis-bento-news-card,
.city-teacher-card,
.csc-teacher-card,
.city-vm-card,
.city-talent-card,
.city-gallery-item-card,
.city-program-card,
.hub-interactive-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  will-change: transform !important;
}
