/* ==========================================================================
   Dean of Students – Weekly Newsletter landing (page-landing.php)
   All rules are scoped to .lp / .lp-body so theme CSS does not leak in.
   Uses logical properties (inline-start/end) → works in RTL (he) and LTR (en).
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body.lp-body {
	margin: 0;
	padding: 0;
	background: #EBF1F8;
	color: #1E293B;
	font-family: 'Reforma', 'Rubik', 'Segoe UI', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

.lp {
	--navy-950: #001938;
	--navy-900: #001E42;
	--navy-800: #002D62;
	--navy-700: #003875;
	--yellow: #FFB800;
	--orange: #FF8A00;
	--coral: #FF5A5F;
	--green: #00C48C;
	--radius: 24px;
	--gutter: 30px;

	padding: 25px 16px;
	font-family: inherit;
}

.lp *,
.lp *::before,
.lp *::after {
	box-sizing: border-box;
}

/* Reset whatever the theme applies to these elements */
.lp h1, .lp h2, .lp h3, .lp p {
	margin: 0;
	padding: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.lp a {
	text-decoration: none;
	transition: color .2s, background-color .2s, transform .2s, box-shadow .2s;
}

.lp a:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 2px;
}

.lp img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

.lp ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lp li {
	float: none;
	margin: 0;
}

.lp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* "›" is bidi-mirrored, so it points the right way in RTL and LTR */
.lp-arrow::after {
	content: " ›";
}

/* ---------- Card wrapper ---------- */
.lp-card {
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 12px 35px rgba(0, 45, 98, .12);
}

/* ---------- Hero ---------- */
.lp-hero {
	padding: 40px 25px 34px;
	text-align: center;
	background: linear-gradient(145deg, #001E42 0%, #003366 50%, #004D99 100%);
	border-bottom: 5px solid var(--yellow);
	border-radius: var(--radius) var(--radius) 0 0;
}

.lp-hero__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.lp-hero__logo img {
	width: 130px;
	margin: 0 auto;
}

.lp-hero__title {
	margin-bottom: 12px;
	font-size: clamp(32px, 5vw, 46px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -.5px;
	color: #fff;
	text-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.lp-pill {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 24px;
	border-radius: 30px;
	background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 100%);
	box-shadow: 0 4px 14px rgba(255, 138, 0, .45);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: .2px;
}

.lp-hero__date {
	font-size: 13px;
	font-weight: 500;
	color: #C5DCF5;
}

/* ---------- Anchor menu (sticky) ---------- */
.lp-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--navy-950);
	box-shadow: 0 6px 16px rgba(0, 25, 56, .18);
}

.admin-bar .lp-nav {
	top: 32px;
}

.lp-nav__list {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.lp-nav__list li {
	display: flex;
	align-items: center;
}

.lp-nav__list li + li::before {
	content: "•";
	color: #4A6B8A;
}

.lp-nav__list a {
	display: block;
	padding: 4px 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.lp-nav__list a:hover {
	color: var(--yellow);
}

/* Language switcher – output of menu_langswitch_display() */
.lp-lang {
	grid-column: 3;
	justify-self: end;
}

.lp-lang ul {
	display: flex;
	gap: 6px;
}

.lp-lang .current-lang {
	display: none; /* show only the "other" language button */
}

.lp-lang a {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--yellow), var(--orange));
	box-shadow: 0 2px 6px rgba(255, 138, 0, .35);
	color: var(--navy-900);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.4;
	text-transform: uppercase;
}

.lp-lang a:hover {
	transform: translateY(-1px);
	color: var(--navy-900);
}

/* ---------- Generic section ---------- */
.lp-sec {
	padding: 30px var(--gutter) 22px;
	scroll-margin-top: 70px;
}

.lp-sec--tint {
	background: #F4F8FD;
	padding-bottom: 30px;
}

.lp-sec__title {
	margin-bottom: 18px;
	/*
	padding-inline-start: 12px;
	border-inline-start: 5px solid var(--yellow);
	*/
	border-right:var(--yellow) 5px solid;
	padding-right:5px !important;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.3;
	color: var(--navy-800);
}

.lp-sec__title--green { border-inline-start-color: var(--green); }
.lp-sec__title--red   { border-inline-start-color: var(--coral); }

.lp-tag {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 9px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 800;
}

.lp-tag--light {
	background: #EBF5FF;
	color: #0066CC;
}

/* ---------- Dean's message ---------- */
.lp-dean {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 22px;
	align-items: start;
	padding: 28px var(--gutter);
	background: linear-gradient(180deg, #F8FAFD 0%, #fff 100%);
	border-bottom: 2px dashed #E2EBF5;
	scroll-margin-top: 70px;
}

.lp-dean__photo {
	width: 110px;
	height: 110px;
	overflow: hidden;
	border: 3px solid var(--yellow);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 45, 98, .15);
}

.lp-dean__photo img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 20%;
}

.lp-dean__title {
	margin-bottom: 6px;
	font-size: 19px;
	font-weight: 900;
	color: var(--navy-800);
}

.lp-dean__text {
	font-size: 15px;
	line-height: 1.7;
	color: #4A5568;
}

/* ---------- Good to know ---------- */
.lp-updates {
	display: grid;
	gap: 10px;
}

.lp-update {
	padding: 14px 16px;
	border-radius: 12px;
	background: #F9FBFE;
	border: 1px solid #EEF3F9;
}

.lp-update__title {
	margin-bottom: 4px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--navy-700);
}

.lp-update__title a {
	color: inherit;
}

.lp-update__title a:hover {
	color: #0066CC;
	text-decoration: underline;
}

.lp-update__text {
	font-size: 14px;
	line-height: 1.55;
	color: #556677;
}

/* ---------- Opportunities ---------- */
.lp-opps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.lp-opp {
	--c-border: #FFB800;
	--c-tag: #D97706;
	--c-tag-bg: #FEF3C7;
	--c-btn: #C2410C;
	--c-btn-bg: #FFF7ED;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px;
	border-radius: 14px;
	border-top: 4px solid var(--c-border);
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 45, 98, .05);
	transition: transform .2s, box-shadow .2s;
}

.lp-opp:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(0, 45, 98, .1);
}

.lp-opp--blue   { --c-border: #3B82F6; --c-tag: #1D4ED8; --c-tag-bg: #DBEAFE; --c-btn: #1D4ED8; --c-btn-bg: #EFF6FF; }
.lp-opp--green  { --c-border: #10B981; --c-tag: #047857; --c-tag-bg: #D1FAE5; --c-btn: #047857; --c-btn-bg: #ECFDF5; }
.lp-opp--purple { --c-border: #8B5CF6; --c-tag: #6D28D9; --c-tag-bg: #EDE9FE; --c-btn: #6D28D9; --c-btn-bg: #F5F3FF; }

.lp-opp__tag {
	margin-bottom: 8px;
	padding: 3px 9px;
	border-radius: 20px;
	background: var(--c-tag-bg);
	color: var(--c-tag);
	font-size: 11.5px;
	font-weight: 800;
}

.lp-opp__title {
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 800;
	color: var(--navy-800);
}

.lp-opp__text {
	flex-grow: 1;
	margin-bottom: 14px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #64748B;
}

.lp-opp__btn {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 8px;
	background: var(--c-btn-bg);
	color: var(--c-btn);
	font-size: 12.5px;
	font-weight: 800;
}

.lp-opp__btn:hover {
	background: var(--c-btn);
	color: #fff;
}

/* ---------- Events ---------- */
.lp-events {
	display: grid;
	gap: 16px;
}

.lp-event {
	--ev-media: linear-gradient(135deg, #FFF9E6 0%, #FFF0C2 100%);
	--ev-meta: #856404;
	--ev-meta-bg: #FFF3CD;
	--ev-btn: linear-gradient(90deg, #FFB800, #FF8A00);
	--ev-btn-shadow: rgba(255, 138, 0, .3);

	display: grid;
	grid-template-columns: 170px 1fr;
	overflow: hidden;
	border: 2px solid #EBF2FA;
	border-radius: 14px;
	background: #fff;
}

.lp-event--blue {
	--ev-media: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
	--ev-meta: #0050B3;
	--ev-meta-bg: #E6F7FF;
	--ev-btn: linear-gradient(90deg, #0077CC, #00529B);
	--ev-btn-shadow: rgba(0, 82, 155, .25);
}

.lp-event__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: var(--ev-media);
}

.lp-event__media img {
	width: 140px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}

.lp-event__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 18px;
}

.lp-event__meta {
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--ev-meta-bg);
	color: var(--ev-meta);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.5;
}

.lp-event__title {
	margin-bottom: 6px;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.3;
	color: var(--navy-800);
}

.lp-event__text {
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.lp-event__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.lp-btn {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 20px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.lp-btn--grad {
	background: var(--ev-btn);
	box-shadow: 0 3px 8px var(--ev-btn-shadow);
}

.lp-btn:hover {
	color: #fff;
	transform: translateY(-2px);
}

.lp-event__cal {
	color: #0066CC;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: underline !important;
}

.lp-event__cal:hover {
	color: var(--navy-800);
}

/* ---------- Student clubs ---------- */
.lp-sec--clubs {
	padding-top: 16px;
	padding-bottom: 16px;
}

.lp-clubs {
	padding: 30px 24px;
	border-radius: 16px;
	background: linear-gradient(135deg, #FF7A00 0%, #FF5A5F 100%);
	box-shadow: 0 6px 20px rgba(255, 90, 95, .25);
	text-align: center;
	color: #fff;
}

.lp-clubs__title {
	margin-bottom: 8px;
	font-size: 22px;
	font-weight: 900;
	color: #fff;
}

.lp-clubs__text {
	max-width: 600px;
	margin: 0 auto 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #FFF0F0;
}

.lp-clubs__btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
	color: var(--coral);
	font-size: 14px;
	font-weight: 900;
}

.lp-clubs__btn:hover {
	color: var(--coral);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

/* ---------- Social post promo ---------- */
.lp-sec--promo {
	padding-top: 14px;
	padding-bottom: 30px;
}

.lp-promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	border: 2px dashed var(--yellow);
	border-radius: 14px;
	background: linear-gradient(90deg, #F0F7FF 0%, #FFF9F0 100%);
}

.lp-promo__text {
	font-size: 14px;
	line-height: 1.5;
	color: #1E293B;
}

.lp-promo__text strong {
	font-weight: 800;
}

.lp-promo__btn {
	flex-shrink: 0;
	display: inline-block;
	padding: 7px 16px;
	border-radius: 14px;
	background: var(--navy-800);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
}

.lp-promo__btn:hover {
	background: var(--navy-950);
	color: var(--yellow);
}

/* ---------- Footer ---------- */
.lp-footer {
	padding: 32px var(--gutter);
	border-radius: 0 0 var(--radius) var(--radius);
	background: #0B192C;
	text-align: center;
	color: #94A3B8;
}

.lp-footer__title {
	margin-bottom: 16px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
}

.lp-social {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 22px !important;
}

.lp-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 19px;
}

.lp-social__link:hover {
	background: var(--yellow);
	color: var(--navy-900);
	transform: translateY(-2px);
}

.lp-social__link--whatsapp:hover  { background: #25D366; color: #fff; }
.lp-social__link--instagram:hover { background: #E1306C; color: #fff; }
.lp-social__link--facebook:hover  { background: #1877F2; color: #fff; }

.lp-footer__org {
	margin-bottom: 6px;
	font-size: 12.5px;
	color: #94A3B8;
}

.lp-footer__note {
	font-size: 11.5px;
	color: #64748B;
}

.lp-footer__note a {
	color: #94A3B8;
	text-decoration: underline;
}

.lp-clubs__title {
	margin-bottom:10px !important;
}

.clubs-footer {
	margin-top:10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 782px) {
	.admin-bar .lp-nav { top: 46px; }
}

@media (max-width: 640px) {
	.lp {
		--gutter: 16px;
		padding: 0;
	}

	.lp-card,
	.lp-hero,
	.lp-footer {
		border-radius: 0;
	}

	.lp-card {
		box-shadow: none;
	}

	.lp-hero {
		padding: 30px 16px 26px;
	}

	.lp-hero__logo img {
		width: 110px;
	}

	.lp-pill {
		font-size: 15px;
		padding: 6px 20px;
	}

	/* Menu becomes a horizontal scroller, language button stays pinned */
	.lp-nav {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 10px 12px;
	}

	.lp-nav__list {
		grid-column: 1;
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.lp-nav__list::-webkit-scrollbar {
		display: none;
	}

	.lp-nav__list a {
		font-size: 13px;
		padding: 4px 8px;
	}

	.lp-lang {
		grid-column: 2;
	}

	.lp-sec__title {
		font-size: 20px;
	}

	.lp-opps {
		grid-template-columns: 1fr;
	}

	.lp-dean {
		grid-template-columns: 1fr;
		gap: 14px;
		text-align: center;
	}

	.lp-dean__photo {
		margin: 0 auto;
	}

	.lp-event {
		grid-template-columns: 1fr;
	}

	.lp-event__media img {
		width: 100%;
		max-width: 320px;
		aspect-ratio: 16 / 10;
	}

	.lp-promo {
		flex-direction: column;
		text-align: center;
	}

	.lp-clubs {
		padding: 24px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lp *, .lp *::before, .lp *::after { transition: none !important; }
}
