/* =====================================
   Hero Section
   ===================================== */
.company-profile-hero {
  position: relative;
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of container */
  margin-right: calc(-50vw + 50%); /* Break out of container */
  height: 394px;
  overflow: hidden;
  margin-bottom: 40px;
}

.company-profile-hero__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.company-profile-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-profile-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(34, 34, 34, 0.9) 100%
  );
}

.company-profile-hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.company-profile-hero__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

/* =====================================
   Container & Page Header
   ===================================== */
.company-profile-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 94px 80px;
}

.company-profile-header {
  margin-bottom: 60px;
  text-align: center;
}

.company-profile-header__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.company-profile-header__description {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
  max-width: 800px;
}

/* =====================================
   Banners Grid
   ===================================== */
.company-profile__banners {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
}

/* =====================================
   Individual Banner Card
   ===================================== */
.company-profile__banner {
  position: relative;
  display: block;
  width: 100%;
  height: 368px;
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.company-profile__banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.company-profile__banner:hover .company-profile__banner-image {
  transform: scale(1.1);
}

/* =====================================
   Banner Image
   ===================================== */
.company-profile__banner-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.company-profile__banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.company-profile__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(217, 217, 217, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

/* =====================================
   Banner Text Content
   ===================================== */
.company-profile__banner-content {
  position: absolute;
  bottom: 30px;
  right: 30px;
  left: 30px;
  z-index: 2;
  text-align: right;
  direction: rtl;
}

.company-profile__banner-subtitle {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.072px;
  color: #ffffff;
  opacity: 0.6;
  margin: 0 0 8px 0;
}

.company-profile__banner-title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 500;
  font-size: 28px;
  line-height: 24px;
  letter-spacing: -0.112px;
  color: #ffffff;
  margin: 0;
}

/* =====================================
   Responsive Design
   ===================================== */

/* Tablet */
@media (max-width: 1024px) {
  .company-profile-hero {
    height: 350px;
  }

  .company-profile-hero__title {
    font-size: 40px;
  }

  .company-profile-container {
    padding: 0 50px 60px;
  }

  .company-profile-header {
    margin-bottom: 50px;
  }

  .company-profile-header__title {
    font-size: 32px;
  }

  .company-profile-header__description {
    font-size: 16px;
  }

  .company-profile__banner {
    height: 320px;
  }

  .company-profile__banner-content {
    bottom: 24px;
    right: 24px;
    left: 24px;
  }

  .company-profile__banner-subtitle {
    font-size: 16px;
    line-height: 22px;
  }

  .company-profile__banner-title {
    font-size: 24px;
    line-height: 22px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .company-profile-hero {
    height: 280px;
  }

  .company-profile-hero__title {
    font-size: 32px;
  }

  .company-profile-container {
    padding: 0 30px 40px;
  }

  .company-profile-header {
    margin-bottom: 40px;
  }

  .company-profile-header__title {
    font-size: 28px;
  }

  .company-profile-header__description {
    font-size: 15px;
  }

  .company-profile__banners {
    gap: 16px;
  }

  .company-profile__banner {
    height: 280px;
  }

  .company-profile__banner-content {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  .company-profile__banner-subtitle {
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 6px 0;
  }

  .company-profile__banner-title {
    font-size: 20px;
    line-height: 20px;
  }

  .company-profile__banner:hover {
    transform: translateY(-4px);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .company-profile-hero {
    height: 240px;
  }

  .company-profile-hero__title {
    font-size: 26px;
  }

  .company-profile-container {
    padding: 0 20px 30px;
  }

  .company-profile-header__title {
    font-size: 24px;
  }

  .company-profile-header__description {
    font-size: 14px;
  }

  .company-profile__banner {
    height: 240px;
    border-radius: 20px;
  }

  .company-profile__banner-subtitle {
    font-size: 12px;
    line-height: 18px;
  }

  .company-profile__banner-title {
    font-size: 18px;
    line-height: 18px;
  }
}

/* =====================================
   Editor Styles
   ===================================== */
.company-profile-block-editor {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}