/* ============================================
   Northbridge University - Styles
   ============================================ */

/* CSS Variables - University Brand Colors */
:root {
  --nu-navy: #1a2d5a;
  --nu-navy-dark: #0f1a36;
  --nu-navy-light: #2a4380;
  --nu-gold: #c9a227;
  --nu-gold-light: #e6c550;
  --nu-gold-dark: #9a7a1a;
  --nu-white: #ffffff;
  --nu-gray-100: #f4f4f4;
  --nu-gray-200: #e8e8e8;
  --nu-gray-300: #d1d1d1;
  --nu-gray-400: #a8a8a8;
  --nu-gray-500: #6f6f6f;
  --nu-gray-600: #525252;
  --nu-text-primary: #161616;
  --nu-text-secondary: #525252;
  --nu-border: #e0e0e0;
  --nu-shadow: rgba(0, 0, 0, 0.1);
  --nu-header-height: 72px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  color: var(--nu-text-primary);
  background-color: var(--nu-white);
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   Page Layout
   ============================================ */

.nu-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--nu-white);
}

.nu-main {
  flex: 1;
  margin-top: var(--nu-header-height);
}

.nu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   University Header
   ============================================ */

.nu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nu-header-height);
  background-color: var(--nu-navy);
  color: var(--nu-white);
  z-index: 1000;
  box-shadow: 0 2px 8px var(--nu-shadow);
}

.nu-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nu-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--nu-white);
}

.nu-logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--nu-gold);
  color: var(--nu-navy);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.nu-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nu-logo-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nu-logo-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* Desktop Navigation */
.nu-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nu-nav-desktop {
    display: flex;
  }
}

.nu-nav-link {
  padding: 0.5rem 1rem;
  color: var(--nu-white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.nu-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nu-nav-link.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   Hero Section
   ============================================ */

.nu-hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, var(--nu-navy) 0%, var(--nu-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--nu-white);
  overflow: hidden;
}

.nu-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.nu-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.nu-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.nu-hero h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.nu-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.nu-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.nu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.nu-btn-primary {
  background-color: var(--nu-gold);
  color: var(--nu-navy);
  border-color: var(--nu-gold);
}

.nu-btn-primary:hover {
  background-color: var(--nu-gold-light);
  border-color: var(--nu-gold-light);
}

.nu-btn-secondary {
  background-color: transparent;
  color: var(--nu-white);
  border-color: var(--nu-white);
}

.nu-btn-secondary:hover {
  background-color: var(--nu-white);
  color: var(--nu-navy);
}

.nu-btn.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   Quick Links Section
   ============================================ */

.nu-quick-links-section {
  padding: 4rem 0;
  background-color: var(--nu-white);
}

.nu-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--nu-navy);
  margin-bottom: 2rem;
  text-align: center;
}

.nu-section-subtitle {
  font-size: 1.125rem;
  color: var(--nu-text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.nu-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.nu-quick-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--nu-gray-100);
  border-radius: 8px;
  text-decoration: none;
  color: var(--nu-text-primary);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nu-quick-link-card:hover {
  background-color: var(--nu-white);
  border-color: var(--nu-gold);
  box-shadow: 0 2px 8px var(--nu-shadow);
}

.nu-quick-link-card.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.nu-quick-link-card.disabled:hover {
  background-color: var(--nu-gray-100);
  border-color: transparent;
  box-shadow: none;
}

.nu-quick-link-icon {
  color: var(--nu-navy);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.nu-quick-link-label {
  font-weight: 500;
  flex: 1;
}

.nu-quick-link-arrow {
  color: var(--nu-gray-400);
  transition: transform 0.2s;
}

.nu-quick-link-card:hover .nu-quick-link-arrow {
  transform: translateX(4px);
  color: var(--nu-gold);
}

/* ============================================
   Support Section
   ============================================ */

.nu-support-section {
  padding: 4rem 0;
  background-color: var(--nu-gray-100);
}

.nu-support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.nu-support-card {
  background-color: var(--nu-white);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--nu-text-primary);
  box-shadow: 0 2px 8px var(--nu-shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.nu-support-card:hover {
  border-color: var(--nu-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--nu-shadow);
}

.nu-support-card-icon {
  width: 64px;
  height: 64px;
  background-color: var(--nu-navy);
  color: var(--nu-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.nu-support-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nu-navy);
  margin-bottom: 0.75rem;
}

.nu-support-card p {
  color: var(--nu-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.nu-support-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--nu-navy);
  font-weight: 600;
  transition: color 0.2s;
}

.nu-support-card:hover .nu-support-card-link {
  color: var(--nu-gold-dark);
}

/* ============================================
   News Section
   ============================================ */

.nu-news-section {
  padding: 4rem 0;
  background-color: var(--nu-white);
}

.nu-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.nu-news-card {
  padding: 1.5rem;
  background-color: var(--nu-gray-100);
  border-radius: 8px;
  border-left: 4px solid var(--nu-gold);
}

.nu-news-date {
  font-size: 0.8125rem;
  color: var(--nu-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nu-news-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nu-navy);
  margin: 0.5rem 0;
}

.nu-news-card p {
  color: var(--nu-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.nu-news-link {
  font-weight: 600;
  color: var(--nu-navy);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nu-news-link:hover {
  color: var(--nu-gold-dark);
}

.nu-news-link.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   Footer
   ============================================ */

.nu-footer {
  background-color: var(--nu-navy-dark);
  color: var(--nu-white);
}

.nu-footer-main {
  padding: 3rem 2rem;
}

.nu-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.nu-footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nu-gold);
  margin-bottom: 1rem;
}

.nu-footer-section li {
  margin-bottom: 0.5rem;
}

.nu-footer-section a {
  color: var(--nu-white);
  text-decoration: none;
  font-size: 0.9375rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nu-footer-section a:hover {
  opacity: 1;
}

.nu-footer-section a.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.nu-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nu-footer-logo .nu-logo-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.nu-footer-logo .nu-logo-name {
  font-size: 1rem;
}

.nu-footer-logo .nu-logo-subtitle {
  font-size: 0.6875rem;
}

.nu-footer-tagline {
  font-size: 0.9375rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.nu-footer-social {
  display: flex;
  gap: 0.75rem;
}

.nu-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.2s;
  opacity: 1;
}

.nu-footer-social a:hover {
  background-color: var(--nu-gold);
  color: var(--nu-navy);
}

.nu-footer-social a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.nu-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nu-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  opacity: 0.8;
}

.nu-contact-item i {
  flex-shrink: 0;
}

.nu-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nu-footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.6;
  margin: 0;
}

.nu-footer-links {
  display: flex;
  gap: 1.5rem;
}

.nu-footer-links a {
  font-size: 0.875rem;
  color: var(--nu-white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nu-footer-links a:hover {
  opacity: 1;
}

.nu-footer-links a.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nu-hero {
    height: 400px;
  }
  
  .nu-hero h1 {
    font-size: 2rem;
  }
  
  .nu-hero p {
    font-size: 1rem;
  }
  
  .nu-section-title {
    font-size: 1.5rem;
  }
  
  .nu-quick-links-section,
  .nu-support-section,
  .nu-news-section {
    padding: 3rem 0;
  }
  
  .nu-container {
    padding: 0 1rem;
  }
  
  .nu-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Split Layout (IT Help Desk, Student Services)
   ============================================ */

.nu-split-layout {
  display: flex;
  height: calc(100vh - var(--nu-header-height) - 180px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

.nu-split-left {
  width: 360px;
  flex-shrink: 0;
  overflow-y: auto;
}

.nu-split-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nu-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--nu-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
}

.nu-back-link:hover {
  color: var(--nu-gold-dark);
}

.nu-split-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nu-page-icon-small {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--nu-navy) 0%, var(--nu-navy-light) 100%);
  color: var(--nu-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.nu-split-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nu-navy);
  margin: 0;
}

.nu-split-header p {
  font-size: 0.875rem;
  color: var(--nu-text-secondary);
  margin: 0;
}

/* Features List */
.nu-features-list {
  margin-bottom: 2rem;
}

.nu-features-list h2,
.nu-contact-compact h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nu-text-secondary);
  margin: 0 0 1rem 0;
}

.nu-feature-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.nu-feature-item:hover {
  background-color: var(--nu-gray-100);
}

.nu-feature-icon {
  width: 36px;
  height: 36px;
  background-color: var(--nu-navy);
  color: var(--nu-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nu-feature-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nu-navy);
  margin: 0 0 0.25rem 0;
}

.nu-feature-content p {
  font-size: 0.8125rem;
  color: var(--nu-text-secondary);
  line-height: 1.4;
  margin: 0;
}

.nu-contact-compact {
  padding-top: 1.5rem;
  border-top: 1px solid var(--nu-border);
}

.nu-contact-compact p {
  font-size: 0.875rem;
  color: var(--nu-text-secondary);
  margin: 0 0 0.5rem 0;
}

/* Chat Placeholder */
.nu-chat-placeholder {
  flex: 1;
  min-height: 400px;
  background-color: var(--nu-gray-100);
  border: 2px dashed var(--nu-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nu-chat-placeholder-content {
  padding: 2rem;
}

.nu-chat-placeholder-content i {
  font-size: 3rem;
  color: var(--nu-navy);
  margin-bottom: 1rem;
  display: block;
}

.nu-chat-placeholder-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nu-navy);
  margin-bottom: 0.5rem;
}

.nu-chat-placeholder-content p {
  color: var(--nu-text-secondary);
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.nu-chat-coming-soon {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nu-gold-dark);
  background-color: rgba(201, 162, 39, 0.15);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Chat Embed (for when WXO is wired) */
.nu-chat-embed {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nu-gray-100);
}

/* Responsive - Split Layout */
@media (max-width: 900px) {
  .nu-split-layout {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .nu-split-left {
    width: 100%;
  }
  
  .nu-chat-placeholder {
    min-height: 400px;
  }
}

