/* ============================================
   PROFESSIONAL UNIVERSITY WEBSITE STYLES
   Harvard-Inspired Design System
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6b6b6b;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #e5e7eb;
  --accent-gold: #C9A961;
  --font-serif: 'Crimson Text', 'Georgia', serif;
  --font-sans: 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.landing-page {
  font-family: var(--font-sans);
  background: var(--background-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  animation: none;
}

body.landing-page::before {
  display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-shield {
  font-size: 32px;
  filter: grayscale(30%);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-medium);
  font-weight: 400;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(165, 28, 48, 0.08);
}

.nav-link-btn {
  background: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.nav-link-btn:hover {
  background: var(--crimson-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 28, 48, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  margin-top: 70px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0L100 100M100 0L0 100" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-hero-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 16px rgba(165, 28, 48, 0.4);
}

.btn-hero-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(165, 28, 48, 0.5);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-hero-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(180deg, #ffffff 0%, #faf7f5 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item:hover .stat-number {
  color: var(--crimson-hover);
  transform: scale(1.1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.stat-label {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Styles */
.about-section,
.academics-section,
.news-section,
.research-section {
  padding: 100px 0;
}

.about-section {
  background: linear-gradient(135deg, #faf7f5 0%, #ffffff 50%, #faf7f5 100%);
}

.academics-section {
  background: var(--background-white);
}

.news-section {
  background: linear-gradient(135deg, #faf7f5 0%, #ffffff 50%, #faf7f5 100%);
}

.research-section {
  background: var(--background-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--crimson-light));
  margin: 0 auto 20px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(165, 28, 48, 0.3);
}

.section-description {
  font-size: 18px;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 400;
}

.about-text p {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(165, 28, 48, 0.15);
  border-left-color: var(--crimson-light);
}

.feature-icon {
  font-size: 24px;
}

.feature-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.about-image,
.image-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 12px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.placeholder-icon {
  font-size: 80px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.placeholder-text {
  font-size: 18px;
  color: var(--text-medium);
  font-weight: 600;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.program-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(165, 28, 48, 0.2);
  border-color: var(--primary-color);
}

.program-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.program-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.program-desc {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.program-list {
  list-style: none;
  padding: 0;
}

.program-list li {
  padding: 8px 0;
  color: var(--text-medium);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.program-list li:last-child {
  border-bottom: none;
}

.program-list li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* News & Blog Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(165, 28, 48, 0.18);
}

.news-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.news-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-card.featured .news-image {
  height: 100%;
}

.news-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  margin: 0;
  border-radius: 0;
}

.news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.news-content {
  padding: 30px;
}

.news-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
}

.news-date {
  color: var(--text-medium);
}

.news-category {
  color: var(--primary-color);
  font-weight: 600;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.news-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.news-link:hover {
  gap: 10px;
}

/* Research Section */
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.research-card {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.research-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(165, 28, 48, 0.15);
  border-color: var(--primary-color);
}

.research-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.research-card p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* Blog Section */
.blog-section {
  background: var(--background-white);
  padding: 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Stagger animation delays */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Animated gradient sweep on hover */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(165, 28, 48, 0.03), transparent);
  transition: left 0.6s ease;
}

.blog-card:hover::before {
  left: 100%;
}

/* Ripple effect from center */
.blog-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(165, 28, 48, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.blog-card:hover::after {
  width: 400%;
  height: 400%;
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(165, 28, 48, 0.15);
  border-color: var(--primary-color);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.blog-category {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect */
.blog-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.blog-card:hover .blog-category::before {
  left: 100%;
}

.blog-card:hover .blog-category {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 4px 15px rgba(165, 28, 48, 0.4);
}

.blog-date {
  color: var(--text-medium);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-card:hover .blog-date {
  color: var(--primary-color);
  transform: translateX(5px);
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.4;
  min-height: 66px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-card:hover .blog-title {
  color: var(--primary-color);
  transform: translateX(5px);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-card:hover .blog-author {
  border-bottom-color: var(--primary-color);
}

.author-icon {
  font-size: 18px;
  opacity: 0.7;
  transition: all 0.4s ease;
}

.blog-card:hover .author-icon {
  transform: scale(1.2) rotate(360deg);
  opacity: 1;
}

.author-name {
  color: var(--text-medium);
  font-size: 13px;
  font-style: italic;
  transition: all 0.3s ease;
}

.blog-card:hover .author-name {
  color: var(--text-dark);
}

.blog-excerpt {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-card:hover .blog-excerpt {
  color: var(--text-dark);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.blog-tag {
  background: var(--background-light);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(165, 28, 48, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(165, 28, 48, 0.3);
}

.blog-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  background: white;
  overflow: hidden;
}

/* Sliding background animation */
.blog-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.blog-read-more:hover::before {
  left: 0;
}

.blog-read-more:hover {
  gap: 15px;
  color: white;
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(165, 28, 48, 0.4);
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(165, 28, 48, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(165, 28, 48, 0);
  }
}

.blog-card:hover .blog-read-more {
  animation: pulse 2s infinite;
}

/* Fade in up animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating animation for section title */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.blog-section .section-title {
  animation: float 3s ease-in-out infinite;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1616 50%, #1a1a1a 100%);
  color: #ffffff;
  padding: 60px 0 30px;
  border-top: 3px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-text {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--crimson-light);
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
  font-size: 13px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(165, 28, 48, 0.4);
  z-index: 1;
  border: 2px solid rgba(165, 28, 48, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-medium);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--background-light);
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-content {
  padding: 50px 45px 40px;
}

.modal-header {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 30px;
}

/* Role Selection in Modal */
.form-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 25px;
  font-size: 15px;
}

.role-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.role-card {
  background: var(--background-light);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.role-card:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.role-icon {
  font-size: 36px;
  min-width: 50px;
  text-align: center;
}

.role-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  flex: 1;
}

.role-desc {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 400;
  text-align: left;
  margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stats-grid,
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .programs-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .stats-grid,
  .programs-grid,
  .news-grid,
  .blog-grid,
  .research-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .news-card.featured {
    grid-template-columns: 1fr;
  }
  
  .role-grid {
    display: flex;
    flex-direction: column;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .blog-title {
    min-height: auto;
  }
}

/* ============================================
   ORIGINAL MODAL FORM STYLES (Updated)
   ============================================ */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 1; }
}



.container {
  max-width: 500px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 45px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  position: relative;
  z-index: 1;
}

.container::before {
  display: none;
}

.container:hover::before {
  opacity: 0;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 0% 50%; }
}

@keyframes floatContainer {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(0px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

h1 {
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3s ease infinite;
  margin-bottom: 30px;
  font-size: 2.2em;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.5px;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #f093fb, #4facfe);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 3px;
}

h1:hover::after {
  width: 80px;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes textFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(0px); }
}

h2 {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  font-size: 1.8em;
  letter-spacing: -0.5px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section.hidden {
  display: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea {
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
  color: #334155;
  font-weight: 500;
  width: 100%;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

select {
  padding: 12px 16px;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(135deg, #667eea, #764ba2);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: right;
}

select:hover {
  border-color: #667eea;
  background-size: 3% 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 4px 12px rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
}

select:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

@keyframes inputGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

/* Branch Selection Styling */
.branch-selection {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.branch-selection:hover {
  border-color: rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.branch-selection label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
}

.branch-selection select {
  background: white;
  border: 2px solid #e0e7ff;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
}

.branch-selection select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Professional Login Page Styling */
.subtitle {
  text-align: center;
  color: #64748b;
  margin: -10px 0 25px 0;
  font-size: 15px;
  font-weight: 400;
}

.role-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.input-group {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.input-group input {
  padding: 14px 16px 14px 48px;
  width: 100%;
}

.branch-selection.professional {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.branch-selection.professional:hover {
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
  transform: translateY(-1px);
}

.branch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #334155;
}

.label-icon {
  font-size: 20px;
  filter: grayscale(20%);
}

.label-text {
  flex: 1;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.required-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.select-wrapper {
  position: relative;
}

.select-professional {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  background: white;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.select-professional:hover {
  border-color: #cbd5e1;
}

.select-professional:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #667eea;
  font-size: 12px;
  font-weight: bold;
}

.select-professional optgroup {
  font-weight: 700;
  color: #667eea;
  background: #f8fafc;
  padding: 8px 0;
}

.select-professional option {
  padding: 10px;
  font-weight: 500;
  color: #334155;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 10px;
}

.divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.form-footer {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin: 12px 0 0 0;
}

.link-primary {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.link-primary:hover {
  color: #764ba2;
  text-decoration: underline;
}

.link-secondary {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.link-secondary:hover {
  color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

button {
  padding: 13px 26px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button::before {
  display: none;
}

button::after {
  display: none;
}

button:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

button:hover::before {
  left: 0;
}

button:hover::after {
  width: 0;
  height: 0;
}

button:active {
  transform: translateY(0px);
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

button.secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

button.secondary:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
}

button.danger {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

button.danger:hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

button.success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

button.success:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

p {
  text-align: center;
  color: #64748b;
}

a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: #764ba2;
}

/* Dashboard Styles */
.dashboard {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37),
              0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  position: relative;
  z-index: 1;
}

.dashboard::before {
  display: none;
}

@keyframes dashboardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(0px); }
}

@keyframes dashboardShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 1; }
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 700;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.user-avatar::before {
  display: none;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1); }
}

@keyframes avatarRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(0deg); }
}

@keyframes avatarShine {
  0% { transform: translate(0, 0); }
  100% { transform: translate(0, 0); }
}

.navigation {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav-button {
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.8);
  color: #667eea;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.nav-button::before {
  display: none;
}

.nav-button:hover::before {
  width: 0;
  height: 0;
}

.nav-button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-button:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

@keyframes activeButtonPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: sectionSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sectionSlideIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Course Card Styles */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.course-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 16px;
  border: 2px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.course-card::after {
  display: none;
}

.course-card:hover::after {
  opacity: 0;
}

.course-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

.course-card:hover::before {
  transform: scaleX(1);
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(0px); }
}

.course-card h3 {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: 700;
}

.course-card:hover h3 {
  background: linear-gradient(135deg, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



.course-card p {
  text-align: left;
  color: #5a6562;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.course-card .course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.course-card .course-duration {
  color: #667eea;
  font-size: 13px;
  font-weight: 600;
}

.course-card .course-teacher {
  color: #64748b;
  font-size: 13px;
  font-style: italic;
}

.course-card .course-target {
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

@keyframes slideUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.close-btn {
  background: none;
  color: #667eea;
  font-size: 24px;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #764ba2;
  transform: rotate(90deg);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  color: #1e293b;
}

table th {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: #667eea;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

table tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge::before {
  display: none;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes badgeShine {
  0% { left: 0; }
  100% { left: 0; }
}

.badge.success {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  border: none;
}

.badge.warning {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  border: none;
}

.badge.danger {
  background: linear-gradient(135deg, #f5576c, #f093fb);
  color: white;
  border: none;
}

.badge.info {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
}

/* Assignment Styles */
.assignment-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.assignment-item::before {
  display: none;
}

.assignment-item:hover::before {
  left: 0;
}

.assignment-item:hover {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  border-left-color: #764ba2;
  transform: translateX(5px);
}

@keyframes assignmentPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

.assignment-item h4 {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.05em;
}

.assignment-item p {
  text-align: left;
  margin-bottom: 6px;
  font-size: 14px;
  color: #64748b;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  z-index: 2000;
  max-width: 360px;
  color: #1e293b;
}

@keyframes slideInRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes notificationSlide {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes notificationFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(0px); }
}

.notification.success {
  border-left: 4px solid #4facfe;
}

.notification.error {
  border-left: 4px solid #f5576c;
}

.notification.info {
  border-left: 4px solid #667eea;
}

/* Discussion Forum Styles */
.discussion-thread {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 2px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.discussion-thread:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.discussion-thread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.discussion-thread-author {
  font-weight: 600;
  color: #667eea;
}

.discussion-thread-time {
  color: #8a9492;
  font-size: 12px;
}

.discussion-thread-content {
  color: #64748b;
  line-height: 1.6;
  text-align: left;
}

/* Material Card Styles */
.material-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.1);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.material-card::before {
  display: none;
}

.material-card:hover::before {
  left: 0;
}

.material-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.material-info h4 {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  font-weight: 700;
}

.material-info p {
  color: #64748b;
  font-size: 13px;
  text-align: left;
  margin: 4px 0;
  line-height: 1.5;
}

.file-icon {
  font-size: 28px;
}

/* Grade Display */
.grade-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.grade-card h3 {
  margin-bottom: 8px;
  font-weight: 700;
}

.grade-card .grade-value {
  font-size: 56px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Role Selection Styles */
#role-selection {
  text-align: center;
}

#role-selection h2 {
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0); }
}

.empty-state h3 {
  color: #666;
  margin-bottom: 10px;
}

.empty-state p {
  color: #8fa3ad;
}

@keyframes scaleIn {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-top: 4px solid #667eea;
  border-right: 4px solid #764ba2;
  border-bottom: 4px solid #f093fb;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 0.8s linear infinite;
  margin: 30px auto;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #4ecdc4;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #00ffff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard {
    padding: 15px;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 15px;
  }

  .navigation {
    justify-content: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 12px;
  }

  table th,
  table td {
    padding: 8px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(102, 126, 234, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* Leaderboard Styles */
.leaderboard-container {
  animation: fadeIn 0.5s ease;
}

.leaderboard-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.leaderboard-card::before {
  display: none;
}

.leaderboard-card:hover::before {
  left: 0;
}

.leaderboard-card:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2) !important;
  transform: translateY(-5px) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes leaderboardGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}
