/*
 * EGYdesigner Modern Layout System V1
 * Component families: Shared Modern Page Title V1, Service Hero V1, Commercial Hero V1.
 * Initial consumer: web-design-packages.html.
 * Shared dependency: future edits require registered-consumer QA.
 */

/* Shared Modern Page Title V1 */
.ed-layout-page .ed-page-title {
  direction: rtl;
  text-align: right;
}

.ed-layout-page .ed-page-title > h1 {
  margin: -5px 0 10px;
  font-size: 22px;
  line-height: 1.1;
  direction: rtl;
  text-align: right;
}

.ed-layout-page .ed-page-title > h1 bdi {
  unicode-bidi: isolate;
}

/* Service Hero V1 */
.ed-service-page .ed-service-hero {
  display: block;
  float: none;
  clear: both;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: 0 0 46px;
  padding: 0;
  border: 0;
  max-height: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  text-align: center;
  cursor: default;
}

.ed-service-page .ed-service-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.ed-service-page .ed-service-hero--screenshot img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Commercial Hero V1 */
.ed-commercial-page .content-text {
  margin-top: 0;
}

.ed-commercial-page .ed-commercial-hero {
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ed-commercial-page .ed-commercial-hero-row {
  direction: rtl;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.ed-commercial-page .ed-commercial-hero-row:before,
.ed-commercial-page .ed-commercial-hero-row:after {
  display: none;
}

.ed-commercial-page .ed-commercial-hero-row > [class*="col-"] {
  display: flex;
  float: none;
}

.ed-commercial-page .ed-commercial-hero-media-col,
.ed-commercial-page .ed-commercial-hero-support-col {
  direction: rtl;
}

.ed-commercial-page .ed-commercial-hero-media {
  display: block;
  float: none;
  clear: both;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  max-height: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  text-align: center;
  cursor: default;
}

.ed-commercial-page .ed-commercial-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.ed-commercial-page .ed-commercial-hero-support {
  width: 100%;
  margin: 0;
}

.ed-commercial-page .ed-commercial-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 25px;
  background: #f8f8f8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.ed-commercial-page .ed-commercial-hero-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #a60000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.ed-commercial-page .ed-commercial-hero-heading {
  margin: 0 0 12px;
  color: #222;
  font-size: 24px;
  line-height: 1.5;
}

.ed-commercial-page .ed-commercial-hero-copy {
  margin: 0 0 14px;
  color: #555;
  font-size: 16px;
  line-height: 1.9;
}

.ed-commercial-page .ed-commercial-hero-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ed-commercial-page .ed-commercial-hero-actions {
  margin-top: 18px;
}

/* Responsive Contracts */
@media (max-width: 991px) {
  .ed-commercial-page .ed-commercial-hero-row {
    display: block;
  }

  .ed-commercial-page .ed-commercial-hero-row > [class*="col-"] {
    display: block;
  }

  .ed-commercial-page .ed-commercial-hero-media-col {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .ed-commercial-page .ed-commercial-hero-card {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .ed-commercial-page .ed-commercial-hero-heading {
    font-size: 23px;
  }

  .ed-commercial-page .ed-commercial-hero-media img {
    border-radius: 18px;
  }

  .ed-service-page .ed-service-hero {
    margin-bottom: 32px;
  }
}

@media (max-width: 490px) {
  .ed-layout-page .ed-page-title > h1 {
    font-size: 20px;
    line-height: 1.1;
  }
}

/* Optional Component Slots / Modifiers */
.ed-commercial-page .ed-commercial-hero-card > :first-child {
  margin-top: 0;
}

.ed-commercial-page .ed-commercial-hero-card > :last-child {
  margin-bottom: 0;
}
