/*
 * Sudairy Culture – front-end styles.
 * Uses the site identity: maroon #801714, the custom Arabic font "ar",
 * black text, light grey lines. Logical properties keep RTL correct.
 */

:root {
	--sc-brand: #801714;
	--sc-brand-dark: #5f100e;
	--sc-brand-soft: #f7eceb;
	--sc-ink: #0e0e0e;
	--sc-muted: #6b6b6b;
	--sc-line: #dbdbdb;
	--sc-bg-soft: #f7f7f7;
	--sc-radius: 6px;
	--sc-gap: 24px;
	--sc-font: "ar", "Segoe UI", Tahoma, Arial, sans-serif;
}

.sc-page,
.sc-embed {
	font-family: var(--sc-font);
	color: var(--sc-ink);
}

.sc-page *,
.sc-embed * {
	box-sizing: border-box;
}

.sc-wrap {
	max-width: 1140px;
	margin-inline: auto;
	padding: 32px 16px 56px;
}

/* Heading band ------------------------------------------------------------ */
.sc-hero {
	background: var(--sc-brand);
	color: #fff;
}

.sc-hero .sc-wrap {
	padding-block: 44px 40px;
}

.sc-hero__kicker {
	margin: 0 0 6px;
	font-size: 15px;
	opacity: .85;
}

.sc-hero__title {
	margin: 0;
	color: #fff;
	font-family: var(--sc-font);
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.3;
}

.sc-hero__intro {
	max-width: 760px;
	margin-top: 12px;
	font-size: 17px;
	line-height: 1.9;
	opacity: .95;
}

.sc-hero__intro p {
	margin: 0 0 8px;
}

/* Tabs, chips, filters ---------------------------------------------------- */
.sc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid var(--sc-line);
	margin-bottom: 20px;
}

.sc-tab {
	padding: 10px 18px;
	margin-bottom: -2px;
	border-bottom: 3px solid transparent;
	color: var(--sc-ink);
	text-decoration: none;
	font-weight: 600;
}

.sc-tab:hover,
.sc-tab:focus-visible {
	color: var(--sc-brand);
}

.sc-tab.is-active {
	color: var(--sc-brand);
	border-bottom-color: var(--sc-brand);
}

.sc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 28px;
}

.sc-toolbar--stack {
	flex-direction: column;
	align-items: stretch;
}

.sc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sc-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--sc-line);
	border-radius: 999px;
	color: var(--sc-ink);
	background: #fff;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
}

.sc-chip:hover,
.sc-chip:focus-visible {
	border-color: var(--sc-brand);
	color: var(--sc-brand);
}

.sc-chip.is-active {
	background: var(--sc-brand);
	border-color: var(--sc-brand);
	color: #fff;
}

.sc-filter {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 24px;
}

.sc-toolbar .sc-filter {
	margin-bottom: 0;
}

.sc-page .sc-filter label {
	display: inline-block;
	margin: 0;
	font-weight: 600;
}

.sc-page .sc-filter select {
	width: auto;
	max-width: 100%;
	min-width: 150px;
	padding: 6px 10px;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: #fff;
	font-family: inherit;
	font-size: 15px;
}

/* Buttons and links ------------------------------------------------------- */
.sc-button {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid var(--sc-brand);
	border-radius: var(--sc-radius);
	background: var(--sc-brand);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}

.sc-button:hover,
.sc-button:focus-visible {
	background: var(--sc-brand-dark);
	border-color: var(--sc-brand-dark);
	color: #fff;
}

.sc-button--ghost {
	background: #fff;
	color: var(--sc-brand);
}

.sc-button--ghost:hover,
.sc-button--ghost:focus-visible {
	background: var(--sc-brand);
	color: #fff;
}

.sc-more,
.sc-back {
	color: var(--sc-brand);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.sc-more::after {
	content: " ←";
}

.sc-back {
	display: inline-block;
	margin-top: 24px;
}

.sc-back::before {
	content: "→ ";
}

.sc-more:hover,
.sc-back:hover {
	text-decoration: underline;
}

/* Sections ---------------------------------------------------------------- */
.sc-section {
	margin-bottom: 40px;
}

.sc-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.sc-section__title {
	position: relative;
	margin: 0 0 18px;
	padding-inline-start: 14px;
	font-family: var(--sc-font);
	font-size: 24px;
	color: var(--sc-ink);
}

.sc-section__head .sc-section__title {
	margin: 0;
}

.sc-section__title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .25em;
	bottom: .25em;
	width: 4px;
	background: var(--sc-brand);
	border-radius: 2px;
}

.sc-empty {
	padding: 28px;
	border: 1px dashed var(--sc-line);
	border-radius: var(--sc-radius);
	color: var(--sc-muted);
	text-align: center;
}

.sc-notice {
	padding: 14px 18px;
	border-inline-start: 4px solid var(--sc-brand);
	background: var(--sc-brand-soft);
	border-radius: var(--sc-radius);
}

/* Activity cards ---------------------------------------------------------- */
.sc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--sc-gap);
}

.sc-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
}

.sc-card:hover {
	box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.sc-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--sc-bg-soft);
}

/* Fill the fixed-ratio box whatever the image size (older uploads have no 16:9 crop). */
.sc-card .sc-card__media > a,
.sc-card .sc-card__media > .sc-yt,
.sc-card .sc-card__media > .sc-yt-frame,
.sc-card .sc-card__media img,
.sc-card .sc-card__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.sc-card .sc-card__media img {
	object-fit: cover;
}

.sc-card__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #fff;
	text-align: center;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .10) 0 18%, transparent 19%),
		radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .07) 0 22%, transparent 23%),
		linear-gradient(135deg, var(--sc-brand) 0%, var(--sc-brand-dark) 100%);
}

.sc-ph__big {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
}

.sc-ph__small {
	font-size: 16px;
	opacity: .8;
}

.sc-badges {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.sc-badge {
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--sc-ink);
	font-size: 13px;
	font-weight: 600;
}

.sc-badge--accent {
	background: var(--sc-brand);
	color: #fff;
}

.sc-badge--soon {
	background: #fff4e5;
	color: #8a4b00;
}

.sc-card__body {
	padding: 16px 18px 20px;
}

.sc-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 0 8px;
	color: var(--sc-muted);
	font-size: 14px;
}

.sc-card__meta > * + *::before {
	content: "•";
	margin-inline-end: 12px;
	color: var(--sc-line);
}

.sc-card__title {
	margin: 0;
	font-family: var(--sc-font);
	font-size: 18px;
	line-height: 1.6;
}

.sc-card__title a {
	color: var(--sc-ink);
	text-decoration: none;
}

.sc-card__title a:hover,
.sc-card__title a:focus-visible {
	color: var(--sc-brand);
}

.sc-card__excerpt {
	margin: 8px 0 0;
	color: #3d3d3d;
	font-size: 15px;
	line-height: 1.8;
}

.sc-card--compact .sc-card__title {
	font-size: 16px;
}

/* Lightweight YouTube player --------------------------------------------- */
.sc-yt {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
}

.sc-yt.sc-yt img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .92;
	transition: opacity .2s ease;
}

.sc-yt:hover img,
.sc-yt:focus-visible img {
	opacity: 1;
}

.sc-yt__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 44px;
	transform: translate(-50%, -50%);
	border-radius: 12px;
	background: var(--sc-brand);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}

.sc-yt__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}

.sc-yt:hover .sc-yt__play,
.sc-yt:focus-visible .sc-yt__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.sc-yt:focus-visible {
	outline: 3px solid var(--sc-brand);
	outline-offset: 2px;
}

.sc-yt-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Single activity --------------------------------------------------------- */
.sc-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 36px;
	align-items: start;
}

.sc-single__video,
.sc-single__image {
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
	border-radius: var(--sc-radius);
	aspect-ratio: 16 / 9;
	background: var(--sc-bg-soft);
}

.sc-single__video > *,
.sc-single__image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sc-content {
	font-size: 17px;
	line-height: 2;
}

.sc-single__aside {
	position: sticky;
	top: 110px;
	padding: 20px;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: #fff;
}

.sc-single__aside .sc-button {
	display: block;
	margin-top: 16px;
}

.sc-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 14px;
	margin: 0;
}

.sc-facts dt {
	color: var(--sc-muted);
	font-weight: 600;
}

.sc-facts dd {
	margin: 0;
}

.sc-facts a {
	color: var(--sc-brand);
}

/* Home page: activities by entity ---------------------------------------- */
.sc-entity-block + .sc-entity-block {
	margin-top: 32px;
}

.sc-entity-block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--sc-line);
}

.sc-entity-block__head h3 {
	margin: 0;
	color: var(--sc-brand);
	font-family: var(--sc-font);
	font-size: 20px;
}

/* Forums ------------------------------------------------------------------ */
.sc-forums {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--sc-gap);
}

.sc-forum-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: #fff;
	font-family: var(--sc-font);
}

.sc-forum-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--sc-bg-soft);
}

.sc-forum-card .sc-forum-card__media img,
.sc-forum-card .sc-forum-card__media .sc-card__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sc-forum-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 24px;
}

.sc-forum-card__body h3 {
	margin: 0 0 10px;
	font-family: var(--sc-font);
	font-size: 20px;
	line-height: 1.6;
}

.sc-forum-card__body h3 a {
	color: var(--sc-ink);
	text-decoration: none;
}

.sc-forum-card__body p {
	margin: 0 0 12px;
	line-height: 1.9;
}

.sc-forum-card__count {
	color: var(--sc-muted);
	font-size: 14px;
}

.sc-forum-card__body .sc-button {
	align-self: flex-start;
	margin-top: auto;
}

.sc-about {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 36px;
}

.sc-about__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sc-radius);
}

.sc-about:not(:has(.sc-about__image)) {
	grid-template-columns: 1fr;
}

/* Photo gallery ----------------------------------------------------------- */
.sc-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.sc-photo {
	margin: 0;
}

.sc-photo .sc-lb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--sc-radius);
	aspect-ratio: 4 / 3;
	background: var(--sc-bg-soft);
}

.sc-gallery .sc-photo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.sc-photo .sc-lb:hover img,
.sc-photo .sc-lb:focus-visible img {
	transform: scale(1.04);
}

.sc-photo .sc-lb:focus-visible {
	outline: 3px solid var(--sc-brand);
	outline-offset: 2px;
}

.sc-photo figcaption {
	display: flex;
	flex-direction: column;
	padding-top: 8px;
	font-size: 15px;
	line-height: 1.6;
}

.sc-photo__date {
	color: var(--sc-muted);
	font-size: 13px;
}

/* Lightbox ---------------------------------------------------------------- */
.sc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: 1fr auto;
	background: rgba(10, 10, 10, .94);
	color: #fff;
	font-family: var(--sc-font);
}

.sc-lightbox[hidden] {
	display: none;
}

.sc-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 56px 64px 8px;
}

.sc-lightbox__stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.sc-lightbox__caption {
	max-width: 900px;
	margin-inline: auto;
	padding: 10px 20px 22px;
	text-align: center;
	line-height: 1.8;
}

.sc-lightbox__caption strong {
	display: block;
	font-size: 18px;
}

.sc-lightbox__caption small {
	display: block;
	opacity: .75;
}

.sc-lightbox__caption p {
	margin: 6px 0 0;
	opacity: .9;
}

.sc-lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.sc-lightbox button:hover,
.sc-lightbox button:focus-visible {
	background: var(--sc-brand);
	outline: none;
}

.sc-lightbox__close {
	top: 12px;
	inset-inline-end: 12px;
}

.sc-lightbox__prev,
.sc-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

/* In RTL "previous" sits on the right, "next" on the left. */
.sc-lightbox__prev {
	inset-inline-start: 10px;
}

.sc-lightbox__next {
	inset-inline-end: 10px;
}

.sc-lightbox__counter {
	position: absolute;
	top: 22px;
	inset-inline-start: 20px;
	font-size: 14px;
	opacity: .75;
}

body.sc-no-scroll {
	overflow: hidden;
}

/* Pagination -------------------------------------------------------------- */
.sc-pagination {
	margin-top: 32px;
}

.sc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-pagination a,
.sc-pagination span {
	display: inline-block;
	min-width: 40px;
	padding: 6px 12px;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	color: var(--sc-ink);
	text-align: center;
	text-decoration: none;
}

.sc-pagination .current {
	background: var(--sc-brand);
	border-color: var(--sc-brand);
	color: #fff;
}

.sc-pagination a:hover {
	border-color: var(--sc-brand);
	color: var(--sc-brand);
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
	.sc-single {
		grid-template-columns: 1fr;
	}

	.sc-single__aside {
		position: static;
	}

	.sc-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sc-wrap {
		padding: 24px 16px 40px;
	}

	.sc-hero .sc-wrap {
		padding-block: 32px 28px;
	}

	.sc-grid,
	.sc-grid--3 {
		grid-template-columns: 1fr;
	}

	.sc-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.sc-about {
		grid-template-columns: 1fr;
	}

	.sc-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.sc-tab {
		white-space: nowrap;
	}

	.sc-lightbox__stage {
		padding: 56px 8px 8px;
	}

	.sc-lightbox__prev,
	.sc-lightbox__next {
		top: auto;
		bottom: 14px;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-card,
	.sc-photo img,
	.sc-yt__play {
		transition: none;
	}
}
