/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination .page-numbers {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.pagination .page-numbers li {
  display: inline-block;
}

.pagination .page-numbers a,
.pagination .page-numbers span.current {
  display: inline-block;
  padding: 0.5em 0.75em;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.pagination .page-numbers a {
  background-color: #fff;
  color: #333;
}

.pagination .page-numbers a:hover {
  background-color: #f7f7f7;
  color: #111;
}

.pagination .page-numbers span.current {
  background-color: #4361ee;
  border-color: #4361ee;
  color: white;
  cursor: default;
}

.pagination .page-numbers a.prev,
.pagination .page-numbers a.next {
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.4em 0.6em;
}

.pagination .page-numbers span.prev,
.pagination .page-numbers span.next {
  opacity: 0.4;
  pointer-events: none;
}

.ppd-tag.ppd-tag--more {
  background-color: #ffffff;
  color: #4361ee;
  border: 1px dashed #4361ee;
}
			
			
@media (max-width: 600px) {
  .pagination .page-numbers {
    gap: 0.25rem;
  }
  .pagination .page-numbers a,
  .pagination .page-numbers span.current {
    padding: 0.4em 0.6em;
    font-size: 0.85rem;
  }
}

            /* Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive */
  gap: 1.5rem;
  margin-top: 2rem;
}
.profile-title,
.profile-position, .profile-location {
  white-space: nowrap;        /* prevent wrapping to the next line */
  overflow: hidden;           /* hide anything that overflows */
  text-overflow: ellipsis;    /* add "..." at the end if text is too long */
  font-size: clamp(0.85rem, 1.2vw, 1.1rem); /* responsive font size that shrinks on small screens */
  line-height: 1.2;
  width: 100%;
  display: block;
}

@media (min-width: 1200px) {
  .jobs-grid {
    grid-template-columns: repeat(4, 1fr); /* Force 4 per row */
  }
}

            /* No Jobs Found */
            .no-jobs {
                padding: 3rem;
                text-align: center;
                background: #f8fafc;
                border-radius: 12px;
                margin-top: 2rem;
            }

            .no-jobs-content i {
                font-size: 3rem;
                color: #94a3b8;
                margin-bottom: 1rem;
            }

            .no-jobs-content h3 {
                font-size: 1.25rem;
                color: #1e293b;
                margin: 0 0 0.5rem;
            }

            .no-jobs-content p {
                color: #64748b;
                margin: 0;
            }

			.tags-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-tags-wrapper {
  position: relative;
  height: 4.8rem; /* max tag display height */

}			
			
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.profile-tags {
  max-height: 4.8rem;
}


.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #4361ee;
}



.profile-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border: 3px solid #f1f5f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-socials {
  position: absolute;
  bottom: 0.5rem;
  left: 1.25rem;
  right: 1.25rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
  background: #fff;
	
}			
			
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}			
			
.profile-title {
  font-size: 1.15rem;
  margin: 0.25rem 0;
}

.profile-meta {
  gap: 0.6rem;
  min-height: 1.5rem;
}

.profile-private {
  border: 3px dashed #f59e0b; /* amber border */
  position: relative;
}

.private-notice {
  background: #fff8e1;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  border-bottom: 2px solid #f59e0b;
  text-align: center;
}
.private-notice i {
  margin-right: 6px;
  color: #f59e0b;
}


.ppd-tag {
  background-color: #4361ee;
  color: white;
  border: 1px solid #4361ee;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1;
  display: inline-block;
}

.ppd-tag {
    background-color: #4361ee;
    color: white;
    border: 1px solid #4361ee;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    line-height: 1;
}

/* Locked / Private Cards â€” blurred style to match SocialMediaBoard */
.profile-card.profile-locked {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: center;
  padding-bottom: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}



/* Real photo blurred with soft overlay */
.profile-card.profile-locked .locked-photo {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 1rem auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f1f5f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.profile-card.profile-locked .locked-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.9);
  transform: scale(1.1);
  transition: filter 0.3s ease;
}

/* Soft gradient overlay over blurred photo */
.profile-card.profile-locked .photo-blur-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.55) 100%
  );
  backdrop-filter: blur(2px);
}

/* Position text */
.profile-card.profile-locked .profile-position {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

/* Message footer */
.profile-card.profile-locked .locked-message {
  background: #f9fafb;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  line-height: 1.4;
}

.profile-card.profile-locked .locked-message i {
  color: #3b82f6;
  margin-right: 6px;
}

/* Optional shimmer for premium feel */
.profile-card.profile-locked::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 3s infinite;
  border-radius: inherit;
}
@keyframes shimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

			
            /* Responsive Adjustments */
            @media (max-width: 1024px) {
                .jobs-grid {
                    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                }
            }

            @media (max-width: 768px) {
                .recruiter-dashboard {
                    padding: 1.5rem;
                }
                
                .jobs-grid {
                    grid-template-columns: 1fr;
                }
                
                .form-grid {
                    grid-template-columns: 1fr;
                }
            }
			.social-icons {
    display: inline-flex;
    gap: 8px;
    margin-left: 8px;
}

.social-icons i {
    color: #4361ee;
    font-size: 1rem;
}

.featured-card {
  border: 3px solid gold;
  position: relative;
}

.featured-star {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.4rem;
  color: gold;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
			
			
.dashboard-btn.cta-portfolio {
  background: #fff;                 /* blue fill */
  
  padding: 0.6rem 1.2rem;
  border-width: 1px;
  border-color: #3b82f6 ;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
}
			
/* === Avatar placeholder styling === */
.empty-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.5rem;
  color: #9ca3af;
}

.portfolios-dashboard {
	max-width: 1200px;
    margin: 2rem auto !important;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
	
}



/* === Profile Title Improvements === */
.profile-title {
  font-size: 1.15rem;
  margin: 0.9rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 2.6em;
  max-height: 2.6em;
}

/* === Position Text Improvements === */
.profile-position {
  min-height: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* === Location Chips === */
.location-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}


/* === More Indicator === */
.more-indicator {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  cursor: help;
  line-height: 1.2;
}

/* === Improved Profile Grid Layout === */
.profile-grid {
  padding: 1.25rem;
  display: grid;
  grid-template-rows: 
    80px        /* photo */
    auto        /* name (now 2 lines max) */
    auto        /* position */
    auto        /* location */
    auto        /* tags (dynamic height) */
    1fr;        /* spacer */
  gap: 0.6rem;
  min-height: 360px;
}

/* === Better Tags Wrapper === */
.profile-tags-wrapper {
  position: relative;
  min-height: 2rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: flex-start;
  max-height: 3.5rem;
  overflow: hidden;
  position: relative;
}

/* Show fade effect when there are more tags */
.profile-tags:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-tags.compact-list:has(.more-indicator):after {
  opacity: 1;
}

/* === Location Tags Container === */
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  min-height: 1.5rem;
}

/* === Profile Meta Alignment === */
.profile-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.profile-meta i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #64748b;
}

/* === Social Icons Positioning === */
.profile-socials {
  position: absolute;
  bottom: 0.5rem;
  left: 1.25rem;
  right: 1.25rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Responsive Improvements === */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-rows: 
      70px
      auto
      auto
      auto
      auto
      1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .profile-photo {
    width: 70px;
    height: 70px;
  }
  
  .profile-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    min-height: 2.4em;
  }
  
  .skill-tag,
  .location-chip {
    font-size: 0.65rem;
    max-width: 60px;
  }
}



/* Portfolio Name - Multi-line with proper wrapping */
.profile-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.25rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 2.6em;
  max-height: 2.6em;
  color: #1e293b;
  text-align: center;
}

/* Position - Single line with elegant truncation */
.profile-position {
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  text-wrap: auto;
}

.position-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
}

/* === Location Styling === */
.profile-location {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 1.5rem;
}

/* Locations - Horizontal Scroll */
.location-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  min-height: 2rem;
  max-height: 2.5rem;
}

.location-container::-webkit-scrollbar {
  height: 4px;
}

.location-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.location-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.location-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.location-item {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(3, 105, 161, 0.1);
}

/* === Skill Tags Styling === */
.profile-tags-container {
  position: relative;
  min-height: 2.5rem;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
  max-height: 3.2rem;

}

.skill-tag {
  background: linear-gradient(135deg, #4361ee, #3a56d4);
  color: white;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85px;
  box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
  border: 1px solid #3a56d4;
  transition: transform 0.1s ease;
}

.skill-tag:active {
  transform: scale(0.95);
}

.tags-more {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  line-height: 1.2;
  align-self: center;
}



/* === Profile Meta Alignment === */
.profile-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.profile-meta i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* === Social Icons Positioning === */
.profile-socials {
  position: absolute;
  bottom: 0.5rem;
  left: 1.25rem;
  right: 1.25rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Enhanced Card Styling === */
.profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 85%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-bottom: 2.5rem;
  min-height: 300px;
  border: 1px solid #f1f5f9;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* === Responsive Improvements === */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-rows: 
      70px
      auto
      auto
      auto
      auto
      1fr;
    gap: 0.6rem;
    padding: 1rem;
    min-height: 360px;
  }
  
  .profile-photo {
    width: 70px;
    height: 70px;
  }
  
  .profile-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    min-height: 2.4em;
  }
  
  .location-item {
    font-size: 0.7rem;
    max-width: 75px;
    padding: 0.2rem 0.5rem;
  }
  
  .skill-tag {
    font-size: 0.68rem;
    max-width: 70px;
    padding: 0.25rem 0.55rem;
  }
  
  .tags-grid {
    max-height: 2.8rem;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .profile-grid {
    min-height: 340px;
  }
  
  .location-item {
    max-width: 65px;
    font-size: 0.65rem;
  }
  
  .skill-tag {
    max-width: 60px;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* === Featured Card Enhancements === */
.featured-card {
  border: 2px solid #fbbf24;
  background: linear-gradient(135deg, #fff, #fffbeb);
}

.featured-card::before {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.featured-card .skill-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #d97706;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* === Private Card Styling === */
.profile-private {
  border: 2px dashed #f59e0b;
  background: linear-gradient(135deg, #fff, #fffbeb);
}

/* === Ensure consistent spacing === */
.profile-name {
  margin-bottom: 0.2rem;
  margin-top: 1.0rem;
	
}

.profile-position {
  margin: 0.1rem 0;
}

.profile-location {
  margin: 0.1rem 0;
}

.profile-tags-container {
  margin: 0.1rem 0 0.5rem 0;
}

/* ============================================================
 * ENHANCED ERROR STYLING
 * ============================================================ */

/* Field-specific error states */
.field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message i {
    font-size: 0.75rem;
}

/* Enhanced toast for errors */
#action-feedback.error {
    background: #ef4444;
    border-left: 4px solid #dc2626;
}

#action-feedback.warning {
    background: #f59e0b;
    border-left: 4px solid #d97706;
}

/* Form error overlay enhancements */
#form-error-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#form-error-message {
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.5;
}

/* Loading state improvements */
.btn-spinner-wrap.loading {
    position: relative;
}

.btn-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.btn-spinner-wrap.loading .btn-spinner-overlay {
    display: flex;
}

/* Progress bar error state */
#portfolio-progress-fill.error {
    background: #ef4444 !important;
}

/* Required field indicators */
.required-field::after {
    content: " *";
    color: #ef4444;
}

/* Validation state indicators */
.validation-success {
    border-color: #10b981 !important;
}

.validation-error {
    border-color: #ef4444 !important;
}

/* Enhanced placeholder styling for private portfolios */
.placeholder-content {
  opacity: 0.7;
}

.blurred-text {
  color: #94a3b8 !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  filter: blur(0.5px);
}

.blurred-icon {
  color: #cbd5e1 !important;
  opacity: 0.6;
}

/* Enhanced locked card styling */
.profile-card.profile-locked .profile-grid.locked {
  position: relative;
}

.profile-card.profile-locked .locked-photo {
  position: relative;
}

.profile-card.profile-locked .locked-photo img {
  filter: blur(4px) brightness(0.95);
  transform: scale(1.05);
}

.photo-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

/* Ensure placeholder content doesn't look interactive */
.profile-card.profile-locked .placeholder-content .skill-tag,
.profile-card.profile-locked .placeholder-content .location-chip,
.profile-card.profile-locked .placeholder-content .location-item {
  pointer-events: none;
  cursor: default;
}

/* Make the locked message more prominent */
.profile-card.profile-locked .locked-message {
  background: linear-gradient(135deg, #fef3c7, #fef7cd);
  border: 1px solid #fcd34d;
  color: #92400e;
  font-weight: 600;
  margin-top: 0.5rem;
  border-radius: 8px;
  padding: 0.75rem;
}

.profile-card.profile-locked .locked-message i {
  color: #d97706;
}

/* ============================
   POSITION TAGS (New Improved)
   ============================ */



.positions-more {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: help;
}

.position-chip {
    display: inline-block;
    background: #eef4ff;
    border: 1px solid #d1ddff;
    color: #3949ab;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 6px;
    margin: 2px 4px 2px 0;
    white-space: nowrap;
	text-wrap: auto;
}
