/**
 * Hero 2 Section - Dioqa UI Kit
 *
 * @package Dioqa_UI_Kit
 */

/* Section Container */
.hero-2-section {
  background-color: #f1f1f1;
  padding: 100px 0;
  min-height: var(--section-height, 95vh);
  display: flex;
  align-items: center;
}

/* Main Card */
.hero-2-main-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 415px;
  border-radius: var(--radius-md, 6px);
}

.hero-2-content {
  flex: 1;
  max-width: 648px;
  padding: 35px !important;
}

.hero-2-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-2-small-text {
  color: var(--bs-primary);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  text-transform: uppercase;
  line-height: normal;
  margin-bottom: 10px;
}

.hero-2-main-title {
  margin-bottom: 15px;
}

.hero-2-main-title h1,
.hero-2-main-title h2,
.hero-2-main-title h3,
.hero-2-main-title h4,
.hero-2-main-title h5,
.hero-2-main-title h6 {
  color: var(--bs-dark);
  font-family: var(--font-heading);
  font-size: var(--display-2md);
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.hero-2-main-title .text-primary,
.hero-2-main-title span.highlight {
  color: var(--bs-primary);
}

.hero-2-description {
  margin-bottom: 15px;
}

.hero-2-description p {
  color: var(--bs-gray-medium);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.hero-2-main-image {
  width: 312px;
  height: 100%;
  flex-shrink: 0;
}

.hero-2-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Secondary Card */
.hero-2-secondary-card {
  min-height: 415px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-2-bg-image {
  z-index: 0;
}

.hero-2-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-2-overlay {
  background: linear-gradient(to bottom, #3b3949 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.hero-2-secondary-content {
  z-index: 2;
  min-height: 415px;
  padding: 35px 25px !important;
}

.hero-2-secondary-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.hero-2-secondary-title h1,
.hero-2-secondary-title h2,
.hero-2-secondary-title h3,
.hero-2-secondary-title h4,
.hero-2-secondary-title h5,
.hero-2-secondary-title h6,
.hero-2-secondary-title p {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: normal;
  margin: 0;
}

/* Bouton secondaire - prend uniquement la largeur de son contenu */
.hero-2-secondary-content .btn {
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-2-main-card {
    flex-direction: column;
  }

  .hero-2-content {
    max-width: 100%;
    width: 100%;
  }

  .hero-2-main-image {
    width: 100%;
    height: 300px;
  }

  .hero-2-secondary-card {
    min-height: 350px;
    margin-top: 1rem;
  }

  .hero-2-secondary-content {
    min-height: 350px;
  }
}

@media (max-width: 767.98px) {
  .hero-2-section {
    padding: 60px 0;
  }

  .hero-2-main-title {
    font-size: 32px;
  }

  .hero-2-content {
    padding: 25px !important;
  }

  .hero-2-secondary-content {
    padding: 25px !important;
  }

  .hero-2-main-image {
    height: 250px;
  }
}
