/* Frontend styles for DP page builder blocks */

.dp-page-content {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 30px 40px 60px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.dp-page-content p {
  margin: 0;
}

.dp-page-heading {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75em;
  color: #111827;
}

.dp-page-paragraph {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 1.2em;
}

.dp-page-list {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.dp-page-list li {
  margin-bottom: 0.35em;
}

.dp-page-quote {
  border-left: 4px solid #fbbf24;
  padding-left: 1.2em;
  margin: 1.8em 0;
  font-style: italic;
  color: #374151;
}

.dp-page-code {
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.dp-page-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2.4em 0;
}

.dp-page-spacer {
  height: 40px;
}

.dp-page-btn-wrap {
  margin: 1.8em 0;
}

.dp-page-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #111827;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #111827;
  background: #ffffff;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.08s;
}

.dp-page-btn-primary,
.dp-page-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  transform: translateY(-1px);
}

.dp-page-columns2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 2em 0;
}

.dp-page-column {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.dp-page-text-image {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 3em 0;
}

.dp-page-text-image.dp-page-image-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.dp-page-text-image-text {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.dp-page-text-image-media img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.dp-page-image {
  margin: 2em 0;
}

.dp-page-image img {
  max-width: 100%;
  width: 100%;
  display: block;
  border-radius: 14px;
}

.dp-page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 2.4em 0;
}

.dp-page-gallery-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 120px;
}

/* Hero */

.dp-page-hero {
  margin: 0 0 40px;
  border-radius: 16px;
  padding: 50px 38px;
  background: linear-gradient(135deg, #f9fafb, #eff6ff);
}

.dp-page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

/* Width modes */
.dp-page-hero-width-boxed {
  margin-left: 0;
  margin-right: 0;
  border-radius: 16px;
}

.dp-page-hero-width-wide {
  margin-left: -40px;
  margin-right: -40px;
  border-radius: 0;
}

/* Layouts */
.dp-page-hero-layout-image-below .dp-page-hero-inner {
  flex-direction: column;
}

.dp-page-hero-layout-image-right .dp-page-hero-inner {
  flex-direction: row;
}

.dp-page-hero-layout-image-left .dp-page-hero-inner {
  flex-direction: row-reverse;
}

.dp-page-hero-layout-background {
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.dp-page-hero-text {
  flex: 1.3;
}
.dp-page-hero-media {
  flex: 1;
}

.dp-page-hero-title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.35em;
  color: #111827;
}

.dp-page-hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 1.1em;
  color: #4b5563;
}

.dp-page-hero-layout-background .dp-page-hero-title,
.dp-page-hero-layout-background .dp-page-hero-subtitle {
  color: #ffffff;
}

.dp-page-hero-media img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.dp-page-hero-image-cover {
  object-fit: cover;
}
.dp-page-hero-image-contain {
  object-fit: contain;
}

/* FAQ */

.dp-page-faq {
  margin: 3em 0;
}

.dp-page-faq-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #f9fafb;
}

.dp-page-faq-question {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.dp-page-faq-answer {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

/* Carousel */

.dp-page-carousel {
  margin: 3em 0;
  display: grid;
  gap: 14px;
}

.dp-page-carousel-slide {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  background: #ffffff;
}

.dp-page-carousel-media img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
}

.dp-page-carousel-title {
  margin: 0 0 4px;
  font-weight: 600;
  color: #111827;
}

.dp-page-carousel-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* Video */

.dp-page-video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  margin: 2em 0;
  background: #000;
}

.dp-page-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* File */

.dp-page-file {
  margin: 0.5em 0;
}

.dp-page-file a {
  color: #2563eb;
  text-decoration: none;
}

.dp-page-file a:hover {
  text-decoration: underline;
}

.dp-page-file-icon {
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Responsive */

@media (max-width: 900px) {
  .dp-page-content {
    padding: 20px 16px 40px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .dp-page-columns2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-page-text-image,
  .dp-page-text-image.dp-page-image-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-page-hero {
    padding: 30px 20px;
  }

  .dp-page-hero-width-wide {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }
}

.dp-page {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 40px 20px 80px;
}

.dp-page-title {
  text-align: center;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 6px;
}

.dp-page-underline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #9ca3af;
  margin-bottom: 32px;
}

.dp-page-underline span:first-child,
.dp-page-underline span:last-child {
  display: block;
  width: 64px;
  height: 2px;
  background: #fbbf24;
}

/* Sections */

.dp-section {
  padding: 20px 0;
}
.dp-section + .dp-section {
  margin-top: 20px;
}

.dp-section--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f9fafb;
}

.dp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */

.dp-hero {
  /*margin-top: 10px; */
}

.dp-hero-inner {
  border-radius: 16px;
  padding: 36px 28px 32px;
  background: linear-gradient(135deg, #111827, #111827);
  color: #f9fafb;
  overflow: hidden;
}

.dp-hero-inner--centered {
  text-align: center;
}

.dp-hero-text--center h2,
.dp-hero-text--center .dp-hero-sub {
  text-align: center;
}

.dp-hero-text--left h2,
.dp-hero-text--left .dp-hero-sub {
  text-align: left;
}

.dp-hero-inner h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.dp-hero-sub {
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.dp-hero-inner--left {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.dp-hero-side-image img,
.dp-hero-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.dp-hero-image--contain img {
  object-fit: contain;
  background: #111827;
}

/* Generic button */

.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.dp-btn-primary {
  background: #fbbf24;
  color: #111827;
  font-weight: 500;
}

.dp-btn-primary:hover {
  background: #f59e0b;
}

/* Text + image layout */

.dp-text-image {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.dp-text-image--image-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.dp-text-image-image img {
  width: 100%;
  border-radius: 14px;
}

/* Gallery */

.dp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.dp-gallery-item img {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* FAQ */

.dp-faq-section {
  margin-top: 10px;
}

.dp-faq {
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px 14px;
}

.dp-faq-item + .dp-faq-item {
  border-top: 1px solid #e5e7eb;
}

.dp-faq-question {
  width: 100%;
  text-align: left;
  padding: 10px 4px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.dp-faq-icon {
  font-size: 16px;
  margin-left: 10px;
  transition: transform 0.2s;
}

.dp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.2s ease,
    padding-top 0.2s ease;
  padding: 0 4px 0;
  font-size: 13px;
  color: #4b5563;
}

.dp-faq-answer.open {
  max-height: 400px;
  padding-top: 4px;
}

.dp-faq-question.open .dp-faq-icon {
  transform: rotate(45deg);
}

/* Carousel */

.dp-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.dp-carousel-slide {
  min-width: 260px;
  max-width: 360px;
  scroll-snap-align: start;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
}

.dp-carousel-image img {
  width: 100%;
  border-radius: 10px;
}

.dp-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
}

.dp-spacer {
  height: 40px;
}

/* Simple text section */

.dp-text-section p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.dp-text-section h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.dp-text-section h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.dp-image {
  width: 100%;
  border-radius: 12px;
}

/* List */

.dp-list {
  margin: 0;
  padding-left: 18px;
}
