/* admit-cards.css */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #4f46e5;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Base Styles */
.main-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content-column {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-header {
  font-size: 2.25rem;
  color: var(--dark);
  margin-bottom: 2rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Category Tags */
.category-tags {
  
  
  top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  background: linear-gradient(to bottom, white 50%, rgba(255,255,255,0.9));
  backdrop-filter: blur(4px);
  z-index: 10;
}

.category-tag {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: var(--light);
  border-radius: 2rem;
  color: var(--gray);
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.category-tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  border-color: var(--primary);
}

/* Table Styles */
.announce-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: var(--radius-md);
}

.announce-table thead {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
 
  top: 4rem;
}

.announce-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announce-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.925rem;
  color: var(--dark);
}

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

.announce-table tr:hover {
  background: #f8fafc;
}

/* Button Styles */
.link-button {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.link-button::after {
  content: "→";
  margin-left: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-button:hover::after {
  opacity: 1;
}

.link-button.active {
  background: var(--primary);
  color: white;
}

.link-button.active:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.link-button.urgent {
  background: var(--warning);
  color: white;
  animation: pulse 2s infinite;
}

.link-button.expired {
  background: #e2e8f0;
  color: var(--gray);
  cursor: not-allowed;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* Section Styling */
section {
  margin: 3rem 0;
  scroll-margin-top: 6rem;
}

section h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

section h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--warning);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-container {
      grid-template-columns: 1fr;
  }
  
  .category-tags {
      top: 0;
      padding: 1rem 0 2rem;
  }
}

@media (max-width: 768px) {
  .announce-table {
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }
  
  .page-header {
      font-size: 1.75rem;
  }
  
  section h3 {
      font-size: 1.25rem;
  }
}

/* Empty State */
.no-announcements {
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  color: var(--gray);
}

/* Sticky Sidebar */
aside {
  position: sticky;
  top: 1rem;
  height: fit-content;
  align-self: start;
}

/* Hover Effects */
tr {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

tr:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}