/* ============================= */
/* MODERN DESIGN SYSTEM */
/* ============================= */
:root {
  --primary-blue: #003876;
  --primary-dark: #002a5a;
  --primary-light: #004a9e;
  --secondary-blue: #0056b3;
  --accent-gold: #ffcc00;
  --accent-orange: #ff8c00;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  margin: 0;
  padding: 0;
}

/* ============================= */
/* MODERN NAVIGATION */
/* ============================= */
.uni-navbar {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.search-toggle:hover {
  background-color: var(--gray-100);
  color: var(--primary-blue);
}

.user-dropdown {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: 1px solid transparent;
}

.user-menu-btn:hover {
  background-color: var(--gray-100);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  color: var(--gray-700);
  display: none;
}

.user-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.user-dropdown.active .user-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}

.user-dropdown-content a:last-child {
  border-bottom: none;
}

.user-dropdown-content a:hover {
  background-color: var(--gray-50);
  color: var(--primary-blue);
}

.user-dropdown-content i {
  width: 16px;
  text-align: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background-color: var(--gray-100);
  color: var(--primary-blue);
}

.search-bar {
  background-color: white;
  border-top: 1px solid var(--gray-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.search-bar.active {
  max-height: 80px;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

.search-container form {
  display: flex;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 56, 118, 0.1);
}

.search-submit {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-submit:hover {
  background-color: var(--primary-dark);
}

/* Mobile menu styles */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    text-align: left;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .user-name {
    display: block;
  }

  /* Add overlay when mobile menu is open */
  .nav-menu.active::before {
    content: "";
    position: fixed;
    top: 70px;
    left: 280px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo span {
    display: none;
  }

  .user-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    width: 100%;
    left: -100%;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu.active::before {
    left: 100%;
  }
}

/* ============================= */
/* BREADCRUMB */
/* ============================= */
.breadcrumb-container {
  background-color: white;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb i {
  font-size: 0.8rem;
}

/* ============================= */
/* MODERN HERO SECTION */
/* ============================= */
.fp-hero {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  color: white;
  overflow: hidden;
  background-color: var(--primary-blue);
}

.fp-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 56, 118, 0.85) 0%,
    rgba(0, 42, 90, 0.95) 100%
  );
  z-index: 1;
}

.fp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.fp-btn-primary,
.fp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
}

.fp-btn-primary {
  background: white;
  color: var(--primary-blue);
}

.fp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  background: var(--gray-100);
  color: var(--primary-dark);
}

.fp-btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.fp-btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Campus Stats */
.campus-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* ============================= */
/* SECTION HEADERS */
/* ============================= */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  margin: 1rem auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.view-all-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 1rem;
}

.view-all-link:hover {
  color: var(--primary-dark);
}

.view-all-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.view-all-link:hover::after {
  transform: translateX(5px);
}

/* ============================= */
/* MODERN QUICK LINKS CARDS */
/* ============================= */
.fp-quick-links {
  margin: 2rem auto;
  padding: 0 0rem;
  max-width: 1200px;
}

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

.fp-card {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
}

.fp-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.fp-card h3 {
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.4rem;
}

.fp-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.card-arrow {
  margin-top: 1.5rem;
  color: var(--primary-blue);
  font-size: 1.2rem;
  transition: var(--transition);
}

.fp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.fp-card:hover .card-arrow {
  transform: translateX(5px);
}

/* ============================= */
/* UPCOMING EVENTS */
/* ============================= */
.upcoming-events {
  margin: 4rem auto;
  padding: 0 1.5rem;
  max-width: 1200px;
}

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

.event-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  transition: var(--transition);
}

.event-card:hover {
}

.event-date {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 80px;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.event-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.event-content h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--gray-900);
}

.event-content p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.event-meta i {
  margin-right: 0.5rem;
  color: var(--primary-blue);
}

.event-card-clean:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================= */
/* MAIN CONTENT SPACING */
/* ============================= */
.moodle-main-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
}

/* ============================= */
/* PROFESSORS SECTION */
/* ============================= */
.professors-section {
  margin: 6rem 0 4rem;
  text-align: center;
  padding: 0 1.5rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003876, #0056b3);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* Specialty Filter Bar */
.specialty-filter-container {
  margin-bottom: 3rem;
  overflow-x: auto;
  padding: 0 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.filter-tabs::-webkit-scrollbar {
  height: 8px;
}

.filter-tabs::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-tab {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.filter-tab:hover {
  background: #e2e8f0;
  color: #1a202c;
}

.filter-tab.active {
  background: #003876;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 56, 118, 0.2);
}

.filter-tab.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #003876;
  border-right: 6px solid transparent;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Professors Grid */
.professors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Professor Card */
.prof-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f5;
  transition: all 0.3s ease;
  position: relative;
}

.prof-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Professor Image */
.prof-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.prof-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prof-card:hover .prof-image-container img {
  transform: scale(1.05);
}

.prof-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 56, 118, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prof-card:hover .prof-overlay {
  opacity: 1;
}

.view-profile-btn {
  background: white;
  color: #003876;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-profile-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

/* Professor Info */
.prof-info {
  padding: 1.5rem;
  text-align: center;
}

.prof-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.prof-department {
  color: #003876;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prof-teaches {
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

/* Professor Actions */
.prof-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.contact-btn,
.courses-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn {
  background: #f8f9fa;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.contact-btn:hover {
  background: #e2e8f0;
  color: #1a202c;
}

.courses-btn {
  background: #003876;
  color: white;
}

.courses-btn:hover {
  background: #002a5a;
  transform: translateY(-2px);
}

/* Show All Button */
.prof-btn-container {
  text-align: center;
  margin-top: 2rem;
}

.prof-btn-container button {
  background: linear-gradient(135deg, #003876, #0056b3);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 56, 118, 0.3);
}

.prof-btn-container button:hover {
  background: linear-gradient(135deg, #002a5a, #004a9e);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 56, 118, 0.4);
}

/* Modal */
.prof-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  padding: 2rem;
}

.prof-modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 16px;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f3f5;
}

.prof-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s ease;
}

.prof-close:hover {
  color: #1a202c;
}

.prof-modal-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 2rem;
  text-align: center;
}

/* Search */
.prof-search-container {
  margin-bottom: 2.5rem;
  position: relative;
}

.prof-search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.prof-search-input:focus {
  outline: none;
  border-color: #003876;
  box-shadow: 0 0 0 3px rgba(0, 56, 118, 0.1);
  background: white;
}

/* Modal Grid */
.prof-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .professors-section {
    padding: 0 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .filter-tabs {
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .professors-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .prof-info {
    padding: 1.25rem;
  }

  .prof-info h3 {
    font-size: 1.2rem;
  }

  .prof-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .prof-modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .prof-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .professors-section {
    padding: 0 0.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .filter-tabs {
    padding: 0.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .filter-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .professors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .prof-info {
    text-align: center;
    padding: 1rem;
  }

  .prof-info h3 {
    font-size: 1.1rem;
  }

  .prof-teaches {
    font-size: 0.9rem;
  }
}
/* ============================= */
/* TESTIMONIALS SECTION */
/* ============================= */
.testimonials-section {
  margin: 6rem auto;
  padding: 0 1.5rem;
  max-width: 1200px;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--gray-900);
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ============================= */
/* MODERN FOOTER */
/* ============================= */
.uni-footer {
  background-color: var(--gray-900);
  color: #fff;
  padding: 3rem 1.5rem 1.5rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  max-height: 60px;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color: white;
}

.footer-logo p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-socials a:hover {
  background-color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 2;
  min-width: 300px;
}

.footer-col {
  flex: 1;
  min-width: 150px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-blue);
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-col ul li a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info i {
  margin-right: 0.75rem;
  color: var(--primary-blue);
  margin-top: 0.25rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-blue);
}

/* ============================= */
/* BACK TO TOP BUTTON */
/* ============================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fp-card,
.prof-card,
.event-card,
.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fp-card.animated,
.prof-card.animated,
.event-card.animated,
.testimonial-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .campus-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .campus-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-item {
    flex: 1;
    min-width: 120px;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .events-carousel {
    grid-template-columns: 1fr;
  }

  .testimonials-carousel {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }

  .prof-modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem auto;
  }

  .prof-search-container {
    flex-direction: column;
  }

  .prof-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .fp-card {
    padding: 1.5rem;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    min-width: auto;
    padding: 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .event-date .day {
    font-size: 1.5rem;
  }

  .footer-logo img {
    max-height: 40px;
  }

  .footer-logo h3 {
    font-size: 1.5rem;
  }

  .footer-socials a {
    width: 35px;
    height: 35px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Hide Moodle elements that might interfere */
.py-3 {
  display: none !important;
}

/* Read More functionality for long announcements */
.forumpost .content {
  position: relative;
  overflow: hidden;
}

/* Limit content height and add fade effect */
.forumpost .content:not(.expanded) {
  max-height: 120px;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Remove mask when expanded */
.forumpost .content.expanded {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

/* Read More button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 56, 118, 0.3);
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 56, 118, 0.4);
}

.read-more-btn::after {
  content: "↓";
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.read-more-btn.expanded::after {
  content: "↑";
  transform: rotate(180deg);
}

/* Hide read more button when not needed */
.read-more-btn.hidden {
  display: none;
}

/* Fade effect for collapsed content */
.content-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #f8fafc);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.forumpost .content.expanded + .content-fade {
  opacity: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .content-fade {
    background: linear-gradient(transparent, #1e293b);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

.aabtn {
  display: none !important;
}

/* Remove Discuss this topic link */
.forumpost .link {
  display: none !important;
}

/* Remove Permalink link */
.forumpost .post-actions a[title*="Permanent link"] {
  display: none !important;
}

/* Remove focus border from forum post when clicked */
.forum-post-container.focus-target:focus,
.forumpost.focus-target:focus,
.forum-post-container.focus-target:focus-visible,
.forumpost.focus-target:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove focus from the entire post container */
.forum-post-container:focus-within,
.forumpost:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove focus from all nested elements */
.forum-post-container *:focus,
.forumpost *:focus {
  outline: none !important;
}

/* More specific targeting for the focus state */
.forum-post-container[tabindex="0"]:focus,
.forumpost[tabindex="0"]:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove all focus-related borders and outlines */
.focus-target:focus,
.focus-target:focus-visible,
.focus-target:focus-within {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove any border that might appear on click */
.forum-post-container:active,
.forumpost:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Alternative approach - remove all borders from the post container */
.forum-post-container,
.forumpost {
  border: none !important;
  outline: none !important;
}

/* Remove any border from the inner divs */
.forum-post-container .d-flex,
.forum-post-container .forumpost {
  border: none !important;
  outline: none !important;
}

/* Remove border from the specific container that has the focus class */
.forum-post-container.focus-target {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Remove any focus ring that might appear */
.forum-post-container:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Button Under Forum */
.add-discussion-under-forum {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}

/* Admin Button Styling */
.add-discussion-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.add-discussion-btn:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.add-discussion-btn i {
  font-size: 0.9rem;
}

/* Alternative Floating Style Under Forum */
.add-discussion-under-forum.floating {
  position: relative;
  margin-top: 2rem;
  text-align: right;
}

.add-discussion-under-forum.floating .add-discussion-btn {
  position: absolute;
  bottom: -1rem;
  right: 2rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.add-discussion-under-forum.floating .add-discussion-btn span {
  display: none;
}

/* Minimal Style */
.add-discussion-under-forum .add-discussion-btn.minimal {
  background: #ffffff;
  color: #dc2626;
  border: 2px solid #dc2626;
  box-shadow: none;
}

.add-discussion-under-forum .add-discussion-btn.minimal:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-2px);
}

/* Card Style */
.add-discussion-under-forum.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.add-discussion-under-forum.card .add-discussion-btn {
  width: 100%;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .add-discussion-under-forum {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .add-discussion-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .add-discussion-under-forum.floating .add-discussion-btn {
    width: 50px;
    height: 50px;
    bottom: -0.5rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .add-discussion-under-forum {
    margin-top: 1.5rem;
    padding: 1rem 0;
  }

  .add-discussion-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Hide main content and other elements when not logged in */
body.notloggedin #page-content,
body.notloggedin .moodle-main-content,
body.notloggedin main.container {
  display: none !important;
}

.footer-logo-images {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 1rem;
}

#moremenu-692704bd9798c-nav-tabs {
  display: contents;
}
