/* Selected layout ideas from the supplied design archive, layered over MGB v7. */
body.mgb7 {
  --m8-paper: #faf7f2;
  --m8-rule: #e5dfd5;
  background: #fff;
}
body.mgb7 .bilgili-elementor-main { background: #fff; }
/* Keep the original portrait unaltered; its own area prevents text crossing the face. */
body.mgb7.home .hero-diabetic-upload {
  background: var(--m8-paper) !important;
  padding: 32px 0 48px !important;
}
body.mgb7.home .hero-upload-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  min-height: 0 !important;
  max-width: 1240px !important;
  width: calc(100% - 64px) !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
body.mgb7.home .hero-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 24px !important;
  overflow: hidden;
  background: #123a55 !important;
  box-shadow: 0 12px 28px #123a5512;
}
body.mgb7.home .hero-copy::before {
  content: '';
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100%;
  min-height: 310px;
  flex: 1 0 310px;
  background: url('/wp-content/uploads/2026/09/mgb-portrait.jpeg') center 44% / cover no-repeat !important;
  opacity: 1 !important;
  transform: none !important;
}
body.mgb7.home .hero-copy::after { display: none !important; }
body.mgb7.home .hero-copy-content {
  position: relative !important;
  padding: 30px 32px !important;
  gap: 18px !important;
  background: #123a55 !important;
  min-height: 0 !important;
  flex: 0 0 auto;
}
body.mgb7.home .hero-copy h1 {
  color: #fff !important;
  font-size: clamp(36px, 3.2vw, 46px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.025em !important;
}
body.mgb7.home .hero-copy .hero-lead {
  color: #e2edf0 !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
body.mgb7.home .hero-copy .button-row { margin: 2px 0 0 !important; }
body.mgb7.home .hero-copy .button-row p { margin: 0 !important; }
body.mgb7.home .hero-copy .button-row .elementor-widget {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}
body.mgb7.home .hero-copy a.button { min-height: 48px; border-radius: 10px; }
body.mgb7.home .hero-copy a.button-ghost { background: #fff !important; color: #123a55 !important; border: 1px solid #fff !important; }
body.mgb7.home .hero-copy a.button:not(.button-ghost) { background: transparent !important; color: #fff !important; border: 1px solid #a9c6d2 !important; }
body.mgb7.home .hero-copy a.button:hover { background: #d6eeea !important; color: #123a55 !important; }
body.mgb7.home .hero-copy .trust-list { color: #d8e9ee !important; margin: 3px 0 0 !important; gap: 12px !important; font-size: 12px !important; }
body.mgb7.home .hero-copy .trust-list :is(p,span,li) { color: #d8e9ee !important; }
body.mgb7.home .hero-copy .trust-list .icon { color: #8fd4c9 !important; }
body.mgb7.home .hero-upload-panel { align-self: stretch !important; grid-column: auto !important; grid-row: auto !important; width: 100% !important; min-width: 0; }
body.mgb7.home .bilgili-hero-upload { height: 100%; border: 1px solid var(--m8-rule) !important; border-radius: 24px !important; background: #fff !important; box-shadow: 0 12px 28px #123a5510 !important; }
/* Alternate open white sections with a quiet paper surface. */
body.mgb7.home :is(.quick-paths,.treatment-section,.science-section,.doctor-section) { background: #fff !important; }
body.mgb7.home :is(.symptom-promo,.patient-cards,.video-section) { background: var(--m8-paper) !important; }
body.mgb7.home :is(.quick-card,.patient-card,.mgb-editorial-card) { box-shadow: 0 5px 16px #123a5507 !important; border-color: var(--m8-rule) !important; }
body.mgb7.home :is(.quick-card,.patient-card,.mgb-editorial-card):hover { border-color: #82b7af !important; box-shadow: 0 10px 22px #123a5512 !important; }
/* Existing profile and article media retain their real assets and source text. */
body.mgb7 .mgb7-profile-hero { background: var(--m8-paper); border-color: var(--m8-rule); box-shadow: none; }
body.mgb7 .mgb7-profile-hero figure>img { height: 440px; object-position: 50% 35%; }
body.mgb7 .mgb7-timeline { background: var(--m8-paper); border-color: var(--m8-rule); }
body.mgb7 .mgb7-card { border-color: var(--m8-rule); box-shadow: none; }
body.mgb7 .mgb7-editorial-page>.bilgili-el-page-hero {
  background: var(--m8-paper) !important;
  border: 1px solid var(--m8-rule) !important;
  box-shadow: none !important;
}
body.mgb7 .mgb7-editorial-page>.bilgili-el-page-hero::before,
body.mgb7 .mgb7-editorial-page>.bilgili-el-page-hero::after { display: none !important; }
body.mgb7 .mgb7-editorial-page .bilgili-el-page-hero h1 { color: #123a55 !important; }
body.mgb7 .mgb7-editorial-page .bilgili-el-page-hero p { color: #4e6978 !important; }
body.mgb7 .mgb7-editorial-page>.bilgili-el-page-hero>.elementor-widget-html { width: 100% !important; max-width: none !important; }
body.mgb7 .mgb7-editorial-page img.mgb7-editorial-image { border-radius: 14px !important; width: 100% !important; object-fit: cover !important; }
body.mgb7 .mgb8-article-copy>.ds-list-panel:not(.mgb-related-links) { background: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 6px 0 14px 22px !important; }
body.mgb7 .mgb8-article-copy>.ds-list-panel li { border-color: var(--m8-rule); }
body.mgb7 .mgb8-article-copy>.ds-list-panel li::marker { color: #087f79; }
/* A single dark chapter closes the page, matching the reference footer. */
body.mgb7 .site-footer { background: #123a55 !important; color: #d3e1e7 !important; border-top: 0 !important; }
body.mgb7 .site-footer :is(p,li,.footer-bottom) { color: #d3e1e7 !important; }
body.mgb7 .site-footer :is(h2,h3,strong) { color: #fff !important; }
body.mgb7 .site-footer a { color: #d9e9ee !important; text-underline-offset: 4px; }
body.mgb7 .site-footer a:hover { color: #9eddd1 !important; text-decoration: underline; }
body.mgb7 .site-footer .footer-grid .elementor-widget-text-editor p { font-size: 16px !important; line-height: 1.8 !important; }
body.mgb7 .site-footer .footer-grid .elementor-widget-text-editor a { display: inline-block !important; padding-block: 4px; line-height: 1.5 !important; }
body.mgb7 .site-footer :focus-visible { outline-color: #9eddd1; }
body.mgb7 .site-footer .medical-disclaimer { background: #0f324a !important; border-color: #416075 !important; border-radius: 14px; padding: 22px !important; }
body.mgb7 .site-footer .medical-disclaimer p { color: #c1d4de !important; }
body.mgb7 .site-footer .footer-bottom { border-color: #416075 !important; }
body.mgb7 .site-footer .mgb7-footer-map { border-color: #416075 !important; }
body.mgb7 .site-footer .mgb7-footer-map a { color: #123a55 !important; background: #faf7f2 !important; }
body.mgb7 .site-footer .mgb-footer-resources :is(a,p) { color: #d3e1e7 !important; }
body.mgb7 .site-footer .mgb-footer-resources p { margin: 0 !important; font-size: 14px !important; }
body.mgb7 .site-footer .mgb-footer-resources a { display: inline !important; }
@media(max-width:999px) {
  body.mgb7.home .hero-upload-grid { grid-template-columns: 1fr !important; max-width: 720px !important; }
  body.mgb7.home .hero-copy::before { flex-basis: 340px; min-height: 340px; background-position: center 42% !important; }
  body.mgb7 .mgb7-profile-hero figure>img { height: 380px; }
}
@media(max-width:767px) {
  body.mgb7.home .alert-band { padding: 16px 0 !important; }
  body.mgb7.home .alert-inner { display: flex !important; flex-direction: column !important; width: calc(100% - 32px) !important; padding: 0 !important; gap: 12px !important; margin: auto !important; }
  body.mgb7.home .alert-slides, body.mgb7.home .alert-item { min-height: 0 !important; padding: 0 !important; gap: 5px !important; }
  body.mgb7.home .alert-item p { margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; }
  body.mgb7.home .alert-actions { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; gap: 12px !important; padding: 0 !important; }
  body.mgb7.home .alert-controls { width: auto !important; flex: 0 0 auto; gap: 6px !important; }
  body.mgb7.home .alert-controls>.elementor-widget { width: auto !important; }
  body.mgb7.home .alert-controls p { margin: 0 !important; }
  body.mgb7.home .alert-controls button { width: 40px; height: 40px; }
  body.mgb7.home .alert-actions>.elementor-widget { width: auto !important; }
  body.mgb7.home .alert-actions>.elementor-widget p { margin: 0 !important; }
  body.mgb7.home .alert-actions a { font-size: 14px !important; line-height: 1.3 !important; }
  body.mgb7.home .hero-diabetic-upload { padding: 20px 0 32px !important; }
  body.mgb7.home .hero-upload-grid { width: calc(100% - 32px) !important; gap: 22px !important; }
  body.mgb7.home .hero-copy::before { min-height: 230px; flex-basis: 230px; background-position: center 42% !important; }
  body.mgb7.home .hero-copy-content { padding: 24px !important; gap: 16px !important; }
  body.mgb7.home .hero-copy h1 { font-size: 36px !important; }
  body.mgb7.home .hero-copy .hero-lead { font-size: 17px !important; }
  body.mgb7.home .hero-copy .button-row>.elementor-widget { width: 100% !important; flex: 1 0 100%; }
  body.mgb7.home .hero-copy .button-row p { width: 100% !important; }
  body.mgb7.home .hero-copy a.button { width: 100% !important; }
  body.mgb7.home .hero-copy .trust-list { flex-wrap: wrap !important; }
  body.mgb7 .mgb7-profile-hero figure>img { height: 330px; }
}
