/*
Theme Name: InBox Projects
Custom CSS
Version: 1.0
*/

/*--------------------------------------------------------------
>>> CUSTOM.CSS TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General
	1.1 Buttons
	1.2 Typography
2.0 Header
	2.1 Navigation
	2.2 Header Contact & Search
3.0 Pages
	3.1 Homepage
	3.2 Service Page
4.0 Footer
	4.1 Footer General
	4.2 Site Info
5.0	Gravity Forms
6.0 Blog


--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 General
--------------------------------------------------------------*/

html {
  scroll-behavior: smooth;
}

/** main {
  margin-top: 150px !important;
} **/

/*--------------------------------------------------------------
1.1 Buttons
--------------------------------------------------------------*/

/** Sitewide Button No Border Radius **/
:root :where(.wp-element-button, 
.wp-block-button__link) {
    border-radius: 0;
    -webkit-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}
/** IBX Outline 1 **/
.wp-block-button.is-style-ibx-outline-1 .wp-block-button__link:hover { 
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--darkest-grey);
}

/** IBX Outline 2 **/
.wp-block-button.is-style-ibx-outline-2 .wp-block-button__link:hover { 
    background-color: var(--wp--preset--color--contrast); 
    color: var(--wp--preset--color--base);
}

/** IBX CTA Main **/
.wp-block-button.is-style-ibx-cta-main .wp-block-button__link { 
    border-radius:0; 
    background-color: var(--wp--preset--color--darkest-grey);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M30 28V0h-2v26.586L1.422.008.008 1.422 26.586 28H0v2h30z' style='fill:%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px bottom 10px;
    background-size: 40px auto;
    font-size: 24px;
    text-align: left;
}
.wp-block-buttons.ibx_cta_main_wrapper {
    gap: 3%;
}

.wp-block-button.is-style-ibx-cta-main .wp-block-button__link:hover { 
    background-position: right 3px bottom 3px;
    background-color: black;
}
@media screen and (min-width: 768px) {
    .wp-block-button.is-style-ibx-cta-main .wp-block-button__link { 
        font-size: 24px;
        text-align: left;
        max-width: 220px;
        padding-top: 1.2rem;
        padding-right: 3.25rem;
        padding-bottom: 1.2rem;
        padding-left: 2.0rem;
    }
}
@media screen and (min-width: 1152px) {
    .wp-block-button.is-style-ibx-cta-main .wp-block-button__link { 
        background-position: right 10px bottom 10px;
        background-size: 40px auto;
        font-size: 37px;
        text-align: left;
        max-width: 320px;
        padding-top: 1.7rem;
        padding-right: 4.25rem;
        padding-bottom: 1.7rem;
        padding-left: 2.25rem;
    }
}

/** IBX CTA Footer **/

.wp-block-button.is-style-ibx-cta-footer .wp-block-button__link {
    font-size: 1.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M0 29h29V0h-2v25.586L1.434.02.02 1.434 25.586 27H0z' style='fill:%231d1d1d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px bottom 10px;
    background-size: 25px auto;
}

.wp-block-button.is-style-ibx-cta-footer .wp-block-button__link:hover { 
    background-color: var(--wp--preset--color--darkest-grey);
    color: var(--wp--preset--color--base);
    background-position: right 3px bottom 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M0 29h29V0h-2v25.586L1.434.02.02 1.434 25.586 27H0z' style='fill:%23ffffff'/%3E%3C/svg%3E");
}
@media (min-width: 782px) and (max-width: 1180px) {
    .wp-block-button.is-style-ibx-cta-footer .wp-block-button__link {
        font-size: 1.0rem;
        background-size: 15px auto;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1180px) and (max-width: 1400px) {
    .wp-block-button.is-style-ibx-cta-footer .wp-block-button__link {
        font-size: 1.4rem;
        background-size: 20px auto;
        padding-right: 2.5rem;
    }
}

/** IBX Read More **/

.wp-block-button.is-style-ibx-read-more .wp-block-button__link { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 216.012 22.425'%3E%3Cpath d='m204.799 0-1.414 1.414 8.798 8.798H0v2h212.183l-8.798 8.798 1.414 1.414 11.213-11.212zm8.213 11.041.172.172-.172.172z' style='fill:%231d1d1d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: auto 22px;
    background-position: bottom right 10px;
    border: none;
    outline: none;
}
.wp-block-button.is-style-ibx-read-more .wp-block-button__link:hover { 
    background-position: bottom right 1px;
}

/** Search **/

:root :where(.wp-block-search .wp-block-search__input) {
    border-radius: 0!important;
}

/*--------------------------------------------------------------
1.2 Typography
--------------------------------------------------------------*/

p,
body,
button,
input,
select,
optgroup,
textarea {
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	font-size: 1rem;
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.8;
}

h1 {
    font-weight: 500;
}

strong {
    font-weight: 700;
}

.wp-block-list {
    font-size: 1rem;
}

.has-x-large-font-size {
    line-height: 1.2;
}

@media screen and (min-width: 768px) {

}

/*--------------------------------------------------------------
2.0 Header
--------------------------------------------------------------*/

/* Sticky header */

header.wp-block-template-part {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.9s ease, box-shadow 0.9s ease;
}

@media screen and (min-width: 768px) {
    .logged-in header.wp-block-template-part {
        top: 32px;
    }
}

/* Scrolled state - adds background and shadow when user scrolls down */
header.wp-block-template-part.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* Ensure smooth transition back to dark on scroll */
header.wp-block-template-part .wp-block-group {
  transition: background-color 0.9s ease;
}

header.wp-block-template-part .mobile_head_grid,
header.wp-block-template-part .desktop_head_grid {
    padding-top: 25px;
    padding-bottom: 25px;
    transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}
header.wp-block-template-part.scrolled .mobile_head_grid,
header.wp-block-template-part.scrolled .desktop_head_grid {
  padding-top: 10px;
  padding-bottom: 10px;
  /* No transition here — it lives on the base element only */
}
/* Dark background on all pages */
header.wp-block-template-part .wp-block-group {
  background-color: #1d1d1d;
}
/* Override to transparent on homepage — JS will handle the rest */
body.home header.wp-block-template-part .wp-block-group {
  background-color: transparent;
}

/* Offset page content on non-hero pages */
.wp-site-blocks {
  padding-top: var(--header-height, 20px);
}

/** Mobile / Desktop Grids **/

.wp-block-group .mobile_head_grid {
    display: grid;
    margin-block-start: 0!important;
}

/** Make Header Grid 2 columns on mobile and hide the first column **/

@media (max-width: 767px) {
    .has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog {
        margin-top: 0;
    }
    header .wp-block-group .is-menu-open button.wp-block-navigation__responsive-container-close {
        top: 10px;
    }
    .desktop_head_grid {
		grid-template-columns: auto 1fr !important;
	}
	.desktop_head_grid > .wp-block-buttons {
		display: none !important;
	}
	.desktop_head_grid > .ibx_header_logo {
		grid-column: 1;
	}
	.desktop_head_grid > .head_menu_col {
		grid-column: 2;
		justify-content: flex-end;
	}
}

@media screen and (min-width: 768px) {
    .wp-block-group .desktop_head_grid {
        display: grid;
        margin-block-start: 0!important;
    }
}

/** Header Logo **/

@media screen and (max-width: 768px) {
    .wp-block-image.ibx_header_logo.is-style-ibx-image-centre {
        text-align: left;
    }
}

/*--------------------------------------------------------------
2.1 Navigation
--------------------------------------------------------------*/
/** Menu Nav **/

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 0px;
}
.wp-block-navigation-item a:focus {
    outline: none !important;
}

/** Fixes the "Close" X vertical position when menue is open **/
header .wp-block-group .is-menu-open button.wp-block-navigation__responsive-container-close {
    top: 30px;
}

.wp-block-navigation__responsive-container.has-modal-open {
    padding-bottom: 6em; /** Adds padding to bottom of open menu block **/
}

/*--------------------------------------------------------------
2.2 Header Contact & Search
--------------------------------------------------------------*/

/*--------------------------------------------------------------
3.0 Pages
--------------------------------------------------------------*/

.page-template-default .std_page_head {
    border-top: 100px solid var(--wp--preset--color--lightest-grey);
}
.page-template-default .std_page_head h1 {
    font-size: var(--wp--preset--font-size--xx-large);
}

/** CTA Containers **/

/** IBX CTA Main **/
.wp-block-buttons.ibx_cta_main_wrapper {
    gap: 1em;
}
.ibx_cta_buttons_group {
    position: relative;
    top: -70px;
    z-index: 1;
    margin-bottom: -70px;
}
@media screen and (max-width: 768px) {
    .wp-block-button.is-style-ibx-cta-main {
        width: 100%;
    }
}

@media screen and (min-width: 768px) {
    .wp-block-buttons.ibx_cta_main_wrapper {
        gap: 2%;
    }
    .ibx_cta_buttons_group {
        top: -120px;
        margin-bottom: -120px;
    }
}

@media screen and (min-width: 1152px) {
    .wp-block-buttons.ibx_cta_main_wrapper {
        gap: 3%;
    }
    .ibx_cta_buttons_group {
        top: -120px;
        margin-bottom: -120px;
    }
}


/*--------------------------------------------------------------
3.1 Homepage
--------------------------------------------------------------*/

/** Homepage **/

/** Hero **/

/* Remove that offset on the hero page specifically */
.has-hero .wp-site-blocks {
    padding-top: 0;
}

/* Pull hero to the very top */
/* Tablet height: 400px */
.wp-block-cover.hero_section {
    margin-top: 0;
    min-height: 400px !important;
}

@media (min-width: 768px) {
    /* Tablet height: 600px */
    .wp-block-cover.hero_section {
        min-height: 600px !important;
    }
}
@media (min-width: 1152px) {
    /* Desktop height: 800px */
    .wp-block-cover.hero_section {
        min-height: 800px !important;
    }
}

@media (max-width: 768px) {
    .wp-block-group.inner_box {
        max-width: 210px;
        margin-left: -20px !important;
    }
}


section p.herocap.has-x-large-font-size {
    line-height: 1.2;
    padding-right: 20px;
    font-size: var(--wp--preset--font-size--medium) !important;
}

@media screen and (min-width: 768px) {

    .wp-block-columns.welcome_block {
        gap: 4em;
        margin-top: -60px;
    }
    section p.herocap.has-x-large-font-size {
        line-height: 1.4;
        padding-right: 40px;
        font-size: var(--wp--preset--font-size--x-large) !important;
    }
    .wp-block-group.inner_box {
        max-width: 330px;
        margin-left: 8%;
    }
}

/** Welcome Intro **/

/* Override WordPress default column stacking breakpoint for .welcome_block */
/* Re-stack at 1152px and below */

.page-template-ibx-home h1.wp-block-heading {
    font-size: var(--wp--preset--font-size--x-large);
}

@media (max-width: 1152px) {
	.wp-block-columns.welcome_block {
		flex-direction: column;
        margin-block-start: -30px;
	}
    .wp-block-columns.welcome_block .intro_text {
        max-width: 80%;
        margin-top: 1em;
        margin-bottom: 1em;
    }
    .wp-block-cover.welcome_cover_img {
        min-height: 300px !important;
    }
}

@media screen and (min-width: 1152px) {
    .wp-block-columns.welcome_block {
        gap: 4em;
        margin-top: -60px;
    }
    .wp-block-columns.welcome_block .intro_text {
        max-width: 600px;
        padding-right: 4%;
    }
}

/** Select Projects Grid GPT **/

.wp-block-columns-is-layout-flex.ibx-project-columns {
    gap: 0;
}
.ibx-project-col-1 .wp-block-cover.ibx-project-card,
.ibx-project-col-2 .wp-block-cover.ibx-project-card,
.ibx-project-col-3 .wp-block-cover.ibx-project-card {
    align-items: flex-start;
}
.ibx-project-col-1 .wp-block-cover.ibx-project-card,
.ibx-project-col-2 .wp-block-cover.ibx-project-card,
.ibx-project-col-3 .wp-block-cover.ibx-project-card {
    min-height: 260px;
}

@media screen and (min-width: 768px) {
    .wp-block-columns-is-layout-flex.ibx-project-columns {
        gap: 52px;
    }
    .ibx-project-col-1 .wp-block-cover.ibx-project-card,
    .ibx-project-col-3 .wp-block-cover.ibx-project-card,
    .ibx-project-col-2 .wp-block-cover.ibx-project-card {
        margin-block-end: 52px;
    }

    .ibx-project-col-1 .wp-block-cover.ibx-project-card,
    .ibx-project-col-3 .wp-block-cover.ibx-project-card {
        min-height: 534px;
    }
    .ibx-project-col-2 .wp-block-cover.ibx-project-card {
        min-height: 339px;
    }
}
@media screen and (max-width: 768px) {
    .ibx-project-columns .wp-block-cover.ibx-project-card {
        margin-block-end: 0;
        margin-bottom: 26px;
    }
    .ibx-project-columns .wp-block-column {
        margin-bottom: 6px;
    }
}

.ibx-project-card {
	position: relative;
	overflow: hidden;
}

/** Select Projects Grid
** Make the button fill the entire card **/
/* Make the cover the anchor point CLAUDE */
.ibx-project-card {
    position: relative;
}
/* Stretch all intermediate wrappers to full height */
.ibx-project-card .wp-block-cover__inner-container,
.ibx-project-card .wp-block-group {
    position: static; /* remove any positioning so <a> skips past them */
}
/* Now the <a> will stretch to .ibx-project-card */
a.ibx-card-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 10;
    text-decoration: none;
}
.ibx-project-card .ibx-card-link {
    transition: all 0.3s ease;
}
.ibx-project-card .ibx-card-link h3 {
    border-bottom: 2px solid white;
    padding-top: 15px;
    padding-bottom: 20px;
    padding-right: 20px;
    margin-bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M30 28V0h-2v26.586L1.422.008.008 1.422 26.586 28H0v2h30z' style='fill:%23fff'/%3E%3C/svg%3E");
    background-size: 30px auto;
    background-position: bottom 20px right;
    background-repeat: no-repeat;
}
.ibx-project-card .ibx-card-link {
	background: rgba(255,0,0,0.2);
    padding: 6px 7%;
    opacity: 0;
}
.ibx-project-card a.ibx-card-link:hover {
	background: rgba(1,65,113,0.8);
    opacity: 1.0;
}
.ibx-project-card .wp-block-cover__image-background {
  transition: transform 0.3s ease;
}
.ibx-project-card:hover .wp-block-cover__image-background {
  transform: scale(1.05);
}

/** Services Grid **/

/** Column 1 **/

/** Places button at the bottom of the coloumn **/
.our-services-col1 {
    position: relative;
}
.our-services-col1 .wp-block-buttons {
    position: absolute;
    bottom: 0;
}
/** Pushes the button down so no overlapping **/
.our-services-col1 p:last-of-type {
    margin-bottom: 2em;
    border-bottom: 60px solid white;
}


/* ================================================
   Services Grid
   ================================================ */

.ibx-services-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 4rem);
    row-gap: clamp(2.5rem, 4vw, 5rem);
}

.ibx-services-grid .ibx-service-item {
    margin: 0;
    padding: 0;
}

.ibx-services-grid .ibx-service-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "image image"
        "text arrow";
    grid-template-rows: auto 1fr;
    align-items: end;
    column-gap: 1.25rem;
    row-gap: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ibx-services-grid .ibx-service-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}


/* ================================================
   Image
   ================================================ */

.ibx-services-grid .ibx-service-image {
    overflow: hidden;
}

/* Duplicate .ibx-service-image img rules merged — base state wins from later block;
   max-width and height: auto kept; cubic-bezier updated to the zoom-specific curve */
.ibx-services-grid .ibx-service-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 260px;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.ibx-services-grid .ibx-service-card:hover .ibx-service-image img,
.ibx-services-grid .ibx-service-card:focus-visible .ibx-service-image img {
    transform: scale(1);
}


/* ================================================
   Text
   ================================================ */

.ibx-services-grid .ibx-service-text {
    grid-area: text;
    display: block;
    padding-left: 6%;
    font-size: clamp(1.2rem, 1.4vw, 1.6rem);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-wrap: balance;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M0 29h29V0h-2v25.586L1.434.02.02 1.434 25.586 27H0z' style='fill:%231d1d1d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom 10px right 10px;
    background-size: 30px auto;
    transition: background-position 0.3s ease; /* was 'all' — scoped to only what changes */
}

.ibx-services-grid a:hover .ibx-service-text {
    background-position: bottom 5px right 5px;
}

.ibx-services-grid .ibx-service-text span {
    display: block;
}


/* ================================================
   Arrow
   ================================================ */

/* Duplicate .ibx-service-arrow rules merged — transition updated to the later cubic-bezier value */
.ibx-services-grid .ibx-service-arrow {
    grid-area: arrow;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: clamp(2.6rem, 3vw, 4rem);
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ibx-services-grid .ibx-service-card:hover .ibx-service-arrow,
.ibx-services-grid .ibx-service-card:focus-visible .ibx-service-arrow {
    transform: translate(6px, -6px);
}


/* ================================================
   Tablet / Mobile  (max-width: 781px)
   ================================================ */

@media (max-width: 781px) {

    /* Redundant double-class .ibx-services-grid.ibx-services-grid simplified */
    .ibx-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0;
        row-gap: 2.5rem;
    }

    .ibx-services-grid .ibx-service-card {
        column-gap: 0.25rem;
    }

    /* Duplicate .ibx-service-text rules merged into one block */
    .ibx-services-grid .ibx-service-text {
        font-size: clamp(1.35rem, 4vw, 2rem);
        background-size: 15px auto;
        background-position: bottom 5px right 5px;
    }

    .ibx-services-grid a:hover .ibx-service-text {
        background-position: bottom 1px right 1px;
    }

    .ibx-services-grid .ibx-service-image img {
        max-width: 220px;
    }

    .ibx-services-grid .ibx-service-arrow {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}


/*--------------------------------------------------------------
3.2 Service Page
--------------------------------------------------------------*/

.page-template-service-pge .title_block {
    margin-right: 7%;
    margin-left: 7%;
    margin-bottom: 7%;
}
.page-template-service-pge .title_block {
    padding-top: 2em;
    padding-bottom: 2em;
}
@media (max-width: 768px) {
  .page-template-service-pge .wp-block-post-featured-image,
  .page-template-service-pge .wp-block-post-featured-image img {
    height: 250px !important;
  }
}

@media screen and (min-width: 768px) {
    .page-template-service-pge .title_block {
        margin-right: 70px;
        margin-left: 0;
        margin-bottom: 0;
    }
    .page-template-ibx-primary-page h1,
    .page-template-service-pge h1 {
        font-size: 56px;
    }
    .ibx-primary-page-wrapper {
        max-width: var(--wp--style--global--wide-size);
        margin-left: auto;
        margin-right: auto;
    }
    .page-template-ibx-primary-page .ibx_page_title.alignwide {
        width: fit-content !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: auto !important;
        padding-right: var(--wp--style--root--padding-right);
    }
}
@media screen and (min-width: 1930px) {
    .ibx-primary-page-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}

/** Eqnquire CTA **/

.page-template-service-pge :where(.wp-site-blocks) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}



/*--------------------------------------------------------------
4.0 Footer
--------------------------------------------------------------*/

footer.wp-block-template-part {
    margin-block-start: 0!important;
}
element.style {
    padding-bottom: var(--wp--preset--spacing--0);
}

/*--------------------------------------------------------------
4.1 Footer General
--------------------------------------------------------------*/

/*--------------------------------------------------------------
4.2 Site Info
--------------------------------------------------------------*/

/*--------------------------------------------------------------
5.0	Gravity Forms
--------------------------------------------------------------*/

/*--------------------------------------------------------------
6.0 Blog
--------------------------------------------------------------*/

:root :where(.is-style-post-terms-1--5 a:where(:not(.wp-element-button))) {
    border-radius: 0;
}

/** Claude **/
/* ============================================
   InBox Projects — Blog Grid Layout
   Paste into: Appearance > Additional CSS
   ============================================ */

/* ── Grid container ── */
.ibp-blog-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Each card ── */
.ibp-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

/* ── Featured image: fixed aspect ratio, no overflow ── */
.ibp-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.ibp-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ibp-card .wp-block-post-featured-image:hover img {
  transform: scale(1.03);
}

/* ── Post title ── */
.ibp-card .wp-block-post-title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.blog .wp-block-query .ibp-card h2.wp-block-post-title {
    margin-top: 0;
    margin-bottom: 0;
}

.ibp-card .wp-block-post-title a {
  text-decoration: none;
  color: inherit;
  background-color: var(--wp--preset--color--darkest-grey);
  color: var(--wp--preset--color--base);
  display: block;
  padding: 20px;
  min-height: 60px;
}

.ibp-card .wp-block-post-title a:hover {
  text-decoration: underline;
}

/* ── Tags ── */
.ibp-card .wp-block-post-terms {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.4;
  color: #888;
}

.ibp-card .wp-block-post-terms a {
  color: inherit;
  text-decoration: none;
  background: #f0f0f0;
  padding: 2px 7px;
  margin-right: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.ibp-card .wp-block-post-terms a:hover {
  background: #e0e0e0;
}

/* ── Pagination ── */
.ibp-blog-grid .wp-block-query-pagination {
  margin-top: 3rem;
}

/* ── Responsive: 2 columns on tablet ── */
@media (max-width: 1024px) {
  .ibp-blog-grid .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: 1 column on mobile ── */
@media (max-width: 600px) {
  .ibp-blog-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}
