/* ==========================================================================
   Homepage-only enhancements (loaded after style.css, scoped to body.home-page)
   ========================================================================== */

/* ---- Tighter vertical rhythm on the homepage only ---- */
body.home-page .section {
    padding-top: 64px;
    padding-bottom: 64px;
}

body.home-page .section-guide {
    margin-bottom: 0;
}

body.home-page .section-partner {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ---- Match section heading/intro sizing to the Partners section
   ("Powering Success with Our Top Partners") across the homepage ---- */
.title-heading.intro-heading-compact {
    font-size: calc(var(--font-size-8xl) * 0.9);
}
body.dark-mode .title-heading.intro-heading-compact {
    background-image: linear-gradient(#fff 100%);
}

.intro-text-compact {
    font-size: var(--font-size-sm);
}

/* ---- Product card buttons (ported from products.html's page-local styles,
   reused here for the homepage product slider) ---- */
.product-card-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
}

.btn-product-quote,
.btn-product-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-product-quote {
    background: #ffffff;
    color: #f48120;
}

.btn-product-quote:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.btn-product-details {
    background: #f48120;
    color: #ffffff;
}

.btn-product-details:hover {
    background: #e67616;
    transform: translateY(-2px);
}

.btn-product-quote i,
.btn-product-details i {
    font-size: 12px;
}

/* ---- Products CTA row ---- */
.product-cta-row {
    margin-top: 8px;
}

.product-cta-row p {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.btn-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    border-radius: 50px;
    background: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-product-cta:hover {
    background: #e67616;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 129, 32, 0.25);
}

.btn-product-cta i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.btn-product-cta:hover i {
    transform: translateX(3px);
}

body.lightmode .btn-product-cta {
    color: #fff;
}

/* ---- Product category filter bar ---- */
.product-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -10px auto 8px;
    max-width: 800px;
}

@media (min-width: 768px) {
    .product-filter-bar {
        flex-wrap: nowrap;
    }
}

.product-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 50px;
    border: 1px solid rgba(244, 129, 32, 0.20);
    background: transparent;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.product-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(244, 129, 32, 0.06);
}

.product-filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

body.lightmode .product-filter-btn {
    color: #333;
}

body.lightmode .product-filter-btn:hover {
    color: var(--accent-color);
}

body.lightmode .product-filter-btn.active {
    color: #fff;
}

/* Filtered-out slides */
.swiper-slide.filter-hidden {
    display: none !important;
}

@media (max-width: 575px) {
    .product-filter-bar {
        gap: 8px;
        margin: -6px auto 4px;
    }
    .product-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ---- "Why Choose Us" heading sits full-width above the two columns ---- */
.chooseus-section-heading {
    margin-bottom: 32px;
}

/* ---- "Why Choose Us" interactive solution showcase ---- */
.solution-showcase-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solution-showcase-item {
    border: 1px solid var(--accent-color-3);
    border-radius: 16px;
    background-color: rgba(244, 129, 32, 0.04);
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.solution-showcase-item.active {
    border-color: var(--accent-color);
    background-color: rgba(244, 129, 32, 0.08);
}

.solution-showcase-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
}

.solution-showcase-header .material-symbols-outlined {
    font-size: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.solution-showcase-header h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    line-height: 1.3;
    flex: 1;
    color: var(--text-color);
}

.showcase-chevron {
    color: var(--accent-color);
    font-size: 12px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.solution-showcase-item.active .showcase-chevron {
    transform: rotate(180deg);
}

.solution-showcase-body {
    max-height: 0;
    opacity: 0;
    padding: 0 18px;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.solution-showcase-item.active .solution-showcase-body {
    max-height: 240px;
    opacity: 1;
    padding: 0 18px 18px 18px;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.solution-showcase-body p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 10px;
}

/* Dark overlay on the showcase image */
.chooseus-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.65) 100%);
    border-radius: 25px;
    pointer-events: none;
    z-index: 1;
}

#chooseusActiveImage {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#chooseusActiveImage.is-swapping {
    opacity: 0;
    transform: scale(0.96);
}

@media (max-width: 575px) {
    .solution-showcase-header {
        padding: 14px;
    }

    .solution-showcase-header h4 {
        font-size: var(--font-size-base);
    }
}

/* ---- Testimonial header: the reviewer card and the "Don't Trust Us" card sit
   in a stretched flex row, but neither card itself had height:100% — only its
   outer wrapper did — leaving a dead gap under the shorter (text) card. ---- */
.card-testimonial-reviewer,
.card-testimonial-header-title {
    height: 100%;
    box-sizing: border-box;
}

.card-testimonial-header-title {
    justify-content: center;
}

/* The explicit height:100% on .testimonial-title-container fights with flex
   stretch (percentage height resolves before the stretch pass), which is why
   it was staying short. Forcing it back to auto lets stretch work normally. */
.testimonial-title-container {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Redesigned Products Carousel — Worldsensing-inspired
   ========================================================================== */

/* ---- Carousel wrapper with visual anchors ---- */
.swiperProducts-layout {
    position: relative;
    padding: 0 8px;
}

/* Product card */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s ease, border-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(244, 129, 32, 0.12);
    border-color: rgba(244, 129, 32, 0.25);
}

body.lightmode .product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.lightmode .product-card:hover {
    box-shadow: 0 16px 40px rgba(244, 129, 32, 0.10);
    border-color: rgba(244, 129, 32, 0.20);
}

/* Product image container */
.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 0.72;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

/* Glass-effect image label */
.product-image-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    line-height: 1.3;
}

.product-card:hover .product-image-label {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

body.lightmode .product-image-label {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

body.lightmode .product-card:hover .product-image-label {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.product-card-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}

.product-card:hover .product-card-image .product-img {
    transform: scale(1.08);
}

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.04) 100%);
    pointer-events: none;
}

/* Product card body */
.product-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    direction: ltr;
}

.product-card-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    line-height: 1.3;
}

body.lightmode .product-card-body h4 {
    color: #1a1a1a;
}

.product-card-body .product-category-label {
    font-size: 10px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-body p {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0 0 12px 0;
    flex-grow: 1;
    line-height: 1.5;
}

body.lightmode .product-card-body p {
    color: #555;
    opacity: 1;
}

/* Product card buttons */
.product-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.btn-product-primary,
.btn-product-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-product-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-product-primary:hover {
    background: #e67616;
    transform: translateY(-2px);
    color: #fff;
}

.btn-product-secondary {
    background: rgba(244, 129, 32, 0.10);
    color: var(--accent-color);
    border: 1px solid rgba(244, 129, 32, 0.20);
}

.btn-product-secondary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

body.lightmode .btn-product-primary {
    color: #fff;
}

body.lightmode .btn-product-secondary {
    background: rgba(244, 129, 32, 0.06);
    border-color: rgba(244, 129, 32, 0.15);
}

body.lightmode .btn-product-primary:hover,
body.lightmode .btn-product-secondary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-product-primary i,
.btn-product-secondary i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.btn-product-primary:hover i,
.btn-product-secondary:hover i {
    transform: translateX(3px);
}

/* Swiper overrides for products */
.swiper.swiperProducts {
    padding: 12px 4px 16px;
}

.swiper.swiperProducts .swiper-slide {
    height: auto;
    display: flex;
}

/* ---- Product carousel navigation ---- */
.swiperProducts-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.swiperProducts-btn-prev,
.swiperProducts-btn-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    border: 1px solid rgba(244, 129, 32, 0.20);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    line-height: 1;
}

body.lightmode .swiperProducts-btn-prev,
body.lightmode .swiperProducts-btn-next {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.lightmode .swiperProducts-btn-prev:hover,
body.lightmode .swiperProducts-btn-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(244, 129, 32, 0.30);
}

.swiperProducts-btn-prev:hover,
.swiperProducts-btn-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(244, 129, 32, 0.25);
}

.swiperProducts-btn-prev.swiper-button-disabled,
.swiperProducts-btn-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Swiper pagination dots */
.swiperProducts-pagination {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    width: 100% !important;
}

.swiperProducts-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(244, 129, 32, 0.20);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiperProducts-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 767px) {
    .product-card-body {
        padding: 16px 18px 18px;
    }
    .product-card-body h4 {
        font-size: 16px;
    }
    .btn-product-primary,
    .btn-product-secondary {
        font-size: 12px;
        padding: 8px 10px;
    }
    .product-card {
        border-radius: 16px;
    }
}

/* ---- Mobile responsive: product carousel navigation & pagination ---- */
@media (max-width: 767px) {
    .swiperProducts-nav {
        gap: 10px;
        margin-top: 16px;
    }

    .swiperProducts-btn-prev,
    .swiperProducts-btn-next {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 13px;
    }

    .swiperProducts-pagination {
        gap: 6px;
    }

    .swiperProducts-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .swiperProducts-pagination .swiper-pagination-bullet-active {
        width: 20px;
        border-radius: 3px;
    }
}

@media (max-width: 575px) {
    .swiperProducts-nav {
        gap: 8px;
        margin-top: 12px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .swiperProducts-btn-prev,
    .swiperProducts-btn-next {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 12px;
    }

    .swiperProducts-pagination .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
    }

    .swiperProducts-pagination .swiper-pagination-bullet-active {
        width: 16px;
    }

    .swiper.swiperProducts {
        padding: 8px 2px 12px;
    }
}

/* ---- Ensure pagination dots don't overflow on very narrow screens ---- */
@media (max-width: 400px) {
    .swiperProducts-nav {
        gap: 4px;
    }

    .swiperProducts-btn-prev,
    .swiperProducts-btn-next {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        font-size: 11px;
    }

    .swiperProducts-pagination {
        gap: 4px;
    }

    .swiperProducts-pagination .swiper-pagination-bullet {
        width: 4px;
        height: 4px;
    }

    .swiperProducts-pagination .swiper-pagination-bullet-active {
        width: 14px;
    }
}

/* ==========================================================================
   Testimonial Reviewer Alignment Fixes
   ========================================================================== */

/* Fix avatar container width to auto - the 50% was causing excess space */
.testimonial-section-compact .testimonial-reviewer .avatar-container {
    width: auto !important;
    flex-shrink: 0;
}

/* Stack avatars with overlap (like overlapping photo bubbles) */
.testimonial-section-compact .testimonial-reviewer .avatar-container .avatar {
    border: 2px solid var(--secondary, #2d2e2f);
    border-radius: 50%;
    margin-right: -10px !important;
    position: relative;
    z-index: 1;
}

.testimonial-section-compact .testimonial-reviewer .avatar-container .avatar:nth-child(2) {
    z-index: 2;
    margin-left: -10px !important;
}

.testimonial-section-compact .testimonial-reviewer .avatar-container .avatar:nth-child(3) {
    z-index: 3;
    margin-left: -10px !important;
}

/* Ensure reviewer row has proper alignment */
.testimonial-section-compact .testimonial-reviewer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.testimonial-section-compact .testimonial-reviewer .detail {
    white-space: nowrap;
}

/* Fix rating container spacing */
.testimonial-section-compact .testimonial-rating-container {
    gap: 12px !important;
    justify-content: space-around !important;
}

.testimonial-section-compact .testimonial-rating-container .counter-box span.counter {
    font-size: 22px !important;
    line-height: 1;
}

.testimonial-section-compact .testimonial-rating-container .counter-box span.counter-detail {
    font-size: 18px !important;
    line-height: 1;
}

/* Link row proper spacing */
.testimonial-section-compact .testimonial-header-link-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Fix inner card layout to remove negative space */
.testimonial-section-compact .card.card-testimonial-reviewer > div:first-child {
    gap: 16px !important;
}

/* ---- Hero contrast overlay ---- */
/* Extra darkening layer (on top of the fixed radial-gradient vignette) so the
   headline stays readable no matter how bright the background video frame is. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(115deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 38%,
            rgba(0, 0, 0, 0.15) 65%,
            rgba(0, 0, 0, 0.35) 100%);
}

.section-banner .hero-container,
.section-banner .banner-video-container > * {
    position: relative;
    z-index: 1;
}

/* ---- Redesigned solution cards ("Our Core Solutions") ---- */
.card-solution {
    background-color: transparent;
    background-image: radial-gradient(at top left, var(--accent-color-3) 0%, var(--accent-color-4) 50%);
    border-radius: var(--global-border-radius);
    border: 1px solid var(--accent-color-3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: start;
    position: relative;
    z-index: 1;
    height: 100%;
    transition: border-color 0.3s ease;
}

.col:nth-child(even) .card-solution {
    background-image: radial-gradient(at bottom right, var(--accent-color-3) 0%, var(--accent-color-4) 50%);
}

.card-solution:hover {
    border-color: var(--accent-color);
}

.card-solution-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-solution-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.card-solution:hover .card-solution-media img {
    transform: scale(1.08);
}

.card-solution-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%);
}

.card-solution-icon-badge {
    position: absolute;
    left: 20px;
    bottom: -26px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background-color: var(--secondary);
    border: 1px solid var(--accent-color-3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--box-shadow-bottom-right);
}

.card-solution-icon-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.card-solution-body {
    padding: 38px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.card-solution-body h4 {
    margin: 0;
}

.card-solution-body p {
    flex: 1;
    margin: 0;
}

.card-solution.featured {
    border-color: var(--accent-color);
}

.card-solution-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 4px 14px;
    border-radius: 100px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- "What We Do Best" expertise chip grid ---- */
.expertise-list-grid {
    width: 100%;
}

.expertise-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.expertise-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background-color: rgba(244, 129, 32, 0.06);
    border: 1px solid var(--accent-color-3);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    line-height: 1.3;
    transition: all 0.25s ease;
}

.expertise-chip .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.expertise-chip:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.expertise-chip:hover .material-symbols-outlined {
    color: #fff;
}

/* ---- Expertise left column: "Ready to see" card + "21+ years" card stacked
   in normal flow (no more background photo / absolute-position overlay). ---- */
.expertise-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expertise-cards-stack .card-expertise,
.expertise-cards-stack .card-expertise-counter {
    width: 100%;
    height: auto;
}

/* "Ready to see" card: flat light-grey fill, no drop-shadow glow */
.expertise-cards-stack .card-expertise:not(.card-expertise-counter) {
    background-image: none;
    background-color: #e8e8e8;
    box-shadow: none;
    color: #1a1a1a;
}

.expertise-cards-stack .card-expertise:not(.card-expertise-counter):hover {
    box-shadow: none;
}

.expertise-cards-stack .card-expertise:not(.card-expertise-counter) h4 {
    color: #1a1a1a;
}

.expertise-cards-stack .card-expertise:not(.card-expertise-counter) p {
    color: #3a3a3a;
}

/* "Schedule a Demo" link: filled-button style on hover instead of just a color swap */
.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link {
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--accent-color);
    transition: all 0.25s ease;
}

.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link,
.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link a,
.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link i {
    color: var(--accent-color);
}

.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link:hover {
    background-color: var(--accent-color);
}

.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link:hover,
.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link:hover a,
.expertise-cards-stack .card-expertise:not(.card-expertise-counter) .expertise-link:hover i {
    color: #fff;
}

.expertise-quote {
    margin-top: 4px;
    color: var(--text-color);
    opacity: 0.75;
    font-size: var(--font-size-sm);
    font-style: italic;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.expertise-quote .fa-quote-left {
    color: var(--accent-color);
    opacity: 1;
    font-size: var(--font-size-lg);
    margin-top: 2px;
}

@media (max-width: 575px) {
    .expertise-chip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.home-page .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

@media (max-width: 575px) {
    .expertise-cards-stack .card-expertise:not(.card-expertise-counter) {
        padding: 16px;
    }

    .expertise-cards-stack .card-expertise:not(.card-expertise-counter) h4 {
        font-size: var(--font-size-2xl);
    }

    .expertise-chip-grid {
        margin-top: 8px;
    }
}

/* ==========================================================================
   Compact Newsletter (repositioned near testimonial section)
   ========================================================================== */
.section-newsletter-compact {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.newsletter-wrapper-compact {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.lightmode .newsletter-wrapper-compact {
    background: rgba(244, 129, 32, 0.06);
    border-color: rgba(244, 129, 32, 0.2);
}

.newsletter-layout-compact {
    width: 100%;
}

.newsletter-text h4 {
    font-size: clamp(18px, 2vw, 24px);
    margin: 0 0 4px 0;
    color: var(--primary);
}

body.lightmode .newsletter-text h4 {
    color: #1a1a1a;
}

.newsletter-text p {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.75;
    margin: 0;
}

body.lightmode .newsletter-text p {
    color: #555;
}

.newsletter-form-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 380px;
    margin-left: auto;
}

/* The legacy #newsletterForm rule (style.css) is an ID selector and beats
   the plain class rule above, dragging back its own flex-direction/width/
   background/padding. Re-declare with matching ID+class specificity so the
   compact layout actually wins on the home page. */
#newsletterForm.newsletter-form-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 460px;
    margin-left: auto;
    background-color: transparent;
    width: auto;
    padding: 0;
    border-radius: 0;
    justify-content: flex-start;
    align-items: stretch;
    align-self: auto;
}

.newsletter-form-inline .input-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.newsletter-form-inline input[type="email"],
#newsletterForm.newsletter-form-inline input[type="email"] {
    flex: 1;
    height: 48px;
    padding: 0 22px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
    font-family: inherit;
    line-height: normal;
}

.newsletter-form-inline input[type="email"]::placeholder,
#newsletterForm.newsletter-form-inline input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    opacity: 1;
}

body.lightmode .newsletter-form-inline input[type="email"],
body.lightmode #newsletterForm.newsletter-form-inline input[type="email"] {
    background: #fff !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #1a1a1a !important;
}

body.lightmode .newsletter-form-inline input[type="email"]::placeholder,
body.lightmode #newsletterForm.newsletter-form-inline input[type="email"]::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-size: 15px;
}

.newsletter-form-inline input[type="email"]:focus {
    border-color: var(--accent-color);
}

.newsletter-form-inline .btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: var(--accent-color);
    color: #fff;
    line-height: normal;
    box-shadow: none;
    text-decoration: none;
    outline: none;
    font-family: inherit;
}

.newsletter-form-inline .btn-compact:hover,
#newsletterForm.newsletter-form-inline .btn-compact:hover {
    background: #e67616 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 129, 32, 0.25);
}

.newsletter-form-inline .btn-compact i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.newsletter-form-inline .btn-compact:hover i {
    transform: translateX(3px);
}

.compact-alert {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-alert.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.compact-alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.compact-alert.info-alert {
    background: rgba(244, 129, 32, 0.12);
    color: var(--accent-color);
}

.compact-alert.info-alert span,
.compact-alert.info-alert p {
    color: var(--accent-color);
}

.compact-alert p {
    margin: 0;
    font-size: 13px;
}

/* Toast Notification */
.sentra-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 260px;
    line-height: 1.3;
}
.sentra-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.sentra-toast-success {
    background: #1e1e1e;
    border: 1px solid rgba(244, 129, 32, 0.4);
}
.sentra-toast-success i {
    color: #f47b0a;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.sentra-toast-error {
    background: #1e1e1e;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.sentra-toast-error i {
    color: #ef4444;
    font-size: 0.9rem;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .sentra-toast {
        bottom: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
    }
}

@media (max-width: 991px) {
    .newsletter-wrapper-compact {
        padding: 20px;
    }
    .newsletter-form-inline,
    #newsletterForm.newsletter-form-inline {
        min-width: 0;
        width: 100%;
        margin-left: 0;
    }
    .newsletter-form-inline .input-row {
        flex-direction: column;
    }
    .newsletter-form-inline input[type="email"] {
        width: 100%;
        height: 54px;
        padding: 0 24px !important;
    }
    .newsletter-form-inline .btn-compact {
        width: 100%;
        height: 54px;
        justify-content: center;
    }
}

/* ==========================================================================
   Compact Testimonial Section
   ========================================================================== */
.testimonial-section-compact {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
}

.testimonial-section-compact .testimonial-reviewer-container .card.card-testimonial-reviewer {
    padding: 20px 24px !important;
}

.testimonial-section-compact .testimonial-reviewer .avatar-container .avatar {
    width: 38px !important;
    height: 38px !important;
    border-width: 2px !important;
    margin-left: -12px;
}

.testimonial-section-compact .testimonial-reviewer .avatar-container .avatar:first-child {
    margin-left: 0;
}

.testimonial-section-compact .testimonial-reviewer .detail h6 {
    font-size: 13px !important;
}

.testimonial-section-compact .testimonial-rating-container {
    align-items: center;
}

.testimonial-section-compact .testimonial-rating-container .underline-vertical {
    height: 46px !important;
    align-self: center;
}

.testimonial-section-compact .testimonial-rating-container .counter-box span.counter {
    font-size: 20px !important;
}

.testimonial-section-compact .testimonial-rating-container .counter-box span.counter-detail {
    font-size: 18px !important;
}

.testimonial-section-compact .testimonial-rating-container p {
    font-size: 11px !important;
}

.testimonial-section-compact .card-testimonial-header-title .title-heading {
    font-size: clamp(22px, 3vw, 32px) !important;
}

.testimonial-section-compact .card-testimonial-header-title .intro-text-compact {
    font-size: 13px !important;
}

.testimonial-section-compact .card.card-testimonial {
    padding: 14px 16px !important;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-section-compact .card.card-testimonial .stars {
    margin-bottom: 2px;
}

.testimonial-section-compact .card.card-testimonial .stars i {
    font-size: 12px !important;
}

.testimonial-section-compact .card.card-testimonial .fa-3x {
    font-size: 1.4em !important;
}

.testimonial-section-compact .card.card-testimonial .profile-name {
    font-size: 13px !important;
}

.testimonial-section-compact .card.card-testimonial .profile-info {
    font-size: 11px !important;
    margin-bottom: 0;
}

.testimonial-section-compact .card.card-testimonial .testimonial-description {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

.testimonial-section-compact .card.card-testimonial .testimonial-image img {
    width: 38px !important;
    height: 38px !important;
}

.testimonial-section-compact .card.card-testimonial .d-flex:first-of-type {
    margin-bottom: 2px;
}

.testimonial-section-compact .testimonial-header-link-wrapper {
    padding: 12px 16px !important;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

body.lightmode .testimonial-section-compact .testimonial-header-link-wrapper {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1);
}

.testimonial-section-compact .testimonial-header-link-wrapper:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.testimonial-section-compact .testimonial-header-link-wrapper:hover a,
.testimonial-section-compact .testimonial-header-link-wrapper:hover i {
    color: #fff !important;
}

.testimonial-section-compact .testimonial-header-link-wrapper a {
    font-size: 13px !important;
}

.testimonial-section-compact .testimonial-header-link-wrapper i {
    font-size: 14px !important;
}

.testimonial-section-compact .link-wrapper a {
    font-size: 14px !important;
}

.testimonial-section-compact .link-wrapper i {
    font-size: 14px !important;
}

/* CTA button variant of .link-wrapper (e.g. "See All Testimonials") */
.link-wrapper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-color);
    height: 48px;
    padding: 0 28px;
    border-radius: 50px;
    width: fit-content;
    white-space: nowrap;
}

.link-wrapper-btn a {
    color: #fff !important;
    font-weight: 600;
}

.link-wrapper-btn i {
    color: #fff !important;
    transition: transform 0.25s ease;
}

.link-wrapper-btn:hover {
    background: #e67616;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 129, 32, 0.25);
}

.link-wrapper-btn:hover a,
.link-wrapper-btn:hover i {
    color: #fff !important;
}

.link-wrapper-btn:hover i {
    transform: translateX(3px);
}
