
/* =========================================================
   QTECH SUCCESS STORIES
   Scoped to the archive template only
   ========================================================= */

body.post-type-archive-qtech_success_story .qtech-stories {
    --qtech-green: #8BC53F;
    --qtech-dark: #222A33;
    --qtech-text: #505963;
    --qtech-border: #E5E8EB;
    background: #FFFFFF;
    color: var(--qtech-dark);
    font-family: inherit;
}

body.post-type-archive-qtech_success_story .qtech-stories *,
body.post-type-archive-qtech_success_story .qtech-stories *::before,
body.post-type-archive-qtech_success_story .qtech-stories *::after {
    box-sizing: border-box;
}

body.post-type-archive-qtech_success_story .qtech-stories__container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

/* Hero */

body.post-type-archive-qtech_success_story .qtech-stories__hero {
    padding: 88px 0 82px;
    background: #F5F6F7;
    border-bottom: 1px solid var(--qtech-border);
}

body.post-type-archive-qtech_success_story .qtech-stories__eyebrow {
    margin: 0 0 18px;
    color: #568625;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
}

body.post-type-archive-qtech_success_story .qtech-stories__hero-title {
    max-width: 850px;
    margin: 0;
    color: var(--qtech-dark);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

body.post-type-archive-qtech_success_story .qtech-stories__hero-description {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--qtech-text);
    font-size: 18px;
    line-height: 1.8;
}

body.post-type-archive-qtech_success_story .qtech-stories__accent {
    width: 64px;
    height: 4px;
    margin-top: 28px;
    background: var(--qtech-green);
}

/* Listing */

body.post-type-archive-qtech_success_story .qtech-stories__listing {
    padding: 72px 0 90px;
}

body.post-type-archive-qtech_success_story .qtech-stories__section-header {
    margin-bottom: 32px;
}

body.post-type-archive-qtech_success_story .qtech-stories__section-header h2 {
    margin: 0 0 10px;
    color: var(--qtech-dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

body.post-type-archive-qtech_success_story .qtech-stories__section-header p {
    margin: 0;
    color: var(--qtech-text);
    font-size: 16px;
    line-height: 1.7;
}

/* Story cards */

body.post-type-archive-qtech_success_story .qtech-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

body.post-type-archive-qtech_success_story .qtech-story-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--qtech-border);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(25, 35, 45, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
}

body.post-type-archive-qtech_success_story .qtech-story-card:hover {
    border-color: #D3DCC9;
    box-shadow: 0 12px 30px rgba(25, 35, 45, 0.09);
    transform: translateY(-3px);
}

body.post-type-archive-qtech_success_story .qtech-story-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none !important;
}

body.post-type-archive-qtech_success_story .qtech-story-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #ECEFF1;
}

body.post-type-archive-qtech_success_story .qtech-story-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

body.post-type-archive-qtech_success_story .qtech-story-card:hover .qtech-story-card__img {
    transform: scale(1.035);
}

body.post-type-archive-qtech_success_story .qtech-story-card__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: #ECEFF1;
    color: #8BC53F;
    font-size: 64px;
    font-weight: 700;
}

body.post-type-archive-qtech_success_story .qtech-story-card__read {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    background: #FFFFFF;
    color: var(--qtech-dark);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

body.post-type-archive-qtech_success_story .qtech-story-card__read span {
    margin-left: 5px;
    color: #568625;
}

body.post-type-archive-qtech_success_story .qtech-story-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 24px 26px;
}

body.post-type-archive-qtech_success_story .qtech-story-card__category {
    margin: 0 0 12px;
    color: #568625;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

body.post-type-archive-qtech_success_story .qtech-story-card__title {
    margin: 0 0 12px;
    color: var(--qtech-dark);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

body.post-type-archive-qtech_success_story .qtech-story-card__summary {
    color: var(--qtech-text);
    font-size: 14px;
    line-height: 1.8;
}

body.post-type-archive-qtech_success_story .qtech-story-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 22px;
    color: #568625;
    font-size: 13px;
    font-weight: 700;
}

body.post-type-archive-qtech_success_story .qtech-story-card__link:focus-visible {
    outline: 3px solid var(--qtech-green);
    outline-offset: -3px;
}

/* Pagination and empty state */

body.post-type-archive-qtech_success_story .qtech-stories .pagination {
    margin-top: 42px;
}

body.post-type-archive-qtech_success_story .qtech-stories__empty {
    padding: 48px 24px;
    background: #F5F6F7;
    border: 1px solid var(--qtech-border);
    text-align: center;
}

body.post-type-archive-qtech_success_story .qtech-stories__empty h2 {
    margin: 0 0 12px;
    color: var(--qtech-dark);
}

body.post-type-archive-qtech_success_story .qtech-stories__empty p {
    margin: 0;
    color: var(--qtech-text);
    line-height: 1.7;
}

/* Responsive */

@media (max-width: 900px) {
    body.post-type-archive-qtech_success_story .qtech-stories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    body.post-type-archive-qtech_success_story .qtech-stories__hero {
        padding: 68px 0 62px;
    }
}

@media (max-width: 600px) {
    body.post-type-archive-qtech_success_story .qtech-stories__container {
        width: calc(100% - 36px);
    }

    body.post-type-archive-qtech_success_story .qtech-stories__hero {
        padding: 52px 0 48px;
    }

    body.post-type-archive-qtech_success_story .qtech-stories__hero-title {
        font-size: 36px;
        letter-spacing: -0.7px;
    }

    body.post-type-archive-qtech_success_story .qtech-stories__hero-description {
        font-size: 16px;
        line-height: 1.7;
    }

    body.post-type-archive-qtech_success_story .qtech-stories__listing {
        padding: 48px 0 60px;
    }

    body.post-type-archive-qtech_success_story .qtech-stories__section-header h2 {
        font-size: 26px;
    }

    body.post-type-archive-qtech_success_story .qtech-stories__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    body.post-type-archive-qtech_success_story .qtech-story-card__content {
        padding: 22px 20px 24px;
    }

    body.post-type-archive-qtech_success_story .qtech-story-card__title {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.post-type-archive-qtech_success_story .qtech-story-card,
    body.post-type-archive-qtech_success_story .qtech-story-card__img {
        transition: none;
    }
}



/* =========================================================
   SUCCESS STORIES — ARCHIVE HERO IMAGE PLACEHOLDER
   ========================================================= */

.qtech-stories__hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 48px;
}

.qtech-stories__hero-content {
	min-width: 0;
}

.qtech-stories__hero-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 240px;
	box-sizing: border-box;
	background: #e8eaec;
	border: 1px solid #d9dee3;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 5px 18px rgba(20, 30, 40, 0.06);
}

.qtech-stories__image-placeholder-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #727980;
	text-align: center;
}

/* Archive hero responsive layout */
@media (max-width: 768px) {
	.qtech-stories__hero-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.qtech-stories__hero-image {
		aspect-ratio: 16 / 9;
		min-height: 180px;
	}
}


/* =========================================================
   QTECH INDIVIDUAL SUCCESS STORY — BASE
   ========================================================= */

.qtech-story-single {
	background: #fff;
	color: #252c35;
}

.qtech-story-single__container {
	width: calc(100% - 64px);
	max-width: 1440px;
	margin: 0 auto;
}

.qtech-story-single__hero {
	padding: 72px 0 64px;
	background: #f4f5f6;
	border-bottom: 1px solid #e1e4e7;
}

.qtech-story-single__eyebrow,
.qtech-story-single__label {
	margin: 0 0 16px;
	color: #39852b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.5;
	text-transform: uppercase;
}

.qtech-story-single__title {
	max-width: 1100px;
	margin: 0 0 22px;
	color: #252c35;
	font-size: clamp(36px, 4.5vw, 64px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -1.5px;
}

.qtech-story-single__intro {
	max-width: 900px;
	margin: 0 0 26px;
	color: #66717d;
	font-size: 19px;
	line-height: 1.75;
}

.qtech-story-single__intro p {
	margin: 0;
}

.qtech-story-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 28px 0 36px;
	color: #58616a;
	font-size: 14px;
}

.qtech-story-single__meta span {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.qtech-story-single__meta strong {
	color: #252c35;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
}


/* =========================================================
   INDIVIDUAL STORY — PREMIUM HERO IMAGE
   ========================================================= */

.qtech-story-single__featured {
	width: 100%;
	max-width: 900px;
	margin: 28px auto 0;
	overflow: hidden;
	border-radius: 8px;
}

.qtech-story-single__featured-image,
.qtech-story-single__featured > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-sizing: border-box;
	padding: 5px;
	background: #fff;
	border: 1px solid #d9dee3;
	border-radius: 8px;
	box-shadow: 0 5px 18px rgba(20, 30, 40, 0.07);
}

/* Hero image placeholder when no featured image is assigned */
.qtech-story-single__featured .qtech-story-single__image-placeholder {
	display: flex;
	width: 100%;
	min-height: 0;
	aspect-ratio: 4 / 3;
	height: auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 5px;
	background: #e8eaec;
	border: 1px solid #d9dee3;
	border-radius: 8px;
	box-shadow: 0 5px 18px rgba(20, 30, 40, 0.07);
}

.qtech-story-single__image-placeholder span {
	color: #727980;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-align: center;
}


/* =========================================================
   INDIVIDUAL STORY — BODY AND SECTIONS
   ========================================================= */

.qtech-story-single__body {
	padding: 76px 0 90px;
}

.qtech-story-single__section {
	max-width: 1000px;
	margin: 0 auto 64px;
}

.qtech-story-single__section h2,
.qtech-story-single__cta h2 {
	margin: 0 0 20px;
	color: #252c35;
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.25;
}

.qtech-story-single__text,
.qtech-story-single__editor-content {
	color: #626c76;
	font-size: 17px;
	line-height: 1.85;
}

.qtech-story-single__text p:last-child,
.qtech-story-single__editor-content > *:last-child {
	margin-bottom: 0;
}

.qtech-story-single__product {
	margin-top: 24px;
	padding: 18px 20px;
	background: #f4f5f6;
	border-left: 3px solid #8bc53f;
	color: #424b54;
	line-height: 1.7;
}

.qtech-story-single__section--results {
	padding: 36px;
	background: #f5f6f6;
	border-left: 4px solid #8bc53f;
}


/* =========================================================
   INDIVIDUAL STORY — SECONDARY PROJECT IMAGE
   ========================================================= */

.qtech-story-single__secondary-image {
	margin-top: 28px;
}

.qtech-story-single__secondary-image-file {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	box-sizing: border-box;
	padding: 5px;
	background: #fff;
	border: 1px solid #d9dee3;
	border-radius: 8px;
	box-shadow: 0 5px 18px rgba(20, 30, 40, 0.07);
}

.qtech-story-single__secondary-image .qtech-story-single__image-placeholder {
	display: flex;
	width: 100%;
	min-height: 0;
	height: 280px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: #e8eaec;
	border: 1px solid #d9dee3;
	border-radius: 8px;
	box-shadow: 0 5px 18px rgba(20, 30, 40, 0.07);
}


/* =========================================================
   INDIVIDUAL STORY — CUSTOMER TESTIMONIAL
   ========================================================= */

.qtech-story-single__testimonial {
	position: relative;
	max-width: 1000px;
	margin: 0 auto 72px;
	padding: 44px;
	background: #222923;
	border-radius: 5px;
	color: #fff;
}

.qtech-story-single__quote-mark {
	color: #8bc53f;
	font-family: Georgia, serif;
	font-size: 64px;
	line-height: 0.8;
}

.qtech-story-single__testimonial blockquote {
	margin: 20px 0 26px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: clamp(20px, 2.5vw, 28px);
	font-style: normal;
	line-height: 1.65;
}

.qtech-story-single__person {
	margin: 0 0 5px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.qtech-story-single__role {
	margin: 0;
	color: #c6cbc7;
	font-size: 13px;
}


/* =========================================================
   INDIVIDUAL STORY — ENQUIRY CTA
   ========================================================= */

.qtech-story-single__cta {
	margin: 70px 0 40px;
	padding: 48px 32px;
	background: #f4f5f6;
	border: 1px solid #e1e4e7;
	border-radius: 5px;
	text-align: center;
}

.qtech-story-single__cta p:not(.qtech-story-single__label) {
	max-width: 700px;
	margin: 0 auto 24px;
	color: #626c76;
	font-size: 16px;
	line-height: 1.8;
}

.qtech-story-single__cta-button {
	display: inline-block;
	padding: 14px 25px;
	background: #8bc53f;
	border: 1px solid #8bc53f;
	border-radius: 4px;
	color: #202020 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background 0.2s ease;
}

.qtech-story-single__cta-button:hover {
	background: #79af30;
	border-color: #79af30;
}

.qtech-story-single__back {
	margin-top: 36px;
	text-align: center;
}

.qtech-story-single__back a {
	color: #424b54;
	font-size: 14px;
	text-decoration: none;
}

.qtech-story-single__back a:hover {
	color: #39852b;
}


/* =========================================================
   RESPONSIVE — INDIVIDUAL SUCCESS STORIES
   ========================================================= */

@media (max-width: 768px) {
	.qtech-story-single__container {
		width: calc(100% - 36px);
	}

	.qtech-story-single__hero {
		padding: 48px 0 40px;
	}

	.qtech-story-single__title {
		letter-spacing: -0.5px;
	}

	.qtech-story-single__intro {
		font-size: 16px;
	}

	.qtech-story-single__meta {
		gap: 18px;
		margin: 24px 0;
	}

	/* Square hero image on mobile */
	.qtech-story-single__featured-image,
	.qtech-story-single__featured > img,
	.qtech-story-single__featured .qtech-story-single__image-placeholder {
		aspect-ratio: 1 / 1;
	}

	.qtech-story-single__body {
		padding: 48px 0 60px;
	}

	.qtech-story-single__section {
		margin-bottom: 44px;
	}

	.qtech-story-single__section--results {
		padding: 24px;
	}

	.qtech-story-single__testimonial {
		margin-bottom: 48px;
		padding: 28px 24px;
	}

	.qtech-story-single__cta {
		margin-top: 48px;
		padding: 36px 22px;
	}

	.qtech-story-single__secondary-image-file,
	.qtech-story-single__secondary-image .qtech-story-single__image-placeholder {
		height: 190px;
	}
}


.qtech-stories__hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

