/* X (Twitter) icon — FA4-compatible, inherits color like other .fa icons */
.fa-x-twitter {
	position: relative;
}

.fa-x-twitter:before {
	content: "" !important;
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	vertical-align: -0.05em;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

#header .social-networks .fa-x-twitter:before {
	vertical-align: middle;
}

#footer .social-networks a .fa-x-twitter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#footer .social-networks a .fa-x-twitter:before {
	width: 12px;
	height: 12px;
	vertical-align: middle;
}

/* Footer CTA buttons — match original PHP site */
#footer .info .buttons .btn-primary {
	color: #fcf5f5;
	background-color: #c82d1d;
	border-color: #c82d1d;
}

#footer .info .buttons .btn-primary:hover,
#footer .info .buttons .btn-primary:focus,
#footer .info .buttons .btn-primary:active {
	color: #fcf5f5;
	background-color: #9b2317;
	border-color: #932115;
}

/* Footer contact icons — red circles like Donate button */
#footer .info .icon {
	background: #c82d1d;
	color: #fff;
}

/* Sidebar calendar — match original jQuery UI datepicker */
#aside #datepicker .ui-datepicker-inline {
	display: block !important;
	width: 100%;
}

#aside #datepicker .ui-widget-header {
	background: #e01200;
	color: #fff;
	border: 0;
}

#aside #datepicker .ui-datepicker-title {
	color: #fff;
}

#aside #datepicker .ui-datepicker table {
	width: 100%;
	border-collapse: collapse;
}

#aside #datepicker .ui-datepicker th {
	padding: 5px;
	text-align: center;
}

#aside #datepicker .ui-datepicker td span,
#aside #datepicker .ui-datepicker td a {
	display: block;
	padding: 8px 7px;
	text-align: center;
	text-decoration: none;
}

#aside #datepicker .ui-datepicker-calendar td a {
	color: #c00e0e;
}

#aside #datepicker .ui-datepicker-prev span,
#aside #datepicker .ui-datepicker-next span {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	text-indent: -9999px;
	overflow: hidden;
}

/* Hierarchy / admin person cards — names are <a> like original (site red #c00e0e) */
.admin-person-card .head a[href="#"],
.page-hierarchy .admin-person-card .head a {
	cursor: default;
	text-decoration: none;
}

.admin-person-card .head a[href="#"]:hover,
.admin-person-card .head a[href="#"]:focus,
.page-hierarchy .admin-person-card .head a:hover,
.page-hierarchy .admin-person-card .head a:focus {
	color: #c00e0e;
	text-decoration: none;
}

/* Bracketed titles under hierarchy leaders — black like original */
.page-hierarchy .admin-person-card .head h6 {
	color: #000;
}

/* Hierarchy bishops — equal-height cards in each row */
.page-hierarchy .hierarchy-bishops-row {
	display: flex;
	flex-wrap: wrap;
}

.page-hierarchy .hierarchy-bishops-row .admin-person-card {
	display: flex;
	flex-direction: column;
	float: none;
}

/* Administration person rows — space between leadership / committee blocks */
.page-administration .post-related.row {
	margin-bottom: 30px;
}

.page-administration .admin-person-card .head a.tel,
.page-administration .admin-person-card .head a[href^="tel:"] {
	cursor: pointer;
	text-decoration: none;
}

.page-administration .admin-person-card .head a.tel:hover,
.page-administration .admin-person-card .head a.tel:focus,
.page-administration .admin-person-card .head a[href^="tel:"]:hover,
.page-administration .admin-person-card .head a[href^="tel:"]:focus {
	text-decoration: underline;
}

/* Uniform photo boxes — portrait originals (e.g. Secretary) crop to the same size */
.page-administration .admin-person-card .img-area {
	width: 100%;
}

.page-administration .admin-person-card .img-holder {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f3f3f3;
}

.page-administration .admin-person-card .img-holder img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

/* Mobile: center person photos (cards are full-width; image is narrower) */
@media (max-width: 767px) {
	.page-administration .admin-person-card .img-area {
		margin-left: auto;
		margin-right: auto;
		max-width: 280px;
	}
}

/* About person cards — red text like original, no pointer/hover underline */
/* Equal-height cards in each leadership-history / parish-priest row */
.page-previous-patriach .post-related.row,
.page-former-vicars .post-related.row,
.page-former-trustee .post-related.row,
.page-deceased-priests .post-related.row,
.page-parish-priests .post-related.row {
	display: flex;
	flex-wrap: wrap;
}

.page-previous-patriach .dated-person-card,
.page-former-vicars .dated-person-card,
.page-former-trustee .trustee-person-card,
.page-deceased-priests .dated-person-card,
.page-parish-priests .parish-priest-card {
	display: flex;
	flex-direction: column;
	float: none;
}

.dated-person-card .fc-red,
.trustee-person-card .fc-red,
.parish-priest-card .fc-red {
	cursor: default;
	text-decoration: none;
}

.parish-priest-card .fc-red.tel,
.parish-priest-card a.tel[href^="tel:"] {
	cursor: pointer;
}

.dated-person-card .fc-red:hover,
.dated-person-card .fc-red:focus,
.trustee-person-card .fc-red:hover,
.trustee-person-card .fc-red:focus,
.parish-priest-card .fc-red:hover,
.parish-priest-card .fc-red:focus {
	color: #c00e0e;
	text-decoration: none;
}

/* About — sub churches: keep layout, disable hover overlay/arrow */
.page-sub-churches .sub-church-card .img-holder:before,
.page-sub-churches .sub-church-card .img-holder:after,
.page-sub-churches .sub-church-card .img-area .arrow,
.page-sub-churches .sub-church-card:hover .img-holder:before,
.page-sub-churches .sub-church-card:hover .img-holder:after,
.page-sub-churches .sub-church-card:focus .img-holder:before,
.page-sub-churches .sub-church-card:focus .img-holder:after,
.page-sub-churches .sub-church-card:hover .img-area .arrow,
.page-sub-churches .sub-church-card:focus .img-area .arrow {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

.page-sub-churches .sub-church-card .sub-church-head h3 a {
	color: #3f3f3f;
	text-decoration: none;
	cursor: default;
}

.page-sub-churches .sub-church-card:hover .sub-church-head h3 a,
.page-sub-churches .sub-church-card:focus .sub-church-head h3 a {
	color: #3f3f3f;
}

/* Desktop: equal-height cards per row */
@media (min-width: 992px) {
	.page-sub-churches .post-related.row {
		display: flex;
		flex-wrap: wrap;
	}

	.page-sub-churches .post-related.row > .sub-church-card {
		display: flex;
		flex-direction: column;
		float: none;
	}

	.page-sub-churches .post-related.row > .sub-church-card > p {
		margin-top: auto;
	}
}

/* Spiritual organisation — match original post-detail + event-photos layout */
.page-spiritual-org .event-photos > ul.row {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
}

/* Youth / Vanitha: pack 4 officers centered, no empty center column */
.page-spiritual-org .event-photos > ul.row.org-admin-pack {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	clear: both;
	margin-top: 20px;
}

.page-spiritual-org .event-photos > ul.row.org-admin-pack:before,
.page-spiritual-org .event-photos > ul.row.org-admin-pack:after {
	display: none;
}

.page-spiritual-org .event-photos > ul.row.org-admin-pack > .org-person-card {
	float: none;
}

.page-spiritual-org .event-photos > h2 {
	margin-top: 20px;
	margin-bottom: 20px;
}

/* Person cards sit inside .post-detail; do not inherit hero img-area spacing */
.page-spiritual-org .org-person-card .img-area {
	margin: 0;
	border: 0;
	padding: 0;
	overflow: visible;
}

.page-spiritual-org .org-person-card .img-holder {
	margin: 0;
	line-height: 0;
}

.page-spiritual-org .org-person-card .img-holder img {
	display: block;
	margin: 0 auto;
}

.page-spiritual-org .org-person-card .head {
	margin: 0;
	padding: 0;
}

.page-spiritual-org .org-person-card .head h3,
.page-spiritual-org .org-person-card .head h5,
.page-spiritual-org .org-person-card .head h6 {
	margin-top: 2px;
	margin-bottom: 0;
}

/* Role in brackets is plain text (black) on original; name/phone stay link red */
.page-spiritual-org .org-person-card .org-person-role,
.page-spiritual-org .org-person-card .org-person-role a {
	color: #000;
	font-weight: 700;
	text-transform: uppercase;
}

.page-spiritual-org .org-person-card .img-holder:before,
.page-spiritual-org .org-person-card .img-holder:after,
.page-spiritual-org .org-person-card .img-area .arrow,
.page-spiritual-org .org-person-card:hover .img-holder:before,
.page-spiritual-org .org-person-card:hover .img-holder:after,
.page-spiritual-org .org-person-card:focus .img-holder:before,
.page-spiritual-org .org-person-card:focus .img-holder:after,
.page-spiritual-org .org-person-card:hover .img-area .arrow,
.page-spiritual-org .org-person-card:focus .img-area .arrow {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

.page-spiritual-org .org-person-card .head a {
	cursor: default;
	text-decoration: none;
}

.page-spiritual-org .org-person-card .head a:hover,
.page-spiritual-org .org-person-card .head a:focus {
	text-decoration: none;
}

.page-spiritual-org .org-person-card .head a[href^="tel:"] {
	cursor: pointer;
}

/* Audio / Video gallery — match original iframe-above-title cards */
.page-audio .media-embed-card > iframe,
.page-video .media-embed-card > iframe,
.page-audio-detail .media-embed-card > iframe,
.page-video-detail .media-embed-card > iframe {
	display: block;
	width: 100%;
	max-width: 400px;
	height: 235px;
	margin: 0 auto 8px;
	border: 0;
	background: #000;
}

.page-audio .media-embed-card,
.page-video .media-embed-card,
.page-audio-detail .media-embed-card,
.page-video-detail .media-embed-card {
	float: left;
}

.page-audio-detail .event-photos,
.page-video-detail .event-photos {
	overflow: hidden;
	margin: 0 -15px;
}

.page-audio-detail .event-photos:after,
.page-video-detail .event-photos:after,
.page-audio .post-related .row:after,
.page-video .post-related .row:after {
	content: "";
	display: table;
	clear: both;
}

/* Detail titles under videos use event-photos h3 rule on original */
.page-video-detail .event-photos .media-embed-card .head,
.page-audio-detail .event-photos .media-embed-card .head {
	padding-bottom: 15px;
}

/* Header LIVE badge — shown when all-data liveStreaming has Active link */
#header .header-next-event {
	display: inline-block;
	vertical-align: middle;
	color: inherit;
	text-decoration: none;
}

/* Empty countdown still reserved 260px — collapse until timer has content */
#header .timer:has(#getting-started:empty) {
	display: none;
	width: 0;
	margin: 0;
	padding: 0;
}

#header .header-live-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-left: 12px;
	/* Caps sit optically high — 1px top pad balances pill */
	padding: 1px 10px 0;
	height: 26px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	vertical-align: middle;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	color: #fff !important;
	text-decoration: none;
	background: rgba(192, 57, 43, 0.85);
	box-sizing: border-box;
}

#header .header-live-badge:hover,
#header .header-live-badge:focus {
	color: #fff !important;
	background: rgba(192, 57, 43, 1);
	text-decoration: none;
}

/* Mobile: center social icons + LIVE in one row */
@media (max-width: 767px) {
	#header .header-holder {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 10px 0 12px;
		overflow: visible;
	}

	#header .social-networks {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		float: none;
		width: auto;
		margin: 0;
		padding: 0;
		text-align: center;
	}

	#header .social-networks li {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		vertical-align: middle;
		margin: 0 4px;
	}

	#header .social-networks li.header-live-social {
		border: 0 !important;
		border-radius: 0 !important;
		width: auto !important;
		height: 30px !important;
		line-height: normal !important;
		margin: 0 0 0 4px !important;
		padding: 0;
		overflow: visible;
	}

	#header .social-networks li.header-live-social a.header-live-badge {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 6px;
		height: 26px;
		margin: 0;
		padding: 1px 10px 0;
		line-height: 1;
		text-align: center;
		opacity: 1;
		box-sizing: border-box;
		-webkit-transform: none !important;
		-moz-transform: none !important;
		transform: none !important;
	}

	#header .social-networks li.header-live-social a.header-live-badge:hover,
	#header .social-networks li.header-live-social a.header-live-badge:focus {
		opacity: 1;
		-webkit-transform: none !important;
		-moz-transform: none !important;
		transform: none !important;
	}
}

#header .header-live-dot {
	display: block;
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	min-width: 8px;
	margin: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: header-live-blink 1.2s ease-in-out infinite;
}

@keyframes header-live-blink {
	0%,
	100% {
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65);
	}
	50% {
		opacity: 0.25;
		box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
	}
}

/* Topbar Google Translate — reuse theme .language dropdown */
#header .topbar .language-col {
	text-align: right;
}

#header .topbar .language {
	width: auto;
	min-width: 0;
	padding: 8px 0;
	z-index: 20;
	float: right;
	text-align: right;
}

#header .topbar .language > a {
	color: #fff;
	font-size: 12px;
	line-height: 18px;
	text-decoration: none;
	cursor: pointer;
}

#header .topbar .language > a:hover,
#header .topbar .language > a:focus {
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

#header .topbar .language > a .caret {
	margin-left: 6px;
	border-top-color: #fff;
}

#header .topbar .language ul {
	left: auto;
	right: 0;
	margin: 0;
	width: auto;
	min-width: 110px;
	padding: 4px 0;
	list-style: none;
	text-align: left;
	z-index: 1002;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#header .topbar .language ul a {
	position: relative;
	display: block;
	padding: 6px 14px 6px 26px;
	font-size: 12px;
	line-height: 18px;
	text-align: left;
	cursor: pointer;
}

#header .topbar .language ul a:hover {
	background: #eee;
	color: #333;
	text-decoration: none;
	cursor: pointer;
}

#header .topbar .language ul a.active {
	background: #f5f5f5;
	color: #333;
	font-weight: 600;
}

#header .topbar .language ul a.active:before {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 5px;
	height: 9px;
	margin-top: -6px;
	border: solid #d01706;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

@media (max-width: 767px) {
	#header .topbar > .container {
		padding: 0 10px;
	}

	#header .topbar > .container > .row {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		margin: 0;
	}

	#header .topbar > .container > .row > [class*="col-"] {
		float: none;
		width: auto;
		padding-left: 0;
		padding-right: 0;
	}

	#header .topbar > .container > .row > [class*="col-"]:first-child {
		flex: 1 1 auto;
		min-width: 0;
		padding-right: 12px;
		text-align: left;
	}

	#header .topbar > .container > .row > [class*="col-"]:nth-child(2) {
		display: none;
	}

	#header .topbar .language-col,
	#header .topbar .text-right.language-col {
		position: static;
		flex: 0 0 auto;
		margin-left: auto;
		text-align: right;
	}

	#header .topbar .language {
		float: none;
		display: block;
		margin-left: auto;
		text-align: right;
	}

	#header .timing {
		position: static;
		padding-right: 0;
		text-align: left;
	}

	#header .timing .h3 {
		float: none;
		display: block;
	}

	#header .timing time {
		display: block;
	}
}

/* Latest News ticker — preserve original float layout; only harden translate wrapping */
.sec_head .breaking {
	white-space: nowrap;
}

.sec_head .newsticker li {
	float: left;
}

.sec_head .newsticker a,
.sec_head .newsticker a font,
.sec_head .newsticker span,
.sec_head .newsticker span font {
	white-space: nowrap !important;
}

/* Prevent brief 2-line wrap while GTranslate grows text beyond the old strip width */
.sec_head ul.newsticker {
	min-width: max-content;
}

/* Keep date badges compact like original (avoid tall line-height from sibling Malayalam text) */
.sec_head .newsticker span {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
	font-size: 9px;
	padding: 4px 6px;
	height: auto;
}

/*
 * Page banner (desktop): keep side-by-side layout (breadcrumb | title),
 * grow height with wrapped titles, bottom-align both, scale theme triangle.
 * --page-info-height / --page-title-height are set by PageBanner.
 */
@media only screen and (min-width: 768px) {
	#page-info {
		height: var(--page-info-height, 196px);
	}

	#page-info .img-area,
	#page-info .textblock {
		height: var(--page-info-height, 196px);
	}

	/* Same row as before; pin both to the bottom edge */
	#page-info .textblock .block {
		display: flex;
		align-items: flex-end;
	}

	#page-info .breadcrumb {
		float: none;
		margin: 0 12px 10px 0;
		flex: 0 1 auto;
		max-width: 280px;
	}

	#page-info .page-title {
		clear: none;
		flex: 1 1 auto;
		min-width: 0;
	}

	#page-info h1 {
		box-sizing: border-box;
		height: auto;
		min-height: 79px;
		line-height: 1.25;
		padding-top: 16px;
		padding-bottom: 16px;
		overflow: visible;
		white-space: normal;
		word-wrap: break-word;
		display: flex;
		align-items: center;
	}

	/* Theme triangle (border wedge), height matches live title bar */
	#page-info .page-title .holder:after {
		left: 0;
		top: 0;
		content: " ";
		position: absolute;
		width: 0;
		height: 0;
		background: none;
		border-style: solid;
		border-color: transparent;
		border-right-color: rgba(0, 0, 0, 0.3);
		border-width: var(--page-title-height, 79px) 55px 0 0;
	}
}
