/* ─────────────────────────────────────────────────────────────────────────────
   Social Media Page — Facebook Page Sync
   Follows the ar-rahman design system:
     --arh-primary:    #BAA35D  (gold)
     --arh-secondary:  #282828  (near-black)
     --arh-text:       #8C8C8C  (muted)
     --arh-light:      #F8F8F8  (off-white)
     Fonts: Philosopher (headings) / Hind Siliguri + Barlow (body)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.fps-hero {
	position: relative;
	background: linear-gradient(135deg, #1f1f1f 0%, #282828 60%, #1a160a 100%);
	padding: 72px 0 80px;
	overflow: hidden;
}

/* Subtle gold grain overlay */
.fps-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(186,163,93,.12) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 20%, rgba(186,163,93,.08) 0%, transparent 50%);
	pointer-events: none;
}

.fps-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.fps-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--arh-primary, #BAA35D);
	margin: 0 0 16px;
}

.fps-hero__fb-icon {
	opacity: .85;
}

.fps-hero__title {
	font-family: "Philosopher", "Hind Siliguri", sans-serif;
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.25;
}

.fps-hero__lead {
	font-size: 15px;
	color: rgba(255,255,255,.65);
	max-width: 520px;
	margin: 0 auto 28px;
	line-height: 1.8;
}

.fps-hero__fb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: var(--arh-primary, #BAA35D);
	color: #fff;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 6px;
	text-decoration: none;
	transition: background .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 4px 16px rgba(186,163,93,.35);
}

.fps-hero__fb-btn:hover {
	background: #fff;
	color: var(--arh-secondary, #282828);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(186,163,93,.3);
	text-decoration: none;
}

.fps-hero__wave {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	line-height: 0;
}

.fps-hero__wave svg {
	width: 100%;
	height: 48px;
}

/* ── Meta bar ─────────────────────────────────────────────────────────────── */
.fps-bar {
	background: #fff;
	border-bottom: 1px solid #eaeaea;
	padding: 12px 0;
}

.fps-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fps-bar__count {
	margin: 0;
	font-size: 13px;
	color: var(--arh-text, #8C8C8C);
	font-family: "Barlow", "Hind Siliguri", sans-serif;
}

.fps-bar__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #27ae60;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.fps-bar__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #27ae60;
	animation: fps-pulse 2s infinite;
}

@keyframes fps-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: .5; transform: scale(.75); }
}

/* ── Grid wrapper ─────────────────────────────────────────────────────────── */
.fps-grid-wrap {
	padding: 48px 20px 72px;
}

/* ── Post grid ────────────────────────────────────────────────────────────── */
.fps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.fps-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #eaeaea;
	box-shadow: 0 4px 20px rgba(0,0,0,.04);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s cubic-bezier(.25,.8,.25,1), box-shadow .25s, border-color .25s;
}

.fps-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(186,163,93,.14);
	border-color: rgba(186,163,93,.35);
}

/* Thumbnail */
.fps-card__thumb-link {
	display: block;
}

.fps-card__thumb {
	position: relative;
	height: 210px;
	overflow: hidden;
	background: var(--arh-light, #F8F8F8);
}

.fps-card__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0ede5 0%, #f8f6ef 100%);
	color: var(--arh-primary, #BAA35D);
}

.fps-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.fps-card:hover .fps-card__img {
	transform: scale(1.05);
}

/* Facebook badge on thumbnail */
.fps-card__fb-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1877f2;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(24,119,242,.4);
}

/* Card body */
.fps-card__body {
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fps-card__meta {
	margin-bottom: 10px;
}

.fps-card__date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--arh-primary, #BAA35D);
}

.fps-card__title {
	font-family: "Philosopher", "Hind Siliguri", sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: var(--arh-secondary, #282828);
	line-height: 1.4;
	margin: 0 0 10px;
}

.fps-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.fps-card__title a:hover {
	color: var(--arh-primary, #BAA35D);
	text-decoration: none;
}

.fps-card__excerpt {
	font-size: 13.5px;
	color: var(--arh-text, #8C8C8C);
	line-height: 1.75;
	margin: 0 0 20px;
	flex-grow: 1;
}

/* Card footer actions */
.fps-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px dashed rgba(186,163,93,.3);
	gap: 12px;
}

.fps-card__read-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--arh-secondary, #282828);
	text-decoration: none;
	transition: color .2s, gap .2s;
}

.fps-card__read-btn:hover {
	color: var(--arh-primary, #BAA35D);
	gap: 10px;
	text-decoration: none;
}

.fps-card__fb-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e8f0fe;
	color: #1877f2;
	text-decoration: none;
	transition: background .2s, color .2s, transform .2s;
	flex-shrink: 0;
}

.fps-card__fb-link:hover {
	background: #1877f2;
	color: #fff;
	transform: scale(1.1);
	text-decoration: none;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.fps-pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.fps-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #eaeaea;
	font-size: 14px;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	font-weight: 600;
	color: var(--arh-secondary, #282828);
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}

.fps-pagination .page-numbers:hover,
.fps-pagination .page-numbers.current {
	background: var(--arh-primary, #BAA35D);
	border-color: var(--arh-primary, #BAA35D);
	color: #fff;
	text-decoration: none;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.fps-empty {
	text-align: center;
	padding: 72px 24px;
}

.fps-empty__icon {
	color: var(--arh-primary, #BAA35D);
	margin-bottom: 20px;
}

.fps-empty__title {
	font-family: "Philosopher", "Hind Siliguri", sans-serif;
	font-size: 22px;
	color: var(--arh-secondary, #282828);
	margin-bottom: 12px;
}

.fps-empty__text {
	font-size: 14px;
	color: var(--arh-text, #8C8C8C);
	max-width: 420px;
	margin: 0 auto 24px;
	line-height: 1.8;
}

.fps-empty__btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--arh-primary, #BAA35D);
	color: #fff;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	text-decoration: none;
	transition: background .2s;
}

.fps-empty__btn:hover {
	background: var(--arh-secondary, #282828);
	color: #fff;
	text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.fps-hero {
		padding: 52px 0 64px;
	}

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

	.fps-bar__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.fps-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Single Facebook post page ────────────────────────────────────────────── */
.fps-single-source {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 6px;
	background: #e8f0fe;
	color: #1877f2;
	font-family: "Barlow", "Hind Siliguri", sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	margin-top: 28px;
	transition: background .2s, color .2s;
}

.fps-single-source:hover {
	background: #1877f2;
	color: #fff;
	text-decoration: none;
}

.fps-source-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1877f2;
	font-weight: 600;
}
