/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* Let's Talk Header */

p {
	margin-block-start: 0 !important;
}
#sweeney-bug {
    fill: var(--awb-color1);
}

#lets-talk {
 position: fixed;
 bottom: 0;
 z-index:1000;
 width:100%;
}

#lets-talk svg {
    width: 85px;
    height: 85px;
    margin-left:50px;
}

#lets-talk #sweeney-bug {
    fill: var(--awb-color7);
}

#talk {
    color: var(--awb-color1);
    font-size: 1.6rem;
}

@media screen and (max-width:768px){
	
h1.fusion-title-heading, .sw-header h1, h2.fusion-title-heading {
	font-size:3.5rem !important;
}
}


/* Static 4-Point Gradient - Working Version */
.fusion-fullwidth.gradient-static,
.gradient-static {
    background-color: #d81b60 !important;
    background-image:
       radial-gradient(ellipse 80% 100% at 15% 75%, #ff1744 0%, transparent 70%),
  radial-gradient(ellipse 85% 95% at 35% 55%, #e91e63 0%, transparent 75%),
  radial-gradient(ellipse 90% 100% at 65% 35%, #9c27b0 0%, transparent 80%),
  radial-gradient(ellipse 75% 85% at 85% 15%, #7b1fa2 0%, transparent 70%);

    /* Ensure other properties don't interfere */
    background-size: auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-blend-mode: normal !important;
}

.service-boxes .content-container p {
	font-size:13px;
}
.service-boxes .content-box-wrapper .heading {
	margin-bottom:0 !important;
}
.service-boxes .content-container {
	font-size:14px !important;
}
#sw-lets-talk,
#sw-lets-talk a {
	color: var(--awb-color1);
	transition: color 0.3s;
}

#sw-lets-talk:hover,
#sw-lets-talk a:hover {
	color: #ffffff;
}

#sw-lets-talk[data-contrast="light"],
#sw-lets-talk[data-contrast="light"] a {
	color: #ffffff;
}

#sw-lets-talk[data-contrast="light"]:hover,
#sw-lets-talk[data-contrast="light"] a:hover {
	color: #464646;
}

.post.industry,
.post.service,
.post.case-study {
	margin-bottom: 0;
}

/* Case Study Post Cards — border draw on hover */
.sw-cs-column {
	position: relative;
	overflow: hidden;
}

.sw-cs-column::after {
	content: "";
	position: absolute;
	inset: 30px;
	border-top: 1px solid #ff5555;
	border-bottom: 1px solid #ff5555;
	opacity: 0;
	transform: scale(0, 1);
	transition: opacity 0.35s, transform 0.35s;
	z-index: 10;
	pointer-events: none;
}

.sw-cs-column::before {
	content: "";
	position: absolute;
	inset: 30px;
	border-left: 1px solid #ff5555;
	border-right: 1px solid #ff5555;
	opacity: 0;
	transform: scale(1, 0);
	transition: opacity 0.35s, transform 0.35s;
	z-index: 10;
	pointer-events: none;
}

.sw-cs-column:hover::after {
	opacity: 1;
	transform: scale(1, 1);
}

.sw-cs-column:hover::before {
	opacity: 1;
	transform: scale(1, 1);
}

/* Image darken — overlay sits between bg-image and text */
.sw-cs-column .fusion-column-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.35s;
	z-index: 1;
	pointer-events: none;
}

.sw-cs-column:hover .fusion-column-wrapper::before {
	background-color: rgba(0, 0, 0, 0.4);
}

/* Lift text content above the overlay */
.sw-cs-column .fusion-column-wrapper > * {
	position: relative;
	z-index: 2;
}

/* Reveal text — hidden by default, shown on hover */
.sw-reveal-text {
	opacity: 0;
	transition: opacity 0.35s;
}

.sw-cs-column:hover .sw-reveal-text {
	opacity: 1;
}

.type-post h1 {
	font-size:3.5rem;
}
.type-post h2, .type-post h3{
	font-size:2.5rem !important;
}
.type-post h4, .type-post h5, .type-post h6 {
	font-size:1.5rem !important;
}


/* Insights: sidebar filter layout */
.sw-insights.fusion-post-cards {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 60px;
	margin-top: 20px;
}


/* Suppress load-more loading message */
.sw-insights .fusion-loading-container {
	position: absolute !important;
	height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Sidebar — the anonymous div wrapping .fusion-filters */
.sw-insights.fusion-post-cards > div:has(> ul.fusion-filters) {
	width: 200px;
	min-width: 200px;
	flex-shrink: 0;
	position: sticky;
	top: 120px;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
}

/* Posts grid fills remaining space */
.sw-insights.fusion-post-cards > ul.fusion-grid {
	flex: 1 1 0%;
	min-width: 0;
}

/* Load more button spans full row */
.sw-insights.fusion-post-cards .fusion-load-more-button {
	flex: 0 0 100%;
	width: 100%;
}

/* Pagination div — remove from flex flow */
.sw-insights.fusion-post-cards .pagination {
	display: none !important;
}

/* Stack filter items vertically */
.sw-insights .fusion-filters {
	display: block !important;
	border-top: none !important;
	border-bottom: none !important;
}

.sw-insights .fusion-filters li.fusion-filter {
	display: block;
	width: 100%;
	margin-bottom: 8px;
}

.sw-insights .fusion-filters li.fusion-filter a {
	display: block;
	padding: 0 0 0 12px;
	font-size: 16px !important;
	line-height: 1 !important;
	color: var(--awb-color2) !important;
	border-left: 2px solid transparent;
	border-top: none !important;
	border-bottom: none !important;
	border-right: none !important;
	border-radius: 0 !important;
	transition: border-color 0.2s, color 0.2s;
}

.sw-insights .fusion-filters li.fusion-filter a:hover,
.sw-insights .fusion-filters li.fusion-filter.fusion-active a {
	border-left-color: var(--awb-color1);
	color: var(--awb-color1) !important;
}

/* Mobile: revert to horizontal filter above posts */
@media (max-width: 800px) {
	.sw-insights.fusion-post-cards {
		flex-direction: column !important;
	}

	.sw-insights.fusion-post-cards > div:has(> ul.fusion-filters) {
		width: 100%;
		position: static;
	}

	.sw-insights .fusion-filters {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
	}

	.sw-insights .fusion-filters li.fusion-filter {
		display: inline-flex;
		width: auto;
	}

	.sw-insights .fusion-filters li.fusion-filter a {
		border-left: none !important;
		padding: 6px 14px !important;
		border: 1px solid currentColor !important;
		border-radius: 4px !important;
	}
}

@media (max-width: 640px) {
	.fusion-tb-header .fusion-builder-row.fusion-flex-align-items-center.fusion-flex-content-wrap > div:nth-child(1),
	.fusion-tb-header .fusion-builder-row.fusion-flex-align-items-center.fusion-flex-content-wrap > div:nth-child(2) {
		width: 50% !important;
		flex: 0 0 50% !important;
		max-width: 50% !important;
	}
}
