/* ============================================================
   TECHMED INSTITUTE OF PROFESSIONAL STUDIES (TIPS)
   BESPOKE INSTITUTIONAL DESIGN SYSTEM (CSS3)
   Colors: Sovereign Deep Navy (#050f22, #071630, #0b1f3d) & Academic Gold (#c9a227, #f3d77d)
   Craft: Ultra-premium, human-designed institutional web engineering
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --navy-950: #030a17;
  --navy-900: #071630;
  --navy-850: #0b1f3d;
  --navy-800: #11284d;
  --navy-700: #183664;
  --navy-card: rgba(11, 31, 61, 0.85);
  
  --gold-300: #fceda2;
  --gold-400: #f3d77d;
  --gold-500: #c9a227;
  --gold-600: #a98319;
  --gold-700: #8a680e;
  
  --gold-gradient: linear-gradient(135deg, #fff2b2 0%, #c9a227 50%, #8a680e 100%);
  --gold-glow: rgba(201, 162, 39, 0.35);
  --gold-subtle: rgba(201, 162, 39, 0.12);
  --gold-border: rgba(201, 162, 39, 0.28);
  
  --cream-50: #fffdf7;
  --cream-100: #faf7ef;
  --cream-200: #f3eedc;
  --cream-300: #e5dcbe;
  
  --ink-900: #0e1726;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  
  --emerald: #10b981;
  --emerald-bg: #ecfdf5;
  --ruby: #e11d48;
  --ruby-bg: #fff1f2;
  --amber: #f59e0b;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(7, 22, 48, 0.05);
  --shadow-card: 0 12px 32px -4px rgba(7, 22, 48, 0.08), 0 4px 12px -2px rgba(7, 22, 48, 0.04);
  --shadow-hover: 0 22px 48px -6px rgba(7, 22, 48, 0.16), 0 8px 24px -4px rgba(201, 162, 39, 0.12);
  --shadow-glass: 0 16px 40px rgba(3, 10, 23, 0.45);
  --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.28);
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream-100);
  color: var(--ink-800);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-850);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== LIVE NOTICE TICKER ===== */
.notice-ticker {
  background: linear-gradient(90deg, var(--navy-950), #10213d, var(--navy-950));
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
  position: relative;
  z-index: 1001;
}
.ticker-badge-wrap {
  background: var(--navy-950);
  padding: 0 16px 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 20;
  box-shadow: 10px 0 16px rgba(3, 10, 23, 0.95);
  flex-shrink: 0;
  position: relative;
}
.ticker-badge {
  background: var(--ruby);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ticker-badge::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.ticker-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 20px;
}
.ticker-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeNotice 35s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes marqueeNotice {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy-950);
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.topbar-items { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-items a { color: #d0daf0; }
.topbar-items a:hover { color: var(--gold-300); }
.topbar-badge {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* ===== MAIN HEADER & NAV ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 22, 48, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 10px 36px rgba(3, 10, 23, 0.35);
}
.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.brand:hover .brand-mark { transform: scale(1.05) rotate(2deg); }
.brand-text h1 {
  color: #fff;
  font-size: 1.55rem;
  letter-spacing: 0.5px;
  font-weight: 800;
  line-height: 1;
}
.brand-text span {
  color: var(--gold-400);
  font-size: 0.68rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

nav.mainnav { display: flex; gap: 4px; align-items: center; }
nav.mainnav > .navitem { position: relative; }
nav.mainnav a.top-link, nav.mainnav button.top-link {
  background: none;
  border: none;
  cursor: pointer;
  color: #e5eaf5;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.1px;
  transition: var(--transition-smooth);
}
nav.mainnav a.top-link:hover, nav.mainnav button.top-link:hover, nav.mainnav .navitem.active > .top-link {
  color: var(--gold-300);
  background: rgba(201, 162, 39, 0.14);
}
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--cream-50);
  min-width: 290px;
  box-shadow: 0 20px 50px rgba(3, 10, 23, 0.35);
  border-top: 3px solid var(--gold-500);
  border-radius: 0 0 10px 10px;
  display: none;
  padding: 8px 0;
  z-index: 200;
  animation: fadeInDown 0.25s ease forwards;
}
.navitem:hover .dropdown { display: block; }
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-850);
  border-bottom: 1px solid #f1ebd8;
  transition: var(--transition-smooth);
}
.dropdown a:hover {
  background: var(--cream-200);
  color: var(--gold-600);
  padding-left: 26px;
}
.dropdown a:last-child { border-bottom: none; }

.nav-btn-gold {
  background: var(--gold-gradient) !important;
  color: var(--navy-950) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.35);
  letter-spacing: 0.3px;
}
.nav-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.55);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

@media (max-width: 992px) {
  .hamburger { display: flex; }
  nav.mainnav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-950);
    margin-top: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
  }
  nav.mainnav.open { display: flex; }
  nav.mainnav > .navitem { width: 100%; }
  nav.mainnav a.top-link, nav.mainnav button.top-link {
    display: block; width: 100%; padding: 13px 22px;
    border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .dropdown {
    position: static; box-shadow: none; border-top: none;
    background: rgba(255, 255, 255, 0.03); min-width: 0; padding: 0;
  }
  .navitem.open .dropdown { display: block; }
  .dropdown a { color: #d6dfed; padding: 12px 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
  .nav-btn-gold { margin: 12px 22px; display: inline-block !important; }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 88vh;
  background: radial-gradient(ellipse at 75% 30%, #153360 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  padding: 100px 5% 110px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero3DCanvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: 0.9;
}
.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  color: var(--gold-400);
  letter-spacing: 2.5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 32px; height: 2.5px;
  background: var(--gold-500); border-radius: 2px;
}
.hero h2 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero h2 em {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.hero p {
  color: #d1dcee;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 680px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  letter-spacing: 0.2px;
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-950);
  border-color: var(--gold-500);
  box-shadow: 0 8px 26px rgba(201, 162, 39, 0.38);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-300) 60%, var(--gold-500) 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(201, 162, 39, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-400);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold-300);
  color: #fff;
  transform: translateY(-3px);
}

/* HIGH-CONTRAST CARD ACTION BUTTONS ON LIGHT BACKGROUNDS */
.highlight-card .btn-outline,
.highlight-card .btn,
.card .btn-outline,
.why-card .btn-outline,
.btn-card-action {
  color: #0b1a38 !important;
  background: rgba(201, 162, 39, 0.12) !important;
  border: 1.5px solid #c9a227 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
  transition: var(--transition-smooth);
}
.highlight-card .btn-outline:hover,
.highlight-card .btn:hover,
.card .btn-outline:hover,
.btn-card-action:hover {
  background: linear-gradient(135deg, #c9a227 0%, #e8cf7a 100%) !important;
  color: #040e24 !important;
  border-color: #997517 !important;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.stat-strip {
  display: flex;
  gap: 36px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  flex-wrap: wrap;
}

/* ===== WHY CHOOSE TMIPS 4-COLUMN LUXURY GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(7, 22, 48, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-400);
  box-shadow: 0 20px 45px rgba(7, 22, 48, 0.14);
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.05) 100%);
  border: 1.5px solid rgba(201, 162, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.15);
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-850));
  border-color: var(--gold-400);
  transform: scale(1.08) rotate(3deg);
}

.why-card:hover .why-icon svg {
  fill: var(--gold-300) !important;
}

.why-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 12px;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.7;
  margin: 0;
}
.stat-strip div {
  border-left: 3.5px solid var(--gold-500);
  padding-left: 18px;
}
.stat-strip strong {
  display: block;
  font-size: 2.1rem;
  color: var(--gold-400);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  line-height: 1;
}
.stat-strip span {
  font-size: 0.78rem;
  color: #b9c8de;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  font-weight: 600;
}

.hero-card {
  background: var(--navy-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(243, 215, 125, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-glass);
  position: relative;
}
.hero-card-glow {
  position: absolute; inset: -2px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(243, 215, 125, 0.4), transparent 60%, rgba(201, 162, 39, 0.2));
  z-index: -1; pointer-events: none;
}
.hero-card h3 {
  color: var(--gold-400);
  font-size: 1.55rem;
  margin-bottom: 14px;
}
.hero-card p { font-size: 0.96rem; color: #d1dcee; margin-bottom: 24px; line-height: 1.6; }
.quick-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-feat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.86rem;
  color: #e5eefc;
  transition: var(--transition-smooth);
}
.q-feat:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold-400);
}
.q-feat strong { display: block; color: var(--gold-300); font-size: 0.92rem; margin-bottom: 4px; }

@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 36px; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }
  .hero h2 { font-size: 2.6rem; }
  .hero-btns { justify-content: center; }
  .stat-strip { justify-content: center; text-align: left; }
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: radial-gradient(ellipse at 70% 30%, #153360 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  color: #fff;
  padding: 70px 5% 80px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--gold-500);
}
.page-banner h2 {
  color: #fff;
  font-size: 2.85rem;
  margin-bottom: 14px;
  font-weight: 800;
}
.page-banner p {
  color: #d1dcee;
  font-size: 1.12rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== GENERAL SECTIONS ===== */
section { padding: 90px 5%; position: relative; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 55px; }
.section-head .eyebrow { color: var(--gold-700); justify-content: center; }
.section-head h3 { font-size: 2.6rem; margin-bottom: 14px; font-weight: 800; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; line-height: 1.7; }

/* ===== 29-COURSE CATALOG & CONTROLS ===== */
.catalog-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.cat-tab-btn {
  background: var(--cream-50);
  border: 1.5px solid var(--cream-300);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--navy-850);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}
.cat-tab-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-700);
  transform: translateY(-2px);
}
.cat-tab-btn.active {
  background: var(--navy-850);
  color: var(--gold-300);
  border-color: var(--navy-850);
  box-shadow: 0 6px 20px rgba(11, 31, 61, 0.3);
}

.course-search-wrap {
  max-width: 520px;
  margin: 0 auto 45px;
  position: relative;
}
.course-search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid var(--cream-300);
  border-radius: 40px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.course-search-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.course-search-icon {
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-600);
  font-size: 1.25rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
}
.course-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-500);
}
.course-card .num {
  position: absolute; top: 22px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold-600);
  background: var(--gold-subtle);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.course-card h4 { font-size: 1.35rem; margin: 12px 0 10px; font-weight: 700; }
.course-card p { font-size: 0.92rem; color: var(--ink-500); margin-bottom: 22px; flex-grow: 1; line-height: 1.65; }
.course-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #eee5cd; padding-top: 16px;
}
.course-card .tag {
  font-size: 0.76rem;
  background: var(--gold-subtle);
  color: var(--gold-700);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.course-card .inq-link {
  font-size: 0.88rem;
  color: var(--navy-850);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.course-card .inq-link:hover { color: var(--gold-600); padding-left: 3px; }

/* ===== HIGHLIGHT & FACILITY CARDS ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
}
.highlight-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 38px 28px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gold-gradient); opacity: 0; transition: opacity 0.3s;
}
.highlight-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-hover);
}
.highlight-card:hover::before { opacity: 1; }
.card-icon-badge {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 6px 16px rgba(7, 22, 48, 0.2);
}
.card-icon-badge svg { width: 28px; height: 28px; fill: var(--gold-300); }
.highlight-card h4 { font-size: 1.35rem; margin-bottom: 12px; }
.highlight-card p { font-size: 0.94rem; color: var(--ink-500); line-height: 1.7; }

/* ===== PARTNER HOSPITALS TICKER ===== */
.hospital-ticker {
  background: var(--navy-900);
  padding: 50px 5%;
  border-top: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  color: #fff;
  text-align: center;
}
.hospital-ticker h4 {
  color: var(--gold-300);
  font-size: 1.45rem;
  margin-bottom: 28px;
}
.hospital-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.hospital-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-border);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  color: #e5eefc;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}
.hospital-pill:hover {
  background: rgba(201, 162, 39, 0.18);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

/* ===== ABOUT WRAPPER ===== */
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 55px;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}
.about-text h4 { font-size: 1.75rem; margin-bottom: 20px; }
.about-text p { color: var(--ink-700); font-size: 1.02rem; margin-bottom: 20px; line-height: 1.8; }
.badge-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.badge-row span {
  background: var(--gold-subtle);
  border: 1.5px solid var(--gold-500);
  color: var(--gold-700);
  font-size: 0.86rem; font-weight: 700;
  padding: 8px 20px; border-radius: var(--radius-full);
}
.about-panel {
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 44px 38px;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-glass);
}
.about-panel h4 { color: var(--gold-300); font-size: 1.45rem; margin-bottom: 16px; }
.about-panel p { color: #d0daf0; font-size: 0.98rem; line-height: 1.8; margin-bottom: 22px; }

@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }

/* ===== FRANCHISE SECTION ===== */
.franchise-section {
  background: radial-gradient(ellipse at 50% 20%, #132e56 0%, var(--navy-900) 70%, var(--navy-950) 100%);
  color: #fff;
}
.franchise-section .section-head h3 { color: #fff; }
.franchise-section .section-head p { color: #c5d2e5; }
.franchise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1360px;
  margin: 0 auto 45px;
}
.franchise-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
}
.franchise-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-300);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glass);
}
.franchise-card h4 { color: var(--gold-300); font-size: 1.4rem; margin-bottom: 14px; }
.franchise-card p { color: #cdd8eb; font-size: 0.96rem; line-height: 1.7; }

/* ===== STUDENT & ADMIN PORTALS ===== */
.studentlogin-section {
  background: radial-gradient(ellipse at 50% 20%, #11284d 0%, var(--navy-900) 65%, var(--navy-950) 100%);
  color: #fff;
}
.studentlogin-section .section-head h3 { color: #fff; }
.studentlogin-section .section-head p { color: #c5d2e5; }

.zone-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.zone-tab-btn {
  background: var(--cream-50);
  border: 2px solid var(--cream-300);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--navy-850);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.zone-tab-btn:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.zone-tab-btn.active {
  background: var(--navy-850);
  color: var(--gold-300);
  border-color: var(--navy-850);
  box-shadow: 0 6px 20px rgba(11, 31, 61, 0.35);
}
.zone-panel { display: none; }
.zone-panel.active { display: block; animation: fadeIn 0.3s ease; }

.gate {
  max-width: 500px;
  margin: 0 auto;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 44px 38px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.gate h4 { font-size: 1.5rem; margin-bottom: 10px; }
.gate input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  margin: 18px 0 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}
.gate input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18); }
.gate .err {
  color: var(--ruby);
  background: var(--ruby-bg);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 700;
  display: none;
  margin-bottom: 14px;
}

.tool-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .tool-wrap { grid-template-columns: 1fr; } }

.form-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}
.form-card h4 {
  font-size: 1.35rem;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy-850);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.subj-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.subj-row input { padding: 9px 12px; font-size: 0.88rem; }
.subj-row button {
  background: var(--ruby-bg);
  color: var(--ruby);
  border: 1px solid var(--ruby);
  border-radius: var(--radius-sm);
  width: 34px; height: 34px;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition-smooth);
}
.subj-row button:hover { background: var(--ruby); color: #fff; }
.add-subj-btn {
  background: none;
  border: 1.5px dashed var(--gold-500);
  color: var(--gold-700);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition-smooth);
  width: 100%;
}
.add-subj-btn:hover { background: var(--gold-subtle); }

.photo-drop {
  border: 2px dashed var(--cream-300);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  background: #fbf9f2;
  transition: var(--transition-smooth);
}
.photo-drop:hover { border-color: var(--gold-500); background: var(--cream-200); }
.photo-drop img { max-height: 90px; margin: 0 auto 8px; border-radius: 4px; }

.gen-btn {
  width: 100%;
  background: var(--navy-850);
  color: var(--gold-300);
  border: none;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}
.gen-btn:hover {
  background: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 31, 61, 0.35);
}

/* ===== PREVIEW & OFFICIAL DOCUMENTS ===== */
.preview-shell {
  background: #e9e3d0;
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08);
}
.doc {
  background: #fffdf9;
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--cream-300);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.doc::before {
  content: "TMIPS OFFICIAL VERIFIED";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: rgba(201, 162, 39, 0.05);
  pointer-events: none;
  letter-spacing: 12px;
  white-space: nowrap;
  z-index: 0;
}
.doc-header {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-850));
  color: #fff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 4px solid var(--gold-500);
  position: relative;
  z-index: 1;
}
.doc-header .mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--gold-300);
}
.doc-header h5 { color: #fff; font-size: 1.25rem; font-family: 'Playfair Display', serif; font-weight: 800; }
.doc-header small { color: var(--gold-300); font-size: 0.72rem; letter-spacing: 1.8px; text-transform: uppercase; }
.doc-banner {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  text-align: center;
  padding: 9px;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 1.2px;
  position: relative;
  z-index: 1;
}
.doc-body { padding: 30px; position: relative; z-index: 1; }
.doc-info { display: grid; grid-template-columns: 1fr 110px; gap: 24px; margin-bottom: 20px; }
.doc-info table { width: 100%; font-size: 0.92rem; border-collapse: collapse; color: #0b1a38; }
.doc-info table td { padding: 6px 0; vertical-align: top; color: #0b1a38; }
.doc-info table td:first-child { color: #475569; width: 38%; font-weight: 700; }
.doc-info table td:last-child { color: #040e22; font-weight: 800; }
.doc-photo-box {
  width: 100px; height: 120px;
  border: 2px solid var(--cream-300);
  background: #f4f0e2;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 0.72rem; color: #999;
  border-radius: 4px;
}
.doc-photo-box img { width: 100%; height: 100%; object-fit: cover; }

table.marks { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.9rem; color: #0b1a38; }
table.marks th {
  background: #f4efdc;
  color: var(--navy-850);
  padding: 11px 14px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  border-top: 2px solid var(--navy-850);
  border-bottom: 2px solid var(--navy-850);
  font-weight: 800;
}
table.marks td { padding: 10px 14px; border-bottom: 1px solid var(--cream-300); color: #0f172a; font-weight: 600; }
table.marks tr.total-row td {
  background: #fdfbf5;
  color: var(--navy-950);
  font-weight: 900;
  border-top: 2px solid var(--navy-850);
  border-bottom: 2px solid var(--navy-850);
}
.grand-total {
  text-align: right;
  margin-top: 18px;
  font-size: 0.96rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.grand-total strong { color: var(--navy-850); font-size: 1.25rem; }
.pass-pill {
  background: var(--emerald-bg); color: var(--emerald);
  font-weight: 800; padding: 4px 16px; border-radius: 20px; font-size: 0.84rem;
}
.fail-pill {
  background: var(--ruby-bg); color: var(--ruby);
  font-weight: 800; padding: 4px 16px; border-radius: 20px; font-size: 0.84rem;
}
.doc-disclaimer {
  font-size: 0.74rem; color: var(--ink-500);
  margin-top: 24px; border-top: 1px solid #e0d8be;
  padding-top: 14px; text-align: center; line-height: 1.6;
}

/* ID Card Layout */
.idcard {
  width: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  background: #fff;
  border: 1px solid var(--cream-300);
}
.idcard-head {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-850));
  color: #fff; padding: 18px; text-align: center;
  border-bottom: 4px solid var(--gold-500);
}
.idcard-head h5 { color: #fff; font-size: 1.15rem; font-family: 'Playfair Display', serif; }
.idcard-head small { color: var(--gold-300); font-size: 0.65rem; letter-spacing: 1.2px; text-transform: uppercase; }
.idcard-body { padding: 20px; display: flex; gap: 16px; }
.idcard-photo {
  width: 90px; height: 110px;
  border: 2px solid var(--gold-500);
  flex-shrink: 0; background: #f4f0e2;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #999;
  border-radius: 6px; overflow: hidden;
}
.idcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.idcard-details p { font-size: 0.78rem; margin-bottom: 5px; color: #3a4560; }
.idcard-details b { color: var(--navy-850); display: block; font-size: 0.94rem; margin-bottom: 4px; }
.idcard-foot {
  background: var(--cream-200); padding: 11px 18px;
  font-size: 0.72rem; text-align: center; color: #556;
  border-top: 1px solid var(--cream-300); font-weight: 600;
}

/* Certificate Layout */
.certificate {
  background: #fffdf9;
  width: 100%; max-width: 800px;
  border: 14px solid var(--navy-850);
  padding: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.certificate-inner {
  border: 2.5px solid var(--gold-500);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  background: #fffefb;
}
.certificate-inner::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--gold-300); pointer-events: none;
}
.cert-mark {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 2px solid var(--gold-300);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
  overflow: hidden;
}
.cert-title { font-family: 'Playfair Display', serif; color: var(--gold-600); font-size: 2.1rem; margin: 24px 0 6px; font-weight: 800; }
.cert-sub { font-size: 0.96rem; color: var(--ink-500); margin-bottom: 18px; }
.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; color: var(--navy-850);
  margin: 14px 0; border-bottom: 2px solid var(--gold-500);
  display: inline-block; padding-bottom: 8px; font-weight: 800;
}
.cert-body { font-size: 1.05rem; color: #334; line-height: 2.1; max-width: 640px; margin: 0 auto 28px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 44px; font-size: 0.88rem; color: #556; }
.cert-foot .sig { border-top: 1px solid #99a; padding-top: 8px; min-width: 170px; text-align: center; }
.cert-foot .sig img { max-height: 58px; display: block; margin: 0 auto 6px; }

/* Fee Receipt Layout */
.receipt { background: #fffdf9; width: 100%; max-width: 560px; border: 1px solid var(--cream-300); box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18); }
.receipt-body { padding: 30px; }
.receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--cream-300); font-size: 0.94rem; }
.receipt-row span:first-child { color: var(--ink-500); font-weight: 600; }
.receipt-amount {
  background: var(--cream-200);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 18px; text-align: center; margin-top: 22px;
}
.receipt-amount .amt { font-family: 'Playfair Display', serif; font-size: 2.1rem; color: var(--navy-850); font-weight: 900; }
.receipt-amount .lbl { font-size: 0.8rem; text-transform: uppercase; color: var(--gold-700); letter-spacing: 1.4px; font-weight: 800; }

.instructions {
  margin-top: 20px; font-size: 0.82rem; color: #445;
  background: #f5efe0; padding: 14px 18px;
  border-radius: var(--radius-sm); border-left: 4px solid var(--gold-500);
  line-height: 1.65;
}
.print-btn {
  margin-top: 20px; width: 100%;
  background: var(--gold-gradient);
  color: var(--navy-950);
  border: none; padding: 15px;
  font-weight: 800; font-size: 0.98rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
  transition: var(--transition-smooth);
}
.print-btn:hover {
  background: linear-gradient(135deg, #fff, var(--gold-300));
  transform: translateY(-2px);
}

/* ===== CONTACT SECTION ===== */
.contact-box {
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  padding: 44px;
  box-shadow: var(--shadow-subtle);
}
.contact-pill {
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}
.contact-pill span { display: block; font-size: 0.78rem; color: var(--gold-700); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.contact-pill strong { display: block; font-size: 1rem; color: var(--navy-850); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-950);
  color: #c3cde0;
  padding: 75px 5% 30px;
  border-top: 3px solid var(--gold-500);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 42px;
  max-width: 1360px;
  margin: 0 auto 50px;
}
.foot-grid h5 { color: var(--gold-300); font-size: 1.18rem; margin-bottom: 20px; font-weight: 700; }
.foot-grid p, .foot-grid a { font-size: 0.94rem; color: #aab4cb; display: block; margin-bottom: 12px; }
.foot-grid a:hover { color: var(--gold-300); padding-left: 5px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px; text-align: center;
  font-size: 0.86rem; color: #8894ac;
}

/* Floating WhatsApp CTA */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  background: #25D366;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 2000; cursor: pointer;
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 36px; height: 36px; fill: #fff; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== TMIPS CLASSIC & MODERN PRELOADER ===== */
.tmips-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 45%, #0e2752 0%, #06152e 55%, #020712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s;
  overflow: hidden;
  user-select: none;
}

.tmips-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.98);
  pointer-events: none;
}

.preloader-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.02) 60%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
  animation: preloaderPulseGlow 3s ease-in-out infinite alternate;
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  padding: 20px;
}

/* Emblem & Orbitals */
.preloader-crest-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-orbital-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.crest-orbital-ring.ring-outer {
  inset: -14px;
  border: 1.5px dashed rgba(201, 162, 39, 0.45);
  animation: preloaderSpin 14s linear infinite;
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.crest-orbital-ring.ring-inner {
  inset: -6px;
  border: 1px solid rgba(243, 215, 125, 0.35);
  border-top-color: var(--gold-400);
  border-bottom-color: var(--gold-400);
  animation: preloaderSpinReverse 8s linear infinite;
}

.preloader-crest-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  border: 2.5px solid var(--gold-400);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(201, 162, 39, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderCrestFloat 3s ease-in-out infinite;
}

.preloader-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.crest-sparkle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #ffe599, 0 0 20px #e8cf7a;
}

.crest-sparkle-dot.dot-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: preloaderDotOrbital 4s linear infinite;
}

/* Typography */
.preloader-text-block {
  margin-bottom: 24px;
}

.preloader-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #fae8a4 50%, #c9a227 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 4px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.preloader-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #94a3b8;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.preloader-crest-est {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 1.8px;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  padding: 2px 14px;
}

/* Progress bar */
.preloader-progress-shell {
  width: 260px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #997517, #e8cf7a, #ffffff);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(232, 207, 122, 0.8);
  transition: width 0.15s ease-out;
}

.preloader-status {
  display: flex;
  justify-content: space-between;
  width: 260px;
  font-size: 0.72rem;
  color: #8899b5;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.preloader-pct {
  color: var(--gold-300);
  font-weight: 800;
}

/* Preloader Keyframes */
@keyframes preloaderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes preloaderSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes preloaderCrestFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}

@keyframes preloaderPulseGlow {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 0.8; transform: scale(1.15); }
}

/* Print Media Layout */
@media print {
  header, footer, .notice-ticker, .topbar, .zone-tabs, .wa-float, .hero, .page-banner, section:not(.print-area), .form-card, .gate, #hero3DCanvas, .tmips-preloader {
    display: none !important;
  }
  body { background: #fff !important; margin: 0; padding: 0; }
  .print-area { display: block !important; width: 100% !important; margin: 0 auto; box-shadow: none !important; border: none !important; }
  .preview-shell { background: #fff !important; padding: 0 !important; box-shadow: none !important; }
  .print-btn { display: none !important; }
}
