/* SF Media Showcase — override the variables in Elementor → Custom CSS if needed. */
.sfm-movies,
.sfm-tabs {
	--sfm-accent: #5bc76a;
	--sfm-star: #ff8a3d;
	--sfm-radius: 6px;
	box-sizing: border-box;
}
.sfm-movies *, .sfm-tabs * { box-sizing: border-box; }

/* ---------- Movie posters ---------- */
.sfm-movies {
	display: grid;
	grid-template-columns: repeat(var(--sfm-cols, 5), minmax(0, 1fr));
	gap: 30px;
}
.sfm-movie {
	position: relative;
	display: block;
	aspect-ratio: 27 / 39;
	overflow: hidden;
	border-radius: var(--sfm-radius);
	background: #1b1e24;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.sfm-movie.sfm-hidden { display: none; }
.sfm-movie img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.sfm-movie::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(14, 16, 22, 0) 45%, rgba(14, 16, 22, .92) 88%);
}
.sfm-movie:hover img, .sfm-movie:focus-visible img { transform: scale(1.06); }
.sfm-play {
	position: absolute; top: 28px; right: 30px; z-index: 2;
	display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: #fff; color: #111;
	box-shadow: 0 0 0 8px rgba(255, 255, 255, .15);
	transition: background-color .2s ease, color .2s ease;
}
.sfm-play svg { margin-left: 2px; }
.sfm-movie:hover .sfm-play { background: var(--sfm-accent); color: #fff; }
.sfm-movie-info {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 0 24px 34px;
}
.sfm-movie-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 8px;
}
.sfm-movie-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, .75); letter-spacing: .04em; }
.sfm-star { color: #fff; font-weight: 600; }
.sfm-star span { color: var(--sfm-star); }

/* Layout follows the width of the Elementor column, not the screen. */
.sfm-movies-wrap { container-type: inline-size; }
@container (max-width: 1000px) {
	.sfm-movies { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@container (max-width: 600px) {
	/* Swipeable row on narrow columns and phones. */
	.sfm-movies { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
	.sfm-movie { flex: 0 0 62%; scroll-snap-align: start; }
	.sfm-movie-info { padding: 0 16px 22px; }
	.sfm-movie-title { font-size: 17px; }
	.sfm-play { top: 16px; right: 16px; }
}

/* ---------- Tabs ---------- */
.sfm-tablist { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.sfm-tab {
	padding: 12px 30px;
	border: 0; border-radius: 2px;
	background: #f2f2f2; color: #555;
	font: inherit; font-size: 16px; line-height: 1.4;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.sfm-tab:hover { background: #e7e7e7; color: #222; }
.sfm-tab.is-active { background: var(--sfm-accent); color: #fff; }
.sfm-tab:focus-visible { outline: 2px solid var(--sfm-accent); outline-offset: 2px; }

.sfm-panel-title { margin: 6px 0 22px; color: #6ab0de; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.sfm-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.sfm-link { display: block; color: inherit !important; text-decoration: none !important; }
.sfm-link-logo {
	display: grid; place-items: center;
	aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--sfm-radius);
	background: #000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sfm-link-logo img { width: 100%; height: 100%; object-fit: contain; }
.sfm-link:hover .sfm-link-logo, .sfm-link:focus-visible .sfm-link-logo { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.sfm-link-text { background: linear-gradient(135deg, #1d2b3a, #0e1620); }
.sfm-link-text span { padding: 12px; color: #fff; font-size: 22px; font-weight: 700; text-align: center; }
.sfm-link-name { display: block; margin-top: 10px; text-align: center; font-weight: 600; }

/* ---------- Zeinet testimonials: clamped text + Read More ---------- */
.testimonial-one__text.sfm-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.testimonial-one__text.sfm-clamp.sfm-open {
	display: block;
	-webkit-line-clamp: unset !important;
	overflow: visible;
}
.sfm-readmore {
	position: relative;
	z-index: 3;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fe9043;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.sfm-readmore:hover { text-decoration: underline; }

/* ---------- Zeinet package cards: "Most Popular" highlight ----------
   Add the CSS class "sfm-popular" to a package widget (Elementor → Advanced → CSS Classes). */
.sfm-popular .plans-one__single {
	border: 2px solid #fe9043;
	box-shadow: 0 20px 45px rgba(254, 144, 67, .22);
	transform: translateY(-12px);
	z-index: 2;
}
.sfm-popular .plans-one__single::before {
	content: "Most Popular";
	position: absolute;
	top: -17px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	padding: 10px 20px;
	border-radius: 30px;
	background: #fe9043;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 6px 14px rgba(254, 144, 67, .35);
}
@media (max-width: 767px) {
	.sfm-popular .plans-one__single { transform: none; margin-top: 20px; }
}

/* ---------- Link badges ---------- */
.sfm-link { position: relative; }
.sfm-link-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	padding: 4px 10px; border-radius: 20px;
	background: #fe9043; color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.sfm-link-featured .sfm-link-logo { box-shadow: 0 0 0 3px #fe9043, 0 10px 24px rgba(254, 144, 67, .25); }

/* ---------- Sidebar "Recent Comments": the theme's 44px icon overlapped the next row ---------- */
.sidebar__single .wp-block-latest-comments { margin-left: 0; padding-left: 0; }
.sidebar__single .wp-block-latest-comments__comment {
	display: flex;
	align-items: center;
	min-height: 52px;
	margin: 0 0 16px;
	list-style: none;
}
.sidebar__single .wp-block-latest-comments__comment:last-child { margin-bottom: 0; }

.sfm-admin-note { padding: 10px 14px; border-left: 4px solid #dba617; background: #fff8e5; color: #50400a; font-size: 14px; }

@media (max-width: 680px) {
	.sfm-tablist { gap: 8px; }
	.sfm-tab { flex: 1 1 calc(50% - 8px); padding: 10px 12px; font-size: 14px; }
	.sfm-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.sfm-panel-title { font-size: 22px; }
}
