/* ============================================================
   Alchotech Solutions - Careers Page Stylesheet (careers.css)
   ============================================================ */

/* --- Why Work at Alchotech (Split Light Theme Layout) --- */
.careers-why-light-section {
  background-color: #ffffff;
  padding: 70px 0 80px;
  color: #0f172a;
}

.why-light-wrapper {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.why-team-img {
  width: 100%;
  height: 290px !important  ;
  object-fit: cover;
  object-position: left;
  border-radius: 24px 0 0 24px;
  display: block;
}

/* 2x2 Grid with Zero Extra Gaps */
.why-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.why-grid-block {
  padding: 24px 28px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s ease;
}

.why-grid-block:nth-child(2n) {
  border-right: none;
}

.why-grid-block:nth-child(n + 3) {
  border-bottom: none;
}

.why-grid-block:hover {
  background: #f8fafc;
}

.why-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.why-block-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(13, 82, 243, 0.08);
  border: 1px solid rgba(13, 82, 243, 0.2);
  color: #0d52f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.why-grid-block:hover .why-block-icon {
  background: #0d52f3;
  color: #ffffff;
  transform: scale(1.06);
}

.why-block-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.why-block-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.why-block-text .chevron {
  color: #0d52f3;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Open Positions Section (Exact match to reference design image) --- */
.careers-openings-section {
  padding: 80px 0 100px;
  background-color: #f7f6f2;
}

.job-positions-list {
  border-top: 1px solid #e5e4e0;
  width: 100%;
}

.job-position-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid #e5e4e0;
  transition: all 0.25s ease;
}

.job-position-info {
  flex: 1;
  padding-right: 32px;
}

.job-position-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.job-position-title a {
  color: #18181b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.job-position-title a:hover {
  color: #0d52f3;
}

.job-position-desc {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 650px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-position-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.job-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1.5px solid #27272a;
  background-color: transparent;
  color: #18181b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.job-tag-pill svg {
  width: 14px;
  height: 14px;
  stroke: #18181b;
  stroke-width: 2;
  flex-shrink: 0;
}

.job-position-action {
  flex-shrink: 0;
  padding-top: 2px;
}

.job-apply-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #18181b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.job-apply-link svg.apply-arrow-icon {
  width: 18px;
  height: 18px;
  stroke: #18181b;
  stroke-width: 2.5;
  transition:
    transform 0.25s ease,
    stroke 0.25s ease;
}

.job-apply-link:hover {
  color: #0d52f3;
}

.job-apply-link:hover svg.apply-arrow-icon {
  transform: translate(3px, -3px);
  stroke: #0d52f3;
}

.job-position-item:hover .job-position-title a {
  color: #0d52f3;
}

@media (max-width: 767.98px) {
  .job-position-item {
    flex-direction: column;
    gap: 18px;
    padding: 24px 0;
  }

  .job-position-info {
    padding-right: 0;
  }

  .job-position-action {
    padding-top: 0;
    align-self: flex-start;
  }
}

/* --- Career Details Page Styles (Exact Reference Screenshot) --- */
.career-details-section {
  padding: 80px 0 110px;
  background-color: #ffffff;
}

.job-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 16px 0 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
}

.job-meta-item .meta-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 6px;
}

.job-meta-item .meta-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.details-content-block {
  margin-bottom: 42px;
}

.details-block-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.details-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 20px;
}

.details-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.details-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #334155;
}

.details-check-item i {
  color: #0d52f3;
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Sidebar Job Overview Box (Exact Reference Screenshot Match) */
.job-overview-sidebar {
  background: #edf3ff;
  border: 1px solid #d8e5ff;
  border-radius: 24px;
  padding: 38px 32px;
  position: sticky;
  top: 110px;
  box-shadow: 0 10px 30px rgba(13, 82, 243, 0.05);
}

.overview-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 26px;
  letter-spacing: -0.3px;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}

.overview-row .label {
  font-weight: 700;
  color: #0f172a;
  min-width: 95px;
}

.overview-row .value {
  font-weight: 500;
  color: #475569;
}

.overview-row .value a {
  color: #0d52f3;
  text-decoration: underline;
  font-weight: 500;
}

.overview-apply-btn {
  background: #0d52f3;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  padding: 14px 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(13, 82, 243, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.overview-apply-btn:hover {
  background: #0b43c7;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 82, 243, 0.4);
}

/* --- Don't see a role that fits - Floating Avatar CTA Section (Exact Screenshot Design) --- */
.careers-avatar-section {
  padding: 0 0 100px;
  background-color: #f8fafc;
}

.careers-avatar-cta {
  background-color: #ededf0;
  background-image: url("../images/backgrounds/blue-circle-ring-alchotech.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 28px;
  padding: 95px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.avatar-cta-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.avatar-cta-title {
  font-size: 2.65rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.avatar-cta-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 540px;
  margin: 0 auto 30px;
  font-weight: 400;
}

.avatar-cta-btn {
  background-color: #000000;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: 50px;
  padding: 14px 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.avatar-cta-btn:hover {
  background-color: #222222;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff !important;
}

.avatar-cta-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.avatar-cta-btn:hover i {
  transform: translateX(4px);
}

/* Floating Avatars Base */
.avatar-floating {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  z-index: 2;
  background: #ffffff;
  border: 2px solid #ffffff;
  animation: floatAvatar 5s ease-in-out infinite alternate;
}

.avatar-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.avatar-floating:hover {
  transform: scale(1.15) translateY(-4px) !important;
  z-index: 10;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
}

/* Subtle float keyframes */
@keyframes floatAvatar {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* Alternate animation delays for organic feel */
.avatar-1 {
  width: 66px;
  height: 66px;
  animation-delay: 0s;
}
.avatar-2 {
  width: 80px;
  height: 80px;
  animation-delay: 0.8s;
}
.avatar-3 {
  width: 72px;
  height: 72px;
  animation-delay: 1.5s;
}
.avatar-4 {
  width: 54px;
  height: 54px;
  animation-delay: 0.4s;
}
.avatar-5 {
  width: 84px;
  height: 84px;
  animation-delay: 2s;
}
.avatar-6 {
  width: 76px;
  height: 76px;
  animation-delay: 0.3s;
}
.avatar-7 {
  width: 54px;
  height: 54px;
  animation-delay: 1.2s;
}
.avatar-8 {
  width: 74px;
  height: 74px;
  animation-delay: 1.8s;
}
.avatar-9 {
  width: 62px;
  height: 62px;
  animation-delay: 0.6s;
}
.avatar-10 {
  width: 82px;
  height: 82px;
  animation-delay: 2.2s;
}

/* Mobile Responsiveness */
@media (max-width: 1199px) {
  .avatar-1,
  .avatar-7 {
    display: none;
  }
}

@media (max-width: 991px) {
  .why-team-img {
    min-height: 280px;
    border-radius: 24px 24px 0 0;
  }
  .why-grid-container {
    grid-template-columns: 1fr;
  }
  .why-grid-block {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 18px;
  }
  .job-meta-bar {
    gap: 20px;
  }
  .job-overview-sidebar {
    margin-top: 40px;
    position: static;
  }
  .careers-avatar-cta {
    padding: 75px 24px;
  }
  .avatar-cta-title {
    font-size: 2.1rem;
  }
  .avatar-4,
  .avatar-9 {
    display: none;
  }
  .avatar-2 {
    left: 4%;
    top: 8%;
    width: 58px;
    height: 58px;
  }
  .avatar-5 {
    left: 6%;
    bottom: 8%;
    width: 64px;
    height: 64px;
  }
  .avatar-6 {
    right: 4%;
    top: 8%;
    width: 58px;
    height: 58px;
  }
  .avatar-10 {
    right: 6%;
    bottom: 8%;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 575px) {
  .avatar-floating {
    display: none !important;
  }
  .careers-avatar-cta {
    padding: 50px 20px;
    border-radius: 20px;
  }
  .avatar-cta-title {
    font-size: 1.75rem;
  }
  .avatar-cta-desc {
    font-size: 0.95rem;
  }
}

/* ============================================================
   Job Application Modal Styling (Light Theme Override)
   ============================================================ */
#applyJobModal .apply-job-modal-content {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25) !important;
  border: 1px solid #e2e8f0 !important;
}

#applyJobModal .apply-modal-badge {
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
  color: #1d4ed8 !important;
}

#applyJobModal .apply-modal-close-btn {
  background-color: #f1f5f9 !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.8 !important;
  transition: all 0.25s ease !important;
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 10 !important;
}

#applyJobModal .apply-modal-close-btn:hover {
  background-color: #e2e8f0 !important;
  opacity: 1 !important;
  transform: rotate(90deg) !important;
}

/* Explicit Light Inputs for Modal */
#applyJobModal .form-label-custom {
  color: #1e293b !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  margin-bottom: 7px !important;
}

#applyJobModal input.form-control-custom {
  height: 52px !important;
  padding: 0 18px !important;
  font-size: 0.95rem !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

#applyJobModal input.form-control-custom::-webkit-input-placeholder {
  color: #94a3b8 !important;
}

#applyJobModal input.form-control-custom::-moz-placeholder {
  color: #94a3b8 !important;
}

#applyJobModal input.form-control-custom::placeholder {
  color: #94a3b8 !important;
}

#applyJobModal input.form-control-custom:focus {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12) !important;
}

/* Resume Upload Zone */
#applyJobModal .resume-upload-zone {
  background-color: #f8fafc !important;
  border: 2px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 28px 20px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

#applyJobModal .resume-upload-zone:hover,
#applyJobModal .resume-upload-zone.file-selected {
  background-color: #f0f6ff !important;
  border-color: #2563eb !important;
}

#applyJobModal .upload-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.45rem;
  transition: all 0.3s ease;
}

#applyJobModal .resume-upload-zone:hover .upload-icon-circle {
  background-color: #1d4ed8;
  color: #ffffff;
  transform: scale(1.08);
}

/* Submit Button */
#applyJobModal .modal-submit-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  height: 52px !important;
  border-radius: 14px !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.28) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  cursor: pointer !important;
}

#applyJobModal .modal-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.38) !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* ============================================================
   Life at AlchoTech - Pure CSS Accordion Gallery (No JS)
   ============================================================ */
.life-at-alchotech-section {
  padding: 85px 0 95px;
  background-color: #fbfcfd;
  position: relative;
  overflow: hidden;
}

.life-at-alchotech-section .sec-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.tv-project-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

@media (max-width: 991px) {
  .tv-project-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

.tv-project-wrapper .tv-project-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  height: 520px;
  flex: 1;
  min-width: 90px;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

@media (max-width: 991px) {
  .tv-project-wrapper .tv-project-card {
    width: 100%;
    height: 360px;
    flex: none !important;
  }
}

.tv-project-wrapper .tv-project-card .project-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 28px;
  overflow: hidden;
}

.tv-project-wrapper .tv-project-card .project-thumb .image {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.tv-project-wrapper .tv-project-card .project-thumb .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  transition:
    transform 0.6s ease,
    object-position 0.4s ease;
}

/* Specific Card Image Framing Adjustments (Framed to show people perfectly) */
.tv-project-wrapper .tv-project-card:nth-child(1) .project-thumb .image img {
  object-position: center 72%;
}
.tv-project-wrapper .tv-project-card:nth-child(2) .project-thumb .image img {
  object-position: center 30%;
}
.tv-project-wrapper .tv-project-card:nth-child(3) .project-thumb .image img {
  object-position: center 55%;
}
.tv-project-wrapper .tv-project-card:nth-child(4) .project-thumb .image img {
  object-position: center 65%;
}
.tv-project-wrapper .tv-project-card:nth-child(5) .project-thumb .image img {
  object-position: center 45%;
}
.tv-project-wrapper .tv-project-card:nth-child(6) .project-thumb .image img {
  object-position: center 88%;
}

.tv-project-wrapper .tv-project-card:hover .project-thumb .image img {
  transform: scale(1.05);
}

.tv-project-wrapper .tv-project-card .project-thumb .image::before {
  content: "";
  position: absolute;
  z-index: 2;
  background: linear-gradient(
    0deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.4) 30%,
    rgba(15, 23, 42, 0.05) 60%,
    transparent 100%
  );
  bottom: 0;
  width: 100%;
  height: 100%;
  left: 0;
}

/* Collapsed State: Vertical Title & Top Arrow Circle */
.tv-project-wrapper .tv-project-card .active-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.tv-project-wrapper .tv-project-card .active-content span {
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%) rotate(-45deg);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(15px);
  border-radius: 50%;
}

.tv-project-wrapper .tv-project-card .active-content h3 {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) rotate(180deg);
  color: #ffffff;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@media (max-width: 991px) {
  .tv-project-wrapper .tv-project-card .active-content {
    display: none !important;
  }
}

/* Single Title (Expanded Content) */
.tv-project-wrapper .tv-project-card .project-content {
  position: absolute;
  bottom: 35px;
  left: 35px;
  right: 35px;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease 0.1s,
    transform 0.4s ease 0.1s,
    visibility 0.4s ease 0.1s;
  pointer-events: none;
}

.tv-project-wrapper .tv-project-card .project-content h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.3px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
  .tv-project-wrapper .tv-project-card .project-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    left: 24px;
    bottom: 24px;
    right: 24px;
  }
  .tv-project-wrapper .tv-project-card .project-content h2 {
    font-size: 1.4rem;
  }
}

/* ==================== PURE CSS HOVER ACCORDION EXPANSION ==================== */

/* By default (when container is not hovered), Card 1 is expanded */
.tv-project-wrapper:not(:hover) .tv-project-card:first-child {
  flex: 4;
}

.tv-project-wrapper:not(:hover) .tv-project-card:first-child .active-content {
  opacity: 0;
  visibility: hidden;
}

.tv-project-wrapper:not(:hover) .tv-project-card:first-child .project-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* When ANY card is hovered, it expands to flex: 4 */
.tv-project-wrapper .tv-project-card:hover {
  flex: 4;
}

.tv-project-wrapper .tv-project-card:hover .active-content {
  opacity: 0;
  visibility: hidden;
}

.tv-project-wrapper .tv-project-card:hover .project-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* When wrapper IS hovered, cards that are NOT hovered collapse to flex: 1 and show active-content */
.tv-project-wrapper:hover .tv-project-card:not(:hover) {
  flex: 1;
}

.tv-project-wrapper:hover .tv-project-card:not(:hover) .active-content {
  opacity: 1;
  visibility: visible;
}

.tv-project-wrapper:hover .tv-project-card:not(:hover) .project-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
