:root {
  --pp-hakkimizda-hero-bg-top: #ffffff;
  --pp-hakkimizda-hero-bg-bottom: #462a6a;
  --pp-hakkimizda-hero-text-dark: #333333;
  --pp-hakkimizda-hero-text-light: #ffffff;
  --pp-hakkimizda-hero-accent: #f58220;
  --pp-hakkimizda-hero-p-text: #555555;
}

.pp-hakkimizda-hero-wrapper {
  overflow: hidden;
  font-family: sans-serif;
}

.pp-hakkimizda-hero-top {
  background-color: var(--pp-hakkimizda-hero-bg-top);
  text-align: center;
  padding: 60px 20px 80px;
  border-bottom-left-radius: 90% 20%;
  border-bottom-right-radius: 90% 20%;
  position: relative;
  z-index: 2;
}

.pp-hakkimizda-hero-top h1 {
  font-size: 3rem;
  font-weight: 500;
  color: var(--pp-hakkimizda-hero-text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  outline: none;
}

.pp-hakkimizda-hero-top h1 span {
  font-weight: 600;
}

.pp-hakkimizda-hero-top p.subtitle {
  color: var(--pp-hakkimizda-hero-p-text);
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.pp-hakkimizda-hero-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 25px;
  position: relative;
  z-index: 10;
  margin-bottom: -200px; /* Overlap the curve - increased for better transition */
}

.pp-hakkimizda-hero-gallery .image-container {
  background: black;
  border: 1px solid black;
  box-shadow: 5px 5px 0 0 black;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.pp-hakkimizda-hero-gallery .image-container:hover {
  transform: rotate(0deg) !important;
}

.pp-hakkimizda-hero-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  width: 280px;
  height: 190px;
  object-fit: cover;
}

.pp-hakkimizda-hero-gallery .image-container:nth-child(1) {
  transform: rotate(-4deg);
}

.pp-hakkimizda-hero-gallery .image-container:nth-child(2) {
  transform: rotate(2deg);
  margin-top: 20px;
}

.pp-hakkimizda-hero-gallery .image-container:nth-child(3) {
  transform: rotate(-2deg);
}

.pp-hakkimizda-hero-gallery .image-container:nth-child(4) {
  transform: rotate(4deg);
  margin-top: 10px;
}

.pp-hakkimizda-hero-bottom {
  background-color: var(--pp-hakkimizda-hero-bg-bottom);
  color: var(--pp-hakkimizda-hero-text-light);
  padding: 300px 40px 80px;
  text-align: left;
  position: relative;
  z-index: 1;
  margin-top: -80px;
}

.pp-hakkimizda-hero-bottom-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.pp-hakkimizda-hero-bottom-left {
  flex: 1;
}

.pp-hakkimizda-hero-bottom-left h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.3;
}

.pp-hakkimizda-hero-bottom-left .cta-button {
  background-color: var(--pp-hakkimizda-hero-accent);
  color: var(--pp-hakkimizda-hero-text-light);
  padding: 0.7rem 2rem;
  border-radius: 8px;
  border: 1px solid black;
  box-shadow: 3px 3px 0 0 black;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pp-hakkimizda-hero-bottom-left .cta-button:hover {
  background-color: #fff;
  color: #1a1a1a;
}

.pp-hakkimizda-hero-bottom-right {
  flex: 1;
  padding-top: 10px;
}

.pp-hakkimizda-hero-bottom-right .mission-vision-item {
  margin-bottom: 30px;
}

.pp-hakkimizda-hero-bottom-right h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pp-hakkimizda-hero-bottom-right p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

/* Horizontal Scroll for gallery - up to 1200px */
@media (max-width: 1200px) {
  .pp-hakkimizda-hero-top {
    padding: 60px 20px 80px;
    border-bottom-left-radius: 90% 15%;
    border-bottom-right-radius: 90% 15%;
  }

  .pp-hakkimizda-hero-gallery {
    display: flex;
    flex-wrap: unset;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: white transparent;
    justify-content: flex-start;
    gap: 20px;
    padding: 0.5rem 1rem 0.7rem 1rem;
    cursor: grab;
    margin-bottom: -200px;
  }

  .pp-hakkimizda-hero-gallery img {
    user-select: none;
    pointer-events: none;
  }

  .pp-hakkimizda-hero-gallery.active {
    cursor: grabbing;
  }

  .pp-hakkimizda-hero-gallery::-webkit-scrollbar {
    height: 6px;
  }

  .pp-hakkimizda-hero-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .pp-hakkimizda-hero-gallery::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
  }

  .pp-hakkimizda-hero-gallery::-webkit-scrollbar-thumb:hover {
    background: #777;
  }

  .pp-hakkimizda-hero-gallery .image-container {
    flex: 0 0 280px;
    width: 280px;
    user-select: none;
  }

  /* Reset transform/hover effects for better touch experience */
  .pp-hakkimizda-hero-gallery .image-container:nth-child(1),
  .pp-hakkimizda-hero-gallery .image-container:nth-child(2),
  .pp-hakkimizda-hero-gallery .image-container:nth-child(3),
  .pp-hakkimizda-hero-gallery .image-container:nth-child(4) {
    transform: rotate(0deg);
    margin-top: 0;
  }

  .pp-hakkimizda-hero-gallery .image-container:hover {
    transform: none;
  }
}

@media (max-width: 992px) {
  .pp-hakkimizda-hero-bottom {
    padding-top: 240px;
    margin-top: -80px;
    border-top-left-radius: 90% 10%;
    border-top-right-radius: 90% 10%;
  }

  .pp-hakkimizda-hero-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .pp-hakkimizda-hero-top p.subtitle {
    font-size: 0.9rem;
  }

  .pp-hakkimizda-hero-bottom-left,
  .pp-hakkimizda-hero-bottom-right {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .pp-hakkimizda-hero-top h1 {
    font-size: 2rem;
  }

  .pp-hakkimizda-hero-top {
    padding: 40px 20px 30px;
  }

  .pp-hakkimizda-hero-gallery {
    gap: 15px;
    margin-bottom: -120px;
  }

  .pp-hakkimizda-hero-bottom {
    padding: 200px 40px 20px 40px;
  }

  .pp-hakkimizda-hero-bottom-left h2 {
    font-size: 28px;
  }
}
