:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
}

/* Error Page Styles */
.error-page {
  padding: 5rem 0;
  background: var(--bg-secondary, #f8fafc);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-card {
  background: #fff;
  border-radius: 1.75rem;
  padding: 3rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(0, 78, 137, 0.12);
}

.error-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.error-code {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.error-icon {
  font-size: 2rem;
}

.error-card h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary, #0f172a);
}

.error-card p {
  color: var(--text-secondary, #64748b);
  margin-bottom: 1rem;
}

.error-request-id code {
  background: rgba(15, 23, 42, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .error-card {
    padding: 2rem;
  }

  .error-code {
    font-size: 2.5rem;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* Hide anti-forgery token field */
input[name="__RequestVerificationToken"] {
  display: none !important;
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
}

.auth-card h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-secondary:hover {
  background: #475569;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-block {
  width: 100%;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.text-danger {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* News Pages */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.news-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

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

.news-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-content h2 a:hover {
  color: var(--primary-color);
}

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

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.no-news {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

/* News Detail */
.news-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.news-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.news-detail-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.news-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.news-gallery {
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

.news-image {
  width: 100%;
}

.news-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.news-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.news-body {
  font-size: 1.125rem;
  line-height: 1.8;
  margin: 2rem 0;
}

.news-body p {
  margin-bottom: 1rem;
}

.news-videos {
  margin: 2rem 0;
}

.news-videos h3 {
  margin-bottom: 1rem;
}

.news-video {
  margin-bottom: 1.5rem;
}

.news-video video {
  width: 100%;
  border-radius: var(--radius);
}

.video-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* News Form */
.news-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.news-form-container h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.existing-media {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.existing-media h4 {
  margin-bottom: 1rem;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
}

.media-item img,
.media-item video {
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .news-detail-header h1 {
    font-size: 1.875rem;
  }

  .news-detail,
  .news-form-container,
  .news-container {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .news-header h1 {
    font-size: 1.75rem;
  }

  .news-detail-header h1 {
    font-size: 1.5rem;
  }

  .news-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* User Menu Dropdown */
.nav-item .fa-user-circle {
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

.nav-item .fa-sign-in-alt {
  margin-right: 0.25rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.p-4 {
  padding: 2rem;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Image Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print Styles */
@media print {

  .header,
  .footer,
  .top-bar,
  .btn,
  .news-actions {
    display: none !important;
  }

  .news-detail {
    box-shadow: none;
    padding: 0;
  }

  body {
    background: white;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: white;
}

/* User Management Table */
.users-table {
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.users-table table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.users-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

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

.users-table tr:hover {
  background: var(--bg-secondary);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .users-table {
    overflow-x: auto;
  }

  .users-table table {
    min-width: 600px;
  }
}

/* Enhanced News Cards */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card .news-thumbnail {
  position: relative;
  overflow: hidden;
  display: block;
}

.news-card .news-thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.news-card:hover .news-thumbnail::after {
  opacity: 1;
}

.news-card .news-thumbnail img {
  transition: transform 0.3s;
}

.news-card:hover .news-thumbnail img {
  transform: scale(1.05);
}

.news-card .news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.news-card .news-meta i {
  margin-right: 0.25rem;
}

.news-card h2 {
  margin-bottom: 0.75rem;
  flex-grow: 0;
}

.news-card .news-summary {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.news-card .read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.news-card .read-more:hover {
  gap: 0.75rem;
}

.news-card .read-more i {
  font-size: 0.875rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination-number:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-number.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-ellipsis {
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

/* Enhanced No News State */
.no-news {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-news i {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.no-news h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-news p {
  font-size: 1rem;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
  }

  .pagination-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .pagination-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* News Header Enhanced */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.news-header-content {
  flex: 1;
}

.news-header h1 {
  margin-bottom: 0.5rem;
}

.news-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0;
}

.search-results-info {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.search-results-info strong {
  color: var(--primary-color);
}

/* Search Form */
.news-search {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-form {
  max-width: 800px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
}

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

.search-input::placeholder {
  color: var(--text-secondary);
}

/* Pagination Info */
.pagination-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Responsive Search */
@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-group {
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
    order: 1;
  }

  .search-icon {
    order: 1;
  }

  .search-input-group .btn {
    flex: 1;
    order: 2;
  }
}

/* Grid Adjustments for 12 items */
.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (min-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Auth Layout & Pages */
.auth-body {
  background: linear-gradient(135deg, #004E89 0%, #002D54 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.auth-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: white;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.auth-card h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-primary);
}

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

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.auth-footer p {
  margin: 0;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9375rem;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Enhanced News Detail Media Layouts */
.news-featured-image {
  margin: 2rem 0;
  text-align: center;
}

.news-featured-image img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-style: italic;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.875rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

.news-videos-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.news-videos-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.video-item {
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-item video {
  width: 100%;
  display: block;
  background: #000;
}

.video-item .video-caption {
  padding: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Media Layouts */
@media (max-width: 768px) {
  .news-gallery-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .news-featured-image img {
    max-height: 400px;
  }

  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .news-featured-image img {
    max-height: 300px;
  }

  .gallery-item img {
    height: 180px;
  }

  .news-videos-section {
    padding: 1rem;
  }
}

/* News Body Content Styling */
.news-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.news-body p {
  margin-bottom: 1.5rem;
}

.news-body h2,
.news-body h3,
.news-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.news-body h2 {
  font-size: 1.75rem;
}

.news-body h3 {
  font-size: 1.5rem;
}

.news-body h4 {
  font-size: 1.25rem;
}

.news-body ul,
.news-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.news-body li {
  margin-bottom: 0.5rem;
}

.news-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text-secondary);
}

.news-body a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.news-body code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.news-body pre {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.news-body pre code {
  background: none;
  padding: 0;
}


/* ============================================
   MODERN AUTH LAYOUT & MANAGEMENT PAGES
   ============================================ */

/* Modern Auth Layout */
.auth-container-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #004E89 0%, #002D54 100%);
}

.auth-card-modern {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, #004E89 0%, #1e40af 100%);
  padding: 2rem;
  text-align: center;
}

.auth-logo-modern {
  max-width: 160px;
  height: auto;
  background: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.auth-content {
  padding: 2rem;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

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

.auth-footer-modern {
  background: var(--bg-secondary);
  padding: 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.auth-footer-modern p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Modern Form Styles */
.auth-form,
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-modern {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label-modern i {
  color: var(--primary-color);
  width: 1.25rem;
}

.form-input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input-modern::placeholder {
  color: var(--text-secondary);
}

textarea.form-input-modern {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: -0.25rem;
}

.form-check-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-check-input-modern {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.form-check-label-modern {
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
}

.form-row-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

/* Modern Buttons */
.btn-modern {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

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

.btn-primary-modern:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary-modern {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary-modern:hover {
  background: #475569;
  transform: translateY(-1px);
}

.btn-group-modern {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-group-modern .btn-modern {
  flex: 1;
}

/* Alerts */
.alert-success-modern,
.alert-danger-modern {
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.alert-success-modern {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-danger-modern {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Admin Container */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.admin-header-content {
  flex: 1;
  min-width: 250px;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header h1 i {
  color: var(--primary-color);
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Admin Card */
.admin-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Admin Table */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table thead {
  background: var(--bg-secondary);
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.admin-table th i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.2s;
}

.admin-table tbody tr:hover {
  background: var(--bg-secondary);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* User Name Cell */
.user-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Badges */
.role-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.btn-action-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-action-secondary:hover {
  background: #475569;
  transform: translateY(-1px);
}

.btn-action-danger {
  background: var(--danger-color);
  color: white;
}

.btn-action-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-action-success {
  background: var(--success-color);
  color: white;
}

.btn-action-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Empty State */
.admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.admin-empty i {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.admin-empty h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.admin-empty p {
  font-size: 1rem;
}

/* Media Section */
.media-section {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.media-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-section-title i {
  color: var(--primary-color);
}

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

.media-item-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.media-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.media-delete {
  width: 100%;
  border-radius: 0;
  padding: 0.5rem;
  font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-container {
    padding: 1.5rem;
  }

  .admin-header h1 {
    font-size: 1.75rem;
  }
}

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

  .auth-content {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .admin-container {
    padding: 1rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  .btn-modern {
    width: 100%;
  }

  .btn-group-modern {
    flex-direction: column;
  }

  .form-row-modern {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.875rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
  }

  .user-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .auth-card-modern {
    max-width: 100%;
  }

  .auth-header {
    padding: 1.5rem;
  }

  .auth-logo-modern {
    max-width: 140px;
  }

  .admin-header h1 {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .table-responsive {
    margin: 0 -1rem;
  }

  .admin-table {
    min-width: 600px;
  }
}

/* Print Styles for Admin Pages */
@media print {

  .admin-header .btn-modern,
  .action-buttons,
  .btn-group-modern {
    display: none !important;
  }

  .admin-card {
    box-shadow: none;
  }
}

/* Focus States for Accessibility */
.btn-modern:focus-visible,
.btn-action:focus-visible,
.form-input-modern:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading State */
.btn-modern:disabled,
.btn-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


/* Form Sections for Better UX */
.form-section {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.form-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
  margin-bottom: 2rem;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mb-3 {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-section {
    padding: 1rem;
  }

  .form-section h3 {
    font-size: 1.125rem;
  }
}

/* Desktop dropdown styles */
@media (min-width: 993px) {
  .header {
    position: relative;
    z-index: 1020;
  }

  .header .dropdown {
    position: relative;
  }

  /* Main dropdown menu */
  .header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1030;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header .dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
  }

  /* Submenu styles */
  .header .dropdown-submenu {
    position: relative;
  }

  .header .dropdown-submenu-content {
    position: absolute;
    top: 0;
    left: 100%;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1031;
  }

  .header .dropdown-submenu:hover>.dropdown-submenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
  }

  .header .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
  }

  .header .dropdown-submenu-content:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
  }
}

/* Mobile dropdown styles */
@media (max-width: 992px) {
  .header .dropdown-menu {
    position: static;
    inset: auto;
    transform: none !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    padding: 0.5rem 0;
  }

  .header .dropdown.active .dropdown-menu {
    display: block;
  }

  .header .dropdown:not(.active) .dropdown-menu {
    display: none;
  }

  .header .dropdown-submenu-content {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    padding-left: 1rem;
  }

  .header .dropdown-submenu.active .dropdown-submenu-content {
    display: block;
  }

  /* Keep account dropdown as overlay, not expanding navbar */
  .header .header-actions {
    position: relative;
  }

  .header .header-actions .dropdown {
    position: relative;
  }

  .header .header-actions .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    transform: none !important;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    padding: 0.75rem;
    border-radius: 12px;
    z-index: 2000;
    min-width: 240px;
    max-width: 80vw;
  }

  .header .header-actions .dropdown.active .dropdown-menu {
    display: block;
  }

  .header .header-actions .dropdown-menu .dropdown-item {
    overflow: visible;
    padding: 0.75rem;
  }

  .header .header-actions .dropdown-menu .dropdown-title {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}


/* ============================================
   SEARCH MODAL STYLES
   ============================================ */

.search-modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  height: 80vh;
  min-height: 80vh;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  flex-shrink: 0;
}

.search-modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-input-group .search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}

.search-input-group .search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 3rem;
  border: none;
  font-size: 1rem;
  transition: color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background: transparent;
}

.search-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-input-group .search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-input-group .btn-search-submit {
  position: absolute;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 1;
}

.search-input-group .btn-search-submit:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 78, 137, 0.25);
}

/* Quick Links */
.quick-links {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.quick-links h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
}

.quick-link-item:hover {
  background: rgba(0, 78, 137, 0.06);
  color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 78, 137, 0.15);
}

.quick-link-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease, transform 0.2s ease;
}

.quick-link-item:hover i {
  color: var(--primary-color);
  transform: translateX(3px);
}

.quick-link-item span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Search Loading */
.search-loading {
  text-align: center;
  padding: 3rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.search-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.search-loading p {
  color: var(--text-secondary);
  margin: 0;
}

/* Search Results */
.search-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.search-results h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

#resultsContainer {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0.75rem;
}

.search-result-item:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 78, 137, 0.2);
}

.search-result-item .result-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  font-size: 1.25rem;
}

.search-result-item:hover .result-icon {
  background: rgba(255, 255, 255, 0.2);
}

.search-result-item .result-icon i {
  color: var(--primary-color);
}

.search-result-item:hover .result-icon i {
  color: white;
}

.search-result-item .result-content {
  flex: 1;
  min-width: 0;
}

.search-result-item .result-meta {
  margin-bottom: 0.25rem;
}

.search-result-item .result-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-news {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-tender {
  background: #fff3e0;
  color: #f57c00;
}

.badge-course {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-career {
  background: #e8f5e9;
  color: #388e3c;
}

.search-result-item:hover .result-type {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.search-result-item .result-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-item .result-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-item:hover .result-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* View All Link */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease, gap 0.3s ease;
  flex-shrink: 0;
}

.view-all-link:hover {
  background: var(--primary-color);
  color: white;
  gap: 0.75rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-results i {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .search-modal-content {
    height: 80vh;
  }

  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .search-modal-content {
    height: 85vh;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-modal-body {
    padding: 1rem;
  }

  .search-input-group .search-input {
    padding: 0.875rem 3rem 0.875rem 2.75rem;
    font-size: 0.9375rem;
  }
}

/* Department Gallery Styles */
.department-gallery {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.department-gallery .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.department-gallery .section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.department-gallery .section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1.5rem;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 1rem);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem 1rem 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.gallery-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.gallery-nav-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--primary-color);
  width: 32px;
  border-radius: 6px;
}

.gallery-dot:hover {
  background: var(--primary-dark);
}

/* Responsive Gallery Styles */
@media (max-width: 992px) {
  .gallery-item {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .gallery-item img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .department-gallery {
    padding: 2rem 0;
  }

  .department-gallery .section-header {
    margin-bottom: 2rem;
  }

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

  .department-gallery .section-subtitle {
    font-size: 1rem;
  }

  .gallery-container {
    gap: 0.25rem;
    padding: 0 0.5rem;
  }

  .gallery-item {
    flex: 0 0 100%;
    margin: 0;
  }

  .gallery-item img {
    height: 280px;
  }

  .gallery-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    position: absolute;
    z-index: 10;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(4px);
  }

  .gallery-prev {
    left: 0.5rem;
  }

  .gallery-next {
    right: 0.5rem;
  }

  .gallery-viewport {
    margin: 0 2.5rem;
  }

  .gallery-overlay {
    transform: translateY(0);
    padding: 1rem 0.75rem 0.75rem;
  }

  .gallery-overlay p {
    font-size: 0.9rem;
  }

  .gallery-indicators {
    margin-top: 1.5rem;
    gap: 0.75rem;
  }

  .gallery-dot {
    width: 10px;
    height: 10px;
  }

  .gallery-dot.active {
    width: 28px;
  }
}

@media (max-width: 480px) {
  .department-gallery {
    padding: 1.5rem 0;
  }

  .department-gallery .section-header h2 {
    font-size: 1.5rem;
  }

  .gallery-container {
    padding: 0;
  }

  .gallery-item img {
    height: 240px;
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gallery-prev {
    left: 0.25rem;
  }

  .gallery-next {
    right: 0.25rem;
  }

  .gallery-viewport {
    margin: 0 2rem;
  }

  .gallery-track {
    gap: 1rem;
  }
}

/* Floating Faults Button */
.faults-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--accent-color, #dc2626);
  backdrop-filter: blur(10px);
  animation: slideUp 0.8s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.faults-floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.faults-btn-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faults-btn-content i {
  font-size: 1.8rem;
  color: var(--accent-color, #dc2626);
}

.faults-btn-text {
  display: flex;
  flex-direction: column;
}

.faults-btn-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  line-height: 1;
}

.faults-btn-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color, #2563eb);
  line-height: 1.2;
}

.faults-btn-note {
  font-size: 0.6rem;
  color: var(--text-secondary, #64748b);
  opacity: 0.8;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .faults-floating-btn {
    bottom: 20px;
    right: 20px;
    left: auto;
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
  }

  .faults-btn-content i {
    font-size: 1.5rem;
  }

  .faults-btn-number {
    font-size: 1.1rem;
  }

  .faults-btn-note {
    display: block;
    font-size: 0.5rem;
    margin-top: 1px;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}