/* 
   Premium Modern UI/UX Enhancements for the Light Theme
*/

/* Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  top: -100px;
  left: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  top: 40vh;
  right: -200px;
  animation-delay: 3s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* Gradient Texts */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glowing-text {
  color: #059669;
  /* Darker green for light theme */
  text-shadow: 0 0 10px rgba(5, 150, 105, 0.2);
}

/* Hero Section */
.glass-hero {
  position: relative;
  margin-top: var(--sp-6);
  z-index: 1;
}

.hero-animate {
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Buttons */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff !important;
  font-weight: 600;
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

.btn-outline-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-glass:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Glassmorphism Cards */
.glass-section {
  position: relative;
  z-index: 1;
}

.glow-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  margin: 15px auto 25px;
}

.text-center {
  text-align: center;
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.glowing-badge {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* Specific Section adjustments */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-3);
  display: inline-block;
}

/* Clarity Inspired Layout (Two-Column Bento) */

.clarity-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 6rem 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.clarity-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.clarity-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.clarity-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: #0f172a !important;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.clarity-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #64748b !important;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.clarity-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #00d28e;
  color: #000000 !important;
  padding: 0.95rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
}

/* Skeleton Loading Styles */
.skel-block {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pos-card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 180px;
}

@media (min-width: 768px) {
  .pos-card-skeleton {
    flex-direction: row;
    height: 160px;
  }
}

.skel-body {
  padding: var(--sp-5) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.clarity-btn:hover {
  background: #00b87c;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 210, 142, 0.3);
}

.clarity-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.clarity-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

/* Timeline Chain Layout */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e2e8f0;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -22px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -22px;
}

.timeline-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.timeline-content p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 22px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 4rem !important;
    padding-right: 0 !important;
    left: 0 !important;
  }

  .timeline-dot {
    left: 0 !important;
    right: auto !important;
  }
}

.clarity-card:hover {
  transform: translateY(-5px);
  border-color: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.clarity-card-icon {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #059669;
  /* Green from screenshot */
  line-height: 1;
  min-width: 40px;
}

.clarity-card-content h3 {
  font-size: 1.1rem;
  color: #0f172a !important;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.clarity-card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b !important;
  margin: 0;
}

@media (max-width: 900px) {
  .clarity-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}


/* Fix step-badge text */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

/* Featured Postings Section Premium overrides */
#featured-listings-body .position-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}
#featured-listings-body .position-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: #2563eb;
}
#featured-listings-body .pos-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#featured-listings-body .pos-dept-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(37,99,235,0.07);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.15);
  padding: 0.35em 0.8em;
  border-radius: 99px;
  white-space: nowrap;
}
#featured-listings-body .pos-deadline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--border);
  padding: 0.25em 0.6em;
  border-radius: 4px;
}
#featured-listings-body .pos-deadline.expired {
  color: #d93025;
  border-color: #d93025;
  background: rgba(217,48,37,0.05);
}
#featured-listings-body .pos-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a !important;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.2;
}
#featured-listings-body .pos-title:hover {
  color: #2563eb !important;
}
#featured-listings-body .pos-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}
#featured-listings-body .pos-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#featured-listings-body .pos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#featured-listings-body .tag {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}
#featured-listings-body .pos-card-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 12px;
}
#featured-listings-body .pos-btn {
  background: #0f172a;
  color: #ffffff !important;
  border: 1px solid #0f172a;
  border-radius: 100px;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  transition: all 0.2s;
  text-align: center;
  justify-content: center;
  font-size: 0.92rem;
  flex: 1;
}
#featured-listings-body .pos-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* Detail Page Back Button styling */
/* Detail Page Back Link styling */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.back-link:hover {
  color: #2563eb !important;
}
.back-link .back-arrow {
  transition: transform 0.2s ease;
}
.back-link:hover .back-arrow {
  transform: translateX(-3px);
}

/* --- Mobile Responsive Optimizations (< 768px) --- */
@media (max-width: 768px) {
  .clarity-section {
    padding: 3rem 0 !important;
    gap: 2.5rem !important;
  }
  
  .glass-hero {
    padding: 3.5rem 1rem !important;
  }
  
  .clarity-heading {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
  
  .clarity-card {
    padding: 1.25rem !important;
    gap: 1rem !important;
    border-radius: 12px !important;
  }
  
  .clarity-card-icon {
    font-size: 1.6rem !important;
    min-width: 32px !important;
  }
  
  .desktop-br {
    display: none !important;
  }
  
  /* Buttons row stack on mobile */
  .btn-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .btn-row a, .btn-row button {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    justify-content: center;
    display: inline-flex !important;
  }
}