/* Hirewise Master Design System & Stabilization */

/* 2. Hero Section with Red Triangle Overlay */
.static-hero-slider {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 750px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

/* The Big Red Triangle */
.hero-red-triangle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(235, 87, 87, 0.85);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 50px 120px 50px;
}

.hero-text-content h2 {
    color: #fff !important;
    font-size: 72px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.hero-text-content h5 {
    color: #fff !important;
    font-size: 64px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}

.hero-text-content em {
    color: #6cc569 !important; /* Green italic text */
    font-family: 'Dancing Script', cursive, serif !important;
    font-size: 42px !important;
    display: block;
    margin-top: 10px;
}

.hero-submit-btn {
    display: inline-block !important;
    background: #eb5757 !important;
    color: #fff !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    margin-top: 30px !important;
    transition: background 0.3s ease !important;
    width: fit-content !important;
}

.hero-submit-btn:hover {
    background: #c0392b !important;
}

/* Side Margin Rotated Boxes — positioned by Elementor */
/* Shift hours box 30px further left (Elementor default is -120px) */
body:not(.rtl) .elementor-7622 .elementor-element.elementor-element-8f18fbf {
    left: -135px !important;
}

.side-box-content {
    background: #fff !important;
    padding: 10px 25px !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border-bottom: 3px solid #082471 !important;
}

.side-box-content p {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Prevent Elementor from wrapping text in side margin boxes */
.rotate_icon_box .elementor-icon-box-description {
    white-space: nowrap !important;
}

.side-box-content i {
    color: #eb5757 !important;
    font-size: 16px !important;
}

/* 4. Testimonials Dark Theme (Parity with Screenshot) */
.testimonial-section-bg {
    background: #082471 !important;
    padding-top: 40px !important;
    padding-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.testimonial-section-bg .elementor-container,
.testimonial-section-bg .elementor-column,
.testimonial-section-bg .elementor-widget-wrap,
.testimonial-section-bg .elementor-widget-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.slick-dots {
    display: none !important;
}

.testimonial-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('site-assets/uploads/2024/08/content-2.jpg'); /* Using a background image if available */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.testimonial-section-bg .elementor-container {
    position: relative;
    z-index: 1;
}

.testimonial_carousel.style_7 .item {
    padding: 0 20px !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.consulting_elementor_testimonials_carousel {
    margin-bottom: 0 !important;
}

.testimonial_carousel.style_7 .testimonial {
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    flex: 1 !important;
}

.testimonial_carousel.style_7 .testimonial p {
    color: #ffffff !important;
}

.testimonial_carousel.style_7 .testimonial-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    min-height: 240px !important;
}

.testimonial_carousel.style_7 .testimonial-author {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

.testimonial_carousel.style_7 .testimonial-image {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
}

.testimonial_carousel.style_7 .testimonial-image img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.testimonial_carousel.style_7 .testimonial-info .testimonial-author .author-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.testimonial_carousel.style_7 .name,
.testimonial_carousel.style_7 .testimonial-info .testimonial-author .author-info .name {
    color: #6cc569 !important; /* Greenish color from screenshot */
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    display: block !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. Building Enduring Value Stats */
.stats-section {
    padding: 80px 0 !important;
    background: transparent !important;
}

.stat-item {
    text-align: left !important;
    border-left: 4px solid #6cc569;
    padding-left: 20px !important;
    margin-bottom: 30px;
}

.stat-number {
    font-size: 55px !important;
    font-weight: 800 !important;
    color: #082471 !important;
    line-height: 1 !important;
    margin-bottom: 10px !important;
}

.stat-label {
    font-size: 14px !important;
    text-transform: uppercase !important;
    color: #333 !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}


/* == MOBILE OPTIMISATION (homepage hero + stats) == */
@media (max-width: 768px) {
    .static-hero-slider, .hero-slide {
        height: 100vw !important;
        min-height: 100vw !important;
        background-position: center !important;
        border-radius: 0 !important;
    }
    .hero-content-wrapper { padding: 0 20px 35px 20px !important; }

    /* Ensure the homepage hero section connects fully to the screen edges (no side margins/padding) */
    .home #main > .container,
    .home #main > .container > .content-area,
    .home #main > .container > .content-area > .consulting_elementor_wrapper,
    .home #main > .container > .content-area > .consulting_elementor_wrapper > .entry-content,
    .home #main > .container > .content-area > .consulting_elementor_wrapper > .entry-content > .elementor-7469,
    .home .elementor-7469 .elementor-element-8ebf860,
    .home .elementor-7469 .elementor-element-8ebf860 > .elementor-container,
    .home .elementor-7469 .elementor-element-676ed59,
    .home .elementor-7469 .elementor-element-676ed59 > .elementor-widget-wrap,
    .home .elementor-7469 .elementor-element-61708a5,
    .home .elementor-7469 .elementor-element-61708a5 > .elementor-widget-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Completely remove rounded/curved corners from all hero section containers, columns, slides and overlays */
    .elementor-7469 .elementor-element.elementor-element-8ebf860,
    .elementor-7469 .elementor-element.elementor-element-8ebf860 > .elementor-background-overlay,
    .elementor-7469 .elementor-element.elementor-element-676ed59 > .elementor-element-populated,
    .elementor-7469 .elementor-element.elementor-element-676ed59 > .elementor-element-populated > .elementor-background-overlay,
    .elementor-7469 .elementor-element.elementor-element-676ed59 > .elementor-element-populated > .elementor-background-slideshow,
    .static-hero-slider,
    .hero-slide {
        border-radius: 0 !important;
    }
    .hero-text-content h2 { font-size: 34px !important; line-height: 1.15 !important; }
    .hero-text-content h5 { font-size: 30px !important; line-height: 1.15 !important; }
    .hero-text-content em { font-size: 22px !important; margin-top: 8px !important; }
    .hero-red-triangle { width: 65% !important; opacity: 0.55 !important; }
    .stats-section { padding: 40px 16px !important; }
    .stat-item { text-align: center !important; padding-left: 0 !important; border-left: none !important; border-bottom: 1px solid #eee; margin-bottom: 0 !important; padding: 20px !important; }
    .stat-number { font-size: 40px !important; }
    .testimonial-section-bg h2 { font-size: 28px !important; line-height: 1.3 !important; }
}
@media (max-width: 480px) {
    .static-hero-slider, .hero-slide {
        height: 100vw !important;
        min-height: 100vw !important;
    }
    .hero-text-content h2 { font-size: 26px !important; }
    .hero-text-content h5 { font-size: 24px !important; }
    .hero-text-content em { font-size: 18px !important; }
    .hero-submit-btn { padding: 12px 24px !important; font-size: 14px !important; }
}

/* =====================================================
   HIREWISE — PREMIUM GLOBAL COMPACT HEADER OVERRIDES
   ===================================================== */
.elementor-7622 .elementor-element.elementor-element-7279dc0b {
    padding: 10px 0px 10px 0px !important;
}

#masthead .elementor-element-30d946f {
    display: none !important;
}

@media (min-width: 769px) {
    #masthead {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
}

