@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400&display=swap');

/* ==========================================================================
   Base / Backgrounds
   ========================================================================== */

.story-single,
.story-archive {
	background-color: #fffdf8;
}

/* Avada theme overrides */
body.single-story #main,
body.single-story #wrapper,
body.single-story .fusion-footer-widget-area,
body.post-type-archive-story #main,
body.post-type-archive-story #wrapper,
body.post-type-archive-story .fusion-footer-widget-area {
	background-color: #fffdf8;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.story-single,
.story-single__content,
.story-archive {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
}

.story-single__title,
.story-archive__title,
.story-card__title,
.story-card__title a,
.contact-card__heading,
.contact-card__name,
.story-about__heading,
.story-single__footer-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 300;
}

/* ==========================================================================
   Single Story — Hero
   ========================================================================== */

.story-single__hero {
	max-width: 800px;
	margin: 0 auto;
	padding: 15vh 1rem 0;
}

.story-single__hero-img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Single Story — Container
   ========================================================================== */

.story-single__container {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* ==========================================================================
   Single Story — Header
   ========================================================================== */

.story-single__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.story-single__topline-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.story-single__category {
	display: inline-block;
	background-color: #2563eb;
	color: #fff;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.story-single__date {
	font-size: 0.875rem;
	color: #111;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.story-single__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin: 0 0 1.5rem;
	color: #111;
}

/* ==========================================================================
   Single Story — Content
   ========================================================================== */

.story-single__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #333;
}

.story-single__content p {
	margin-bottom: 1.25em;
}

.story-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.story-cta {
	margin-top: 2rem;
}

.story-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 29px;
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 17px;
	text-transform: capitalize;
	letter-spacing: 0;
	text-decoration: none;
	color: #392d2a;
	background: transparent;
	border: 1px solid #392d2a;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.story-cta__button:hover {
	background: #392d2a;
	color: #fff;
	border-color: #392d2a;
}

.story-cta__button span {
	font-weight: bold !important;
	transition: color 0.2s;
}

/* ==========================================================================
   About Company Section
   ========================================================================== */

.story-about {
	margin-top: 3rem;
	padding: 2rem 0 0;
	border-top: 1px solid #e5e7eb;
}

.story-about__logo {
	margin-bottom: 1rem;
}

.story-about__logo-img {
	max-height: 50px;
	width: auto;
}

.story-about__text {
	position: relative;
	max-height: 140px;
	overflow: hidden;
	transition: max-height 0.5s ease-in-out;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #444;
}

.story-about__text::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background: linear-gradient(transparent, #fffdf8);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.story-about__text.is-expanded {
	max-height: 2000px;
}

.story-about__text.is-expanded::after {
	opacity: 0;
}

.story-about__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.75rem;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: #333f92;
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.2s;
}

.story-about__toggle:hover {
	opacity: 0.85;
}

/* ==========================================================================
   Single Story — Footer
   ========================================================================== */

.story-single__footer {
	padding-top: 2rem;
	margin-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.story-single {
	padding-bottom: 10rem;
}

/* ==========================================================================
   Contact Cards
   ========================================================================== */

.contact-card__heading {
	font-size: 1.125rem;
	margin: 0 0 1.25rem;
	color: #111;
}

.story-single__contacts {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-card {
	display: flex;
	align-items: flex-end;
	gap: 1rem;
}

.contact-card__avatar {
	flex-shrink: 0;
}

.contact-card__avatar-img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.contact-card__info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.contact-card__name {
	font-size: 1rem;
	color: #111;
}

.contact-card__title,
.contact-card__company {
	font-size: 0.875rem;
	color: #555;
}

.contact-card__email,
.contact-card__phone {
	font-size: 0.875rem;
	color: #333f92;
	text-decoration: none;
}

.contact-card__email:hover,
.contact-card__phone:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Footer — Related Media & Source
   ========================================================================== */

.story-single__footer-heading {
	font-size: 1.125rem;
	margin: 0 0 1rem;
	color: #111;
}

.story-single__media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.75rem;
}

.story-single__media-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-decoration: none;
	color: #333;
}

.story-single__media-item img {
	width: 100%;
	height: auto;
	border-radius: 0.375rem;
}

.story-single__media-title {
	font-size: 0.75rem;
	color: #666;
}

.story-single__source {
	margin-top: 1.5rem;
	font-size: 0.875rem;
}

.story-single__source a {
	color: #2563eb;
	word-break: break-all;
}

/* ==========================================================================
   Card Grid (Shortcode + Archive)
   ========================================================================== */

.story-cards {
	display: grid;
	grid-template-columns: repeat(var(--story-columns, 3), 1fr);
	gap: 1.5rem;
}

.story-card {
	background: #fff;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.story-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.story-card__image-link {
	display: block;
}

.story-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.story-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.story-card__body {
	padding: 1.25rem;
}

.story-card__category {
	display: inline-block;
	background-color: #2563eb;
	color: #fff;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.story-card__title {
	font-size: 1.125rem;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}

.story-card__title a {
	color: #111;
	text-decoration: none;
}

.story-card__title a:hover {
	text-decoration: underline;
}

.story-card__date {
	display: block;
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.5rem;
}

.story-card__excerpt {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #555;
	margin: 0;
}

/* ==========================================================================
   Archive
   ========================================================================== */

.story-archive__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1rem;
}

.story-archive__title {
	font-size: 2.25rem;
	color: #111;
	margin: 0 0 2rem;
}

/* Pagination */
.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	color: #333;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

.nav-links .page-numbers:hover {
	background-color: #f3f4f6;
	border-color: #9ca3af;
}

.nav-links .page-numbers.current {
	background-color: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

/* ==========================================================================
   News Grid  [stories_news]
   ========================================================================== */

.sn {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	max-width: 1440px;
	padding: 24px;
	position: relative;
}

/* Vertical divider — centre */
.sn::before {
	content: "";
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 50%;
	width: 1px;
	background-color: rgba(199, 196, 192, 0.5);
	display: none;
}

/* Vertical divider — 75 % */
.sn::after {
	content: "";
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 75%;
	width: 1px;
	background-color: rgba(199, 196, 192, 0.5);
	display: none;
}

/* ---------- Featured (left) ---------- */

.sn__featured {
	display: none;
}

/* ---------- Right grid ---------- */

.sn__grid {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 48px 24px;
	min-height: 100%;
}

.sn__mobile-featured {
	width: 100%;
	display: block;
}

.sn__grid > .sn__item {
	width: 100%;
}

/* ---------- Item ---------- */

.sn__item {
	position: relative;
}

/* ---------- Image ---------- */

.sn__image {
	position: relative;
	width: 100%;
	margin-bottom: 15px;
	overflow: hidden;
}

.sn__image::before {
	content: "";
	display: block;
	padding-bottom: 100%;
}

.sn__item:hover .sn__image {
	background-color: #000;
}

.sn__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	transition: transform 0.3s, opacity 0.3s;
}

.sn__item:hover .sn__img {
	opacity: 0.9;
	transform: scale(1.05);
}

/* ---------- Body ---------- */

.sn__body {
	width: 100%;
}

.sn__meta {
	position: relative;
}

/* ---------- Title ---------- */

.sn__title {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-weight: 300 !important;
	font-style: normal !important;
	font-size: 20px !important;
	line-height: 28px !important;
	letter-spacing: 0.02em !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: #392d2a !important;
}

.sn__title a {
	text-decoration: none;
	color: inherit;
	display: inline-block;
	position: relative;
}

.sn__title a::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.sn__title--lg {
	font-size: 28px !important;
	line-height: 36px !important;
}

/* ---------- Date ---------- */

.sn__date {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	text-transform: uppercase;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 0.1em;
	margin-top: 16px;
	color: #392d2a;
	opacity: 0.56;
}

.sn__featured .sn__date {
	opacity: 1;
}

/* ---------- Tags ---------- */

.sn__tags {
	display: flex;
	justify-content: flex-start;
	margin-top: 15px;
	flex-wrap: wrap;
	gap: 5px;
}

.sn__tag {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	color: #392d2a;
	margin: 2px 5px 6px 0;
	text-decoration: none;
	position: relative;
	padding: 7px 7px 1px;
	font-weight: 400;
	font-size: 13px;
	display: inline-block;
}

.sn__tag::before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: -1px;
	border: 1px solid #392d2a;
	pointer-events: none;
	opacity: 0.3;
}

/* ---------- Footer / Read-all button ---------- */

.sn__footer {
	width: 100%;
	text-align: center;
	margin-top: 48px;
}

.sn__read-all {
	display: inline-block;
	padding: 12px 36px;
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 400;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #392d2a;
	background: transparent;
	border: 1px solid #392d2a;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.sn__read-all:hover {
	background: #392d2a;
	color: #fff;
}

/* ---------- Responsive: 576px+ ---------- */

@media (min-width: 576px) {
	.sn::before {
		display: block;
	}

	.sn__grid > .sn__item,
	.sn__mobile-featured {
		width: calc(50% - 12px);
	}
}

/* ---------- Responsive: 768px+ ---------- */

@media (min-width: 768px) {
	.sn::before {
		left: 40%;
	}

	.sn::after {
		display: block;
		left: 70%;
	}

	.sn__featured {
		display: block;
		width: calc(40% - 24px);
	}

	.sn__grid {
		width: calc(60% - 24px);
	}

	.sn__mobile-featured {
		display: none !important;
	}

	.sn__featured .sn__meta {
		padding-right: 5%;
	}

	.sn__title--lg {
		font-size: 32px !important;
		line-height: 40px !important;
	}
}

/* ---------- Responsive: 900px+ ---------- */

@media (min-width: 900px) {
	.sn::before {
		left: 50%;
	}

	.sn::after {
		left: 75%;
	}

	.sn__featured {
		width: calc(50% - 24px);
	}

	.sn__grid {
		width: calc(50% - 24px);
	}

	.sn__featured .sn__meta {
		padding-right: 15%;
	}
}

/* ==========================================================================
   Stories List  [stories_list]
   ========================================================================== */

.sl {
	max-width: 1440px;
	padding: 24px;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}

/* Prevent Avada/Fusion parent wrappers from clipping expanding content */
.fusion-fullwidth:has(.sl),
.fusion-builder-row:has(.sl),
.fusion-layout-column:has(.sl),
.fusion-column-wrapper:has(.sl),
.post-content:has(.sl) {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
}

.sl__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 24px;
}

.sl__item {
	width: 100%;
}

.sl__item--hidden {
	display: none;
}

.sl__item--reveal {
	animation: sl-reveal 0.4s ease both;
}

@keyframes sl-reveal {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Image — square, same style as news grid */

.sl__image {
	position: relative;
	width: 100%;
	margin-bottom: 15px;
	overflow: hidden;
}

.sl__image::before {
	content: "";
	display: block;
	padding-bottom: 100%;
}

.sl__inner:hover .sl__image {
	background-color: #000;
}

.sl__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	transition: transform 0.3s, opacity 0.3s;
}

.sl__inner:hover .sl__img {
	opacity: 0.9;
	transform: scale(1.05);
}

/* Body */

.sl__body {
	width: 100%;
}

.sl__meta {
	position: relative;
}

/* Title */

.sl__title {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-weight: 300 !important;
	font-style: normal !important;
	font-size: 18px !important;
	line-height: 26px !important;
	letter-spacing: 0.02em !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: #392d2a !important;
}

.sl__title a {
	text-decoration: none;
	color: inherit;
	display: inline-block;
	position: relative;
}

.sl__title a::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

/* Date */

.sl__date {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	text-transform: uppercase;
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.1em;
	margin-top: 12px;
	color: #392d2a;
	opacity: 0.56;
}

/* Tags */

.sl__tags {
	display: flex;
	justify-content: flex-start;
	margin-top: 12px;
	flex-wrap: wrap;
	gap: 5px;
}

.sl__tag {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	color: #392d2a;
	margin: 2px 5px 6px 0;
	text-decoration: none;
	position: relative;
	padding: 6px 6px 1px;
	font-weight: 400;
	font-size: 12px;
	display: inline-block;
}

.sl__tag::before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: -1px;
	border: 1px solid #392d2a;
	pointer-events: none;
	opacity: 0.3;
}

/* Load more */

.sl__footer {
	text-align: center;
	margin-top: 48px;
}

.sl__load-btn {
	display: inline-block;
	padding: 12px 36px;
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 400;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #392d2a;
	background: transparent;
	border: 1px solid #392d2a;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.sl__load-btn:hover {
	background: #392d2a;
	color: #fff;
}

/* Responsive: 576px+ */

@media (min-width: 576px) {
	.sl__item {
		width: calc(50% - 12px);
	}
}

/* Responsive: 768px+ — 3 columns */

@media (min-width: 768px) {
	.sl__item {
		width: calc(33.333% - 16px);
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.story-cards {
		grid-template-columns: 1fr;
	}

	.story-single__title {
		font-size: 1.75rem;
	}

	.story-single__footer {
		grid-template-columns: 1fr;
	}

	.story-single__hero {
		padding-top: 8vh;
	}

	.contact-card__avatar-img {
		width: 70px;
		height: 70px;
	}
}
