/* ============================================
   CLOUDEMY — Careers Page Styles
   ============================================ */

/* --- Why Join Section --- */
.perks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.perk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(124,58,237,0.08);
  border-color: var(--c-purple-light);
}
.perk-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: var(--c-purple-faint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.perk-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--c-purple);
}
.perk-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.perk-card p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}

/* --- Openings List --- */
.openings__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.opening-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.3s ease;
}
.opening-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
  border-color: var(--c-purple-light);
}
.opening-card__info { flex: 1; }
.opening-card__info h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.opening-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.opening-card__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.opening-card__meta svg {
  width: 15px;
  height: 15px;
  color: var(--c-purple-light);
}
.opening-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.opening-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--c-purple-faint);
  color: var(--c-purple);
}
.opening-card__action {
  flex-shrink: 0;
}

/* --- Job Detail Page --- */
.job-detail {
  max-width: 860px;
  margin: 0 auto;
}
.job-detail__header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-border);
}
.job-detail__header h2 {
  margin-bottom: 12px;
}
.job-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}
.job-detail__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-detail__meta svg {
  width: 16px;
  height: 16px;
  color: var(--c-purple-light);
}
.job-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.job-detail__tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--c-purple-faint);
  color: var(--c-purple);
}

/* Job content sections */
.job-section {
  margin-bottom: 36px;
}
.job-section h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-purple-faint);
}
.job-section p {
  font-size: 0.95rem;
  line-height: 1.8;
}
.job-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-section ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text-body);
  padding-left: 24px;
  position: relative;
}
.job-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-purple-light);
}

/* Summary grid */
.job-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.job-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.job-summary-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
}
.job-summary-item__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
}

/* Internship notice */
.internship-notice {
  background: linear-gradient(135deg, var(--c-purple-faint), #ede9fe);
  border-left: 4px solid var(--c-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.internship-notice h4 {
  font-size: 0.95rem;
  color: var(--c-purple-dark);
  margin-bottom: 8px;
}
.internship-notice p {
  font-size: 0.88rem;
  color: var(--c-text-body);
  margin-bottom: 6px;
  line-height: 1.7;
}
.internship-notice p:last-child { margin-bottom: 0; }

/* Apply CTA bar */
.job-apply-bar {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}
.job-apply-bar p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  margin: 0;
}

/* --- Apply Modal --- */
.apply-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.apply-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.apply-modal {
  background: linear-gradient(160deg, #a121ca 0%, #7b1fe4 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.apply-modal-overlay.open .apply-modal {
  transform: scale(1);
}
.apply-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.apply-modal__close:hover {
  background: rgba(255,255,255,0.25);
}
.apply-modal__close svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.apply-modal__icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}
.apply-modal h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.apply-modal p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.apply-modal__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
}
.apply-modal__email svg {
  width: 20px;
  height: 20px;
}

/* --- No Openings CTA --- */
.careers-cta {
  text-align: center;
}
.careers-cta h2 { color: #fff; margin-bottom: 14px; }
.careers-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .opening-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .opening-card__action { width: 100%; }
  .opening-card__action .btn { width: 100%; justify-content: center; }
  .job-summary-grid { grid-template-columns: 1fr; }
  .job-apply-bar {
    flex-direction: column;
    text-align: center;
  }
  .job-apply-bar .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .perks__grid { grid-template-columns: 1fr; }
  .apply-modal { padding: 36px 24px; }
}
