  .split-panel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.split-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
}
.red-section {
    background-color: maroon;
    flex: 4;
}
.split-panel-img {
    display: none;
}
.split-layout-img img,
.split-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Split Panel Block Styles */
.split-panel {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    /* Background sections */
    .split-panel-bg {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      display: flex;
    }

    .red-section {
      background-color: #800000;
      flex: 4; /* 40% of the width */
    }

    .split-panel-img {
      display: none;
    }

    @media (min-width: 992px) {
      .split-panel-img {
        display: block;
        flex: 6; /* 60% of the width */
        overflow: hidden;
      }
    }

    .split-panel-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Content box */
    .split-panel-content {
      position: relative;
      max-width: 60%;
      background:rgba(255,255,255,1);
      padding: 2em;
      text-align: left;
      z-index: 10;
      margin: 6em 0 6em 10%;
    }

    @media (max-width: 992px) {
      .split-panel-content {
        max-width: 90%;
        margin: 2em auto;
		background:rgba(255,255,255,1);
      }
    }
/*CARD CONTENT*/
.content-card-wrapper {
    position: relative;
   /* background: #f3f2eb;*/
    padding: 2em 0;
}
@media (min-width: 992px) {
    .split-panel-img {
        display: block;
        flex: 6;
        overflow: hidden;
    }
    .content-card-wrapper {
       /* padding: 6em;*/
    }
}
.container {
    position: relative;
    width: 90%;
    margin: 0 auto;
}
.content-card {
    position: relative;
    padding: 2em;
    background: #fff;
    -webkit-box-shadow: 0 0 3px #ccc;
    -moz-box-shadow: 0 0 3px #ccc;
    box-shadow: 0 0 3px #ccc;
}
.split-layout {
    display: flex;
    background-color: #fff;
	margin: 2em 0 2em 0;
}
.split-layout-img {
    width: 50%;
}
.split-layout-txt {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
	padding-top: 5em;
	padding-bottom: 5em;
}
.split-layout-txt h2 {
    font-size: 2.2em;
    font-weight: 900;
}
.split-layout-txt p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .split-layout {
        display: block;
    }
    .split-layout-img,
    .split-layout-txt {
        width: 100%;
    }
    .split-layout-txt {
        padding: 20px;
    }
	
	.split-layout-txt h2 {
    	font-size: 1.5em;
	}
}


/* ========= CARD VARIANT (3-up) ========= */
.split-card-row{
  display: grid;
  align-items: stretch; 
}

.split-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,24,40,.06);
  overflow: hidden;
  height: 100%;     
}

.split-card-img{ aspect-ratio: 4 / 3; overflow: hidden; flex-shrink: 0; }
.split-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }

.split-card-body{
  padding: 20px 22px 24px;
  display: flex;             
  flex-direction: column;       
  flex: 1;              
}

.split-card-body .wp-block-buttons{ margin-top: auto; }  

.split-card-body h2, .split-card-body .wp-block-heading { 
  margin: 0 0 8px; 
  line-height: 1.2;
  color: #A6192E; 
}
.split-card-body p { margin: 0 0 14px; color: #555; }
.split-card-body .wp-block-buttons { margin-top: 6px; }


@media (max-width: 1024px){
  .split-card-row{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .split-card-row{ grid-template-columns: 1fr; }
}

/* Editor helper so you see the grid while editing inside a Group with class "split-card-row" */
.editor-styles-wrapper .split-card-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
@media (max-width: 1024px){
  .editor-styles-wrapper .split-card-row{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .editor-styles-wrapper .split-card-row{ grid-template-columns: 1fr; }
}



/* ================================
   Dog-ear Cards — Full CSS
   ================================ */

/* Defaults (can be overridden by inline styles from the block) */
:root{
  --dogear-card-bg: #f5f3ec; /* default panel background */
  --page-bg: #fff;           /* site/page background (used by fallback triangle) */
  --dogear-cut: 72px;        /* size of the angled corner */
}

/* Front-end layout: exactly two across, equal height per row */
.wp-block-duny-dogear-cards.cards {
	padding: 2em 0 2em 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Card base */
.wp-block-duny-dogear-card.card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--dogear-card-bg, #f5f3ec);
  padding: clamp(20px, 2.6vw, 40px);
  /* top-right angled corner */
  clip-path: polygon(
    0 0,
    calc(100% - var(--dogear-cut)) 0,
    100% var(--dogear-cut),
    100% 100%,
    0 100%
  );
}

/* Tidy inner spacing */
.wp-block-duny-dogear-card.card > *:first-child { margin-top: 0; }
.wp-block-duny-dogear-card.card > *:last-child  { margin-bottom: 0; }

/* Fallback for browsers without clip-path */
@supports not (clip-path: polygon(0 0)){
  .wp-block-duny-dogear-card.card{
    clip-path: none;
  }
  .wp-block-duny-dogear-card.card::after{
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-top: var(--dogear-cut) solid var(--page-bg, #fff); /* “cut” using page color */
    border-left: var(--dogear-cut) solid transparent;
  }
}

/* Mobile: stack 1-up & remove dog-ear */
@media (max-width: 900px){
  .wp-block-duny-dogear-cards.cards{
    grid-template-columns: 1fr;
  }
  .wp-block-duny-dogear-card.card{
    clip-path: none;
    padding: clamp(24px, 3.2vw, 32px);
  }
  .wp-block-duny-dogear-card.card::after{
    content: none;
  }
}

/* Mild editor helpers (safe on front too) */
.card-actions { margin-top: 12px; }
.cards-controls { margin-top: 16px; }

/* ================================
   Editor-only: make top-level cards 2-up like front-end
   ================================ */
.editor-styles-wrapper .wp-block-duny-dogear-cards.cards{
  display: block; /* keep outer wrapper block-level so Add button isn't gridded */
}

/* Apply grid to the actual InnerBlocks list (covers current & older WP DOM) */
.editor-styles-wrapper .wp-block-duny-dogear-cards.cards > .block-editor-inner-blocks > .block-editor-block-list__layout,
.editor-styles-wrapper .wp-block-duny-dogear-cards.cards > .block-editor-block-list__layout{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Ensure each card fills its grid cell */
.editor-styles-wrapper .wp-block-duny-dogear-cards.cards
  > .block-editor-inner-blocks > .block-editor-block-list__layout
  > .block-editor-block-list__block{
  height: 100%;
}

/* Reset nested InnerBlocks INSIDE each card back to normal flow */
.editor-styles-wrapper .wp-block-duny-dogear-cards.cards
  > .block-editor-inner-blocks > .block-editor-block-list__layout
  > .block-editor-block-list__block
  .block-editor-inner-blocks > .block-editor-block-list__layout{
  display: block;           /* not grid */
  grid-template-columns: none;
  gap: 0;
}

/* Editor: 1-up on narrow canvas */
@media (max-width: 900px){
  .editor-styles-wrapper .wp-block-duny-dogear-cards.cards
    > .block-editor-inner-blocks > .block-editor-block-list__layout,
  .editor-styles-wrapper .wp-block-duny-dogear-cards.cards
    > .block-editor-block-list__layout{
    grid-template-columns: 1fr;
  }
}

/* Keep “Add Card” below the grid in editor */
.editor-styles-wrapper .wp-block-duny-dogear-cards.cards .cards-controls{
  margin-top: 16px;
}
