/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor with ANEX Global Design System.
Author: ANEX Business Solution
Author URI: https://anexbd.com/
Template: hello-elementor
Version: 1.0.0
*/

/* =========================================
   ANEX Global Design System
   ========================================= */

:root {
    /* --- Color Palette (User Defined) --- */
    --anex-global-primary: #0A4D92;
    /* Deep Blue */
    --anex-global-secondary: #2E7D32;
    /* Forest Green */
    --anex-global-accent: #00897B;
    /* Teal Accent */
    --anex-global-dark: #424242;
    /* Charcoal Grey */
    --anex-global-text: #424242;
    /* Charcoal Grey */
    --anex-global-light: #f5f5f5;
    /* Light Grey equivalent */
    --anex-global-white: #FFFFFF;
    /* Clean White */
    --anex-global-warning: #E66151;
    /* Warm Coral */

    /* --- Typography --- */
    --anex-font-sans: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    --anex-font-serif: 'Segoe UI Serif', serif;

    /* --- Spacing --- */
    --anex-spacing-xs: 4px;
    --anex-spacing-sm: 8px;
    --anex-spacing-md: 16px;
    --anex-spacing-lg: 24px;
    --anex-spacing-xl: 32px;

    /* --- Shadows & Radius --- */
    --anex-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --anex-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --anex-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --anex-radius-sm: 4px;
    --anex-radius-md: 8px;
    --anex-radius-lg: 16px;

    /* --- Elementor Overrides (Forcing Global Colors) --- */
    --e-global-color-primary: #0A4D92 !important;
    /* Deep Blue */
    --e-global-color-secondary: #2E7D32 !important;
    /* Forest Green */
    --e-global-color-text: #424242 !important;
    /* Charcoal Grey */
    --e-global-color-accent: #00897B !important;
    /* Teal Accent */

    /* Standard Elementor System Colors */
    --e-global-color-6EC1E4: #0A4D92 !important;
    /* Replacing standard Light Blue */
    --e-global-color-54595F: #2E7D32 !important;
    /* Replacing standard Dark Grey */
    --e-global-color-7A7A7A: #424242 !important;
    /* Replacing standard Grey */
    --e-global-color-61CE70: #00897B !important;
    /* Replacing standard Green */
}

/* ... (Layout Utilities remain same) ... */

/* ... (Component Utilities remain same) ... */

/* Buttons Update */
.anex-btn-primary {
    background-color: var(--anex-global-primary);
    color: var(--anex-global-white);
}

.anex-btn-primary:hover {
    background-color: var(--anex-global-secondary);
    /* Forest Green on Hover */
    color: var(--anex-global-white);
}

/* ... */

/* Text */
#home-3-card .elementor-text-editor,
.home-3-card .elementor-text-editor,
.home-3-cards .elementor-text-editor,
.elementor-element-66e0896 .elementor-text-editor {
    color: var(--anex-global-text) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    flex-grow: 1 !important;
}

/* Button Container */
#home-3-card .elementor-widget-button,
.home-3-card .elementor-widget-button,
.home-3-cards .elementor-widget-button,
.elementor-element-66e0896 .elementor-widget-button {
    align-self: center !important;
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
}

/* Button Styling (Coral) */
#home-3-card .elementor-button,
.home-3-card .elementor-button,
.home-3-cards .elementor-button,
.elementor-element-66e0896 .elementor-button {
    background-color: var(--anex-global-warning) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 30px !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(230, 97, 81, 0.3) !important;
    transition: all 0.2s !important;
}

#home-3-card .elementor-button:hover,
.home-3-card .elementor-button:hover,
.home-3-cards .elementor-button:hover,
.elementor-element-66e0896 .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(230, 97, 81, 0.4) !important;
    background-color: #d65a4b !important;
}

/* Icons */
#home-3-card .elementor-icon-box-icon i,
.home-3-card .elementor-icon-box-icon i,
.home-3-cards .elementor-icon-box-icon i,
.elementor-element-66e0896 .elementor-icon-box-icon i {
    color: var(--anex-global-secondary) !important;
    font-size: 40px !important;
    margin-bottom: 15px !important;
}


/* --- Layout Utilities --- */

/* Container */
.anex-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--anex-spacing-md);
    width: 100%;
    box-sizing: border-box;
}

/* Flex Utilities */
.anex-flex {
    display: flex;
}

.anex-flex-col {
    flex-direction: column;
}

.anex-items-center {
    align-items: center;
}

.anex-justify-between {
    justify-content: space-between;
}

.anex-justify-center {
    justify-content: center;
}

.anex-gap-sm {
    gap: var(--anex-spacing-sm);
}

.anex-gap-md {
    gap: var(--anex-spacing-md);
}

/* --- Component Utilities --- */

/* Cards */
.anex-card-global {
    background: var(--anex-global-white);
    border: 1px solid #edebe9;
    border-radius: var(--anex-radius-md);
    box-shadow: var(--anex-shadow-sm);
    padding: var(--anex-spacing-lg);
    transition: box-shadow 0.2s ease;
}

.anex-card-global:hover {
    box-shadow: var(--anex-shadow-md);
}

/* Buttons */
.anex-btn-global {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: var(--anex-radius-sm);
    font-family: var(--anex-font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.anex-btn-primary {
    background-color: var(--anex-global-primary);
    color: var(--anex-global-white);
}

.anex-btn-primary:hover {
    background-color: var(--anex-global-accent);
    color: var(--anex-global-white);
}

.anex-btn-outline {
    background-color: transparent;
    border-color: var(--anex-global-primary);
    color: var(--anex-global-primary);
}

.anex-btn-outline:hover {
    background-color: var(--anex-global-light);
}

/* Typography Headers */
.anex-heading-1 {
    font-family: var(--anex-font-sans);
    font-weight: 600;
    font-size: 32px;
    color: var(--anex-global-dark);
    margin-bottom: var(--anex-spacing-md);
}

.anex-heading-2 {
    font-family: var(--anex-font-sans);
    font-weight: 600;
    font-size: 24px;
    color: var(--anex-global-dark);
    margin-bottom: var(--anex-spacing-sm);
}

.anex-text-body {
    font-family: var(--anex-font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--anex-global-text);
}

/* Helpers */
.anex-text-center {
    text-align: center;
}

.anex-mt-md {
    margin-top: var(--anex-spacing-md);
}

.anex-mb-md {
    margin-bottom: var(--anex-spacing-md);
}

.anex-p-0 {
    padding: 0 !important;
}

/* --- Responsive --- */


/* =========================================
   Hero Section Redesign (JS Injected)
   Target: .elementor-element-d0b65cf
   ========================================= */

/* The hero HTML is injected via JS, but the slider markup/styles come from the plugin.
   Keep the Elementor wrapper neutral so it doesn't override the slider's boxed layout. */
.elementor-element-d0b65cf {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
}

/* Inner Container */
.anex-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Left Column: Content (50%) --- */
.anex-hero-content {
    flex: 1;
    max-width: 45%;
}

.anex-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 18px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
}

.anex-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--anex-global-white);
}

.anex-hero-title span {
    color: var(--anex-global-warning);
    /* Warm Coral Highlight */
}

.anex-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 90%;
    color: var(--anex-global-light);
}

/* Buttons */
.anex-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.anex-hero-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.anex-hero-btn.primary {
    background-color: var(--anex-global-warning);
    /* Warm Coral */
    color: var(--anex-global-white);
}

.anex-hero-btn.outline {
    background-color: transparent;
    color: var(--anex-global-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.anex-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--anex-shadow-md);
}

/* Social Proof */
.anex-hero-avatars {
    display: flex;
    align-items: center;
    gap: 15px;
}

.anex-avatars-group {
    display: flex;
}

.anex-avatars-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--anex-global-primary);
    margin-left: -10px;
}

.anex-avatars-group img:first-child {
    margin-left: 0;
}

.anex-avatars-text {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
    color: var(--anex-global-light);
}

/* --- Right Column: Image (50%) --- */
.anex-hero-image-col {
    flex: 1;
    max-width: 35%;
    position: relative;
}

.anex-hero-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 520px;
    box-shadow: var(--anex-shadow-lg);
}

.anex-hero-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient overlay on the image to match the design */
    background: linear-gradient(
        135deg,
        rgba(5, 46, 47, 0.75) 0%,
        rgba(5, 46, 47, 0.35) 55%,
        rgba(5, 46, 47, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.anex-hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* Floating Badges */
.anex-hero-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--anex-global-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.anex-badge-top {
    top: 30px;
    left: 30px;
    background: rgba(10, 77, 146, 0.9);
    /* Primary transparent */
    color: var(--anex-global-white);
}

.anex-badge-bottom {
    bottom: 40px;
    right: 40px;
}

.anex-big-stat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    z-index: 10;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .anex-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .anex-hero-content,
    .anex-hero-image-col {
        max-width: 100%;
    }

}

/* ── Global Layout: 90 % viewport width, sequential inner breakpoints ─── */

/* 1. Page wrapper — clamp body content to 90 vw */
body > .site,
body > #page,
body > .hfe-full-width-row,
#content,
.site-content,
.wp-site-blocks {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Outer sections & Elementor wrappers — always 90 vw */
section,
.elementor-section,
.e-con-full,
.elementor-top-section {
    width: 90vw !important;
    max-width: 90vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* 3. Inner content containers — sequential max-width breakpoints */
.elementor-container,
.e-con,
.elementor-row,
.anex-container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Sequential widths: narrow → wide as screen grows */
@media (max-width: 479px) {
    .elementor-container, .e-con, .elementor-row, .anex-container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    section, .elementor-section, .e-con-full, .elementor-top-section {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .elementor-container, .e-con, .elementor-row, .anex-container {
        max-width: 92% !important;
    }
    section, .elementor-section, .e-con-full, .elementor-top-section {
        width: 96vw !important;
        max-width: 96vw !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .elementor-container, .e-con, .elementor-row, .anex-container {
        max-width: 94% !important;
    }
    section, .elementor-section, .e-con-full, .elementor-top-section {
        width: 94vw !important;
        max-width: 94vw !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .elementor-container, .e-con, .elementor-row, .anex-container {
        max-width: 96% !important;
    }
    section, .elementor-section, .e-con-full, .elementor-top-section {
        width: 92vw !important;
        max-width: 92vw !important;
    }
}

@media (min-width: 1280px) and (max-width: 1535px) {
    .elementor-container, .e-con, .elementor-row, .anex-container {
        max-width: 1200px !important;
    }
    section, .elementor-section, .e-con-full, .elementor-top-section {
        width: 90vw !important;
        max-width: 90vw !important;
    }
}

@media (min-width: 1536px) {
    .elementor-container, .e-con, .elementor-row, .anex-container {
        max-width: 1400px !important;
    }
    section, .elementor-section, .e-con-full, .elementor-top-section {
        width: 90vw !important;
        max-width: 1600px !important;
    }
}
/* ─────────────────────────────────────────────────────────────────────── */