/* ============================================================
   QOJO MEDIA — HOMEPAGE HERO SECTION (v1)
   Three-column hero: latest stories | featured | right rail
   ============================================================ */

.qojo-home {
	background: #fff;
	overflow-x: clip;
}

.qojo-hero {
	padding: 56px 0 72px;
}

.qojo-hero__grid {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.52fr) minmax(0, 0.92fr);
}

.qojo-hero__grid > * {
	padding: 0 36px;
	min-width: 0;
}

.qojo-hero__grid > *:first-child {
	padding-left: 0;
}

.qojo-hero__grid > *:last-child {
	padding-right: 0;
}

.qojo-hero__featured,
.qojo-hero__rail {
	border-left: 1px solid var(--qojo-grey-100);
}

/* ---------- shared bits ---------- */

/* .qojo-meta lives in style.css (global). Kept here for reference. */

.qojo-meta--byline {
	font-size: 12.5px;
	color: var(--qojo-grey-700);
}

.qojo-hero a {
	color: inherit;
	text-decoration: none;
}

.qojo-hero a:hover {
	color: var(--qojo-primary);
}

.qojo-kicker--blue { color: var(--qojo-primary); }
.qojo-kicker--red { color: #e5484d; }
.qojo-kicker--green { color: #7de89b; }

/* ---------- left: latest stories ---------- */

.qojo-latest__label {
	font-family: var(--qojo-font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qojo-secondary);
	border-bottom: 2px solid var(--qojo-secondary);
	padding-bottom: 14px;
	margin: 0 0 4px;
}

.qojo-latest__item {
	padding: 20px 0;
	border-bottom: 1px solid var(--qojo-grey-100);
}

.qojo-latest__item h3 {
	font-size: 19px;
	line-height: 1.38;
	font-weight: 600;
	margin: 0;
}

.qojo-latest__more {
	display: inline-block;
	margin-top: 22px;
	font-family: var(--qojo-font-heading);
	font-size: 14px;
	font-weight: 600;
	color: var(--qojo-primary) !important;
}

/* ---------- center: featured ---------- */

.qojo-featured__image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 8.6;
	overflow: hidden;
	border-radius: var(--qojo-radius-sm);
	background: var(--qojo-grey-100);
}

.qojo-featured__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qojo-featured__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-family: var(--qojo-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
	background: var(--qojo-primary);
	padding: 8px 14px;
	border-radius: 3px;
}

.qojo-featured__title {
	font-size: clamp(30px, 2.1rem + 1.6vw, 52px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 26px 0 0;
	max-width: 16ch;
}

.qojo-featured__dek {
	font-size: 18px;
	line-height: 1.62;
	color: var(--qojo-grey-700);
	margin: 18px 0 0;
	max-width: 62ch;
}

/* secondary cards under featured */

.qojo-hero__secondary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	margin-top: 44px;
	padding-top: 36px;
	border-top: 1px solid var(--qojo-grey-100);
}

.qojo-card-story__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--qojo-radius-sm);
	background: var(--qojo-grey-100);
	margin-bottom: 16px;
}

.qojo-card-story__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qojo-card-story h3 {
	font-size: 21px;
	line-height: 1.34;
	font-weight: 600;
	margin: 10px 0 0;
}

/* ---------- right rail ---------- */

.qojo-rail-card--opinion {
	background: #f4f2ff;
	border: 1px solid #e7e3fb;
	border-radius: var(--qojo-radius-sm);
	overflow: hidden;
	margin-bottom: 28px;
}

.qojo-rail-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #ff9a3c, #ff5e3a);
}

.qojo-rail-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qojo-rail-card__body {
	padding: 22px 24px 24px;
}

.qojo-rail-card__body h3 {
	font-size: 22px;
	line-height: 1.34;
	font-weight: 600;
	margin: 10px 0 0;
}

.qojo-rail-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--qojo-grey-700);
	margin: 12px 0 0;
}

.qojo-member-card {
	background: var(--qojo-primary);
	border-radius: var(--qojo-radius-sm);
	padding: 28px 26px;
	margin-bottom: 28px;
	color: #fff;
}

.qojo-member-card h3 {
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
	margin: 12px 0 0;
}

.qojo-member-card p {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 12px 0 0;
}

.qojo-member-card .qojo-btn--white {
	background: #fff;
	color: var(--qojo-secondary);
	margin-top: 20px;
	width: 100%;
	font-size: 14px;
	letter-spacing: 0.04em;
}

.qojo-member-card .qojo-btn--white:hover {
	background: var(--qojo-off-white);
	color: var(--qojo-secondary);
}

.qojo-rail-story {
	padding: 4px 0 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--qojo-grey-100);
}

.qojo-rail-story h3 {
	font-size: 20px;
	line-height: 1.36;
	font-weight: 600;
	margin: 10px 0 0;
}

.qojo-brief__label {
	font-family: var(--qojo-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--qojo-secondary);
	margin: 0 0 10px;
}

.qojo-brief p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--qojo-grey-700);
	margin: 0;
}

.qojo-brief a {
	color: var(--qojo-primary);
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.qojo-hero__grid {
		grid-template-columns: 1fr;
		padding: 0 28px;
	}

	.qojo-hero__grid > * {
		padding: 0;
		border-left: none;
	}

	.qojo-hero__featured { order: 1; }
	.qojo-hero__latest { order: 2; }
	.qojo-hero__rail { order: 3; }

	.qojo-hero__latest,
	.qojo-hero__rail {
		margin-top: 56px;
		padding-top: 40px;
		border-top: 1px solid var(--qojo-grey-100);
	}

	.qojo-hero__rail {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 28px;
		align-items: start;
	}

	.qojo-rail-card--opinion,
	.qojo-member-card {
		margin-bottom: 0;
	}
}

@media (max-width: 700px) {
	.qojo-hero {
		padding: 36px 0 56px;
	}

	.qojo-hero__grid {
		padding: 0 20px;
	}

	.qojo-hero__secondary {
		grid-template-columns: 1fr;
	}

	.qojo-hero__rail {
		grid-template-columns: 1fr;
	}

	.qojo-featured__title {
		max-width: none;
	}
}

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */

.qojo-newsletter {
	background: var(--qojo-primary);
	padding: 96px 0;
	/* Full-bleed: break out of the theme's centered container to the viewport edges. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.qojo-newsletter__inner {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 72px;
	align-items: center;
}

.qojo-newsletter h2 {
	color: #fff;
	font-size: clamp(30px, 2rem + 1.6vw, 50px);
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 16px 0 0;
	max-width: 18ch;
}

.qojo-newsletter__copy {
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	line-height: 1.65;
	margin: 18px 0 0;
	max-width: 52ch;
}

.qojo-newsletter__form {
	display: flex;
	gap: 12px;
	margin-top: 30px;
	max-width: 640px;
}

.qojo-newsletter__form input[type="email"] {
	flex: 1;
	min-width: 0;
	border: none;
	padding: 17px 22px;
	font-family: var(--qojo-font-body);
	font-size: 16px;
	color: var(--qojo-ink);
	background: #fff;
}

.qojo-newsletter__form input[type="email"]:focus {
	outline: 3px solid rgba(255, 255, 255, 0.45);
}

.qojo-newsletter__form button {
	border: none;
	cursor: pointer;
	background: #e5484d;
	color: #fff;
	font-family: var(--qojo-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0 42px;
	white-space: nowrap;
}

.qojo-newsletter__form button:hover {
	background: #c93338;
}

.qojo-newsletter__note {
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	margin: 16px 0 0;
}

.qojo-newsletter__cardwrap {
	display: flex;
	justify-content: center;
}

.qojo-dispatch-card {
	background: #fff;
	max-width: 430px;
	width: 100%;
	padding: 30px 32px;
	box-shadow: 0 24px 60px rgba(8, 9, 43, 0.28);
}

.qojo-dispatch-card__top {
	display: flex;
	justify-content: space-between;
	font-family: var(--qojo-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qojo-primary);
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--qojo-grey-100);
}

.qojo-dispatch-card__top span:last-child {
	color: var(--qojo-grey-500);
}

.qojo-dispatch-card h3 {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--qojo-secondary);
}

.qojo-dispatch-card > p {
	font-size: 15.5px;
	line-height: 1.62;
	color: var(--qojo-grey-700);
	margin: 14px 0 0;
}

.qojo-dispatch-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--qojo-grey-100);
	font-size: 15px;
}

.qojo-dispatch-card__foot span {
	color: var(--qojo-grey-700);
	font-weight: 500;
}

.qojo-dispatch-card__foot a {
	color: var(--qojo-primary);
	font-weight: 700;
}

.qojo-dispatch-card__foot a:hover {
	color: var(--qojo-primary-dark);
}

@media (max-width: 960px) {
	.qojo-newsletter {
		padding: 72px 0;
	}

	.qojo-newsletter__inner {
		grid-template-columns: 1fr;
		gap: 48px;
		padding: 0 28px;
	}

	.qojo-newsletter h2 {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.qojo-newsletter__inner {
		padding: 0 20px;
	}

	.qojo-newsletter__form {
		flex-direction: column;
	}

	.qojo-newsletter__form button {
		padding: 17px 0;
	}
}

/* ============================================================
   THEME COMPATIBILITY
   GeneratePress renders .site-content as display:flex and the
   Elementor header template leaves our sections as its direct
   children, which squeezes them side by side. Force normal
   block flow on the homepage.
   ============================================================ */

body.qojo-home .site-content {
	display: block;
}

/* ============================================================
   SECTION ROWS (e.g. Artificial Intelligence, Small Business)
   ============================================================ */

.qojo-section-row {
	padding: 72px 0 8px;
}

.qojo-section-row + .qojo-section-row {
	padding-top: 64px;
}

.qojo-section-row__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding-bottom: 18px;
	margin-bottom: 36px;
	border-bottom: 1px solid var(--qojo-grey-300);
}

.qojo-section-row__head h2 {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--qojo-secondary);
}

.qojo-section-row__head a {
	font-family: var(--qojo-font-heading);
	font-size: 14px;
	font-weight: 600;
	color: var(--qojo-secondary);
	white-space: nowrap;
}

.qojo-section-row__head a:hover {
	color: var(--qojo-primary);
}

.qojo-section-row__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.qojo-sec-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--qojo-radius-sm);
	background: var(--qojo-grey-100);
	margin-bottom: 18px;
}

.qojo-sec-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qojo-sec-card h3 {
	font-size: 21px;
	line-height: 1.36;
	font-weight: 600;
	margin: 10px 0 0;
	color: var(--qojo-secondary);
}

.qojo-section-row a {
	color: inherit;
	text-decoration: none;
}

.qojo-section-row a:hover {
	color: var(--qojo-primary);
}

.qojo-sec-card__excerpt {
	font-size: 15px;
	line-height: 1.62;
	color: var(--qojo-grey-700);
	margin: 12px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.qojo-section-row__cards {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.qojo-section-row {
		padding: 56px 0 8px;
	}
}

/* Press Releases row: same cards, set apart by a soft lavender band. */
.qojo-section-row--highlight {
	background: #F1F0FA;
	/* White margin above the band, so the lavender no longer touches the
	   section above it: the previous row ends with only 8px bottom padding,
	   and the band's top padding sits inside the lavender, so without this
	   margin the band abuts the previous cards. */
	margin-top: 56px;
	padding-bottom: 32px;
}

/* ============================================================
   TRENDING NOW — dark band, numbered cards, carousel
   ============================================================ */

.qojo-trending {
	background: var(--qojo-secondary);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 84px 0;
	margin-top: 72px;
	color: #fff;
}

.qojo-trending__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 44px;
}

.qojo-trending__head h2 {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
}

.qojo-trending__arrows {
	display: flex;
	gap: 12px;
}

.qojo-trending__arrow {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.qojo-trending__arrow:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.qojo-trending__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 1fr);
	gap: 44px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.qojo-trending__track::-webkit-scrollbar {
	display: none;
}

.qojo-trend-card {
	scroll-snap-align: start;
	min-width: 0;
}

.qojo-trend-card__num {
	font-family: var(--qojo-font-heading);
	font-size: 62px;
	font-weight: 700;
	line-height: 1;
	color: #7de89b;
	margin: 0 0 18px;
}

.qojo-trend-card h3 {
	color: #fff;
	font-size: 20px;
	line-height: 1.38;
	font-weight: 600;
	margin: 10px 0 0;
}

.qojo-trend-card a {
	color: #fff;
	text-decoration: none;
}

.qojo-trend-card a:hover {
	color: #a5b0ff;
}

.qojo-trend-card .qojo-meta {
	color: var(--qojo-grey-300);
}

.qojo-kicker--lightblue {
	color: #8b96ff;
}

/* ============================================================
   REGIONAL UPDATES — filter tabs + card grid
   ============================================================ */

.qojo-regional {
	padding: 84px 0 96px;
}

.qojo-regional__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.qojo-regional__head h2 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--qojo-secondary);
}

.qojo-region-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: 100%;
}

.qojo-region-tabs::-webkit-scrollbar {
	display: none;
}

.qojo-region-tab {
	border: none;
	background: transparent;
	font-family: var(--qojo-font-heading);
	font-size: 14px;
	font-weight: 600;
	color: var(--qojo-grey-700);
	padding: 10px 20px;
	border-radius: var(--qojo-radius-pill);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.qojo-region-tab:hover {
	color: var(--qojo-secondary);
}

.qojo-region-tab.is-active {
	background: var(--qojo-secondary);
	color: #fff;
}

.qojo-region-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
}

.qojo-region-grid[hidden] {
	display: none;
}

.qojo-region-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--qojo-radius-sm);
	background: var(--qojo-grey-100);
	margin-bottom: 18px;
}

.qojo-region-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qojo-region-card h3 {
	font-size: 20px;
	line-height: 1.36;
	font-weight: 600;
	margin: 10px 0 0;
	color: var(--qojo-secondary);
}

.qojo-regional a {
	color: inherit;
	text-decoration: none;
}

.qojo-regional a:hover {
	color: var(--qojo-primary);
}

.qojo-region-card__excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--qojo-grey-700);
	margin: 12px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1024px) {
	.qojo-region-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.qojo-region-grid {
		grid-template-columns: 1fr;
	}

	.qojo-regional {
		padding: 64px 0 72px;
	}

	.qojo-trending {
		padding: 64px 0;
	}

	.qojo-trending__arrows {
		display: none;
	}
}
