/* =========================================================
   SUPERVISORS SECTION
   ========================================================= */
.supervisors-section .table th {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  font-weight: 600;
  padding: 1rem;
}

.supervisors-section .table td {
  vertical-align: middle;
  padding: 0.75rem;
}

.supervisors-section .table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* =========================================================
   MEMBERS SECTION
   ========================================================= */
.members-section .table-success thead th {
  background: linear-gradient(135deg, var(--success-color) 0%, #157347 100%);
  color: white;
}

.members-section .table td {
  padding: 0.75rem;
}

/* =========================================================
   PROJECTS SECTION
   ========================================================= */
.projects-section h4 {
  color: var(--dark-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.projects-section .table-info thead th {
  background: linear-gradient(135deg, var(--info-color) 0%, #0ba5c9 100%);
  color: white;
}

.projects-section .table-warning thead th {
  background: linear-gradient(135deg, var(--warning-color) 0%, #d39e00 100%);
  color: #212529;
}

.projects-section .table th,
.projects-section .table td {
  padding: 0.75rem;
  font-size: 0.9rem;
}

.projects-section .btn-group .btn {
  margin: 0 0.25rem;
}

/* =========================================================
   PUBLICATIONS SECTION
   ========================================================= */
.publications-section .table-dark thead th {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
  color: white;
}

.publications-section .table td {
  padding: 0.75rem;
  font-size: 0.9rem;
}

.publications-section .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.publications-section .pagination .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
}

.publications-section .pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* =========================================================
   PATENTS SECTION
   ========================================================= */
.patents-section .table-danger thead th {
  background: linear-gradient(135deg, var(--danger-color) 0%, #b02a37 100%);
  color: white;
}

.patents-section .table th,
.patents-section .table td {
  padding: 0.75rem;
  font-size: 0.9rem;
}

.patents-section .stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.patents-section .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.patents-section .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.patents-section .stat-label {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.patents-section .list-group-item {
  border: none;
  padding: 0.75rem 1rem;
  color: var(--dark-color);
  transition: all 0.2s ease;
}

.patents-section .list-group-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* =========================================================
   DOWNLOAD BUTTONS
   ========================================================= */
.download-buttons .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.download-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   RESPONSIVE TABLE STYLES
   ========================================================= */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  .projects-section .row > div {
    margin-bottom: 2rem;
  }

  .publications-section .filter-btn {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
  }

  .patents-section .stat-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .patents-section .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .download-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* =========================================================
   RESEARCH AND DEVELOPMENT PAGE STYLES
   ========================================================= */

/* CSS Variables */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>');
  background-size: cover;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: white;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* =========================================================
   INTRODUCTION SECTION
   ========================================================= */
.introduction-section {
  background: white;
}

.content-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.content-card h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.content-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.highlight-box {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
  border-left: 4px solid var(--success-color);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 2rem;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.highlight-box strong {
  color: var(--success-color);
}

/* =========================================================
   OBJECTIVES SECTION
   ========================================================= */
.objectives-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.objective-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  text-align: center;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.objective-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: white;
}

.objective-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.objective-card p {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* =========================================================
   RESEARCH AREAS SECTION
   ========================================================= */
.research-areas-section {
  background: white;
}

.research-area-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.research-area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.area-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--info-color) 0%, #0ba5c9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: white;
}

.research-area-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.area-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.area-topics li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--secondary-color);
  position: relative;
  padding-left: 1.5rem;
}

.area-topics li:last-child {
  border-bottom: none;
}

.area-topics li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* =========================================================
   AGENCIES SECTION
   ========================================================= */
.agencies-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.agency-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.agency-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.agency-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: white;
}

.agency-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.agency-card p {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
}

.cta-section h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 0;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 768px) {
  .page-header {
    padding: 3rem 0 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .content-card h2 {
    font-size: 1.5rem;
  }

  .objective-card,
  .research-area-card,
  .agency-card {
    padding: 1.5rem;
  }

  .objective-icon,
  .area-icon,
  .agency-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .highlight-box {
    padding: 1rem;
  }

  .cta-section .col-lg-8 {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .cta-section .col-lg-4 {
    text-align: center !important;
  }

  .breadcrumb {
    font-size: 0.875rem;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  .page-header {
    background: white !important;
    color: black !important;
    padding: 2rem 0 1rem;
  }

  .btn,
  .breadcrumb,
  .objective-card:hover,
  .research-area-card:hover,
  .agency-card:hover {
    box-shadow: none !important;
    transform: none !important;
  }

  .objective-card,
  .research-area-card,
  .agency-card {
    border: 1px solid #dee2e6;
  }

  .cta-section {
    display: none;
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .objective-card:hover,
  .research-area-card:hover,
  .agency-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Focus styles for accessibility */
.objective-card:focus,
.research-area-card:focus,
.agency-card:focus,
.btn:focus {
  outline: 3px solid rgba(13, 110, 253, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .objective-card,
  .research-area-card,
  .agency-card {
    border: 2px solid black;
  }
}
