/* Process Tabs Styles */

.process-steps-container {
  max-width: 1200px;
  margin: 60px auto 0;
}

/* Tab Buttons */
.process-tab-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.process-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid rgba(139, 106, 78, 0.2);
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tab-number {
  font-family: var(--font--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--derun-toprak);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.process-tab-btn:hover .tab-number,
.process-tab-btn.active .tab-number {
  opacity: 1;
  color: var(--doga-yesil);
}

.tab-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--derun-toprak);
  text-align: center;
  opacity: 0.7;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.process-tab-btn:hover .tab-title,
.process-tab-btn.active .tab-title {
  opacity: 1;
  color: var(--doga-yesil);
}

/* Tab Contents */
.process-tab-contents {
  position: relative;
  min-height: 300px;
}

.process-tab-content {
  display: none;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.process-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Wrapper */
.process-content-wrapper {
  display: contents;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  padding: 40px;
  background: rgba(246, 244, 239, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 24px;
}

.process-content-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-content-icon img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(124, 154, 109, 0.15));
  transition: all 0.4s ease;
}

.process-tab-content.active .process-content-icon img {
  animation: iconBounce 0.8s ease;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.process-content-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  text-align: center;
  margin: 0 auto; /* center horizontally */
}

.responsive-image {
  display: flex;
  flex-direction: column; /* ⬅️ stack vertically */
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.responsive-image img {
  width: 100%;
  height: auto;
  max-width: 800px; /* limit on desktop */
  display: block;
}

.process-content-title {
  font-family: var(--font--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--derun-toprak);
  margin: 0 0 16px 0; /* bottom margin between text and image */
  padding: 0;
}

.process-content-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--black);
  opacity: 0.85;
  margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .process-tab-buttons {
    gap: 16px;
  }

  .process-tab-btn {
    padding: 20px 12px;
  }

  .tab-number {
    font-size: 28px;
  }

  .tab-title {
    font-size: 14px;
  }

  .process-content-wrapper {
    gap: 40px;
    padding: 32px;
  }

  .process-content-icon img {
    width: 160px;
    height: 160px;
  }

  .process-content-title {
    font-size: 28px;
  }

  .process-content-description {
    font-size: 17px;
  }
}

@media screen and (max-width: 991px) {
  .process-tab-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .process-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
    text-align: center;
  }

  .process-content-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 767px) {
  .process-steps-container {
    margin-top: 40px;
  }

  .process-tab-buttons {
    gap: 12px;
    margin-bottom: 40px;
  }

  .process-tab-btn {
    padding: 16px 8px;
  }

  .tab-number {
    font-size: 24px;
  }

  .tab-title {
    font-size: 13px;
  }

  .process-content-wrapper {
    padding: 24px;
    gap: 24px;
  }

  .process-content-icon img {
    width: 120px;
    height: 120px;
  }

  .process-content-title {
    font-size: 24px;
    padding-bottom: 12px;
  }

  .process-content-title::after {
    width: 50px;
  }

  .process-content-description {
    font-size: 16px;
  }
}

@media screen and (max-width: 479px) {
  .process-tab-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-tab-btn {
    flex-direction: row;
    justify-content: center;
    padding: 16px;
    gap: 16px;
  }

  .tab-number {
    font-size: 20px;
  }

  .tab-title {
    font-size: 14px;
    text-align: left;
  }

  .process-content-wrapper {
    padding: 20px;
  }

  .process-content-icon img {
    width: 100px;
    height: 100px;
  }

  .process-content-title {
    font-size: 22px;
  }

  .process-content-description {
    font-size: 15px;
  }
}
