.team-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.team-highlight {
  color: #6dc1f3;
  font-weight: 400;
}

.team-decoration {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 0;
  transform: translateX(-30%);
}

@media (max-width: 768px) {
  .team-decoration {
    display: none;
  }
}

.team-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  @media screen and (max-width: 992px) {
    flex-direction: column;
    margin-left: 32px;
    margin-right: 32px;
    align-items: flex-start;
    gap: 16px;
    max-width: calc(100% - 32px);
  }
}

.team-header > h2 {
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  max-width: 500px;
  @media screen and (max-width: 992px) {
    font-size: 32px;
  }
}

.team-members {
  display: flex;
  gap: 32px;
  z-index: 2;
  @media screen and (max-width: 992px) {
    flex-direction: column;
    margin-left: 32px;
    margin-right: 32px;
    gap: 16px;
  }
}

@media screen and (min-width: 992px) {
  .team-members > :nth-child(2) {
  margin-top: 64px;
  }
  .team-members > :nth-child(3) {
    margin-top: 24px;
  }
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-member > img {
  background-color: #fafafa;
  border-radius: 40px;
}

.team-card {
  background: white;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 32px;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.team-member-image {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border-radius: 40px;
  object-fit: cover;
  background: white;
}

.team-member-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

.contact-button {
  background: #374ba3;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 24px 24px 0 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-button:hover {
  background: #2c3e8a;
  transform: translateY(-2px);
}

.social-button {
  width: 32px;
  height: 32px;
  background: #374ba3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.social-button:hover {
  background: #2c3e8a;
  color: white;
  text-decoration: none;
}

/* Desktop spacing for staggered layout */
@media (min-width: 1024px) {
  /* Második oszlop minden sorban (2., 5., 8. elem stb.) */
  .team-member-container:nth-child(3n+2) {
    transform: translateY(80px);
  }
  
  /* Harmadik oszlop minden sorban (3., 6., 9. elem stb.) */
  .team-member-container:nth-child(3n+3) {
    transform: translateY(40px);
  }
}

.why-us-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-us-header {
  display: flex;
  justify-content: space-between;
  @media screen and (max-width: 992px) {
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }
}

.why-us-header-content {
  @media screen and (max-width: 992px) {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
  }
}

.why-us-header-content > h2 {
  font-size: 48px;
  text-transform: uppercase;
  font-weight: bold;
  max-width: 400px;
}

.why-us-header-content > p {
  max-width: 400px;
}

.why-us-card {
  @media screen and (min-width: 992px) {
    max-width: 550px;
    max-height: 320px !important;
    margin-right: 10%;
  }
  @media screen and (max-width: 992px) {
    display: none !important;
    margin-right: 0;   
  }
}

.why-us-content {
  display: flex;
  gap: 32px;
  @media screen and (max-width: 992px) {
    flex-direction: column;
    gap: 16px;
    margin: 0 16px;
  }
}

.contact-header > h2 {
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  font-size: 48px;
  max-width: 400px;
  @media screen and (max-width: 992px) {
    margin-left: 32px;
    margin-right: 32px;
  }
}

.contact-content {
  display: flex;
  gap: 32px;
  @media screen and (max-width: 992px) {
    flex-direction: column;
    padding: 0 16px 0 16px;
  }
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.contact-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #e2f3fd;
  flex: 1;
  padding: 48px 32px 24px 32px;
  border-radius: 40px;
}

.profession-card.mobile {
  display: none;
  @media screen and (max-width: 992px) {
    display: flex;
  }
}

.shortage-section {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  @media screen and (max-width: 992px) {
    max-width: 100%;
    padding: 32px 16px;
  }
}

.shortage-container {
  display: flex;
  gap: 16px;
  z-index: 2;

  @media screen and (max-width: 992px) {
    flex-direction: column;
  }

  img {
    z-index: 2;
  }
}

.shortage-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;

  h2 {
    font-size: 52px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
  }

  p {
    font-size: 16px;
  }
}

.shortage-decoration {
  position: absolute;
  top: -60px;
  left: 15px;
  width: 600px;
  z-index: 1;
  @media screen and (max-width: 992px) {
    max-width: 100%;
  }
}

@media screen and (max-width: 992px) {
  .image-card {
    max-height: 300px !important;
  }
  
  .image-card > img {
    min-height: 0 !important;
    object-fit: cover;
    object-position: 50% 20% !important;
  }
}

/* Whitepaper Modal Styles */
.whitepaper-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.whitepaper-modal[style*="display: block"] {
  display: flex !important;
}

.whitepaper-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whitepaper-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.whitepaper-modal-close:hover,
.whitepaper-modal-close:focus {
  color: #000;
}

.whitepaper-modal h2 {
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #333;
}

.whitepaper-info {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 24px;
}

.whitepaper-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whitepaper-form .form-group {
  display: flex;
  flex-direction: column;
}

.whitepaper-form input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.whitepaper-form input:focus {
  outline: none;
  border-color: #007bff;
}

.whitepaper-submit-btn {
  background-color: #f56e28;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.whitepaper-submit-btn:hover {
  background-color: #e55a1a;
}

.whitepaper-submit-btn .icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.whitepaper-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.whitepaper-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.whitepaper-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

@media screen and (max-width: 768px) {
  .whitepaper-modal-content {
    margin: auto;
    padding: 24px;
    width: 95%;
    max-height: 90vh;
  }
  
  .whitepaper-modal h2 {
    font-size: 24px;
  }
  
  .whitepaper-info {
    font-size: 14px;
  }
}

/* Team Slider Styles */
.team-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.team-nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #374BA3;
  width: 48px;
  height: 48px;
  color: white;
  border-radius: 99px;
  transform: rotate(-135deg);
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.2s ease;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.team-nav-button:last-child {
  transform: rotate(45deg);
}

.team-nav-button:hover {
  opacity: 0.8;
}

.team-slider-wrapper {
  position: relative;
  z-index: 2;
}

.team-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 1.5rem;
  z-index: 2;
}

.team-slider::-webkit-scrollbar {
  display: none;
}

.team-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-member-card {
  flex-shrink: 0;
  width: 280px;
  max-width: 280px;
  scroll-snap-align: start;
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
}

.team-member-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.team-member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-member-name {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0;
}

.team-member-position {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6dc1f3;
}

.team-member-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #555;
  font-weight: 500;
}

.team-contact-item i {
  width: 12px;
  height: 12px;
  font-size: 10px;
}

.team-member-social {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.team-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #374BA3;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.team-social-button:hover {
  background-color: #2e3192;
  color: white;
  text-decoration: none;
}

.team-social-button i {
  font-size: 14px;
}

@media (max-width: 768px) {
  .team-nav-buttons {
    display: none;
  }
  
  .team-member-card {
    width: 250px;
    max-width: 250px;
    padding: 1.25rem;
  }
  
  .team-member-image-container {
    height: 150px;
  }
}