/*
 * Services Section — Carousel Layout
 * Isolated from style.css. All rules are scoped to #electrical_services_services_section.
 */

/* ── Section shell ─────────────────────────────────────────────────────────── */
#electrical_services_services_section.cm-services-section {
	position: relative;
	padding: 40px 0 80px;
	background-color: #ffffff;
	overflow: hidden;
}

/* ── Wrapper ────────────────────────────────────────────────────────────────── */
#electrical_services_services_section .asterthemes-wrapper {
position: relative;
z-index: 1;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__header {
text-align: center;
margin-bottom: 30px;
}

/* ── Badge / pill ───────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__badge {
	display: inline-block;
	background-color: var(--primary-color);
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 7px 22px;
	border-radius: 50px;
	margin-bottom: 16px;
	font-family: var(--font-second);
}

/* ── Section title ──────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* ── Carousel: allow overflow so partial slides are visible ─────────────────── */
#electrical_services_services_section .cm-services__carousel.owl-carousel {
overflow: visible;
}

#electrical_services_services_section .cm-services__carousel .owl-stage-outer {
overflow: visible;
}

/* Clip the visible overflow at the section edge */
#electrical_services_services_section.cm-services-section {
overflow: hidden;
}

/* ── Slide wrapper ──────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__slide {
/* padding: 10px 10px 20px; */
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__card {
position: relative;
border-radius: 18px;
overflow: hidden;
height: 430px;
display: block;
transition: transform 0.45s ease;
background-color: #d0d0d0;
}

/* Center (active) card is full size */
#electrical_services_services_section .owl-item.center .cm-services__card {
}

/* ── Background image ───────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__card-bg {
position: absolute;
inset: 0;
z-index: 0;
}

#electrical_services_services_section .cm-services__card-bg-img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}

/* ── Dark gradient overlay (always visible, stronger on center card) ─────────── */
#electrical_services_services_section .cm-services__card-overlay {
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(
to bottom,
rgba(15, 17, 22, 0.05) 0%,
rgba(15, 17, 22, 0.55) 100%
);
transition: background 0.45s ease;
}

#electrical_services_services_section .owl-item.center .cm-services__card-overlay {
background: linear-gradient(
to bottom,
rgba(15, 17, 22, 0.15) 0%,
rgba(15, 17, 22, 0.82) 100%
);
}

/* ── Info box (white card at bottom-left of center card) ────────────────────── */
#electrical_services_services_section .cm-services__card-info {
position: absolute;
bottom: 22px;
left: 20%;
right: 20%;
z-index: 2;
background: #ffffff;
border-radius: 14px;
padding: 25px 15px;
display: flex;
align-items: center;
gap: 14px;
opacity: 0;
transform: translateY(14px);
transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
border-left: 5px solid var(--primary-color);
}

#electrical_services_services_section .owl-item.center .cm-services__card-info {
opacity: 1;
transform: translateY(0);
}

/* ── Info text block ────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__card-info-text {
flex: 1;
min-width: 0;
}

/* ── Category label ─────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__card-cat {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--secondary-color);
    opacity: 70%;
    font-family: var(--font-second);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Card title ─────────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#electrical_services_services_section .cm-services__card-title a {
    color: var(--secondary-color);
	text-decoration: none;
}

#electrical_services_services_section .cm-services__card-title a:hover,
#electrical_services_services_section .cm-services__card-title a:focus {
	color: var(--primary-color);
	text-decoration: none;
}

/* ── Arrow button ───────────────────────────────────────────────────────────── */
#electrical_services_services_section .cm-services__card-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    position: absolute;
    right: 15px;
    top: -19px;
    background: var(--secondary-color);
    color: #ffffff;
}

#electrical_services_services_section .cm-services__card-arrow:hover,
#electrical_services_services_section .cm-services__card-arrow:focus {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #ffffff;
}

.cm-services__slide {
  position: relative;
  overflow: hidden;
}

.cm-services__slide img {
  display: block;
  transition: transform 0.5s ease;
}

.cm-services__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    z-index: 1;
}

.cm-services__slide:hover::before {
  left: 125%;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 1024px) {
	#electrical_services_services_section .cm-services__card {
		height: 380px;
	}
	#electrical_services_services_section .cm-services__title {
		font-size: 28px;
	}
}

@media only screen and (max-width: 768px) {
	#electrical_services_services_section .cm-services__card {
		height: 340px;
		transform: scale(1);
	}
	#electrical_services_services_section .cm-services__card-overlay {
		background: linear-gradient(
		to bottom,
		rgba(15, 17, 22, 0.15) 0%,
		rgba(15, 17, 22, 0.75) 100%
		);
	}
	#electrical_services_services_section .cm-services__title {
		font-size: 22px;
	}
}

@media only screen and (max-width: 480px) {
	#electrical_services_services_section .cm-services__card {
	height: 300px;
	}
	#electrical_services_services_section .cm-services__card-info {
	bottom: 14px;
	left: 14px;
	right: 14px;
	padding: 10px 12px;
	}
	#electrical_services_services_section .cm-services__card-title {
	font-size: 14px;
	}
}