
/* Modern logo sources retain the exact approved rendered geometry. */
#header .logo picture,
#footer .footer-intro-logo picture {
	display: block;
}

#header .logo img,
#footer .footer-intro-logo img {
	display: block;
	width: 236px;
	height: auto;
	max-width: 100%;
}

/* =========================================================
   General utilities
   ========================================================= */

center {
	text-align: center;
}


/* =========================================================
   Responsive video wrapper
   ========================================================= */

.videowrapper {
	float: none;
	clear: both;
	width: 700px;
	position: relative;
	padding-top: 25px;
	padding-bottom: 56.25%;
	height: 0;
	margin: 0 auto;
}

.videowrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 52%;
	height: 100%;
	max-width: 700px;
	max-height: 300px;
}


/* =========================================================
   Editorial disclosure
   ========================================================= */

.editorial-disclosure {
	display: block;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eeeeee;
	color: #555555 !important;
	font-size: 13px;
	font-style: italic;
}

.editorial-disclosure a {
	color: #0056b3 !important;
	text-decoration: underline !important;
}

.editorial-disclosure a:hover {
	color: #003d80 !important;
	text-decoration: none !important;
}


/* =========================================================
   Product/comparison cards
   ========================================================= */

.card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
	padding: 22px;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	font-family: inherit;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.card-row:hover {
	background-color: #ffffff;
	border-color: #bbbbbb;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.card-col {
	flex: 1;
	padding: 0 15px;
}

.card-img img {
	display: block;
	max-width: 120px;
	height: auto;
	margin: 0 auto 10px;
}

.card-img h4 {
	margin: 8px 0;
	color: #222222;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
}

.badge {
	display: block;
	width: fit-content;
	margin: 0 auto;
	padding: 4px 10px;
	background: #eef4ff;
	border-radius: 4px;
	color: #1a73e8;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.card-features ul {
	display: table;
	margin: 0 auto !important;
	padding: 0 !important;
	list-style: none !important;
}

.card-features li {
	position: relative;
	margin-bottom: 8px !important;
	padding-left: 25px !important;
	color: #444444;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.card-features li::before {
	content: "✓";
	position: absolute;
	top: 0;
	left: 0;
	color: #28a745;
	font-size: 15px;
	font-weight: 700;
}

.card-stats {
	border-right: 1px solid #eeeeee;
	border-left: 1px solid #eeeeee;
	color: #555555;
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}

.apply-btn {
	display: block !important;
	margin-bottom: 2px !important;
	padding: 12px 18px !important;
	background-color: #28a745 !important;
	border-radius: 6px;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	transition:
		background-color 0.3s ease,
		box-shadow 0.3s ease;
}

.apply-btn:hover {
	background-color: #218838 !important;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.details-link {
	display: block !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
	color: #0056b3 !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-align: center !important;
	text-decoration: underline !important;
}

@media (max-width: 768px) {
	.card-row {
		flex-direction: column;
		padding: 20px;
		text-align: center;
	}

	.card-col {
		width: 100%;
		padding: 15px 0;
		border: none;
		border-bottom: 1px solid #f0f0f0;
	}

	.card-col:last-child {
		border-bottom: none;
	}

	.card-features ul {
		display: inline-block;
	}

	.card-stats {
		border: none;
	}
}


/* =========================================================
   Single post background
   ========================================================= */

body.single-post {
	background-color: #ffffff !important;
	background-image: none !important;
}

.single-post .site-content,
.single-post .entry-content,
.single-post #main {
	background-color: #ffffff !important;
}


/* =========================================================
   MarketReview footer
   ========================================================= */

#footer .footer-main-row {
	align-items: flex-start;
}

#footer .footer-menu-wrap.footer-grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 1fr));
	gap: 42px;
	width: 100%;
	align-items: start;
}

#footer .footer-grid .footer-nav,
#footer .footer-grid .footer-nav.columns {
	float: none;
	width: auto;
	margin: 0;
}

#footer .footer-intro {
	max-width: 320px;
}

#footer .footer-intro-logo {
	display: inline-block;
	margin-bottom: 22px;
}

#footer .footer-intro-logo img {
	display: block;
	width: auto;
	max-width: 236px;
	height: auto;
}

#footer .footer-intro p {
	margin: 0 0 17px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.65;
}

#footer .footer-intro a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#footer .footer-intro a:hover,
#footer .footer-intro a:focus {
	text-decoration-thickness: 2px;
}

#footer .footer-intro .footer-disclaimer {
	margin-top: 24px;
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
}

#footer .footer-heading {
	margin: 0 0 20px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#footer .footer-grid .footer-menu.columns {
	display: block;
	width: 100%;
	column-count: 1;
}

#footer .footer-grid .footer-menu.columns > li {
	float: none;
	width: 100%;
}

#footer .footer-social {
	display: flex;
	float: none;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
}

@media screen and (max-width: 1100px) {
	#footer .footer-menu-wrap.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 700px) {
	#footer .footer-menu-wrap.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	#footer .footer-intro {
		max-width: none;
	}

	#footer .footer-intro-logo {
		display: block;
		width: fit-content;
		margin: 0 auto 22px;
	}

	#footer .footer-intro-logo img {
		margin: 0 auto;
	}

	#footer .footer-heading {
		margin-bottom: 14px;
	}

	#footer .footer-social {
		justify-content: center;
		width: 100%;
		margin: 24px auto 0;
	}
}

/* =========================================================
   MARKETREVIEW — SITEWIDE HEADER AND FOOTER BACKGROUNDS
   ========================================================= */

#header {
    background-color: #14374b !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

#footer {
    background-color: #162f3b !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
}

#footer .footer-menu-wrap,
.footer-menu-wrap {
    background-color: #162f3b !important;
    background-image: none !important;
}

/* =========================================================
   MARKETREVIEW — EXACT DESKTOP SEARCH BACKGROUND FIX
   Original theme search layout and functionality remain intact
   ========================================================= */

@media (min-width: 1350px) {

    /* Closed search block */
    .nav-utilities .popup-holder::before,

    /* Expanded search block */
    .nav-utilities .popup-holder .popup {
        background-color: #14374b !important;
    }
}

/* Homepage lightweight shell: keep Back to Top hidden until scrolling. */
body.home .js-goto.fixed-widget {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.3s;
}

body.home .js-goto.fixed-widget.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
