/* Approved Research Page Styles - Consistent with Naat Rang Design System */

/* Import Islamic-friendly fonts */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Scheherazade+New:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for cool-toned Islamic theme - Consistent with Naat Rang */
:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --accent-teal: #0d9488;
  --light-teal: #a7f3d0;
  --cool-gray: #f8fafc;
  --warm-white: #fefefe;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --border-teal: #14b8a6;
  --shadow-blue: rgba(30, 58, 138, 0.15);
  --shadow-teal: rgba(13, 148, 136, 0.2);
  --font-arabic: 'Amiri', 'Scheherazade New', serif;
  --font-english: 'Inter', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --gradient-cool: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #0d9488 100%);
  
  /* Consistent Typography Sizes - Matching Naat Rang */
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.5rem;
  --body-size: 1.125rem;
  --subtitle-size: 1.25rem;
}

/* Base Styles */
.approved-research-page {
  background: var(--cool-gray);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

.approved-research-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container-fluid {
  width: 93%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Hero Section - Consistent with Naat Rang */
.hero-section {
  background: url(../images/cover1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1;
}

.hero-section .container-fluid {
  position: relative;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-english);
  font-size: var(--h1-size);
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--subtitle-size);
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
  /* font-style: italic; */
  color: #cbd5e1;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  text-align: center !important;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Language Filter Section - Enhanced consistency */
.language-filter-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 80px 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
  position: relative;
}

/* .language-filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-blue) 50%, var(--accent-teal) 100%);
} */

.filter-header {
  text-align: center;
  margin-bottom: 40px;
}

.filter-title {
  font-family: var(--font-english);
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 15px;
}

.filter-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-teal) 50%, transparent 100%);
  border-radius: 2px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced filter button styling - matching Naat Rang design patterns */
.filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(13, 148, 136, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-width: 150px;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(13, 148, 136, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  border-color: var(--accent-teal);
  background: linear-gradient(135deg, #ffffff 0%, rgba(167, 243, 208, 0.1) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 20px 40px rgba(13, 148, 136, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover::before {
  transform: scaleX(1);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  border-color: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 
    0 20px 40px rgba(13, 148, 136, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.filter-btn.active::before {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.2);
}

.filter-btn[data-filter="urdu"] .btn-text {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.1rem;
  font-weight: 600;
}

.count {
  background: rgba(0, 0, 0, 0.1);
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  font-family: var(--font-english);
}

.filter-btn.active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* Research Container */
.research-container {
  padding: 80px 0;
  position: relative;
}

/* Stats Section - Enhanced design consistency */
.research-stats {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px var(--shadow-blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 60px 40px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.research-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-blue) 50%, var(--accent-teal) 100%);
}

.stats-number {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  font-family: var(--font-english);
  color: var(--primary-blue);
}

.stats-label {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  font-family: var(--font-english);
  color: var(--text-dark);
}

.stats-sublabel {
  font-size: var(--body-size);
  opacity: 0.8;
  font-style: italic;
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  color: var(--text-medium);
}

/* Research List - Enhanced card design */
.research-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  align-items: start;
}

.research-item.filter-hidden {
  display: none !important;
}

/* Content Cards - Enhanced design matching Naat Rang patterns */
.content-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 
    0 8px 25px rgba(13, 148, 136, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 35px 25px;
  border: 2px solid rgba(13, 148, 136, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: fit-content;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(13, 148, 136, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-teal);
  background: linear-gradient(135deg, #ffffff 0%, rgba(167, 243, 208, 0.1) 100%);
}

.content-card:hover::before {
  transform: scaleX(1);
}

/* Research Item Specific Styling */
.research-item {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-content {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Item Header */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.title-section {
  flex: 1;
}

.research-title {
  font-family: var(--font-english);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 15px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-item:hover .research-title {
  color: var(--accent-teal);
}

.research-item[data-language="urdu"] .research-title {
  text-align: right;
  direction: rtl;
  font-family: var(--font-arabic);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.5rem;
}

/* Badges - Enhanced styling */
.item-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.research-item[data-language="urdu"] .item-badges {
  direction: rtl;
  justify-content: flex-start;
}

.category-badge {
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(13, 148, 136, 0.05) 100%);
  color: var(--accent-teal);
  border: 2px solid rgba(13, 148, 136, 0.2);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.research-item[data-language="urdu"] .category-badge {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Meta Section */
.item-meta {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.research-item[data-language="urdu"] .item-meta {
  direction: rtl;
  justify-content: flex-start;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-medium);
  font-family: var(--font-body);
}

.meta-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-teal);
  opacity: 0.7;
}

.research-item[data-language="urdu"] .meta-item {
  text-align: right;
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  line-height: 1.6;
}

.research-item[data-language="urdu"] .meta-icon {
  order: 2;
}

/* Description */
.research-description {
  color: var(--text-medium);
  font-size: var(--body-size);
  line-height: 1.6;
  margin: 0 0 25px 0;
  font-family: var(--font-body);
  flex: 1;
  text-align: justify;
  
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.research-item[data-language="urdu"] .research-description {
  text-align: right;
  direction: rtl;
  font-family: var(--font-arabic);
  line-height: 1.8;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Button - Enhanced design */
.item-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 10px;
}

.research-item[data-language="urdu"] .item-action {
  justify-content: flex-start;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.research-item[data-language="urdu"] .read-more-btn {
  direction: rtl;
  text-align: center;
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
}

.research-item[data-language="urdu"] .read-more-btn .btn-icon {
  order: 2;
  transform: rotate(180deg);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.research-item:hover .read-more-btn {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  color: white;
  text-decoration: none;
}

.research-item:hover .btn-icon {
  transform: translateY(-2px);
}

.research-item[data-language="urdu"]:hover .btn-icon {
  transform: translateY(-2px) rotate(180deg);
}

/* Empty State - Enhanced design */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-medium);
  grid-column: 1 / -1;
}

.empty-ornament {
  margin: 0 auto 30px;
  width: 100px;
  height: 100px;
  color: var(--accent-teal);
  background: rgba(13, 148, 136, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.empty-ornament svg {
  width: 50px;
  height: 50px;
}

.empty-state h3 {
  font-family: var(--font-english);
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 20px 0;
}

.empty-state p {
  font-size: var(--body-size);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
  font-family: var(--font-body);
}

/* Pagination - Enhanced styling */
.pagination-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.pagination-wrapper .page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  align-items: center;
}

.pagination-wrapper .page-numbers li {
  margin: 0;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(13, 148, 136, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-medium);
  font-family: var(--font-english);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.1);
}

.pagination-wrapper .page-numbers a:hover {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.pagination-wrapper .page-numbers .current {
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
  padding: 1rem 1.5rem;
  font-weight: 600;
}

/* Language-specific Styles */
.lang-urdu {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.lang-english {
  direction: ltr;
  text-align: left;
  font-family: var(--font-body);
}

/* RTL Layout for Urdu Items */
.research-item[data-language="urdu"] {
  direction: rtl;
  text-align: right;
}

.research-item[data-language="urdu"] .item-header {
  direction: rtl;
  text-align: right;
  flex-direction: row-reverse;
}

/* Responsive Design - Consistent with Naat Rang */
@media (max-width: 1024px) {
  :root {
    --h1-size: 2.2rem;
    --h2-size: 1.8rem;
    --h3-size: 1.4rem;
    --body-size: 1.1rem;
    --subtitle-size: 1.2rem;
  }
  
  .container-fluid {
    width: 90%;
  }
  
  .hero-section {
    padding: 80px 30px;
  }
  
  .language-filter-section {
    padding: 60px 0;
  }
  
  .research-container {
    padding: 60px 0;
  }
  
  .research-stats {
    padding: 50px 30px;
  }
  
  .content-card {
    padding: 30px 20px;
  }
  
  .filter-btn {
    min-width: 130px;
    padding: 12px 20px;
  }
  
  .research-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.6rem;
    --h3-size: 1.3rem;
    --body-size: 1rem;
    --subtitle-size: 1.1rem;
  }
  
  .hero-section {
    padding: 80px 15px;
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .language-filter-section {
    padding: 40px 0;
  }
  
  .research-container {
    padding: 40px 0;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
    max-width: 250px;
    margin: 0 auto;
    gap: 15px;
  }
  
  .filter-btn {
    width: 100%;
    min-width: unset;
    justify-content: center;
    padding: 15px 20px;
  }
  
  .research-stats {
    padding: 40px 25px;
  }
  
  .stats-number {
    font-size: 3rem;
  }
  
  .stats-label {
    font-size: 1.3rem;
  }
  
  .research-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .content-card {
    padding: 25px 20px;
  }
  
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .research-item[data-language="urdu"] .item-header {
    align-items: flex-end;
    text-align: right;
    flex-direction: column;
  }
  
  .research-title {
    font-size: 1.2rem;
  }
  
  .research-item[data-language="urdu"] .research-title {
    font-size: 1.3rem;
  }
  
  .item-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .research-description {
    font-size: 0.95rem;
  }
  
  .item-action {
    justify-content: center;
    margin-top: 20px;
  }
  
  .research-item[data-language="urdu"] .item-action {
    justify-content: center;
  }
  
  .read-more-btn {
    padding: 12px 20px;
  }
  
  .pagination-wrapper .page-numbers a,
  .pagination-wrapper .page-numbers span {
    min-width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  :root {
    --h1-size: 1.8rem;
    --h2-size: 1.4rem;
    --h3-size: 1.2rem;
    --body-size: 0.95rem;
    --subtitle-size: 1rem;
  }
  
  .hero-section {
    padding: 60px 15px;
    min-height: 70vh;
    background-attachment: scroll;
  }
  
  .container-fluid {
    width: 95%;
    padding: 0 15px;
  }
  
  .language-filter-section {
    padding: 30px 0;
  }
  
  .research-container {
    padding: 30px 0;
  }
  
  .filter-buttons {
    max-width: 200px;
  }
  
  .filter-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .research-stats {
    padding: 30px 20px;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
  
  .stats-label {
    font-size: 1.1rem;
  }
  
  .stats-sublabel {
    font-size: 0.9rem;
  }
  
  .content-card {
    padding: 20px 15px;
  }
  
  .research-title {
    font-size: 1.1rem;
  }
  
  .research-item[data-language="urdu"] .research-title {
    font-size: 1.15rem;
    line-height: 1.4;
  }
  
  .research-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .research-item[data-language="urdu"] .research-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
  
  .research-item[data-language="urdu"] .meta-item {
    font-size: 0.9rem;
  }
  
  .read-more-btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  
  .pagination-wrapper .page-numbers {
    gap: 8px;
  }
  
  .pagination-wrapper .page-numbers a,
  .pagination-wrapper .page-numbers span {
    min-width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
  
  .pagination-wrapper .page-numbers .prev,
  .pagination-wrapper .page-numbers .next {
    padding: 0.75rem 1rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .filter-title {
    font-size: 1.2rem;
  }
  
  .research-title {
    font-size: 1rem;
  }
  
  .research-item[data-language="urdu"] .research-title {
    font-size: 1.05rem;
  }
  
  .research-description {
    font-size: 0.85rem;
  }
  
  .stats-number {
    font-size: 2.2rem;
  }
}

/* Print Styles */
@media print {
  .hero-section {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .content-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  
  .research-stats {
    background: white !important;
    color: black !important;
    border: 2px solid #333 !important;
  }
  
  .filter-buttons {
    display: none !important;
  }
  
  .pagination-wrapper {
    display: none !important;
  }
  
  .research-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .content-card:hover,
  .research-item:hover,
  .filter-btn:hover {
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-blue: #000;
    --secondary-blue: #333;
    --accent-teal: #000;
    --text-dark: #000;
    --text-medium: #333;
    --border-teal: #000;
  }
  
  .filter-btn {
    border-width: 3px;
  }
  
  .research-item {
    border-width: 2px;
  }
}

/* Focus styles for accessibility */
.filter-btn:focus,
.research-item:focus,
.read-more-btn:focus {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced animations */
.research-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-item:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Loading states for dynamic content */
.research-list.loading .research-item {
  opacity: 0.6;
  pointer-events: none;
}

/* Improved focus visibility */
@media (prefers-reduced-motion: no-preference) {
  .filter-btn:focus {
    animation: pulse 2s infinite;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}