/* make room for menu link on mobile #17607800-hc */
@media only screen and (max-width:680px) {
	.site-header-wrapper .site-branding {
		margin-top: 40px;
	}
}

/* make menu and logo sticky on mobile  / 17647126-hc bk */
@media only screen and (max-width:560px) {
	#masthead {
		position: fixed;
		z-index: 9999;
		padding-top: 10px;
		padding-bottom: 4px;
	}
	
	.site-main {
		padding-top: 30px;
	}
	
	#masthead .site-header-wrapper .site-branding {
		margin: 0;
	}
}	
	/* set max logo size on desktop */
	#masthead .site-header-wrapper .site-branding .site-logo img {
		max-width: 180;
	}

/* set max logo size on mobile */
	@media only screen and (max-width: 600px) {
	#masthead .site-header-wrapper .site-branding .site-logo img {
		max-width: 200px;
	}
	}

/* Force smaller logo on desktop */
@media only screen and (min-width: 601px) {
	.site-logo, 
	.site-logo img,
	.site-branding img {
		max-width: 190px !important;
		width: 100% !important;
		height: auto !important;
	}
}

/* change footer text colors  / 17647126-hc bk */
.site-footer h2,
.site-footer a {
	color: #FFF;
}

/* set max width for footer logo / 17647126-hc bk */
#media_image-3 {
	max-width: 210px;
}

/* make footer menu horizontal  / 17647126-hc bk */
.menu-primary-nav-container ul {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	padding-left: 0;
}

/* footer nav lines and spacing  / 17647126-hc bk */
.menu-primary-nav-container a {
	margin-right: 8px;
	padding-right: 8px;
	border-right: 2px solid #FFF;
	font-size: 12px;
}

/* remove existing credit  / 17647126-hc bk */
.site-info a {
	display: none;
}

/* add footer credit  / 17647126-hc bk */
.site-footer .widget-area:after {
	display: block;
	margin-top: 30px;
	color: #FFFFFF;
	white-space: pre-line;
	content: '© 2026 Disruptable Ltd. CRN: 16255343 \A All Rights Reserved.';
}

/* change footer widget title size  / 17647126-hc bk */
.site-footer .widget-area .widget-title {
	color: #FFFFFF;
	font-size: 12px;
}

/* hide footer submenus  / 17647126-hc bk */
.menu-primary-nav-container .sub-menu {
	display: none;
}

/* Style contact us link as a button in footer HC-17647126-AM */
#text-3 a {
	background-color: #242423;
/* Green, choose a new color here: https://www.w3schools.com/colors/colors_picker.asp */
	border: 1px solid white;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 12px;
}

.widget-area #media_image-3 {
	height: 40px;
	width: 200px;
}

/*decrease the size of the copyright text in the footer 17647126-HC*/
.site-footer .widget-area::after {
	font-size: 12px;
}

/* square mobile button - 17668958-HC */
#site-navigation .button, .main-navigation #toggle:focus+#toggle-menu {
	border-radius: 2px;
}

/* square submit button - 17668958-HC */

/* square submit button - 17668958-HC */
.has-background-color[class] {
	border-radius: 2px;
}

/* Change logos size - 17668958-HC */
.wp-block-coblocks-logos__row>div {
	padding-top: 0;
	padding-right: 4.9em;
	padding-bottom: 0;
	padding-left: 4.9em;
}


@media only screen and (max-width: 600px) {
	.wp-block-coblocks-logos__row>div {
		padding-top: 0;
		padding-right: 1.25em;
		padding-bottom: 0;
		padding-left: 1.25em;
	}
}

/* Fix CoBlocks logos disappearing on mobile */
.wp-block-coblocks-logos__row img {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	filter: none !important;
}

@media only screen and (max-width: 600px) {
	.wp-block-coblocks-logos__row,
	.wp-block-coblocks-logos__row > div,
	.wp-block-coblocks-logos__row img {
		opacity: 1 !important;
		visibility: visible !important;
		filter: none !important;
	}
}

/* Remove padding between main and footer */
.site-main {
	padding-bottom: 0;
}

/* last vertical strike in footer */
.menu-primary-nav-container li:last-child a {
	border-right: none;
}

/* mobile menu tweaks */
label#toggle-menu {
	padding-right: .5px;
}

.main-navigation>div>ul li {
	text-align: right;
}

.site-menu .menu-primary-nav-container a {
	padding-right: unset;
}

#masthead .site-header-wrapper .main-navigation ul li.current-menu-item>a, #masthead .site-header-wrapper .main-navigation ul li a:after {
	border-color: #817e82;
	color: #817e82;
}

a:hover {
	color: #817e82 !important;
}

/* change #primary margin-top | KW-17824253-hc */
#primary {
  margin-top: 0px !important;
}

/* METASLIDER CAPTION TEXT SIZE, BOLD AND OPACITY */

.metaslider .caption {
    font-size: 1.3em !important;
}
div.caption-wrap .caption {
    font-weight: bold;
}

.metaslider .caption-wrap {
    opacity: 1 !important;
}

/* Class for blocks: Reduce margin | JC-18049162-hc */
.reduce-top-margin {
  margin-top: 0px !important;
}
/* Class for blocks: Reduce margin | JC-18049162-hc */
.reduce-bottom-margin {
  margin-bottom: 4px !important;
}

/* Moves entry title above category links in posts on the homepage newspack block */
.wp-block-newspack-blocks-homepage-articles .entry-wrapper {
    display: flex;
    flex-direction: column;
}
.entry-title {
    order: 1;
}
.cat-links {
    order: 2;
}
.entry-meta {
    order: 3;
}

/* Reduces margin between featured image and post title on the homepage newspack block */
.wp-block-newspack-blocks-homepage-articles.image-aligntop .post-thumbnail {
    margin-bottom: 0;
}

/* Reduce header on monile of casestudies */

.page #main {
  padding-top:0
}

/* Less padding below recent posts on home pahe | HC-20900985-JG */

.home .wp-block-newspack-blocks-homepage-articles {
  margin-bottom:0;
}

/* Make Blog Posts block match default button stylle. | HC-20900985-JG */

.wp-block-newspack-blocks-homepage-articles button {
  border-radius:0;
  background:#242423;
}

/* Add padding to post titles so they appear | HC-20900985-JG */
@media (min-width:559px){
.single-post .post {
  padding-top:150px;
}
}

@media (max-width:559px){
.single-post .post {
  padding-top:50px;
}
}

/* Adjust Post Title Text Size On Mobile */

@media (max-width:559px){
.single-post .post .entry-title {
  font-size: 32px
}
}

/* Masthead / 21443159-HC (MI) */

#masthead {
	background: #ffffff;
}

/* Main menu links & sub menu / 21443159-HC (MI) */

.main-navigation a:link, .main-navigation a:visited {
	color: #242423;
}

@media only screen and (min-width: 560px) {
	#site-navigation > div > ul > li > .sub-menu {
		background: #ffffff;
	}
}

/* Mobile menu / 21443159-HC (MI) */

#site-navigation > div {
	background: #ffffff;
	border-top-color: #ffffff;
	box-shadow: none;
}

/* hide mobile menu text  | 21443159-hc bk */
#toggle-menu.button {
  visibility: hidden;
}

/* change mobile menu color - closed  | 21443159-hc bk */
#site-navigation #toggle-menu:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E");
}

/* change mobile menu color - open | 21443159-hc bk */
#site-navigation #toggle:checked + #toggle-menu:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'%3E%3C/path%3E%3C/svg%3E");
}

/* change mobile menu sze | 21443159-hc bk */
#site-navigation #toggle-menu:after,
#site-navigation #toggle:checked + #toggle-menu:after {
	visibility: visible;
	background-size: cover;
	padding: 20px;
}

/* add border to bottom of header  | 21443159-hc bk */
.site-header {
  border-bottom: 1px solid #E0E0E0;
}

/* add background to footer  | 21443159-hc bk */
.site-footer {
  background-color: #242423;
}

/* Set foooter widgets in a single column | HC-21443159-JG */
#colophon section {
  width:100%;
  float:none;
}
/* Increase widget area padding on mobile / #21443159-HC JB */

.widget-area:before {
    margin-bottom: 64px;
}
/* Remove Widget nav borders / #21443159-HC JB */
.widget_nav_menu ul, .widget_nav_menu ul li {
    border-top: unset;
    border-bottom: unset;
}
/* Removed the underline from links in the footer / #21443159-HC JB */
.widget-area a {
	text-decoration: unset;
}
/*  hide dots from menu -- 21443159-hc (DOC) */
#site-navigation > div > ul > li:not(:first-child):before {
  display: none;
} 
/*   -- 21443159-hc (DOC) */
@media only screen and (max-width: 560px) {
#masthead {
  padding-right: 0;
  }
}
/*  remove inner border from buttons -- 21443159-hc (DOC) */
button, input[type="submit"] {
  outline-width: 0;  
}
.wp-block-button__link:before {
  border: none;
}

/* hide WP action bar #17607800-hc */
#actionbar {
	display: none;
}

/* set width for single post header and footer for screens < 640px | #21782033-hc eD */
.single-post .hentry .entry-header,
.single-post .hentry .entry-footer {
	width: calc( 560px - 32px);
}

/* set width for single post header and footer for screens > 782px | #21782033-hc eD */
@media screen and (min-width: 782px) {
	.single-post .hentry .entry-header,
	.single-post .hentry .entry-footer {
		width: calc( 782px - 32px);
	}
}
/* set text alignment for single post header and footer | #21782033-hc eD */
.single-post .hentry .entry-header,
.single-post .hentry .entry-footer {
	text-align: left;
}
/* make single post page entry use display flex to reorder items | #21782033-hc eD */
.single-post .hentry {
	display: flex;
	flex-direction: column;
}
/* keep entry title at the top of the post, reduce bottom margin | #21782033-hc eD */
.single-post .hentry .entry-header {
	order: -2;
	margin-bottom: 8px;
}
/* move entry footer to below the header, remove top margin | #21782033-hc eD */
.single-post .hentry .entry-footer {
	order: -1;
	margin-top: 0;
}

/*Remove white line above widget area - 23011894-hc*/
.widget-area:before {
	background-color: #242423;
}

/* adjust style of button in coblocks author block | #23011894-hc eD */
.wp-block-coblocks-author .wp-block-button .wp-block-button__link {
	background: #242423 !important;
	color: #ffffff !important;
	text-transform: uppercase;
}

/* Style the Contact menu item using its visible text */
.main-navigation a[href*="contact"] {
    background-color: #242423; /* Dark background */
    color: #ffffff !important; /* White text */
    padding: 8px 16px; /* Initial padding */
    border-radius: 100px;
    font-weight: bold;
    display: inline-block; /* Makes the link behave like a block-level element */
    text-align: center; /* Center the text horizontally */
    line-height: 1; /* Aligns text vertically within the button */
}

/* Optional: add hover state */
.main-navigation a[href*="contact"]:hover {
    background-color: #7e7e7e;
}

/* Media query for desktop (screens wider than 768px) */
@media (min-width: 768px) {
    /* Increase the padding and size of the button box on desktop */
    .main-navigation a[href*="contact"] {
        padding: 12px 2px; /* Increase padding for a bigger button */
        min-width: 100px; /* Set a minimum width for the button to make it larger */
    }
}
/* Keep the "Contact" button bold */
.main-navigation a[href*="contact"] {
    font-weight: bold; /* Make the "Contact" button bold */
}

/* Remove boldness from all other menu items */
.main-navigation a {
    font-weight: normal; /* Remove bold from all other menu items */
}

/* Hide Rockfield's automatic author biography on blog posts */
.single-post .author-bio {
	display: none;
}

.chaty-whatsapp-content .wp-profile-img img {
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Hide WordPress automatic Privacy Policy footer link */
.privacy-policy-link {
  display: none !important;
}

/* ==========================================================================
   Latest Posts Block: Responsive Grid, Sizing, Padding & Alignment
   ========================================================================== */

/* 1. Outer Container Alignment & Side Padding */
ul.wp-block-latest-posts.is-grid,
.wp-block-latest-posts.is-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    align-items: start !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* 2. List Item Reset for Equal Top Alignment */
.wp-block-latest-posts.is-grid li {
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: start !important;
    box-sizing: border-box !important;
}

/* 3. Featured Image Container & Aspect Ratio (Prevents Image Cropping) */
.wp-block-latest-posts.is-grid li .wp-block-latest-posts__featured-image,
.wp-block-latest-posts.is-grid li .wp-block-latest-posts__featured-image a {
    display: block !important;
    width: 100% !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
}

.wp-block-latest-posts.is-grid li .wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important; /* Maintains natural 16:9 landscape proportions */
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
    max-width: 100% !important;
}

/* 4. Post Title Typography & Line Height */
.wp-block-latest-posts.is-grid li > a,
.wp-block-latest-posts.is-grid li .wp-block-latest-posts__post-title {
    font-size: 1.1rem !important; /* Balanced headline scale */
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111111 !important;
    text-decoration: none !important;
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 0.4rem !important;
}

.wp-block-latest-posts.is-grid li > a:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* 5. Metadata Styling (Author & Date) */
.wp-block-latest-posts.is-grid li .wp-block-latest-posts__post-author,
.wp-block-latest-posts.is-grid li .wp-block-latest-posts__post-date {
    font-size: 0.8rem !important;
    color: #666666 !important;
    margin-top: 0.2rem !important;
}

/* 6. Mobile Responsive Override (Single-Column Vertical Stack with Padding) */
@media screen and (max-width: 768px) {
    ul.wp-block-latest-posts.is-grid,
    .wp-block-latest-posts.is-grid,
    .wp-block-latest-posts.columns-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .wp-block-latest-posts.is-grid li {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .wp-block-latest-posts.is-grid li .wp-block-latest-posts__featured-image img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
}
