body,
html {
	margin: 0;
	padding: 0;
	font-family: "DM Sans", sans-serif;
	overscroll-behavior-y: none;
	/* font-size: 1.2rem; */
	line-height: 2.5rem;
	scroll-behavior: smooth;
	/* Smooth scroll to contact */
}

.main-title {
	font-size: 8rem;
	padding-top: 10rem;
}

.Logo {
	height: 92.5px;
	width: 350px;
	position: relative;
}

.electronics-manufacturing-canada-body img {
	margin-bottom: 0;
}

.electronics-manufacturing-canada-body h1 {
	color: white !important;
}

.electronics-manufacturing-canada-body h2 {
	color: white !important;
	font-size: 4.5rem;
	font-weight: bold;
}

/* .electronics-manufacturing-canada-body p {
		font-size: 2.5rem;
		line-height: 5rem;
		margin: 10px 0 10px 0;
	} */
.ces-content-inner h2 {
	margin-bottom: 3rem;
}

.ces-content-inner p {
	font-size: 2.5rem;
	line-height: 5rem;
	margin: 10px 0 10px 0;
}

.card-content ul li,
.accordion-content ul li {
	font-size: 2rem;
}

.black-bg-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("../content/ces/ces-bg-black5.webp") center/cover no-repeat;
	background-color: #000;
	z-index: -1;
}

.hero-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 60px;
	box-sizing: border-box;
	z-index: 100;
	transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1),
		opacity 0.8s ease;
}

.hero-container.scrolled-away {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

.hero-container h1 {
	font-weight: 800;
	margin: 0;
	line-height: 1.1;
	/* max-width: 800px; */
	color: white;
}

.scrolling-content {
	position: relative;
	z-index: 10;
	margin-top: 100vh;
}

.reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.8s ease-out;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.ces-content-inner {
	max-width: 960px;
	margin: 0 auto;
	color: white;
	min-height: auto!important;
}

.red-section {
	min-height: 100vh;
	background-color: #cd0207;
	color: white;
	padding: 80px 20px;
	z-index: -1;
}

/* Floating Contact Button */
.floating-contact-btn {
	position: fixed;
	bottom: 30px;
	left: 30px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Center the icon when collapsed */
	text-decoration: none;
	padding: 12px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

	min-width: 60px;
	/* Slightly wider to accommodate the icon padding */
	height: 60px;
	box-sizing: border-box;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.floating-contact-btn:hover {
	max-width: 300px;
	padding: 12px 20px;
}

.btn-icon {
	font-size: 24px;
	width: 30px;
	/* Adjusted size */
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	order: 2;
	/* Always stay on the right */
	opacity: 1 !important;
	/* Force visibility */
	visibility: visible !important;
}

.btn-text {
	white-space: nowrap;
	margin-right: 0;
	/* No margin when hidden */
	font-weight: 700;
	opacity: 0;
	visibility: hidden;
	max-width: 0;
	/* Collapse width so it doesn't push the icon */
	transition: opacity 0.3s ease, max-width 0.3s ease, margin 0.3s ease;
	order: 1;
	/* Always stay on the left */
}

.floating-contact-btn:hover .btn-text {
	opacity: 1;
	visibility: visible;
	max-width: 200px;
	margin-right: 10px;
	/* Add spacing when expanded */
	color: white;
}

/* Ensure icon stays visible on hover without jumping */
.floating-contact-btn:hover .btn-icon {
	opacity: 1;
	visibility: visible;
	order: 2;
}

/* Button Colors */
.btn-theme-red {
	background-color: #cd0207;
	color: white;
}

.btn-theme-black {
	background-color: #000;
	color: white;
}

.service-list {

	padding-left: 20px;
	margin-top: 30px;
}

.service-list li {
	margin-bottom: 15px;
	padding-left: 30px;
	position: relative;
}

.contact-container {
	background: #f9f9f9;
	color: #333;
	padding: 0px 20px;
}
.contact-container-msg{

    padding-bottom: 20px;
    padding-top: 0;
    margin-top: -20px;
    font-weight: bold;
}

.form-group {
	margin-bottom: 15px;
}

input,
textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
}

.btn-red {
	display: inline-block;
	width: 100%;
	padding: 15px;
	margin-top: 10px;
	background: #cd0207;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.container {
	padding-top: 20px;
	padding-bottom: 40px;
	/* max-width: 1200px; */
	margin: 0 auto;
	display: grid;
	gap: 15px;
}

/* Dark Rounded Info Cards */
.info-card {
	background: rgba(15, 15, 15, 0.85);
	/* Darker black with opacity */
	border: 1px solid black;
	/* Subtle dark border */
	border-radius: 16px;
	/* Rounded corners */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	/* Soft deep shadow */
	color: #fff;
	cursor: pointer;
	font-family: "DM Sans", sans-serif;
	transition: all 0.3s ease;
	overflow: hidden;
	position: relative;
	display: flex;
	padding: 30px;
}

.info-card:hover {
	border-color: #444;
	transform: translateY(-2px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.container {
	grid-template-columns: 1fr;
}

.info-card {
	padding: 30px;
	align-items: center;
	flex-direction: row;
}

.card-header {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 20px;
}

.card-logo {
	width: 80px;
	/* margin-right: 25px;  */
	flex-shrink: 0;
}

.info-card h1 {
	font-size: 3rem;
	margin: 0;
	flex-grow: 1;
	flex: 1;
	white-space: normal;
}

/* .web-arrow {
            font-size: 2rem;
            transition: transform 0.3s ease;
            transform: rotate(90deg); 
            display: inline-block;
        } */
.web-arrow {
	width: 20px;
	height: 20px;
	border-right: 5px solid #cd0207;
	border-bottom: 5px solid #cd0207;
	transform: rotate(-45deg);
	flex-shrink: 0;
	margin-left: auto;
}

.card-content {
	display: none;
	width: 100%;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card.is-active {
	flex-wrap: wrap;
}

.info-card.is-active .web-arrow {
	transform: rotate(45deg);
	/* Points Right when clicked */
}

.info-card.is-active .card-content {
	display: block;
}

/* Interactive Toggles (Accordions) */
.accordion {
	margin-bottom: 10px;
	padding: 10px;
}

.accordion-header {
	width: 100%;
	padding: 5px 0;
	background: none;
	border: none;
	text-align: left;
	font-size: 2.5rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: opacity 0.3s;
}

.no-accordion-header {
	width: 100%;
	padding: 5px 0;
	background: none;
	border: none;
	text-align: left;
	font-size: 2.5rem;
	font-weight: 700;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: opacity 0.3s;
	cursor: default !important;
	line-height: ;
}

/* Arrow styling */
.accordion-arrow {
	font-size: 1.6rem;
	transition: transform 0.3s ease;
	display: inline-block;
}

/* Active State: Rotate to Point Right */
.accordion.active .accordion-arrow {
	transform: rotate(90deg);
}

/* Hide arrow for empty accordions */
.accordion.no-content .accordion-arrow {
	display: none;
}

.accordion.no-content {
	cursor: default;
	font-size: 1.6rem;
}

.accordion-content {
	display: none;
	padding-bottom: 20px;
	font-size: 1.2rem;
	color: #eee;
}

.accordion.active .accordion-content {
	display: block;
}

/* Service List Styling */
.service-list li {
	margin-bottom: 8px;
	padding-left: 15px;
	position: relative;
}

.service-list li::before {
	color: white;
	position: absolute;
	left: 0;
}

.nested-list {
	margin-left: 20px;
	font-size: 1.85rem;
	list-style: circle;
	margin-top: 5px;
}

.accordion a {
	color: inherit;
	text-decoration: none;
}

.btn-style:hover {
	background-color: #a83337;
	color: white;
	text-decoration: none;
}

.btn-style {
	display: inline-block;
	margin-bottom: 0;
	font-weight: normal;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	touch-action: manipulation;
	cursor: pointer;
	background: #bb2126;
	border: 1px solid transparent;
	padding: 6px 12px;
	font-size: 16px;
	line-height: 1.428571429;
	border-radius: unset;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	width: 200px !important;
	height: 50px !important;
	color: #ffffff;
	align-content: center;
	text-transform: none;
}

.p-indent {
	text-indent: 3rem;

}

.p-indent a {
	font-size: 2.5rem;
}

.support-p {
	color: black;
	font-size: 2.5rem;
	line-height: 4.5rem;
	margin: 10px 0 10px 0;
}


@media only screen and (min-width: 768px) and (max-width: 1200px) {
	.ces-content-inner p {
		font-size: 2.5rem;
		line-height: 5rem;
		margin: 10px 20px 10px 20px;
	}

	.main-title {
		font-size: 6.5rem;
	}

	.electronics-manufacturing-canada-body h2 {
		font-size: 4rem;
	}

	.btn-icon {
		font-size: 18px;

	}

	.card-logo {
		width: 70px;
	}

	.card-header {
		padding-left: 10px;
		padding-right: 10px;
	}

	.info-card h1 {
		font-size: 2.5rem;
	}

	.accordion-header {
		font-size: 2.2rem;
	}

	.no-accordion-header {
		font-size: 2.2rem;
	}

	.support-p {
		font-size: 2.2rem;
		line-height: 4rem;
	}

	.p-indent a {
		font-size: 2.5rem;
	}


}

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


	.ces-content-inner p {
		font-size: 2rem;
		line-height: 4rem;
		margin: 20px 25px 20px 25px;
	}

	.main-title {
		font-size: 4.5rem;
		padding-left: 25px;
		padding-right: 25px;
		padding-top: 70px;

	}

	.electronics-manufacturing-canada-body h2 {
		font-size: 3rem;
		padding-left: 10px;
		padding-right: 10px;
	}

	.btn-icon {
		font-size: 16px;

	}

	.card-logo {
		width: 60px;
	}

	.card-header {
		padding-left: 10px;
		padding-right: 10px;
	}

	.info-card h1 {
		font-size: 2rem;
	}

	.accordion-header {
		font-size: 2rem;
	}

	.no-accordion-header {
		font-size: 2rem;
	}

	.support-p {
		font-size: 2rem;
		line-height: 3.5rem;
		margin: 10px 0 10px 0;
	}

	.contact-container {

		padding-top: 20px;
	}

	.hero-container {

		padding: 10px;
	}

	.Logo {
        width: 200px; /* Adjust this value to your preferred size */
        height: auto;  /* Maintains aspect ratio */
    }
	.p-indent a {
		font-size: 2rem;
	}

	.ces-content-inner {
		min-height: 1750px!important;
	}

	.black-bg-fixed {

		background: url("../content/ces/ces-bg-black5.webp")90% 0% / cover no-repeat;
	}
	.contact-container-msg{

    margin-top: 0px;
    
}

}