/**
 * Homepage styles (Oxygen page ID 9 — Forsíða parity).
 *
 * Uses theme tokens from base.css. Does not depend on Oxygen class names.
 * Geometry targets measured against LIVE Oxygen at 1200×900 (cw ≈ 1185).
 */

/* —— Page shell (homepage-only; home.css is front-page-only) —— */

body.home .site-main.home-page {
	padding-bottom: 0;
}

body.home .site-footer {
	margin-top: 0;
}

/*
 * Oxygen .ct-section-inner-wrap: max-width 1120px + 20px horizontal padding.
 * .l-container already provides the 1120px shell; inset content to 1080px.
 */
.home-cards__inner,
.home-news__inner,
.home-cinema__inner,
.home-rss__inner {
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* —— Hero —— */

.home-hero {
	position: relative;
	width: 100%;
	height: 528px;
	overflow: hidden;
	background-color: var(--lions-color-brand-dark);
	background-position: 50% 36%;
	background-size: cover;
}

.home-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 36%;
}

/* —— Feature cards —— */

.home-cards {
	position: relative;
	z-index: 11;
}

.home-cards__inner {
	padding-top: 0;
	padding-bottom: 0;
}

.home-cards__grid {
	list-style: none;
	margin: -60px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(200px, 1fr));
	column-gap: 50px;
	row-gap: 20px;
	align-items: stretch;
}

.home-cards__item {
	margin: 0;
	min-width: 0;
}

.home-card {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	flex-direction: column;
	height: 170px;
	padding: 0;
	text-align: center;
	text-decoration: none;
	color: var(--lions-color-on-brand);
	background-color: var(--lions-color-brand);
	background-size: cover;
	background-position: 50% 50%;
	border: 4px solid #ffffff;
	transition: transform 0.2s ease;
}

.home-card:hover,
.home-card:focus-visible {
	transform: scale(1.02);
	color: var(--lions-color-on-brand);
}

.home-card:focus-visible {
	outline: 2px solid var(--lions-color-accent);
	outline-offset: 3px;
}

.home-card__title {
	display: inline-block;
	/* LIVE .gid_box_title: Open Sans 22px / 700 (not Verdana headings). */
	font-family: var(--lions-font-body);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.6;
	padding: 0 8px;
	background-color: rgba(255, 207, 1, 0.73);
	color: #ffffff;
	text-shadow: 2px 2px 2px #000000;
}

/* —— Local news —— */

.home-news {
	/*
	 * Oxygen #section-41-9: 35px section padding + 20px from
	 * .ct-new-columns > .ct-div-block (horizontal zeroed on #div_block-43-9).
	 */
	padding: 55px 0;
	background-color: var(--lions-color-surface);
}

.home-news__header {
	padding: 0 24px 8px;
	text-align: left;
}

.home-news__archive-link {
	text-decoration: none;
	color: inherit;
}

.home-news__archive-link:hover .home-news__title,
.home-news__archive-link:focus-visible .home-news__title {
	color: var(--lions-color-brand);
}

.home-news__title {
	margin: 0;
	/* Oxygen #headline-46-9 is an h5 → 18px / 700 */
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--lions-color-text);
}

.home-news__grid {
	list-style: none;
	margin: 0;
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background-color: var(--lions-color-surface);
}

.home-news__item {
	margin: 0;
	min-width: 0;
}

.home-news__card {
	display: block;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.home-news__card:hover .home-news__card-title,
.home-news__card:focus-visible .home-news__card-title {
	color: var(--lions-color-brand);
}

.home-news__card:focus-visible {
	outline: 2px solid var(--lions-color-brand);
	outline-offset: 2px;
}

.home-news__media {
	height: 140px;
	width: 100%;
	padding: 8px;
	background-color: var(--lions-color-surface-muted);
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
}

.home-news__media--empty {
	background-image: none;
}

.home-news__card-title {
	margin: 0;
	padding: 8px 0 4px;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	line-height: 1.35;
	color: var(--lions-color-text);
}

.home-news__empty {
	padding: 0 24px;
	color: var(--lions-color-text-muted);
}

/* —— Cinema posters —— */

.home-cinema {
	background-color: rgba(255, 207, 1, 0.11);
	/* Oxygen default .ct-section-inner-wrap vertical padding on #section-1808-9 */
	padding: var(--lions-page-section-pad-y) 0;
	text-align: center;
}

.home-cinema__title {
	margin: 0 0 32px;
	width: 100%;
	text-align: center;
	/* Oxygen h2 → 30px / 700 */
	font-size: 30px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--lions-color-text);
	border-bottom: 2px dotted var(--lions-color-accent);
	padding-bottom: 8px;
}

.home-cinema__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(200px, 1fr));
	gap: 20px;
	justify-items: stretch;
	align-items: stretch;
}

.home-cinema__item {
	margin: 0;
	min-width: 0;
}

.home-cinema__poster-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	overflow: hidden;
}

.home-cinema__poster-link {
	display: block;
	width: 100%;
	line-height: 0;
}

.home-cinema__poster {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	background-color: var(--lions-color-surface-muted);
}

.home-cinema__poster--missing {
	min-height: 280px;
}

.home-cinema__ribbon {
	position: absolute;
	inset: 0 auto auto 0;
	z-index: 2;
	background: #02529c;
	font-size: 14px;
	color: #ffffff;
	text-transform: uppercase;
	padding: 4px 28px;
	transform-origin: 110% 0;
	transform: translate(-26.3%) rotate(-45deg);
	box-shadow: 0 0 0 999px #02529c;
	clip-path: inset(0 -100%);
	pointer-events: none;
}

.home-cinema__date {
	position: absolute;
	z-index: 10;
	top: 8px;
	right: 0;
	margin-top: 0;
}

.home-cinema__date-badge {
	background-color: #1e73be;
	border-radius: 5px;
	color: #ffffff;
	display: inline-block;
	font-weight: 400;
	font-size: 0.9em;
	line-height: 1;
	margin: 0 8px;
	padding: 5px;
	text-align: center;
	vertical-align: middle;
	width: 50px;
	text-shadow: 2px 2px 2px #000000;
}

.home-cinema__date-day {
	display: block;
	font-size: 2em;
	font-weight: bold;
	line-height: 1;
}

.home-cinema__more {
	margin: 24px 0 0;
}

.home-cinema__more-link {
	font-size: 28px;
	color: var(--lions-color-link);
	text-decoration: underline;
}

.home-cinema__more-link:hover,
.home-cinema__more-link:focus-visible {
	color: var(--lions-color-link-hover);
}

.home-cinema__empty {
	color: var(--lions-color-text-muted);
}

/* —— National RSS —— */

.home-rss {
	/* Oxygen default .ct-section-inner-wrap vertical padding on #section-3-9 */
	padding: var(--lions-page-section-pad-y) 0;
	background-color: var(--lions-color-surface);
}

.home-rss__panel {
	background-color: #ffffff;
	padding: 24px;
}

.home-rss__title {
	margin: 0 0 17px;
	/* Oxygen #headline-104-9 is an h5 → 18px / 700 */
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--lions-color-text);
}

.home-rss__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-rss__item {
	margin: 0 0 20px;
	padding: 8px 12px;
	clear: both;
	overflow: hidden;
	border-bottom: 0.1px solid #ebdbdb;
	white-space: nowrap;
}

.home-rss__item:nth-child(even) {
	background: #f7f7f6;
}

.home-rss__item:last-child {
	margin-bottom: 0;
}

.home-rss__link {
	color: var(--lions-color-link);
	text-decoration: none;
}

.home-rss__link:hover,
.home-rss__link:focus-visible {
	color: var(--lions-color-link-hover);
	text-decoration: underline;
}

.home-rss__thumb {
	float: left;
	margin-right: 10px;
	width: 100px;
	height: auto;
}

.home-rss__item-title {
	font-weight: var(--lions-font-weight-semibold);
	white-space: normal;
}

.home-rss__date {
	color: var(--lions-color-text-muted);
}

.home-rss__empty {
	margin: 0;
	color: var(--lions-color-text-muted);
	white-space: normal;
}

/* —— Responsive —— */

@media (max-width: 991px) {
	.home-cards__grid {
		grid-template-columns: repeat(2, minmax(200px, 1fr));
		column-gap: 10px;
	}

	.home-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.home-cards__grid {
		margin-top: 32px;
		grid-template-columns: repeat(2, minmax(200px, 1fr));
		column-gap: 20px;
	}

	.home-news__grid {
		grid-template-columns: 1fr;
	}

	.home-cinema__grid {
		grid-template-columns: 1fr;
	}

	/* Oxygen @media (max-width:767px){#section-3-9 > .ct-section-inner-wrap{padding-top:0}} */
	.home-rss {
		padding-top: 0;
	}

	.home-rss__item {
		white-space: normal;
	}
}

@media (max-width: 479px) {
	.home-cards__grid {
		grid-template-columns: 1fr;
	}

	.home-cinema__more-link {
		font-size: 22px;
	}
}
