/* ═══════════════════════════════════════════════════════════════
   Scholar Naija — hospitality-management.css
   Modern, Dynamic, and SEO-Optimized Layout Engine
   Fonts: Space Grotesk (Headings), Inter (Body), JetBrains Mono (Data)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-body:       #F8FAFC;
  --bg-card:       #FFFFFF;
  --bg-dark:       #0F172A;
  
  --text-main:     #1E293B;
  --text-muted:    #475569;
  --text-light:    #94A3B8;
  --text-inverse:  #F8FAFC;

  --accent-pri:    #D97706; /* High-end Amber for Hospitality Branding */
  --accent-sec:    #2563EB; 
  --accent-cyan:   #06B6D4;
  --accent-green:  #10B981;
  --accent-purple: #8B5CF6;
  --accent-teal:   #14B8A6;
  
  --border-light:  #E2E8F0;
  --border-dark:   #334155;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-glow:   0 0 20px rgba(217, 119, 6, 0.4);

  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --max-w:         1280px;
  --nav-height:    72px;
  --rad-sm:        6px;
  --rad-md:        12px;
  --rad-lg:        24px;
  --rad-pill:      9999px;
  
  --trans-fast:    0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all var(--trans-fast); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* PROGRESS BAR */
.rp-bar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--accent-pri), var(--accent-cyan));
  z-index: 9999; transition: width 0.1s linear;
}

/* HEADER ENGINE */
.pg-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: transparent; z-index: 1000; border-bottom: 1px solid transparent;
  transition: background var(--trans-fast), border var(--trans-fast);
}
.pg-header--solid {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.pg-header__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.pg-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-inverse);
}
.pg-header--solid .pg-logo { color: var(--text-main); }
.pg-logo__text b { color: var(--accent-pri); font-weight: 700; }

.pg-nav { display: flex; gap: 24px; }
.pg-nav__link { font-size: 0.875rem; font-weight: 500; color: rgba(248,250,252,0.8); }
.pg-header--solid .pg-nav__link { color: var(--text-muted); }
.pg-nav__link:hover { color: var(--accent-pri); }

.pg-back-btn {
  font-size: 0.875rem; font-weight: 600; padding: 8px 16px; border-radius: var(--rad-pill);
  background: rgba(255,255,255,0.1); color: var(--text-inverse); border: 1px solid rgba(255,255,255,0.2);
}
.pg-header--solid .pg-back-btn { background: var(--bg-body); color: var(--text-main); border-color: var(--border-light); }

/* BURGER GRAPHICS */
.pg-burger { display: none; width: 24px; height: 20px; position: relative; z-index: 1001; }
.pg-burger span { display: block; width: 100%; height: 2px; background: var(--text-inverse); position: absolute; left: 0; }
.pg-header--solid .pg-burger span { background: var(--text-main); }

/* MOBILE DRAWER SCREEN */
.pg-mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 320px;
  background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1000;
  padding: 100px 24px 40px; display: flex; flex-direction: column; gap: 16px;
  transform: translateX(100%); transition: transform var(--trans-smooth);
}
.pg-mobile-nav--open { transform: translateX(0); }
.pg-mn-link { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-main); padding: 12px 0; border-bottom: 1px solid var(--border-light); }

/* DYNAMIC HERO LAYOUT */
.pg-hero {
  position: relative; padding: 160px clamp(16px, 5vw, 40px) 100px;
  background: var(--bg-dark); color: var(--text-inverse); overflow: hidden;
  display: flex; justify-content: center;
}
.pg-hero__canvas { position: absolute; inset: 0; z-index: 0; }
.pg-hero__blueprint {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pg-hero__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.12; }
.pg-hero__glow--1 { top: -200px; right: -100px; background: var(--accent-pri); }
.pg-hero__glow--2 { bottom: -200px; left: -100px; background: var(--accent-cyan); }

.pg-hero__ticker {
  position: absolute; bottom: 0; left: 0; width: 200%; display: flex;
  font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; color: rgba(255,255,255,0.02);
  white-space: nowrap; animation: ticker 50s linear infinite; pointer-events: none;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.pg-hero__body { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.pg-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 6px 16px; border-radius: var(--rad-pill);
}
.pg-eyebrow__dot { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 10px var(--accent-green); }
.pg-eyebrow__text { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--text-light); }

.pg-hero__title { font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.15; font-weight: 700; margin-bottom: 24px; }
.pg-hero__title--outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.4); }
.pg-hero__title--accent { color: var(--accent-pri); }
.pg-hero__sub { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-light); max-width: 720px; margin: 0 auto 40px; }

.pg-hero__stats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-bottom: 48px; }
.pg-stat { display: flex; flex-direction: column; gap: 4px; }
.pg-stat__n { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: #fff; }
.pg-stat__l { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; }
.pg-stat__div { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }

.pg-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }
.pg-cta { font-family: var(--font-display); font-size: 1rem; font-weight: 600; padding: 14px 28px; border-radius: var(--rad-pill); }
.pg-cta--primary { background: var(--accent-pri); color: #fff; box-shadow: var(--shadow-glow); }
.pg-cta--ghost { border: 1px solid rgba(255,255,255,0.2); color: #fff; }

/* TABLE OF CONTENTS CHIPS */
.pg-hero__toc { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); padding: 24px; border-radius: var(--rad-lg); text-align: left; }
.pg-toc__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); margin-bottom: 16px; }
.pg-toc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-toc__chip { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); padding: 8px 16px; border-radius: var(--rad-pill); }
.pg-toc__chip:hover { background: var(--accent-pri); color: white; }

/* ADVERTISING CONTAINER SLOTS */
.pg-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #EDF2F7; border: 1px dashed var(--text-light); margin: 32px auto; padding: 16px; border-radius: var(--rad-md); position: relative; }
.pg-ad__label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; letter-spacing: 0.05em; }
.pg-ad--leader { max-width: var(--max-w); width: 100%; min-height: 120px; }
.pg-ad--inline { width: 100%; min-height: 120px; }
.pg-ad--sidebar { width: 100%; min-height: 280px; }

/* VIEWPORT CONTAINER GRID */
.pg-wrap { padding: 0 clamp(16px, 5vw, 40px); }
.pg-layout { max-width: var(--max-w); margin: -40px auto 0; position: relative; z-index: 10; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.pg-main { background: var(--bg-card); border-radius: var(--rad-lg); padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow-md); }
.pg-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }

/* MAIN ARTICLE SECTIONS */
.pg-section { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--border-light); }
.pg-section__tag-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.pg-tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; padding: 4px 12px; border-radius: var(--rad-pill); }
.pg-tag--teal { background: #E6FFFA; color: #0D9488; }
.pg-tag--purple { background: #F3E8FF; color: #7E22CE; }
.pg-tag--amber { background: #FEF3C7; color: #D97706; }
.pg-tag--cyan { background: #E6FFFA; color: #0891B2; }
.pg-tag--green { background: #D1FAE5; color: #059669; }

.pg-section__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--text-main); margin-bottom: 16px; letter-spacing: -0.01em; }
.pg-section__lead { font-size: 1.2rem; color: var(--text-muted); font-weight: 300; margin-bottom: 32px; }

.pg-content h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-main); margin: 32px 0 16px; }
.pg-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.75; }
.pg-blockquote { border-left: 4px solid var(--accent-pri); padding: 20px 24px; background: var(--bg-body); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--text-main); margin: 32px 0; }

/* GRID ELEMENT TILES */
.pg-course-grid, .pg-admission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 32px 0; }
.pg-course-card, .pg-admission-card { background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px; position: relative; transition: all var(--trans-fast); }
.pg-course-card:hover, .pg-admission-card:hover { transform: translateY(-4px); border-color: var(--accent-pri); box-shadow: var(--shadow-sm); }
.pg-course-card--featured { border: 2px solid var(--accent-pri); }

.pg-course-card__dept-code { position: absolute; top: -5px; right: -5px; font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: rgba(15,23,42,0.03); pointer-events: none; }
.pg-course-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; padding: 4px 8px; border-radius: var(--rad-sm); margin-bottom: 12px; background: #CBD5E1; color: var(--text-main); }
.pg-course-badge--hot { background: #FEF3C7; color: #D97706; }

.pg-course-card h4, .pg-admission-card h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-main); margin-bottom: 12px; }
.pg-course-card__desc, .pg-admission-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }
.pg-course-card__footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border-light); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-light); }

/* INSTITUTIONS DISPLAY TILES */
.pg-poly-grid { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.pg-poly-card { display: flex; gap: 20px; background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--rad-md); padding: 24px; }
.pg-poly-card--top { border-left: 4px solid var(--accent-pri); }
.pg-poly-rank { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--text-light); line-height: 1; }
.pg-poly-body h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.pg-poly-location { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); display: block; margin-bottom: 12px; }
.pg-poly-body p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; }
.pg-poly-tags { display: flex; gap: 8px; }
.pg-poly-tags span { font-size: 0.75rem; background: #E2E8F0; padding: 4px 10px; border-radius: var(--rad-pill); font-weight: 500; }

/* INLINE AFFILIATE BOX CORES */
.pg-affiliate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; background: #FFFBEB; border: 1px solid #FEF3C7; padding: 20px; border-radius: var(--rad-md); margin: 32px 0; }
.pg-affiliate__badge { font-family: var(--font-mono); font-size: 0.7rem; background: var(--accent-pri); color: white; padding: 4px 8px; border-radius: var(--rad-sm); font-weight: 700; }
.pg-affiliate__body { font-size: 0.95rem; color: var(--text-main); }
.pg-affiliate__cta { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; background: var(--bg-dark); color: white; padding: 10px 18px; border-radius: var(--rad-pill); }

/* SIDEBAR STRUCTURAL BLOCKS */
.pg-sidebar-toc { background: var(--bg-card); border: 1px solid var(--border-light); padding: 24px; border-radius: var(--rad-md); box-shadow: var(--shadow-sm); }
.pg-stoc__title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light); margin-bottom: 16px; letter-spacing: 0.05em; font-weight: 700; }
.pg-stoc__link { display: block; font-size: 0.92rem; font-weight: 500; color: var(--text-muted); padding: 8px 0; border-left: 2px solid transparent; padding-left: 12px; }
.pg-stoc__link--active { color: var(--accent-pri); border-left-color: var(--accent-pri); font-weight: 600; background: var(--bg-body); }

.pg-sidebar-aff { background: #EEF2F6; border: 1px solid var(--border-light); padding: 24px; border-radius: var(--rad-md); }
.pg-saff__tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: var(--accent-sec); text-transform: uppercase; margin-bottom: 8px; }
.pg-saff__title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.pg-saff__desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.pg-saff__btn { display: block; text-align: center; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; background: var(--accent-sec); color: white; padding: 12px; border-radius: var(--rad-md); }

/* PORTAL NEWSLETTER CARD */
.pg-newsletter { background: var(--bg-dark); color: white; border-radius: var(--rad-lg); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 40px 0; }
.pg-nl__left h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.pg-nl__left p { color: var(--text-light); font-size: 0.95rem; }
.pg-nl__emoji { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.pg-nl__form { display: flex; gap: 8px; background: rgba(255,255,255,0.05); padding: 6px; border-radius: var(--rad-pill); border: 1px solid rgba(255,255,255,0.1); }
.pg-nl__input { flex: 1; background: transparent; border: none; padding: 0 16px; color: white; font-family: inherit; font-size: 0.95rem; }
.pg-nl__input:focus { outline: none; }
.pg-nl__btn { background: var(--accent-pri); color: white; font-family: var(--font-display); font-weight: 600; padding: 12px 24px; border-radius: var(--rad-pill); font-size: 0.92rem; }

/* RECOVERY & FOOTER STYLES */
.pg-footer { background: #0F172A; color: var(--text-light); padding: 60px 0 40px; margin-top: 80px; }
.pg-footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); display: flex; flex-direction: column; gap: 40px; align-items: center; text-align: center; }
.pg-footer__brand p { font-size: 0.95rem; margin-top: 8px; }
.pg-footer__copy { font-size: 0.85rem; }

.pg-btt { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--bg-dark); color: white; border-radius: 50%; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; opacity: 0; pointer-events: none; transition: opacity var(--trans-fast); z-index: 99; }
.pg-btt--show { opacity: 1; pointer-events: auto; }

/* MEDIA ADAPTATION QUERY STACKS */
@media (max-width: 1024px) {
  .pg-layout { grid-template-columns: 1fr; gap: 32px; }
  .pg-sidebar { display: none; }
  .pg-nav { display: none; }
  .pg-burger { display: block; }
  .pg-newsletter { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .pg-hero { padding-top: 120px; padding-bottom: 60px; }
  .pg-hero__title { font-size: 2.5rem; }
  .pg-main { padding: 24px 16px; }
  .pg-affiliate { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pg-poly-card { flex-direction: column; gap: 12px; }
  .pg-nl__form { border-radius: var(--rad-md); flex-direction: column; background: transparent; border: none; padding: 0; }
  .pg-nl__input { background: rgba(255,255,255,0.05); height: 48px; border-radius: var(--rad-md); border: 1px solid rgba(255,255,255,0.1); }
  .pg-nl__btn { height: 48px; border-radius: var(--rad-md); }
}