/**
* Theme Name: Arolax Child
* Description: This is a child theme of Arolex
* Author: <a href="http://themeforest.net/user/crowdytheme">CrowdyTheme</a>
* Template: arolax
* Version: 3.0.2
*/

/* ── OVERFLOW FIX — horizontal scroll elimination ─────────── */
html,
html body {
    overflow-x: clip !important;
}

/* Owl Carousel parent — force clip */
.owl-carousel .owl-stage-outer {
    overflow: clip !important;
    width: 100% !important;
}

/* Slick parent — force clip */
.slick-slider .slick-list {
    overflow: clip !important;
    width: 100% !important;
}

/* WCF overlay — should never affect page width */
.wcf-menu-overlay {
    overflow: clip !important;
    max-width: 100vw !important;
}

/* Elementor containers */
.elementor-section-wrap,
[data-elementor-type="wp-page"],
[data-elementor-type="wp-post"] {
    overflow-x: clip !important;
}

.wptww-testimonial-client {
    color: #555555 !important;
    font-family: "Kanit", Sans-serif !important;
    font-weight: 500 !important;
	margin-bottom: 6px !important;
}

.wptww-testimonial-content h4 {
    font-family: "Kanit", Sans-serif !important;
    font-size: 20px !important;
    line-height: 22px !important;
    padding: 0 !important;
    margin: 8px 0 !important;
    font-weight: 400;
    color: #555555 !important;
}
.wptww-testimonials-text em {
    font-weight: 400;
    color: #555555d6 !important;
	    line-height: 28px  !important;
}
.wptww-testimonials-text {
    padding-top: 10px  !important;
}
.wptww-testimonial-cdec{
	    font-size: 15px;
    color: #3f3e3e !important;
}

a.learn-more h2 {
    margin: 15px 32px 0px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-family: "lato";
	float: left;
	margin-right: 8px;
}

a.learn-more i.fas.fa-arrow-right {
    margin-top: 20px;
}
button#wcf-search-form-75f5b86 {
    width: 20px !important;
    margin-top: 0px !important;
    border-radius: 0px !important;
}


/* ============================================================
   BLOG DETAIL PAGE — CUSTOM CONTENT STYLES
   ============================================================ */

.wcf--meta-list li::before,
.wcf--meta-list li:not([class])::before,
.default-details-social-media li::before,
.default-details-social-media li:not([class])::before {
    content: none !important;
}


/* ── CONTENT WRAPPER ───────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container,
.elementor-widget-theme-post-content .elementor-widget-container {
    color: #3f3a36;                     /* --gray-9  */
    font-family: "DM Sans", sans-serif; /* --font-primary */
    font-size: 18px;
    line-height: 1.78;
}


/* ── HEADINGS ──────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container h1,
.elementor-widget-wcf--theme-post-content .elementor-widget-container h2,
.elementor-widget-wcf--theme-post-content .elementor-widget-container h3,
.elementor-widget-wcf--theme-post-content .elementor-widget-container h4,
.elementor-widget-wcf--theme-post-content .elementor-widget-container h5,
.elementor-widget-wcf--theme-post-content .elementor-widget-container h6,
.elementor-widget-theme-post-content .elementor-widget-container h1,
.elementor-widget-theme-post-content .elementor-widget-container h2,
.elementor-widget-theme-post-content .elementor-widget-container h3,
.elementor-widget-theme-post-content .elementor-widget-container h4,
.elementor-widget-theme-post-content .elementor-widget-container h5,
.elementor-widget-theme-post-content .elementor-widget-container h6 {
    font-family: "DM Sans", sans-serif;
    color: #EE4B2B;           /* --Red  */
    font-weight: 600;
    line-height: 1.25;
    margin-top: 48px;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container h1,
.elementor-widget-theme-post-content .elementor-widget-container h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container h2,
.elementor-widget-theme-post-content .elementor-widget-container h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container h3,
.elementor-widget-theme-post-content .elementor-widget-container h3 {
    font-size: clamp(22px, 3vw, 28px);
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container h4,
.elementor-widget-theme-post-content .elementor-widget-container h4 {
    font-size: clamp(18px, 2.5vw, 22px);
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container h5,
.elementor-widget-theme-post-content .elementor-widget-container h5 {
    font-size: 18px;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container h6,
.elementor-widget-theme-post-content .elementor-widget-container h6 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #EE4B2B; /* --green-2 */
}

/* Remove extra top margin on the very first heading */
.elementor-widget-wcf--theme-post-content .elementor-widget-container > :first-child,
.elementor-widget-theme-post-content .elementor-widget-container > :first-child {
    margin-top: 0 !important;
}


/* ── PARAGRAPHS ────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container p,
.elementor-widget-theme-post-content .elementor-widget-container p {
    font-size: 18px;
    line-height: 1.78;
    color: #3f3a36;  /* --gray-9 */
    margin-top: 0;
    margin-bottom: 24px;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container p:last-child,
.elementor-widget-theme-post-content .elementor-widget-container p:last-child {
    margin-bottom: 0;
}

/* Empty paragraphs used as spacers → collapse them */
.elementor-widget-wcf--theme-post-content .elementor-widget-container p:empty,
.elementor-widget-theme-post-content .elementor-widget-container p:empty {
    display: none;
}

/* Paragraphs with only &nbsp; → collapse them */
.elementor-widget-wcf--theme-post-content .elementor-widget-container p br:only-child,
.elementor-widget-theme-post-content .elementor-widget-container p br:only-child {
    display: none;
}


/* ── BOLD / STRONG ─────────────────────────────────────────── */
/* Bold inside paragraphs only — not inside lists */
.elementor-widget-wcf--theme-post-content .elementor-widget-container p strong,
.elementor-widget-wcf--theme-post-content .elementor-widget-container p b,
.elementor-widget-theme-post-content .elementor-widget-container p strong,
.elementor-widget-theme-post-content .elementor-widget-container p b {
    font-weight: 600;
    color: #EE4B2B;
}

/* Bold inside lists — keep text color, only make it bold */
.elementor-widget-wcf--theme-post-content .elementor-widget-container li strong,
.elementor-widget-wcf--theme-post-content .elementor-widget-container li b,
.elementor-widget-theme-post-content .elementor-widget-container li strong,
.elementor-widget-theme-post-content .elementor-widget-container li b {
    font-weight: 700;
    color: inherit;
}

/* Bold used as a standalone paragraph heading (no other text sibling) */
.elementor-widget-wcf--theme-post-content .elementor-widget-container p > strong:only-child,
.elementor-widget-wcf--theme-post-content .elementor-widget-container p > b:only-child,
.elementor-widget-theme-post-content .elementor-widget-container p > strong:only-child,
.elementor-widget-theme-post-content .elementor-widget-container p > b:only-child {
    display: block;
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 10px;
    line-height: 1.3;
/*     color: #3c524c; */
	 color: #EE4B2B;
}


/* ── LINKS ─────────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container a,
.elementor-widget-theme-post-content .elementor-widget-container a {
    color: #814141;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container a:hover,
.elementor-widget-theme-post-content .elementor-widget-container a:hover {
    color: #EE4B2B; /* --red-2 */
}


/* ── LISTS ─────────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container ul,
.elementor-widget-wcf--theme-post-content .elementor-widget-container ol,
.elementor-widget-theme-post-content .elementor-widget-container ul,
.elementor-widget-theme-post-content .elementor-widget-container ol {
    margin: 0 0 28px 0;
    padding-left: 0;
    list-style: none;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container ul li,
.elementor-widget-theme-post-content .elementor-widget-container ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.7;
    color: #3f3a36;
    list-style: none;
}

/* Restore clean bullet — exclude Elementor icon list items */
.elementor-widget-wcf--theme-post-content .elementor-widget-container ul li::before,
.elementor-widget-theme-post-content .elementor-widget-container ul li::before {
    content: "+";
    position: absolute;
    left: 4px;
    top: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    line-height: 1.7;
}

/* Cancel bullet on Elementor icon list — it has its own icon */
.elementor-icon-list-items li::before,
.elementor-icon-list-item::before {
    content: none !important;
}

/* Also fix padding bleed on Elementor icon list items */
.elementor-icon-list-items .elementor-icon-list-item {
    padding-left: 0 !important;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container ol,
.elementor-widget-theme-post-content .elementor-widget-container ol {
    counter-reset: ol-counter;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container ol li,
.elementor-widget-theme-post-content .elementor-widget-container ol li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.7;
    color: #3f3a36;
    counter-increment: ol-counter;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container ol li::before,
.elementor-widget-theme-post-content .elementor-widget-container ol li::before {
    content: counter(ol-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    font-weight: 700;
    color: #3c524c;
    line-height: 1.9;
    letter-spacing: 0.03em;
}


/* ── BLOCKQUOTE ────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container blockquote,
.elementor-widget-theme-post-content .elementor-widget-container blockquote {
    position: relative;
    margin: 48px 0;
    padding: 36px 40px 36px 60px;
    background-color: #f6eeea;  /* --white-13 */
    border-left: 4px solid #3c524c;
    border-radius: 0 8px 8px 0;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container blockquote::before,
.elementor-widget-theme-post-content .elementor-widget-container blockquote::before {
    content: "\201C";
    position: absolute;
    top: 16px;
    left: 18px;
    font-size: 64px;
    line-height: 1;
    color: #3c524c;
    font-family: "PT Serif", serif;
    opacity: 0.4;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container blockquote p,
.elementor-widget-theme-post-content .elementor-widget-container blockquote p {
    font-family: "PT Serif", serif; /* --font-secondary */
    font-size: 20px;
    line-height: 1.65;
    color: #3c524c;
    font-style: italic;
    margin-bottom: 12px;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container blockquote cite,
.elementor-widget-theme-post-content .elementor-widget-container blockquote cite {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: #668d7f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ── IMAGES ────────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container img,
.elementor-widget-theme-post-content .elementor-widget-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 4px;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container img:hover,
.elementor-widget-theme-post-content .elementor-widget-container img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container .wp-caption,
.elementor-widget-theme-post-content .elementor-widget-container .wp-caption {
    max-width: 100%;
    margin: 40px auto;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container .wp-caption-text,
.elementor-widget-theme-post-content .elementor-widget-container .wp-caption-text {
    font-size: 14px;
    color: #89827a;  /* --gray-11 */
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* First image in content — no extra top spacing */
.elementor-widget-wcf--theme-post-content .elementor-widget-container > p:first-child img,
.elementor-widget-theme-post-content .elementor-widget-container > p:first-child img {
    margin-top: 0;
}


/* ── HORIZONTAL RULE ───────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container hr,
.elementor-widget-theme-post-content .elementor-widget-container hr {
    border: none;
    border-top: 1px solid #e9e9e9; /* --gray-13 */
    margin: 48px 0;
}


/* ── CODE & PRE ────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container code,
.elementor-widget-theme-post-content .elementor-widget-container code {
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    background-color: #f0ece9;  /* --white-11 */
    color: #3c524c;
    padding: 2px 8px;
    border-radius: 4px;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container pre,
.elementor-widget-theme-post-content .elementor-widget-container pre {
    background-color: #27272b;  /* --black-5 */
    color: #f3f3f3;
    padding: 28px 32px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.7;
    margin: 40px 0;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container pre code,
.elementor-widget-theme-post-content .elementor-widget-container pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}


/* ── TABLE ─────────────────────────────────────────────────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container table,
.elementor-widget-theme-post-content .elementor-widget-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 16px;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container th,
.elementor-widget-theme-post-content .elementor-widget-container th {
    background-color: #3c524c;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container td,
.elementor-widget-theme-post-content .elementor-widget-container td {
    padding: 14px 18px;
    border-bottom: 1px solid #e9e9e9;
    color: #3f3a36;
    vertical-align: top;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container tr:last-child td,
.elementor-widget-theme-post-content .elementor-widget-container tr:last-child td {
    border-bottom: none;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container tr:nth-child(even) td,
.elementor-widget-theme-post-content .elementor-widget-container tr:nth-child(even) td {
    background-color: #f9f9f9;
}


/* ── SPACING RESETS — empty p with &nbsp; from editor ─────── */
.elementor-widget-wcf--theme-post-content .elementor-widget-container p:has(> span:empty),
.elementor-widget-theme-post-content .elementor-widget-container p:has(> span:empty) {
    display: none;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .elementor-widget-wcf--theme-post-content .elementor-widget-container,
    .elementor-widget-theme-post-content .elementor-widget-container {
        font-size: 16px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container p,
    .elementor-widget-theme-post-content .elementor-widget-container p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container h1,
    .elementor-widget-theme-post-content .elementor-widget-container h1 {
        font-size: 28px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container h2,
    .elementor-widget-theme-post-content .elementor-widget-container h2 {
        font-size: 24px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container h3,
    .elementor-widget-theme-post-content .elementor-widget-container h3 {
        font-size: 20px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container h1,
    .elementor-widget-wcf--theme-post-content .elementor-widget-container h2,
    .elementor-widget-wcf--theme-post-content .elementor-widget-container h3,
    .elementor-widget-wcf--theme-post-content .elementor-widget-container h4,
    .elementor-widget-theme-post-content .elementor-widget-container h1,
    .elementor-widget-theme-post-content .elementor-widget-container h2,
    .elementor-widget-theme-post-content .elementor-widget-container h3,
    .elementor-widget-theme-post-content .elementor-widget-container h4 {
        margin-top: 36px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container blockquote,
    .elementor-widget-theme-post-content .elementor-widget-container blockquote {
        padding: 24px 20px 24px 44px;
    }

    .elementor-widget-wcf--theme-post-content .elementor-widget-container blockquote p,
    .elementor-widget-theme-post-content .elementor-widget-container blockquote p {
        font-size: 17px;
    }
}




/* Hide meta block on Case Study posts */
main.category-case-study .elementor-element-70015520 {
    display: none !important;
}

main.category-testimonial .elementor-element-70015520 {
    display: none !important;
}

.elementor-widget-wcf--theme-post-content .elementor-widget-container img {
	width: 100%
}




.wptww-testimonial-client {
    color: #555555 !important;
    font-family: "Kanit", Sans-serif !important;
    font-weight: 500 !important;
	margin-bottom: 6px !important;
}

.wptww-testimonial-content h4 {
    font-family: "Kanit", Sans-serif !important;
    font-size: 20px !important;
    line-height: 22px !important;
    padding: 0 !important;
    margin: 8px 0 !important;
    font-weight: 400;
    color: #555555 !important;
}
.wptww-testimonials-text em {
    font-weight: 400;
    color: #555555d6 !important;
	    line-height: 28px  !important;
}
.wptww-testimonials-text {
    padding-top: 10px  !important;
}
.wptww-testimonial-cdec{
	    font-size: 15px;
    color: #3f3e3e !important;
}

/* Clickable testimonial cards: pass clicks through title/image/text to overlay */
.wptww-testimonial-card--clickable {
	position: relative;
	cursor: pointer;
}
.wptww-testimonial-card--clickable * {
	pointer-events: none;
}
.wptww-testimonial-card--clickable .wptww-testimonial-detail-overlay {
	pointer-events: auto;
	position: absolute;
	inset: 0;
	z-index: 50;
	overflow: hidden;
	white-space: nowrap;
}
.wptww-testimonial-card--clickable .wptww-testimonial-detail-overlay .screen-reader-text,
.monolith-testimonial-slide--linked .wptww-testimonial-detail-overlay .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
/* Company link in plugin cards stays clickable above overlay */
.wptww-testimonial-card--clickable .wptww-testimonial-job a,
.wptww-testimonial-card--clickable .wptww-testimonial-cdec a,
.wptww-testimonial-card--clickable .wptww-testimonials-text a[href] {
	pointer-events: auto;
	position: relative;
	z-index: 51;
}

/* Arolax Elementor testimonial: full-slide link (set Detail page URL in widget) */
.monolith-testimonial-slide--linked {
	position: relative;
	cursor: pointer;
}
.monolith-testimonial-slide--linked * {
	pointer-events: none;
}
.monolith-testimonial-slide--linked .wptww-testimonial-detail-overlay {
	pointer-events: auto;
	position: absolute;
	inset: 0;
	z-index: 50;
	overflow: hidden;
	white-space: nowrap;
}
.monolith-testimonial-slide--linked a[href]:not(.wptww-testimonial-detail-overlay) {
	pointer-events: auto;
	position: relative;
	z-index: 51;
}

/* Single testimonial page */
.monolith-testimonial-single__nav {
	margin-bottom: 1rem;
}
.monolith-testimonial-single__back {
	text-decoration: none;
}
.monolith-testimonial-single__media {
	margin-bottom: 1.5rem;
}
.monolith-testimonial-single__image {
	max-width: 200px;
	height: auto;
	border-radius: 50%;
	display: block;
}
.monolith-testimonial-single__client {
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0.5rem 0 0;
}
.monolith-testimonial-single__meta {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.monolith-testimonial-single__row {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 0.5rem 1.5rem;
	margin-bottom: 0.75rem;
}
.monolith-testimonial-single__row dt {
	font-weight: 600;
	margin: 0;
}
.monolith-testimonial-single__row dd {
	margin: 0;
}
@media (max-width: 575px) {
	.monolith-testimonial-single__row {
		grid-template-columns: 1fr;
	}
}

/* Hide all editor content except plain text in slider cards */
.wptww-testimonials-slidelist .wptww-testimonials-text blockquote,
.wptww-testimonials-slidelist .wptww-testimonials-text h1,
.wptww-testimonials-slidelist .wptww-testimonials-text h2,
.wptww-testimonials-slidelist .wptww-testimonials-text h3,
.wptww-testimonials-slidelist .wptww-testimonials-text h4,
.wptww-testimonials-slidelist .wptww-testimonials-text h5,
.wptww-testimonials-slidelist .wptww-testimonials-text h6,
.wptww-testimonials-slidelist .wptww-testimonials-text ul,
.wptww-testimonials-slidelist .wptww-testimonials-text ol,
.wptww-testimonials-slidelist .wptww-testimonials-text img,
.wptww-testimonials-slidelist .wptww-testimonials-text hr,
.wptww-testimonials-slidelist .wptww-testimonials-text figure,
.wptww-testimonials-slidelist .wptww-testimonials-text table {
    display: none !important;
}

/* Show only first paragraph in slider */
.wptww-testimonials-slidelist .wptww-testimonials-text p:not(:first-child) {
    display: none !important;
}

/* Clean text area */
.wptww-testimonials-slidelist .wptww-testimonials-text {
    overflow: hidden !important;
}

/* Lock text area height — no flash, no jump */
.wptww-testimonials-slidelist .wptww-testimonials-text {
    overflow: hidden !important;
    max-height: 80px !important;
    min-height: 80px !important;
}

.wptww-testimonials-slidelist .wptww-testimonials-text p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
}

/* Lock card inner height — equal across all cards */
.wptww-testimonials-slidelist .wptww-testimonial-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.wptww-testimonials-slidelist .wptww-testimonial-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Equal card height across slider */
.wptww-testimonials-slidelist .wptww-quote {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ── Works section cards — hide blockquote, truncate text ─── */
.card-body .card-text blockquote,
.card-body blockquote,
.scroll-card blockquote {
    display: none !important;
}

/* Truncate card text to 3 lines */
.card-body .card-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    max-height: 68px !important;
    margin-bottom: 0 !important;
}

/* Fix card width causing overflow */
.scroll-card,
.preview-card {
    min-width: 300px !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
}

/* Fix the Works card scroll container overflow */
.d-flex.gap-3,
[class*="scroll"],
.works-cards-container {
    overflow-x: auto !important;
}

/* ===== MEGA MENU FIX FOR MONOLITH/AROLAX ===== */

/* Parent li must be static so dropdown spans full nav width */
@media (min-width: 1025px) {
  li.mega-menu.menu-item-has-children {
    position: static !important;
  }

  li.mega-menu.menu-item-has-children > ul.sub-menu {
    display: none !important;
    position: absolute !important;
    left: 2% !important;
    top: 100% !important;
    margin-top: 0 !important;
    width: 96% !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
    background: #fff !important;
    border: 1px solid #EFF0F1 !important;
    border-radius: 5px !important;
    padding: 25px 0 !important;
    z-index: 999 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: unset !important;
  }

  li.mega-menu.menu-item-has-children > ul.sub-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
  }

  li.mega-menu.menu-item-has-children:hover > ul.sub-menu {
    display: grid !important;
  }
}

/* === Shared styles (both desktop & mobile) === */
li.mega-menu > ul.sub-menu > li {
  padding: 0 20px !important;
  white-space: normal !important;
  position: relative !important;
}

li.mega-menu > ul.sub-menu > li > a {
  font-family: "Kanit", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #121212 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #EFF0F1 !important;
  margin-bottom: 8px !important;
  display: block !important;
  white-space: normal !important;
}

li.mega-menu > ul.sub-menu > li > a .wcf-submenu-indicator {
  display: none !important;
}

li.mega-menu > ul.sub-menu > li > ul.sub-menu {
  position: static !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  width: 100% !important;
  border-radius: 0 !important;
}

li.mega-menu > ul.sub-menu > li > ul.sub-menu > li > a {
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #333 !important;
  padding: 6px 0 !important;
  display: block !important;
  text-transform: none !important;
  white-space: normal !important;
  border: none !important;
}

li.mega-menu > ul.sub-menu > li > ul.sub-menu > li > a:hover {
  color: var(--primary, #FF845D) !important;
}

/* === Mobile: let WCF plugin handle click toggle === */
@media (max-width: 1024px) {
  li.mega-menu > ul.sub-menu {
    grid-template-columns: 1fr !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 10px !important;
  }
}

a.nav-back-link {
  background: transparent !important;
  color: #1a1a1a !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #EFF0F1 !important;
  margin-bottom: 5px !important;
}

a.nav-back-link svg {
  fill: #1a1a1a !important;
  width: 14px !important;
  height: 14px !important;
}

/* Only show back buttons on mobile */
@media (min-width: 1025px) {
  li.menu-item:not([id]) {
    display: none !important;
  }
}

li.mega-menu > ul.sub-menu > li > ul.sub-menu li.menu-item:not([id]) {
  display: none !important;
}

/* Fix close button clickable area */
button.wcf-menu-close {
  cursor: pointer !important;
  z-index: 9999 !important;
}

button.wcf-menu-close svg,
button.wcf-menu-close svg path {
  pointer-events: none !important;
}

li.menu-new > a::after {
  content: "NEW";
  display: inline-block;
  background: #FF845D;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Fix NEW badge links to show badge inline on desktop */
@media (min-width: 1025px) {
  #menu-item-12178 > a,
  #menu-item-12193 > a {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }
}

/* Global fix — all arolax post widget thumbnails */
.arolax--post .thumb {
    height: auto !important;
    overflow: visible !important;
}

.arolax--post .thumb img {
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
}

/* Pagination */

/* Pagination styling */
nav.post-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

nav.post-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    color: #111 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

nav.post-pagination .page-numbers:hover {
    color: #FF845D !important;
}

nav.post-pagination .page-numbers.current {
    color: #111 !important;
    font-weight: 700 !important;
    background: transparent !important;
}

/* Next button — inline with text + icon */
nav.post-pagination .next.page-numbers {
    width: auto !important;
    padding: 0 10px !important;
    gap: 4px !important;
    font-size: 15px !important;
    color: #111 !important;
    text-transform: capitalize !important;
}

nav.post-pagination .next.page-numbers svg {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: static !important;
}

/* Hide screen reader text visually but keep accessible */
nav.post-pagination .elementor-screen-only {
    display: none !important;
}

/* Fix prev — add space between arrow and text */
nav.post-pagination .prev.page-numbers {
    width: auto !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 15px !important;
    color: #111 !important;
    text-transform: capitalize !important;
    flex-direction: row !important; /* SVG first, then text */
}

nav.post-pagination .prev.page-numbers svg {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    position: static !important;
}

/* Contact Us Centralize */
h2.cf7-info-tagline {
    margin-bottom: 30px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Lato", Roboto, sans-serif !important;
	font-weight: 500;
}	

.cf7-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
	margin-left: 30px
}

ul.cf7-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Case studies */
	
.carousel-slider__post-excerpt {
	margin: 0 32px 0px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #444 !important;
    font-family: "lato" !important;
}

.carousel-slider__post {
    margin: 10px !important;
	border-radius: 16px !important;
}

/* Replace broken FA icon with pure CSS arrow — cache-proof */
/* .carousel-slider__post .learn-more i.fa-arrow-right {
    font-size: 0 !important;
    width: 18px;
    height: 18px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.carousel-slider__post .learn-more i.fa-arrow-right::before {
    content: "→" !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    speak: never;
} */

a.learn-more {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Fix YouTube embed height on single case study pages */
.single .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0 !important;
    overflow: hidden;
}

.single .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Fix raw oEmbed iframe inside Classic Editor post content */
.elementor-widget-wcf--theme-post-content p iframe[src*="youtube"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
}

.elementor-widget-wcf--theme-post-content p:has(iframe[src*="youtube"]) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* ── Preloader Overlay ── */
#custom-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#custom-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Desktop */
#preloader-video {
    width: 100px;
    height: 100px;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 768px) {
    #preloader-video {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    #preloader-video {
        max-width: 120px;
        max-height: 120px;
    }
}

/* Small mobile (iPhone SE etc.) */
@media (max-width: 360px) {
    #preloader-video {
        max-width: 80px;
        max-height: 80px;
    }
}

/* Hide default Arolax preloader */
.wcf-preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


