/* Modern Academic Portfolio Platform CSS */

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

/* CSS Variables */
:root {
  --primary-color: #0a2647;
  --secondary-color: #144272;
  --accent-color: #205295;
  --light-accent: #2c74b3;
  --text-color: #333;
  --light-text: #666;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

/* Global Text Readability Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  line-height: 1.2;
}

p {
  line-height: 1.7;
  color: #2d3748;
  font-weight: 400;
}

a {
  color: var(--primary-color);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(32, 82, 149, 0.2);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 700;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  background-color: transparent;
  color: white;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

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

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

.card-title a:hover {
  color: var(--accent-color);
}

.card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--light-text);
  font-size: 0.9rem;
}

.card-meta span {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.card-description {
  margin-bottom: 1rem;
  color: var(--light-text);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  max-height: 4.5em;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-color);
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

/* Professors Grid */
.professors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.professor-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.professor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.professor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent-color);
}

.professor-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

.professor-name a:hover {
  color: var(--accent-color);
}

.professor-title {
  color: var(--light-text);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

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

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

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

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(32, 82, 149, 0.2);
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

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

tr:hover {
  background-color: rgba(32, 82, 149, 0.05);
}

/* Tabs */
.tabs {
  margin-bottom: 2rem;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-nav-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--light-text);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.tab-nav-item.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.stat-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card-change {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.stat-card-change.positive {
  color: var(--success-color);
}

.stat-card-change.negative {
  color: var(--error-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-error {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination-list {
  display: flex;
  list-style: none;
}

.pagination-item {
  margin: 0 5px;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.pagination-link:hover,
.pagination-link.active {
  background-color: var(--accent-color);
  color: white;
}

/* Search and Filter */
.search-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  flex-grow: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.filter-dropdown {
  min-width: 150px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .article-title,
  .news-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Active menu styling for mobile */
  .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .nav-links a.active::after {
    bottom: -3px;
    width: 40px;
    height: 4px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .professors-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .articles-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .news-list-horizontal {
    gap: 0.8rem;
  }
  
  .article-meta,
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .article-actions,
  .news-actions {
    flex-direction: column;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-form .form-group {
    min-width: 100%;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .data-table {
    font-size: 0.9rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .content-section {
    padding: 0 15px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .professors-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-nav {
    overflow-x: auto;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .article-title,
  .news-title {
    font-size: 1.5rem;
  }
  
  .article-detail,
  .news-detail {
    padding: 0 10px;
  }
  
  .article-body,
  .news-body {
    font-size: 1rem;
  }
  
  .data-table {
    font-size: 0.8rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .user-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

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

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(10, 38, 71, 0.1);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.badge-warning {
  color: white;
  background-color: var(--warning-color);
}

.badge-info {
  color: white;
  background-color: var(--info-color);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.professor-search-form {
    max-width: 600px;
    margin: 0 auto;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

/* Modern Hero Section */
.hero-modern {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.hero-pattern {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-modern {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-primary-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-modern {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-modern:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Search Widget */
.search-widget {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.search-widget h3 {
  margin-bottom: 1.5rem;
  color: #0a2647;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(10, 38, 71, 0.1);
}

.search-form-modern {
  margin-bottom: 1rem;
}

.search-input-group {
  display: flex;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: #6b7280;
  font-weight: 400;
  opacity: 0.8;
}

.search-button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.search-button:hover {
  background: var(--light-accent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.search-suggestions {
  font-size: 0.9rem;
  color: #6b7280;
}

.search-suggestions a {
  color: var(--accent-color);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.search-suggestions a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.stat-item {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a2647;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(10, 38, 71, 0.1);
  letter-spacing: -0.02em;
}

.stat-label {
  color: #4b5563;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Modern Content Sections */
.content-section-modern {
  padding: 5rem 0;
}

.section-alternate {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-text {
  flex: 1;
}

.section-badge {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title-modern {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a2647;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(10, 38, 71, 0.1);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 600px;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Modern Content Grid */
.content-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.content-card-modern {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image-modern {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content-card-modern:hover .card-image-modern img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.post-date,
.post-category {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.card-content-modern {
  padding: 2rem;
}

.card-meta-modern {
  margin-bottom: 1rem;
}

.author {
  color: #6b7280;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-modern {
  margin-bottom: 1rem;
}

.card-title-modern a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-title-modern a:hover {
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(32, 82, 149, 0.3);
}

.card-description-modern {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.card-footer-modern {
  text-align: left;
}

.read-more-modern {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, transform 0.3s ease;
  text-shadow: 0 1px 2px rgba(32, 82, 149, 0.2);
}

.read-more-modern:hover {
  gap: 1rem;
  transform: translateY(-1px);
}

.read-more-modern:hover {
  gap: 1rem;
}

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

.professor-card-modern {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professor-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.professor-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.professor-avatar-modern {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f1f5f9;
}

.professor-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
}

.professor-info-modern {
  text-align: center;
}

.professor-name-modern {
  margin-bottom: 0.5rem;
}

.professor-name-modern a {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.professor-name-modern a:hover {
  color: var(--accent-color);
}

.professor-title-modern {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.professor-university {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.professor-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.professor-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* No Content Message */
.no-content-message {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.no-content-message p {
  color: #6b7280;
  font-size: 1.1rem;
  margin: 0;
}

/* Content with Sidebar Layout */
.content-with-sidebar {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* Main Content Column */
.main-content-column {
  min-width: 0;
}

.featured-content {
  margin-bottom: 3rem;
}

.section-title-large {
  font-size: 2rem;
  font-weight: 800;
  color: #0a2647;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(10, 38, 71, 0.1);
  letter-spacing: -0.02em;
}

.section-title-large::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
  border-radius: 2px;
}

/* Featured Articles */
.featured-article {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-article-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-article:hover .featured-article-image img {
  transform: scale(1.05);
}

.featured-article-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.featured-category {
  background: rgba(32, 82, 149, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.featured-article-content {
  padding: 2rem;
}

.featured-article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.featured-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-article-title {
  margin-bottom: 1rem;
}

.featured-article-title a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.featured-article-title a:hover {
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(32, 82, 149, 0.3);
}

.featured-article-description {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.read-more-featured {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, transform 0.3s ease;
  text-shadow: 0 1px 2px rgba(32, 82, 149, 0.2);
}

.read-more-featured:hover {
  gap: 1rem;
}

/* News Grid Section */
.news-grid-section {
  margin-bottom: 2rem;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.news-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-card-home {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-date-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.news-card-content {
  padding: 1rem;
}

.news-card-title {
  margin-bottom: 0.5rem;
}

.news-card-title a {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: var(--accent-color);
}

.news-card-excerpt {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.news-card-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Sidebar Column */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.sidebar-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
  padding: 1.5rem;
}

.sidebar-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-content {
  padding: 1.5rem;
}

/* Popular Items */
.popular-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-number {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.popular-content {
  flex: 1;
  min-width: 0;
}

.popular-title {
  margin-bottom: 0.5rem;
}

.popular-title a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.popular-title a:hover {
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(32, 82, 149, 0.2);
}

.popular-category {
  margin-bottom: 0.5rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background-color: rgba(32, 82, 149, 0.1);
  color: var(--accent-color);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.category-tag.news-tag {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
}

.popular-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.popular-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Professor Sidebar Items */
.professor-sidebar-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.professor-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.professor-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.professor-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.professor-info-small {
  flex: 1;
  min-width: 0;
}

.professor-name-small {
  margin-bottom: 0.25rem;
}

.professor-name-small a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.professor-name-small a:hover {
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(32, 82, 149, 0.2);
}

.professor-title-small {
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.professor-university-small {
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.professor-stats-small {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.professor-stats-small span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.no-sidebar-content {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 2rem 0;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

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

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.cta-section .btn-primary-modern:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

.cta-section .btn-outline-modern {
  border-color: white;
  color: white;
}

.cta-section .btn-outline-modern:hover {
  background: white;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .section-title-modern {
    font-size: 2rem;
  }

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

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

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

  /* New responsive styles for 2-column layout */
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar-column {
    order: 2;
  }

  .section-title-large {
    font-size: 1.5rem;
  }

  .featured-article-image {
    height: 200px;
  }

  .news-home-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
  }

  .featured-article-image {
    height: 250px;
  }
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.1rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

/* Page-specific body classes */
body.articles-page .content-section {
  padding: 2rem 0;
}

body.news-page .content-section {
  padding: 2rem 0;
}

/* Content Section */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Article and News Card Styles */
.articles-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

/* Compact News Grid - More items per row */
.news-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.news-grid-compact .news-card {
  font-size: 0.9rem;
}

.news-grid-compact .news-image {
  height: 140px;
}

.news-grid-compact .news-content {
  padding: 1rem;
}

.news-grid-compact .news-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.news-grid-compact .news-excerpt {
  font-size: 0.85rem;
  -webkit-line-clamp: 2;
  max-height: 2.5em;
}

.news-grid-compact .news-meta {
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

/* Horizontal News List - Very compact layout */
.news-list-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.news-list-horizontal .news-card {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto;
  min-height: 120px;
}

.news-list-horizontal .news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-list-horizontal .news-image {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
}

.news-list-horizontal .news-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-list-horizontal .news-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-list-horizontal .news-meta {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.news-list-horizontal .news-excerpt {
  font-size: 0.85rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  max-height: 2.3em;
  margin-bottom: 0.5rem;
  flex: 0;
}

.news-list-horizontal .news-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: none;
}

.news-list-horizontal .news-date {
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 0.7rem;
}

/* Mobile responsive for horizontal layout */
@media (max-width: 768px) {
  .news-list-horizontal .news-card {
    flex-direction: column;
    height: auto;
  }

  .news-list-horizontal .news-image {
    width: 100%;
    height: 160px;
  }

  .news-list-horizontal .news-content {
    padding: 1rem;
  }

  .news-list-horizontal .news-excerpt {
    -webkit-line-clamp: 3;
    max-height: 3.6em;
  }
}

.article-card,
.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image,
.news-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.article-card:hover .article-image img,
.news-card:hover .news-image img {
  transform: scale(1.05);
}

.article-category,
.news-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-date {
  background: var(--secondary-color);
}

.article-content,
.news-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title,
.news-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.article-title a,
.news-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover,
.news-title a:hover {
  color: var(--primary-color);
}

.article-meta,
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #4a5568;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.article-meta i,
.news-meta i {
  margin-right: 5px;
}

.article-excerpt,
.news-excerpt {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3em;
  flex: 1;
  font-size: 0.9rem;
}

/* Article and News Detail Styles */
.article-detail,
.news-detail {
  max-width: 800px;
  margin: 0 auto;
}

.article-header,
.news-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-category,
.news-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-category {
  background: var(--secondary-color);
}

.article-title,
.news-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta,
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

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

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

.author-name {
  font-weight: 600;
  color: var(--dark-color);
}

.author-title {
  font-size: 0.9rem;
  color: #666;
}

.article-date,
.news-date {
  font-size: 0.9rem;
  color: #666;
}

.featured-image {
  margin-bottom: 2rem;
}

.featured-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-body,
.news-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-body h2,
.news-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.article-body h3,
.news-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

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

.article-footer,
.news-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.article-tags {
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.article-actions,
.news-actions {
  display: flex;
  gap: 1rem;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th {
  background: var(--primary-color);
  color: white;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

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

.data-table tr:hover {
  background-color: #f9f9f9;
}

.table-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.table-link:hover {
  text-decoration: underline;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-published {
  background: #d4edda;
  color: #155724;
}

.status-draft {
  background: #f8d7da;
  color: #721c24;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.inline-form {
  display: inline;
}

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

.btn-danger:hover {
  background-color: #c82333;
  color: white;
}

/* Search and Filter Styles */
.search-filter-container {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

/* Centered search for Articles page */
.articles-page .search-filter-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.articles-page .search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.articles-page .search-form .form-group {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.articles-page .search-form .form-group:last-child {
  flex: 0 0 auto;
  min-width: auto;
}

/* Centered search for News page */
.news-page .search-filter-container {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

.news-page .search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.news-page .search-form .form-group {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.news-page .search-form .form-group:last-child {
  flex: 0 0 auto;
  min-width: auto;
}

/* Default search form (fallback) */
.search-form {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.search-form .form-group {
  flex: 1;
  min-width: 200px;
}

/* No Results Styles */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.no-results h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* Dark Color Variable */
:root {
  --dark-color: #0a2647;
}

/* Quill Editor Custom Styles */
#editor-container {
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  background-color: white;
  margin-bottom: 1rem;
}

#editor {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  padding: 1rem;
  min-height: 300px;
}

.ql-toolbar.ql-snow {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--border-color);
  background-color: #f8f9fa;
  border-radius: 0.25rem 0.25rem 0 0;
}

.ql-container.ql-snow {
  border: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
}

.ql-editor {
  min-height: 300px;
  padding: 1rem;
}

.ql-editor.ql-blank::before {
  color: var(--light-text);
  font-style: normal;
}

.ql-source-code {
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.ql-source-code:hover {
  background-color: #e9ecef;
}

.ql-toolbar button {
  color: var(--text-color);
}

.ql-toolbar button:hover {
  color: var(--accent-color);
}

.ql-toolbar button.ql-active {
  color: var(--accent-color);
}

.ql-toolbar .ql-picker {
  color: var(--text-color);
}

.ql-toolbar .ql-picker:hover {
  color: var(--accent-color);
}

.ql-toolbar .ql-picker-label {
  color: var(--text-color);
}

.ql-toolbar .ql-picker-label:hover {
  color: var(--accent-color);
}

/* Responsive Quill Editor */
@media (max-width: 768px) {
  .ql-toolbar.ql-snow {
    padding: 0.5rem;
  }
  
  .ql-editor {
    padding: 0.75rem;
    font-size: 15px;
  }
  
  #editor-container {
    height: 300px !important;
  }
}

@media (max-width: 576px) {
  .ql-toolbar.ql-snow {
    padding: 0.25rem;
  }
  
  .ql-editor {
    padding: 0.5rem;
    font-size: 14px;
  }
  
  #editor-container {
    height: 250px !important;
  }
}

/* Mobile Optimization for Articles Page */
.search-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-group,
.filter-group,
.search-btn-group {
  width: 100%;
  max-width: 100%;
}

.search-btn-group .btn {
  width: 100%;
  font-size: 16px;
  padding: 12px 20px;
}

@media (max-width: 768px) {
  /* Enhanced Mobile Search Form */
  .search-filter-container {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .search-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .search-group,
  .filter-group,
  .search-btn-group {
    width: 100% !important;
    max-width: 100% !important;
  }

  .search-btn-group .btn {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
  }

  .search-group .form-control,
  .filter-group .form-control {
    font-size: 16px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
  }

  .search-group .form-control:focus,
  .filter-group .form-control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  }

  /* Enhanced Article Cards for Mobile */
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 1rem !important;
  }

  .article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }

  .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

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

  .article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #4f46e5;
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
  }

  .article-content {
    padding: 1.2rem;
  }

  .article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
  }

  .article-title a:hover {
    color: #4f46e5;
  }

  .article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
  }

  .article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .article-meta i {
    color: #9ca3af;
  }

  .article-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-footer {
    display: flex;
    justify-content: flex-end;
  }

  .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }

  .read-more:hover {
    color: #7c3aed;
  }

  /* Enhanced Pagination for Mobile */
  .pagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .pagination-item {
    margin: 0;
  }

  .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
  }

  .pagination-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
  }

  .pagination-link.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
  }

  /* Enhanced No Results for Mobile */
  .no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
  }

  .no-results i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
  }

  .no-results h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
  }

  .no-results p {
    color: #6b7280;
    margin: 0;
  }

  /* Enhanced Page Header for Mobile */
  .page-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
  }

  .page-description {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .article-image {
    height: 160px;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .article-meta {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

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

  .page-description {
    font-size: 1rem;
  }

  .pagination-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) {
  .article-card:active {
    transform: scale(0.98);
  }

  .pagination-link:active {
    transform: scale(0.95);
  }

  .search-group .form-control:active,
  .filter-group .form-control:active,
  .search-btn-group .btn:active {
    transform: scale(0.98);
  }
}