/*
University Professional Design System
Elegant, refined, and academic-focused interface
*/

@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* Design Variables - Elegant University Palette */
:root {
  /* Colors - Refined Academic Palette */
  --primary-navy: #1e3a5f;
  --secondary-navy: #2c5282;
  --accent-gold: #c9a961;
  --accent-teal: #5f8a8b;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --bg-cream: #faf8f5;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-subtle: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-medium: 0 4px 16px rgba(30, 58, 95, 0.12);
  --shadow-elevated: 0 12px 32px rgba(30, 58, 95, 0.16);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-navy);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
}

a:hover {
  color: var(--accent-gold);
}

/* Layout Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header - Professional University Style */
.university-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.university-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.02) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.02) 50%, transparent 52%);
  background-size: 40px 40px;
  opacity: 0.3;
}

/* Top Bar with Logo */
.header-top {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.header-logo-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.logo-image {
  max-width: 280px;
  height: auto;
  opacity: 0.95;
}

.header-title {
  flex: 1;
  text-align: center;
}

.header-title h1 {
  color: white;
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-title h1 .accent {
  color: var(--accent-gold);
  font-weight: 400;
}

.header-title p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin: 0.25rem 0 0 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.university-seal {
  max-width: 280px;
  height: auto;
  opacity: 0.9;
}

/* Hero Banner */
.hero-section {
  position: relative;
  z-index: 1;
  margin-top: var(--space-md);
}

.hero-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.8), transparent);
  padding: var(--space-lg);
}

/* Navigation */
.main-navigation {
  background: white;
  border-bottom: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: var(--space-md) var(--space-xl);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: var(--transition-base);
  border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu li.active a {
  color: var(--primary-navy);
  background: rgba(201, 169, 97, 0.08);
  border-bottom-color: var(--accent-gold);
}

/* Main Content Area */
.main-content {
  padding: var(--space-2xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

/* Content Cards */
.content-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--space-lg);
  border-top: 4px solid var(--primary-navy);
  transition: var(--transition-smooth);
}

.content-section:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.section-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-navy);
}

/* Links List */
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
  transition: var(--transition-base);
}

.links-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
  transition: var(--transition-base);
}

.links-list li:hover {
  padding-left: calc(var(--space-lg) + 0.5rem);
}

.links-list li:hover::before {
  left: 0.5rem;
  color: var(--primary-navy);
}

.links-list a {
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  padding: var(--space-xs) 0;
}

.links-list a:hover {
  color: var(--primary-navy);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--accent-teal);
}

.sidebar-card h3 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.quick-link-btn {
  display: block;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  transition: var(--transition-base);
  box-shadow: var(--shadow-subtle);
}

.quick-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, var(--secondary-navy), var(--primary-navy));
  color: white;
}

/* Password Rules */
.password-rules ol {
  list-style: none;
  counter-reset: rule-counter;
  padding: 0;
}

.password-rules li {
  counter-increment: rule-counter;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xl);
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.password-rules li::before {
  content: counter(rule-counter);
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Download Card */
.download-card {
  text-align: center;
  margin: var(--space-md) 0;
}

.download-card img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
}

.download-card img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-medium);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(95, 138, 139, 0.1));
  border-left: 4px solid var(--accent-gold);
  padding: var(--space-md);
  border-radius: 8px;
  margin-top: var(--space-lg);
}

.info-box p {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Search Bar */
.search-section {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--space-xl);
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-md);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.search-icon {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Footer */
.university-footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
  border-top: 4px solid var(--accent-gold);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
}

.footer-content strong {
  color: white;
  font-weight: 600;
}

/* Badge */
.badge-new {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #e63946, #f4845f);
  color: white;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: var(--space-sm);
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* Utilities */
.clr {
  clear: both;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .header-logo-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-menu a {
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-image-wrapper {
    height: 200px;
  }
  
  .content-section {
    padding: var(--space-lg);
  }
}

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

.content-section {
  animation: fadeIn 0.6s ease-out;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
