/* mistur-inner-page-bg */
body.page:not(.home):not(.page-id-1) {
  background: #f8fafc !important;
}
body.page:not(.home):not(.page-id-1) .wp-site-blocks {
  background: #f8fafc;
  min-height: 100vh;
}

/* Inner page shell */
body.page:not(.home):not(.page-id-1) .mistur-page-main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f8fafc;
}

/* Page title band - full width without 100vw overflow */
body.page:not(.home):not(.page-id-1) .mistur-page-hero-title,
body.page:not(.home):not(.page-id-1) .wp-block-post-title.mistur-page-hero-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 40px;
  padding: 52px 24px;
  background: linear-gradient(135deg, #2b5892 0%, #1c3c66 100%);
  color: #ffffff !important;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgba(43, 88, 146, 0.18);
  box-sizing: border-box;
}

/* Content column */
body.page:not(.home):not(.page-id-1) .mistur-page-main .entry-content,
body.page:not(.home):not(.page-id-1) .mistur-page-main .wp-block-post-content {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px 72px !important;
  color: #555;
  line-height: 1.8;
  font-size: 16px;
  box-sizing: border-box;
}

/* Custom full-width designed pages */
body.page .mistur-page-main .entry-content:has(.yoo-hero-section),
body.page .mistur-page-main .entry-content:has(.yp-premium-section),
body.page .mistur-page-main .entry-content:has(.yp-contact-page),
body.page .mistur-page-main .entry-content:has(.yp-services-section),
body.page .mistur-page-main .entry-content:has(.yp-service-detail-section),
body.page .mistur-page-main .entry-content:has(.yp-contact-section),
body.page .mistur-page-main .wp-block-post-content:has(.yoo-hero-section),
body.page .mistur-page-main .wp-block-post-content:has(.yp-contact-page) {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

body.page:not(.home):not(.page-id-1) .entry-content > hr:first-of-type,
body.page:not(.home):not(.page-id-1) .entry-content > h1:first-child,
body.page:not(.home):not(.page-id-1) .wp-block-post-content > h1:first-child {
  display: none !important;
}

body.page:not(.home):not(.page-id-1) .entry-content p {
  margin: 0 0 18px;
}

body.page:not(.home):not(.page-id-1) .entry-content h2,
body.page:not(.home):not(.page-id-1) .entry-content h3,
body.page:not(.home):not(.page-id-1) .entry-content h4 {
  color: #2b5892;
  margin: 36px 0 16px;
  line-height: 1.3;
}

body.page:not(.home):not(.page-id-1) .entry-content h2 { font-size: 28px; font-weight: 700; }
body.page:not(.home):not(.page-id-1) .entry-content h3 { font-size: 22px; font-weight: 700; }

body.page:not(.home):not(.page-id-1) .entry-content a {
  color: #35a1d9;
  text-decoration: none;
  font-weight: 600;
}
body.page:not(.home):not(.page-id-1) .entry-content a:hover {
  color: #2b5892;
  text-decoration: underline;
}

body.page:not(.home):not(.page-id-1) .entry-content ul,
body.page:not(.home):not(.page-id-1) .entry-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
body.page:not(.home):not(.page-id-1) .entry-content li { margin-bottom: 8px; }

/* Kurumsal index cards */
body.page-id-2624 .entry-content > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
body.page-id-2624 .entry-content > ul > li {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-top: 4px solid #35a1d9;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(43, 88, 146, 0.06);
}
body.page-id-2624 .entry-content > ul h3 { margin-top: 0; margin-bottom: 12px; font-size: 20px; }
body.page-id-2624 .entry-content > ul p { margin: 0; }
body.page-id-2624 .entry-content > ul a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background: #35a1d9;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
}

/* Legacy WPBakery */
.prelude-single-heading .heading,
.prelude-single-heading .heading b {
  display: block;
  color: #2b5892;
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid #35a1d9;
}
.prelude-single-heading.has-line .line,
.prelude-spacer { display: none; }
.wpb_text_column p { margin-bottom: 18px; }

body.page .entry-content .forminator-ui,
body.page .entry-content form {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 781px) {
  body.page:not(.home):not(.page-id-1) .mistur-page-hero-title,
  body.page:not(.home):not(.page-id-1) .wp-block-post-title.mistur-page-hero-title {
    padding: 40px 16px;
    margin-bottom: 28px;
  }
  body.page:not(.home):not(.page-id-1) .mistur-page-main .entry-content,
  body.page:not(.home):not(.page-id-1) .mistur-page-main .wp-block-post-content {
    padding: 0 16px 48px !important;
  }
}

/* mistur-service-banner */
body.page .entry-content > p:first-of-type:has(img),
body.page .wp-block-post-content > p:first-of-type:has(img) {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page .entry-content > p:first-of-type img,
body.page .entry-content > img:first-of-type,
body.page .wp-block-post-content > p:first-of-type img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  margin: 0 0 0;
  border-radius: 0;
}

body.page:has(.yp-service-detail-section) .entry-content > h1:first-child,
body.page:has(.yp-service-detail-section) .wp-block-post-content > h1:first-child,
body.page:has(.yp-service-detail-section) .entry-content > hr:first-of-type {
  display: none !important;
}

body.page:has(.yp-service-detail-section) .yp-service-detail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  box-sizing: border-box;
}


/* mistur-inner-width-unify */
body.page:not(.home):not(.page-id-1) .mistur-page-main .entry-content,
body.page:not(.home):not(.page-id-1) .mistur-page-main .wp-block-post-content {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

body.page:has(.yp-service-detail-section) .yp-service-detail-section {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 48px 24px 72px !important;
  box-sizing: border-box !important;
}

body.page:has(.yp-service-detail-section) .entry-content > p:has(> img),
body.page:has(.yp-service-detail-section) .wp-block-post-content > p:has(> img) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page:has(.yp-service-detail-section) .entry-content > p:has(> img) img,
body.page:has(.yp-service-detail-section) .wp-block-post-content > p:has(> img) img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
