@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Theme variables and tokens */
:root {
  --primary-color: #23468A;
  --primary-hover: #1b3870;
  --primary-light: #eff6ff;
  --primary-dark: #122447;
  --accent-color: #D4AF37; /* Academic Gold */
  --accent-hover: #bda02b;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --text-muted: #9ca3af;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(35, 70, 138, 0.08), 0 4px 6px -2px rgba(35, 70, 138, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(35, 70, 138, 0.15), 0 10px 10px -5px rgba(35, 70, 138, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base element resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation and Header bar */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(35, 70, 138, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 50px;
}

.logo-img {
  max-height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero introductory banner */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #172d5c 100%);
  color: #ffffff;
  padding: 80px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-description {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out;
}

/* Core button components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* Floating stats panel */
.stats-banner {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(35, 70, 138, 0.05);
}

.stat-card {
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tab sheets for SPA layout */
.tab-section {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  padding: 60px 0;
}

.tab-section.active {
  display: block;
  animation: tabFadeIn 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

/* Common grid and alignment layouts */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
}

/* Homepage content layout */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.home-intro-content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.home-intro-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.home-intro-image {
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: inset 0 0 100px rgba(35, 70, 138, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed rgba(35, 70, 138, 0.2);
}

.illustration {
  width: 100%;
  max-width: 380px;
  opacity: 0.85;
}

/* Grid of Core Pillars on Home */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.pillar-card {
  background-color: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(35, 70, 138, 0.2);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 20px;
}

.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* Call to Action Row */
.cta-banner {
  background: linear-gradient(135deg, #172d5c 0%, var(--primary-color) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

/* Datasets page catalogue filtering */
.search-filter-bar {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  outline: none;
  transition: var(--transition);
  font-size: 15px;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(35, 70, 138, 0.1);
}

.filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background-color: var(--border-color);
  color: var(--text-dark);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  outline: none;
  font-size: 13px;
  cursor: pointer;
}

/* Datasets Grid */
.datasets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.dataset-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dataset-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(35, 70, 138, 0.15);
}

.dataset-card-header {
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid var(--bg-main);
}

.dataset-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.badge-open {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-restricted {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-controlled {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.badge-type {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.dataset-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.dataset-card-body {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dataset-card-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dataset-meta-specs {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-bottom: 4px;
}

.dataset-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dataset-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.dataset-card-footer {
  padding: 16px 24px 24px 24px;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.no-datasets {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  color: var(--text-light);
}

/* Dataset profile details page */
.back-btn-wrapper {
  margin-bottom: 30px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
}

.back-btn:hover {
  color: var(--primary-hover);
}

.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-main {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.detail-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
}

.detail-sec-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 30px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-sec-title:first-of-type {
  margin-top: 0;
}

.detail-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.metadata-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.metadata-table tr {
  border-bottom: 1px solid var(--border-color);
}

.metadata-table tr:last-child {
  border-bottom: none;
}

.metadata-table th, .metadata-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}

.metadata-table th {
  width: 35%;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--bg-main);
}

.metadata-table td {
  color: var(--text-light);
}

.file-list {
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.file-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  font-size: 14px;
}

.file-item:last-child {
  border-bottom: none;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.file-size {
  color: var(--text-muted);
}

.citation-box {
  background-color: var(--bg-main);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Sidebar Info Card */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.action-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.action-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.action-card-list {
  list-style: none;
  margin-bottom: 24px;
}

.action-card-list li {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.action-card-list svg {
  color: var(--success-color);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Data compliance and DUA form */
.form-layout {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  outline: none;
  background-color: var(--bg-main);
  transition: var(--transition);
  color: var(--text-dark);
}

.form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(35, 70, 138, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.checkbox-control {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-label {
  font-size: 13.5px;
  color: var(--text-light);
  cursor: pointer;
}

/* Success dialog modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 44, 92, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 100%;
  padding: 40px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-color);
  margin: 0 auto 24px auto;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.success-text {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.ticket-number {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 30px;
  border: 1px dashed rgba(35, 70, 138, 0.3);
}

/* About SRU pages and governance descriptions */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary-color);
  margin: 30px 0 16px 0;
}

.about-content h3:first-of-type {
  margin-top: 0;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-content ul {
  list-style: none;
  margin-bottom: 24px;
}

.about-content li {
  color: var(--text-light);
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.about-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: 700;
}

.about-sidebar-card {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.about-sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--accent-color);
}

.about-sidebar-card p {
  font-size: 14.5px;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* Contact and support block */
.contact-grid {
  display: block;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-content h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.contact-card-content p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-map-placeholder {
  height: 400px;
  background-color: #e5e7eb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.map-marker {
  position: relative;
  z-index: 10;
  text-align: center;
}

.map-marker svg {
  color: var(--danger-color);
  animation: bounce 2s infinite;
}

.map-label {
  margin-top: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

/* University footer and legal details */
.footer {
  background-color: #0b1528;
  color: #9ca3af;
  padding: 80px 0 40px 0;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  max-height: 48px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  font-size: 14px;
}

.footer-contact-info li {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-info svg {
  color: var(--accent-color);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Keyframe fades and slide animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile and tablet responsive breakpoint styling */
@media (max-width: 1024px) {
  .detail-layout, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-sidebar-card, .detail-sidebar {
    margin-top: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > *:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    align-items: flex-start;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 16px;
    width: 100%;
    display: block;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
  
  .stat-card {
    border-right: none;
    padding: 10px;
  }
  
  .stat-card:nth-child(even) {
    border-left: none;
  }
  
  .home-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .form-layout {
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid > *:first-child {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ==========================================================================
   Researcher & Admin Dashboard Extensions
   ========================================================================== */

/* Admin / Audit Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.admin-table th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
  text-align: left;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  vertical-align: top;
}

.admin-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Admin Tabs Layout */
.admin-tab-btn {
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  padding: 10px 20px;
  position: relative;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.admin-tab-btn:hover {
  color: var(--primary-color);
}

.admin-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.admin-subtab-content {
  display: none;
}

.admin-subtab-content.active {
  display: block;
  animation: tabFadeIn 0.4s forwards;
}

/* User Dashboard approved list */
.approved-ds-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  background-color: var(--bg-card);
  transition: var(--transition);
}

.approved-ds-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.approved-ds-title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secure-files-container {
  margin-top: 14px;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}

.secure-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: var(--bg-main);
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
}

.secure-file-item:last-child {
  margin-bottom: 0;
}

.secure-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.secure-file-info svg {
  color: var(--primary-color);
}

/* Admin lists styles */
.admin-ds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.admin-ds-row:hover {
  background-color: var(--bg-main);
}

.admin-ds-info h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 16px;
  margin-bottom: 4px;
}

.admin-ds-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 12px;
}

/* Custom Status Badges */
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-status.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.badge-status.approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-status.rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Tooltips & Helpers */
.reject-reason-box {
  margin-top: 6px;
  padding: 8px 12px;
  background-color: #fef2f2;
  border-left: 3px solid var(--danger-color);
  color: #991b1b;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
}

/* Prototype Indicator styling */
@media (max-width: 768px) {
  #prototypeBadge {
    display: none !important;
  }
}

