:root {
  --bg-deep: #020205;
  --bg-card: rgba(255,255,255,0.06);
  --bg-glass: rgba(255,255,255,0.08);
  --border-glass: rgba(255,255,255,0.08);
  --gold: #c9a96e;
  --amber: #d4a373;
  --purple: #8b7ab8;
  --teal: #5a8a9a;
  --text-primary: #f0ede8;
  --text-secondary: rgba(240,237,232,0.7);
  --text-muted: rgba(240,237,232,0.45);
  --font-main: "Cairo", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.immersive-page {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.8;
}
#three-canvas-container {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  opacity: 0.35;
}
#three-canvas-container canvas { display: block; width: 100% !important; height: 100% !important; }
.imm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(2,2,5,0.7);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.4s ease;
}
.imm-nav.scrolled { padding: 0.5rem 1.5rem; background: rgba(2,2,5,0.88); }
.imm-nav__logo {
  font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 0.6rem;
}
.imm-nav__logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.imm-nav__logo-img {
  width: 32px; height: 32px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.imm-nav__links { display: flex; gap: 1rem; list-style: none; }
.imm-nav__links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.88rem;
  font-weight: 600; position: relative; transition: color 0.3s;
}
.imm-nav__links a::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  transition: width 0.3s ease;
}
.imm-nav__links a:hover { color: var(--text-primary); }
.imm-nav__links a:hover::after { width: 100%; }
.imm-nav__menu-btn { display: none; background: none; border: none;
  color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
}
.imm-section {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: center; padding: 6rem 3rem;
}
.imm-section__inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.imm-hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.imm-hero__content { position: relative; z-index: 2; }
.imm-hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; background: var(--bg-glass);
  border: 1px solid var(--border-glass); border-radius: 50px;
  font-size: 0.9rem; color: var(--gold); margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.imm-hero__badge::before {
  content: ""; width: 8px; height: 8px; background: var(--gold);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.imm-hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, var(--amber) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.imm-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8;
}
.imm-hero__cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg-deep); text-decoration: none; font-weight: 800;
  font-size: 1.1rem; border-radius: 12px; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.imm-hero__cta::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.imm-hero__cta:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(201,169,110,0.25); }
.imm-hero__cta:hover::before { left: 100%; }
.imm-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.8rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%)translateY(0)} 50%{transform:translateX(-50%)translateY(10px)} }
.imm-glass {
  background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass); border-radius: 20px; padding: 2.5rem;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.imm-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.15);
}
.imm-glass__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.5rem;
}
.imm-glass__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.8rem; }
.imm-glass__text { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.8; }
.imm-section-header { text-align: center; margin-bottom: 4rem; }
.imm-section-header__label {
  display: inline-block; padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(139,122,184,0.1));
  border: 1px solid var(--border-glass); border-radius: 50px;
  font-size: 0.85rem; color: var(--gold); margin-bottom: 1rem;
}
.imm-section-header__title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem;
}
.imm-section-header__desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.imm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.imm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.imm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.imm-grid-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.imm-grid-5 .imm-dept-card {
  flex: 1 1 200px;
  max-width: 320px;
  min-width: 180px;
}
.imm-dept-card {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: 20px; padding: 2rem 1.5rem; text-align: center;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.imm-dept-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--amber));
  opacity: 0; transition: opacity 0.4s;
}
.imm-dept-card:hover::before { opacity: 1; }
.imm-dept-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  border-color: rgba(201,169,110,0.12);
}
.imm-dept-card__icon {
  width: 64px; height: 64px; margin: 0 auto 1.5rem; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.imm-dept-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; }
.imm-dept-card__desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.imm-stat { text-align: center; padding: 2rem; }
.imm-stat__num {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.imm-stat__label { font-size: 1rem; color: var(--text-secondary); font-weight: 600; }
.imm-cta {
  background: linear-gradient(135deg, rgba(201,169,110,0.05), rgba(139,122,184,0.05));
  border: 1px solid var(--border-glass); border-radius: 30px;
  padding: 4rem; text-align: center; position: relative; overflow: hidden;
}
.imm-cta::before {
  content: ""; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.imm-cta > * { position: relative; z-index: 1; }
.imm-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.imm-contact-info__item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.imm-contact-info__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.imm-contact-info__label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.imm-contact-info__value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.imm-footer {
  border-top: 1px solid var(--border-glass); padding: 3rem;
  text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
@media (max-width: 1024px) {
  .imm-grid-5 { gap: 1rem; }
}
@media (max-width: 768px) {
  .imm-nav { padding: 1rem 1.5rem; }
  .imm-nav__links { display: none; }
  .imm-nav__menu-btn { display: block; }
  .imm-section { padding: 4rem 1.5rem; }
  .imm-grid-2, .imm-grid-3, .imm-grid-5 { grid-template-columns: 1fr; }
  .imm-contact-grid { grid-template-columns: 1fr; }
}
.reveal-up { opacity: 0; transform: translateY(60px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.imm-nav__links.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: rgba(2,2,5,0.95);
  padding: 1.5rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
}
body.immersive-page #page,
body.immersive-page #content,
body.immersive-page .site-content,
body.immersive-page .ast-container {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.immersive-page .entry-content,
body.immersive-page .post-466 {
  padding: 0 !important;
  margin: 0 !important;
}
body.immersive-page #primary,
body.immersive-page #main {
  padding: 0 !important;
  margin: 0 !important;
}
body.immersive-page article,
body.immersive-page .ast-article-single {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
#preloader {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #020205; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
.preloader-content { text-align: center; }
.preloader-logo {
  font-size: 4rem; margin-bottom: 2rem;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
.preloader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px; margin: 0 auto 1rem; overflow: hidden;
}
.preloader-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  border-radius: 3px;
}
.preloader-text {
  color: rgba(255,255,255,0.5); font-size: 0.9rem; letter-spacing: 2px;
}
#custom-cursor {
  position: fixed; top: 0; left: 0; z-index: 99998;
  pointer-events: none; mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px; background: #fff;
  border-radius: 50%; position: absolute;
  top: -4px; left: -4px;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%; position: absolute;
  top: -20px; left: -20px;
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, border-color 0.3s;
}
#custom-cursor.cursor-hover .cursor-ring {
  width: 60px; height: 60px; top: -30px; left: -30px;
  border-color: var(--gold);
}
.imm-dept-card {
  transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}
.imm-hero__cta {
  position: relative; z-index: 1;
}
.imm-hero__cta::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px; z-index: -1;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  filter: blur(20px); opacity: 0;
  transition: opacity 0.4s ease;
}
.imm-hero__cta:hover::after { opacity: 0.4; }
.imm-glass {
  position: relative;
}
.imm-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(139,122,184,0.08), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
}
.imm-glass:hover::before { opacity: 1; }
.imm-section::after {
  content: ""; position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.1), transparent);
}
.imm-section:last-of-type::after { display: none; }
.imm-stat__num {
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (pointer: coarse) {
  #custom-cursor { display: none !important; }
}
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--amber), var(--purple)); z-index: 10001; width: 0%; transition: width 0.1s; }
#backToTop {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 9999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #000; border: none; cursor: pointer;
  font-size: 1.2rem; font-weight: 800;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
  box-shadow: 0 4px 20px rgba(201,169,110,0.2);
}
#backToTop:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 30px rgba(201,169,110,0.35);
}

/* Ensure contact and critical content is visible even before animation */
.imm-contact-grid .imm-glass,
.imm-contact-grid .imm-glass.reveal-up {
  opacity: 1 !important;
  transform: none !important;
}

/* Make cards more readable against animated background */
.imm-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.imm-dept-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

/* SOCIAL LINKS */
.imm-social-link:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* MAP CARD */
.imm-contact-grid .imm-glass:has(iframe) {
  padding: 0;
  min-height: 360px;
}

/* Ensure map is responsive on mobile */
@media (max-width: 768px) {
  .imm-contact-grid .imm-glass:has(iframe) {
    min-height: 280px;
  }
}

/* GALLERY PREVIEW ON HOMEPAGE */
.imm-gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.imm-gallery-preview__item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--bg-card); border: 1px solid var(--border-glass); transition: all 0.4s ease; }
.imm-gallery-preview__item:nth-child(1) { aspect-ratio: 3/4; grid-row: span 2; }
.imm-gallery-preview__item:nth-child(4) { aspect-ratio: 3/4; grid-row: span 2; }
.imm-gallery-preview__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.imm-gallery-preview__item:hover img { transform: scale(1.1); }
.imm-gallery-preview__item:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); border-color: rgba(201,169,110,0.15); }
.imm-gallery-preview__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,2,5,0.8) 0%, transparent 50%); display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem; opacity: 0; transition: opacity 0.4s ease; }
.imm-gallery-preview__item:hover .imm-gallery-preview__overlay { opacity: 1; }
.imm-gallery-preview__overlay span { color: #fff; font-weight: 700; font-size: 0.88rem; }
@media (max-width: 768px) {
  .imm-gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .imm-gallery-preview__item:nth-child(1) { aspect-ratio: 1; grid-row: span 1; }
  .imm-gallery-preview__item:nth-child(4) { aspect-ratio: 1; grid-row: span 1; }
}

/* NEWS CARDS */
.imm-news-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  position: relative;
}
.imm-news-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}
.imm-news-card:hover::before { opacity: 1; }
.imm-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-color: rgba(201,169,110,0.12);
}
.imm-news-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.imm-news-card:hover .imm-news-card__img {
  transform: scale(1.05);
}
.imm-news-card__body {
  padding: 1.5rem;
}
.imm-news-card__date {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.imm-news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  color: var(--text-primary);
}
.imm-news-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.imm-news-card__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  transition: color 0.3s;
}
.imm-news-card:hover .imm-news-card__link {
  color: var(--amber);
}
/* ===== ABOUT SECTION IMPROVEMENTS ===== */

.imm-about-intro {
  max-width: 850px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.imm-about-intro p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
  position: relative;
  padding: 0 1rem;
}
.imm-about-intro::before,
.imm-about-intro::after {
  content: "❝";
  display: block;
  text-align: center;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}
.imm-about-intro::after {
  content: "❞";
  margin-top: 0.5rem;
}

.imm-about-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.imm-about-card__top {
  text-align: center;
  margin-bottom: 1.5rem;
}
.imm-about-card .imm-glass__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem;
}
.imm-about-card .imm-glass__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0;
}

.imm-about-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.imm-about-card__list li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.imm-about-card__list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
}
.imm-about-card__list li:last-child {
  margin-bottom: 0;
}
.imm-about-card__list li strong {
  color: var(--text-primary);
  font-weight: 700;
}

.imm-about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-glass);
}
.imm-about-highlight {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: all 0.4s ease;
}
.imm-about-highlight:hover {
  transform: translateY(-6px);
  border-color: rgba(201,169,110,0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
.imm-about-highlight__icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.imm-about-highlight__num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.imm-about-highlight__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .imm-about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .imm-about-intro p {
    font-size: 1rem;
    line-height: 1.9;
  }
  .imm-about-card {
    padding: 2rem 1.5rem;
  }
  .imm-about-card .imm-glass__icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .imm-about-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
  .imm-about-highlight__num {
    font-size: 1.5rem;
  }
}


/* =============================================
   NO-GSAP / NO-WEBGL FALLBACK
   Applied when GSAP or WebGL is unavailable
   ============================================= */
body.no-gsap .reveal-up,
body.no-gsap .reveal-scale,
body.no-gsap .imm-about-card,
body.no-gsap .imm-dept-card,
body.no-gsap .imm-glass,
body.no-gsap .imm-section-header {
}

/* Always ensure about cards are visible by default (GSAP will override with animation) */
.imm-about-card {
  opacity: 1;
}

/* CSS fallback background when WebGL is disabled */
#three-canvas-container:empty {
  background: linear-gradient(135deg, #0a0819 0%, #1a1230 30%, #0d1a20 60%, #020205 100%);
}

/* Ensure dept cards always have base opacity so they show without GSAP */
.imm-dept-card {
  opacity: 1;
}

/* Highlight stats: always visible, animation is enhancement only */
.imm-about-highlight {
  opacity: 1;
}


/* =============================================
   HERO ART BACKGROUND - Cosmic Art Layers
   Matches the user's fractal/cosmic art images
   ============================================= */

/* Art canvas layer inside hero */
.imm-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Layer 1 – deep space base */
.imm-hero-art__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(0,120,100,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 60%, rgba(90,50,140,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10,8,25,1) 40%, rgba(5,15,20,1) 100%);
}

/* Layer 2 – golden swirl orb (image 1 vibe) */
.imm-hero-art__swirl {
  position: absolute;
  width: 700px; height: 700px;
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(201,169,110,0.07) 30deg,
    rgba(90,200,160,0.08) 90deg,
    rgba(201,169,110,0.12) 150deg,
    rgba(90,50,140,0.06) 210deg,
    rgba(201,169,110,0.09) 270deg,
    transparent 360deg
  );
  border-radius: 50%;
  animation: heroSwirlRotate 25s linear infinite;
  filter: blur(2px);
}

/* Layer 3 – lotus glow orb (image 2 vibe) */
.imm-hero-art__lotus {
  position: absolute;
  width: 500px; height: 500px;
  top: 50%; right: 5%;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(230,150,60,0.18) 0%,
    rgba(90,140,220,0.12) 35%,
    rgba(180,80,40,0.08) 55%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroLotusBreath 8s ease-in-out infinite alternate;
  filter: blur(1px);
}

/* Layer 4 – sparkling particles via box-shadow */
.imm-hero-art__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(201,169,110,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 15%, rgba(90,200,160,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 30%, rgba(201,169,110,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 25% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 80%, rgba(90,140,220,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(201,169,110,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 45%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 50%, rgba(90,200,160,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 10% 85%, rgba(201,169,110,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 35%, rgba(255,220,150,0.6) 0%, transparent 100%);
  animation: heroParticleFloat 15s ease-in-out infinite alternate;
}

/* Layer 5 – photo images (art1 left, art2 right) */
.imm-hero-art__img {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
}
.imm-hero-art__img--left {
  left: 0;
  background-image: var(--hero-art-img-1);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.8) 70%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.8) 70%, transparent 100%);
}
.imm-hero-art__img--right {
  right: 0;
  background-image: var(--hero-art-img-2);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.8) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.8) 70%, transparent 100%);
}

/* Layer 6 – golden ribbon lines SVG-style via gradients */
.imm-hero-art__ribbons {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 20%, rgba(201,169,110,0.04) 35%, transparent 50%),
    linear-gradient(245deg, transparent 30%, rgba(90,200,160,0.04) 50%, transparent 65%),
    linear-gradient(75deg, transparent 40%, rgba(201,169,110,0.03) 60%, transparent 75%);
  animation: heroRibbonShimmer 12s ease-in-out infinite alternate;
}

/* Dark gradient overlay so text is always readable */
.imm-hero-art__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(10,8,25,0.3) 0%, rgba(5,5,15,0.75) 100%),
    linear-gradient(to bottom, rgba(5,5,15,0.4) 0%, transparent 30%, transparent 70%, rgba(5,5,15,0.6) 100%);
}

/* Keyframe animations */
@keyframes heroSwirlRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes heroLotusBreath {
  from { opacity: 0.5; transform: translateY(-50%) scale(0.9); }
  to   { opacity: 1;   transform: translateY(-50%) scale(1.15); }
}
@keyframes heroParticleFloat {
  from { transform: translateY(0px);   opacity: 0.6; }
  to   { transform: translateY(-18px); opacity: 1; }
}
@keyframes heroRibbonShimmer {
  from { opacity: 0.7; }
  to   { opacity: 1.0; }
}

/* =============================================
   ICON FONT FIX — emoji in all browsers
   ============================================= */
.imm-glass__icon,
.imm-nav__logo-icon,
.imm-dept-card__icon,
.imm-about-highlight__icon,
.imm-contact-info__icon,
.imm-hero__cta span:first-child,
.imm-hero__scroll span:first-child {
  font-family: Cairo, Apple


/* DEPARTMENT LIST STYLES */
.imm-dept-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: right;
}
.imm-dept-list li {
    position: relative;
    padding-right: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.imm-dept-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.45rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.7;
}
.imm-dept-list li.inactive {
    opacity: 0.4;
}


@media (max-width: 1200px) {
  .imm-nav { padding: 0.8rem 1rem; }
  .imm-nav__links { gap: 1rem; }
  .imm-nav__logo span { font-size: 1rem; }
}

@media (max-width: 1100px) {
  .imm-nav__logo span { display: none; }
  .imm-nav { padding: 0.8rem 1.5rem; }
}
