/* project.css - Complete version with Full Description Display */
:root {
  --primary: #003366;
  --gold: #FFB800;
  --blue: #003366;
  --blue-600: #002952;
  --blue-700: #00203d;
  --text: #2d3748;
  --muted: #6b7280;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --admin-border: #e2e8f0;
  --admin-bg-light: #f8fafc;
}

/* ===== BASE STYLES ===== */
.rating-section {
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
}

.average-rating {
  margin-bottom: 10px;
}

.rating-stars.interactive {
  display: flex;
  gap: 2px;
  margin: 8px 0;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 2px;
}

.star-btn:hover,
.star-btn.active {
  color: #FFB800;
}

.star-btn:hover ~ .star-btn {
  color: #cbd5e1;
}

.rating-stars.interactive:hover .star-btn {
  color: #FFB800;
}

.rating-stars.interactive .star-btn:hover ~ .star-btn {
  color: #cbd5e1;
}

.rating-text {
  display: block;
  margin-top: 4px;
  color: #666;
}

.rating-note {
  color: #888;
  font-style: italic;
}

.stars-static {
  color: #FFB800;
  font-size: 1.1rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.modal-rating-section {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.average-rating-modal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.rating-text-modal {
  color: #666;
  font-size: 0.9rem;
}

.user-rating-form-modal .rating-stars {
  justify-content: center;
}

/* ===== ENHANCED PROJECT CARD WITH FULL DESCRIPTION ===== */
.project-card-enhanced {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 500px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef3f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #d9e6f5;
}

.project-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.project-card-enhanced:hover::before {
  opacity: 1;
}

/* Card Header */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.project-card-title {
  margin: 0;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.project-status-badge-card {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-status-badge-card.status-planned {
  background: #e3f2fd;
  color: #1976d2;
}

.project-status-badge-card.status-ongoing {
  background: #fff3e0;
  color: #f57c00;
}

.project-status-badge-card.status-completed {
  background: #e8f5e8;
  color: #388e3c;
}

/* Full Description Styles */
.project-description-container {
  margin-bottom: 20px;
  position: relative;
}

.project-card-description {
  color: var(--text);
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0;
  display: block;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  max-height: none;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

/* Enhanced description with better readability */
.project-card-description p {
  margin-bottom: 12px;
}

.project-card-description p:last-child {
  margin-bottom: 0;
}

/* Compact layout for other sections */
.project-card-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.project-card-dates h5 {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: #666;
  font-weight: 600;
}

.date-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.85em;
  transition: all 0.2s ease;
}

.date-chip:hover {
  background: #f0f4f8;
  border-color: var(--gold);
  transform: translateX(2px);
}

.date-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}

.date-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85em;
  min-width: 50px;
}

.date-value {
  color: var(--text);
  font-weight: 500;
}

/* ===== PROGRESS BAR ===== */
.project-card-progress {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.progress-bar-mini {
  flex: 1;
  height: 8px;
  background: #eef3f9;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill-mini {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.progress-label {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-percent {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 45px;
  text-align: right;
}

/* Seats Section */
.project-card-seats {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.seats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.seats-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.seats-counter {
  font-size: 0.8rem;
}

.seats-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.seats-badge.unlimited {
  background: #d1fae5;
  color: #065f46;
}

.seats-badge.available {
  background: #dbeafe;
  color: #1e40af;
}

.seats-badge.full {
  background: #fee2e2;
  color: #991b1b;
}

.seats-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.seats-progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.seats-text {
  color: #6b7280;
  font-size: 0.8rem;
}

/* Training Info - More Compact */
.project-card-indicators {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.indicators-label {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid #e6eef7;
}

.indicators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.project-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  padding: 8px 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  min-height: 32px;
  transition: all 0.2s ease;
}

.project-indicator:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.indicator-icon {
  font-size: 1.2em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.indicator-label {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--muted);
  min-width: 50px;
  text-transform: capitalize;
}

.indicator-text {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.4;
  font-size: 0.9em;
}

.indicator-text.fee-free {
  color: #2e7d32;
}

.indicator-text.fee-paid {
  color: #f57c00;
}

/* Enhanced indicator styling with colored borders */
.project-indicator.training-type-indicator {
  border-left: 3px solid #4285f4;
}

.project-indicator.fee-indicator {
  border-left: 3px solid #fbbc04;
}

.project-indicator.certificate-indicator {
  border-left: 3px solid #ea4335;
}

.project-indicator.project-location-indicator {
  border-left: 3px solid #34a853;
}

/* Location indicator */
.project-location-indicator {
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-location-indicator:hover {
  border-color: #4285f4;
  background: #f8f9ff;
  transform: translateY(-1px);
}

.location-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.location-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  color: #34a853;
}

.location-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-link:hover {
  color: #4285f4;
  text-decoration: underline;
}

.location-link:visited {
  color: var(--text);
}

.location-link:visited:hover {
  color: #4285f4;
}

/* ===== RATING ===== */
.project-card-rating {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.rating-label-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.rating-label {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-text-card {
  color: var(--muted);
  font-size: 0.85em;
}

.rating-count-text {
  color: var(--muted);
  font-weight: normal;
}

/* ===== ACTION BUTTONS ===== */
.project-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef3f9;
}

.btn-card-action {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.9em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-action.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: var(--muted);
  border-color: #e0e0e0;
  pointer-events: none;
}

.btn-details {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-details:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}

.btn-register {
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn-register:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.4);
}

/* ===== MODAL STYLES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-description {
  max-width: 600px;
  padding: 0;
}

.modal-description-content {
  padding: 30px;
}

.modal-description-title {
  margin: 0 0 20px 0;
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gold);
}

.modal-description-text {
  color: var(--text);
  line-height: 1.6;
  font-size: 1em;
  white-space: pre-line;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.modal-description-text::-webkit-scrollbar {
  width: 6px;
}

.modal-description-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-description-text::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.modal-description-text::-webkit-scrollbar-thumb:hover {
  background: #e6a800;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  color: var(--muted);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
}

/* ===== FILTER BUTTONS ===== */
.projects-filter {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.filter-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e6eef7;
  background: white;
  color: var(--text);
  border-radius: var(--border-radius);
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  border-color: var(--gold);
  background: #fffbf0;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.filter-btn.active:hover {
  background: #e6a800;
  border-color: #e6a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 184, 0, 0.4);
}

/* ===== CONTACT INFO ===== */
.contact-info {
  margin: 20px 0;
}

.contact-item {
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ===== LEGACY PROJECT CARD STYLES ===== */
.project-card {
  position: relative;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-dates {
  margin: 8px 0;
  font-size: 0.9em;
  color: #666;
}

.project-dates small {
  display: block;
  margin: 2px 0;
}

/* ===== TRAINING DETAILS ===== */
.training-details {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border: 1px solid #e6eef7;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.training-details:hover {
  box-shadow: var(--shadow-md);
  border-color: #d0e0f0;
}

.training-details h4 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text);
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.3;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  width: 100%;
}

.training-details-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.training-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #eef3f9;
  transition: var(--transition);
}

.training-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.training-detail-item:hover {
  background: rgba(255, 184, 0, 0.03);
  margin: 0 calc(-1 * var(--spacing-sm));
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
  border-radius: var(--border-radius);
}

.training-detail-item strong {
  min-width: 130px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.training-detail-item span {
  color: var(--text);
  flex: 1;
  line-height: 1.6;
  font-size: 0.95em;
}

.detail-icon {
  font-size: 1.2em;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

/* ===== EMPTY STATES ===== */
.projects-empty-state {
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

/* ===== PROJECT DETAILS PAGE STYLES ===== */

/* Back Navigation */
.back-nav {
  margin-bottom: var(--spacing-lg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(255, 184, 0, 0.1);
  transform: translateX(-4px);
}

/* Project Details Header */
.project-details-header {
  margin-bottom: var(--spacing-xl);
}

.project-details-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.project-status-badge-large {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status-badge-large.status-planned {
  background: #e3f2fd;
  color: #1976d2;
}

.project-status-badge-large.status-ongoing {
  background: #fff3e0;
  color: #f57c00;
}

.project-status-badge-large.status-completed {
  background: #e8f5e8;
  color: #388e3c;
}

.project-rating-large {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.rating-text-large {
  color: var(--muted);
  font-weight: 500;
}

/* Progress Bar Details */
.project-progress-details {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: #f8f9fa;
  border-radius: var(--border-radius);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.progress-bar-large {
  width: 100%;
  height: 12px;
  background: #eef3f9;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill-large {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 10px;
}

/* Project Dates Details */
.project-dates-details {
  margin-bottom: var(--spacing-xl);
}

.project-dates-details h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text);
  font-size: 1.3em;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.date-item-large {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: white;
  border: 1px solid #e6eef7;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.date-item-large:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.date-item-large .date-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.date-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-content strong {
  color: var(--text);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-content span {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1em;
}

/* Project Description Details */
.project-description-details {
  margin-bottom: var(--spacing-xl);
}

.project-description-details h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text);
  font-size: 1.3em;
}

.description-content {
  padding: var(--spacing-lg);
  background: white;
  border: 1px solid #e6eef7;
  border-radius: var(--border-radius);
  line-height: 1.7;
  font-size: 1.1em;
}

/* Detailed Notes */
.project-detailed-notes {
  margin-bottom: var(--spacing-xl);
}

.project-detailed-notes h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text);
  font-size: 1.3em;
}

.detailed-notes-content {
  padding: var(--spacing-lg);
  background: #f8f9fa;
  border-left: 4px solid var(--gold);
  border-radius: var(--border-radius);
  line-height: 1.7;
  white-space: pre-line;
}

/* Training Information Details */
.training-info-details {
  margin-bottom: var(--spacing-xl);
}

.training-info-details h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text);
  font-size: 1.3em;
}

.training-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.training-info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: white;
  border: 1px solid #e6eef7;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.training-info-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f8f9fa;
  border-radius: 50%;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-content strong {
  color: var(--text);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-content span {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1em;
}

.venue-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.venue-link:hover {
  color: #4285f4;
  text-decoration: underline;
}

/* Project Actions Details */
.project-actions-details {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.action-btn-large {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  font-size: 1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-large.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: var(--muted);
  border-color: #e0e0e0;
  pointer-events: none;
}

.action-btn-large:hover {
  background: rgba(255, 184, 0, 0.1);
  transform: translateY(-2px);
}

.action-btn-large:active {
  transform: translateY(0);
}

.action-icon {
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress Header with Days Counter */
.progress-header-with-days {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
  gap: var(--spacing-sm);
}

.days-counter {
  flex-shrink: 0;
}

.days-badge {
  display: inline-block;
  padding: 4px 8px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.days-badge.ended {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.days-badge:not(.ended):not(:empty) {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced Progress Bar */
.progress-bar-mini {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill-mini::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced Fee and Venue Indicators for Project Grid */
.project-card-indicators {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, #f8fbff, #f0f7ff);
  border-radius: var(--border-radius-lg);
  border: 2px solid #e6f0ff;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.08);
}

.indicators-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicators-label::before {
  content: "📊";
  font-size: 16px;
}

.indicators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

/* Enhanced Project Indicator */
.project-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e6eef7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.project-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.project-indicator:hover::before {
  transform: scaleY(1);
}

.project-indicator:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px) scale(1.02);
}

/* Larger Icons */
.indicator-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
  transition: all 0.3s ease;
}

.project-indicator:hover .indicator-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Fee Indicator Specific Styles */
.project-indicator.fee-indicator .indicator-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-indicator.fee-indicator:hover .indicator-icon {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* Venue Indicator Specific Styles */
.project-indicator.project-location-indicator .indicator-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-indicator.project-location-indicator:hover .indicator-icon {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* Training Type Indicator Specific Styles */
.project-indicator.training-type-indicator .indicator-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-indicator.training-type-indicator:hover .indicator-icon {
  background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
}

/* Certificate Indicator Specific Styles */
.project-indicator.certificate-indicator .indicator-icon {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.project-indicator.certificate-indicator:hover .indicator-icon {
  background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%);
}

/* Enhanced Label and Text */
.indicator-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 60px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.indicator-text {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.4;
  font-size: 14px;
  flex: 1;
  text-align: right;
}

/* Special fee text colors */
.indicator-text.fee-free {
  color: #10B981;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.indicator-text.fee-paid {
  color: #EF4444;
  font-weight: 700;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Location Link */
.location-link {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.location-link::after {
  content: "🔗";
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-link:hover {
  color: #2563eb;
  text-decoration: underline;
  transform: translateX(2px);
}

.location-link:hover::after {
  opacity: 1;
}

/* Details Page Seats Styles */
.project-seats-details {
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.seats-header-with-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.seats-badge-large {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.seats-badge-large.unlimited {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #a7f3d0;
}

.seats-badge-large.available {
  background: #dbeafe;
  color: #1e40af;
  border: 2px solid #93c5fd;
}

.seats-badge-large.full {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #fca5a5;
}

.seats-progress-bar-large {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0;
}

.seats-progress-fill-large {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.seats-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.seats-stat {
  font-size: 0.9rem;
  color: #6b7280;
  padding: 4px 8px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* Admin Capacity Styles */
.capacity-container {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--admin-border);
  animation: fadeIn 0.3s ease-in-out;
}

.current-participants-info {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--admin-bg-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--admin-border);
}

/* ===== FULL DESCRIPTION STYLES ===== */
.project-description-container.full-description {
  margin-bottom: var(--spacing-md);
  position: relative;
}

.project-card-description.full-text {
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0 0 var(--spacing-sm) 0;
  display: block;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  min-height: auto;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

/* Override any existing description styles for full-text */
.project-description-container.full-description .project-card-description.full-text {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  max-height: none !important;
}

/* Enhanced Description - Full Text Override */
.project-description-container.full-description .project-card-description.full-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 var(--spacing-sm);
  display: block;
  overflow: visible;
  white-space: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

/* Animation for indicator appearance */
@keyframes slideInIndicator {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-indicator {
  animation: slideInIndicator 0.6s ease-out forwards;
}

.project-indicator:nth-child(1) { animation-delay: 0.1s; }
.project-indicator:nth-child(2) { animation-delay: 0.2s; }
.project-indicator:nth-child(3) { animation-delay: 0.3s; }
.project-indicator:nth-child(4) { animation-delay: 0.4s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
  
  .project-card-enhanced {
    min-height: auto;
    padding: 16px;
  }
  
  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .project-status-badge-card {
    align-self: flex-start;
  }
  
  .project-card-description {
    font-size: 0.9em;
  }
  
  .project-card-indicators {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .project-indicator {
    width: 100%;
    justify-content: flex-start;
  }
  
  .project-card-actions {
    flex-direction: column;
  }
  
  .btn-card-action {
    width: 100%;
    justify-content: center;
  }
  
  .modal-card {
    padding: 20px;
    max-width: 95%;
  }
  
  .modal-description-content {
    padding: 20px;
  }
  
  .modal-description-title {
    font-size: 1.3em;
  }
  
  .filter-buttons {
    justify-content: flex-start;
    gap: var(--spacing-xs);
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    flex: 1;
    min-width: 0;
  }
  
  .training-details {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
  }

  .training-details h4 {
    font-size: 1.05em;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
  }

  .training-details-content {
    gap: var(--spacing-xs);
  }

  .training-detail-item {
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
  }

  .training-detail-item:hover {
    margin: 0;
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs);
  }

  .training-detail-item strong {
    min-width: auto;
    width: 100%;
    font-size: 0.9em;
  }

  .training-detail-item span {
    width: 100%;
    font-size: 0.9em;
  }

  .project-meta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .project-actions-details {
    flex-direction: column;
  }
  
  .action-btn-large {
    width: 100%;
    justify-content: center;
  }

  .progress-header-with-days {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .days-counter {
    align-self: flex-end;
  }
  
  .filter-buttons {
    justify-content: center;
  }

  .project-card-indicators {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  .indicators-label {
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
  }
  
  .project-indicator {
    padding: 8px 10px;
    min-height: 36px;
    gap: 8px;
  }
  
  .indicator-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
  
  .indicator-label {
    min-width: 50px;
    font-size: 10px;
  }
  
  .indicator-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .project-card-enhanced {
    padding: 12px;
  }
  
  .project-card-title {
    font-size: 1.1em;
  }
  
  .project-card-description {
    font-size: 0.85em;
  }
  
  .date-chip,
  .project-indicator {
    padding: 6px 8px;
    font-size: 0.8em;
  }

  .project-details-title {
    font-size: 2em;
  } 
  
  .project-status-badge-large {
    font-size: 0.8em;
    padding: 6px 16px;
  }
  
  .project-rating-large {
    font-size: 0.9em;
  }
  
  .action-btn-large {
    font-size: 0.9em;
    padding: 10px 16px;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
  
  .date-item-large .date-icon {
    font-size: 1.2em;
  }

  .project-card-indicators {
    padding: var(--spacing-xs);
  }
  
  .indicators-label {
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }
  
  .project-indicator {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
  }
  
  .indicator-label {
    min-width: auto;
    font-size: 9px;
  }
  
  .indicator-text {
    text-align: center;
    font-size: 11px;
  }
  
  .location-link::after {
    display: none;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .project-card-enhanced,
  .training-details,
  .training-detail-item,
  .see-more-btn,
  .filter-btn {
    transition: none;
  }

  .project-card-enhanced:hover,
  .training-detail-item:hover,
  .see-more-btn:hover,
  .filter-btn:hover {
    transform: none;
  }

  .progress-fill-mini::after,
  .days-badge:not(.ended):not(:empty) {
    animation: none;
  }
}
/* project.css - Updated version to ensure full description display */

/* ===== ENHANCED PROJECT CARD WITH FULL DESCRIPTION ===== */
.project-card-enhanced {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 500px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef3f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Full Description Styles - UPDATED TO ENSURE FULL TEXT DISPLAY */
.project-description-container {
  margin-bottom: 20px;
  position: relative;
}

.project-card-description {
  color: var(--text);
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0;
  display: block !important; /* Force block display */
  overflow: visible !important; /* Ensure no overflow hiding */
  text-overflow: unset !important; /* Remove text truncation */
  white-space: normal !important; /* Ensure normal line breaks */
  max-height: none !important; /* Remove height restrictions */
  -webkit-line-clamp: unset !important; /* Remove line clamp */
  -webkit-box-orient: unset !important; /* Remove box orientation */
  min-height: auto;
  word-wrap: break-word; /* Ensure long words break properly */
  overflow-wrap: break-word; /* Modern alternative to word-wrap */
}

/* Enhanced description with better readability */
.project-card-description p {
  margin-bottom: 12px;
}

.project-card-description p:last-child {
  margin-bottom: 0;
}

/* Remove any potential conflicting styles from other classes */
.project-card-description.full-text,
.project-description-container.full-description .project-card-description,
.project-description-container.full-description .project-card-description.full-text {
  display: block !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  height: auto !important;
}

/* Compact layout for other sections */
.project-card-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* ... rest of your existing CSS remains the same ... */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
  
  .project-card-enhanced {
    min-height: auto;
    padding: 16px;
  }
  
  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .project-status-badge-card {
    align-self: flex-start;
  }
  
  .project-card-description {
    font-size: 0.9em;
  }
  
  /* Ensure description remains fully visible on mobile */
  .project-description-container {
    margin-bottom: 16px;
  }
  
  .project-card-description {
    font-size: 0.9em;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .project-card-enhanced {
    padding: 12px;
  }
  
  .project-card-title {
    font-size: 1.1em;
  }
  
  .project-card-description {
    font-size: 0.85em;
    line-height: 1.5;
  }
}