body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #111;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* VFS Brand Colors */
:root {
  --vfs-primary: #A41034;
  --vfs-primary-dark: #8B0000;
  --vfs-secondary: #2c3e50;
  --vfs-accent: #34495e;
  --vfs-light: #f8fafc;
  --vfs-gray: #6c757d;
}

/* VFS Branding Components */
.vfs-logo-badge {
  background: linear-gradient(135deg, var(--vfs-primary), var(--vfs-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(164, 16, 52, 0.3);
}

.vfs-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vfs-gradient-bg {
  background: linear-gradient(135deg, rgba(164, 16, 52, 0.05), rgba(139, 0, 0, 0.05));
  border: 1px solid rgba(164, 16, 52, 0.1);
  border-radius: 12px;
}

.vfs-star-icon {
  width: 20px;
  height: 20px;
  color: white;
  fill: currentColor;
}

nav {
  background-color: #A41034;
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

nav a {
  color: white;
  margin-left: 20px;
   margin-right: 10px;
  text-decoration: none;
  font-weight: bold;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

h2 {
  color: #A41034;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #A41034;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 16px;
}

button:hover {
  background-color: #870c2a;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

ul {
  padding-left: 20px;
}

.alert {
  color: red;
  margin-top: 10px;
}

/* Grid containers */
.project-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 2.5rem !important;
}
.group-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

/* Base card styling */
.card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: box-shadow 0.2s ease !important;
}
.card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* ----- Dashboard layout (exactly two columns) ----- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* ----- Dashboard cards ----- */
.dashboard-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}
.dashboard-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Card title in “VFS red” */
.dashboard-card h3 {
  color: #A41034;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
}


/* Two-column grid for project-groups */
.group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Group card styling */
.group-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.6rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}
.group-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.10);
}

/* Title in VFS red */
.group-card h3 {
  color: #A41034;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
}

.group-card p {
  margin: 0.25rem 0;            /* was browser-default ~0.5–1 rem */
}

.group-card form {
  display: flex;
  align-items: center;          /* centers selector + button vertically */
  gap: 0.5rem;                  /* space between them */
}

.group-card form select {
  flex: 0 0 7.5rem;  
  padding-top: 6px;
  
  /* don’t grow; 7.5 rem ≈ 120 px */
}

.group-card form button {
  flex: 0 0 auto;               /* natural width; no stretching */
  position: relative;
  top: -12px;      /* +value moves DOWN, –value moves UP */
}


/* ─── Remove blue underlines / outlines on card links ─── */
.dashboard-card,
.dashboard-card:link,
.dashboard-card:visited,
.dashboard-card:focus,
.group-card a,
.group-card a:link,
.group-card a:visited,
.group-card a:focus {
  text-decoration: none !important;   /* kill the underline */
  color: inherit !important;          /* keep VFS-red h3 */
  outline: none !important;           /* remove blue focus ring */
}

.copy-badge {
  color: #374151;          /* slate-700 */
}

/* ------------- student portal cards ----------------- */
.doc-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;       /* smaller than before */
  background: #f9fafb;
  margin-bottom: 1rem;    /* tighter gap */
}

/* row: items stay on one line, centered vertically */
.doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;    /* vertically centre everything */
  gap: 0.5rem;            /* tighter horizontal spacing */
}

/* Preview button – slightly smaller */
.doc-btn {
  background: #971033;
  color: #fff;
  padding: 0.25rem 0.6rem;   /* smaller */
  font-size: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}
.doc-btn:hover { background:#7c0d2a; }

/* badges */
.doc-badge {
  font-size: 0.7rem;          /* smaller font */
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
}

/* tighter file-input look */
.doc-input {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* style.css  (append anywhere)  */
.ta-reject-pill {
  background: #facc15;        /* amber-400 */
  color: #78350f;             /* amber-900 (readable text) */
  font-size: .65rem;
  font-weight: 600;
  padding: 0 0.35rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

/* Mobile responsive styles for property browsing */
@media (max-width: 768px) {
  /* Page layout improvements */
  body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
  }
  
  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 0.75rem !important;
    margin: 0 auto !important;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  
  .group-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 0 0.75rem;
  }
  
  .card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
  
  .dashboard-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .group-card {
    padding: 1rem;
  }
  
  .container {
    max-width: 100%;
    margin: 10px auto;
    padding: 0.75rem;
  }
  
  /* Property browsing mobile fixes */
  #properties-section,
  #roommates-section,
  #category-selection {
    padding: 0 0.75rem !important;
    margin: 0 !important;
  }
  
  /* Property grid mobile layout */
  #properties-section > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Individual property cards on mobile */
  #properties-section > div[style*="grid"] > div {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* Property card image mobile */
  #properties-section img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  
  /* Property card content mobile */
  #properties-section > div[style*="grid"] > div > div[style*="padding"] {
    padding: 1.25rem !important;
  }
  
  /* Property title mobile */
  #properties-section h3 {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Property price mobile */
  #properties-section div[style*="color: #A41034"] {
    font-size: 1.375rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Property details text mobile */
  #properties-section p {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Property badges mobile */
  #properties-section div[style*="gap: 1rem"] {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 1rem !important;
  }
  
  #properties-section span[style*="padding: 0.25rem"] {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* Property buttons mobile */
  #properties-section div[style*="justify-content: space-between"]:last-child {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
    padding-top: 1rem !important;
  }
  
  #properties-section div[style*="justify-content: space-between"]:last-child > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  
  #properties-section a[style*="padding"] {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    display: block !important;
  }
  
  /* Category cards mobile */
  #category-selection > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 0.75rem !important;
  }
  
  /* Fix badge positioning in category cards on mobile */
  #category-selection div[style*="background: white"] {
    padding: 1.5rem !important;
    margin: 0 0.5rem !important;
    overflow: visible !important;
  }
  
  /* Ensure badges don't get cut off */
  #category-selection div[style*="border-radius: 20px"] {
    position: relative !important;
    display: inline-block !important;
    max-width: calc(100% - 1rem) !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  
  /* Navigation mobile fixes */
  nav {
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 1rem 0.75rem !important;
  }
  
  nav h1 {
    font-size: 1.25rem !important;
    text-align: center !important;
  }
  
  nav a {
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    text-align: center !important;
  }
  
  /* Form mobile improvements */
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.75rem !important;
  }
  
  button {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    width: 100% !important;
  }
  
  /* Header section mobile */
  div[style*="text-align: center; margin-bottom: 3rem"] {
    margin-bottom: 2rem !important;
    padding: 0 0.75rem !important;
  }
  
  div[style*="font-size: 2.5rem"] {
    font-size: 1.875rem !important;
  }
  
  /* Filter buttons mobile */
  div[style*="display: flex; flex-wrap: wrap; gap: 0.5rem"] {
    justify-content: center !important;
    padding: 0.5rem !important;
  }
  
  div[style*="display: flex; flex-wrap: wrap; gap: 0.5rem"] button {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    max-width: 150px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    width: auto !important;
  }
  
  /* Table mobile responsiveness */
  table {
    font-size: 0.875rem !important;
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    white-space: nowrap !important;
  }
  
  table th, table td {
    padding: 0.5rem !important;
    min-width: 100px !important;
  }

  /* Property Detail Page Mobile Fixes */
  .property-detail-page {
    padding: 0.25rem !important;
    margin: 0 !important;
  }
  
  /* Reduce padding on property detail sections */
  .property-detail-page > div[style*="max-width: 1200px"] {
    max-width: 100% !important;
    padding: 0.5rem !important;
    margin: 0 !important;
  }
  
  /* Property detail white cards - reduce padding and margins */
  .property-detail-page div[style*="background: white"] {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    border-radius: 8px !important;
  }
  
  /* Property detail grid layouts */
  .property-detail-page div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Property detail inner sections */
  .property-detail-page div[style*="background: #f8f9fa"] {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  /* Property detail text wrapping and container expansion */
  .property-detail-page h1,
  .property-detail-page h2,
  .property-detail-page h3,
  .property-detail-page p,
  .property-detail-page div {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }
  
  /* Ensure all property detail containers can expand */
  .property-detail-page div[style*="padding"] {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  
  /* Specific fixes for location and description boxes */
  .property-detail-page div[style*="background: #f0f9ff"],
  .property-detail-page div[style*="background: #f9fafb"] {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 1rem !important;
  }
  
  /* Property detail back button */
  .property-detail-page div[style*="margin-bottom: 2rem"]:first-child {
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }
  
  /* Property detail header section */
  .property-detail-page div[style*="background: #A41034"] {
    padding: 1.5rem 0.75rem !important;
  }
  
  .property-detail-page div[style*="background: #A41034"] > div {
    padding: 0 !important;
  }
  
  /* Property detail header content */
  .property-detail-page div[style*="background: #A41034"] h1 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
  
  /* Property detail header buttons */
  .property-detail-page div[style*="display: flex; gap: 1rem; flex-wrap: wrap"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
  
  .property-detail-page div[style*="display: flex; gap: 1rem; flex-wrap: wrap"] > * {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Property photos mobile */
  .property-detail-page div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Property info sections mobile */
  .property-detail-page div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Apply button section */
  .property-detail-page div[style*="background: #A41034"][style*="text-align: center"] {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding: 1.5rem 1rem !important;
  }
  
  /* Property detail page mobile fixes */
  .property-detail-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.75rem !important;
  }
  
  .property-detail-section {
    background: white !important;
    border-radius: 8px !important;
    padding: 2.5rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
  
  .property-detail-grid {
    display: block !important;
    gap: 1rem !important;
  }
  
  .property-detail-grid > div {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }
  
  /* Property detail text fixes */
  .property-detail h1 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }
  
  .property-detail h2 {
    font-size: 1.125rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .property-detail h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .property-detail p {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Property detail photo gallery mobile */
  .property-photos-mobile {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .property-photos-mobile img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }
  
  /* Property details list mobile */
  .property-details-list {
    display: block !important;
  }
  
  .property-details-list > div {
    margin-bottom: 0.75rem !important;
    padding: 0.5rem !important;
    background: #f9fafb !important;
    border-radius: 6px !important;
  }
  
  /* Property contact section mobile */
  .property-contact-section {
    padding: 1rem !important;
    margin-top: 1rem !important;
  }
  
  .property-contact-section a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0.75rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* Property badges mobile */
  .property-badges-mobile {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .property-badges-mobile span {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
  }
  
  /* Student Seeking Detail Page Mobile Fixes */
  .student-detail-page {
    padding: 0.5rem !important;
    margin: 0 !important;
  }
  
  /* Student detail containers */
  .student-detail-page > div[style*="max-width: 800px"] {
    max-width: 100% !important;
    padding: 0.5rem !important;
    margin: 0 !important;
  }
  
  /* Student detail white cards */
  .student-detail-page div[style*="background: white"] {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    border-radius: 8px !important;
  }
  
  /* Student detail grid layouts */
  .student-detail-page div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Student detail text content */
  .student-detail-page div[style*="background: #f8f9fa"] {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* Student detail text wrapping and container expansion */
  .student-detail-page h1,
  .student-detail-page h2,
  .student-detail-page h3,
  .student-detail-page p,
  .student-detail-page div {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }
  
  /* Ensure all student detail containers can expand */
  .student-detail-page div[style*="padding"] {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  
  /* Student detail header section */
  .student-detail-page div[style*="text-align: center"] {
    padding: 1rem 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Student detail contact buttons */
  .student-detail-page div[style*="display: flex; align-items: center"] a {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    display: block !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Viewport specific fixes */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


.hidden { display: none; }

.flex-row-inline form { display: inline-flex; }


.group-list__item,
.group-list__item:link,
.group-list__item:visited,
.group-list__item:hover,
.group-list__item:focus {
  text-decoration: none !important;
  color: inherit;
}

.group-list__item {
  display: flex;
  align-items: center;       /* vertical centering */
  justify-content: space-between;
  gap: 1rem;
}

.group-list__info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
  color: #374151;
}

.group-list__info strong {
  color: #A41034;
  font-weight: 600;
}

.group-list__info span {
  white-space: nowrap;
}

.group-list__actions select {
  width: 5rem;              /* just wide enough for "8 months" */
  padding: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.btn--archive {
  background-color: #A41034;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn--archive:hover {
  background-color: #870c2a;
}


/* ──────────────────────────────────────────────────────────────── */
/* PROJECT GROUP LIST — boxed, full-width horizontal cards       */
/* ──────────────────────────────────────────────────────────────── */
.group-list__item {
  background-color: #ffffff;                       /* white box */
  border: 1px solid #e5e7eb;                       /* light gray border */
  border-radius: 0.5rem;                           /* rounded corners */
  padding: 1rem;                                   /* inner spacing */
  display: flex;                                   /* horizontal layout */
  align-items: center;                             /* vertical center */
  justify-content: space-between;                  /* spread left & right */
  gap: 1rem;                                       /* space between child blocks */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);            /* subtle shadow */
  transition: box-shadow 0.2s ease;                /* hover effect */
  text-decoration: none !important;                /* remove link underlines */
  color: inherit !important;                       /* inherit text color */
}

.group-list__item:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);           /* stronger shadow on hover */
}

/* Make the info and actions remain distinct flex children */
.group-list__info {
  flex: 1 1 auto;                                  /* allow info to grow */
}

.group-list__actions {
  flex: 0 0 auto;                                  /* actions stay their own width */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* Tweak the select + button alignment */
.group-list__actions select {
  width: 5.5rem;
  /* fit “8 months” */
}

.btn--archive {
  margin: 0;                                       /* remove any top margin */
}

/* 1) Make the card header a flex container */
.group-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* 2) Reserve a fixed min-width for the name column */
.group-card__name {
  display: inline-block;
  min-width: 8rem;  /* tweak this value to taste */
  color: #A41034;
}

/* 3) Lay out the date/info spans in a row */
.group-card__dates {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #374151;
}

/* 4) Make the whole name area clickable, remove underlines */
.group-card__link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.group-card__link:hover { text-decoration: none; }

/* 5) Shorten the archive selector + button onto one line */
.group-card form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* reserve a column just for the name so everything else lines up */
.group-list__name {
  display: inline-block;
  min-width: 4.5rem;    /* tweak up or down to taste */
}


/* in your static/style.css */
.student-note-box {
  display: block;
  background: #f0f4ff;        /* very light blue */
  border-left: 4px solid #3b82f6; /* blue-500 */
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
  color: #1e40af;             /* blue-800 */
  font-size: 0.95rem;
  line-height: 1.4;
}
.student-note-box p {
  margin: 0.5rem 0 0;
}