/*
 Theme Name:   Hello Elementor Child
 Description:  Child theme for Hello Elementor
 Author:       Nkosikhona Mbandlwa
 Template:     hello-elementor
 Version:      1.0.0
*/

:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark: #1a1a1a;
  --color-muted: #333333;
  --color-light: #f9f9f9;
  --color-lighter: #fafafa;
  --color-border: #f0f0f0;
  --color-border-light: #eee;
  --color-border-muted: #ddd;

  /* Accent Colors */
  --color-primary: #a19a9a;
  --color-primary-dark: #1a1a1a;
  --color-header: #9e9999;

  /* Fonts */
  --font-primary: 'Inter', sans-serif;

  /* Font Sizes */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-xxl: 24px;

  /* Spacing */
  --space-xs: 5px;
  --space-sm: 8px;
  --space-md: 10px;
  --space-lg: 15px;
  --space-xl: 20px;
  --space-xxl: 30px;
  --space-section: 2rem;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 2px 15px rgba(0, 0, 0, 0.05);
}

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

.calls-table {
  width: fit-content;
  padding: var(--space-section) 0;
  background: var(--color-white);
  box-sizing: border-box;
  max-width: 1500px;
  font-family: var(--font-primary);
}

/* Heading with Subscribe Button */
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.section-title {
  font-family: var(--font-primary);
  font-size: var(--fs-xxl);
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.subscribe-button {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.subscribe-button:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Table Container*/
.ukzn-subscriber-table-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 var(--space-sm);
}

/* Table Styling */
.research-calls-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-sm);
  table-layout: fixed;
}

.research-calls-table thead th {
  background: var(--color-header);
  color: var(--color-white);
  font-weight: 600;
  padding: var(--space-lg);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.research-calls-table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
  animation: fadeIn 0.3s ease forwards;
}

.research-calls-table tbody tr:nth-child(even) {
  background-color: var(--color-lighter);
}

.research-calls-table tbody tr:hover {
  background-color: var(--color-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.research-calls-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-weight: 500;
}

.research-calls-table td:first-child {
  font-weight: 600;
  color: var(--color-dark);
}

/* Buttons */
.view-details-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.view-details-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Pagination */
.calls-pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--color-light);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-xl);
}

.calls-pagination {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.calls-page-link {
  background: var(--color-white);
  border: 1px solid var(--color-border-muted);
  color: var(--color-muted);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.calls-page-link.current,
.calls-page-link:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 782px) {
  .research-calls-table thead {
    display: none;
  }

  .research-calls-table tbody tr {
    display: block;
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
  }

  .research-calls-table td {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: none;
  }

  .research-calls-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-muted);
    margin-right: var(--space-md);
  }

  .view-details-btn,
  .subscribe-button {
    width: 100%;
    text-align: center;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.research-calls-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.research-calls-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.research-calls-table tbody tr:nth-child(3) { animation-delay: 0.15s; }