.starter-sites-wrap .filter-section {
    /* height: 100%; */
    background: radial-gradient(circle at 100% 50%, rgba(236, 72, 153, 0.35), transparent 35%), radial-gradient(circle at 0% 80%, rgba(236, 72, 153, 0.25), transparent 30%), linear-gradient(135deg, #18254F 0%, #243B73 50%, #111A35 100%);
    /* background-position: center; */
    /* background-size: cover; */
}

.starter-sites-wrap .filter-section .background-thumb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    z-index: 0;
}

.starter-sites-wrap .filter-section .background-thumb img {
    width: 100%;
}

.starter-sites-wrap .filter-section .container {
    position: relative;
    z-index: 1;
}

.filter-section .row .entry-content:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f04766 0%, #b92b6b 50%, #f04766 100%);
}

.filter-section .entry-content {
    position: relative;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    margin: 0;
    background-color: #fff;
}
  
.filter-section .search-block .themes,
.filter-section .search-block .page-builders {
    position: relative;
}

.filter-section .search-block .themes > .active,
.filter-section .search-block .page-builders > .active {
    cursor: pointer;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    padding: 10px 20px;
    border: 1px solid #e4e7ea;
}

.filter-section .search-block .themes .dropdown,
.filter-section .search-block .page-builders .dropdown {
    display: none;
}

.filter-section .search-block .themes.open .dropdown,
.filter-section .search-block .page-builders.open .dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px;
    display: block;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    width: 100%;
    z-index: 999;
    border-radius: 5px;
    border: 1px solid #f4f4f4;
}

.filter-section .search-block .themes.open .dropdown > .theme,
.filter-section .search-block .page-builders.open .dropdown > .builder {
    list-style: none;
    padding: 6px 20px;
    cursor: pointer;
    font-size: 14px;
}

.filter-section .search-block .themes.open .dropdown > .theme:hover,
.filter-section .search-block .themes.open .dropdown > .theme.active,
.filter-section .search-block .page-builders.open .dropdown > .builder:hover,
.filter-section .search-block .page-builders.open .dropdown > .builder.active {
    background: #f4f4f4;
}
  
.filter-section .search-block {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
  
.filter-section .search-block .themes,
.filter-section .search-block .page-builders {
	width: 25%;
}

.filter-section .search-block .search {
	flex: 1;
}

.filter-section .search-block .search input {
	background: transparent;
	border: 1px solid #e4e7ea;
}

.filter-section .filter-nav {
	display: flex;
	justify-content: center;
}

.filter-section .filter-nav .filter {
	display: flex;
	list-style: none;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	color: #fff;
	border-radius: 15px;
	align-items: center;
	border: 1px solid #e4e7ea;
	border-radius: 30px;
}

.filter-section input[type="search"] {
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.filter-section .nav-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	padding-top: 20px;
	border-top: 1px solid #e4e6e9;
}

.filter-section .filter-nav .filter .tab.active {
	border-radius: 20px;
	color: #fff;
	background: #ea4c89;
}

.filter-section .filter-nav .filter .tab {
	padding: 4px 22px;
	color: #000;
	cursor: pointer;
}

.filter-section .filter-nav .filter .tab:not(.active):hover {
	color: #ea4c89;
}

.starter-sites-wrap .demos-section {
	background: #0a1120;
}

.starter-sites-wrap .demos-section .row .demo-items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	column-gap: 40px;
}

.demos-section .demo-item {
	transition: transform .32s ease,background-color .32s ease;
    z-index: 0;
}

.starter-sites-wrap .demos-section {
	padding: 8rem;
	margin-top: -165px;
}

.demo-item .control-buttons {
    padding: 3px 12px 2px;
    border-bottom: 1px solid rgba(0, 0, 0, .25);
    color: rgba(255, 255, 255, .5);
    background-color: #1c1c1c;
    border-radius: 10px 10px 0 0;
    height: 26px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.demo-item .control-buttons .item {
	width: 8px;
    height: 8px;
    border-radius: 50%;
}

.premium-demo .demo-thumb,
.free-demo .demo-thumb {
    position: relative;
}

figure.demo-thumb {
	padding: 0 1px;
	margin: 0px;
}

.demo-item .control-buttons .item.close {
	background: #f35a56;
	opacity: 1;
}

.demo-item .control-buttons .item.resize {
	background: #f5d040;
}

.demo-item .control-buttons .item.minimize {
	background: #34c734;
}

.starter-sites-wrap .demos-section .container-fluid {
	padding-top: 50px;
}

.starter-sites-wrap .heading_txt{
	text-align: center;
	color: #fff;
	padding-bottom: 10px;
}

.starter-sites-wrap .heading_txt strong {
	color: #ff8e9f;
	font-size: 37px;
}

.iframe-popup {
	display: none;
}

.iframe-popup.open {
	position: fixed;
	inset: 0;
	background: #1e1e1e;
	z-index: 9999;
	display: flex;
	flex-direction: column;
}

.logged-in.admin-bar .iframe-popup.open {
	top: 32px;
}

.iframe-popup.open .nav-bar {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 46px;
	padding: 0 16px;
	background: #1e1e1e;
	border-bottom: 1px solid #2f2f2f;
}

.iframe-popup.open .nav-bar .sidebar-button {
	color: #fff;
	border: none;
	outline: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	transition: background .3s ease-in-out;
}

.iframe-popup.open .nav-bar .sidebar-button:hover {
	background: #b32d2f;
}

.iframe-popup.open .nav-bar .sidebar-button .dashicons {
	margin-top: -2px;
}

.iframe-popup.open .nav-bar .sidebar-button .label {
	font-size: 14px;
}

.iframe-popup.open .nav-bar .demos-sidebar.open .overlay {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    background: #1d1d2c91;
    backdrop-filter: blur(8px);
}

.iframe-popup.open .nav-bar .demos-sidebar .sidebar {
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	height: 100vh;
	visibility: hidden;
	transition: .4s ease-in-out;
	transition-property: transform, visibility;
	content-visibility: auto;
	transform: translate3d(-100%, 0, 0);
	width: 650px;
	background: #0a1120;
}

.admin-bar .iframe-popup.open .nav-bar .demos-sidebar .sidebar {
	top: 32px;
}

.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar {
	transform: translate3d(0, 0, 0);
	visibility: visible;
}

.iframe-popup.open .nav-bar .demos-sidebar .sidebar .header {
	color: #fff;
    padding: 32px 20px 0;
}

.iframe-popup.open .nav-bar .demos-sidebar .sidebar .header .title {
	margin: 0 0 18px;
    font-size: 24px;
    font-weight: 600;
}

.iframe-popup.open .nav-bar .demos-sidebar .sidebar button.close {
	position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
}

.iframe-popup.open .nav-bar .demos-sidebar .sidebar button.close .dashicons {
	font-size: 24px;
}

.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section {
	height: 100vh;
	margin: 0;
	padding: 0;
}

.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section .container-fluid {
	height: 100%;
	padding: 0;
}

.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section .row {
	height: calc(100% - 156px);
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dddddd transparent;
}

.admin-bar .iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section .row {
  height: calc(100% - 187px);
}

.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section .row .demo-items {
	grid-template-columns: repeat(2, 1fr);
}

  /* ---------- Devices (centered) ---------- */
.iframe-popup .devices {
	grid-column: 2;
	display: flex;
	gap: 4px;
	background: #2a2a2a;
	border-radius: 6px;
	padding: 3px;
}

.nav-bar .device {
	width: 34px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #9a9a9a;
	cursor: pointer;
	padding: 10px;
	outline: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.nav-bar .device:hover {
	background: #3a3a3a;
	color: #fff;
}

.nav-bar .device.active {
	background: #383838;
	color: #fff;
}

.nav-bar .device .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.doc-open.iframe-popup .devices,
.doc-open.iframe-popup .actions .premium,
.doc-open.iframe-popup .actions .previous,
.doc-open.iframe-popup .actions .next {
	display: none;
}

/* ---------- Actions (right) ---------- */
.iframe-popup .actions {
	grid-column: 3;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.nav-bar .actions .premium {
	height: 30px;
	padding: 0 14px;
	background: #d63638;
	color: #fff;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .3s ease-in-out;
	border: none;
	outline: none;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.nav-bar .actions .premium:hover {
	background: #b32d2f;
}

.nav-bar .actions .previous,
.nav-bar .actions .next,
.nav-bar .actions .close {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #9a9a9a;
	cursor: pointer;
	outline: none;
	font-size: 15px;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.nav-bar .actions .previous:hover,
.nav-bar .actions .next:hover,
.nav-bar .actions .close:hover {
	background: #3a3a3a;
	color: #fff;
}

.nav-bar .actions .close {
	margin-left: 4px;
    color: #ffffff;
    text-shadow: none;
    font-size: 20px;
}

/* ---------- Iframe ---------- */
.iframe-popup iframe {
	flex: 1 1 auto;         /* iframe grows to fill remaining space */
	border: none;
	display: block;
	width: 100%;
	height: 100%;
    position: relative;
    z-index: 1;
    background: #fff;
    transition: width 0.25s ease, height 0.25s ease;
}

.iframe-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    background: #111;
    padding: 0;
    transition: padding 0.2s ease;
}

.iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e1e;   /* match your popup bg, not white/black default */
    z-index: 2;
    opacity: 1;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.iframe-loader.hidden {
	opacity: 0;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #3a3a3a;
    border-top-color: #d63638;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Desktop — default, full width/height */
.iframe-popup.preview-desktop .iframe-wrap iframe {
	width: 100%;
	height: 100%;
}

/* Tablet — fixed viewport size, centered */
.iframe-popup.preview-tablet .iframe-wrap {
    padding: 24px 0;
	width: 768px;
	height: 100%;
	max-height: 1024px;
	box-shadow: 0 0 0 1px #333;
	margin-inline: auto;
}

/* Smartphone — narrow fixed viewport, centered */
.iframe-popup.preview-mobile .iframe-wrap {
	padding: 24px 0;
	width: 375px;
	height: 100%;
	max-height: 667px;
	box-shadow: 0 0 0 1px #333;
	margin-inline: auto;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.free-demo .free_label {
    display: block;
    position: absolute;
    background-color: green;
    padding: 5px 10px;
    color: #fff;
    top: 5px;
    border-radius: 3px;
    right: 20px;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.4px;
}

.premium-demo .premium_label {
    display: block;
    position: absolute;
    background-color: #ea2e49;
    padding: 5px 10px;
    color: #fff;
    top: 5px;
    border-radius: 3px;
    right: 20px;
    font-weight: 400;
    font-size: 13px;
    text-transform: capitalize;
    letter-spacing: 0.4px;
}

.demo-item .demos-meta-wrap {
	background-color: #1c1c1c;
	margin: 0;
	padding: 20px;
	text-align: center;
	border-radius: 0 0 10px 10px;
}

.demos-meta-wrap .demos-terms a {
	color: #fff;
	padding: 0 5px;
}

.demos-meta-wrap .demo-title {
	font-size: 18px;
	padding-top: 9px;
	text-transform: none;
	color: #fff;
}

.demos-meta-wrap .demo-title a {
	color: #fff;
}

.demos-listing-wrap .demo-item:hover,
.demos-section .demo-item:hover {
	transform: translateY(-4px);
	position: relative;
}

.demos-listing-wrap:hover,
.demos-listing-wrap a:hover {
	cursor: pointer;
}

@media ( max-width: 1024px ) {
	.starter-sites-wrap .demos-section .row .demo-items,
	.demos-listing-wrap {
		grid-template-columns: repeat( 2, 1fr );
	}

	.nav-bar .device[data-device="desktop"] {
		display: none;
	}
}

@media ( max-width: 768px ) {
	.nav-bar .devices {
		display: none;
	}

	.starter-sites-wrap .demos-section {
		padding: 8rem 2rem;
	}
}

@media ( max-width: 610px ) {
	.starter-sites-wrap .demos-section .row .demo-items,
	.demos-listing-wrap {
		grid-template-columns: 100%;
	}

	.iframe-popup.open .nav-bar {
		grid-template-columns: 1fr auto 2fr;
	}

	.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section .row .demo-items {
		grid-template-columns: 100%;
	}

	.nav-bar .actions .premium {
		height: 36px;
	}

	.nav-bar .actions .theme-bundle-button {
		display: none;
	}
}

@media ( max-width: 650px ) {
	.iframe-popup.open .nav-bar .demos-sidebar .sidebar {
		width: 100%;
	}
}

@media ( max-width: 418px ) {
	.iframe-popup.open .nav-bar .demos-sidebar.open .sidebar .demos-section .row {
		padding-bottom: 50px;
	}
}