/*
	BlogFusion block styles. Loaded on the front end (after assets/css/main.css) and in the editor. (inc/block-editor.php)

	1. Button block styles   (is-style-wpi-*)   : the theme button looks (.button.is-*).
	2. Group block styles    (is-style-wpi-alert-*)
	3. Heading block style   (is-style-wpi-section-title)
	4. Core Tabs, Accordion, Details
	5. Patterns              (patterns/*.php)   : .wpi-timeline, .wpi-skill, .wpi-testimonial, .wpi-service, .wpi-fun-fact, .wpi-contact, .wpi-portfolio-grid
*/


/* 1. BUTTON BLOCK STYLES */
.wp-block-button[class*="is-style-wpi-"] .wp-block-button__link {
	display: inline-block; position: relative; padding: 14px 26px; border: 2px solid currentColor; border-radius: 0; color: inherit; background: none; font-size: 12px; font-weight: 500; letter-spacing: 1px; line-height: 1.5; text-transform: uppercase;
	}
.wp-block-button[class*="is-style-wpi-"] .wp-block-button__link:hover {
	color: inherit; background: none;
	}
.wp-block-button[class*="is-style-wpi-"] .wp-block-button__link:active {
	top: 2px; right: 2px;
	}
/* Solid */
.wp-block-button.is-style-wpi-solid .wp-block-button__link,
.wp-block-button.is-style-wpi-solid .wp-block-button__link:hover {
	color: #fff; background: #111; border-color: transparent;
	}
/* Solid Light */
.wp-block-button.is-style-wpi-solid-light .wp-block-button__link,
.wp-block-button.is-style-wpi-solid-light .wp-block-button__link:hover {
	background: #eadcdc; border-color: transparent;
	}
/* Underline */
.wp-block-button.is-style-wpi-underline .wp-block-button__link {
	padding: 1px 0; border: 0; border-bottom: 2px solid currentColor; background: none;
	}
/* Naked */
.wp-block-button.is-style-wpi-naked .wp-block-button__link {
	padding: 3px 0; border: 0; background: none;
	}
.wp-block-button.is-style-wpi-naked .wp-block-button__link::after {
	content: ''; position: absolute; width: 100%; height: 2px; bottom: 0; right: 0; background-color: currentColor; transform: scaleX(0); transform-origin: bottom left; transition: transform 0.3s;
	}
.wp-block-button.is-style-wpi-naked .wp-block-button__link:hover::after {
	transform-origin: bottom right; transform: scaleX(1);
	}
/* 3D */
.wp-block-button.is-style-wpi-3d .wp-block-button__link {
	box-shadow: -1px 1px 0, -2px 2px 0, -3px 3px 0, -4px 4px 0, -5px 5px 0; transition: all 0s;
	}
.wp-block-button.is-style-wpi-3d .wp-block-button__link:hover:active {
	top: 5px; right: 5px; box-shadow: none;
	}
/* Shadow */
.wp-block-button.is-style-wpi-shadow .wp-block-button__link,
.wp-block-button.is-style-wpi-shadow .wp-block-button__link:hover {
	color: #fff; background: #111; border-color: transparent; box-shadow: 0 18px 23px -6px #111;
	}
.wp-block-button.is-style-wpi-shadow .wp-block-button__link:hover {
	transform: translate(0, 2px); box-shadow: 0 2px 10px -5px #111;
	}


/* 2. GROUP BLOCK STYLES : ALERTS */
.wp-block-group[class*="is-style-wpi-alert-"] {
	position: relative; padding: 1em 2.2em; margin-top: 2em; margin-bottom: 2em; line-height: 1.4; border: 2px solid #ddd;
	}
.wp-block-group[class*="is-style-wpi-alert-"] > :first-child {
	margin-top: 0;
	}
.wp-block-group[class*="is-style-wpi-alert-"] > :last-child {
	margin-bottom: 0;
	}
.wp-block-group.is-style-wpi-alert-info    { border-color: #9CC3E6; }
.wp-block-group.is-style-wpi-alert-success { border-color: #8EE1A8; }
.wp-block-group.is-style-wpi-alert-warning { border-color: #F5C26B; }
.wp-block-group.is-style-wpi-alert-error   { border-color: #FF6140; }


/* 3. HEADING BLOCK STYLE : SECTION TITLE (widget title look) */
.wp-block-heading.is-style-wpi-section-title {
	margin: 50px 0 30px; font-family: var(--wpi-font-base, inherit); font-size: 11px; font-weight: 400; letter-spacing: 2px; line-height: 1.3; text-align: center; text-transform: uppercase;
	}
.wp-block-heading.is-style-wpi-section-title:first-child {
	margin-top: 0;
	}


/* 4. CORE TABS / ACCORDION / DETAILS */
/* Tabs */
.wp-block-tabs {
	margin-top: 2em; margin-bottom: 2em;
	}
.wp-block-tab-list button {
	padding: 6px 12px; color: inherit; background: #fff; font-size: 11px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; border: 0; border-radius: 0;
	}
.wp-block-tab-list button[aria-selected=true] {
	background: rgba(33, 41, 51, 0.07);
	}
.wp-block-tab-list button[aria-selected=true]::before {
	display: none;
	}
.wp-block-tab-panel {
	padding: 1.2em 0;
	}
.wp-block-tab-panel > :last-child {
	margin-bottom: 0;
	}

/* Accordion (toggles) */
.wp-block-accordion {
	margin-top: 2em; margin-bottom: 2em;
	}
.wp-block-accordion-heading {
	margin: 0; font-family: var(--wpi-font-base, inherit); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	}
.wp-block-accordion-heading__toggle {
	padding: 12px 0;
	}
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none; opacity: .7;
	}
.wp-block-accordion-heading__toggle-icon {
	font-size: 14px; opacity: .6;
	}
.wp-block-accordion-panel {
	padding: 4px 0 14px;
	}
.wp-block-accordion-panel > :last-child {
	margin-bottom: 0;
	}

/* Details (single toggle) */
.wp-block-details {
	margin-top: 1.4em; margin-bottom: 1.4em;
	}
.wp-block-details summary {
	padding: 12px 0; font-family: var(--wpi-font-base, inherit); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	}
.wp-block-details > :last-child {
	margin-bottom: 0;
	}


/* 5. PATTERNS */
/* Timeline */
.wpi-timeline {
	position: relative; padding: 1em 0 3em;
	}
.wpi-timeline .wpi-timeline-event {
	position: relative; padding: 0 2.4em 2em 1em; margin: 0;
	}
.wpi-timeline .wpi-timeline-event::before {
	content: ""; position: absolute; top: 10px; bottom: -10px; right: 12px; width: 3px; background: #f1f1f1;
	}
.wpi-timeline .wpi-timeline-event::after {
	content: ""; position: absolute; top: 2px; right: 7px; width: 12px; height: 12px; border: 3px solid #ddd; outline: 4px solid #fff; border-radius: 50%; background: #fff; box-sizing: content-box;
	}
.wpi-timeline .wpi-timeline-event:last-child {
	padding-bottom: 0;
	}
.wpi-timeline .wpi-timeline-event:last-child::before {
	bottom: 4px;
	}
.wpi-timeline .wpi-timeline-date {
	margin: 0 0 1.2em; color: rgba(171, 171, 171, 0.5); font-size: 19px; font-weight: 700; line-height: 1; text-transform: uppercase;
	}
.wpi-timeline .wpi-timeline-event h4 {
	margin: 0 0 .2em; padding: 0; font-size: 16px;
	}
.wpi-timeline .wpi-timeline-subtitle {
	margin: 0; padding: 0 0 .3em; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .35;
	}
.wpi-timeline .wpi-timeline-event p:not([class*="wpi-timeline-"]) {
	margin: .6em 0 .2em;
	}
.wpi-timeline .wpi-timeline-event > :last-child {
	margin-bottom: 0;
	}

/* Skills */
.wpi-skill {
	margin-top: 1.4em; margin-bottom: 0;
	}
.wpi-skill .wpi-skill-label {
	margin-bottom: 4px;
	}
.wpi-skill .wpi-skill-label p {
	margin: 0; font-size: 14px; opacity: .8;
	}
.wpi-skill .wpi-skill-bar {
	height: 6px; background: #eee; gap: 0;
	}
.wpi-skill .wpi-skill-progress {
	height: 100%; min-height: 6px; background: #222;
	}

/* Testimonial */
.wpi-testimonial {
	position: relative; padding: 1.4em 1.8em; margin-top: 2em; margin-bottom: 1em; text-align: center; border: 1px solid #eee; border-radius: 4px; box-shadow: inset 0 1px 0 #fff, -1px 1px 0 #fff, -2px 2px 0 #fff, -3px 3px 0 #eee;
	}
.wpi-testimonial p {
	margin: .6em 0 .2em; font-size: 13px;
	}
.wpi-testimonial h4 {
	margin: 1em 0 0; font-size: 15px;
	}
.wpi-testimonial .wpi-testimonial-role {
	margin: 0; font-size: 12px; color: #aaa;
	}

/* Services */
.wpi-service {
	margin: 1em 0;
	}
.wpi-service .wpi-service-number {
	float: right; width: 52px; margin: 0; font-size: 38px; line-height: 50px; color: #333;
	}
.wpi-service h4 {
	margin: 0 74px .4em 0;
	}
.wpi-service p:not(.wpi-service-number) {
	margin: .2em 74px 0 0; font-size: 13px; opacity: .6;
	}

/* Fun facts */
.wpi-fun-fact {
	margin-top: 1em; margin-bottom: 2em; text-align: center;
	}
.wpi-fun-fact .wpi-fun-fact-number {
	margin: 0 0 .2em; font-size: 38px; line-height: 1;
	}
.wpi-fun-fact h4 {
	margin: 0; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 2px; text-transform: uppercase; opacity: .3;
	}

/* Contact */
.wpi-contact .wpi-contact-details p {
	margin: 0 0 .4em;
	}
.wpi-contact .wpi-contact-details strong {
	display: inline-block; min-width: 5em; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .6;
	}

/* Portfolio grid (Query Loop of child pages) */
.wpi-portfolio-grid .wp-block-post-template {
	gap: 30px;
	}
.wpi-portfolio-grid .wp-block-post-featured-image {
	margin: 0 0 .8em; overflow: hidden;
	}
.wpi-portfolio-grid .wp-block-post-featured-image img {
	transition: transform .4s ease-out, opacity .4s ease-out;
	}
.wpi-portfolio-grid .wp-block-post-featured-image a:hover img {
	transform: scale(1.04); opacity: .9;
	}
.wpi-portfolio-grid .wp-block-post-title {
	margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em;
	}
.wpi-portfolio-grid .wp-block-post-title a {
	color: inherit;
	}
.wpi-portfolio-grid .wp-block-query-pagination {
	margin-top: 2em;
	}
