/**
 * whats_on_module.css
 *
 * Styles for template-parts/modules/whats_on_module.php
 * Three display modes: featured-grid, slider, full-listings.
 * All class names are prefixed .wom__ to scope the module.
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.wom {
	background-color: var(--white);
	padding: var(--section-pad);
}
.wom.layoutstyle-full-listings {
	padding: 30px 40px 80px;
}
.wom__inner {
	/*max-width: 1400px;*/
	margin: 0 auto;
}

/* ---------------------------------------------------------------
   Header row
--------------------------------------------------------------- */
.wom__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.wom__header-left {
	flex: 1;
	min-width: 0;
}

.wom__header-right {
	flex-shrink: 0;
	align-self: flex-end;
	padding-bottom: 4px;
}

/* Sub header: text + extending rule */
.wom__sub-header {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--black);
	margin: 0 0 10px;
}

.wom__sub-header::after {
	content: '';
	display: block;
	flex: 1;
	height: 1px;
	background-color: var(--black);
}

.wom__heading {
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--black);
	margin: 0;
}

/* Header CTA link (featured-grid / full-listings) */
.wom__header-cta {
	display: inline-block;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0em;
	
	color: var(--blue);
	text-decoration: none;
	white-space: nowrap;
	/*padding-bottom: 6px;*/
	/*border-bottom: 1px solid var(--black);*/
	transition: color 0.2s ease, border-color 0.2s ease;
	margin-top: 20px;
}

.wom__header-cta:hover {
	color: var(--main-color);
	border-color: var(--main-color);
}

/* ---------------------------------------------------------------
   Slider nav circles (slider mode — rendered in header-right)
--------------------------------------------------------------- */
.wom__slider-nav {
	display: flex;
	gap: 8px;
	position: relative;
  top: 20px;
}

.wom__slider-prev,
.wom__slider-next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid var(--btn-grey);
	background-color: transparent;
	color: var(--btn-grey);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wom__slider-prev:hover,
.wom__slider-next:hover {
	border-color: var(--black);
}

.wom__slider-prev.is-active,
.wom__slider-next.is-active {
	background-color: var(--yellow);
	border-color: var(--yellow);
	color: var(--black);
	cursor: pointer;
}
.wom__slider-prev.is-active:hover,
.wom__slider-next.is-active:hover {
	background-color: var(--yellow-hover);
	border-color: var(--yellow-hover);
}
.wom__slider-prev:focus-visible,
.wom__slider-next:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
}

.wom__slider-prev svg,
.wom__slider-next svg {
	display: block;
	flex-shrink: 0;
}
/* ---------------------------------------------------------------
   Featured post
--------------------------------------------------------------- */
.wom__featured {
	display: grid;
  grid-template-columns: 52fr 45fr;
	gap: 48px;
	margin-bottom: 40px;
	padding-bottom: 40px;
	/*border-bottom: 1px solid #e0e0e0;*/
	text-decoration: none;
	color: inherit;
}

.wom__featured-image-wrap {
	display: block;
	overflow: hidden;
}

.wom__featured-img-wrap {
	/* aspect-ratio: 1; */ height: 100%;
	overflow: hidden;
	position: relative;
}

.wom__featured-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	display: inline-block;
	background-color: var(--yellow);
	color: var(--black);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
	white-space: nowrap;
}

.wom__featured:hover .wom__featured-img {
	transform: scale(1.04);
}
.wom__featured-img,
.wom__featured-img-placeholder {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.wom__featured-img-placeholder {
	background-color: #e8e8e8;
}

.wom__featured-content {
	display: flex;
	flex-direction: column;
	padding-top: 4px;
	border-top: 1px solid var(--black);
	border-bottom: 1px solid var(--black);
	padding:30px 0px
}

.wom__featured-title {
	font-size: clamp(32px, 2.8vw, 40px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--black);
	margin: 16px 0;
}

.wom__featured-title a {
	color: inherit;
	text-decoration: none;
}

.single-tenant .wom__featured-content h2, .single-tenant .wom__featured-content p { padding: 0 0 25px 0; }

.wom__featured-title a:hover {
	
}

.wom__featured-excerpt {
	font-size: 16px;
	line-height: 22px;
	color: var(--grey);
	margin: 0 0 20px;
	margin-top: auto;
}

/* ---------------------------------------------------------------
   Meta row: tag + date + read-time
--------------------------------------------------------------- */
.wom__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wom__tag {
	display: inline-block;
	background-color: var(--yellow);
	color: var(--black);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
	white-space: nowrap;
}

.wom__meta-info,
.wom__date {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0em;
	text-transform: uppercase;
	color: #777777;
}

/* ---------------------------------------------------------------
   Read more link (used on both featured and cards)
--------------------------------------------------------------- */
.wom__read-more {
	color: var(--black);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0em;
	text-decoration: none;
}

.wom__read-more:hover {
	
}

/* ---------------------------------------------------------------
   Filter tabs
--------------------------------------------------------------- */
.wom__filter {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.wom__filter-btn {
	padding: 7px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0em;
	color: var(--black);
	background-color: rgba(179, 179, 179, 0.3);
	border: 1px solid rgba(179, 179, 179, 0);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wom__filter-btn:hover {
	border-color: var(--black);
}

.wom__filter-btn.is-active {
	background-color: var(--yellow);
	border-color: var(--yellow);
}

/* ---------------------------------------------------------------
   Post grid (featured_grid / full_listings)
--------------------------------------------------------------- */
.wom__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 24px;
}

/* CSS initial state for full-listings: hide cards beyond first 12 before JS runs */
.wom[data-mode="full-listings"] .wom__grid .wom__card:nth-child(n+13) {
	display: none;
}

/* ---------------------------------------------------------------
   Slider (slider mode) — powered by Slick
--------------------------------------------------------------- */
.wom__slider-outer {
	margin-bottom: 24px;
}

/* Override global base.css Slick gap (27px) with 12px per side = 24px total */
.wom[data-mode="slider"] .slick-slide {
	margin: 0 12px;
}
.wom[data-mode="slider"] .slick-list {
	margin: 0 -12px;
}

/* Slick manages card width; fill the slide */
.wom[data-mode="slider"] .wom__card {
	width: 100%;
}

/* ---------------------------------------------------------------
   Card (shared by grid and slider)
--------------------------------------------------------------- */
.wom__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.wom__card-image-wrap {
	display: block;
	overflow: hidden;
}

.wom__card-img-wrap {
	aspect-ratio: 4/3;
	overflow: hidden;
	margin-bottom: 16px;
}

.wom__card-img,
.wom__card-img-placeholder {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.wom__card:hover .wom__card-img {
	transform: scale(1.04);
}

.wom__card-img-placeholder {
	background-color: #e8e8e8;
}

.wom__card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wom__card-title {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 32px;
	color: var(--black);
	margin: 10px 0 8px; text-transform: uppercase;
}


.wom__card-excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(0, 0, 0, 0.75);
	margin: 0 0 12px;
	/*flex: 1;*/
	/*display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;*/
}
.wom.related-stories {
  padding-top: 50px;
}
/* ---------------------------------------------------------------
   Pagination (full_listings)
--------------------------------------------------------------- */
.wom__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding-top: 40px;
	flex-wrap: wrap;
}

.wom__page-btn {
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--black);
	background-color: var(--white);
	border: 1px solid #cccccc;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wom__page-btn:hover {
	border-color: var(--black);
}

.wom__page-btn.is-active {
	background-color: var(--yellow);
	border-color: var(--yellow);
}

/* ---------------------------------------------------------------
   Bottom CTA (see all)
--------------------------------------------------------------- */
.wom__bottom {
	display: flex;
	justify-content: flex-end;
	padding-top: 28px;
}

.wom__see-all {
	font-size: 16px;
  font-weight: 700;
  letter-spacing: 0em;
  color: var(--blue);
}

.wom__see-all:hover {
	color: var(--black);
}


/* ---------------------------------------------------------------
   Slider Overrides
--------------------------------------------------------------- */
.layoutstyle-slider .wom__header {border-top:solid 1px var(--black);}
.layoutstyle-slider .introduction-module__heading {
  font-size: clamp(36px, 4.5vw, 38px);
}

.layoutstyle-slider {
	padding-top: 0px;
}

/* Below-slider nav: hidden on desktop, shown on tablet/mobile */
.wom__slider-nav--below {
	display: none;
}



.wom.layoutstyle-full-listings .introduction-module__heading {
  font-size: clamp(40px, 4.5vw, 74px);
}


/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */

@media (max-width: 1100px) {
	.wom {
		padding: 60px 20px;
	}

	.wom__featured {
		gap: 32px;
	}
}

/* featured-grid: hide filter and cap at 2 cards on tablet and below */
@media (max-width: 992px) {
	.wom.layoutstyle-featured-grid .wom__filter {
		display: none;
	}

	.wom.layoutstyle-featured-grid .wom__grid .wom__card:nth-child(n+3) {
		display: none;
	}
}

/* Slider mode: move nav below the slider on tablet/mobile */
@media (max-width: 992px) {
	.wom.layoutstyle-slider .wom__header-right {
		display: none;
	}

	.wom__slider-nav--below {
		display: flex;
		gap: 8px;
		margin-top: 20px;
	}

  .layoutstyle-slider .wom__header {
    padding-top: 20px;
    padding-bottom: 30px;
  }

	.related-stories .wom__header {
    padding-top: 20px;
    padding-bottom: 30px;
  }

	.wom.layoutstyle-full-listings {
		padding: 0px 20px 80px;
	}
	.wom.related-stories {
		padding-top: 35px;
	}
}

/* Tablet: 2-col grid, stack featured */
@media (max-width: 992px) {
	.wom__featured {
		grid-template-columns: 1fr;
		gap: 23px;
	}

  .wom__featured-img-wrap {
    /* aspect-ratio: 16/12; */
  }

	.wom__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wom__header {
		gap: 20px;
		margin-bottom: 0px;
	}

	.wom__featured-content {
		padding: 21px 0px;
	}

	.wom__featured-title {
		margin: 16px 0 14px;
	}

	.wom {
    padding: 20px 20px;
  }


}

/* Mobile */
@media (max-width: 600px) {
  .wom {
    padding: 40px 20px;
  }

	.wom__header {
		flex-wrap: wrap;
	}

	.wom__header-right {
		width: 100%;
		padding-bottom: 0;
	}

	.wom__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.wom__filter {
		gap: 4px;
	}

	.wom__filter-btn {
		font-size: 11px;
		padding: 6px 12px;
	}

}
